Tag Parser
9.1.2
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
Go to the documentation of this file.
3 #include "../mediaformat.h"
10 namespace Mp4AtomIds {
16 namespace Mp4TagAtomIds {
22 namespace Mp4TagExtendedMeanIds {
23 const char *
iTunes =
"com.apple.iTunes";
29 namespace Mp4TagExtendedNameIds {
37 namespace Mp4MediaTypeIds {
203 namespace Mp4FormatExtensionIds {
209 namespace Mpeg4ElementaryStreamObjectIds {
216 switch (streamObjectTypeId) {
313 namespace Mpeg4DescriptorIds {
319 namespace Mpeg4ElementaryStreamTypeIds {
326 switch (streamTypeId) {
328 return "object descriptor";
330 return "clock reference";
332 return "scene descriptor";
342 return "object content info";
346 return "interaction";
352 return "streaming text";
364 namespace Mpeg4AudioObjectIds {
369 switch (mpeg4AudioObjectId) {
422 std::uint32_t
mpeg4SamplingFrequencyTable[] = { 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350 };
427 namespace Mpeg4ChannelConfigs {
436 return "defined in AOT Specific Config";
438 return "1 channel: front-center";
440 return "2 channels: front-left, front-right";
442 return "3 channels: front-center, front-left, front-right";
444 return "4 channels: front-center, front-left, front-right, back-center";
446 return "5 channels: front-center, front-left, front-right, back-left, back-right";
448 return "6 channels: front-center, front-left, front-right, back-left, back-right, LFE-channel";
450 return "8 channels: front-center, front-left, front-right, side-left, side-right, back-left, back-right, LFE-channel";
486 namespace Mpeg4VideoCodes {
492 namespace Mpeg2VideoCodes {
TAG_PARSER_EXPORT MediaFormat idToMediaFormat(std::uint8_t mpeg4AudioObjectId, bool sbrPresent=false, bool psPresent=false)
@ FrontCenterFrontLeftFrontRightSideLeftSideRightBackLeftBackRightLFEChannel
@ FrontCenterFrontLeftFrontRightBackLeftBackRight
TAG_PARSER_EXPORT MediaFormat streamObjectTypeFormat(std::uint8_t streamObjectTypeId)
Returns the TagParser::MediaFormat denoted by the specified MPEG-4 stream ID.
@ SynthesizedTextureStream
@ Mpeg2AacScaleableSamplingRateProfile
const TAG_PARSER_EXPORT char * streamTypeName(std::uint8_t streamTypeId)
Returns the name of the stream type denoted by the specified MPEG-4 stream type ID.
@ FrontCenterFrontLeftFrontRightBackLeftBackRightLFEChannel
@ UncompressedVideoFrames
Contains all classes and functions of the TagInfo library.
@ FrontCenterFrontLeftFrontRightBackCenter
std::uint32_t mpeg4SamplingFrequencyTable[13]
TAG_PARSER_EXPORT std::uint8_t channelCount(std::uint8_t config)
Returns the channel count for the specified MPEG-4 channel config.
@ Mpeg2AacLowComplexityProfile
@ Mpeg2VideoSpatialProfile
@ WindowsMediaAudio9Professional
@ Mpeg2VideoSimpleProfile
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
TAG_PARSER_EXPORT MediaFormat fourccToMediaFormat(std::uint32_t fourccId)
@ WindowsMediaAudio9Standard
@ FrontCenterFrontLeftFrontRight
const TAG_PARSER_EXPORT char * channelConfigString(std::uint8_t config)
Returns the string representation for the specified MPEG-4 channel config.
@ SynthesizedTextureStream