pub trait ChannelsReader {
type Channels;
// Required methods
fn filter_block(&self, tile: TileCoordinates) -> bool;
fn read_block(
&mut self,
header: &Header,
block: UncompressedBlock,
) -> UnitResult;
fn into_channels(self) -> Self::Channels;
}
Expand description
Processes pixel blocks from a file and accumulates them into multiple channels per layer.
Required Associated Types§
Required Methods§
sourcefn 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
sourcefn read_block(
&mut self,
header: &Header,
block: UncompressedBlock,
) -> UnitResult
fn read_block( &mut self, header: &Header, block: UncompressedBlock, ) -> UnitResult
Load a single pixel block, which has not been filtered, into the reader, accumulating the channel data
sourcefn into_channels(self) -> Self::Channels
fn into_channels(self) -> Self::Channels
Deliver the final accumulated channel collection for the image