#[repr(C)]pub struct _VADRMPRIME3SurfaceDescriptor {
pub fourcc: u32,
pub width: u32,
pub height: u32,
pub num_objects: u32,
pub objects: [_VADRMPRIME3SurfaceDescriptor__bindgen_ty_1; 4],
pub num_layers: u32,
pub layers: [_VADRMPRIME3SurfaceDescriptor__bindgen_ty_2; 4],
pub flags: u32,
pub reserved: [u32; 7],
}Expand description
\brief External buffer descriptor for a DRM PRIME surface with flags
This structure is an extention for VADRMPRIMESurfaceDescriptor, it has the same behavior as if used with VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2.
The field “flags” is added, see “Surface external buffer descriptor flags”. To use this structure, use VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_3 instead.
Fields§
§fourcc: u32Pixel format fourcc of the whole surface (VA_FOURCC_*).
width: u32Width of the surface in pixels.
height: u32Height of the surface in pixels.
num_objects: u32Number of distinct DRM objects making up the surface.
objects: [_VADRMPRIME3SurfaceDescriptor__bindgen_ty_1; 4]§num_layers: u32Number of layers making up the surface.
layers: [_VADRMPRIME3SurfaceDescriptor__bindgen_ty_2; 4]§flags: u32\brief flags. See “Surface external buffer descriptor flags”.
reserved: [u32; 7]reserved bytes, must be zero
Trait Implementations§
Source§impl Clone for _VADRMPRIME3SurfaceDescriptor
impl Clone for _VADRMPRIME3SurfaceDescriptor
Source§fn clone(&self) -> _VADRMPRIME3SurfaceDescriptor
fn clone(&self) -> _VADRMPRIME3SurfaceDescriptor
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 moreimpl Copy for _VADRMPRIME3SurfaceDescriptor
Source§impl Default for _VADRMPRIME3SurfaceDescriptor
impl Default for _VADRMPRIME3SurfaceDescriptor
Source§fn default() -> _VADRMPRIME3SurfaceDescriptor
fn default() -> _VADRMPRIME3SurfaceDescriptor
Returns the “default value” for a type. Read more
impl Eq for _VADRMPRIME3SurfaceDescriptor
Source§impl PartialEq for _VADRMPRIME3SurfaceDescriptor
impl PartialEq for _VADRMPRIME3SurfaceDescriptor
Source§fn eq(&self, other: &_VADRMPRIME3SurfaceDescriptor) -> bool
fn eq(&self, other: &_VADRMPRIME3SurfaceDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for _VADRMPRIME3SurfaceDescriptor
Auto Trait Implementations§
impl Freeze for _VADRMPRIME3SurfaceDescriptor
impl RefUnwindSafe for _VADRMPRIME3SurfaceDescriptor
impl Send for _VADRMPRIME3SurfaceDescriptor
impl Sync for _VADRMPRIME3SurfaceDescriptor
impl Unpin for _VADRMPRIME3SurfaceDescriptor
impl UnsafeUnpin for _VADRMPRIME3SurfaceDescriptor
impl UnwindSafe for _VADRMPRIME3SurfaceDescriptor
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