Mercurial > libavcodec.hg
comparison i386/dsputil_h264_template_mmx.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 | 57d31bdbebe8 |
comparison
equal
deleted
inserted
replaced
3088:03582724f3de | 3089:072dbc669253 |
---|---|
23 * H264_CHROMA_OP must be defined to empty for put and pavgb/pavgusb for avg | 23 * H264_CHROMA_OP must be defined to empty for put and pavgb/pavgusb for avg |
24 * H264_CHROMA_MC8_MV0 must be defined to a (put|avg)_pixels8 function | 24 * H264_CHROMA_MC8_MV0 must be defined to a (put|avg)_pixels8 function |
25 */ | 25 */ |
26 static void H264_CHROMA_MC8_TMPL(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y) | 26 static void H264_CHROMA_MC8_TMPL(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y) |
27 { | 27 { |
28 uint64_t AA __align8; | 28 DECLARE_ALIGNED_8(uint64_t, AA); |
29 uint64_t DD __align8; | 29 DECLARE_ALIGNED_8(uint64_t, DD); |
30 int i; | 30 int i; |
31 | 31 |
32 if(y==0 && x==0) { | 32 if(y==0 && x==0) { |
33 /* no filter needed */ | 33 /* no filter needed */ |
34 H264_CHROMA_MC8_MV0(dst, src, stride, h); | 34 H264_CHROMA_MC8_MV0(dst, src, stride, h); |
240 } | 240 } |
241 } | 241 } |
242 | 242 |
243 static void H264_CHROMA_MC4_TMPL(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y) | 243 static void H264_CHROMA_MC4_TMPL(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y) |
244 { | 244 { |
245 uint64_t AA __align8; | 245 DECLARE_ALIGNED_8(uint64_t, AA); |
246 uint64_t DD __align8; | 246 DECLARE_ALIGNED_8(uint64_t, DD); |
247 int i; | 247 int i; |
248 | 248 |
249 /* no special case for mv=(0,0) in 4x*, since it's much less common than in 8x*. | 249 /* no special case for mv=(0,0) in 4x*, since it's much less common than in 8x*. |
250 * could still save a few cycles, but maybe not worth the complexity. */ | 250 * could still save a few cycles, but maybe not worth the complexity. */ |
251 | 251 |