Tag Parser 12.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Loading...
Searching...
No Matches
matroskaid.h File Reference
#include "../global.h"
#include <cstdint>
#include <string_view>
Include dependency graph for matroskaid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  TagParser
 Contains all classes and functions of the TagInfo library.
 
namespace  TagParser::MatroskaIds
 Encapsulates the most common Matroska element IDs.
 
namespace  TagParser::MatroskaTrackType
 Encapsulates the most common Matroska track IDs.
 

Enumerations

enum  TagParser::MatroskaIds::TopLevelIds {
  TagParser::MatroskaIds::Segment = 0x18538067 , TagParser::MatroskaIds::SegmentInfo = 0x1549A966 , TagParser::MatroskaIds::Tracks = 0x1654AE6B , TagParser::MatroskaIds::Cues = 0x1C53BB6B ,
  TagParser::MatroskaIds::Tags = 0x1254C367 , TagParser::MatroskaIds::SeekHead = 0x114D9B74 , TagParser::MatroskaIds::Cluster = 0x1F43B675 , TagParser::MatroskaIds::Attachments = 0x1941A469 ,
  TagParser::MatroskaIds::Chapters = 0x1043A770
}
 Encapsulates all top level ID values. More...
 
enum  TagParser::MatroskaIds::SeekHeadIds { TagParser::MatroskaIds::Seek = 0x4DBB }
 Encapsulates all ID values in the SeekHead master. More...
 
enum  TagParser::MatroskaIds::SeekIds { TagParser::MatroskaIds::SeekID = 0x53AB , TagParser::MatroskaIds::SeekPosition = 0x53AC }
 Encapsulates all ID values in the Seek master. More...
 
enum  TagParser::MatroskaIds::SegmentInfoIds {
  TagParser::MatroskaIds::TimeCodeScale = 0x2AD7B1 , TagParser::MatroskaIds::Duration = 0x4489 , TagParser::MatroskaIds::WrittingApp = 0x5741 , TagParser::MatroskaIds::MuxingApp = 0x4D80 ,
  TagParser::MatroskaIds::DateUTC = 0x4461 , TagParser::MatroskaIds::SegmentUID = 0x73A4 , TagParser::MatroskaIds::SegmentFileName = 0x7384 , TagParser::MatroskaIds::PrevUID = 0x3CB923 ,
  TagParser::MatroskaIds::PrevFileName = 0x3C83AB , TagParser::MatroskaIds::NexUID = 0x3EB923 , TagParser::MatroskaIds::NextFileName = 0x3E83BB , TagParser::MatroskaIds::Title = 0x7BA9 ,
  TagParser::MatroskaIds::SegmentFamily = 0x4444 , TagParser::MatroskaIds::ChapterTranslate = 0x6924
}
 Encapsulates all ID values in the SegmentInfo master. More...
 
enum  TagParser::MatroskaIds::ChapterTranslateIds { TagParser::MatroskaIds::ChapterTranslateEditionUID = 0x69fc , TagParser::MatroskaIds::ChapterTranslateCodec = 0x69bf , TagParser::MatroskaIds::ChapterTranslateID = 0x69a5 }
 Encapsulates all ID values in the ChapterTranslate master. More...
 
enum  TagParser::MatroskaIds::TracksIds { TagParser::MatroskaIds::TrackEntry = 0xAE }
 Encapsulates all ID values in the Tracks master. More...
 
