Skip to main content

Picture

Trait Picture 

Source
pub trait Picture: Send + Sync {
    // Required method
    fn map(&self) -> Result<Box<dyn MappedPlanes + '_>, MapError>;
}
Expand description

Backend-owned pixel storage: rav1d’s refcounted picture, an owned set of planes, a pool slot.

Required Methods§

Source

fn map(&self) -> Result<Box<dyn MappedPlanes + '_>, MapError>

Map the planes for reading.

§Errors

A MapError when the storage cannot be read on the CPU.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§