Enum rav1e::prelude::ColorPrimaries[][src]

#[repr(C)]pub enum ColorPrimaries {
    BT709,
    Unspecified,
    BT470M,
    BT470BG,
    BT601,
    SMPTE240,
    GenericFilm,
    BT2020,
    XYZ,
    SMPTE431,
    SMPTE432,
    EBU3213,
}

Supported Color Primaries

As defined by “Color primaries” section of ISO/IEC 23091-4/ITU-T H.273

Variants

BT709

BT.709

Unspecified

Unspecified, must be signaled or inferred outside of the bitstream

BT470M

BT.470 System M (historical)

BT470BG

BT.470 System B, G (historical)

BT601

BT.601-7 525 (SMPTE 170 M)

SMPTE240

SMPTE 240M (historical)

GenericFilm

Generic film

BT2020

BT.2020, BT.2100

XYZ

SMPTE 248 (CIE 1921 XYZ)

SMPTE431

SMPTE RP 431-2

SMPTE432

SMPTE EG 432-1

EBU3213

EBU Tech. 3213-E

Implementations

impl ColorPrimaries[src]

pub fn variants() -> [&'static str; 12][src]

Returns an array of valid values which can be converted into this enum.

Trait Implementations

impl Clone for ColorPrimaries[src]

impl Copy for ColorPrimaries[src]

impl Debug for ColorPrimaries[src]

impl Default for ColorPrimaries[src]

impl Display for ColorPrimaries[src]

impl FromPrimitive for ColorPrimaries[src]

impl FromStr for ColorPrimaries[src]

type Err = String

The associated error which can be returned from parsing.

impl PartialEq<ColorPrimaries> for ColorPrimaries[src]

impl StructuralPartialEq for ColorPrimaries[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.