diff --git a/app/src/main.rs b/app/src/main.rs index 5a1e4ea..9bb82fb 100644 --- a/app/src/main.rs +++ b/app/src/main.rs @@ -11,11 +11,7 @@ use fast_image_resize::{ CpuExtensions, FilterType, IntoImageView, PixelType, ResizeAlg, ResizeOptions, Resizer, }; use image::{EncodableLayout, GenericImageView, ImageReader}; -use pic_scale::{ - ImageSize, ImageStore, ImageStoreMut, ImageStoreScaling, ResamplingFunction, RgbF16ImageStore, - RgbF16ImageStoreMut, Rgba16ImageStoreMut, RgbaF16ImageStore, RgbaF16ImageStoreMut, Scaler, - Scaling, ScalingU16, ThreadingPolicy, WorkloadStrategy, -}; +use pic_scale::{Ar30ByteOrder, ImageSize, ImageStore, ImageStoreMut, ImageStoreScaling, ResamplingFunction, RgbF16ImageStore, RgbF16ImageStoreMut, Rgba16ImageStoreMut, RgbaF16ImageStore, RgbaF16ImageStoreMut, Scaler, Scaling, ScalingU16, ThreadingPolicy, WorkloadStrategy}; fn resize_plane( src_width: usize, diff --git a/src/fixed_point_vertical_ar30.rs b/src/fixed_point_vertical_ar30.rs index 4bc2ac4..26aa32c 100644 --- a/src/fixed_point_vertical_ar30.rs +++ b/src/fixed_point_vertical_ar30.rs @@ -144,7 +144,7 @@ fn convolve_column_handler_fixed_point_direct_buffer_double< } } - let v_dst0 = &mut dst[v_start_px * 4..(v_start_px + BUFFER_SIZE * 4)]; + let v_dst0 = &mut dst[v_start_px * 4..(v_start_px * 4 + BUFFER_SIZE * 4)]; for (dst, src) in v_dst0.chunks_exact_mut(4).zip(direct_store0) { let saturated = src .saturate_ar30()