pub fn create_decoder(codec: &str, info: StreamInfo) -> Result<Box<dyn Decoder>>Expand description
Construct a hardware decoder for codec. NVIDIA GPUs win on tie
when both vendors are present (NVDEC is generally lower-latency on
the standard codec set + is what the production fleet has been
tuned against). When NVDEC is disabled per env-var or doesn’t
support the codec, fall through to QSV. If neither fits, hard-fail
— there is no CPU fallback.