diff options
author | gxw <guxiwei-hf@loongson.cn> | 2021-12-29 18:18:22 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-01-04 15:55:05 +0100 |
commit | 8ca7d474c19f856b28fa588e040b23b1a58368ed (patch) | |
tree | 28c339ae50fb60984f9a896db5cb11c9229f5759 /libavcodec/videodsp.c | |
parent | 555b850bd56c87007c6b7b02dbb1e474e9911dfa (diff) |
avcodec: [loongarch] Optimize prefetch with loongarch.
./ffmpeg -i ../1_h264_1080p_30fps_3Mbps.mp4 -f rawvideo -y /dev/null -an
before:296
after :308
Reviewed-by: 殷时友 <yinshiyou-hf@loongson.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/videodsp.c')
-rw-r--r-- | libavcodec/videodsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/videodsp.c b/libavcodec/videodsp.c index ce9e9eb143..212147984f 100644 --- a/libavcodec/videodsp.c +++ b/libavcodec/videodsp.c @@ -54,4 +54,6 @@ av_cold void ff_videodsp_init(VideoDSPContext *ctx, int bpc) ff_videodsp_init_x86(ctx, bpc); if (ARCH_MIPS) ff_videodsp_init_mips(ctx, bpc); + if (ARCH_LOONGARCH64) + ff_videodsp_init_loongarch(ctx, bpc); } |