Skip to content

Commit

Permalink
Added Yuv16 -> Rgb16 support
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Oct 15, 2024
1 parent 0796611 commit d93c890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sharpyuv/sharp_rgba_to_yuv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ fn rgbx_to_sharp_yuv<const ORIGIN_CHANNELS: u8, const SAMPLING: u8>(
.zip(u_iter)
.zip(v_iter);

full_iter.for_each(|((((rgba, rgb_layout), y_plane), _), _)| {
full_iter.for_each(|((((rgba, _rgb_layout), y_plane), _), _)| {
let y_offset = 0usize;
let rgba_offset = 0usize;

Expand All @@ -385,7 +385,7 @@ fn rgbx_to_sharp_yuv<const ORIGIN_CHANNELS: u8, const SAMPLING: u8>(

#[cfg(all(target_arch = "aarch64", target_feature = "neon"))]
unsafe {
let rgb_layout_src = rgb_layout.get_unchecked(0..);
let rgb_layout_src = _rgb_layout.get_unchecked(0..);
let rgb_layout_next_src = rgb_layout_src;
let offset = neon_rgba_to_sharp_yuv::<ORIGIN_CHANNELS, SAMPLING, PRECISION>(
&transform,
Expand Down

0 comments on commit d93c890

Please sign in to comment.