Function ff_thread_get_format

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

Wrapper around get_format() for frame-multithreaded codecs. Call this function instead of avctx->get_format(). Cannot be called after the codec has called ff_thread_finish_setup().

@param avctx The current context. @param fmt The list of available formats.