Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
3088:03582724f3de | 3089:072dbc669253 |
---|---|
197 | 197 |
198 /** | 198 /** |
199 * non zero coeff count cache. | 199 * non zero coeff count cache. |
200 * is 64 if not available. | 200 * is 64 if not available. |
201 */ | 201 */ |
202 uint8_t non_zero_count_cache[6*8] __align8; | 202 DECLARE_ALIGNED_8(uint8_t, non_zero_count_cache[6*8]); |
203 uint8_t (*non_zero_count)[16]; | 203 uint8_t (*non_zero_count)[16]; |
204 | 204 |
205 /** | 205 /** |
206 * Motion vector cache. | 206 * Motion vector cache. |
207 */ | 207 */ |
208 int16_t mv_cache[2][5*8][2] __align8; | 208 DECLARE_ALIGNED_8(int16_t, mv_cache[2][5*8][2]); |
209 int8_t ref_cache[2][5*8] __align8; | 209 DECLARE_ALIGNED_8(int8_t, ref_cache[2][5*8]); |
210 #define LIST_NOT_USED -1 //FIXME rename? | 210 #define LIST_NOT_USED -1 //FIXME rename? |
211 #define PART_NOT_AVAILABLE -2 | 211 #define PART_NOT_AVAILABLE -2 |
212 | 212 |
213 /** | 213 /** |
214 * is 1 if the specific list MV&references are set to 0,0,-2. | 214 * is 1 if the specific list MV&references are set to 0,0,-2. |
333 GetBitContext intra_gb; | 333 GetBitContext intra_gb; |
334 GetBitContext inter_gb; | 334 GetBitContext inter_gb; |
335 GetBitContext *intra_gb_ptr; | 335 GetBitContext *intra_gb_ptr; |
336 GetBitContext *inter_gb_ptr; | 336 GetBitContext *inter_gb_ptr; |
337 | 337 |
338 DCTELEM mb[16*24] __align8; | 338 DECLARE_ALIGNED_8(DCTELEM, mb[16*24]); |
339 | 339 |
340 /** | 340 /** |
341 * Cabac | 341 * Cabac |
342 */ | 342 */ |
343 CABACContext cabac; | 343 CABACContext cabac; |
350 int left_cbp; | 350 int left_cbp; |
351 /* chroma_pred_mode for i4x4 or i16x16, else 0 */ | 351 /* chroma_pred_mode for i4x4 or i16x16, else 0 */ |
352 uint8_t *chroma_pred_mode_table; | 352 uint8_t *chroma_pred_mode_table; |
353 int last_qscale_diff; | 353 int last_qscale_diff; |
354 int16_t (*mvd_table[2])[2]; | 354 int16_t (*mvd_table[2])[2]; |
355 int16_t mvd_cache[2][5*8][2] __align8; | 355 DECLARE_ALIGNED_8(int16_t, mvd_cache[2][5*8][2]); |
356 uint8_t *direct_table; | 356 uint8_t *direct_table; |
357 uint8_t direct_cache[5*8]; | 357 uint8_t direct_cache[5*8]; |
358 | 358 |
359 uint8_t zigzag_scan[16]; | 359 uint8_t zigzag_scan[16]; |
360 uint8_t field_scan[16]; | 360 uint8_t field_scan[16]; |