Trait WritableChannelsDescription

pub trait WritableChannelsDescription<Pixel>: Sync

A tuple containing either ChannelsDescription or Option<ChannelsDescription> entries.

Use an Option if you want to dynamically omit a single channel (probably only for roundtrip tests). The number of entries must match the number of channels.

Associated Types

type RecursiveWriter: RecursivePixelWriter<Pixel>;

A type that has a recursive entry for each channel in the image, which must accept the desired pixel type.

Required Methods

fn create_recursive_writer(&self, channels: &ChannelList) -> Self::RecursiveWriter

Create the temporary writer, accepting the sorted list of channels from channel_descriptions_list.

fn channel_descriptions_list(&self) -> SmallVec<[ChannelDescription; 5]>

Return all the channels that should actually end up in the image, in any order.

Implementors