Crate cros_libva
source ·Expand description
Re-exports§
pub use buffer::*;
Modules§
- Wrappers and helpers around
VABuffer
s.
Structs§
- A configuration for a given
Display
. - A VA context for a particular
Display
. - A VADisplay opened over DRM.
- Iterates over existing DRM devices.
- Safe wrapper around
VADRMPRIMESurfaceDescriptor
. - Safe wrapper for the
layers
member ofVADRMPRIMESurfaceDescriptor
. - Safe wrapper for the
object
member ofVADRMPRIMESurfaceDescriptor
. - Wrapper around
VAImage
that is tied to the lifetime of a givenPicture
. - A
Surface
that is being rendered into. - An owned VA surface that is tied to a particular
Display
. - Decode error details extracted from
VASurfaceDecodeMBErrors
, result of vaQuerySurfaceError. - Gives the driver a hint of intended usage to optimize allocation (e.g. tiling).
- A
VAStatus
that is guaranteed to not beVA_STATUS_SUCCESS
.
Enums§
- Decode error type aka
VADecodeErrorType
- A wrapper over
VAGenericValue
giving us safe access to the underlying union members. - VA memory types, aka
VA_SURFACE_ATTRIB_MEM_TYPE_*
. - Error type for
Display::open_drm_display
. - Represents a
Picture
aftervaBeginPicture
has been called. - Represents a
Picture
aftervaEndPicture
has been called. - Represents a
Picture
that has just been created. - Represents a
Picture
aftervaRenderPicture
has been called. - Represents a
Picture
aftervaSyncSurface
has been called on the underlying surface.
Traits§
- Trait allowing to import an external memory source to use with a surface by setting the
VASurfaceAttribMemoryType
andVASurfaceAttribExternalBuffers
attributes. - Represents a state where one can reclaim the underlying
Surface
for thisPicture
. This is true when either no decoding has been initiated or, alternatively, when the decoding operation has completed for the underlyingvaSurface
- A
Picture
will only have valid YUV data after a sequence of operations are performed in a particular order. This order correspond to the following VA-API calls:vaBeginPicture
,vaRenderPicture
,vaEndPicture
andvaSyncSurface
. This trait enforces this ordering by implementing the Typestate pattern to constrain what operations are available in what particular states. - Trait for types that can be used as a
VASurfaceAttribExternalBufferDescriptor
. - Trait describing a memory backing for surfaces.