3#include "../mediaformat.h"
17namespace Mp4TagAtomIds {
23namespace Mp4TagExtendedMeanIds {
24std::string_view
iTunes =
"com.apple.iTunes";
30namespace Mp4TagExtendedNameIds {
31std::string_view
cdec =
"cdec";
32std::string_view
label =
"LABEL";
38namespace Mp4MediaTypeIds {
204namespace Mp4FormatExtensionIds {
210namespace Mpeg4ElementaryStreamObjectIds {
217 switch (streamObjectTypeId) {
314namespace Mpeg4DescriptorIds {
320namespace Mpeg4ElementaryStreamTypeIds {
327 switch (streamTypeId) {
329 return "object descriptor";
331 return "clock reference";
333 return "scene descriptor";
343 return "object content info";
347 return "interaction";
353 return "streaming text";
365namespace Mpeg4AudioObjectIds {
370 switch (mpeg4AudioObjectId) {
423std::uint32_t
mpeg4SamplingFrequencyTable[] = { 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350 };
428namespace Mpeg4ChannelConfigs {
437 return "defined in AOT Specific Config";
439 return "1 channel: front-center";
441 return "2 channels: front-left, front-right";
443 return "3 channels: front-center, front-left, front-right";
445 return "4 channels: front-center, front-left, front-right, back-center";
447 return "5 channels: front-center, front-left, front-right, back-left, back-right";
449 return "6 channels: front-center, front-left, front-right, back-left, back-right, LFE-channel";
451 return "8 channels: front-center, front-left, front-right, side-left, side-right, back-left, back-right, LFE-channel";
453 return std::string_view();
487namespace Mpeg4VideoCodes {
493namespace 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]