[vlc-devel] [PATCH] video_filter/deinterlace: algo_x: remove median (unused)

Filip Roséen filip at atch.se
Fri Mar 17 03:36:00 CET 2017


---
 modules/video_filter/deinterlace/algo_x.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/modules/video_filter/deinterlace/algo_x.c b/modules/video_filter/deinterlace/algo_x.c
index a42861043c..fe08d61fdf 100644
--- a/modules/video_filter/deinterlace/algo_x.c
+++ b/modules/video_filter/deinterlace/algo_x.c
@@ -448,23 +448,6 @@ static inline void XDeintNxN( uint8_t *dst, int i_dst, uint8_t *src, int i_src,
         XDeintNxNFrame( dst, i_dst, src, i_src, i_width, i_height );
 }
 
-static inline int median( int a, int b, int c )
-{
-    int min = a, max =a;
-    if( b < min )
-        min = b;
-    else
-        max = b;
-
-    if( c < min )
-        min = c;
-    else if( c > max )
-        max = c;
-
-    return a + b + c - min - max;
-}
-
-
 /* XDeintBand8x8:
  */
 static inline void XDeintBand8x8C( uint8_t *dst, int i_dst,
-- 
2.12.0


More information about the vlc-devel mailing list