enum  TagParser::MatroskaIds::TrackEntryIds {
  TagParser::MatroskaIds::TrackNumber = 0xD7 , TagParser::MatroskaIds::TrackUID = 0x73C5 , TagParser::MatroskaIds::TrackType = 0x83 , TagParser::MatroskaIds::TrackFlagEnabled = 0xB9 ,
  TagParser::MatroskaIds::TrackFlagDefault = 0x88 , TagParser::MatroskaIds::TrackFlagForced = 0x55AA , TagParser::MatroskaIds::TrackFlagHearingImpaired = 0x55AB , TagParser::MatroskaIds::TrackFlagVisualImpaired = 0x55AC ,
  TagParser::MatroskaIds::TrackFlagTextDescriptions = 0x55AD , TagParser::MatroskaIds::TrackFlagOriginal = 0x55AE , TagParser::MatroskaIds::TrackFlagCommentary = 0x55AF , TagParser::MatroskaIds::TrackFlagLacing = 0x9C ,
  TagParser::MatroskaIds::MinCache = 0x6DE7 , TagParser::MatroskaIds::MaxCache = 0x6DF8 , TagParser::MatroskaIds::DefaultDuration = 0x23E383 , TagParser::MatroskaIds::DefaultDecodedFieldDuration = 0x234e7a ,
  TagParser::MatroskaIds::TrackTimeCodeScale = 0x23314F , TagParser::MatroskaIds::TrackOffset = 0x537F , TagParser::MatroskaIds::MaxBlockAdditionId = 0x55EE , TagParser::MatroskaIds::TrackName = 0x536E ,
  TagParser::MatroskaIds::TrackLanguage = 0x22B59C , TagParser::MatroskaIds::TrackLanguageIETF = 0x22B59D , TagParser::MatroskaIds::CodecID = 0x86 , TagParser::MatroskaIds::CodecPrivate = 0x63A2 ,
  TagParser::MatroskaIds::CodecName = 0x258688 , TagParser::MatroskaIds::AttachmentLink = 0x7446 , TagParser::MatroskaIds::CodecSettings = 0x3A9697 , TagParser::MatroskaIds::CodecInfoUrl = 0x3B4040 ,
  TagParser::MatroskaIds::CodecDownloadUrl = 0x26B240 , TagParser::MatroskaIds::CodecDecodeAll = 0xAA , TagParser::MatroskaIds::TrackOverlay = 0x6FAB , TagParser::MatroskaIds::CodecDelay = 0x56aa ,
  TagParser::MatroskaIds::SeekPreRoll = 0x56bb , TagParser::MatroskaIds::TrackTranslate = 0x6624 , TagParser::MatroskaIds::TrackAudio = 0xE1 , TagParser::MatroskaIds::TrackVideo = 0xE0 ,
  TagParser::MatroskaIds::TrackOperation = 0xe2 , TagParser::MatroskaIds::TrickTrackUID = 0xc0 , TagParser::MatroskaIds::TrickTrackSegmentUID = 0xc1 , TagParser::MatroskaIds::TrickTrackFlag = 0xc6 ,
  TagParser::MatroskaIds::TrickMasterTrackUID = 0xc7 , TagParser::MatroskaIds::TrickMasterTrackSegmentUID = 0xc4 , TagParser::MatroskaIds::ContentEncodings = 0x6D80
}
 Encapsulates all ID values in the TrackEntry master. More...
 
enum  TagParser::MatroskaIds::TrackTranslateIds { TagParser::MatroskaIds::TrackTranslateEditionUID = 0x66fc , TagParser::MatroskaIds::TrackTranslateCodec = 0x66bf , TagParser::MatroskaIds::TrackTranslateTrackID = 0x66a5 }
 Encapsulates all ID values in the TrackTranslate master. More...
 
enum  TagParser::MatroskaIds::TrackVideoIds {
  TagParser::MatroskaIds::FlagInterlaced = 0x9A , TagParser::MatroskaIds::StereoMode = 0x53B8 , TagParser::MatroskaIds::AlphaMode = 0x53c0 , TagParser::MatroskaIds::OldStereoMode = 0x53b9 ,
  TagParser::MatroskaIds::PixelWidth = 0xB0 , TagParser::MatroskaIds::PixelHeight = 0xBA , TagParser::MatroskaIds::PixelCropBottom = 0x54AA , TagParser::MatroskaIds::PixelCropTop = 0x54BB ,
  TagParser::MatroskaIds::PixelCropLeft = 0x54CC , TagParser::MatroskaIds::PixelCropRight = 0x54DD , TagParser::MatroskaIds::DisplayWidth = 0x54B0 , TagParser::MatroskaIds::DisplayHeight = 0x54BA ,
  TagParser::MatroskaIds::DisplayUnit = 0x54B2 , TagParser::MatroskaIds::AspectRatioType = 0x54B3 , TagParser::MatroskaIds::ColorSpace = 0x2EB524 , TagParser::MatroskaIds::GammaValue = 0x2FB523 ,
  TagParser::MatroskaIds::FrameRate = 0x2383E3
}
 Encapsulates all ID values in the TrackVideo master. More...
 
