[][src]Enum vtf::ImageFormat

#[repr(i16)]
pub enum ImageFormat {
    None,
    Rgba8888,
    Abgr8888,
    Rgb888,
    Bgr888,
    Rgb565,
    I8,
    Ia88,
    P8,
    A8,
    Rgb888Bluescreen,
    Bgr888Bluescreen,
    Argb8888,
    Bgra8888,
    Dxt1,
    Dxt3,
    Dxt5,
    Bgrx8888,
    Bgr565,
    Bgrx5551,
    Bgra4444,
    Dxt1Onebitalpha,
    Bgra5551,
    Uv88,
    Uvwq8888,
    Rgba16161616f,
    Rgba16161616,
    Uvlx8888,
}

Variants

None
Rgba8888
Abgr8888
Rgb888
Bgr888
Rgb565
I8
Ia88
P8
A8
Rgb888Bluescreen
Bgr888Bluescreen
Argb8888
Bgra8888
Dxt1
Dxt3
Dxt5
Bgrx8888
Bgr565
Bgrx5551
Bgra4444
Dxt1Onebitalpha
Bgra5551
Uv88
Uvwq8888
Rgba16161616f
Rgba16161616
Uvlx8888

Methods

impl ImageFormat[src]

pub fn frame_size(&self, width: u32, height: u32) -> Result<u32, Error>[src]

Trait Implementations

impl Clone for ImageFormat[src]

impl Copy for ImageFormat[src]

impl Debug for ImageFormat[src]

impl Display for ImageFormat[src]

impl PartialEq<ImageFormat> for ImageFormat[src]

impl StructuralPartialEq for ImageFormat[src]

impl TryFrom<i16> for ImageFormat[src]

type Error = TryFromPrimitiveError<Self>

The type returned in the event of a conversion error.

impl TryFromPrimitive for ImageFormat[src]

type Primitive = i16

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> SetParameter for T

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.