avif_serialize/
constants.rs

1#[derive(Debug, Copy, Clone, PartialEq, Eq)]
2#[non_exhaustive]
3pub enum ColorPrimaries {
4    /// ITU-R BT1361
5    Bt709 = 1,
6    Unspecified = 2,
7    /// ITU-R BT601-6 525
8    Bt601 = 6,
9    /// ITU-R BT2020
10    Bt2020 = 9,
11    /// SMPTE ST 431-2
12    DciP3 = 11,
13    /// SMPTE ST 432-1
14    DisplayP3 = 12,
15}
16
17#[derive(Debug, Copy, Clone, PartialEq, Eq)]
18#[non_exhaustive]
19pub enum TransferCharacteristics {
20    /// ITU-R BT1361
21    Bt709 = 1,
22    Unspecified = 2,
23    /// ITU-R BT601-6 525
24    Bt601 = 6,
25    /// "Linear transfer characteristics"
26    Linear = 8,
27    /// "Logarithmic transfer characteristic (100:1 range)"
28    Log = 9,
29    /// "Logarithmic transfer characteristic (100 * Sqrt(10) : 1 range)"
30    LogSqrt = 10,
31    /// sRGB
32    Srgb = 13,
33    /// ITU-R BT2020 for 10-bit system
34    Bt2020_10 = 14,
35    /// ITU-R BT2020 for 12-bit system
36    Bt2020_12 = 15,
37}
38
39#[derive(Debug, Copy, Clone, PartialEq, Eq)]
40#[non_exhaustive]
41pub enum MatrixCoefficients {
42    /// GBR (sRGB)
43    Rgb = 0,
44    /// ITU-R BT1361
45    Bt709 = 1,
46    Unspecified = 2,
47    /// ITU-R BT601-6 525
48    Bt601 = 6,
49    Ycgco = 8,
50    /// ITU-R BT2020 non-constant luminance system
51    Bt2020Ncl = 9,
52    /// ITU-R BT2020 constant luminance system
53    Bt2020Cl = 10,
54}