Trait RecursivePixelReader

pub trait RecursivePixelReader

A reader containing sub-readers for reading the pixel content of an image.

Associated Types

type RecursiveChannelDescriptions;

The channel descriptions from the image. Will be converted to a tuple before being stored in SpecificChannels<_, ChannelDescriptions>.

type RecursivePixel: Copy + Default + 'static;

The pixel type. Will be converted to a tuple at the end of the process.

Required Methods

fn get_descriptions(&self) -> Self::RecursiveChannelDescriptions

Returns the channel descriptions based on the channels in the file.

fn read_pixels<FullPixel>(&self, bytes: &[u8], pixels: &mut [FullPixel], get_pixel: impl Fn(&mut FullPixel) -> &mut Self::RecursivePixel)

Read the line of pixels.

Implementors