changeset 29440:0673fad0546f

Remove disabled crufty code.
author diego
date Sat, 08 Aug 2009 15:18:48 +0000
parents 02dec439f717
children 3b88f0acdc0b
files libswscale/rgb2rgb_template.c libswscale/swscale.c libswscale/swscale_template.c
diffstat 3 files changed, 0 insertions(+), 42 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/rgb2rgb_template.c	Sat Aug 08 08:17:35 2009 +0000
+++ b/libswscale/rgb2rgb_template.c	Sat Aug 08 15:18:48 2009 +0000
@@ -1258,10 +1258,6 @@
 #endif
     while (s < end)
     {
-#if 0 //slightly slower on Athlon
-        int bgr= *s++;
-        *((uint32_t*)d)++ = ((bgr&0x1F)<<3) + ((bgr&0x3E0)<<6) + ((bgr&0x7C00)<<9);
-#else
         register uint16_t bgr;
         bgr = *s++;
 #if HAVE_BIGENDIAN
@@ -1275,8 +1271,6 @@
         *d++ = (bgr&0x7C00)>>7;
         *d++ = 255;
 #endif
-
-#endif
     }
 }
 
--- a/libswscale/swscale.c	Sat Aug 08 08:17:35 2009 +0000
+++ b/libswscale/swscale.c	Sat Aug 08 15:18:48 2009 +0000
@@ -302,19 +302,6 @@
 {  1,  25,   7,  31,   0,  24,   6,  30, },
 };
 
-#if 0
-DECLARE_ALIGNED(8, const uint8_t, dither_8x8_64[8][8])={
-{  0,  48,  12,  60,   3,  51,  15,  63, },
-{ 32,  16,  44,  28,  35,  19,  47,  31, },
-{  8,  56,   4,  52,  11,  59,   7,  55, },
-{ 40,  24,  36,  20,  43,  27,  39,  23, },
-{  2,  50,  14,  62,   1,  49,  13,  61, },
-{ 34,  18,  46,  30,  33,  17,  45,  29, },
-{ 10,  58,   6,  54,   9,  57,   5,  53, },
-{ 42,  26,  38,  22,  41,  25,  37,  21, },
-};
-#endif
-
 DECLARE_ALIGNED(8, const uint8_t, dither_8x8_73[8][8])={
 {  0,  55,  14,  68,   3,  58,  17,  72, },
 { 37,  18,  50,  32,  40,  22,  54,  35, },
@@ -326,19 +313,6 @@
 { 48,  30,  43,  25,  47,  29,  42,  24, },
 };
 
-#if 0
-DECLARE_ALIGNED(8, const uint8_t, dither_8x8_128[8][8])={
-{ 68,  36,  92,  60,  66,  34,  90,  58, },
-{ 20, 116,  12, 108,  18, 114,  10, 106, },
-{ 84,  52,  76,  44,  82,  50,  74,  42, },
-{  0,  96,  24, 120,   6, 102,  30, 126, },
-{ 64,  32,  88,  56,  70,  38,  94,  62, },
-{ 16, 112,   8, 104,  22, 118,  14, 110, },
-{ 80,  48,  72,  40,  86,  54,  78,  46, },
-{  4, 100,  28, 124,   2,  98,  26, 122, },
-};
-#endif
-
 #if 1
 DECLARE_ALIGNED(8, const uint8_t, dither_8x8_220[8][8])={
 {117,  62, 158, 103, 113,  58, 155, 100, },
--- a/libswscale/swscale_template.c	Sat Aug 08 08:17:35 2009 +0000
+++ b/libswscale/swscale_template.c	Sat Aug 08 15:18:48 2009 +0000
@@ -2654,16 +2654,6 @@
     //printf("swscale %X %X %X -> %X %X %X\n", (int)src[0], (int)src[1], (int)src[2],
     //       (int)dst[0], (int)dst[1], (int)dst[2]);
 
-#if 0 //self test FIXME move to a vfilter or something
-    {
-    static volatile int i=0;
-    i++;
-    if (srcFormat==PIX_FMT_YUV420P && i==1 && srcSliceH>= c->srcH)
-        selfTest(src, srcStride, c->srcW, c->srcH);
-    i--;
-    }
-#endif
-
     //printf("sws Strides:%d %d %d -> %d %d %d\n", srcStride[0],srcStride[1],srcStride[2],
     //dstStride[0],dstStride[1],dstStride[2]);