enum  TagParser::MatroskaIds::TrackAudioIds {
  TagParser::MatroskaIds::SamplingFrequency = 0xB5 , TagParser::MatroskaIds::OutputSamplingFrequency = 0x78B5 , TagParser::MatroskaIds::Channels = 0x9F , TagParser::MatroskaIds::ChannelsPositions = 0x7D7B ,
  TagParser::MatroskaIds::BitDepth = 0x6264
}
 Encapsulates all ID values in the TrackAudio master. More...
 
enum  TagParser::MatroskaIds::TrackOperationIds { TagParser::MatroskaIds::TrackCombinePlanes = 0xe3 , TagParser::MatroskaIds::TrackJoinBlocks = 0xe9 }
 Encapsulates all ID values in the TrackOperation master. More...
 
enum  TagParser::MatroskaIds::TrackCombinePlanesIds { TagParser::MatroskaIds::TrackPlane = 0xe4 }
 Encapsulates all ID values in the TrackCombinePlanes master. More...
 
enum  TagParser::MatroskaIds::TrackPlaneIds { TagParser::MatroskaIds::TrackPlaneUID = 0xe5 , TagParser::MatroskaIds::TrackPlaneType = 0xe6 }
 Encapsulates all ID values in the TrackPlane master. More...
 
enum  TagParser::MatroskaIds::TrackJoinBlocksIds { TagParser::MatroskaIds::TrackJoinUID = 0xed }
 Encapsulates all ID values in the TrackJoinBlocks master. More...
 
enum  TagParser::MatroskaIds::ContentEncodingsIds { TagParser::MatroskaIds::ContentEncoding = 0x6240 }
 Encapsulates all ID values in the ContentEncodings master. More...
 
enum  TagParser::MatroskaIds::ContentEncodingIds {
  TagParser::MatroskaIds::ContentEncodingOrder = 0x5031 , TagParser::MatroskaIds::ContentEncodingScope = 0x5032 , TagParser::MatroskaIds::ContentEncodingType = 0x5033 , TagParser::MatroskaIds::ContentCompression = 0x5034 ,
  TagParser::MatroskaIds::ContentEncryption = 0x5035
}
 Encapsulates all ID values in the ContentEncoding master. More...
 
enum  TagParser::MatroskaIds::ContentCompressionIds { TagParser::MatroskaIds::ContentCompAlgo = 0x4254 , TagParser::MatroskaIds::ContentCompSettings = 0x4255 }
 Encapsulates all ID values in the ContentCompression master. More...
 
enum  TagParser::MatroskaIds::ContentEncryptionIds {
  TagParser::MatroskaIds::ContentEncAlgo = 0x47e1 , TagParser::MatroskaIds::ContentEncKeyID = 0x47e2 , TagParser::MatroskaIds::ContentSignature = 0x47e3 , TagParser::MatroskaIds::ContentSigKeyID = 0x47e4 ,
  TagParser::MatroskaIds::ContentSigAlgo = 0x47e5 , TagParser::MatroskaIds::ContentSigHashAlgo = 0x47e6
}
 Encapsulates all ID values in the ContentEncryption master. More...
 
enum  TagParser::MatroskaIds::TagsIds { TagParser::MatroskaIds::Tag = 0x7373 }
 Encapsulates all ID values in the Tags master. More...
 
