From 305c78e2b70491a29e6293e52d329fe1bd9060cd Mon Sep 17 00:00:00 2001 From: awxkee Date: Tue, 4 Jun 2024 22:37:07 +0100 Subject: [PATCH] Thread improvements, a lot of reworking --- app/src/main.rs | 2 +- src/acceleration_feature.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main.rs b/app/src/main.rs index 015908b..ab6690f 100644 --- a/app/src/main.rs +++ b/app/src/main.rs @@ -25,7 +25,7 @@ fn main() { let start_time = Instant::now(); - let mut scaler = LabScaler::new(ResamplingFunction::Lanczos3); + let mut scaler = Scaler::new(ResamplingFunction::Lanczos3); scaler.set_threading_policy(ThreadingPolicy::Adaptive); let store = ImageStore::::from_slice(&mut bytes, dimensions.0 as usize, dimensions.1 as usize); diff --git a/src/acceleration_feature.rs b/src/acceleration_feature.rs index a7c1e7f..7d9f60c 100644 --- a/src/acceleration_feature.rs +++ b/src/acceleration_feature.rs @@ -1,8 +1,12 @@ #[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq)] +#[allow(dead_code)] pub(crate) enum AccelerationFeature { #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] + #[allow(dead_code)] Neon, #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] + #[allow(dead_code)] Sse, + #[allow(dead_code)] Native } \ No newline at end of file