[][src]Struct image::hdr::HDRDecoder

pub struct HDRDecoder<R> { /* fields omitted */ }

An Radiance HDR decoder

Methods

impl<R: BufRead> HDRDecoder<R>
[src]

Reads Radiance HDR image header from stream r if the header is valid, creates HDRDecoder strict mode is enabled

Reads Radiance HDR image header from stream reader, if the header is valid, creates HDRDecoder.

strict enables strict mode

Warning! Reading wrong file in non-strict mode could consume file size worth of memory in the process.

Returns file metadata. Refer to HDRMetadata for details.

Consumes decoder and returns a vector of RGBE8 pixels

Consumes decoder and returns a vector of transformed pixels

Consumes decoder and returns a vector of Rgb pixels. scale = 1, gamma = 2.2

Consumes decoder and returns a vector of Rgb pixels.

Trait Implementations

impl<R: Debug> Debug for HDRDecoder<R>
[src]

Formats the value using the given formatter. Read more

impl<R: BufRead> IntoIterator for HDRDecoder<R>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<I> IntoIterator for I where
    I: Iterator
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

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

Performs the conversion.

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.

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

Performs the conversion.

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

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

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.

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

Performs the conversion.

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

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

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

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.