1 #ifndef MEDIA_MATROSKATRACK_H 2 #define MEDIA_MATROSKATRACK_H 4 #include "../abstracttrack.h" 9 class MatroskaContainer;
18 void make(std::ostream &stream)
const;
20 uint64 requiredSize()
const;
27 uint64 m_requiredSize;
28 byte m_sizeDenotationLength;
44 return m_requiredSize;
58 static MediaFormat codecIdToMediaFormat(
const std::string &codecId);
59 void readStatisticsFromTags(
const std::vector<std::unique_ptr<MatroskaTag> > &tags);
61 void makeHeader(std::ostream &stream)
const;
64 void internalParseHeader();
67 template<
typename PropertyType,
typename ConversionFunction>
68 void assignPropertyFromTagValue(
const std::unique_ptr<MatroskaTag> &tag,
const char *fieldId, PropertyType &integer,
const ConversionFunction &conversionFunction);
101 prepareMakingHeader().make(stream);
106 #endif // MEDIA_MATROSKATRACK_H
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.