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.
- 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 the lifetime of a particular VADisplay
- Gives the driver a hint of intended usage to optimize allocation (e.g. tiling).
Enums
- A wrapper over
VAGenericValuegiving us safe access to the underlying union members. - 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
- 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.