3#include "../mediaformat.h"
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 {
205namespace Mp4FormatExtensionIds {
211namespace Mpeg4ElementaryStreamObjectIds {
218 switch (streamObjectTypeId) {
315namespace Mpeg4DescriptorIds {
321namespace Mpeg4ElementaryStreamTypeIds {
328 switch (streamTypeId) {
330 return "object descriptor";
332 return "clock reference";
334 return "scene descriptor";
344 return "object content info";
348 return "interaction";
354 return "streaming text";
366namespace Mpeg4AudioObjectIds {
371 switch (mpeg4AudioObjectId) {
424std::uint32_t
mpeg4SamplingFrequencyTable[] = { 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350 };
429namespace Mpeg4ChannelConfigs {
438 return "defined in AOT Specific Config";
440 return "1 channel: front-center";
442 return "2 channels: front-left, front-right";
444 return "3 channels: front-center, front-left, front-right";
446 return "4 channels: front-center, front-left, front-right, back-center";
448 return "5 channels: front-center, front-left, front-right, back-left, back-right";
450 return "6 channels: front-center, front-left, front-right, back-left, back-right, LFE-channel";
452 return "8 channels: front-center, front-left, front-right, side-left, side-right, back-left, back-right, LFE-channel";
454 return std::string_view();
488namespace Mpeg4VideoCodes {
494namespace 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]