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) -> bool

Specify whether a single block of pixels should be loaded from the file

fn read_block(&mut self, headers: &[Header], block: UncompressedBlock) -> UnitResult

Load a single pixel block, which has not been filtered, into the reader, accumulating the layer

fn into_layers(self) -> Self::Layers

Deliver the final accumulated layers for the image

Implementors