summaryrefslogtreecommitdiff
path: root/libavcodec/h263.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-09 02:47:48 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-25 14:51:53 +0100
commit27eea249cc99a53754ea61ccf29bdff9ae13f55e (patch)
tree11c04f4cf9848b203971d50d1ec4416e44c2512e /libavcodec/h263.h
parentd90d0a715f08384bf44b004da60c6d1760a30beb (diff)
avcodec/msmpeg4dec: Reuse identical MV VLC
msmpeg4dec and ituh263dec both create VLCs with identical parameters out of ff_mvtab. Given that ff_msmpeg4_decode_init() always (indirectly) calls ff_h263_decode_init_vlc(), the VLC initialized by the latter can be directly used by msmpeg4dec. Doing so saves a bit more than 2KB from the .bss segment as well as the code to initialize a VLC. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/h263.h')
-rw-r--r--libavcodec/h263.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h263.h b/libavcodec/h263.h
index f891f72379..998f7d0d59 100644
--- a/libavcodec/h263.h
+++ b/libavcodec/h263.h
@@ -34,6 +34,7 @@
// reading vlc values. Changing these may improve speed and data cache needs
// be aware though that decreasing them may need the number of stages that is
// passed to get_vlc* to be increased.
+#define H263_MV_VLC_BITS 9
#define INTRA_MCBPC_VLC_BITS 6
#define INTER_MCBPC_VLC_BITS 7
#define CBPY_VLC_BITS 6
@@ -44,6 +45,7 @@
extern VLC ff_h263_intra_MCBPC_vlc;
extern VLC ff_h263_inter_MCBPC_vlc;
extern VLC ff_h263_cbpy_vlc;
+extern VLC ff_h263_mv_vlc;
extern const enum AVPixelFormat ff_h263_hwaccel_pixfmt_list_420[];