pub struct DmaBufFormat {
pub fourcc: u32,
pub modifier_hi: u32,
pub modifier_lo: u32,
}Expand description
DMA-BUF format descriptor (fourcc + modifier pair).
Each supported format is advertised as a (fourcc, modifier) combination. The modifier describes the GPU-specific memory layout (e.g., linear, tiled). A single fourcc may appear with multiple modifiers.
Fields§
§fourcc: u32DRM fourcc format code
modifier_hi: u32Upper 32 bits of the 64-bit modifier
modifier_lo: u32Lower 32 bits of the 64-bit modifier
Implementations§
Trait Implementations§
Source§impl Clone for DmaBufFormat
impl Clone for DmaBufFormat
Source§fn clone(&self) -> DmaBufFormat
fn clone(&self) -> DmaBufFormat
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DmaBufFormat
impl Debug for DmaBufFormat
Source§impl PartialEq for DmaBufFormat
impl PartialEq for DmaBufFormat
impl Copy for DmaBufFormat
impl Eq for DmaBufFormat
impl StructuralPartialEq for DmaBufFormat
Auto Trait Implementations§
impl Freeze for DmaBufFormat
impl RefUnwindSafe for DmaBufFormat
impl Send for DmaBufFormat
impl Sync for DmaBufFormat
impl Unpin for DmaBufFormat
impl UnwindSafe for DmaBufFormat
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)