Skip to main content

VASurfaceAttrib

Type Alias VASurfaceAttrib 

Source
pub type VASurfaceAttrib = _VASurfaceAttrib;
Expand description

\brief Surface attribute.

Aliased Type§

#[repr(C)]
pub struct VASurfaceAttrib { pub type_: u32, pub flags: u32, pub value: _VAGenericValue, }

Fields§

§type_: u32

\brief Type.

§flags: u32

\brief Flags. See “Surface attribute flags”.

§value: _VAGenericValue

\brief Value. See “Surface attribute types” for the expected types.

Implementations§

Source§

impl VASurfaceAttrib

Helpers to build valid VASurfaceAttribs.

Source

pub fn new_pixel_format(fourcc: u32) -> Self

Source

pub fn new_usage_hint(usage_hint: UsageHint) -> Self

Source

pub fn new_memory_type(mem_type: MemoryType) -> Self

Source

pub fn new_buffer_descriptor<T: SurfaceExternalDescriptor>(desc: &mut T) -> Self