22 #ifndef AVFORMAT_MATROSKA_H
23 #define AVFORMAT_MATROSKA_H
30 #define EBML_VERSION 1
33 #define EBML_ID_HEADER 0x1A45DFA3
36 #define EBML_ID_EBMLVERSION 0x4286
37 #define EBML_ID_EBMLREADVERSION 0x42F7
38 #define EBML_ID_EBMLMAXIDLENGTH 0x42F2
39 #define EBML_ID_EBMLMAXSIZELENGTH 0x42F3
40 #define EBML_ID_DOCTYPE 0x4282
41 #define EBML_ID_DOCTYPEVERSION 0x4287
42 #define EBML_ID_DOCTYPEREADVERSION 0x4285
45 #define EBML_ID_VOID 0xEC
46 #define EBML_ID_CRC32 0xBF
53 #define MATROSKA_ID_SEGMENT 0x18538067
56 #define MATROSKA_ID_INFO 0x1549A966
57 #define MATROSKA_ID_TRACKS 0x1654AE6B
58 #define MATROSKA_ID_CUES 0x1C53BB6B
59 #define MATROSKA_ID_TAGS 0x1254C367
60 #define MATROSKA_ID_SEEKHEAD 0x114D9B74
61 #define MATROSKA_ID_ATTACHMENTS 0x1941A469
62 #define MATROSKA_ID_CLUSTER 0x1F43B675
63 #define MATROSKA_ID_CHAPTERS 0x1043A770
66 #define MATROSKA_ID_TIMECODESCALE 0x2AD7B1
67 #define MATROSKA_ID_DURATION 0x4489
68 #define MATROSKA_ID_TITLE 0x7BA9
69 #define MATROSKA_ID_WRITINGAPP 0x5741
70 #define MATROSKA_ID_MUXINGAPP 0x4D80
71 #define MATROSKA_ID_DATEUTC 0x4461
72 #define MATROSKA_ID_SEGMENTUID 0x73A4
75 #define MATROSKA_ID_TRACKENTRY 0xAE
78 #define MATROSKA_ID_TRACKNUMBER 0xD7
79 #define MATROSKA_ID_TRACKUID 0x73C5
80 #define MATROSKA_ID_TRACKTYPE 0x83
81 #define MATROSKA_ID_TRACKVIDEO 0xE0
82 #define MATROSKA_ID_TRACKAUDIO 0xE1
83 #define MATROSKA_ID_TRACKOPERATION 0xE2
84 #define MATROSKA_ID_TRACKCOMBINEPLANES 0xE3
85 #define MATROSKA_ID_TRACKPLANE 0xE4
86 #define MATROSKA_ID_TRACKPLANEUID 0xE5
87 #define MATROSKA_ID_TRACKPLANETYPE 0xE6
88 #define MATROSKA_ID_CODECID 0x86
89 #define MATROSKA_ID_CODECPRIVATE 0x63A2
90 #define MATROSKA_ID_CODECNAME 0x258688
91 #define MATROSKA_ID_CODECINFOURL 0x3B4040
92 #define MATROSKA_ID_CODECDOWNLOADURL 0x26B240
93 #define MATROSKA_ID_CODECDECODEALL 0xAA
94 #define MATROSKA_ID_CODECDELAY 0x56AA
95 #define MATROSKA_ID_SEEKPREROLL 0x56BB
96 #define MATROSKA_ID_TRACKNAME 0x536E
97 #define MATROSKA_ID_TRACKLANGUAGE 0x22B59C
98 #define MATROSKA_ID_TRACKFLAGENABLED 0xB9
99 #define MATROSKA_ID_TRACKFLAGDEFAULT 0x88
100 #define MATROSKA_ID_TRACKFLAGFORCED 0x55AA
101 #define MATROSKA_ID_TRACKFLAGLACING 0x9C
102 #define MATROSKA_ID_TRACKMINCACHE 0x6DE7
103 #define MATROSKA_ID_TRACKMAXCACHE 0x6DF8
104 #define MATROSKA_ID_TRACKDEFAULTDURATION 0x23E383
105 #define MATROSKA_ID_TRACKCONTENTENCODINGS 0x6D80
106 #define MATROSKA_ID_TRACKCONTENTENCODING 0x6240
107 #define MATROSKA_ID_TRACKTIMECODESCALE 0x23314F
108 #define MATROSKA_ID_TRACKMAXBLKADDID 0x55EE
111 #define MATROSKA_ID_VIDEOFRAMERATE 0x2383E3
112 #define MATROSKA_ID_VIDEODISPLAYWIDTH 0x54B0
113 #define MATROSKA_ID_VIDEODISPLAYHEIGHT 0x54BA
114 #define MATROSKA_ID_VIDEOPIXELWIDTH 0xB0
115 #define MATROSKA_ID_VIDEOPIXELHEIGHT 0xBA
116 #define MATROSKA_ID_VIDEOPIXELCROPB 0x54AA
117 #define MATROSKA_ID_VIDEOPIXELCROPT 0x54BB
118 #define MATROSKA_ID_VIDEOPIXELCROPL 0x54CC
119 #define MATROSKA_ID_VIDEOPIXELCROPR 0x54DD
120 #define MATROSKA_ID_VIDEODISPLAYUNIT 0x54B2
121 #define MATROSKA_ID_VIDEOFLAGINTERLACED 0x9A
122 #define MATROSKA_ID_VIDEOFIELDORDER 0x9D
123 #define MATROSKA_ID_VIDEOSTEREOMODE 0x53B8
124 #define MATROSKA_ID_VIDEOALPHAMODE 0x53C0
125 #define MATROSKA_ID_VIDEOASPECTRATIO 0x54B3
126 #define MATROSKA_ID_VIDEOCOLORSPACE 0x2EB524
127 #define MATROSKA_ID_VIDEOCOLOR 0x55B0
129 #define MATROSKA_ID_VIDEOCOLORMATRIXCOEFF 0x55B1
130 #define MATROSKA_ID_VIDEOCOLORBITSPERCHANNEL 0x55B2
131 #define MATROSKA_ID_VIDEOCOLORCHROMASUBHORZ 0x55B3
132 #define MATROSKA_ID_VIDEOCOLORCHROMASUBVERT 0x55B4
133 #define MATROSKA_ID_VIDEOCOLORCBSUBHORZ 0x55B5
134 #define MATROSKA_ID_VIDEOCOLORCBSUBVERT 0x55B6
135 #define MATROSKA_ID_VIDEOCOLORCHROMASITINGHORZ 0x55B7
136 #define MATROSKA_ID_VIDEOCOLORCHROMASITINGVERT 0x55B8
137 #define MATROSKA_ID_VIDEOCOLORRANGE 0x55B9
138 #define MATROSKA_ID_VIDEOCOLORTRANSFERCHARACTERISTICS 0x55BA
140 #define MATROSKA_ID_VIDEOCOLORPRIMARIES 0x55BB
141 #define MATROSKA_ID_VIDEOCOLORMAXCLL 0x55BC
142 #define MATROSKA_ID_VIDEOCOLORMAXFALL 0x55BD
144 #define MATROSKA_ID_VIDEOCOLORMASTERINGMETA 0x55D0
145 #define MATROSKA_ID_VIDEOCOLOR_RX 0x55D1
146 #define MATROSKA_ID_VIDEOCOLOR_RY 0x55D2
147 #define MATROSKA_ID_VIDEOCOLOR_GX 0x55D3
148 #define MATROSKA_ID_VIDEOCOLOR_GY 0x55D4
149 #define MATROSKA_ID_VIDEOCOLOR_BX 0x55D5
150 #define MATROSKA_ID_VIDEOCOLOR_BY 0x55D6
151 #define MATROSKA_ID_VIDEOCOLOR_WHITEX 0x55D7
152 #define MATROSKA_ID_VIDEOCOLOR_WHITEY 0x55D8
153 #define MATROSKA_ID_VIDEOCOLOR_LUMINANCEMAX 0x55D9
154 #define MATROSKA_ID_VIDEOCOLOR_LUMINANCEMIN 0x55DA
156 #define MATROSKA_ID_VIDEOPROJECTION 0x7670
157 #define MATROSKA_ID_VIDEOPROJECTIONTYPE 0x7671
158 #define MATROSKA_ID_VIDEOPROJECTIONPRIVATE 0x7672
159 #define MATROSKA_ID_VIDEOPROJECTIONPOSEYAW 0x7673
160 #define MATROSKA_ID_VIDEOPROJECTIONPOSEPITCH 0x7674
161 #define MATROSKA_ID_VIDEOPROJECTIONPOSEROLL 0x7675
164 #define MATROSKA_ID_AUDIOSAMPLINGFREQ 0xB5
165 #define MATROSKA_ID_AUDIOOUTSAMPLINGFREQ 0x78B5
167 #define MATROSKA_ID_AUDIOBITDEPTH 0x6264
168 #define MATROSKA_ID_AUDIOCHANNELS 0x9F
171 #define MATROSKA_ID_ENCODINGORDER 0x5031
172 #define MATROSKA_ID_ENCODINGSCOPE 0x5032
173 #define MATROSKA_ID_ENCODINGTYPE 0x5033
174 #define MATROSKA_ID_ENCODINGCOMPRESSION 0x5034
175 #define MATROSKA_ID_ENCODINGCOMPALGO 0x4254
176 #define MATROSKA_ID_ENCODINGCOMPSETTINGS 0x4255
178 #define MATROSKA_ID_ENCODINGENCRYPTION 0x5035
179 #define MATROSKA_ID_ENCODINGENCAESSETTINGS 0x47E7
180 #define MATROSKA_ID_ENCODINGENCALGO 0x47E1
181 #define MATROSKA_ID_ENCODINGENCKEYID 0x47E2
182 #define MATROSKA_ID_ENCODINGSIGALGO 0x47E5
183 #define MATROSKA_ID_ENCODINGSIGHASHALGO 0x47E6
184 #define MATROSKA_ID_ENCODINGSIGKEYID 0x47E4
185 #define MATROSKA_ID_ENCODINGSIGNATURE 0x47E3
188 #define MATROSKA_ID_POINTENTRY 0xBB
191 #define MATROSKA_ID_CUETIME 0xB3
192 #define MATROSKA_ID_CUETRACKPOSITION 0xB7
195 #define MATROSKA_ID_CUETRACK 0xF7
196 #define MATROSKA_ID_CUECLUSTERPOSITION 0xF1
197 #define MATROSKA_ID_CUERELATIVEPOSITION 0xF0
198 #define MATROSKA_ID_CUEDURATION 0xB2
199 #define MATROSKA_ID_CUEBLOCKNUMBER 0x5378
202 #define MATROSKA_ID_TAG 0x7373
203 #define MATROSKA_ID_SIMPLETAG 0x67C8
204 #define MATROSKA_ID_TAGNAME 0x45A3
205 #define MATROSKA_ID_TAGSTRING 0x4487
206 #define MATROSKA_ID_TAGLANG 0x447A
207 #define MATROSKA_ID_TAGDEFAULT 0x4484
208 #define MATROSKA_ID_TAGDEFAULT_BUG 0x44B4
209 #define MATROSKA_ID_TAGTARGETS 0x63C0
210 #define MATROSKA_ID_TAGTARGETS_TYPE 0x63CA
211 #define MATROSKA_ID_TAGTARGETS_TYPEVALUE 0x68CA
212 #define MATROSKA_ID_TAGTARGETS_TRACKUID 0x63C5
213 #define MATROSKA_ID_TAGTARGETS_CHAPTERUID 0x63C4
214 #define MATROSKA_ID_TAGTARGETS_ATTACHUID 0x63C6
217 #define MATROSKA_ID_SEEKENTRY 0x4DBB
220 #define MATROSKA_ID_SEEKID 0x53AB
221 #define MATROSKA_ID_SEEKPOSITION 0x53AC
224 #define MATROSKA_ID_CLUSTERTIMECODE 0xE7
225 #define MATROSKA_ID_CLUSTERPOSITION 0xA7
226 #define MATROSKA_ID_CLUSTERPREVSIZE 0xAB
227 #define MATROSKA_ID_BLOCKGROUP 0xA0
228 #define MATROSKA_ID_BLOCKADDITIONS 0x75A1
229 #define MATROSKA_ID_BLOCKMORE 0xA6
230 #define MATROSKA_ID_BLOCKADDID 0xEE
231 #define MATROSKA_ID_BLOCKADDITIONAL 0xA5
232 #define MATROSKA_ID_SIMPLEBLOCK 0xA3
235 #define MATROSKA_ID_BLOCK 0xA1
236 #define MATROSKA_ID_BLOCKDURATION 0x9B
237 #define MATROSKA_ID_BLOCKREFERENCE 0xFB
238 #define MATROSKA_ID_CODECSTATE 0xA4
239 #define MATROSKA_ID_DISCARDPADDING 0x75A2
242 #define MATROSKA_ID_ATTACHEDFILE 0x61A7
243 #define MATROSKA_ID_FILEDESC 0x467E
244 #define MATROSKA_ID_FILENAME 0x466E
245 #define MATROSKA_ID_FILEMIMETYPE 0x4660
246 #define MATROSKA_ID_FILEDATA 0x465C
247 #define MATROSKA_ID_FILEUID 0x46AE
250 #define MATROSKA_ID_EDITIONENTRY 0x45B9
251 #define MATROSKA_ID_CHAPTERATOM 0xB6
252 #define MATROSKA_ID_CHAPTERTIMESTART 0x91
253 #define MATROSKA_ID_CHAPTERTIMEEND 0x92
254 #define MATROSKA_ID_CHAPTERDISPLAY 0x80
255 #define MATROSKA_ID_CHAPSTRING 0x85
256 #define MATROSKA_ID_CHAPLANG 0x437C
257 #define MATROSKA_ID_CHAPCOUNTRY 0x437E
258 #define MATROSKA_ID_EDITIONUID 0x45BC
259 #define MATROSKA_ID_EDITIONFLAGHIDDEN 0x45BD
260 #define MATROSKA_ID_EDITIONFLAGDEFAULT 0x45DB
261 #define MATROSKA_ID_EDITIONFLAGORDERED 0x45DD
262 #define MATROSKA_ID_CHAPTERUID 0x73C4
263 #define MATROSKA_ID_CHAPTERFLAGHIDDEN 0x98
264 #define MATROSKA_ID_CHAPTERFLAGENABLED 0x4598
265 #define MATROSKA_ID_CHAPTERPHYSEQUIV 0x63C3
358 #define EBML_MAX_DEPTH 16
360 #define MATROSKA_VIDEO_STEREO_PLANE_COUNT 3
370 #define INITIALIZATION_RANGE "webm_dash_manifest_initialization_range"
371 #define CUES_START "webm_dash_manifest_cues_start"
372 #define CUES_END "webm_dash_manifest_cues_end"
373 #define FILENAME "webm_dash_manifest_file_name"
374 #define BANDWIDTH "webm_dash_manifest_bandwidth"
375 #define DURATION "webm_dash_manifest_duration"
376 #define CLUSTER_KEYFRAME "webm_dash_manifest_cluster_keyframe"
377 #define CUE_TIMESTAMPS "webm_dash_manifest_cue_timestamps"
378 #define TRACK_NUMBER "webm_dash_manifest_track_number"
379 #define CODEC_PRIVATE_SIZE "webm_dash_manifest_codec_priv_size"
MatroskaColourChromaSitingVert
MatroskaColourChromaSitingHorz
const CodecMime ff_mkv_image_mime_tags[]
MatroskaVideoStereoModeType
const CodecTags ff_mkv_codec_tags[]
MatroskaVideoProjectionType
AVCodecID
Identify the syntax and semantics of the bitstream.
#define MATROSKA_VIDEO_STEREO_PLANE_COUNT
const AVMetadataConv ff_mkv_metadata_conv[]
MatroskaVideoInterlaceFlag
const char *const ff_matroska_video_stereo_plane[MATROSKA_VIDEO_STEREO_PLANE_COUNT]
Libavcodec external API header.
const CodecMime ff_mkv_mime_tags[]
MatroskaTrackEncodingCompAlgo
const char *const ff_matroska_video_stereo_mode[MATROSKA_VIDEO_STEREOMODE_TYPE_NB]
int ff_mkv_stereo3d_conv(AVStream *st, MatroskaVideoStereoModeType stereo_mode)