diff options
author | gxw <guxiwei-hf@loongson.cn> | 2021-04-12 23:37:03 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-05-07 17:53:23 +0200 |
commit | 6458c6bdb4931e1903b5b39df82f32e673e15f12 (patch) | |
tree | 96c05dd6185477454264f635336b9dbcc6f18106 /libavcodec/mips/h264dsp_init_mips.c | |
parent | 5ab8e8bc922586608299c4bf690346941f338df0 (diff) | |
download | ffmpeg-6458c6bdb4931e1903b5b39df82f32e673e15f12.tar.gz |
avcodec/mips: Optimize function ff_h264_loop_filter_strength_msa.
Speed of decoding H264 1080P: 5.05x ==> 5.13x
Signed-off-by: Shiyou Yin <yinshiyou-hf@loongson.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mips/h264dsp_init_mips.c')
-rw-r--r-- | libavcodec/mips/h264dsp_init_mips.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mips/h264dsp_init_mips.c b/libavcodec/mips/h264dsp_init_mips.c index ce4dd369ba..e33df32c71 100644 --- a/libavcodec/mips/h264dsp_init_mips.c +++ b/libavcodec/mips/h264dsp_init_mips.c @@ -79,6 +79,8 @@ av_cold void ff_h264dsp_init_mips(H264DSPContext *c, const int bit_depth, } if (have_msa(cpu_flags)) { + if (chroma_format_idc <= 1) + c->h264_loop_filter_strength = ff_h264_loop_filter_strength_msa; if (bit_depth == 8) { c->h264_v_loop_filter_luma = ff_h264_v_lpf_luma_inter_msa; c->h264_h_loop_filter_luma = ff_h264_h_lpf_luma_inter_msa; |