avcodec/mips: [loongson] optimize memset in h264dsp.
authorShiyou Yin <yinshiyou-hf@loongson.cn>
Fri, 31 Aug 2018 13:57:23 +0000 (21:57 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 2 Sep 2018 01:37:32 +0000 (03:37 +0200)
commit93b35a0555355ad6fe7a24b2a39b8d364f3403f8
tree7066452465e480abd75ba7ac13643e80d229f1ae
parentf91237baf6f7c11a84075b1cea1f0dc2e1c70cff
avcodec/mips: [loongson] optimize memset in h264dsp.

Optimized memset with mmi in following functions:
1. ff_h264_add_pixels4_8_mmi.
2. ff_h264_idct_add_8_mmi.
3. ff_h264_idct8_add_8_mmi.

This optimization improved h264 decoding performance about 1.3%(tested on loongson 3A3000).

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mips/h264dsp_mmi.c