Struct nannou::image::codecs::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, F>(
self,
f: F,
output_slice: &mut [T]
) -> Result<(), ImageError> where
F: Send + Sync + Fn(Rgbe8Pixel) -> T,
T: Send,
pub fn read_image_transform<T, F>(
self,
f: F,
output_slice: &mut [T]
) -> Result<(), ImageError> where
F: Send + Sync + Fn(Rgbe8Pixel) -> T,
T: Send,
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 = Result<Rgbe8Pixel, ImageError>
type Item = Result<Rgbe8Pixel, ImageError>
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?
Creates an iterator from a value. Read more
Auto Trait Implementations
impl<R> RefUnwindSafe for HdrDecoder<R> where
R: RefUnwindSafe,
impl<R> Send for HdrDecoder<R> where
R: Send,
impl<R> Sync for HdrDecoder<R> where
R: Sync,
impl<R> Unpin for HdrDecoder<R> where
R: Unpin,
impl<R> UnwindSafe for HdrDecoder<R> where
R: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
pub fn vzip(self) -> V