avcodec: [loongarch] Optimize idctdstp with LASX.

Multimedia / FFmpeg - Hao Chen [loongson.cn] - 4 January 2022 14:55 UTC

./ffmpeg -i 8_mpeg4_1080p_24fps_12Mbps.avi -f rawvideo -y /dev/null -an before:433fps after :552fps

555b850bd5 avcodec: [loongarch] Optimize idctdstp with LASX.
libavcodec/idctdsp.c | 2 +
libavcodec/idctdsp.h | 2 +
libavcodec/loongarch/Makefile | 3 +
libavcodec/loongarch/idctdsp_init_loongarch.c | 45 ++++
libavcodec/loongarch/idctdsp_lasx.c | 124 +++++++++++
libavcodec/loongarch/idctdsp_loongarch.h | 41 ++++
libavcodec/loongarch/simple_idct_lasx.c | 297 ++++++++++++++++++++++++++
7 files changed, 514 insertions(+)

  • Share