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

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 tranformed 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.

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