Struct HdrDecoder
pub struct HdrDecoder<R> { /* private fields */ }
An Radiance HDR decoder
Implementations
impl<R: Read> HdrDecoder<R>
fn new(reader: R) -> ImageResult<Self>Reads Radiance HDR image header from stream
rif the header is valid, createsHdrDecoderstrict mode is enabledfn new_nonstrict(reader: R) -> ImageResult<Self>Allows reading old Radiance HDR images
fn with_strictness(reader: R, strict: bool) -> ImageResult<HdrDecoder<R>>Reads Radiance HDR image header from stream
reader, if the header is valid, createsHdrDecoder.strict enables strict mode
Warning! Reading wrong file in non-strict mode could consume file size worth of memory in the process.
fn metadata(&self) -> HdrMetadataReturns file metadata. Refer to
HdrMetadatafor details.
Trait Implementations
impl<R: Debug> Debug for HdrDecoder<R>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<R: Read> ImageDecoder for HdrDecoder<R>
fn dimensions(&self) -> (u32, u32)fn color_type(&self) -> ColorTypefn read_image(self, buf: &mut [u8]) -> ImageResult<()>fn read_image_boxed(self: Box<Self>, buf: &mut [u8]) -> ImageResult<()>