[][src]Struct rin::graphics::image::dxt::DXTDecoder

pub struct DXTDecoder<R> where
    R: Read
{ /* fields omitted */ }

DXT decoder

Methods

impl<R> DXTDecoder<R> where
    R: Read
[src]

Create a new DXT decoder that decodes from the stream r. As DXT is often stored as raw buffers with the width/height somewhere else the width and height of the image need to be passed in width and height, as well as the DXT variant in variant. width and height are required to be powers of 2 and at least 4. otherwise an error will be returned

Trait Implementations

impl<R> ImageDecoder for DXTDecoder<R> where
    R: Read
[src]

The type of reader produced by into_reader.

Returns the number of bytes in a single row of the image. All decoders will pad image rows to a byte boundary. Read more

Returns the total number of bytes in the image.

Same as read_image but periodically calls the provided callback to give updates on loading progress. Read more

impl<R> ImageDecoderExt for DXTDecoder<R> where
    R: Read + Seek
[src]

Read a rectangular section of the image.

Auto Trait Implementations

impl<R> Send for DXTDecoder<R> where
    R: Send

impl<R> Sync for DXTDecoder<R> where
    R: Sync

Blanket Implementations

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

impl<T> From for T
[src]

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

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

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<V> IntoVec for V
[src]

impl<V> IntoPnt for V
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T
[src]

Should always be Self