OSDN Git Service

swscale_unscaled: make dither_scale static, its not used elsewhere and has no prefix
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 15 Aug 2013 18:46:57 +0000 (20:46 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 15 Aug 2013 19:38:22 +0000 (21:38 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/swscale_internal.h
libswscale/swscale_unscaled.c

index e7cc26e..18563ee 100644 (file)
@@ -805,7 +805,6 @@ static av_always_inline int usePal(enum AVPixelFormat pix_fmt)
 extern const uint64_t ff_dither4[2];
 extern const uint64_t ff_dither8[2];
 extern const uint8_t dithers[8][8][8];
-extern const uint16_t dither_scale[15][16];
 
 
 extern const AVClass sws_context_class;
index 3b07800..8735c62 100644 (file)
@@ -109,7 +109,7 @@ DECLARE_ALIGNED(8, const uint8_t, dithers)[8][8][8]={
   { 112, 16,104,  8,118, 22,110, 14,},
 }};
 
-const uint16_t dither_scale[15][16]={
+static const uint16_t dither_scale[15][16]={
 {    2,    3,    3,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,    5,},
 {    2,    3,    7,    7,   13,   13,   25,   25,   25,   25,   25,   25,   25,   25,   25,   25,},
 {    3,    3,    4,   15,   15,   29,   57,   57,   57,  113,  113,  113,  113,  113,  113,  113,},