Documentation
¶
Overview ¶
Package vaapi decodes HEVC on Linux with VA-API (Intel, AMD, and NVIDIA through nvidia-vaapi-driver), through libva.so.2 and libva-drm.so.2 loaded with purego (no cgo). VA-API takes parsed parameters, which package codec/hevc reads from the stream.
A picture leaves the decoder as DMA-BUFs (vaExportSurfaceHandle, one composed layer), which a Wayland compositor shows as they are, or, where the presenting surface does not take them, copied into memory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HEVCProfiles ¶
func HEVCProfiles() (main, main10 bool)
HEVCProfiles reports whether a render node decodes HEVC Main, and Main 10.
Types ¶
type HEVCDecoder ¶
type HEVCDecoder struct {
// contains filtered or unexported fields
}
HEVCDecoder decodes Main and Main 10 HEVC with VA-API.
func OpenHEVC ¶
OpenHEVC makes an HEVC decoder on the first render node that takes HEVC, preferring t.Adapter's vendor.
func (*HEVCDecoder) Close ¶
func (v *HEVCDecoder) Close() error
Close frees the decoder; every picture must be released.
func (*HEVCDecoder) Release ¶
func (v *HEVCDecoder) Release(f decode.Frame)
Release gives a picture back.
func (*HEVCDecoder) Vendor ¶
func (v *HEVCDecoder) Vendor() string
Vendor is the VA driver's vendor string.