mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-10-28 18:07:12 +08:00
- 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> |
||
|---|---|---|
| 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.