Skip to main content

detect_hw_accel_with_probe

Function detect_hw_accel_with_probe 

Source
pub fn detect_hw_accel_with_probe(probe: &dyn HwProbe) -> HwAccelCapabilities
Expand description

Run a probe and return the result without touching the process-wide cache.

Useful in tests:

use oximedia_transcode::{
    detect_hw_accel_with_probe, HwAccelCapabilities, MockProbe,
};

let probe = MockProbe(HwAccelCapabilities::none());
let caps = detect_hw_accel_with_probe(&probe);
assert!(caps.is_empty());