[][src]Enum gstreamer_video::VideoFormat

pub enum VideoFormat {
    Unknown,
    Encoded,
    I420,
    Yv12,
    Yuy2,
    Uyvy,
    Ayuv,
    Rgbx,
    Bgrx,
    Xrgb,
    Xbgr,
    Rgba,
    Bgra,
    Argb,
    Abgr,
    Rgb,
    Bgr,
    Y41b,
    Y42b,
    Yvyu,
    Y444,
    V210,
    V216,
    Nv12,
    Nv21,
    Gray8,
    Gray16Be,
    Gray16Le,
    V308,
    Rgb16,
    Bgr16,
    Rgb15,
    Bgr15,
    Uyvp,
    A420,
    Rgb8p,
    Yuv9,
    Yvu9,
    Iyu1,
    Argb64,
    Ayuv64,
    R210,
    I42010be,
    I42010le,
    I42210be,
    I42210le,
    Y44410be,
    Y44410le,
    Gbr,
    Gbr10be,
    Gbr10le,
    Nv16,
    Nv24,
    Nv1264z32,
    A42010be,
    A42010le,
    A42210be,
    A42210le,
    A44410be,
    A44410le,
    Nv61,
    P01010be,
    P01010le,
    Iyu2,
    Vyuy,
    Gbra,
    Gbra10be,
    Gbra10le,
    Gbr12be,
    Gbr12le,
    Gbra12be,
    Gbra12le,
    I42012be,
    I42012le,
    I42212be,
    I42212le,
    Y44412be,
    Y44412le,
    Gray10Le32,
    Nv1210le32,
    Nv1610le32,
    Nv1210le40,
    Y210,
    Y410,
    Vuya,
    Bgr10a2Le,
    // some variants omitted
}

Enum value describing the most common video formats.

See the GStreamer raw video format design document for details about the layout and packing of these formats in memory.

Variants

Unknown
Encoded
I420
Yv12
Yuy2
Uyvy
Ayuv
Rgbx
Bgrx
Xrgb
Xbgr
Rgba
Bgra
Argb
Abgr
Rgb
Bgr
Y41b
Y42b
Yvyu
Y444
V210
V216
Nv12
Nv21
Gray8
Gray16Be
Gray16Le
V308
Rgb16
Bgr16
Rgb15
Bgr15
Uyvp
A420
Rgb8p
Yuv9
Yvu9
Iyu1
Argb64
Ayuv64
R210
I42010be
I42010le
I42210be
I42210le
Y44410be
Y44410le
Gbr
Gbr10be
Gbr10le
Nv16
Nv24
Nv1264z32
A42010be
A42010le
A42210be
A42210le
A44410be
A44410le
Nv61
P01010be
P01010le
Iyu2
Vyuy
Gbra
Gbra10be
Gbra10le
Gbr12be
Gbr12le
Gbra12be
Gbra12le
I42012be
I42012le
I42212be
I42212le
Y44412be
Y44412le
Gray10Le32
Nv1210le32
Nv1610le32
Nv1210le40
Y210
Y410
Vuya
Bgr10a2Le

Methods

impl VideoFormat[src]

pub fn from_fourcc(fourcc: u32) -> VideoFormat[src]

pub fn from_masks(
    depth: u32,
    bpp: u32,
    endianness: VideoEndianness,
    red_mask: u32,
    blue_mask: u32,
    green_mask: u32,
    alpha_mask: u32
) -> VideoFormat
[src]

pub fn to_str<'a>(self) -> &'a str[src]

Trait Implementations

impl Clone for VideoFormat[src]

impl Copy for VideoFormat[src]

impl Debug for VideoFormat[src]

impl Display for VideoFormat[src]

impl Eq for VideoFormat[src]

impl From<VideoFormat> for VideoFormatInfo[src]

impl FromStr for VideoFormat[src]

type Err = BoolError

The associated error which can be returned from parsing.

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

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

impl Hash for VideoFormat[src]

impl Ord for VideoFormat[src]

impl PartialEq<VideoFormat> for VideoFormat[src]

impl PartialOrd<VideoFormat> for VideoFormat[src]

impl SetValue for VideoFormat[src]

impl StaticType for VideoFormat[src]

impl StructuralEq for VideoFormat[src]

impl StructuralPartialEq for VideoFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for VideoFormat

impl Send for VideoFormat

impl Sync for VideoFormat

impl Unpin for VideoFormat

impl UnwindSafe for VideoFormat

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> ToString for T where
    T: Display + ?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.