ADTF File Library
Loading...
Searching...
No Matches
adtf_file::adtf3::MediaDescriptionDeserializer Class Reference

DDL based Sample Deserializer implementation for ADTF 3 Samples with timestamps of microseconds resolution. This deserializer deserializes the DDL described values of the sample content from the input stream into the sample data buffer adtf_file::ReadSample::beginBufferWrite. More...

#include <adtf3_media_description_deserializer.h>

Inheritance diagram for adtf_file::adtf3::MediaDescriptionDeserializer:
[legend]
Collaboration diagram for adtf_file::adtf3::MediaDescriptionDeserializer:
[legend]

Public Member Functions

void setStreamType (const StreamType &type) override
 StreamType infomation to initialize deserializer if needed.
 
void deserialize (ReadSample &sample, InputStream &stream) override
 Deserialize a sample from stream.
 

Static Public Attributes

static constexpr const char * id = "media_description_sample_serialization.serialization.adtf.cid"
 identifier for MediaDescriptionSerializer and MediaDescriptionDeserializer
 

Detailed Description

DDL based Sample Deserializer implementation for ADTF 3 Samples with timestamps of microseconds resolution. This deserializer deserializes the DDL described values of the sample content from the input stream into the sample data buffer adtf_file::ReadSample::beginBufferWrite.

Remarks
The sample content must be described via set adtf_file::PropertyStreamType with the properties:
  • md_struct name of the struct type used for sample content
  • md_definitions DDL description containing a complete struct definition for md_struct used as sample content

Member Function Documentation

◆ deserialize()

void adtf_file::adtf3::MediaDescriptionDeserializer::deserialize ( ReadSample & sample,
InputStream & stream )
overridevirtual

Deserialize a sample from stream.

Parameters
samplethe sample to deserialize to
streamthe stream to read from

Implements adtf_file::SampleDeserializer.

◆ setStreamType()

void adtf_file::adtf3::MediaDescriptionDeserializer::setStreamType ( const StreamType & type)
overridevirtual

StreamType infomation to initialize deserializer if needed.

Parameters
type

Implements adtf_file::SampleDeserializer.


The documentation for this class was generated from the following file: