Skip to content

Commit

Permalink
Added NEON
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee authored and etemesi254 committed Mar 1, 2025
1 parent fa81f39 commit 5f2592f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/zune-jpeg/src/color_convert/neon64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ pub fn ycbcr_to_rgb_neon(
pub fn ycbcr_to_rgba_neon(
y: &[i16; 16], cb: &[i16; 16], cr: &[i16; 16], out: &mut [u8], offset: &mut usize
) {
// call this in another function to tell RUST to vectorize this
// storing
unsafe {
let (r, g, b) = ycbcr_to_rgb_baseline_no_clamp(y, cb, cr);
vst4q_u8(out.as_mut_ptr(), uint8x16x4_t(r, g, b, vdupq_n_u8(255)));
Expand Down

0 comments on commit 5f2592f

Please sign in to comment.