Crates.io | colorutils-rs |
lib.rs | colorutils-rs |
version | 0.7.3 |
source | src |
created_at | 2024-05-19 12:46:26.577604 |
updated_at | 2024-11-13 12:14:20.037594 |
description | High performance utilities for color format handling and conversion. |
homepage | https://github.com/awxkee/colorutils-rs |
repository | https://github.com/awxkee/colorutils-rs |
max_upload_size | |
id | 1244900 |
size | 790,050 |
The goal is to provide support for common conversion and SIMD options for most common conversion path for high-performance
Available SIMD fast paths generally 5-10 times faster than naive implementations
Allows conversion between
There are some prebuilt functions for ex.
srgb_to_lab(src_bytes, width * components, &mut lab_store, width * 3 * std::mem::size_of::<f32>() as u32, width, height);
Prebuilt solutions ~3-5 times faster than naive implementation. If your case fits that you prebuilt function. Speed increasing done with AVX, NEON and SSE, if you are disabled or not using CPU with this features then you won't receive any benefits.
Also, fma
target feature for x86-64 is available.
Target feature at compile time +avx2
must be activated to properly compile avx2 instructions. This is an important step even when runtime dispatch are used.
This project is licensed under either of
at your option.