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