pub unsafe extern "C" fn ff_thread_decode_frame(
avctx: *mut AVCodecContext,
picture: *mut AVFrame,
got_picture_ptr: *mut c_int,
avpkt: *mut AVPacket,
) -> c_int
Expand description
Submit a new frame to a decoding thread. Returns the next available frame in picture. *got_picture_ptr will be 0 if none is available. The return value on success is the size of the consumed packet for compatibility with avcodec_decode_video2(). This means the decoder has to consume the full packet.
Parameters are the same as avcodec_decode_video2().