[−][src]Struct nannou::image::hdr::HdrDecoder
An Radiance HDR decoder
Implementations
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,
output_slice: &mut [T]
) -> Result<(), ImageError> where
F: Send + Sync + Fn(Rgbe8Pixel) -> T,
T: Send,
[src]
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
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> RefUnwindSafe for HdrDecoder<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for HdrDecoder<R> where
R: Send,
R: Send,
impl<R> Sync for HdrDecoder<R> where
R: Sync,
R: Sync,
impl<R> Unpin for HdrDecoder<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for HdrDecoder<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,