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
Required methods
fn filter_block(&self, tile: TileCoordinates) -> bool
[src]
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]
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]
fn into_samples(self) -> Self::Samples
[src]Deliver the final accumulated sample storage for the image
Implementors
impl SamplesReader for FlatSamplesReader
[src]
impl SamplesReader for FlatSamplesReader
[src]type Samples = FlatSamples
fn filter_block(&self, tile: TileCoordinates) -> bool
[src]
fn read_line(&mut self, line: LineRef<'_>) -> UnitResult
[src]
fn into_samples(self) -> FlatSamples
[src]
impl<S: SamplesReader> SamplesReader for AllLevelsReader<S>
[src]
impl<S: SamplesReader> SamplesReader for AllLevelsReader<S>
[src]