changeset 11213:384b6a615a92 libavcodec

remove ivi5_scans8x8[0], it duplicates ff_zigzag_direct
author stefang
date Fri, 19 Feb 2010 17:17:20 +0000
parents 4a0b77af9d9c
children ed3a745e9723
files indeo5.c indeo5data.h
diffstat 2 files changed, 6 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/indeo5.c	Fri Feb 19 14:06:12 2010 +0000
+++ b/indeo5.c	Fri Feb 19 17:17:20 2010 +0000
@@ -30,6 +30,7 @@
 #define ALT_BITSTREAM_READER_LE
 #include "avcodec.h"
 #include "get_bits.h"
+#include "dsputil.h"
 #include "ivi_dsp.h"
 #include "ivi_common.h"
 #include "indeo5data.h"
@@ -183,25 +184,25 @@
             case 0:
                 band->inv_transform = ff_ivi_inverse_slant_8x8;
                 band->dc_transform  = ff_ivi_dc_slant_2d;
-                band->scan          = ivi5_scans8x8[0];
+                band->scan          = ff_zigzag_direct;
                 break;
 
             case 1:
                 band->inv_transform = ff_ivi_row_slant8;
                 band->dc_transform  = ff_ivi_dc_row_slant;
-                band->scan          = ivi5_scans8x8[1];
+                band->scan          = ivi5_scans8x8[0];
                 break;
 
             case 2:
                 band->inv_transform = ff_ivi_col_slant8;
                 band->dc_transform  = ff_ivi_dc_col_slant;
-                band->scan          = ivi5_scans8x8[2];
+                band->scan          = ivi5_scans8x8[1];
                 break;
 
             case 3:
                 band->inv_transform = ff_ivi_put_pixels_8x8;
                 band->dc_transform  = ff_ivi_put_dc_pixel_8x8;
-                band->scan          = ivi5_scans8x8[2];
+                band->scan          = ivi5_scans8x8[1];
                 break;
 
             case 4:
--- a/indeo5data.h	Fri Feb 19 14:06:12 2010 +0000
+++ b/indeo5data.h	Fri Feb 19 17:17:20 2010 +0000
@@ -40,12 +40,7 @@
 /**
  *  Indeo5 8x8 scan (zigzag) patterns
  */
-static const uint8_t ivi5_scans8x8[3][64] = {
-    {0,  1,  8, 16,  9,  2,  3, 10, 17, 24, 32, 25, 18, 11,  4,  5,
-    12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13,  6,  7, 14, 21, 28,
-    35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51,
-    58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63
-    },
+static const uint8_t ivi5_scans8x8[2][64] = {
     {0,  8, 16, 24, 32, 40, 48, 56,  1,  9, 17, 25, 33, 41, 49, 57,
      2, 10, 18, 26, 34, 42, 50, 58,  3, 11, 19, 27, 35, 43, 51, 59,
      4, 12, 20, 28, 36, 44, 52, 60,  5, 13, 21, 29, 37, 45, 53, 61,