mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 10:09:45 +00:00
Switch to 8 byte offset
This commit is contained in:
@@ -22,8 +22,8 @@ fn rotate(width: usize, height: usize, _rotate: usize) {
|
||||
let in_b: &mut [u32];
|
||||
let out_b: &mut [u32];
|
||||
unsafe {
|
||||
in_b = from_raw_parts_mut::<u32>(4 as *mut u32, num_pixels);
|
||||
out_b = from_raw_parts_mut::<u32>((num_pixels * 4 + 4) as *mut u32, num_pixels);
|
||||
in_b = from_raw_parts_mut::<u32>(8 as *mut u32, num_pixels);
|
||||
out_b = from_raw_parts_mut::<u32>((num_pixels * 4 + 8) as *mut u32, num_pixels);
|
||||
}
|
||||
|
||||
let new_width = height;
|
||||
|
||||
Reference in New Issue
Block a user