docs.rs failed to build moxcms-0.6.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
moxcms-0.7.7
Rust ICC Management
Fast and safe conversion between ICC profiles; in pure Rust.
Supports CMYK⬌RGBX, RGBX⬌RGBX, RGBX⬌GRAY, LAB⬌RGBX and CMYK⬌LAB, GRAY⬌RGB, any 3/4 color profiles to RGB and vice versa.
Example
let f_str = "./assets/dci_p3_profile.jpeg";
let file = open.expect;
let img = open.unwrap.decode.unwrap;
let rgb = img.to_rgb8;
let mut decoder = new.unwrap;
let icc = decoder.icc_profile.unwrap.unwrap;
let color_profile = new_from_slice.unwrap;
let dest_profile = new_srgb;
let transform = color_profile
.create_transform_8bit
.unwrap;
let mut dst = vec!;
for in rgb
.chunks_exact
.zip
save_buffer
.unwrap;
Benchmarks
ICC Transform 8-Bit
Tests were ran with a 1997×1331 resolution image.
Conversion | time(NEON) | Time(AVX2) |
---|---|---|
moxcms RGB⮕RGB | 2.68ms | 4.52ms |
moxcms LUT RGB⮕RGB | 6.03ms | 12.43ms |
moxcms RGBA⮕RGBA | 2.96ms | 4.83ms |
moxcms CMYK⮕RGBA | 9.74ms | 21.65ms |
lcms2 RGB⮕RGB | 13.1ms | 27.73ms |
lcms2 LUT RGB⮕RGB | 27.60ms | 58.26ms |
lcms2 RGBA⮕RGBA | 21.97ms | 35.70ms |
lcms2 CMYK⮕RGBA | 39.71ms | 79.40ms |
qcms RGB⮕RGB | 6.47ms | 4.59ms |
qcms LUT RGB⮕RGB | 26.72ms | 60.80ms |
qcms RGBA⮕RGBA | 6.83ms | 4.99ms |
qcms CMYK⮕RGBA | 25.97ms | 61.54ms |
License
This project is licensed under either of
at your option.