Skip to content

Commit

Permalink
Saturating alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed May 18, 2024
1 parent 3920270 commit 4408dae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/yuv_to_rgba_alpha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use crate::{YuvRange, YuvStandardMatrix};

#[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
#[cfg(target_feature = "neon")]
#[inline(always)]
unsafe fn premutiply_vector(v: uint8x16_t, a_values: uint8x16_t) -> uint8x16_t {
let initial = vdupq_n_u16(127);
let acc_hi = vqaddq_u16(initial, vmull_high_u8(v, a_values));
Expand Down

0 comments on commit 4408dae

Please sign in to comment.