summaryrefslogtreecommitdiffstats
path: root/libavcodec/cabac_functions.h
diff options
context:
space:
mode:
authorShiyou Yin <yinshiyou-hf@loongson.cn>2018-09-18 10:59:41 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2018-09-19 18:33:59 +0200
commitba175578d14e6c8f5df8b63bdbb3bcac86dcdc30 (patch)
treee57941b2295358ac002826df9529d59c479bced6 /libavcodec/cabac_functions.h
parentcd732ac4728082967208f63a5a4fc5b91b96dee9 (diff)
downloadffmpeg-streaming-ba175578d14e6c8f5df8b63bdbb3bcac86dcdc30.zip
ffmpeg-streaming-ba175578d14e6c8f5df8b63bdbb3bcac86dcdc30.tar.gz
avcodec: [loongson] optimize get_cabac_inline.
This optimization improved h264 decoding performance about 4%(from 74fps to 77fps, tested on loongson 3A3000). Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/cabac_functions.h')
-rw-r--r--libavcodec/cabac_functions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/cabac_functions.h b/libavcodec/cabac_functions.h
index fe72a82..bb2b421 100644
--- a/libavcodec/cabac_functions.h
+++ b/libavcodec/cabac_functions.h
@@ -45,6 +45,9 @@
#if ARCH_X86
# include "x86/cabac.h"
#endif
+#if ARCH_MIPS
+# include "mips/cabac.h"
+#endif
static const uint8_t * const ff_h264_norm_shift = ff_h264_cabac_tables + H264_NORM_SHIFT_OFFSET;
static const uint8_t * const ff_h264_lps_range = ff_h264_cabac_tables + H264_LPS_RANGE_OFFSET;
OpenPOWER on IntegriCloud