avif_serialize/
constants.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum ColorPrimaries {
    /// ITU-R BT1361
    Bt709 = 1,
    Unspecified = 2,
    /// ITU-R BT601-6 525
    Bt601 = 6,
    /// ITU-R BT2020
    Bt2020 = 9,
    /// SMPTE ST 431-2
    DciP3 = 11,
    /// SMPTE ST 432-1
    DisplayP3 = 12,
}

#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum TransferCharacteristics {
    /// ITU-R BT1361
    Bt709 = 1,
    Unspecified = 2,
    /// ITU-R BT601-6 525
    Bt601 = 6,
    /// "Linear transfer characteristics"
    Linear = 8,
    /// "Logarithmic transfer characteristic (100:1 range)"
    Log = 9,
    /// "Logarithmic transfer characteristic (100 * Sqrt(10) : 1 range)"
    LogSqrt = 10,
    /// sRGB
    Srgb = 13,
    /// ITU-R BT2020 for 10-bit system
    Bt2020_10 = 14,
    /// ITU-R BT2020 for 12-bit system
    Bt2020_12 = 15,
}

#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum MatrixCoefficients {
    /// GBR (sRGB)
    Rgb = 0,
    /// ITU-R BT1361
    Bt709 = 1,
    Unspecified = 2,
    /// ITU-R BT601-6 525
    Bt601 = 6,
    Ycgco = 8,
    /// ITU-R BT2020 non-constant luminance system
    Bt2020Ncl = 9,
    /// ITU-R BT2020 constant luminance system
    Bt2020Cl = 10,
}