Struct image::hdr::HdrDecoder [−][src]
pub struct HdrDecoder<R> { /* fields omitted */ }
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
pub fn read_image_transform<T: Send, F: Send + Sync + Fn(Rgbe8Pixel) -> T>(
self,
f: F,
output_slice: &mut [T]
) -> ImageResult<()>
pub fn read_image_transform<T: Send, F: Send + Sync + Fn(Rgbe8Pixel) -> T>(
self,
f: F,
output_slice: &mut [T]
) -> ImageResult<()>
Consumes decoder and returns a vector of transformed pixels
Consumes decoder and returns a vector of Rgb
Consumes decoder and returns a vector of Rgb
Trait Implementations
type Item = ImageResult<Rgbe8Pixel>
type Item = ImageResult<Rgbe8Pixel>
The type of the elements being iterated over.
type IntoIter = HdrImageDecoderIterator<R>
type IntoIter = HdrImageDecoderIterator<R>
Which kind of iterator are we turning this into?