class CodecOutput
Defined at line 25 of file ../../src/media/lib/test/include/lib/media/test/codec_output.h
Each CodecOutput represents a Packet, and the correct associated
StreamOutputConstraints for that packet. Since the CodecClient takes care of
buffer_constraints_action_required true internally, the consumer of
CodecOutput never has to deal with the situation where there's a new buffer
constraints that's action required before any more output packets will show
up. That's dealt with by the time CodecOutput is created.
While we could have written this example to deal with output packets and
output config changes one at a time directly on the FIDL thread, that's
actually not quite as instructive as this example in my view, because it
would make the ordering aspect less explicit.
Public Methods
void CodecOutput (uint64_t stream_lifetime_ordinal, std::shared_ptr<const fuchsia::media::StreamOutputConstraints> constraints, std::shared_ptr<const fuchsia::media::StreamOutputFormat> format, std::unique_ptr<const fuchsia::media::Packet> packet, bool end_of_stream, bool stream_failed)
Defined at line 10 of file ../../src/media/lib/test/codec_output.cc
uint64_t stream_lifetime_ordinal ()
Defined at line 33 of file ../../src/media/lib/test/include/lib/media/test/codec_output.h
std::shared_ptr<const fuchsia::media::StreamOutputConstraints> constraints ()
Defined at line 35 of file ../../src/media/lib/test/include/lib/media/test/codec_output.h
std::shared_ptr<const fuchsia::media::StreamOutputFormat> format ()
Defined at line 41 of file ../../src/media/lib/test/include/lib/media/test/codec_output.h
const fuchsia::media::Packet & packet ()
The caller doesn't own the returned reference, and the caller must ensure
the returned reference isn't retained beyond the lifetime of CodecOutput.
Defined at line 49 of file ../../src/media/lib/test/include/lib/media/test/codec_output.h
bool end_of_stream ()
Defined at line 55 of file ../../src/media/lib/test/include/lib/media/test/codec_output.h
bool stream_failed ()
Defined at line 56 of file ../../src/media/lib/test/include/lib/media/test/codec_output.h