Skip to main content

probe

Function probe 

Source
pub fn probe(display: &Arc<Display>, codec: Codec) -> Result<Limits>
Expand description

Returns the frame sizes display’s driver encodes codec at, which is what Encoder::new checks of a render node.

§Errors

Fails when the driver offers neither the full nor the low-power Main profile encode entrypoint for codec, refuses an encode config for it, or cannot be asked, and for H.265 when it requires a coding tool this encoder does not write.