Skip to main content

WideCodes

Trait WideCodes 

Source
pub trait WideCodes: Sync {
    // Required methods
    fn frame_count(&self) -> usize;
    fn plane_length(&self, frame: usize) -> usize;
    fn read_cells(
        &self,
        frame: usize,
        start: usize,
        out: &mut [u16],
    ) -> Result<()>;
}
Available on crate feature encoder only.
Expand description

A widened variable’s sixteen-bit codes, which a series store reads a band of rows at a time rather than holding the whole axis: planes in memory (WidePlanes), or a build’s spool on disk.

Required Methods§

Source

fn frame_count(&self) -> usize

The planes on the axis.

Source

fn plane_length(&self, frame: usize) -> usize

The codes one plane holds, width * height on its grid.

Source

fn read_cells(&self, frame: usize, start: usize, out: &mut [u16]) -> Result<()>

out.len() codes of plane frame from cell start on, row-major.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§