Skip to main content

decoder

Function decoder 

Source
pub fn decoder(codec: HwCodec) -> Option<Box<dyn HwStillDecoder>>
Expand description

Returns a decoder for codec, or None when no compiled-in backend can decode it at runtime.

With the VAAPI backend compiled in (vaapi, or hw on linux-gnu), this dlopens libva on first use and answers from the driver’s actual profile/entrypoint list; missing libraries, render nodes, or driver support all degrade to None (never a link or startup failure). VideoToolbox and MediaCodec land as separate issues; without a backend this returns None everywhere.