drm::buffer

Trait PlanarBuffer

source
pub trait PlanarBuffer {
    // Required methods
    fn size(&self) -> (u32, u32);
    fn format(&self) -> DrmFourcc;
    fn modifier(&self) -> Option<DrmModifier>;
    fn pitches(&self) -> [u32; 4];
    fn handles(&self) -> [Option<Handle>; 4];
    fn offsets(&self) -> [u32; 4];
}
Expand description

Planar buffers are buffers where each channel/plane is in its own buffer.

Each plane has their own handle, pitch, and offsets.

Required Methods§

source

fn size(&self) -> (u32, u32)

The width and height of the buffer.

source

fn format(&self) -> DrmFourcc

The format of the buffer.

source

fn modifier(&self) -> Option<DrmModifier>

The modifier of the buffer.

source

fn pitches(&self) -> [u32; 4]

The pitches of the buffer.

source

fn handles(&self) -> [Option<Handle>; 4]

The handles to the buffer.

source

fn offsets(&self) -> [u32; 4]

The offsets of the buffer.

Implementors§