Crate cros_libva
source ·Expand description
Re-exports§
pub use buffer::*;
Modules§
- Wrappers and helpers around
VABuffers.
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
layersmember ofVADRMPRIMESurfaceDescriptor. - Safe wrapper for the
objectmember ofVADRMPRIMESurfaceDescriptor. - Wrapper around
VAImagethat is tied to the lifetime of a givenPicture. - A
Surfacethat 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
VAStatusthat is guaranteed to not beVA_STATUS_SUCCESS.
Enums§
- Decode error type aka
VADecodeErrorType - A wrapper over
VAGenericValuegiving 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
PictureaftervaBeginPicturehas been called. - Represents a
PictureaftervaEndPicturehas been called. - Represents a
Picturethat has just been created. - Represents a
PictureaftervaRenderPicturehas been called. - Represents a
PictureaftervaSyncSurfacehas been called on the underlying surface.
Traits§
- Trait allowing to import an external memory source to use with a surface by setting the
VASurfaceAttribMemoryTypeandVASurfaceAttribExternalBuffersattributes. - Represents a state where one can reclaim the underlying
Surfacefor thisPicture. This is true when either no decoding has been initiated or, alternatively, when the decoding operation has completed for the underlyingvaSurface - A
Picturewill 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,vaEndPictureandvaSyncSurface. 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.