Function ff_get_format

Source
pub unsafe extern "C" fn ff_get_format(
    avctx: *mut AVCodecContext,
    fmt: *const AVPixelFormat,
) -> c_int
Expand description

Select the (possibly hardware accelerated) pixel format. This is a wrapper around AVCodecContext.get_format() and should be used instead of calling get_format() directly.

The list of pixel formats must contain at least one valid entry, and is terminated with AV_PIX_FMT_NONE. If it is possible to decode to software, the last entry in the list must be the most accurate software format. If it is not possible to decode to software, AVCodecContext.sw_pix_fmt must be set before calling this function.