Mercurial > libavcodec.hg
diff h264.c @ 3089:072dbc669253 libavcodec
MSVC-compatible __align8/__align16 declaration
patch by Steve Lhomme, steve .dot. lhomme .at. free .dot. fr
| author | diego |
|---|---|
| date | Sun, 05 Feb 2006 13:35:17 +0000 |
| parents | 385e54795a9e |
| children | 32903d6b5ef1 |
line wrap: on
line diff
--- a/h264.c Sun Feb 05 10:16:20 2006 +0000 +++ b/h264.c Sun Feb 05 13:35:17 2006 +0000 @@ -199,14 +199,14 @@ * non zero coeff count cache. * is 64 if not available. */ - uint8_t non_zero_count_cache[6*8] __align8; + DECLARE_ALIGNED_8(uint8_t, non_zero_count_cache[6*8]); uint8_t (*non_zero_count)[16]; /** * Motion vector cache. */ - int16_t mv_cache[2][5*8][2] __align8; - int8_t ref_cache[2][5*8] __align8; + DECLARE_ALIGNED_8(int16_t, mv_cache[2][5*8][2]); + DECLARE_ALIGNED_8(int8_t, ref_cache[2][5*8]); #define LIST_NOT_USED -1 //FIXME rename? #define PART_NOT_AVAILABLE -2 @@ -335,7 +335,7 @@ GetBitContext *intra_gb_ptr; GetBitContext *inter_gb_ptr; - DCTELEM mb[16*24] __align8; + DECLARE_ALIGNED_8(DCTELEM, mb[16*24]); /** * Cabac @@ -352,7 +352,7 @@ uint8_t *chroma_pred_mode_table; int last_qscale_diff; int16_t (*mvd_table[2])[2]; - int16_t mvd_cache[2][5*8][2] __align8; + DECLARE_ALIGNED_8(int16_t, mvd_cache[2][5*8][2]); uint8_t *direct_table; uint8_t direct_cache[5*8];
