mkvparser/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/mkvparser-6235fc5ef5b1efcc/out/
enumerations.rs

1use crate::ebml::ebml_enumerations;
2ebml_enumerations! {
3    /// This `ChapterTranslate` applies to this chapter codec of the given chapter edition(s); see (#chapprocesscodecid-element).
4    ChapterTranslateCodec {
5        /// Chapter commands using the Matroska Script codec.
6        MatroskaScript = 0, original_label = "Matroska Script";
7        /// Chapter commands using the DVD-like codec.
8        DvdMenu = 1, original_label = "DVD-menu";
9    };
10    /// The `TrackType` defines the type of each frame found in the Track.
11    /// The value **SHOULD** be stored on 1 octet.
12    TrackType {
13        /// An image.
14        Video = 1, original_label = "video";
15        /// Audio samples.
16        Audio = 2, original_label = "audio";
17        /// A mix of different other TrackType. The codec needs to define how the `Matroska Player` should interpret such data.
18        Complex = 3, original_label = "complex";
19        /// An image to be rendered over the video track(s).
20        Logo = 16, original_label = "logo";
21        /// Subtitle or closed caption data to be rendered over the video track(s).
22        Subtitle = 17, original_label = "subtitle";
23        /// Interactive button(s) to be rendered over the video track(s).
24        Buttons = 18, original_label = "buttons";
25        /// Metadata used to control the player of the `Matroska Player`.
26        Control = 32, original_label = "control";
27        /// Timed metadata that can be passed on to the `Matroska Player`.
28        Metadata = 33, original_label = "metadata";
29    };
30    /// This `TrackTranslate` applies to this chapter codec of the given chapter edition(s); see (#chapprocesscodecid-element).
31    TrackTranslateCodec {
32        /// Chapter commands using the Matroska Script codec.
33        MatroskaScript = 0, original_label = "Matroska Script";
34        /// Chapter commands using the DVD-like codec.
35        DvdMenu = 1, original_label = "DVD-menu";
36    };
37    /// Specify whether the video frames in this track are interlaced or not.
38    FlagInterlaced {
39        /// Unknown status.
40        /// This value **SHOULD** be avoided.
41        Undetermined = 0, original_label = "undetermined";
42        /// Interlaced frames.
43        Interlaced = 1, original_label = "interlaced";
44        /// No interlacing.
45        Progressive = 2, original_label = "progressive";
46    };
47    /// If FlagInterlaced is not set to 1, this Element **MUST** be ignored.
48    FieldOrder {
49        /// Interlaced frames.
50        /// This value **SHOULD** be avoided, setting FlagInterlaced to 2 is sufficient.
51        Progressive = 0, original_label = "progressive";
52        /// Top field displayed first. Top field stored first.
53        Tff = 1, original_label = "tff";
54        /// Unknown field order.
55        /// This value **SHOULD** be avoided.
56        Undetermined = 2, original_label = "undetermined";
57        /// Bottom field displayed first. Bottom field stored first.
58        Bff = 6, original_label = "bff";
59        /// Top field displayed first. Fields are interleaved in storage
60        /// with the top line of the top field stored first.
61        BffSwapped = 9, original_label = "bff(swapped)";
62        /// Bottom field displayed first. Fields are interleaved in storage
63        /// with the top line of the top field stored first.
64        TffSwapped = 14, original_label = "tff(swapped)";
65    };
66    /// Stereo-3D video mode. There are some more details in (#multi-planar-and-3d-videos).
67    StereoMode {
68        /// mono
69        Mono = 0, original_label = "mono";
70        /// side by side (left eye first)
71        SideBySideLeftEyeFirst = 1, original_label = "side by side (left eye first)";
72        /// top - bottom (right eye is first)
73        TopBottomRightEyeIsFirst = 2, original_label = "top - bottom (right eye is first)";
74        /// top - bottom (left eye is first)
75        TopBottomLeftEyeIsFirst = 3, original_label = "top - bottom (left eye is first)";
76        /// checkboard (right eye is first)
77        CheckboardRightEyeIsFirst = 4, original_label = "checkboard (right eye is first)";
78        /// checkboard (left eye is first)
79        CheckboardLeftEyeIsFirst = 5, original_label = "checkboard (left eye is first)";
80        /// row interleaved (right eye is first)
81        RowInterleavedRightEyeIsFirst = 6, original_label = "row interleaved (right eye is first)";
82        /// row interleaved (left eye is first)
83        RowInterleavedLeftEyeIsFirst = 7, original_label = "row interleaved (left eye is first)";
84        /// column interleaved (right eye is first)
85        ColumnInterleavedRightEyeIsFirst = 8, original_label = "column interleaved (right eye is first)";
86        /// column interleaved (left eye is first)
87        ColumnInterleavedLeftEyeIsFirst = 9, original_label = "column interleaved (left eye is first)";
88        /// anaglyph (cyan/red)
89        AnaglyphCyanRed = 10, original_label = "anaglyph (cyan/red)";
90        /// side by side (right eye first)
91        SideBySideRightEyeFirst = 11, original_label = "side by side (right eye first)";
92        /// anaglyph (green/magenta)
93        AnaglyphGreenMagenta = 12, original_label = "anaglyph (green/magenta)";
94        /// both eyes laced in one Block (left eye is first)
95        BothEyesLacedInOneBlockLeftEyeIsFirst = 13, original_label = "both eyes laced in one Block (left eye is first)";
96        /// both eyes laced in one Block (right eye is first)
97        BothEyesLacedInOneBlockRightEyeIsFirst = 14, original_label = "both eyes laced in one Block (right eye is first)";
98    };
99    /// Indicate whether the BlockAdditional Element with BlockAddID of "1" contains Alpha data, as defined by to the Codec Mapping for the `CodecID`.
100    /// Undefined values **SHOULD NOT** be used as the behavior of known implementations is different (considered either as 0 or 1).
101    AlphaMode {
102        /// The BlockAdditional Element with BlockAddID of "1" does not exist or **SHOULD NOT** be considered as containing such data.
103        None = 0, original_label = "none";
104        /// The BlockAdditional Element with BlockAddID of "1" contains alpha channel data.
105        Present = 1, original_label = "present";
106    };
107    /// Bogus StereoMode value used in old versions of libmatroska.
108    OldStereoMode {
109        /// mono
110        Mono = 0, original_label = "mono";
111        /// right eye
112        RightEye = 1, original_label = "right eye";
113        /// left eye
114        LeftEye = 2, original_label = "left eye";
115        /// both eyes
116        BothEyes = 3, original_label = "both eyes";
117    };
118    /// How DisplayWidth & DisplayHeight are interpreted.
119    DisplayUnit {
120        /// pixels
121        Pixels = 0, original_label = "pixels";
122        /// centimeters
123        Centimeters = 1, original_label = "centimeters";
124        /// inches
125        Inches = 2, original_label = "inches";
126        /// display aspect ratio
127        DisplayAspectRatio = 3, original_label = "display aspect ratio";
128        /// unknown
129        Unknown = 4, original_label = "unknown";
130    };
131    /// Specify the possible modifications to the aspect ratio.
132    AspectRatioType {
133        /// free resizing
134        FreeResizing = 0, original_label = "free resizing";
135        /// keep aspect ratio
136        KeepAspectRatio = 1, original_label = "keep aspect ratio";
137        /// fixed
138        Fixed = 2, original_label = "fixed";
139    };
140    /// The Matrix Coefficients of the video used to derive luma and chroma values from red, green, and blue color primaries.
141    /// For clarity, the value and meanings for MatrixCoefficients are adopted from Table 4 of ISO/IEC 23001-8:2016 or ITU-T H.273.
142    MatrixCoefficients {
143        /// Identity
144        Identity = 0, original_label = "Identity";
145        /// ITU-R BT.709
146        ItuRBt709 = 1, original_label = "ITU-R BT.709";
147        /// unspecified
148        Unspecified = 2, original_label = "unspecified";
149        /// reserved
150        Reserved1 = 3, original_label = "reserved";
151        /// US FCC 73.682
152        UsFcc73682 = 4, original_label = "US FCC 73.682";
153        /// ITU-R BT.470BG
154        ItuRBt470Bg = 5, original_label = "ITU-R BT.470BG";
155        /// SMPTE 170M
156        Smpte170M = 6, original_label = "SMPTE 170M";
157        /// SMPTE 240M
158        Smpte240M = 7, original_label = "SMPTE 240M";
159        /// YCoCg
160        YCoCg = 8, original_label = "YCoCg";
161        /// BT2020 Non-constant Luminance
162        Bt2020NonConstantLuminance = 9, original_label = "BT2020 Non-constant Luminance";
163        /// BT2020 Constant Luminance
164        Bt2020ConstantLuminance = 10, original_label = "BT2020 Constant Luminance";
165        /// SMPTE ST 2085
166        SmpteSt2085 = 11, original_label = "SMPTE ST 2085";
167        /// Chroma-derived Non-constant Luminance
168        ChromaDerivedNonConstantLuminance = 12, original_label = "Chroma-derived Non-constant Luminance";
169        /// Chroma-derived Constant Luminance
170        ChromaDerivedConstantLuminance = 13, original_label = "Chroma-derived Constant Luminance";
171        /// ITU-R BT.2100-0
172        ItuRBt21000 = 14, original_label = "ITU-R BT.2100-0";
173    };
174    /// How chroma is subsampled horizontally.
175    ChromaSitingHorz {
176        /// unspecified
177        Unspecified = 0, original_label = "unspecified";
178        /// left collocated
179        LeftCollocated = 1, original_label = "left collocated";
180        /// half
181        Half = 2, original_label = "half";
182    };
183    /// How chroma is subsampled vertically.
184    ChromaSitingVert {
185        /// unspecified
186        Unspecified = 0, original_label = "unspecified";
187        /// top collocated
188        TopCollocated = 1, original_label = "top collocated";
189        /// half
190        Half = 2, original_label = "half";
191    };
192    /// Clipping of the color ranges.
193    Range {
194        /// unspecified
195        Unspecified = 0, original_label = "unspecified";
196        /// broadcast range
197        BroadcastRange = 1, original_label = "broadcast range";
198        /// full range (no clipping)
199        FullRangeNoClipping = 2, original_label = "full range (no clipping)";
200        /// defined by MatrixCoefficients / TransferCharacteristics
201        DefinedByMatrixCoefficientsTransferCharacteristics = 3, original_label = "defined by MatrixCoefficients / TransferCharacteristics";
202    };
203    /// The transfer characteristics of the video. For clarity,
204    /// the value and meanings for TransferCharacteristics are adopted from Table 3 of ISO/IEC 23091-4 or ITU-T H.273.
205    TransferCharacteristics {
206        /// reserved
207        Reserved1 = 0, original_label = "reserved";
208        /// ITU-R BT.709
209        ItuRBt709 = 1, original_label = "ITU-R BT.709";
210        /// unspecified
211        Unspecified = 2, original_label = "unspecified";
212        /// reserved
213        Reserved2 = 3, original_label = "reserved";
214        /// Gamma 2.2 curve - BT.470M
215        Gamma22CurveBt470M = 4, original_label = "Gamma 2.2 curve - BT.470M";
216        /// Gamma 2.8 curve - BT.470BG
217        Gamma28CurveBt470Bg = 5, original_label = "Gamma 2.8 curve - BT.470BG";
218        /// SMPTE 170M
219        Smpte170M = 6, original_label = "SMPTE 170M";
220        /// SMPTE 240M
221        Smpte240M = 7, original_label = "SMPTE 240M";
222        /// Linear
223        Linear = 8, original_label = "Linear";
224        /// Log
225        Log = 9, original_label = "Log";
226        /// Log Sqrt
227        LogSqrt = 10, original_label = "Log Sqrt";
228        /// IEC 61966-2-4
229        Iec6196624 = 11, original_label = "IEC 61966-2-4";
230        /// ITU-R BT.1361 Extended Colour Gamut
231        ItuRBt1361ExtendedColourGamut = 12, original_label = "ITU-R BT.1361 Extended Colour Gamut";
232        /// IEC 61966-2-1
233        Iec6196621 = 13, original_label = "IEC 61966-2-1";
234        /// ITU-R BT.2020 10 bit
235        ItuRBt202010Bit = 14, original_label = "ITU-R BT.2020 10 bit";
236        /// ITU-R BT.2020 12 bit
237        ItuRBt202012Bit = 15, original_label = "ITU-R BT.2020 12 bit";
238        /// ITU-R BT.2100 Perceptual Quantization
239        ItuRBt2100PerceptualQuantization = 16, original_label = "ITU-R BT.2100 Perceptual Quantization";
240        /// SMPTE ST 428-1
241        SmpteSt4281 = 17, original_label = "SMPTE ST 428-1";
242        /// ARIB STD-B67 (HLG)
243        AribStdB67Hlg = 18, original_label = "ARIB STD-B67 (HLG)";
244    };
245    /// The colour primaries of the video. For clarity,
246    /// the value and meanings for Primaries are adopted from Table 2 of ISO/IEC 23091-4 or ITU-T H.273.
247    Primaries {
248        /// reserved
249        Reserved1 = 0, original_label = "reserved";
250        /// ITU-R BT.709
251        ItuRBt709 = 1, original_label = "ITU-R BT.709";
252        /// unspecified
253        Unspecified = 2, original_label = "unspecified";
254        /// reserved
255        Reserved2 = 3, original_label = "reserved";
256        /// ITU-R BT.470M
257        ItuRBt470M = 4, original_label = "ITU-R BT.470M";
258        /// ITU-R BT.470BG - BT.601 625
259        ItuRBt470BgBt601625 = 5, original_label = "ITU-R BT.470BG - BT.601 625";
260        /// ITU-R BT.601 525 - SMPTE 170M
261        ItuRBt601525Smpte170M = 6, original_label = "ITU-R BT.601 525 - SMPTE 170M";
262        /// SMPTE 240M
263        Smpte240M = 7, original_label = "SMPTE 240M";
264        /// FILM
265        Film = 8, original_label = "FILM";
266        /// ITU-R BT.2020
267        ItuRBt2020 = 9, original_label = "ITU-R BT.2020";
268        /// SMPTE ST 428-1
269        SmpteSt4281 = 10, original_label = "SMPTE ST 428-1";
270        /// SMPTE RP 432-2
271        SmpteRp4322 = 11, original_label = "SMPTE RP 432-2";
272        /// SMPTE EG 432-2
273        SmpteEg4322 = 12, original_label = "SMPTE EG 432-2";
274        /// EBU Tech. 3213-E - JEDEC P22 phosphors
275        EbuTech3213EJedecP22Phosphors = 22, original_label = "EBU Tech. 3213-E - JEDEC P22 phosphors";
276    };
277    /// Describes the projection used for this video track.
278    ProjectionType {
279        /// rectangular
280        Rectangular = 0, original_label = "rectangular";
281        /// equirectangular
282        Equirectangular = 1, original_label = "equirectangular";
283        /// cubemap
284        Cubemap = 2, original_label = "cubemap";
285        /// mesh
286        Mesh = 3, original_label = "mesh";
287    };
288    /// The kind of plane this track corresponds to.
289    TrackPlaneType {
290        /// left eye
291        LeftEye = 0, original_label = "left eye";
292        /// right eye
293        RightEye = 1, original_label = "right eye";
294        /// background
295        Background = 2, original_label = "background";
296    };
297    /// A bit field that describes which Elements have been modified in this way.
298    /// Values (big-endian) can be OR'ed.
299    ContentEncodingScope {
300        /// All frame contents, excluding lacing data.
301        Block = 1, original_label = "Block";
302        /// The track's private data.
303        Private = 2, original_label = "Private";
304        /// The next ContentEncoding (next `ContentEncodingOrder`. Either the data inside `ContentCompression` and/or `ContentEncryption`).
305        /// This value **SHOULD NOT** be used.
306        Next = 4, original_label = "Next";
307    };
308    /// A value describing what kind of transformation is applied.
309    ContentEncodingType {
310        /// Compression
311        Compression = 0, original_label = "Compression";
312        /// Encryption
313        Encryption = 1, original_label = "Encryption";
314    };
315    /// The compression algorithm used.
316    ContentCompAlgo {
317        /// zlib compression (RFC1950).
318        Zlib = 0, original_label = "zlib";
319        /// bzip2 compression (BZIP2), **SHOULD NOT** be used; see usage notes.
320        Bzlib = 1, original_label = "bzlib";
321        /// Lempel-Ziv-Oberhumer compression (LZO), **SHOULD NOT** be used; see usage notes.
322        Lzo1X = 2, original_label = "lzo1x";
323        /// Octets in `ContentCompSettings` ((#contentcompsettings-element)) have been stripped from each frame.
324        HeaderStripping = 3, original_label = "Header Stripping";
325    };
326    /// The encryption algorithm used.
327    ContentEncAlgo {
328        /// The data are not encrypted.
329        NotEncrypted = 0, original_label = "Not encrypted";
330        /// Data Encryption Standard (DES) (FIPS.46-3).
331        Des = 1, original_label = "DES";
332        /// Triple Data Encryption Algorithm (SP.800-67).
333        TripleDes = 2, original_label = "3DES";
334        /// Twofish Encryption Algorithm.
335        Twofish = 3, original_label = "Twofish";
336        /// Blowfish Encryption Algorithm.
337        Blowfish = 4, original_label = "Blowfish";
338        /// Advanced Encryption Standard (AES) (FIPS.197).
339        Aes = 5, original_label = "AES";
340    };
341    /// The AES cipher mode used in the encryption.
342    AesSettingsCipherMode {
343        /// Counter (SP.800-38A).
344        AesCtr = 1, original_label = "AES-CTR";
345        /// Cipher Block Chaining (SP.800-38A).
346        AesCbc = 2, original_label = "AES-CBC";
347    };
348    /// The algorithm used for the signature.
349    ContentSigAlgo {
350        /// Not signed
351        NotSigned = 0, original_label = "Not signed";
352        /// RSA
353        Rsa = 1, original_label = "RSA";
354    };
355    /// The hash algorithm used for the signature.
356    ContentSigHashAlgo {
357        /// Not signed
358        NotSigned = 0, original_label = "Not signed";
359        /// SHA1-160
360        Sha1160 = 1, original_label = "SHA1-160";
361        /// MD5
362        Md5 = 2, original_label = "MD5";
363    };
364    /// Defines when the process command **SHOULD** be handled
365    ChapProcessTime {
366        /// during the whole chapter
367        DuringTheWholeChapter = 0, original_label = "during the whole chapter";
368        /// before starting playback
369        BeforeStartingPlayback = 1, original_label = "before starting playback";
370        /// after playback of the chapter
371        AfterPlaybackOfTheChapter = 2, original_label = "after playback of the chapter";
372    };
373    /// A number to indicate the logical level of the target.
374    TargetTypeValue {
375        /// The highest hierarchical level that tags can describe.
376        Collection = 70, original_label = "COLLECTION";
377        /// A list of lower levels grouped together.
378        EditionIssueVolumeOpusSeasonSequel = 60, original_label = "EDITION / ISSUE / VOLUME / OPUS / SEASON / SEQUEL";
379        /// The most common grouping level of music and video (equals to an episode for TV series).
380        AlbumOperaConcertMovieEpisode = 50, original_label = "ALBUM / OPERA / CONCERT / MOVIE / EPISODE";
381        /// When an album or episode has different logical parts.
382        PartSession = 40, original_label = "PART / SESSION";
383        /// The common parts of an album or movie.
384        TrackSongChapter = 30, original_label = "TRACK / SONG / CHAPTER";
385        /// Corresponds to parts of a track for audio (like a movement).
386        SubtrackPartMovementScene = 20, original_label = "SUBTRACK / PART / MOVEMENT / SCENE";
387        /// The lowest hierarchy found in music or movies.
388        Shot = 10, original_label = "SHOT";
389    };
390}