[][src]Enum gstreamer_gl::GLFormat

#[non_exhaustive]pub enum GLFormat {
    Luminance,
    Alpha,
    LuminanceAlpha,
    Red,
    R8,
    Rg,
    Rg8,
    Rgb,
    Rgb8,
    Rgb565,
    Rgb16,
    Rgba,
    Rgba8,
    Rgba16,
    DepthComponent16,
    Depth24Stencil8,
    Rgb10A2,
    R16,
    Rg16,
    // some variants omitted
}

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.
Luminance

Single component replicated across R, G, and B textures components

Alpha

Single component stored in the A texture component

LuminanceAlpha

Combination of GLFormat::Luminance and GLFormat::Alpha

Red

Single component stored in the R texture component

R8

Single 8-bit component stored in the R texture component

Rg

Two components stored in the R and G texture components

Rg8

Two 8-bit components stored in the R and G texture components

Rgb

Three components stored in the R, G, and B texture components

Rgb8

Three 8-bit components stored in the R, G, and B texture components

Rgb565

Three components of bit depth 5, 6 and 5 stored in the R, G, and B texture components respectively.

Rgb16

Three 16-bit components stored in the R, G, and B texture components

Rgba

Four components stored in the R, G, B, and A texture components respectively.

Rgba8

Four 8-bit components stored in the R, G, B, and A texture components respectively.

Rgba16

Four 16-bit components stored in the R, G, B, and A texture components respectively.

DepthComponent16

A single 16-bit component for depth information.

Depth24Stencil8

A 24-bit component for depth information and a 8-bit component for stencil informat.

Rgb10A2
R16

Single 16-bit component stored in the R texture component

Rg16

Two 16-bit components stored in the R and G texture components

Trait Implementations

impl Clone for GLFormat[src]

impl Copy for GLFormat[src]

impl Debug for GLFormat[src]

impl Eq for GLFormat[src]

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

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

impl Hash for GLFormat[src]

impl Ord for GLFormat[src]

impl PartialEq<GLFormat> for GLFormat[src]

impl PartialOrd<GLFormat> for GLFormat[src]

impl SetValue for GLFormat[src]

impl StaticType for GLFormat[src]

impl StructuralEq for GLFormat[src]

impl StructuralPartialEq for GLFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for GLFormat

impl Send for GLFormat

impl Sync for GLFormat

impl Unpin for GLFormat

impl UnwindSafe for GLFormat

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.