18namespace Mp4TagAtomIds {
24namespace Mp4TagExtendedMeanIds {
25std::string_view
iTunes =
"com.apple.iTunes";
31namespace Mp4TagExtendedNameIds {
32std::string_view
cdec =
"cdec";
33std::string_view
label =
"LABEL";
39namespace Mp4MediaTypeIds {
207namespace Mp4FormatExtensionIds {
213namespace Mpeg4ElementaryStreamObjectIds {
220 switch (streamObjectTypeId) {
317namespace Mpeg4DescriptorIds {
323namespace Mpeg4ElementaryStreamTypeIds {
330 switch (streamTypeId) {
332 return "object descriptor";
334 return "clock reference";
336 return "scene descriptor";
346 return "object content info";
350 return "interaction";
356 return "streaming text";
368namespace Mpeg4AudioObjectIds {
373 switch (mpeg4AudioObjectId) {
426std::uint32_t
mpeg4SamplingFrequencyTable[] = { 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350 };
431namespace Mpeg4ChannelConfigs {
440 return "defined in AOT Specific Config";
442 return "1 channel: front-center";
444 return "2 channels: front-left, front-right";
446 return "3 channels: front-center, front-left, front-right";
448 return "4 channels: front-center, front-left, front-right, back-center";
450 return "5 channels: front-center, front-left, front-right, back-left, back-right";
452 return "6 channels: front-center, front-left, front-right, back-left, back-right, LFE-channel";
454 return "8 channels: front-center, front-left, front-right, side-left, side-right, back-left, back-right, LFE-channel";
456 return std::string_view();
490namespace Mpeg4VideoCodes {
496namespace Mpeg2VideoCodes {
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
@ WindowsMediaAudio9Professional
@ WindowsMediaAudio9Standard
TAG_PARSER_EXPORT MediaFormat fourccToMediaFormat(std::uint32_t fourccId)
TAG_PARSER_EXPORT MediaFormat idToMediaFormat(std::uint8_t mpeg4AudioObjectId, bool sbrPresent=false, bool psPresent=false)
TAG_PARSER_EXPORT std::string_view channelConfigString(std::uint8_t config)
Returns the string representation for the specified MPEG-4 channel config.
@ FrontCenterFrontLeftFrontRightBackLeftBackRightLFEChannel
@ FrontCenterFrontLeftFrontRightBackCenter
@ FrontCenterFrontLeftFrontRightSideLeftSideRightBackLeftBackRightLFEChannel
@ FrontCenterFrontLeftFrontRight
@ FrontCenterFrontLeftFrontRightBackLeftBackRight
TAG_PARSER_EXPORT std::uint8_t channelCount(std::uint8_t config)
Returns the channel count for the specified MPEG-4 channel config.
@ Mpeg2VideoSimpleProfile
@ Mpeg2AacLowComplexityProfile
@ Mpeg2VideoSpatialProfile
@ Mpeg2AacScaleableSamplingRateProfile
@ SynthesizedTextureStream
TAG_PARSER_EXPORT MediaFormat streamObjectTypeFormat(std::uint8_t streamObjectTypeId)
Returns the TagParser::MediaFormat denoted by the specified MPEG-4 stream ID.
TAG_PARSER_EXPORT std::string_view streamTypeName(std::uint8_t streamTypeId)
Returns the name of the stream type denoted by the specified MPEG-4 stream type ID.
Contains all classes and functions of the TagInfo library.
@ UncompressedVideoFrames
@ SynthesizedTextureStream
std::uint32_t mpeg4SamplingFrequencyTable[13]