Skip to content

Commit

Permalink
added 400 with alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Oct 18, 2024
1 parent cf78c08 commit b4b8fa9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/y_to_rgb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ fn y_to_rgbx<const DESTINATION_CHANNELS: u8>(
}

iter.zip(y_iter).for_each(|(rgba, y_plane)| {
let y_offset = 0;

let mut _cx = 0usize;

#[cfg(all(
Expand All @@ -104,7 +102,7 @@ fn y_to_rgbx<const DESTINATION_CHANNELS: u8>(
y_plane,
rgba,
_cx,
y_offset,
0,
0,
_width as usize,
);
Expand All @@ -120,7 +118,7 @@ fn y_to_rgbx<const DESTINATION_CHANNELS: u8>(
y_plane,
rgba,
_cx,
y_offset,
0,
0,
_width as usize,
);
Expand All @@ -135,7 +133,7 @@ fn y_to_rgbx<const DESTINATION_CHANNELS: u8>(
y_plane,
rgba,
_cx,
y_offset,
0,
0,
_width as usize,
);
Expand Down

0 comments on commit b4b8fa9

Please sign in to comment.