diff options
author | Shiyou Yin <yinshiyou-hf@loongson.cn> | 2021-12-01 11:52:20 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-12-01 17:44:56 +0100 |
commit | afcb36b7e54727d533b45303b36fa0d13ce02797 (patch) | |
tree | 4389a5d1edd28f6f359e24bfc762541aa84fe6e3 /libavcodec/cabac_functions.h | |
parent | 07f8f78a5fb8b6a28f7b9d79fae6e411a17114ee (diff) | |
download | ffmpeg-afcb36b7e54727d533b45303b36fa0d13ce02797.tar.gz |
avcodec: [loongarch] optimize get_cabac.
Decoding 1080P H264 on 2.5Ghz 3A5000: 165fps==>168fps.
Testing command: ffmpeg -i ***.mp4 -f rawvideo -y /dev/null -an
Reviewed-by: 陈昊 <chenhao@loongson.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/cabac_functions.h')
-rw-r--r-- | libavcodec/cabac_functions.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/cabac_functions.h b/libavcodec/cabac_functions.h index 46af921822..2f2d48a8f8 100644 --- a/libavcodec/cabac_functions.h +++ b/libavcodec/cabac_functions.h @@ -49,6 +49,9 @@ #if ARCH_MIPS # include "mips/cabac.h" #endif +#if ARCH_LOONGARCH64 +# include "loongarch/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; |