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<()>
Auto Trait Implementations
impl<R> Freeze for HdrDecoder<R>
where
R: Freeze,
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> UnsafeUnpin for HdrDecoder<R>
where
R: UnsafeUnpin,
impl<R> UnwindSafe for HdrDecoder<R>
where
R: UnwindSafe,
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for HdrDecoder<R>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for HdrDecoder<R>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for HdrDecoder<R>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for HdrDecoder<R>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for HdrDecoder<R>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for HdrDecoder<R>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for HdrDecoder<R>
impl<T> Pointable for HdrDecoder<R>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for HdrDecoder<R>
where
T: ?Sized,
impl<T, U> Into<U> for HdrDecoder<R>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for HdrDecoder<R>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for HdrDecoder<R>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>