comparison h264.h @ 11369:98970e51365a libavcodec

Remove DECLARE_ALIGNED_{8,16} macros These macros are redundant. All uses are replaced with the generic DECLARE_ALIGNED macro instead.
author mru
date Sat, 06 Mar 2010 14:24:59 +0000
parents 3f7b7e3695c0
children 1ce187c7a611
comparison
equal deleted inserted replaced
11368:3d4f64b8fb10 11369:98970e51365a
297 297
298 /** 298 /**
299 * non zero coeff count cache. 299 * non zero coeff count cache.
300 * is 64 if not available. 300 * is 64 if not available.
301 */ 301 */
302 DECLARE_ALIGNED_8(uint8_t, non_zero_count_cache)[6*8]; 302 DECLARE_ALIGNED(8, uint8_t, non_zero_count_cache)[6*8];
303 303
304 /* 304 /*
305 .UU.YYYY 305 .UU.YYYY
306 .UU.YYYY 306 .UU.YYYY
307 .vv.YYYY 307 .vv.YYYY
310 uint8_t (*non_zero_count)[32]; 310 uint8_t (*non_zero_count)[32];
311 311
312 /** 312 /**
313 * Motion vector cache. 313 * Motion vector cache.
314 */ 314 */
315 DECLARE_ALIGNED_16(int16_t, mv_cache)[2][5*8][2]; 315 DECLARE_ALIGNED(16, int16_t, mv_cache)[2][5*8][2];
316 DECLARE_ALIGNED_8(int8_t, ref_cache)[2][5*8]; 316 DECLARE_ALIGNED(8, int8_t, ref_cache)[2][5*8];
317 #define LIST_NOT_USED -1 //FIXME rename? 317 #define LIST_NOT_USED -1 //FIXME rename?
318 #define PART_NOT_AVAILABLE -2 318 #define PART_NOT_AVAILABLE -2
319 319
320 /** 320 /**
321 * is 1 if the specific list MV&references are set to 0,0,-2. 321 * is 1 if the specific list MV&references are set to 0,0,-2.
364 //interlacing specific flags 364 //interlacing specific flags
365 int mb_aff_frame; 365 int mb_aff_frame;
366 int mb_field_decoding_flag; 366 int mb_field_decoding_flag;
367 int mb_mbaff; ///< mb_aff_frame && mb_field_decoding_flag 367 int mb_mbaff; ///< mb_aff_frame && mb_field_decoding_flag
368 368
369 DECLARE_ALIGNED_8(uint16_t, sub_mb_type)[4]; 369 DECLARE_ALIGNED(8, uint16_t, sub_mb_type)[4];
370 370
371 //Weighted pred stuff 371 //Weighted pred stuff
372 int use_weight; 372 int use_weight;
373 int use_weight_chroma; 373 int use_weight_chroma;
374 int luma_log2_weight_denom; 374 int luma_log2_weight_denom;
401 GetBitContext intra_gb; 401 GetBitContext intra_gb;
402 GetBitContext inter_gb; 402 GetBitContext inter_gb;
403 GetBitContext *intra_gb_ptr; 403 GetBitContext *intra_gb_ptr;
404 GetBitContext *inter_gb_ptr; 404 GetBitContext *inter_gb_ptr;
405 405
406 DECLARE_ALIGNED_16(DCTELEM, mb)[16*24]; 406 DECLARE_ALIGNED(16, DCTELEM, mb)[16*24];
407 DCTELEM mb_padding[256]; ///< as mb is addressed by scantable[i] and scantable is uint8_t we can either check that i is not too large or ensure that there is some unused stuff after mb 407 DCTELEM mb_padding[256]; ///< as mb is addressed by scantable[i] and scantable is uint8_t we can either check that i is not too large or ensure that there is some unused stuff after mb
408 408
409 /** 409 /**
410 * Cabac 410 * Cabac
411 */ 411 */
419 int left_cbp; 419 int left_cbp;
420 /* chroma_pred_mode for i4x4 or i16x16, else 0 */ 420 /* chroma_pred_mode for i4x4 or i16x16, else 0 */
421 uint8_t *chroma_pred_mode_table; 421 uint8_t *chroma_pred_mode_table;
422 int last_qscale_diff; 422 int last_qscale_diff;
423 uint8_t (*mvd_table[2])[2]; 423 uint8_t (*mvd_table[2])[2];
424 DECLARE_ALIGNED_16(uint8_t, mvd_cache)[2][5*8][2]; 424 DECLARE_ALIGNED(16, uint8_t, mvd_cache)[2][5*8][2];
425 uint8_t *direct_table; 425 uint8_t *direct_table;
426 uint8_t direct_cache[5*8]; 426 uint8_t direct_cache[5*8];
427 427
428 uint8_t zigzag_scan[16]; 428 uint8_t zigzag_scan[16];
429 uint8_t zigzag_scan8x8[64]; 429 uint8_t zigzag_scan8x8[64];