Skip to main content

driver_selects_nvenc

Function driver_selects_nvenc 

Source
pub(crate) fn driver_selects_nvenc(encode_driver: &str) -> bool
Expand description

Whether an encode node’s driver name routes to NVENC: NVIDIA, or unknown (no readable render-node sysfs entry, the usual shape of an NVIDIA container without /dev/dri), so the NVENC attempt runs before the CPU fallback. Any other named driver routes to VA-API. Shared by the X11 and Wayland paths so both pick the same encoder for the same node.