Trait LayersReader
pub trait LayersReader
Processes pixel blocks from a file and accumulates them into a single image layer.
Associated Types
type Layers;The type of resulting layers
Required Methods
fn filter_block(&self, meta: &MetaData, tile: TileCoordinates, block: BlockIndex) -> boolSpecify whether a single block of pixels should be loaded from the file
fn read_block(&mut self, headers: &[Header], block: UncompressedBlock) -> UnitResultLoad a single pixel block, which has not been filtered, into the reader, accumulating the layer
fn into_layers(self) -> Self::LayersDeliver the final accumulated layers for the image
Implementors
impl<C> LayersReader for AllLayersReader<C> where C: ChannelsReader,impl<C> LayersReader for FirstValidLayerReader<C> where C: ChannelsReader,