diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-09-05 20:40:12 +0200 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-09-19 11:06:39 +0200 |
commit | 435c0b87d28b48dc2e0360adc404a0e2d66d16a0 (patch) | |
tree | 7b92cf32e2bb3e75987796ca5f5d71f3b612efe5 /libavcodec/mpegvideo.h | |
parent | 1b3439b3055b083df51d7f7838ecc6b3f708b15c (diff) | |
download | ffmpeg-435c0b87d28b48dc2e0360adc404a0e2d66d16a0.tar.gz |
mpegvideo: add reinit function for frame parameter changes
This is mainly required for frame parameter changes during frame based
multithreading but single threaded usage profits too from avoiding
ff_MPV_common_end()/ff_MPV_common_init() cycles.
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index 95830bb949..88a1059102 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -139,6 +139,7 @@ typedef struct Picture{ int32_t *mb_cmp_score; ///< Table for MB cmp scores, for mb decision FIXME remove int b_frame_score; /* */ struct MpegEncContext *owner2; ///< pointer to the MpegEncContext that allocated this picture + int needs_realloc; ///< Picture needs to be reallocated (eg due to a frame size change) } Picture; /** @@ -748,6 +749,7 @@ void ff_MPV_common_defaults(MpegEncContext *s); void ff_MPV_decode_defaults(MpegEncContext *s); int ff_MPV_common_init(MpegEncContext *s); +int ff_MPV_common_frame_size_change(MpegEncContext *s); void ff_MPV_common_end(MpegEncContext *s); void ff_MPV_decode_mb(MpegEncContext *s, DCTELEM block[12][64]); int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx); |