mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-10-28 18:07:12 +08:00
- reduced shifts to isolate 10 bits - permi2w instead of packlwd to combine words (ARG) (GB) into ARGB - vpternlogd to combine A,R,G into 1 register Saphhire Rapids 10000 iterations of 1280x720P: Conversion Kernel │ Was │ Now │ Speedup ──────────────────────┼────────────────────────┼──────────────── I420ToAR30_Opt │ 1675 ms │ 1568 ms │ +7.1% H420ToAR30_Opt │ 1632 ms │ 1555 ms │ +5.2% I210ToAR30_Opt │ 2459 ms │ 2167 ms │ +13.5% P010ToAR30_Opt │ 2054 ms │ 1926 ms │ +6.6% P016ToAR30_Opt │ 2043 ms │ 1938 ms │ +5.4% Total Test Suite Time │ 9,866 ms │ 9,155 ms │ +7.8% overall Bug: None Change-Id: I7972f98408a65a2bb51c506145e4c0c63824c424 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/8259796 Commit-Queue: Frank Barchard <fbarchard@google.com> Reviewed-by: richard winterton <rrwinterton@gmail.com> |
||
|---|---|---|
| build_overrides | ||
| docs | ||
| include | ||
| infra/config | ||
| riscv_script | ||
| source | ||
| tools_libyuv | ||
| unit_test | ||
| util | ||
| .clang-format | ||
| .gitignore | ||
| .gn | ||
| .vpython3 | ||
| 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 | ||
| 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.