enum  TagParser::MatroskaIds::TagIds { TagParser::MatroskaIds::SimpleTag = 0x67C8 , TagParser::MatroskaIds::Targets = 0x63C0 }
 Encapsulates all ID values in the Tag master. More...
 
enum  TagParser::MatroskaIds::SimpleTagIds {
  TagParser::MatroskaIds::TagName = 0x45A3 , TagParser::MatroskaIds::TagString = 0x4487 , TagParser::MatroskaIds::TagLanguage = 0x447A , TagParser::MatroskaIds::TagLanguageIETF = 0x447B ,
  TagParser::MatroskaIds::TagDefault = 0x4484 , TagParser::MatroskaIds::TagBinary = 0x4485
}
 Encapsulates all ID values in the SimpleTag master. More...
 
enum  TagParser::MatroskaIds::TargetsIds {
  TagParser::MatroskaIds::TargetTypeValue = 0x68ca , TagParser::MatroskaIds::TargetType = 0x63ca , TagParser::MatroskaIds::TagTrackUID = 0x63c5 , TagParser::MatroskaIds::TagEditionUID = 0x63c9 ,
  TagParser::MatroskaIds::TagChapterUID = 0x63c4 , TagParser::MatroskaIds::TagAttachmentUID = 0x63c6
}
 Encapsulates all ID values in the Targets master. More...
 
enum  TagParser::MatroskaIds::CuesIds { TagParser::MatroskaIds::CuePoint = 0xbb }
 Encapsulates all ID values in the Cues master. More...
 
enum  TagParser::MatroskaIds::CuePointIds { TagParser::MatroskaIds::CueTime = 0xb3 , TagParser::MatroskaIds::CueTrackPositions = 0xb7 }
 Encapsulates all ID values in the CuePoint master. More...
 
enum  TagParser::MatroskaIds::CueTrackPositionsIds {
  TagParser::MatroskaIds::CueTrack = 0xf7 , TagParser::MatroskaIds::CueClusterPosition = 0xf1 , TagParser::MatroskaIds::CueRelativePosition = 0xf0 , TagParser::MatroskaIds::CueDuration = 0xb2 ,
  TagParser::MatroskaIds::CueBlockNumber = 0x5378 , TagParser::MatroskaIds::CueCodecState = 0xea , TagParser::MatroskaIds::CueReference = 0xdb
}
 Encapsulates all ID values in the CueTrackPositions master. More...
 
enum  TagParser::MatroskaIds::CueReferenceIds { TagParser::MatroskaIds::CueRefTime = 0x96 , TagParser::MatroskaIds::CueRefCluster = 0x97 , TagParser::MatroskaIds::CueRefNumber = 0x535f , TagParser::MatroskaIds::CueRefCodecState = 0xeb }
 Encapsulates all ID values in the CueReference master. More...
 
enum  TagParser::MatroskaIds::AttachmentsIds { TagParser::MatroskaIds::AttachedFile = 0x61a7 }
 Encapsulates all ID values in the Attachments master. More...
 
enum  TagParser::MatroskaIds::AttachedFileIds {
  TagParser::MatroskaIds::FileDescription = 0x467e , TagParser::MatroskaIds::FileName = 0x466e , TagParser::MatroskaIds::FileMimeType = 0x4660 , TagParser::MatroskaIds::FileData = 0x465c ,
  TagParser::MatroskaIds::FileUID = 0x46ae , TagParser::MatroskaIds::FileReferral = 0x4675 , TagParser::MatroskaIds::FileUsedStartTime = 0x4661 , TagParser::MatroskaIds::FileUsedEndTime = 0x4662
}
 Encapsulates all ID values in the AttachedFile master. More...
 
enum  TagParser::MatroskaIds::ChaptersIds { TagParser::MatroskaIds::EditionEntry = 0x45b9 }
 Encapsulates all ID values in the Chapters master. More...
 
