diff options
author | Shiyou Yin <yinshiyou-hf@loongson.cn> | 2019-02-01 14:05:01 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-02-02 20:17:37 +0100 |
commit | dceefb2b84b3aacaf40309f750b1b53f36b7a412 (patch) | |
tree | 572df3b18e61a5656f470e30e975084609c3787a /libavcodec/mips/hevcdsp_mips.h | |
parent | c0942b7a2c5ccfd39907257b3b0a10f86d6b9164 (diff) | |
download | ffmpeg-dceefb2b84b3aacaf40309f750b1b53f36b7a412.tar.gz |
avcodec/mips: [loongson] optimize put_hevc_qpel_bi_h_8 with mmi.
Optimize put_hevc_qpel_bi_h_8 with mmi in the case width=4/8/12/16/24/32/48/64.
This optimization improved HEVC decoding performance 2.1%(2.34x to 2.39x, tested on loongson 3A3000).
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mips/hevcdsp_mips.h')
-rw-r--r-- | libavcodec/mips/hevcdsp_mips.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/mips/hevcdsp_mips.h b/libavcodec/mips/hevcdsp_mips.h index fe4faae41a..41f56c8e97 100644 --- a/libavcodec/mips/hevcdsp_mips.h +++ b/libavcodec/mips/hevcdsp_mips.h @@ -524,6 +524,15 @@ L_BI_MC(qpel, hv, 32, mmi); L_BI_MC(qpel, hv, 48, mmi); L_BI_MC(qpel, hv, 64, mmi); +L_BI_MC(qpel, h, 4, mmi); +L_BI_MC(qpel, h, 8, mmi); +L_BI_MC(qpel, h, 12, mmi); +L_BI_MC(qpel, h, 16, mmi); +L_BI_MC(qpel, h, 24, mmi); +L_BI_MC(qpel, h, 32, mmi); +L_BI_MC(qpel, h, 48, mmi); +L_BI_MC(qpel, h, 64, mmi); + L_BI_MC(epel, hv, 4, mmi); L_BI_MC(epel, hv, 8, mmi); L_BI_MC(epel, hv, 12, mmi); |