pub struct DmaBufFrame {
pub width: u32,
pub height: u32,
pub scale_factor: f64,
pub slot: u32,
pub fourcc: u32,
pub modifier: u64,
pub planes: Vec<DmaBufPlane>,
}Expand description
The dmabuf of an acquired frame.
See mln_dma_buf_frame in the
C API reference.
Fields§
§width: u32§height: u32§scale_factor: f64§slot: u32The buffer’s index in the ring.
fourcc: u32§modifier: u64§planes: Vec<DmaBufPlane>The buffer’s planes, in the order that its fourcc and modifier define.
Import all of them, as EGL_EXT_image_dma_buf_import_modifiers planes 0
and up, or with one zwp_linux_buffer_params_v1.add call each.
Trait Implementations§
Source§impl Clone for DmaBufFrame
impl Clone for DmaBufFrame
Source§fn clone(&self) -> DmaBufFrame
fn clone(&self) -> DmaBufFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DmaBufFrame
impl Debug for DmaBufFrame
Source§impl Default for DmaBufFrame
impl Default for DmaBufFrame
Source§fn default() -> DmaBufFrame
fn default() -> DmaBufFrame
Returns the “default value” for a type. Read more
Source§impl PartialEq for DmaBufFrame
impl PartialEq for DmaBufFrame
impl StructuralPartialEq for DmaBufFrame
Auto Trait Implementations§
impl Freeze for DmaBufFrame
impl RefUnwindSafe for DmaBufFrame
impl Send for DmaBufFrame
impl Sync for DmaBufFrame
impl Unpin for DmaBufFrame
impl UnsafeUnpin for DmaBufFrame
impl UnwindSafe for DmaBufFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more