AVCodecContext.reget_buffer

Called at the beginning of a frame to get cr buffer for it. Buffer type (size, hints) must be the same. libavcodec won't check it. libavcodec will pass previous buffer in pic, function should return same buffer or new buffer with old frame "painted" into it. If pic.data[0] == NULL must behave like get_buffer(). if CODEC_CAP_DR1 is not set then reget_buffer() must call avcodec_default_reget_buffer() instead of providing buffers allocated by some other means. - encoding: unused - decoding: Set by libavcodec, user can override.

struct AVCodecContext
deprecated
static if(FF_API_GET_BUFFER)
int function(AVCodecContext* c, AVFrame* pic) reget_buffer;

Meta