Skip to main content

Crate kodecs_vaapi

Crate kodecs_vaapi 

Source
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 VAEntrypointVideoProc pipeline.

Structs§

Color
A YUV color space: the matrix and whether samples use the full 8-bit range.
Display
A VADisplay opened over DRM.
DrmDeviceIterator
Iterates over existing DRM devices.
DrmPrimeSurfaceDescriptor
Safe wrapper around VADRMPRIMESurfaceDescriptor.
DrmPrimeSurfaceDescriptorLayer
Safe wrapper for the layers member of VADRMPRIMESurfaceDescriptor.
DrmPrimeSurfaceDescriptorObject
Safe wrapper for the object member of VADRMPRIMESurfaceDescriptor.
Image
A read-only view of a surface’s pixels in client memory, borrowing the surface.
ImageMut
Pixels to write into a surface, borrowing it mutably until put copies them in.
Surface
An owned VA surface that is tied to a particular Display.
UsageHint
Gives the driver a hint of intended usage to optimize allocation (e.g. tiling).
VaError
A VAStatus that is guaranteed to not be VA_STATUS_SUCCESS.

Enums§

Codec
A video coding format.
Matrix
The matrix that maps RGB to Y’CbCr.
OpenDrmDisplayError
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

Type Aliases§

VAImage
VAImageFormat