Skip to content

Commit

Permalink
Fix AVX pre-multiplication panic
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jan 4, 2025
1 parent 3862c98 commit 6201ba3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fn main() {

// for i in 0..25 {
let start_time = Instant::now();
scaler.resize_rgba_u16(&store, &mut dst_store, false).unwrap();
scaler.resize_rgba_u16(&store, &mut dst_store, true).unwrap();

let elapsed_time = start_time.elapsed();
// Print the elapsed time in milliseconds
Expand Down
2 changes: 1 addition & 1 deletion src/avx2/alpha_u16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub(crate) fn avx_premultiply_alpha_rgba_u16(
) {
unsafe {
avx_premultiply_alpha_rgba_u16_impl(
dst, dst_stride, src, width, height, bit_depth, src_stride, pool,
dst, dst_stride, src, width, height, src_stride, bit_depth, pool,
);
}
}
Expand Down

0 comments on commit 6201ba3

Please sign in to comment.