Struct exr::image::read::any_channels::AnyChannelsReader
source · pub struct AnyChannelsReader<SamplesReader> {
sample_channels_reader: SmallVec<[AnyChannelReader<SamplesReader>; 4]>,
}
Expand description
Processes pixel blocks from a file and accumulates them into a collection of arbitrary channels. Loads all channels for each layer.
Fields§
§sample_channels_reader: SmallVec<[AnyChannelReader<SamplesReader>; 4]>
Stores a separate sample reader per channel in the layer
Trait Implementations§
source§impl<S: SamplesReader> ChannelsReader for AnyChannelsReader<S>
impl<S: SamplesReader> ChannelsReader for AnyChannelsReader<S>
§type Channels = AnyChannels<<S as SamplesReader>::Samples>
type Channels = AnyChannels<<S as SamplesReader>::Samples>
The type of the resulting channel collection
source§fn filter_block(&self, tile: TileCoordinates) -> bool
fn filter_block(&self, tile: TileCoordinates) -> bool
Specify whether a single block of pixels should be loaded from the file
source§fn read_block(
&mut self,
header: &Header,
decompressed: UncompressedBlock,
) -> UnitResult
fn read_block( &mut self, header: &Header, decompressed: UncompressedBlock, ) -> UnitResult
Load a single pixel block, which has not been filtered, into the reader, accumulating the channel data
source§fn into_channels(self) -> Self::Channels
fn into_channels(self) -> Self::Channels
Deliver the final accumulated channel collection for the image
source§impl<SamplesReader: Clone> Clone for AnyChannelsReader<SamplesReader>
impl<SamplesReader: Clone> Clone for AnyChannelsReader<SamplesReader>
source§fn clone(&self) -> AnyChannelsReader<SamplesReader>
fn clone(&self) -> AnyChannelsReader<SamplesReader>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<SamplesReader: Debug> Debug for AnyChannelsReader<SamplesReader>
impl<SamplesReader: Debug> Debug for AnyChannelsReader<SamplesReader>
source§impl<SamplesReader: PartialEq> PartialEq for AnyChannelsReader<SamplesReader>
impl<SamplesReader: PartialEq> PartialEq for AnyChannelsReader<SamplesReader>
source§fn eq(&self, other: &AnyChannelsReader<SamplesReader>) -> bool
fn eq(&self, other: &AnyChannelsReader<SamplesReader>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<SamplesReader: Eq> Eq for AnyChannelsReader<SamplesReader>
impl<SamplesReader> StructuralPartialEq for AnyChannelsReader<SamplesReader>
Auto Trait Implementations§
impl<SamplesReader> Freeze for AnyChannelsReader<SamplesReader>where
SamplesReader: Freeze,
impl<SamplesReader> RefUnwindSafe for AnyChannelsReader<SamplesReader>where
SamplesReader: RefUnwindSafe,
impl<SamplesReader> Send for AnyChannelsReader<SamplesReader>where
SamplesReader: Send,
impl<SamplesReader> Sync for AnyChannelsReader<SamplesReader>where
SamplesReader: Sync,
impl<SamplesReader> Unpin for AnyChannelsReader<SamplesReader>where
SamplesReader: Unpin,
impl<SamplesReader> UnwindSafe for AnyChannelsReader<SamplesReader>where
SamplesReader: RefUnwindSafe + UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more