[vlc-devel] [PATCH 2/2] video-filtering_sharpening: remove clip function
victorien.lecouviour.tuffet at gmail.com
victorien.lecouviour.tuffet at gmail.com
Wed Apr 5 18:56:03 CEST 2017
From: Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com>
This function is not needed anymore since it was designed only for 8bits channels.
---
modules/video_filter/sharpen.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/modules/video_filter/sharpen.c b/modules/video_filter/sharpen.c
index 531140b994..9ac2520352 100644
--- a/modules/video_filter/sharpen.c
+++ b/modules/video_filter/sharpen.c
@@ -92,14 +92,6 @@ struct filter_sys_t
int tab_precalc[512];
};
-/*****************************************************************************
- * clip: avoid negative value and value > 255
- *****************************************************************************/
-inline static int32_t clip( int32_t a )
-{
- return (a > 255) ? 255 : (a < 0) ? 0 : a;
-}
-
static void init_precalc_table(filter_sys_t *p_filter, float sigma)
{
for(int i = 0; i < 512; ++i)
--
2.12.0
More information about the vlc-devel
mailing list