changeset 30261:8fa8b84a0812

Remove unused clip_table code.
author ramiro
date Thu, 14 Jan 2010 19:12:42 +0000
parents 5c3dacc19ab8
children 9e6b65abb1dd
files libswscale/swscale.c
diffstat 1 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Thu Jan 14 12:06:38 2010 +0000
+++ b/libswscale/swscale.c	Thu Jan 14 19:12:42 2010 +0000
@@ -298,9 +298,6 @@
 
 #endif /* ARCH_X86 && CONFIG_GPL */
 
-// clipping helper table for C implementations:
-static unsigned char clip_table[768];
-
 static SwsVector *sws_getConvVec(SwsVector *a, SwsVector *b);
 
 DECLARE_ALIGNED(8, static const uint8_t, dither_2x2_4[2][8])={
@@ -1850,16 +1847,6 @@
 }
 #endif /* COMPILE_MMX2 */
 
-static void globalInit(void)
-{
-    // generating tables:
-    int i;
-    for (i=0; i<768; i++) {
-        int c= av_clip_uint8(i-256);
-        clip_table[i]=c;
-    }
-}
-
 static SwsFunc getSwsFunc(SwsContext *c)
 {
 #if CONFIG_RUNTIME_CPUDETECT
@@ -2429,7 +2416,6 @@
     flags |= SWS_CPU_CAPS_BFIN;
 #endif
 #endif /* CONFIG_RUNTIME_CPUDETECT */
-    if (clip_table[512] != 255) globalInit();
     if (!rgb15to16) sws_rgb2rgb_init(flags);
 
     unscaled = (srcW == dstW && srcH == dstH);