pub trait WritableChannelsDescription<Pixel>: Sync {
type RecursiveWriter: RecursivePixelWriter<Pixel>;
// Required methods
fn create_recursive_writer(
&self,
channels: &ChannelList,
) -> Self::RecursiveWriter;
fn channel_descriptions_list(&self) -> SmallVec<[ChannelDescription; 5]> ⓘ;
}
Expand description
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.
Required Associated Types§
sourcetype RecursiveWriter: RecursivePixelWriter<Pixel>
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§
sourcefn create_recursive_writer(
&self,
channels: &ChannelList,
) -> Self::RecursiveWriter
fn create_recursive_writer( &self, channels: &ChannelList, ) -> Self::RecursiveWriter
Create the temporary writer, accepting the sorted list of channels from channel_descriptions_list
.
sourcefn channel_descriptions_list(&self) -> SmallVec<[ChannelDescription; 5]> ⓘ
fn channel_descriptions_list(&self) -> SmallVec<[ChannelDescription; 5]> ⓘ
Return all the channels that should actually end up in the image, in any order.