enum  TagParser::MatroskaIds::EditionEntryIds {
  TagParser::MatroskaIds::EditionUID = 0x45bc , TagParser::MatroskaIds::EditionFlagHidden = 0x45bd , TagParser::MatroskaIds::EditionFlagDefault = 0x45db , TagParser::MatroskaIds::EditionFlagOrdered = 0x45dd ,
  TagParser::MatroskaIds::ChapterAtom = 0xb6
}
 Encapsulates all ID values in the EditionEntry master. More...
 
enum  TagParser::MatroskaIds::ChapterAtomIds {
  TagParser::MatroskaIds::ChapterUID = 0x73c4 , TagParser::MatroskaIds::ChapterStringUID = 0x5654 , TagParser::MatroskaIds::ChapterTimeStart = 0x91 , TagParser::MatroskaIds::ChapterTimeEnd = 0x92 ,
  TagParser::MatroskaIds::ChapterFlagHidden = 0x98 , TagParser::MatroskaIds::ChapterFlagEnabled = 0x4598 , TagParser::MatroskaIds::ChapterSegmentUID = 0x6e67 , TagParser::MatroskaIds::ChapterSegmentEditionUID = 0x6ebc ,
  TagParser::MatroskaIds::ChapterPhysicalEquiv = 0x63c3 , TagParser::MatroskaIds::ChapterTrack = 0x8f , TagParser::MatroskaIds::ChapterDisplay = 0x80 , TagParser::MatroskaIds::ChapProcess = 0x6944
}
 Encapsulates all ID values in the ChapterAtom master. More...
 
enum  TagParser::MatroskaIds::ChapterTrackIds { TagParser::MatroskaIds::ChapterTrackNumber = 0x89 }
 Encapsulates all ID values in the ChapterTrack master. More...
 
enum  TagParser::MatroskaIds::ChapterDisplayIds { TagParser::MatroskaIds::ChapString = 0x85 , TagParser::MatroskaIds::ChapLanguage = 0x437c , TagParser::MatroskaIds::ChapLanguageIETF = 0x437D , TagParser::MatroskaIds::ChapCountry = 0x437e }
 Encapsulates all ID values in the ChapterDisplay master. More...
 
enum  TagParser::MatroskaIds::ChapProcessIds { TagParser::MatroskaIds::ChapProcessCodecID = 0x6955 , TagParser::MatroskaIds::ChapProcessPrivate = 0x450d , TagParser::MatroskaIds::ChapProcessCommand = 0x6911 }
 Encapsulates all ID values in the ChapProcess master. More...
 
enum  TagParser::MatroskaIds::ChapProcessCommandIds { TagParser::MatroskaIds::ChapProcessTime = 0x6922 , TagParser::MatroskaIds::ChapProcessData = 0x6933 }
 Encapsulates all ID values in the ChapProcessCommand master. More...
 
enum  TagParser::MatroskaIds::ClusterIds {
  TagParser::MatroskaIds::Timecode = 0xe7 , TagParser::MatroskaIds::SilentTracks = 0x5854 , TagParser::MatroskaIds::Position = 0xa7 , TagParser::MatroskaIds::PrevSize = 0xab ,
  TagParser::MatroskaIds::SimpleBlock = 0xa3 , TagParser::MatroskaIds::BlockGroup = 0xa0 , TagParser::MatroskaIds::EncryptedBlock = 0xaf
}
 Encapsulates all ID values in the Cluster master. More...
 
enum  TagParser::MatroskaIds::SilentTracksIds { TagParser::MatroskaIds::SilentTrackNumber = 0x58d7 }
 Encapsulates all ID values in the SilentTracks master. More...
 
