| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 #ifndef MKV_DEFS_HPP | 10 #ifndef MKV_DEFS_HPP |
| 11 #define MKV_DEFS_HPP 1 | 11 #define MKV_DEFS_HPP 1 |
| 12 | 12 |
| 13 /* Commenting out values not available in webm, but available in matroska */ | 13 /* Commenting out values not available in webm, but available in matroska */ |
| 14 | 14 |
| 15 enum mkv | 15 enum mkv { |
| 16 { | 16 EBML = 0x1A45DFA3, |
| 17 EBML = 0x1A45DFA3, | 17 EBMLVersion = 0x4286, |
| 18 EBMLVersion = 0x4286, | 18 EBMLReadVersion = 0x42F7, |
| 19 EBMLReadVersion = 0x42F7, | 19 EBMLMaxIDLength = 0x42F2, |
| 20 EBMLMaxIDLength = 0x42F2, | 20 EBMLMaxSizeLength = 0x42F3, |
| 21 EBMLMaxSizeLength = 0x42F3, | 21 DocType = 0x4282, |
| 22 DocType = 0x4282, | 22 DocTypeVersion = 0x4287, |
| 23 DocTypeVersion = 0x4287, | 23 DocTypeReadVersion = 0x4285, |
| 24 DocTypeReadVersion = 0x4285, | |
| 25 /* CRC_32 = 0xBF, */ | 24 /* CRC_32 = 0xBF, */ |
| 26 Void = 0xEC, | 25 Void = 0xEC, |
| 27 SignatureSlot = 0x1B538667, | 26 SignatureSlot = 0x1B538667, |
| 28 SignatureAlgo = 0x7E8A, | 27 SignatureAlgo = 0x7E8A, |
| 29 SignatureHash = 0x7E9A, | 28 SignatureHash = 0x7E9A, |
| 30 SignaturePublicKey = 0x7EA5, | 29 SignaturePublicKey = 0x7EA5, |
| 31 Signature = 0x7EB5, | 30 Signature = 0x7EB5, |
| 32 SignatureElements = 0x7E5B, | 31 SignatureElements = 0x7E5B, |
| 33 SignatureElementList = 0x7E7B, | 32 SignatureElementList = 0x7E7B, |
| 34 SignedElement = 0x6532, | 33 SignedElement = 0x6532, |
| 35 /* segment */ | 34 /* segment */ |
| 36 Segment = 0x18538067, | 35 Segment = 0x18538067, |
| 37 /* Meta Seek Information */ | 36 /* Meta Seek Information */ |
| 38 SeekHead = 0x114D9B74, | 37 SeekHead = 0x114D9B74, |
| 39 Seek = 0x4DBB, | 38 Seek = 0x4DBB, |
| 40 SeekID = 0x53AB, | 39 SeekID = 0x53AB, |
| 41 SeekPosition = 0x53AC, | 40 SeekPosition = 0x53AC, |
| 42 /* Segment Information */ | 41 /* Segment Information */ |
| 43 Info = 0x1549A966, | 42 Info = 0x1549A966, |
| 44 /* SegmentUID = 0x73A4, */ | 43 /* SegmentUID = 0x73A4, */ |
| 45 /* SegmentFilename = 0x7384, */ | 44 /* SegmentFilename = 0x7384, */ |
| 46 /* PrevUID = 0x3CB923, */ | 45 /* PrevUID = 0x3CB923, */ |
| 47 /* PrevFilename = 0x3C83AB, */ | 46 /* PrevFilename = 0x3C83AB, */ |
| 48 /* NextUID = 0x3EB923, */ | 47 /* NextUID = 0x3EB923, */ |
| 49 /* NextFilename = 0x3E83BB, */ | 48 /* NextFilename = 0x3E83BB, */ |
| 50 /* SegmentFamily = 0x4444, */ | 49 /* SegmentFamily = 0x4444, */ |
| 51 /* ChapterTranslate = 0x6924, */ | 50 /* ChapterTranslate = 0x6924, */ |
| 52 /* ChapterTranslateEditionUID = 0x69FC, */ | 51 /* ChapterTranslateEditionUID = 0x69FC, */ |
| 53 /* ChapterTranslateCodec = 0x69BF, */ | 52 /* ChapterTranslateCodec = 0x69BF, */ |
| 54 /* ChapterTranslateID = 0x69A5, */ | 53 /* ChapterTranslateID = 0x69A5, */ |
| 55 TimecodeScale = 0x2AD7B1, | 54 TimecodeScale = 0x2AD7B1, |
| 56 Segment_Duration = 0x4489, | 55 Segment_Duration = 0x4489, |
| 57 DateUTC = 0x4461, | 56 DateUTC = 0x4461, |
| 58 /* Title = 0x7BA9, */ | 57 /* Title = 0x7BA9, */ |
| 59 MuxingApp = 0x4D80, | 58 MuxingApp = 0x4D80, |
| 60 WritingApp = 0x5741, | 59 WritingApp = 0x5741, |
| 61 /* Cluster */ | 60 /* Cluster */ |
| 62 Cluster = 0x1F43B675, | 61 Cluster = 0x1F43B675, |
| 63 Timecode = 0xE7, | 62 Timecode = 0xE7, |
| 64 /* SilentTracks = 0x5854, */ | 63 /* SilentTracks = 0x5854, */ |
| 65 /* SilentTrackNumber = 0x58D7, */ | 64 /* SilentTrackNumber = 0x58D7, */ |
| 66 /* Position = 0xA7, */ | 65 /* Position = 0xA7, */ |
| 67 PrevSize = 0xAB, | 66 PrevSize = 0xAB, |
| 68 BlockGroup = 0xA0, | 67 BlockGroup = 0xA0, |
| 69 Block = 0xA1, | 68 Block = 0xA1, |
| 70 /* BlockVirtual = 0xA2, */ | 69 /* BlockVirtual = 0xA2, */ |
| 71 /* BlockAdditions = 0x75A1, */ | 70 /* BlockAdditions = 0x75A1, */ |
| 72 /* BlockMore = 0xA6, */ | 71 /* BlockMore = 0xA6, */ |
| 73 /* BlockAddID = 0xEE, */ | 72 /* BlockAddID = 0xEE, */ |
| 74 /* BlockAdditional = 0xA5, */ | 73 /* BlockAdditional = 0xA5, */ |
| 75 BlockDuration = 0x9B, | 74 BlockDuration = 0x9B, |
| 76 /* ReferencePriority = 0xFA, */ | 75 /* ReferencePriority = 0xFA, */ |
| 77 ReferenceBlock = 0xFB, | 76 ReferenceBlock = 0xFB, |
| 78 /* ReferenceVirtual = 0xFD, */ | 77 /* ReferenceVirtual = 0xFD, */ |
| 79 /* CodecState = 0xA4, */ | 78 /* CodecState = 0xA4, */ |
| 80 /* Slices = 0x8E, */ | 79 /* Slices = 0x8E, */ |
| 81 /* TimeSlice = 0xE8, */ | 80 /* TimeSlice = 0xE8, */ |
| 82 LaceNumber = 0xCC, | 81 LaceNumber = 0xCC, |
| 83 /* FrameNumber = 0xCD, */ | 82 /* FrameNumber = 0xCD, */ |
| 84 /* BlockAdditionID = 0xCB, */ | 83 /* BlockAdditionID = 0xCB, */ |
| 85 /* MkvDelay = 0xCE, */ | 84 /* MkvDelay = 0xCE, */ |
| 86 /* Cluster_Duration = 0xCF, */ | 85 /* Cluster_Duration = 0xCF, */ |
| 87 SimpleBlock = 0xA3, | 86 SimpleBlock = 0xA3, |
| 88 /* EncryptedBlock = 0xAF, */ | 87 /* EncryptedBlock = 0xAF, */ |
| 89 /* Track */ | 88 /* Track */ |
| 90 Tracks = 0x1654AE6B, | 89 Tracks = 0x1654AE6B, |
| 91 TrackEntry = 0xAE, | 90 TrackEntry = 0xAE, |
| 92 TrackNumber = 0xD7, | 91 TrackNumber = 0xD7, |
| 93 TrackUID = 0x73C5, | 92 TrackUID = 0x73C5, |
| 94 TrackType = 0x83, | 93 TrackType = 0x83, |
| 95 FlagEnabled = 0xB9, | 94 FlagEnabled = 0xB9, |
| 96 FlagDefault = 0x88, | 95 FlagDefault = 0x88, |
| 97 FlagForced = 0x55AA, | 96 FlagForced = 0x55AA, |
| 98 FlagLacing = 0x9C, | 97 FlagLacing = 0x9C, |
| 99 /* MinCache = 0x6DE7, */ | 98 /* MinCache = 0x6DE7, */ |
| 100 /* MaxCache = 0x6DF8, */ | 99 /* MaxCache = 0x6DF8, */ |
| 101 DefaultDuration = 0x23E383, | 100 DefaultDuration = 0x23E383, |
| 102 /* TrackTimecodeScale = 0x23314F, */ | 101 /* TrackTimecodeScale = 0x23314F, */ |
| 103 /* TrackOffset = 0x537F, */ | 102 /* TrackOffset = 0x537F, */ |
| 104 /* MaxBlockAdditionID = 0x55EE, */ | 103 /* MaxBlockAdditionID = 0x55EE, */ |
| 105 Name = 0x536E, | 104 Name = 0x536E, |
| 106 Language = 0x22B59C, | 105 Language = 0x22B59C, |
| 107 CodecID = 0x86, | 106 CodecID = 0x86, |
| 108 CodecPrivate = 0x63A2, | 107 CodecPrivate = 0x63A2, |
| 109 CodecName = 0x258688, | 108 CodecName = 0x258688, |
| 110 /* AttachmentLink = 0x7446, */ | 109 /* AttachmentLink = 0x7446, */ |
| 111 /* CodecSettings = 0x3A9697, */ | 110 /* CodecSettings = 0x3A9697, */ |
| 112 /* CodecInfoURL = 0x3B4040, */ | 111 /* CodecInfoURL = 0x3B4040, */ |
| 113 /* CodecDownloadURL = 0x26B240, */ | 112 /* CodecDownloadURL = 0x26B240, */ |
| 114 /* CodecDecodeAll = 0xAA, */ | 113 /* CodecDecodeAll = 0xAA, */ |
| 115 /* TrackOverlay = 0x6FAB, */ | 114 /* TrackOverlay = 0x6FAB, */ |
| 116 /* TrackTranslate = 0x6624, */ | 115 /* TrackTranslate = 0x6624, */ |
| 117 /* TrackTranslateEditionUID = 0x66FC, */ | 116 /* TrackTranslateEditionUID = 0x66FC, */ |
| 118 /* TrackTranslateCodec = 0x66BF, */ | 117 /* TrackTranslateCodec = 0x66BF, */ |
| 119 /* TrackTranslateTrackID = 0x66A5, */ | 118 /* TrackTranslateTrackID = 0x66A5, */ |
| 120 /* video */ | 119 /* video */ |
| 121 Video = 0xE0, | 120 Video = 0xE0, |
| 122 FlagInterlaced = 0x9A, | 121 FlagInterlaced = 0x9A, |
| 123 StereoMode = 0x53B8, | 122 StereoMode = 0x53B8, |
| 124 PixelWidth = 0xB0, | 123 PixelWidth = 0xB0, |
| 125 PixelHeight = 0xBA, | 124 PixelHeight = 0xBA, |
| 126 PixelCropBottom = 0x54AA, | 125 PixelCropBottom = 0x54AA, |
| 127 PixelCropTop = 0x54BB, | 126 PixelCropTop = 0x54BB, |
| 128 PixelCropLeft = 0x54CC, | 127 PixelCropLeft = 0x54CC, |
| 129 PixelCropRight = 0x54DD, | 128 PixelCropRight = 0x54DD, |
| 130 DisplayWidth = 0x54B0, | 129 DisplayWidth = 0x54B0, |
| 131 DisplayHeight = 0x54BA, | 130 DisplayHeight = 0x54BA, |
| 132 DisplayUnit = 0x54B2, | 131 DisplayUnit = 0x54B2, |
| 133 AspectRatioType = 0x54B3, | 132 AspectRatioType = 0x54B3, |
| 134 /* ColourSpace = 0x2EB524, */ | 133 /* ColourSpace = 0x2EB524, */ |
| 135 /* GammaValue = 0x2FB523, */ | 134 /* GammaValue = 0x2FB523, */ |
| 136 FrameRate = 0x2383E3, | 135 FrameRate = 0x2383E3, |
| 137 /* end video */ | 136 /* end video */ |
| 138 /* audio */ | 137 /* audio */ |
| 139 Audio = 0xE1, | 138 Audio = 0xE1, |
| 140 SamplingFrequency = 0xB5, | 139 SamplingFrequency = 0xB5, |
| 141 OutputSamplingFrequency = 0x78B5, | 140 OutputSamplingFrequency = 0x78B5, |
| 142 Channels = 0x9F, | 141 Channels = 0x9F, |
| 143 /* ChannelPositions = 0x7D7B, */ | 142 /* ChannelPositions = 0x7D7B, */ |
| 144 BitDepth = 0x6264, | 143 BitDepth = 0x6264, |
| 145 /* end audio */ | 144 /* end audio */ |
| 146 /* content encoding */ | 145 /* content encoding */ |
| 147 /* ContentEncodings = 0x6d80, */ | 146 /* ContentEncodings = 0x6d80, */ |
| 148 /* ContentEncoding = 0x6240, */ | 147 /* ContentEncoding = 0x6240, */ |
| 149 /* ContentEncodingOrder = 0x5031, */ | 148 /* ContentEncodingOrder = 0x5031, */ |
| 150 /* ContentEncodingScope = 0x5032, */ | 149 /* ContentEncodingScope = 0x5032, */ |
| 151 /* ContentEncodingType = 0x5033, */ | 150 /* ContentEncodingType = 0x5033, */ |
| 152 /* ContentCompression = 0x5034, */ | 151 /* ContentCompression = 0x5034, */ |
| 153 /* ContentCompAlgo = 0x4254, */ | 152 /* ContentCompAlgo = 0x4254, */ |
| 154 /* ContentCompSettings = 0x4255, */ | 153 /* ContentCompSettings = 0x4255, */ |
| 155 /* ContentEncryption = 0x5035, */ | 154 /* ContentEncryption = 0x5035, */ |
| 156 /* ContentEncAlgo = 0x47e1, */ | 155 /* ContentEncAlgo = 0x47e1, */ |
| 157 /* ContentEncKeyID = 0x47e2, */ | 156 /* ContentEncKeyID = 0x47e2, */ |
| 158 /* ContentSignature = 0x47e3, */ | 157 /* ContentSignature = 0x47e3, */ |
| 159 /* ContentSigKeyID = 0x47e4, */ | 158 /* ContentSigKeyID = 0x47e4, */ |
| 160 /* ContentSigAlgo = 0x47e5, */ | 159 /* ContentSigAlgo = 0x47e5, */ |
| 161 /* ContentSigHashAlgo = 0x47e6, */ | 160 /* ContentSigHashAlgo = 0x47e6, */ |
| 162 /* end content encoding */ | 161 /* end content encoding */ |
| 163 /* Cueing Data */ | 162 /* Cueing Data */ |
| 164 Cues = 0x1C53BB6B, | 163 Cues = 0x1C53BB6B, |
| 165 CuePoint = 0xBB, | 164 CuePoint = 0xBB, |
| 166 CueTime = 0xB3, | 165 CueTime = 0xB3, |
| 167 CueTrackPositions = 0xB7, | 166 CueTrackPositions = 0xB7, |
| 168 CueTrack = 0xF7, | 167 CueTrack = 0xF7, |
| 169 CueClusterPosition = 0xF1, | 168 CueClusterPosition = 0xF1, |
| 170 CueBlockNumber = 0x5378 | 169 CueBlockNumber = 0x5378 |
| 171 /* CueCodecState = 0xEA, */ | 170 /* CueCodecState = 0xEA, */ |
| 172 /* CueReference = 0xDB, */ | 171 /* CueReference = 0xDB, */ |
| 173 /* CueRefTime = 0x96, */ | 172 /* CueRefTime = 0x96, */ |
| 174 /* CueRefCluster = 0x97, */ | 173 /* CueRefCluster = 0x97, */ |
| 175 /* CueRefNumber = 0x535F, */ | 174 /* CueRefNumber = 0x535F, */ |
| 176 /* CueRefCodecState = 0xEB, */ | 175 /* CueRefCodecState = 0xEB, */ |
| 177 /* Attachment */ | 176 /* Attachment */ |
| 178 /* Attachments = 0x1941A469, */ | 177 /* Attachments = 0x1941A469, */ |
| 179 /* AttachedFile = 0x61A7, */ | 178 /* AttachedFile = 0x61A7, */ |
| 180 /* FileDescription = 0x467E, */ | 179 /* FileDescription = 0x467E, */ |
| 181 /* FileName = 0x466E, */ | 180 /* FileName = 0x466E, */ |
| 182 /* FileMimeType = 0x4660, */ | 181 /* FileMimeType = 0x4660, */ |
| 183 /* FileData = 0x465C, */ | 182 /* FileData = 0x465C, */ |
| 184 /* FileUID = 0x46AE, */ | 183 /* FileUID = 0x46AE, */ |
| 185 /* FileReferral = 0x4675, */ | 184 /* FileReferral = 0x4675, */ |
| 186 /* Chapters */ | 185 /* Chapters */ |
| 187 /* Chapters = 0x1043A770, */ | 186 /* Chapters = 0x1043A770, */ |
| 188 /* EditionEntry = 0x45B9, */ | 187 /* EditionEntry = 0x45B9, */ |
| 189 /* EditionUID = 0x45BC, */ | 188 /* EditionUID = 0x45BC, */ |
| 190 /* EditionFlagHidden = 0x45BD, */ | 189 /* EditionFlagHidden = 0x45BD, */ |
| 191 /* EditionFlagDefault = 0x45DB, */ | 190 /* EditionFlagDefault = 0x45DB, */ |
| 192 /* EditionFlagOrdered = 0x45DD, */ | 191 /* EditionFlagOrdered = 0x45DD, */ |
| 193 /* ChapterAtom = 0xB6, */ | 192 /* ChapterAtom = 0xB6, */ |
| 194 /* ChapterUID = 0x73C4, */ | 193 /* ChapterUID = 0x73C4, */ |
| 195 /* ChapterTimeStart = 0x91, */ | 194 /* ChapterTimeStart = 0x91, */ |
| 196 /* ChapterTimeEnd = 0x92, */ | 195 /* ChapterTimeEnd = 0x92, */ |
| 197 /* ChapterFlagHidden = 0x98, */ | 196 /* ChapterFlagHidden = 0x98, */ |
| 198 /* ChapterFlagEnabled = 0x4598, */ | 197 /* ChapterFlagEnabled = 0x4598, */ |
| 199 /* ChapterSegmentUID = 0x6E67, */ | 198 /* ChapterSegmentUID = 0x6E67, */ |
| 200 /* ChapterSegmentEditionUID = 0x6EBC, */ | 199 /* ChapterSegmentEditionUID = 0x6EBC, */ |
| 201 /* ChapterPhysicalEquiv = 0x63C3, */ | 200 /* ChapterPhysicalEquiv = 0x63C3, */ |
| 202 /* ChapterTrack = 0x8F, */ | 201 /* ChapterTrack = 0x8F, */ |
| 203 /* ChapterTrackNumber = 0x89, */ | 202 /* ChapterTrackNumber = 0x89, */ |
| 204 /* ChapterDisplay = 0x80, */ | 203 /* ChapterDisplay = 0x80, */ |
| 205 /* ChapString = 0x85, */ | 204 /* ChapString = 0x85, */ |
| 206 /* ChapLanguage = 0x437C, */ | 205 /* ChapLanguage = 0x437C, */ |
| 207 /* ChapCountry = 0x437E, */ | 206 /* ChapCountry = 0x437E, */ |
| 208 /* ChapProcess = 0x6944, */ | 207 /* ChapProcess = 0x6944, */ |
| 209 /* ChapProcessCodecID = 0x6955, */ | 208 /* ChapProcessCodecID = 0x6955, */ |
| 210 /* ChapProcessPrivate = 0x450D, */ | 209 /* ChapProcessPrivate = 0x450D, */ |
| 211 /* ChapProcessCommand = 0x6911, */ | 210 /* ChapProcessCommand = 0x6911, */ |
| 212 /* ChapProcessTime = 0x6922, */ | 211 /* ChapProcessTime = 0x6922, */ |
| 213 /* ChapProcessData = 0x6933, */ | 212 /* ChapProcessData = 0x6933, */ |
| 214 /* Tagging */ | 213 /* Tagging */ |
| 215 /* Tags = 0x1254C367, */ | 214 /* Tags = 0x1254C367, */ |
| 216 /* Tag = 0x7373, */ | 215 /* Tag = 0x7373, */ |
| 217 /* Targets = 0x63C0, */ | 216 /* Targets = 0x63C0, */ |
| 218 /* TargetTypeValue = 0x68CA, */ | 217 /* TargetTypeValue = 0x68CA, */ |
| 219 /* TargetType = 0x63CA, */ | 218 /* TargetType = 0x63CA, */ |
| 220 /* Tagging_TrackUID = 0x63C5, */ | 219 /* Tagging_TrackUID = 0x63C5, */ |
| 221 /* Tagging_EditionUID = 0x63C9, */ | 220 /* Tagging_EditionUID = 0x63C9, */ |
| 222 /* Tagging_ChapterUID = 0x63C4, */ | 221 /* Tagging_ChapterUID = 0x63C4, */ |
| 223 /* AttachmentUID = 0x63C6, */ | 222 /* AttachmentUID = 0x63C6, */ |
| 224 /* SimpleTag = 0x67C8, */ | 223 /* SimpleTag = 0x67C8, */ |
| 225 /* TagName = 0x45A3, */ | 224 /* TagName = 0x45A3, */ |
| 226 /* TagLanguage = 0x447A, */ | 225 /* TagLanguage = 0x447A, */ |
| 227 /* TagDefault = 0x4484, */ | 226 /* TagDefault = 0x4484, */ |
| 228 /* TagString = 0x4487, */ | 227 /* TagString = 0x4487, */ |
| 229 /* TagBinary = 0x4485, */ | 228 /* TagBinary = 0x4485, */ |
| 230 }; | 229 }; |
| 231 #endif | 230 #endif |
| OLD | NEW |