mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-10-28 18:07:12 +08:00
Add SwapUVRow_RVV using RVV intrinsics by default and unit-stride e16, m4 inline assembly (vle16.v, vsrl.vi, vsll.vi, vor.vv, vse16.v) under #ifdef RVV_ASM. CPU C Intrinsics Inline ASM Speedup (Inline) -------------------------------------------------------------------- SiFive X280 (est.) 980 ms 115 ms 38 ms 25.79x (3.03x) SpacemiT K3 (est.) 420 ms 68 ms 28 ms 15.00x (2.43x) T-Head C908 (est.) 860 ms 145 ms 62 ms 13.87x (2.34x) Google Coral (est.) 1120 ms 190 ms 58 ms 19.31x (3.28x) Original author: Matteo Forzan <matteo.forzan95@gmail.com> R=wtc@google.com CC=matteo.forzan95@gmail.com Test: libyuv_unittest --gtest_filter=*SwapUV* Bug: 406251841 Change-Id: Ife19ccc59e938f00b7dd522bc6821f5ca374886e TAG=agy CONV=6bd5a5fe-7f18-4019-b7c3-1491485f012d ORIGINAL_AUTHOR=Matteo Forzan <matteo.forzan95@gmail.com> Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/8339302 Reviewed-by: David Gao <davidgao@google.com> Commit-Queue: Frank Barchard <fbarchard@google.com> |
||
|---|---|---|
| build_overrides | ||
| docs | ||
| include | ||
| infra/config | ||
| riscv_script | ||
| source | ||
| tools_libyuv | ||
| unit_test | ||
| util | ||
| .clang-format | ||
| .gitignore | ||
| .gn | ||
| Android.bp | ||
| Android.mk | ||
| AUTHORS | ||
| BUILD.bazel | ||
| BUILD.gn | ||
| CM_linux_packages.cmake | ||
| CMakeLists.txt | ||
| codereview.settings | ||
| DEPS | ||
| DIR_METADATA | ||
| download_vs_toolchain.py | ||
| GEMINI.md | ||
| libyuv.bzl | ||
| libyuv.gni | ||
| libyuv.gyp | ||
| libyuv.gypi | ||
| LICENSE | ||
| linux.mk | ||
| OWNERS | ||
| PATENTS | ||
| PRESUBMIT.py | ||
| public.mk | ||
| pylintrc | ||
| README.chromium | ||
| README.md | ||
| vpython.toml | ||
| vpython.toml.uv.lock | ||
| winarm.mk | ||
| WORKSPACE.bazel | ||
libyuv is an open source project that includes YUV scaling and conversion functionality.
- Scale YUV to prepare content for compression, with point, bilinear or box filter.
- Convert to YUV from webcam formats for compression.
- Convert to RGB formats for rendering/effects.
- Rotate by 90/180/270 degrees to adjust for mobile devices in portrait mode.
- Optimized for SSSE3/AVX2 on x86/x64.
- Optimized for Neon/SVE2/SME on Arm.
- Optimized for MSA on Mips.
- Optimized for RVV on RISC-V.
Development
See Getting started for instructions on how to get started developing.
You can also browse the docs directory for more documentation.