|
ADTF File Library
|
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. | |
| virtual void | setStreamType (const StreamType &stream_type)=0 |
| Set the Stream Type and the serialization state of the serializer. | |
| 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. | |
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::adtf2::AdtfCoreMediaSampleSerializer, adtf_file::adtf3::MediaDescriptionSerializer, adtf_file::adtf3::MediaDescriptionSerializerNs, adtf_file::adtf3::SampleCopySerializer, and adtf_file::adtf3::SampleCopySerializerNs.
|
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::adtf2::AdtfCoreMediaSampleSerializer, adtf_file::adtf3::MediaDescriptionSerializer, adtf_file::adtf3::MediaDescriptionSerializerNs, adtf_file::adtf3::SampleCopySerializer, and adtf_file::adtf3::SampleCopySerializerNs.
|
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::adtf2::AdtfCoreMediaSampleSerializer, adtf_file::adtf3::MediaDescriptionSerializer, adtf_file::adtf3::MediaDescriptionSerializerNs, adtf_file::adtf3::SampleCopySerializer, and adtf_file::adtf3::SampleCopySerializerNs.