avcodec/mips: [loongson] reoptimize simple idct with mmi.
authorShiyou Yin <yinshiyou-hf@loongson.cn>
Fri, 31 Aug 2018 13:41:49 +0000 (21:41 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 2 Sep 2018 01:37:32 +0000 (03:37 +0200)
commitdf13b75aa18633f95761b34775ab5e6797d92c57
treebdc8df903143764ab4fc756e628fd1b265720320
parent1124df0397372c4d1dd798dc2cfb7d4e0f2bb890
avcodec/mips: [loongson] reoptimize simple idct with mmi.

Performance of mpeg4 decoding improved about 23%(from 128fps to 158fps, tested on loongson 3A3000).
Reoptimized following functions with mmi.
1. ff_simple_idct_put_8_mmi
2. ff_simple_idct_add_8_mmi
3. ff_simple_idct_8_mmi

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mips/idctdsp_init_mips.c
libavcodec/mips/idctdsp_mips.h
libavcodec/mips/simple_idct_mmi.c
libavutil/mips/mmiutils.h