Skip to content

Commit

Permalink
Added sharp YUV
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Sep 4, 2024
1 parent 8f6614b commit bf2e7bb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/sharpyuv/sharp_rgba_to_yuv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ fn rgbx_to_sharp_yuv<const ORIGIN_CHANNELS: u8, const SAMPLING: u8>(
for i in 0..256 {
unsafe {
let linear = linearize_func(i as f32 * linear_scale);
if linear < 0. || linear > 1. {
panic!("{}", linear);
}
*linear_map_table.get_unchecked_mut(i as usize) =
(linear * u16::MAX as f32).round() as u16;
}
Expand Down

0 comments on commit bf2e7bb

Please sign in to comment.