Mercurial > libavcodec.hg
diff dsputil.c @ 11195:d464f498e19f libavcodec
Use LOCAL_ALIGNED macro for local arrays
author | mru |
---|---|
date | Wed, 17 Feb 2010 20:36:20 +0000 |
parents | e5ebf3a17d9d |
children | 0fc1cdd984b7 |
line wrap: on
line diff
--- a/dsputil.c Wed Feb 17 20:36:12 2010 +0000 +++ b/dsputil.c Wed Feb 17 20:36:20 2010 +0000 @@ -3788,7 +3788,7 @@ static int dct_sad8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ MpegEncContext * const s= (MpegEncContext *)c; - DECLARE_ALIGNED_16(DCTELEM, temp)[64]; + LOCAL_ALIGNED_16(DCTELEM, temp, [64]); assert(h==8); @@ -3852,7 +3852,7 @@ static int dct_max8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ MpegEncContext * const s= (MpegEncContext *)c; - DECLARE_ALIGNED_16(DCTELEM, temp)[64]; + LOCAL_ALIGNED_16(DCTELEM, temp, [64]); int sum=0, i; assert(h==8); @@ -3868,7 +3868,7 @@ static int quant_psnr8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ MpegEncContext * const s= (MpegEncContext *)c; - DECLARE_ALIGNED_16(DCTELEM, temp)[64*2]; + LOCAL_ALIGNED_16(DCTELEM, temp, [64*2]); DCTELEM * const bak = temp+64; int sum=0, i; @@ -3892,9 +3892,9 @@ static int rd8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ MpegEncContext * const s= (MpegEncContext *)c; const uint8_t *scantable= s->intra_scantable.permutated; - DECLARE_ALIGNED_16(DCTELEM, temp)[64]; - DECLARE_ALIGNED_16(uint8_t, lsrc1)[64]; - DECLARE_ALIGNED_16(uint8_t, lsrc2)[64]; + LOCAL_ALIGNED_16(DCTELEM, temp, [64]); + LOCAL_ALIGNED_16(uint8_t, lsrc1, [64]); + LOCAL_ALIGNED_16(uint8_t, lsrc2, [64]); int i, last, run, bits, level, distortion, start_i; const int esc_length= s->ac_esc_length; uint8_t * length; @@ -3968,7 +3968,7 @@ static int bit8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ MpegEncContext * const s= (MpegEncContext *)c; const uint8_t *scantable= s->intra_scantable.permutated; - DECLARE_ALIGNED_16(DCTELEM, temp)[64]; + LOCAL_ALIGNED_16(DCTELEM, temp, [64]); int i, last, run, bits, level, start_i; const int esc_length= s->ac_esc_length; uint8_t * length;