pub struct PlatformGraphicsExternalImageDmaBufProperties {
pub drm_format: u32,
pub drm_modifier: u64,
pub plane_count: i32,
pub plane_fds: Option<Vec<i32>>,
pub plane_strides: Option<Vec<u32>>,
pub plane_offsets: Option<Vec<u32>>,
}Expand description
Describes the DRM layout of a dma-buf image.
Fields§
§drm_format: u32The DRM_FORMAT_* fourcc of the buffer.
drm_modifier: u64The DRM_FORMAT_MOD_* layout modifier of the buffer, or DRM_MODIFIER_INVALID for the implicit layout.
plane_count: i32The number of memory planes. When zero, a single plane described by the handle itself and
PlatformGraphicsExternalImageProperties::memory_offset is assumed.
plane_fds: Option<Vec<i32>>Per-plane dma-buf file descriptors. When None, the handle’s file descriptor is used for every plane.
plane_strides: Option<Vec<u32>>Per-plane row pitches in bytes.
plane_offsets: Option<Vec<u32>>Per-plane byte offsets into the corresponding file descriptor.
Implementations§
Source§impl PlatformGraphicsExternalImageDmaBufProperties
impl PlatformGraphicsExternalImageDmaBufProperties
Sourcepub const DRM_MODIFIER_INVALID: u64 = 0x00ff_ffff_ffff_ffff
pub const DRM_MODIFIER_INVALID: u64 = 0x00ff_ffff_ffff_ffff
The DRM_FORMAT_MOD_INVALID modifier.
Trait Implementations§
impl Eq for PlatformGraphicsExternalImageDmaBufProperties
impl StructuralPartialEq for PlatformGraphicsExternalImageDmaBufProperties
Auto Trait Implementations§
impl Freeze for PlatformGraphicsExternalImageDmaBufProperties
impl RefUnwindSafe for PlatformGraphicsExternalImageDmaBufProperties
impl Send for PlatformGraphicsExternalImageDmaBufProperties
impl Sync for PlatformGraphicsExternalImageDmaBufProperties
impl Unpin for PlatformGraphicsExternalImageDmaBufProperties
impl UnsafeUnpin for PlatformGraphicsExternalImageDmaBufProperties
impl UnwindSafe for PlatformGraphicsExternalImageDmaBufProperties
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more