[−][src]Struct image::hdr::HDRDecoder
An Radiance HDR decoder
Methods
impl<R: BufRead> HDRDecoder<R>[src]
impl<R: BufRead> HDRDecoder<R>pub fn new(reader: R) -> ImageResult<HDRDecoder<R>>[src]
pub fn new(reader: R) -> ImageResult<HDRDecoder<R>>Reads Radiance HDR image header from stream r
if the header is valid, creates HDRDecoder
strict mode is enabled
pub fn with_strictness(reader: R, strict: bool) -> ImageResult<HDRDecoder<R>>[src]
pub fn with_strictness(reader: R, strict: bool) -> ImageResult<HDRDecoder<R>>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.
pub fn metadata(&self) -> HDRMetadata[src]
pub fn metadata(&self) -> HDRMetadataReturns file metadata. Refer to HDRMetadata for details.
pub fn read_image_native(self) -> ImageResult<Vec<RGBE8Pixel>>[src]
pub fn read_image_native(self) -> ImageResult<Vec<RGBE8Pixel>>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
) -> ImageResult<Vec<T>>[src]
pub fn read_image_transform<T: Send, F: Send + Sync + Fn(RGBE8Pixel) -> T>(
self,
f: F
) -> ImageResult<Vec<T>>Consumes decoder and returns a vector of transformed pixels
pub fn read_image_ldr(self) -> ImageResult<Vec<Rgb<u8>>>[src]
pub fn read_image_ldr(self) -> ImageResult<Vec<Rgb<u8>>>Consumes decoder and returns a vector of Rgb
pub fn read_image_hdr(self) -> ImageResult<Vec<Rgb<f32>>>[src]
pub fn read_image_hdr(self) -> ImageResult<Vec<Rgb<f32>>>Consumes decoder and returns a vector of Rgb
Trait Implementations
impl<R: Debug> Debug for HDRDecoder<R>[src]
impl<R: Debug> Debug for HDRDecoder<R>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<R: BufRead> IntoIterator for HDRDecoder<R>[src]
impl<R: BufRead> IntoIterator for HDRDecoder<R>type Item = ImageResult<RGBE8Pixel>
The type of the elements being iterated over.
type IntoIter = HDRImageDecoderIterator<R>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter[src]
fn into_iter(self) -> Self::IntoIterCreates an iterator from a value. Read more
Auto Trait Implementations
impl<R> Send for HDRDecoder<R> where
R: Send,
impl<R> Send for HDRDecoder<R> where
R: Send, impl<R> Sync for HDRDecoder<R> where
R: Sync,
impl<R> Sync for HDRDecoder<R> where
R: Sync, Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<I> IntoIterator for I where
I: Iterator, [src]
impl<I> IntoIterator for I where
I: Iterator, type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I[src]
fn into_iter(self) -> ICreates an iterator from a value. Read more
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T[src]
fn borrow(&self) -> &TImmutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<T> SetParameter for T[src]
impl<T> SetParameter for T