Skip to main content

VADRMPRIME3SurfaceDescriptor

Type Alias VADRMPRIME3SurfaceDescriptor 

Source
pub type VADRMPRIME3SurfaceDescriptor = _VADRMPRIME3SurfaceDescriptor;
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.

Aliased Type§

#[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], }

Fields§

§fourcc: u32

Pixel format fourcc of the whole surface (VA_FOURCC_*).

§width: u32

Width of the surface in pixels.

§height: u32

Height of the surface in pixels.

§num_objects: u32

Number of distinct DRM objects making up the surface.

§objects: [_VADRMPRIME3SurfaceDescriptor__bindgen_ty_1; 4]§num_layers: u32

Number 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