Enum vtflib::ImageFormat[][src]

#[repr(i32)]
pub enum ImageFormat {
Show variants Rgba8888, Agbr8888, 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, R32F, Rgb323232F, Rgba32323232F, NvDst16, NvDst24, NvIntz, NvRawz, AtiDst16, AtiDst24, NvNull, Ati2N, Ati1N,
}
Expand description

VTFLib’s supported image formats.

Variants

Rgba8888
Expand description

Red, green, blue, alpha - 32 bpp

Agbr8888
Expand description

Alpha, blue, green, red - 32 bpp

Rgb888
Expand description

Red, green, blue - 24 bpp

Bgr888
Expand description

Blue, green, red - 24 bpp

Rgb565
Expand description

Red, green, blue - 16 bpp

I8
Expand description

Luminance - 8 bpp

Ia88
Expand description

Luminance, alpha - 8 bpp

P8
Expand description

Paletted, 8 bpp

A8
Expand description

Alpha, 8 bpp

Rgb888Bluescreen
Expand description

Red, green, blue, bluescreen alpha - 24 bpp

Bgr888Bluescreen
Expand description

Blue, green, red, bluescreen alpha - 24 bpp

Argb8888
Expand description

Alpha, red, green, blue - 32 bpp

Bgra8888
Expand description

Blue, green, red, alpha - 32 bpp

Dxt1
Expand description

DXT1 compressed - 4 bpp

Dxt3
Expand description

DXT3 compressed - 8 bpp

Dxt5
Expand description

DXT5 compressed - 8 bpp

Bgrx8888
Expand description

Blue, green, red, unused - 32 bpp

Bgr565
Expand description

Blue, green, red - 16 bpp

Bgrx5551
Expand description

Blue, green, red, unused - 16 bpp

Bgra4444
Expand description

Blue, green, red, alpha - 16 bpp

Dxt1OneBitAlpha
Expand description

DXT1 compressed, 1-bit alpha - 4 bpp

Bgra5551
Expand description

Blue, green, red, alpha - 16 bpp

Uv88
Expand description

2-channel format for DuDv/normal maps - 16 bpp

Uvwq8888
Expand description

4-channel format for DuDv/normal maps - 32 bpp

Rgba16161616F
Expand description

Red, green, blue, alpha - 64 bpp

Rgba16161616
Expand description

Red, green, blue, alpha signed with mantissa - 64 bpp

Uvlx8888
Expand description

4-channel format for DuDv/normal maps - 32 bpp

R32F
Expand description

Luminance - 32 bpp

Rgb323232F
Expand description

Red, green, blue - 96 bpp

Rgba32323232F
Expand description

Red, green, blue, alpha - 128 bpp

NvDst16
NvDst24
NvIntz
NvRawz
AtiDst16
AtiDst24
NvNull
Ati2N
Ati1N

Implementations

impl ImageFormat[src]

#[must_use]
pub fn info(self) -> Option<ImageFormatInfo>
[src]

Get information about the image format. Returns None if the image format is unknown.

Trait Implementations

impl Clone for ImageFormat[src]

fn clone(&self) -> ImageFormat[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ImageFormat[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl PartialEq<ImageFormat> for ImageFormat[src]

fn eq(&self, other: &ImageFormat) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Copy for ImageFormat[src]

impl StructuralPartialEq for ImageFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.