[][src]Enum gstreamer_video::VideoColorMatrix

#[non_exhaustive]pub enum VideoColorMatrix {
    Unknown,
    Rgb,
    Fcc,
    Bt709,
    Bt601,
    Smpte240m,
    Bt2020,
    // some variants omitted
}

The color matrix is used to convert between Y'PbPr and non-linear RGB (R'G'B')

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 matrix

Rgb

identity matrix

Fcc

FCC color matrix

Bt709

ITU-R BT.709 color matrix

Bt601

ITU-R BT.601 color matrix

Smpte240m

SMPTE 240M color matrix

Bt2020

ITU-R BT.2020 color matrix. Since: 1.6

Implementations

impl VideoColorMatrix[src]

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

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

Trait Implementations

impl Clone for VideoColorMatrix[src]

impl Copy for VideoColorMatrix[src]

impl Debug for VideoColorMatrix[src]

impl Eq for VideoColorMatrix[src]

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

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

impl Hash for VideoColorMatrix[src]

impl Ord for VideoColorMatrix[src]

impl PartialEq<VideoColorMatrix> for VideoColorMatrix[src]

impl PartialOrd<VideoColorMatrix> for VideoColorMatrix[src]

impl SetValue for VideoColorMatrix[src]

impl StaticType for VideoColorMatrix[src]

impl StructuralEq for VideoColorMatrix[src]

impl StructuralPartialEq for VideoColorMatrix[src]

Auto Trait Implementations

impl RefUnwindSafe for VideoColorMatrix

impl Send for VideoColorMatrix

impl Sync for VideoColorMatrix

impl Unpin for VideoColorMatrix

impl UnwindSafe for VideoColorMatrix

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.