Mercurial > libavcodec.hg
comparison dv.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 | 0b546eab515d |
children | e58fb7ffbb4f |
comparison
equal
deleted
inserted
replaced
3088:03582724f3de | 3089:072dbc669253 |
---|---|
377 void (*idct_put)(uint8_t *dest, int line_size, DCTELEM *block); | 377 void (*idct_put)(uint8_t *dest, int line_size, DCTELEM *block); |
378 uint8_t *buf_ptr; | 378 uint8_t *buf_ptr; |
379 PutBitContext pb, vs_pb; | 379 PutBitContext pb, vs_pb; |
380 GetBitContext gb; | 380 GetBitContext gb; |
381 BlockInfo mb_data[5 * 6], *mb, *mb1; | 381 BlockInfo mb_data[5 * 6], *mb, *mb1; |
382 DCTELEM sblock[5*6][64] __align8; | 382 DECLARE_ALIGNED_8(DCTELEM, sblock[5*6][64]); |
383 uint8_t mb_bit_buffer[80 + 4] __align8; /* allow some slack */ | 383 DECLARE_ALIGNED_8(uint8_t, mb_bit_buffer[80 + 4]); /* allow some slack */ |
384 uint8_t vs_bit_buffer[5 * 80 + 4] __align8; /* allow some slack */ | 384 DECLARE_ALIGNED_8(uint8_t, vs_bit_buffer[5 * 80 + 4]); /* allow some slack */ |
385 const int log2_blocksize= 3-s->avctx->lowres; | 385 const int log2_blocksize= 3-s->avctx->lowres; |
386 | 386 |
387 assert((((int)mb_bit_buffer)&7)==0); | 387 assert((((int)mb_bit_buffer)&7)==0); |
388 assert((((int)vs_bit_buffer)&7)==0); | 388 assert((((int)vs_bit_buffer)&7)==0); |
389 | 389 |
777 int mb_x, mb_y, c_offset, linesize; | 777 int mb_x, mb_y, c_offset, linesize; |
778 uint8_t* y_ptr; | 778 uint8_t* y_ptr; |
779 uint8_t* data; | 779 uint8_t* data; |
780 uint8_t* ptr; | 780 uint8_t* ptr; |
781 int do_edge_wrap; | 781 int do_edge_wrap; |
782 DCTELEM block[64] __align8; | 782 DECLARE_ALIGNED_8(DCTELEM, block[64]); |
783 EncBlockInfo enc_blks[5*6]; | 783 EncBlockInfo enc_blks[5*6]; |
784 PutBitContext pbs[5*6]; | 784 PutBitContext pbs[5*6]; |
785 PutBitContext* pb; | 785 PutBitContext* pb; |
786 EncBlockInfo* enc_blk; | 786 EncBlockInfo* enc_blk; |
787 int vs_bit_size = 0; | 787 int vs_bit_size = 0; |