adtf_file_library
0.13.1
|
Interface class for a sample serializer. Usually the implementaion has a serialization state depending on the last setStreamType call. More...
#include <adtf_file_writer.h>
Public Member Functions | |
virtual std::string | getId () const =0 |
Get the Id of the sample serializer. More... | |
virtual void | setStreamType (const StreamType &stream_type)=0 |
Set the Stream Type and the serialization state of the serializer. More... | |
virtual void | serialize (const WriteSample &sample, OutputStream &stream)=0 |
Serializes the sample into the given stream. These samples usually are described by the previous set stream type. More... | |
Interface class for a sample serializer. Usually the implementaion has a serialization state depending on the last setStreamType call.
|
pure virtual |
Get the Id of the sample serializer.
Implemented in adtf_file::adtf3::SampleCopySerializerNs, adtf_file::adtf3::SampleCopySerializer, adtf_file::adtf3::MediaDescriptionSerializerNs, adtf_file::adtf3::MediaDescriptionSerializer, and adtf_file::adtf2::AdtfCoreMediaSampleSerializer.
|
pure virtual |
Serializes the sample into the given stream. These samples usually are described by the previous set stream type.
sample | the sample to serialize. |
stream | the stream to write to. |
Implemented in adtf_file::adtf3::SampleCopySerializerNs, adtf_file::adtf3::SampleCopySerializer, adtf_file::adtf3::MediaDescriptionSerializerNs, adtf_file::adtf3::MediaDescriptionSerializer, and adtf_file::adtf2::AdtfCoreMediaSampleSerializer.
|
pure virtual |
Set the Stream Type and the serialization state of the serializer.
stream_type | the stream type describes all following samples of the serialize call |
Implemented in adtf_file::adtf3::SampleCopySerializerNs, adtf_file::adtf3::SampleCopySerializer, adtf_file::adtf3::MediaDescriptionSerializerNs, adtf_file::adtf3::MediaDescriptionSerializer, and adtf_file::adtf2::AdtfCoreMediaSampleSerializer.