From 6d797ac70ff6d88f547c64317363cc16cf0f0add Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Fri, 23 Mar 2012 21:21:47 +0100 Subject: VC1: Do not needlessly use signed types. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This might even have prevented the compiler from some optimizations, since both signed and unsigned types are used for the dezigzag tables/ table pointers, and if a branches uses both the compiler needs to create more complex code. Signed-off-by: Reimar Döffinger --- libavcodec/vc1data.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libavcodec/vc1data.h') diff --git a/libavcodec/vc1data.h b/libavcodec/vc1data.h index fbcda6c54b..eecb0457f3 100644 --- a/libavcodec/vc1data.h +++ b/libavcodec/vc1data.h @@ -183,15 +183,15 @@ extern const uint8_t ff_vc1_2ref_mvdata_bits[8][126]; /* DC differentials low+hi-mo, p217 are the same as in msmpeg4data .h */ /* Scantables/ZZ scan are at 11.9 (p262) and 8.1.1.12 (p10) */ -extern const int8_t ff_vc1_simple_progressive_4x4_zz [16]; -extern const int8_t ff_vc1_adv_progressive_8x4_zz [32]; -extern const int8_t ff_vc1_adv_progressive_4x8_zz [32]; -extern const int8_t ff_vc1_adv_interlaced_8x8_zz [64]; -extern const int8_t ff_vc1_adv_interlaced_8x4_zz [32]; -extern const int8_t ff_vc1_adv_interlaced_4x8_zz [32]; -extern const int8_t ff_vc1_adv_interlaced_4x4_zz [16]; -extern const int8_t ff_vc1_intra_horz_8x8_zz [64]; -extern const int8_t ff_vc1_intra_vert_8x8_zz [64]; +extern const uint8_t ff_vc1_simple_progressive_4x4_zz [16]; +extern const uint8_t ff_vc1_adv_progressive_8x4_zz [32]; +extern const uint8_t ff_vc1_adv_progressive_4x8_zz [32]; +extern const uint8_t ff_vc1_adv_interlaced_8x8_zz [64]; +extern const uint8_t ff_vc1_adv_interlaced_8x4_zz [32]; +extern const uint8_t ff_vc1_adv_interlaced_4x8_zz [32]; +extern const uint8_t ff_vc1_adv_interlaced_4x4_zz [16]; +extern const uint8_t ff_vc1_intra_horz_8x8_zz [64]; +extern const uint8_t ff_vc1_intra_vert_8x8_zz [64]; /* DQScale as specified in 8.1.3.9 - almost identical to 0x40000/i */ extern const int32_t ff_vc1_dqscale[63]; -- cgit v1.2.3