Trait SamplesReader
pub trait SamplesReader
Processes pixel blocks from a file and accumulates them into a single pixel channel. For example, stores thousands of "Red" pixel values for a single layer.
Associated Types
type Samples;The type of resulting sample storage
Required Methods
fn filter_block(&self, tile: TileCoordinates) -> boolSpecify whether a single block of pixels should be loaded from the file
fn read_line(&mut self, line: LineRef<'_>) -> UnitResultLoad a single pixel line, which has not been filtered, into the reader, accumulating the sample data
fn into_samples(self) -> Self::SamplesDeliver the final accumulated sample storage for the image
Implementors
impl SamplesReader for FlatSamplesReaderimpl<S: SamplesReader> SamplesReader for AllLevelsReader<S>