Rust utilities for YUV format handling and conversion.
Fast and simple YUV approximation conversion in pure Rust. At most the same as libyuv does. Performance will be equal to libyuv or slightly higher on platforms where SIMD is implemented. Otherwise equal or slower.
Mostly implemented AVX-512, AVX2, SSE, NEON
X86 targets with SSE and AVX uses runtime dispatch to detect available cpu features.
Supports:
- YCbCr ( aka YUV )
- YCgCo
Also contains AVX-512 intrinsics. Feature nightly_avx512
and nightly
rust channel compiler is required
rustc avx2
, avx512f
, neon
features should be set when you expect than code will run on supported device.
SSE 4.1 target feature settings is not required but preferred.
Adding to project
RGB to YCbCr
rgb_to_yuv422;
YCbCr to RGB
yuv422_to_rgb;
RGB To YCgCo
rgb_to_ycgco420;
YCgCo to RGB
ycgco420_to_rgb;