[][src]Enum nvtt_rs::ValidImage

pub enum ValidImage<'a> {
    Bgra(MaybeOwned<'a, ImageBuffer<Bgra<u8>, Vec<u8>>>),
    Rgba(MaybeOwned<'a, ImageBuffer<Rgba<f32>, Vec<f32>>>),
    Luma(MaybeOwned<'a, ImageBuffer<Luma<f32>, Vec<f32>>>),
}

An enumeration of the valid image buffer types which can be used with nvtt.

Notes

This type requires the nvtt_image_integration feature.

Variants

Bgra(MaybeOwned<'a, ImageBuffer<Bgra<u8>, Vec<u8>>>)

A bgra image with byte values for each subpixel.

Rgba(MaybeOwned<'a, ImageBuffer<Rgba<f32>, Vec<f32>>>)

An rgba image with floats for each subpixel.

Luma(MaybeOwned<'a, ImageBuffer<Luma<f32>, Vec<f32>>>)

A luma image with floats for each subpixel.

Methods

impl<'_> ValidImage<'_>[src]

pub fn new<I: Into<Self>>(image: I) -> Self[src]

Create a new ValidImage from image.

Trait Implementations

impl<'_> From<DynamicImage> for ValidImage<'_>[src]

impl<'_, '_> From<&'_ DynamicImage> for ValidImage<'_>[src]

impl<'_> From<ImageBuffer<Bgra<u8>, Vec<u8>>> for ValidImage<'_>[src]

impl<'a> From<&'a ImageBuffer<Bgra<u8>, Vec<u8>>> for ValidImage<'a>[src]

impl<'a> From<MaybeOwned<'a, ImageBuffer<Bgra<u8>, Vec<u8>>>> for ValidImage<'a>[src]

impl<'_> From<ImageBuffer<Rgba<f32>, Vec<f32>>> for ValidImage<'_>[src]

impl<'a> From<&'a ImageBuffer<Rgba<f32>, Vec<f32>>> for ValidImage<'a>[src]

impl<'a> From<MaybeOwned<'a, ImageBuffer<Rgba<f32>, Vec<f32>>>> for ValidImage<'a>[src]

impl<'_> From<ImageBuffer<Luma<f32>, Vec<f32>>> for ValidImage<'_>[src]

impl<'a> From<&'a ImageBuffer<Luma<f32>, Vec<f32>>> for ValidImage<'a>[src]

impl<'a> From<MaybeOwned<'a, ImageBuffer<Luma<f32>, Vec<f32>>>> for ValidImage<'a>[src]

Auto Trait Implementations

impl<'a> Send for ValidImage<'a>

impl<'a> Sync for ValidImage<'a>

impl<'a> Unpin for ValidImage<'a>

impl<'a> UnwindSafe for ValidImage<'a>

impl<'a> RefUnwindSafe for ValidImage<'a>

Blanket Implementations

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

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> 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]