Expand description
VA-API H.264 and H.265 encode and decode, with libva loaded at runtime.
encode::Encoder and decode::Decoder each open their own Display, and
vpp::Processor imports, scales, and converts dmabuf::DmaBufs on the GPU.
Modules§
- VAEntrypoint
- VAProfile
- decode
- Thin VA-API H.264 and H.265 decoder built on the vendored libva binding.
- dmabuf
- Importing a Linux DMA-BUF as a VA surface, without copying it.
- encode
- Thin VA-API H.264 and H.265 encoder built on the vendored libva binding.
- vpp
- Video post-processing: the
VAEntrypointVideoProcpipeline.
Structs§
- Color
- A YUV color space: the matrix and whether samples use the full 8-bit range.
- Display
- A VADisplay opened over DRM.
- DrmDevice
Iterator - Iterates over existing DRM devices.
- DrmPrime
Surface Descriptor - Safe wrapper around
VADRMPRIMESurfaceDescriptor. - DrmPrime
Surface Descriptor Layer - Safe wrapper for the
layersmember ofVADRMPRIMESurfaceDescriptor. - DrmPrime
Surface Descriptor Object - Safe wrapper for the
objectmember ofVADRMPRIMESurfaceDescriptor. - Image
- A read-only view of a surface’s pixels in client memory, borrowing the surface.
- Image
Mut - Pixels to write into a surface, borrowing it mutably until
putcopies them in. - Surface
- An owned VA surface that is tied to a particular
Display. - Usage
Hint - Gives the driver a hint of intended usage to optimize allocation (e.g. tiling).
- VaError
- A
VAStatusthat is guaranteed to not beVA_STATUS_SUCCESS.
Enums§
- Codec
- A video coding format.
- Matrix
- The matrix that maps RGB to Y’CbCr.
- Open
DrmDisplay Error - Error type for
Display::open_drm_display.
Constants§
- VA_
FOURCC_ BGRA - VA_
FOURCC_ BGRX - VA_
FOURCC_ I420 - VA_
FOURCC_ NV12 - VA_
FOURCC_ RGBA - VA_
FOURCC_ RGBX - VA_
RT_ FORMAT_ RGB32 - VA_
RT_ FORMAT_ YUV420