[][src]Enum azul_webrender_api::ColorDepth

#[repr(u8)]pub enum ColorDepth {
    Color8,
    Color10,
    Color12,
    Color16,
}

Specifies the color depth of an image. Currently only used for YUV images.

Variants

Color8

8 bits image (most common)

Color10

10 bits image

Color12

12 bits image

Color16

16 bits image

Implementations

impl ColorDepth[src]

pub fn bit_depth(self) -> u32[src]

Return the numerical bit depth value for the type.

pub fn rescaling_factor(self) -> f32[src]

10 and 12 bits images are encoded using 16 bits integer, we need to rescale the 10 or 12 bits value to extend to 16 bits.

Trait Implementations

impl Clone for ColorDepth[src]

impl Copy for ColorDepth[src]

impl Debug for ColorDepth[src]

impl Default for ColorDepth[src]

impl<'de> Deserialize<'de> for ColorDepth[src]

impl Eq for ColorDepth[src]

impl Hash for ColorDepth[src]

impl MallocSizeOf for ColorDepth[src]

impl PartialEq<ColorDepth> for ColorDepth[src]

impl Peek for ColorDepth[src]

impl Poke for ColorDepth[src]

impl Serialize for ColorDepth[src]

impl StructuralEq for ColorDepth[src]

impl StructuralPartialEq for ColorDepth[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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, 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.