diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-28 00:21:32 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-02-13 19:36:50 +0100 |
commit | 20033c7da4d631385dcb2afc4ed907c3500d8372 (patch) | |
tree | c3635da54fe18da8bbc2a72aea24c8e9e8456c5c /libavcodec/msmpeg4enc.h | |
parent | e2cf60f0401c6731026a82f7b5b18b1b0389ee5d (diff) | |
download | ffmpeg-20033c7da4d631385dcb2afc4ed907c3500d8372.tar.gz |
avcodec/msmpegenc: Add MSMPEG4EncContext and move ac_stats to it
Also avoid the allocation by making it part of the context.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/msmpeg4enc.h')
-rw-r--r-- | libavcodec/msmpeg4enc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/msmpeg4enc.h b/libavcodec/msmpeg4enc.h index 12f8f44232..98044913b1 100644 --- a/libavcodec/msmpeg4enc.h +++ b/libavcodec/msmpeg4enc.h @@ -25,6 +25,14 @@ #include "config.h" #include "mpegvideo.h" #include "put_bits.h" +#include "rl.h" + +typedef struct MSMPEG4EncContext { + MpegEncContext s; + + /** [mb_intra][isChroma][level][run][last] */ + unsigned ac_stats[2][2][MAX_LEVEL + 1][MAX_RUN + 1][2]; +} MSMPEG4EncContext; void ff_msmpeg4_encode_init(MpegEncContext *s); void ff_msmpeg4_encode_picture_header(MpegEncContext *s, int picture_number); |