Trait ChannelsReader
pub trait ChannelsReader
Processes pixel blocks from a file and accumulates them into multiple channels per layer.
Associated Types
type Channels;The type of the resulting channel collection
Required Methods
fn filter_block(&self, tile: TileCoordinates) -> boolSpecify whether a single block of pixels should be loaded from the file
fn read_block(&mut self, header: &Header, block: UncompressedBlock) -> UnitResultLoad a single pixel block, which has not been filtered, into the reader, accumulating the channel data
fn into_channels(self) -> Self::ChannelsDeliver the final accumulated channel collection for the image
Implementors
impl<PixelStorage, SetPixel, PxReader, Pixel> ChannelsReader for SpecificChannelsReader<PixelStorage, SetPixel, PxReader, Pixel> where PxReader: RecursivePixelReader, PxReader::RecursivePixel: IntoTuple<Pixel>, PxReader::RecursiveChannelDescriptions: IntoNonRecursive, SetPixel: Fn(&mut PixelStorage, Vec2<usize>, Pixel),impl<S: SamplesReader> ChannelsReader for AnyChannelsReader<S>