enum  TagParser::MatroskaIds::BlockGroupIds {
  TagParser::MatroskaIds::Block = 0xa1 , TagParser::MatroskaIds::BlockVirtual = 0xa2 , TagParser::MatroskaIds::BlockAdditions = 0x75a1 , TagParser::MatroskaIds::BlockDuration = 0x9b ,
  TagParser::MatroskaIds::ReferencePriority = 0xfa , TagParser::MatroskaIds::ReferenceBlock = 0xfb , TagParser::MatroskaIds::ReferenceVirtual = 0xfd , TagParser::MatroskaIds::CodecState = 0xa4 ,
  TagParser::MatroskaIds::DiscardPadding = 0x75a2 , TagParser::MatroskaIds::Slices = 0x8e , TagParser::MatroskaIds::ReferenceFrame = 0xc8
}
 Encapsulates all ID values in the BlockGroup master. More...
 
enum  TagParser::MatroskaIds::BlockAdditionsIds { TagParser::MatroskaIds::BlockMore = 0xa6 }
 Encapsulates all ID values in the BlockAdditions master. More...
 
enum  TagParser::MatroskaIds::BlockMoreIds { TagParser::MatroskaIds::BlockAddID = 0xee , TagParser::MatroskaIds::BlockAdditional = 0x45 }
 Encapsulates all ID values in the BlockMore master. More...
 
enum  TagParser::MatroskaIds::SlicesIds { TagParser::MatroskaIds::TimeSlice = 0xe8 }
 Encapsulates all ID values in the Slices master. More...
 
enum  TagParser::MatroskaIds::TimeSliceIds {
  TagParser::MatroskaIds::LaceNumber = 0xcc , TagParser::MatroskaIds::FrameNumber = 0xcd , TagParser::MatroskaIds::BlockAdditionID = 0xcb , TagParser::MatroskaIds::Delay = 0xce ,
  TagParser::MatroskaIds::SliceDuration = 0xcf
}
 Encapsulates all ID values in the TimeSlice master. More...
 
enum  TagParser::MatroskaIds::ReferenceFrameIds { TagParser::MatroskaIds::ReferenceOffset = 0xc9 , TagParser::MatroskaIds::ReferenceTimeCode = 0xca }
 Encapsulates all ID values in the ReferenceFrame master. More...
 
enum  TagParser::MatroskaTrackType::KnownValues {
  TagParser::MatroskaTrackType::Video = 0x1 , TagParser::MatroskaTrackType::Audio = 0x2 , TagParser::MatroskaTrackType::Complex = 0x3 , TagParser::MatroskaTrackType::Logo = 0x10 ,
  TagParser::MatroskaTrackType::Subtitle = 0x11 , TagParser::MatroskaTrackType::Buttons = 0x12 , TagParser::MatroskaTrackType::Control = 0x20
}
 
enum class  TagParser::MatroskaElementLevel : std::uint8_t {
  TagParser::TopLevel = 0x0 , TagParser::Level1 , TagParser::Level2 , TagParser::Level3 ,
  TagParser::Level4 , TagParser::Level5 , TagParser::Level6 , TagParser::Global = 0xFE ,
  TagParser::Unknown = 0xFF
}
 

Functions

constexpr bool TagParser::operator> (MatroskaElementLevel lhs, MatroskaElementLevel rhs)
 
constexpr bool TagParser::operator> (std::uint8_t lhs, MatroskaElementLevel rhs)
 
constexpr bool TagParser::operator< (MatroskaElementLevel lhs, MatroskaElementLevel rhs)
 
constexpr bool TagParser::operator>= (MatroskaElementLevel lhs, MatroskaElementLevel rhs)
 
constexpr bool TagParser::operator<= (MatroskaElementLevel lhs, MatroskaElementLevel rhs)
 
TAG_PARSER_EXPORT std::string_view TagParser::matroskaIdName (std::uint32_t matroskaId)
 Returns a string for the specified matroskaId if known; otherwise returns an empty string.
 
TAG_PARSER_EXPORT MatroskaElementLevel TagParser::matroskaIdLevel (std::uint32_t matroskaId)
 Returns the level at which elements with the specified matroskaId are supposed to occur in a Matroska file.