From cc01ab903e251455e50af0a1a29ad30eeeec602d Mon Sep 17 00:00:00 2001 From: Stefan Gehrer Date: Fri, 19 Feb 2010 17:17:20 +0000 Subject: [PATCH] remove ivi5_scans8x8[0], it duplicates ff_zigzag_direct Originally committed as revision 21897 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/indeo5.c | 9 +++++---- libavcodec/indeo5data.h | 7 +------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/libavcodec/indeo5.c b/libavcodec/indeo5.c index 43d0c40d22..db92fb697e 100644 --- a/libavcodec/indeo5.c +++ b/libavcodec/indeo5.c @@ -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 @@ static int decode_gop_header(IVI5DecContext *ctx, AVCodecContext *avctx) 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: diff --git a/libavcodec/indeo5data.h b/libavcodec/indeo5data.h index e5799061b1..cee15a45ae 100644 --- a/libavcodec/indeo5data.h +++ b/libavcodec/indeo5data.h @@ -40,12 +40,7 @@ static const uint8_t ivi5_common_pic_sizes[30] = { /** * 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,