pub struct HdrDecoder<R> { /* private fields */ }
Expand description

An Radiance HDR decoder

Implementations

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

Formats the value using the given formatter. Read more

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.