From 9e195e463386aed41b19d86675fadb8f59a55ad0 Mon Sep 17 00:00:00 2001 From: awxkee Date: Thu, 6 Jun 2024 00:02:25 +0100 Subject: [PATCH] LUV bugfixes, improve LCh --- Cargo.toml | 1 - src/app/Cargo.toml | 2 +- src/image_to_linear.rs | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ae7a694..ba58e28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,4 +20,3 @@ half = "2.4.1" [features] default = [] -avx2 = [] diff --git a/src/app/Cargo.toml b/src/app/Cargo.toml index b6c6a6b..860947c 100644 --- a/src/app/Cargo.toml +++ b/src/app/Cargo.toml @@ -4,5 +4,5 @@ version = "0.1.0" edition = "2021" [dependencies] -colorutils-rs = {path = "../../", features = ["avx2"]} +colorutils-rs = { path = "../../" } image = "0.25.1" diff --git a/src/image_to_linear.rs b/src/image_to_linear.rs index 8997066..577c08d 100644 --- a/src/image_to_linear.rs +++ b/src/image_to_linear.rs @@ -36,11 +36,11 @@ fn channels_to_linear( let channels = image_configuration.get_channels_count(); #[cfg(target_arch = "x86_64")] - let mut has_sse = false; + let mut _has_sse = false; #[cfg(all(target_arch = "x86_64", target_feature = "sse4.1"))] if is_x86_feature_detected!("sse4.1") { - has_sse = true; + _has_sse = true; } for _ in 0..height as usize { @@ -48,7 +48,7 @@ fn channels_to_linear( #[cfg(target_arch = "x86_64")] unsafe { - if has_sse { + if _has_sse { cx = sse_channels_to_linear::( cx, src.as_ptr(),