[−][src]Struct nannou::image::hdr::HDRDecoder
An Radiance HDR decoder
Methods
impl<R> HDRDecoder<R> where
R: BufRead,
[src]
R: BufRead,
pub fn new(reader: R) -> Result<HDRDecoder<R>, ImageError>
[src]
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
) -> Result<HDRDecoder<R>, ImageError>
[src]
reader: R,
strict: bool
) -> Result<HDRDecoder<R>, ImageError>
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]
Returns file metadata. Refer to HDRMetadata
for details.
pub fn read_image_native(self) -> Result<Vec<RGBE8Pixel>, ImageError>
[src]
Consumes decoder and returns a vector of RGBE8 pixels
pub fn read_image_transform<T, F>(self, f: F) -> Result<Vec<T>, ImageError> where
F: Send + Sync + Fn(RGBE8Pixel) -> T,
T: Send,
[src]
F: Send + Sync + Fn(RGBE8Pixel) -> T,
T: Send,
Consumes decoder and returns a vector of transformed pixels
pub fn read_image_ldr(self) -> Result<Vec<Rgb<u8>>, ImageError>
[src]
Consumes decoder and returns a vector of Rgb
pub fn read_image_hdr(self) -> Result<Vec<Rgb<f32>>, ImageError>
[src]
Consumes decoder and returns a vector of Rgb
Trait Implementations
impl<R> Debug for HDRDecoder<R> where
R: Debug,
[src]
R: Debug,
impl<R> IntoIterator for HDRDecoder<R> where
R: BufRead,
[src]
R: BufRead,
type Item = Result<RGBE8Pixel, ImageError>
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) -> <HDRDecoder<R> as IntoIterator>::IntoIter
[src]
Auto Trait Implementations
impl<R> Send for HDRDecoder<R> where
R: Send,
R: Send,
impl<R> Sync for HDRDecoder<R> where
R: Sync,
R: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
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]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> SafeBorrow<T> for T
[src]
impl<T> Erased for T
impl<S> FromSample<S> for S
[src]
fn from_sample_(s: S) -> S
[src]
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
[src]
U: FromSample<T>,
fn to_sample_(self) -> U
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
[src]
T: FromSample<S> + ToSample<S>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.