From bf2e7bb2ffe444eda430f82302edd1f5d4a37648 Mon Sep 17 00:00:00 2001 From: awxkee Date: Wed, 4 Sep 2024 17:54:57 +0100 Subject: [PATCH] Added sharp YUV --- src/sharpyuv/sharp_rgba_to_yuv.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/sharpyuv/sharp_rgba_to_yuv.rs b/src/sharpyuv/sharp_rgba_to_yuv.rs index 8faaaf1..e51bd87 100644 --- a/src/sharpyuv/sharp_rgba_to_yuv.rs +++ b/src/sharpyuv/sharp_rgba_to_yuv.rs @@ -38,9 +38,6 @@ fn rgbx_to_sharp_yuv( 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; }