Commit cc01ab90 authored by Stefan Gehrer's avatar Stefan Gehrer

remove ivi5_scans8x8[0], it duplicates ff_zigzag_direct

Originally committed as revision 21897 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c02fd3d2
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#define ALT_BITSTREAM_READER_LE #define ALT_BITSTREAM_READER_LE
#include "avcodec.h" #include "avcodec.h"
#include "get_bits.h" #include "get_bits.h"
#include "dsputil.h"
#include "ivi_dsp.h" #include "ivi_dsp.h"
#include "ivi_common.h" #include "ivi_common.h"
#include "indeo5data.h" #include "indeo5data.h"
...@@ -183,25 +184,25 @@ static int decode_gop_header(IVI5DecContext *ctx, AVCodecContext *avctx) ...@@ -183,25 +184,25 @@ static int decode_gop_header(IVI5DecContext *ctx, AVCodecContext *avctx)
case 0: case 0:
band->inv_transform = ff_ivi_inverse_slant_8x8; band->inv_transform = ff_ivi_inverse_slant_8x8;
band->dc_transform = ff_ivi_dc_slant_2d; band->dc_transform = ff_ivi_dc_slant_2d;
band->scan = ivi5_scans8x8[0]; band->scan = ff_zigzag_direct;
break; break;
case 1: case 1:
band->inv_transform = ff_ivi_row_slant8; band->inv_transform = ff_ivi_row_slant8;
band->dc_transform = ff_ivi_dc_row_slant; band->dc_transform = ff_ivi_dc_row_slant;
band->scan = ivi5_scans8x8[1]; band->scan = ivi5_scans8x8[0];
break; break;
case 2: case 2:
band->inv_transform = ff_ivi_col_slant8; band->inv_transform = ff_ivi_col_slant8;
band->dc_transform = ff_ivi_dc_col_slant; band->dc_transform = ff_ivi_dc_col_slant;
band->scan = ivi5_scans8x8[2]; band->scan = ivi5_scans8x8[1];
break; break;
case 3: case 3:
band->inv_transform = ff_ivi_put_pixels_8x8; band->inv_transform = ff_ivi_put_pixels_8x8;
band->dc_transform = ff_ivi_put_dc_pixel_8x8; band->dc_transform = ff_ivi_put_dc_pixel_8x8;
band->scan = ivi5_scans8x8[2]; band->scan = ivi5_scans8x8[1];
break; break;
case 4: case 4:
......
...@@ -40,12 +40,7 @@ static const uint8_t ivi5_common_pic_sizes[30] = { ...@@ -40,12 +40,7 @@ static const uint8_t ivi5_common_pic_sizes[30] = {
/** /**
* Indeo5 8x8 scan (zigzag) patterns * Indeo5 8x8 scan (zigzag) patterns
*/ */
static const uint8_t ivi5_scans8x8[3][64] = { static const uint8_t ivi5_scans8x8[2][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
},
{0, 8, 16, 24, 32, 40, 48, 56, 1, 9, 17, 25, 33, 41, 49, 57, {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, 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, 4, 12, 20, 28, 36, 44, 52, 60, 5, 13, 21, 29, 37, 45, 53, 61,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment