Skip to main content

probe_codecs

Function probe_codecs 

Source
pub(crate) fn probe_codecs(
    encode_node_index: i32,
) -> Result<Vec<(Codec, Formats)>, String>
Expand description

The video codecs the VA-API driver of the render node behind encode_node_index encodes: those one of whose profiles the driver lists with an encode entry point, which is what vainfo reports and what a session checks first. The device is opened the way a session opens it and released. An error names the step that failed: no such node, no VA driver on it, or a libva the probe cannot reach.