[][src]Enum img2raw::DataFormat

#[repr(u32)]
pub enum DataFormat {
    R32F,
    RG32F,
    RGBA32F,
    R8,
    PackedR8,
    R16F,
    RG16F,
    RGBA16F,
    PackedR16F,
    RGBE8,
    RGBA8,
}

Available data formats for the pixel data.

Variants

R32F

32-bit floating-point, 4-byte row alignment.

RG32F

32-bit floating-point, 4-byte row alignment.

RGBA32F

32-bit floating-point, 4-byte row alignment.

R8

8-bit fixed-point, 4-byte row alignment.

PackedR8

8-bit fixed-point, 1-byte row alignment.

R16F

16-bit floating-point, 4-byte row alignment.

RG16F

16-bit floating-point, 4-byte row alignment.

RGBA16F

16-bit floating-point, 4-byte row alignment.

PackedR16F

16-bit floating-point, 2-byte row alignment.

RGBE8

8-bit RGBE, alpha is exponent, 4-byte row alignment.

RGBA8

8-bit fixed-point, 4-byte row alignment.

Trait Implementations

impl From<DataFormat> for DataFormatInfo[src]

impl Display for DataFormat[src]

impl Debug for DataFormat[src]

impl PartialEq<DataFormat> for DataFormat[src]

impl Eq for DataFormat[src]

impl FromStr for DataFormat[src]

type Err = UnknownVariant

The associated error which can be returned from parsing.

impl Hash for DataFormat[src]

impl Copy for DataFormat[src]

impl Clone for DataFormat[src]

Auto Trait Implementations

impl Unpin for DataFormat

impl Send for DataFormat

impl Sync for DataFormat

Blanket Implementations

impl<T> From<T> for T[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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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