Trait exr::image::write::samples::WritableSamples

source ·
pub trait WritableSamples<'slf> {
    type Writer: SamplesWriter;

    // Required methods
    fn sample_type(&self) -> SampleType;
    fn infer_level_modes(&self) -> (LevelMode, RoundingMode);
    fn create_samples_writer(&'slf self, header: &Header) -> Self::Writer;
}
Expand description

Enable an image with this sample grid to be written to a file. Also can contain multiple resolution levels. Usually contained within Channels.

Required Associated Types§

source

type Writer: SamplesWriter

The type of the temporary writer for this sample storage

Required Methods§

source

fn sample_type(&self) -> SampleType

Generate the file meta data regarding the number type of this storage

source

fn infer_level_modes(&self) -> (LevelMode, RoundingMode)

Generate the file meta data regarding resolution levels

source

fn create_samples_writer(&'slf self, header: &Header) -> Self::Writer

Create a temporary writer for this sample storage

Implementors§

source§

impl<'samples> WritableSamples<'samples> for FlatSamples

source§

impl<'samples, LevelSamples> WritableSamples<'samples> for Levels<LevelSamples>
where LevelSamples: WritableLevel<'samples>,

source§

type Writer = LevelsWriter<<LevelSamples as WritableLevel<'samples>>::Writer>