[FFmpeg-cvslog] r27736 - in trunk/libswscale: swscale.c yuv2rgb.c

flameeyes subversion
Thu Oct 9 13:12:39 CEST 2008


Author: flameeyes
Date: Thu Oct  9 13:12:38 2008
New Revision: 27736

Log:
Mark dither_2x2_{8,4} static to swscale.c

These two tables are not used outside swscale.c even though they are
declared also in yuv2rgb.c.



Modified:
   trunk/libswscale/swscale.c
   trunk/libswscale/yuv2rgb.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	(original)
+++ trunk/libswscale/swscale.c	Thu Oct  9 13:12:38 2008
@@ -264,12 +264,12 @@ static unsigned char clip_table[768];
 
 static SwsVector *sws_getConvVec(SwsVector *a, SwsVector *b);
 
-const uint8_t  __attribute__((aligned(8))) dither_2x2_4[2][8]={
+static const uint8_t  __attribute__((aligned(8))) dither_2x2_4[2][8]={
 {  1,   3,   1,   3,   1,   3,   1,   3, },
 {  2,   0,   2,   0,   2,   0,   2,   0, },
 };
 
-const uint8_t  __attribute__((aligned(8))) dither_2x2_8[2][8]={
+static const uint8_t  __attribute__((aligned(8))) dither_2x2_8[2][8]={
 {  6,   2,   6,   2,   6,   2,   6,   2, },
 {  0,   4,   0,   4,   0,   4,   0,   4, },
 };

Modified: trunk/libswscale/yuv2rgb.c
==============================================================================
--- trunk/libswscale/yuv2rgb.c	(original)
+++ trunk/libswscale/yuv2rgb.c	Thu Oct  9 13:12:38 2008
@@ -41,8 +41,6 @@
 
 #define DITHER1XBPP // only for MMX
 
-extern const uint8_t dither_2x2_4[2][8];
-extern const uint8_t dither_2x2_8[2][8];
 extern const uint8_t dither_8x8_32[8][8];
 extern const uint8_t dither_8x8_73[8][8];
 extern const uint8_t dither_8x8_220[8][8];




More information about the ffmpeg-cvslog mailing list