[FFmpeg-cvslog] swscale: change ff_dither_8x8_128 dimensions to be consistent with the others

Michael Niedermayer git at videolan.org
Fri Aug 16 16:07:51 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Aug 16 15:01:47 2013 +0200| [c62801270f3ec32f97966b0593c9919a95394db1] | committer: Michael Niedermayer

swscale: change ff_dither_8x8_128 dimensions to be consistent with the others

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c62801270f3ec32f97966b0593c9919a95394db1
---

 libswscale/swscale.c          |    3 ++-
 libswscale/swscale_internal.h |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 1ca6934..c61989f 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -35,7 +35,7 @@
 #include "swscale_internal.h"
 #include "swscale.h"
 
-DECLARE_ALIGNED(8, const uint8_t, ff_dither_8x8_128)[][8] = {
+DECLARE_ALIGNED(8, const uint8_t, ff_dither_8x8_128)[9][8] = {
     {  36, 68,  60, 92,  34, 66,  58, 90, },
     { 100,  4, 124, 28,  98,  2, 122, 26, },
     {  52, 84,  44, 76,  50, 82,  42, 74, },
@@ -44,6 +44,7 @@ DECLARE_ALIGNED(8, const uint8_t, ff_dither_8x8_128)[][8] = {
     {  96,  0, 120, 24, 102,  6, 126, 30, },
     {  48, 80,  40, 72,  54, 86,  46, 78, },
     { 112, 16, 104,  8, 118, 22, 110, 14, },
+    {  36, 68,  60, 92,  34, 66,  58, 90, },
 };
 
 DECLARE_ALIGNED(8, static const uint8_t, sws_pb_64)[8] = {
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 8f614d3..eaaed0e 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -820,7 +820,7 @@ extern const uint8_t ff_dither_2x2_8[3][8];
 extern const uint8_t ff_dither_4x4_16[5][8];
 extern const uint8_t ff_dither_8x8_32[9][8];
 extern const uint8_t ff_dither_8x8_73[9][8];
-extern const uint8_t ff_dither_8x8_128[8][8];
+extern const uint8_t ff_dither_8x8_128[9][8];
 extern const uint8_t ff_dither_8x8_220[9][8];
 
 extern const int32_t ff_yuv2rgb_coeffs[8][4];



More information about the ffmpeg-cvslog mailing list