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§
sourcefn modifier(&self) -> Option<DrmModifier>
fn modifier(&self) -> Option<DrmModifier>
The modifier of the buffer.