Skip to main content

probe_vulkan_encode

Function probe_vulkan_encode 

Source
pub fn probe_vulkan_encode(
    device: &AVHWDeviceContext,
    width: u32,
    height: u32,
) -> Result<VulkanEncodeProbe, EncodeError>
Expand description

Opens h264_vulkan against device and encodes one untouched pool frame.

ยงErrors

Returns an adapter failure when the encoder is absent, the pool cannot be created, the session cannot open, or no packet is produced.