Skip to main content

is_hardware_pix_fmt

Function is_hardware_pix_fmt 

Source
pub const fn is_hardware_pix_fmt(raw: i32) -> bool
Expand description

Returns true when raw is one of FFmpeg’s hardware-frame markers (AV_PIX_FMT_VIDEOTOOLBOX / _VAAPI / _CUDA / _D3D11 / _DRM_PRIME / _MEDIACODEC / _VULKAN). Used by the HW probe to identify GPU-resident frames before triggering av_hwframe_transfer_data.