[][src]Enum gstreamer_video::VideoColorPrimaries

#[non_exhaustive]pub enum VideoColorPrimaries {
    Unknown,
    Bt709,
    Bt470m,
    Bt470bg,
    Smpte170m,
    Smpte240m,
    Film,
    Bt2020,
    Adobergb,
    Smptest428,
    Smpterp431,
    Smpteeg432,
    Ebu3213,
    // some variants omitted
}

The color primaries define the how to transform linear RGB values to and from the CIE XYZ colorspace.

Variants (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.
Unknown

unknown color primaries

Bt709

BT709 primaries

Bt470m

BT470M primaries

Bt470bg

BT470BG primaries

Smpte170m

SMPTE170M primaries

Smpte240m

SMPTE240M primaries

Film

Generic film

Bt2020

BT2020 primaries. Since: 1.6

Adobergb

Adobe RGB primaries. Since: 1.8

Smptest428

SMPTE ST 428 primaries. Since: 1.16

Smpterp431

SMPTE RP 431 primaries. Since: 1.16

Smpteeg432

SMPTE EG 432 primaries. Since: 1.16

Ebu3213

EBU 3213 primaries. Since: 1.16

Implementations

impl VideoColorPrimaries[src]

pub fn from_iso(iso: u32) -> Result<VideoColorPrimaries, BoolError>[src]

pub fn to_iso(&self) -> u32[src]

Trait Implementations

impl Clone for VideoColorPrimaries[src]

impl Copy for VideoColorPrimaries[src]

impl Debug for VideoColorPrimaries[src]

impl Eq for VideoColorPrimaries[src]

impl<'a> FromValue<'a> for VideoColorPrimaries[src]

impl<'a> FromValueOptional<'a> for VideoColorPrimaries[src]

impl Hash for VideoColorPrimaries[src]

impl Ord for VideoColorPrimaries[src]

impl PartialEq<VideoColorPrimaries> for VideoColorPrimaries[src]

impl PartialOrd<VideoColorPrimaries> for VideoColorPrimaries[src]

impl SetValue for VideoColorPrimaries[src]

impl StaticType for VideoColorPrimaries[src]

impl StructuralEq for VideoColorPrimaries[src]

impl StructuralPartialEq for VideoColorPrimaries[src]

Auto Trait Implementations

impl RefUnwindSafe for VideoColorPrimaries

impl Send for VideoColorPrimaries

impl Sync for VideoColorPrimaries

impl Unpin for VideoColorPrimaries

impl UnwindSafe for VideoColorPrimaries

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?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.