Trait cros_libva::ExternalBufferDescriptor
source · 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§
sourcetype DescriptorAttribute: SurfaceExternalDescriptor
type DescriptorAttribute: SurfaceExternalDescriptor
Type of the descriptor to be set with VASurfaceAttribExternalBuffers
.
Required Associated Constants§
sourceconst MEMORY_TYPE: MemoryType
const MEMORY_TYPE: MemoryType
Memory type to set for VASurfaceAttribMemoryType
.
Required Methods§
sourcefn va_surface_attribute(&mut self) -> Self::DescriptorAttribute
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.