diff options
author | Hao Chen <chenhao@loongson.cn> | 2021-12-29 18:18:21 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-01-04 15:55:05 +0100 |
commit | 555b850bd56c87007c6b7b02dbb1e474e9911dfa (patch) | |
tree | 97773159d4027884daaf9bab594061a1cd68d67a /libavcodec/idctdsp.c | |
parent | 5d58355bf1a7bd07b0f08bf1f90f4aba8b89d727 (diff) | |
download | ffmpeg-555b850bd56c87007c6b7b02dbb1e474e9911dfa.tar.gz |
avcodec: [loongarch] Optimize idctdstp with LASX.
./ffmpeg -i 8_mpeg4_1080p_24fps_12Mbps.avi -f rawvideo -y /dev/null -an
before:433fps
after :552fps
Reviewed-by: 殷时友 <yinshiyou-hf@loongson.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/idctdsp.c')
-rw-r--r-- | libavcodec/idctdsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/idctdsp.c b/libavcodec/idctdsp.c index 846ed0b0f8..71bd03c606 100644 --- a/libavcodec/idctdsp.c +++ b/libavcodec/idctdsp.c @@ -315,6 +315,8 @@ av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) ff_idctdsp_init_x86(c, avctx, high_bit_depth); if (ARCH_MIPS) ff_idctdsp_init_mips(c, avctx, high_bit_depth); + if (ARCH_LOONGARCH) + ff_idctdsp_init_loongarch(c, avctx, high_bit_depth); ff_init_scantable_permutation(c->idct_permutation, c->perm_type); |