Frank Barchard 7c85a3a082 RVV port to inline from intrinsics
- avoids intrinsics API changes
- build options for rvv not needed for inline instructions
- declare vl and vtype clobbers instead of cc
- tune for SiFive X280 using 16/32-bit loads and stores instead of
  vlseg/vsseg where more efficient
- tune LMUL for SpacemiT K3 (256-bit vectors) with max m4 (m2 where
  constrained by register pressure or vlseg/vsseg field rules)
- YUVTORGB use vmulhu

NV12ToARGB performance estimates:
CPU           VLEN      C       Intrinsics  Inline ASM  Speedup (Inline)
------------------------------------------------------------------------
SiFive X390  1024-bit  360 ms     29 ms       9.5 ms     37.89x (3.05x)
SiFive X280   512-bit  980 ms    115 ms      38.0 ms     25.79x (3.03x)
SpacemiT K3   256-bit  420 ms     68 ms      28.0 ms     15.00x (2.43x)
Google Coral  256-bit 1120 ms    190 ms      58.0 ms     19.31x (3.28x)
T-Head C920   128-bit  510 ms     88 ms      39.0 ms     13.08x (2.26x)
T-Head C908   128-bit  860 ms    145 ms      62.0 ms     13.87x (2.34x)

Bug: b/443984359
Change-Id: If4097b99ced4cc2306f12236b8605994e713eecd
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/8426529
Reviewed-by: richard winterton <rrwinterton@gmail.com>
Commit-Queue: Frank Barchard <fbarchard@google.com>
2026-09-21 14:26:26 -07:00
..
compare_common.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
compare_gcc.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
compare_neon64.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
compare_neon.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
compare_win.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
compare.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
convert_argb.cc Add I422ToAR30Row_RVV for RISC-V Vector 2026-09-01 17:00:40 -07:00
convert_from_argb.cc Multiply_16 port to avx512, rvv, neon 32 bit, and windows 2026-09-01 19:08:52 -07:00
convert_from.cc Convert8To16 takes bits instead of scale. 2026-09-01 16:07:23 -07:00
convert_jpeg.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
convert_to_argb.cc Convert8To16 takes bits instead of scale. 2026-09-01 16:07:23 -07:00
convert_to_i420.cc Convert8To16 takes bits instead of scale. 2026-09-01 16:07:23 -07:00
convert.cc Multiply_16 port to avx512, rvv, neon 32 bit, and windows 2026-09-01 19:08:52 -07:00
cpu_id.cc RVV port to inline from intrinsics 2026-09-21 14:26:26 -07:00
mjpeg_decoder.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
mjpeg_validate.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
planar_functions.cc ARGBMultiplyRow with rounding for AVX2 and RVV 2026-09-21 10:20:14 -07:00
rotate_any.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
rotate_argb.cc SVE2 row functions needed for multipass image functions 2026-08-06 12:40:26 -07:00
rotate_common.cc Convert8To16 takes bits instead of scale. 2026-09-01 16:07:23 -07:00
rotate_gcc.cc Use ptrdiff_t for buffer offsets 2026-04-28 18:21:42 -07:00
rotate_lsx.cc [AArch64] Use full vectors in TransposeWx{8 => 16}_NEON 2024-05-21 07:46:42 +00:00
rotate_neon64.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
rotate_neon.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
rotate_sme.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
rotate_win.cc BGRAToI420 use BgraConstants for a direct conversion using AVX512BW 2026-06-08 12:21:47 -07:00
rotate.cc SVE2 row functions needed for multipass image functions 2026-08-06 12:40:26 -07:00
row_any.cc Multiply_16 port to avx512, rvv, neon 32 bit, and windows 2026-09-01 19:08:52 -07:00
row_common.cc Convert8To16 takes bits instead of scale. 2026-09-01 16:07:23 -07:00
row_gcc.cc ARGBMultiplyRow with rounding for AVX2 and RVV 2026-09-21 10:20:14 -07:00
row_lasx.cc ARGBMultiplyRow with rounding for AVX2 and RVV 2026-09-21 10:20:14 -07:00
row_lsx.cc ARGBMultiplyRow with rounding for AVX2 and RVV 2026-09-21 10:20:14 -07:00
row_neon64.cc Convert8To16 takes bits instead of scale. 2026-09-01 16:07:23 -07:00
row_neon.cc Convert8To16 takes bits instead of scale. 2026-09-01 16:07:23 -07:00
row_rvv.cc RVV port to inline from intrinsics 2026-09-21 14:26:26 -07:00
row_sme.cc Convert8To16 takes bits instead of scale. 2026-09-01 16:07:23 -07:00
row_sve.cc AArch64: Fix HalfMergeUVRow_SVE2 average calculation 2026-09-11 05:56:04 -07:00
row_win.cc [libyuv] Add SwapUVRow_AVX2 and NV12ToNV21 2026-09-04 12:23:24 -07:00
scale_any.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
scale_argb.cc Scale*BilinearUp: Add invariants assertions and simplify loop 2026-08-13 14:20:11 -07:00
scale_common.cc ARGBScale and UV use uint8_t for -fsanitize=alignment 2026-08-28 15:30:12 -07:00
scale_gcc.cc Refactor multi-stage SSSE3 scalers into single asm blocks 2026-08-24 18:05:48 -07:00
scale_lsx.cc DetilePlane and unittest for NEON 2022-01-31 20:05:55 +00:00
scale_neon64.cc Apply format with no code changes 2025-02-24 23:57:01 -08:00
scale_neon.cc Apply format with no code changes 2025-02-24 23:57:01 -08:00
scale_rgb.cc Fix Coverity Control flow issues (DEADCODE) 2026-07-01 10:39:22 -07:00
scale_rvv.cc RVV port to inline from intrinsics 2026-09-21 14:26:26 -07:00
scale_sme.cc Apply clang format 2025-01-02 13:31:20 -08:00
scale_uv.cc Scale*BilinearUp: Add invariants assertions and simplify loop 2026-08-13 14:20:11 -07:00
scale_win.cc BGRAToI420 use BgraConstants for a direct conversion using AVX512BW 2026-06-08 12:21:47 -07:00
scale.cc [libyuv] Keep LIBYUV_API in basic_types.h and remove legacy types and bool macros 2026-08-28 08:32:19 -07:00
test.sh Optimze ABGRToI420 for AVX2 2020-06-04 18:24:45 +00:00
video_common.cc Lint cleanup after C99 change CL 2018-01-24 19:16:03 +00:00