pub trait ExternalBufferDescriptor {
    type DescriptorAttribute: SurfaceExternalDescriptor;

    const MEMORY_TYPE: MemoryType;

    // Required method
    fn va_surface_attribute(&mut self) -> Self::DescriptorAttribute;
}
Expand description

Trait allowing to import an external memory source to use with a surface by setting the VASurfaceAttribMemoryType and VASurfaceAttribExternalBuffers attributes.

Required Associated Types§

source

type DescriptorAttribute: SurfaceExternalDescriptor

Type of the descriptor to be set with VASurfaceAttribExternalBuffers.

Required Associated Constants§

source

const MEMORY_TYPE: MemoryType

Memory type to set for VASurfaceAttribMemoryType.

Required Methods§

source

fn va_surface_attribute(&mut self) -> Self::DescriptorAttribute

Returns the Self::DescriptorAttribute instance allowing this memory to be imported into VAAPI.

Object Safety§

This trait is not object safe.

Implementors§