3 #include "../mediaformat.h"
10 namespace Mp4AtomIds {
17 namespace Mp4TagAtomIds {
23 namespace Mp4TagExtendedMeanIds {
24 std::string_view
iTunes =
"com.apple.iTunes";
30 namespace Mp4TagExtendedNameIds {
31 std::string_view
cdec =
"cdec";
32 std::string_view
label =
"LABEL";
38 namespace Mp4MediaTypeIds {
204 namespace Mp4FormatExtensionIds {
210 namespace Mpeg4ElementaryStreamObjectIds {
217 switch (streamObjectTypeId) {
314 namespace Mpeg4DescriptorIds {
320 namespace 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";
365 namespace Mpeg4AudioObjectIds {
370 switch (mpeg4AudioObjectId) {
423 std::uint32_t
mpeg4SamplingFrequencyTable[] = { 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350 };
428 namespace 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();
487 namespace Mpeg4VideoCodes {
493 namespace 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]