From: Henrik Gramner Date: Wed, 20 Jul 2011 20:30:59 +0000 (+0200) Subject: Shrink two arrays X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=2bd11d1ac5220c21fd45994d7f3099810d5809df;p=x264.git Shrink two arrays --- diff --git a/common/dct.c b/common/dct.c index 38d3be3e..0acf685d 100644 --- a/common/dct.c +++ b/common/dct.c @@ -35,8 +35,8 @@ # include "arm/dct.h" #endif -int x264_dct4_weight2_zigzag[2][16]; -int x264_dct8_weight2_zigzag[2][64]; +uint16_t x264_dct4_weight2_zigzag[2][16]; +uint16_t x264_dct8_weight2_zigzag[2][64]; static void dct4x4dc( dctcoef d[16] ) { diff --git a/common/dct.h b/common/dct.h index 9303d446..a764e491 100644 --- a/common/dct.h +++ b/common/dct.h @@ -88,8 +88,8 @@ static const uint16_t x264_dct8_weight2_tab[64] = { }; #undef W -extern int x264_dct4_weight2_zigzag[2][16]; // [2] = {frame, field} -extern int x264_dct8_weight2_zigzag[2][64]; +extern uint16_t x264_dct4_weight2_zigzag[2][16]; // [2] = {frame, field} +extern uint16_t x264_dct8_weight2_zigzag[2][64]; typedef struct { diff --git a/encoder/rdo.c b/encoder/rdo.c index 399bf375..36cb468b 100644 --- a/encoder/rdo.c +++ b/encoder/rdo.c @@ -439,7 +439,7 @@ typedef struct static ALWAYS_INLINE int quant_trellis_cabac( x264_t *h, dctcoef *dct, const udctcoef *quant_mf, const int *unquant_mf, - const int *coef_weight, const uint8_t *zigzag, + const uint16_t *coef_weight, const uint8_t *zigzag, int ctx_block_cat, int i_lambda2, int b_ac, int b_chroma, int dc, int i_coefs, int idx ) { @@ -685,7 +685,7 @@ int quant_trellis_cabac( x264_t *h, dctcoef *dct, static ALWAYS_INLINE int quant_trellis_cavlc( x264_t *h, dctcoef *dct, const udctcoef *quant_mf, const int *unquant_mf, - const int *coef_weight, const uint8_t *zigzag, + const uint16_t *coef_weight, const uint8_t *zigzag, int ctx_block_cat, int i_lambda2, int b_ac, int b_chroma, int dc, int i_coefs, int idx, int b_8x8 ) {