Trait exr::image::read::any_channels::SamplesReader[][src]

pub trait SamplesReader {
    type Samples;
    fn filter_block(&self, tile: TileCoordinates) -> bool;
fn read_line(&mut self, line: LineRef<'_>) -> UnitResult;
fn into_samples(self) -> Self::Samples; }
Expand description

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[src]

The type of resulting sample storage

Required methods

fn filter_block(&self, tile: TileCoordinates) -> bool[src]

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

fn read_line(&mut self, line: LineRef<'_>) -> UnitResult[src]

Load a single pixel line, which has not been filtered, into the reader, accumulating the sample data

fn into_samples(self) -> Self::Samples[src]

Deliver the final accumulated sample storage for the image

Implementors