#[non_exhaustive]
pub enum Differencing {
    Bt407MPal,
    Bt407MPalPrecise,
    Bt601,
    Bt601Quantized,
    Bt601FullSwing,
    Bt709,
    Bt709Quantized,
    Bt709FullSwing,
    YDbDr,
    Bt2020,
    Bt2100,
    YCoCg,
}
Expand description

The differencing scheme used in a Yuv construction.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Bt407MPal

Rec BT.470 M/PAL differencing scheme for E_U and E_V, the naming origin for ‘YUV’. FIXME: add YIQ proper, to add BT.470 M/NTSC?

Note this same differencing scheme is used with different color primaries and whitepoints. With those shared with BT601_625 and D65 in more modern systems and a different one under illuminant C.

Bt407MPalPrecise

The BT.470 M/PAL has a typo and, based on its parameters, we can derive a more accurate version than as what was published..

Bt601

Rec BT.601 luminance differencing.

Bt601Quantized

Rec BT.601 luminance differencing, quantized with headroom. This is intended for analog use, not for digital images.

Bt601FullSwing

Rec BT.601 luminance differencing, quantized without headroom.

Please tell the crate author where it’s used but this makes it easy to quantize to 8-bit unsigned integers.

Bt709

Rec BT.709 luminance differencing.

Bt709Quantized

Analog form

Bt709FullSwing

Rec BT.709 luminance differencing, quantized without headroom. Not technically an ITU BT recommendation, but introduced in h.264.

YDbDr

Factors from analog SECAM standard.

Bt2020

Rec BT.2020 luminance differencing.

Bt2100

Rec BT.2100 luminance differencing. Same coefficients as the BT2020 scheme.

YCoCg

Differencing scheme from YCoCb/ITU-T H.273.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.