Mercurial > libavcodec.hg
comparison utils.c @ 11134:31bdf73a0330 libavcodec
Special case VP5/6 chroma alignment on x86 as well
author | conrad |
---|---|
date | Fri, 12 Feb 2010 22:01:42 +0000 |
parents | bf309c7ce615 |
children | a090d10c314f |
comparison
equal
deleted
inserted
replaced
11133:cd2956d08cc1 | 11134:31bdf73a0330 |
---|---|
263 //STRIDE_ALIGN is 8 for SSE* but this does not work for SVQ1 chroma planes | 263 //STRIDE_ALIGN is 8 for SSE* but this does not work for SVQ1 chroma planes |
264 //we could change STRIDE_ALIGN to 16 for x86/sse but it would increase the | 264 //we could change STRIDE_ALIGN to 16 for x86/sse but it would increase the |
265 //picture size unneccessarily in some cases. The solution here is not | 265 //picture size unneccessarily in some cases. The solution here is not |
266 //pretty and better ideas are welcome! | 266 //pretty and better ideas are welcome! |
267 #if HAVE_MMX | 267 #if HAVE_MMX |
268 if(s->codec_id == CODEC_ID_SVQ1) | 268 if(s->codec_id == CODEC_ID_SVQ1 || s->codec_id == CODEC_ID_VP5 || |
269 s->codec_id == CODEC_ID_VP6 || s->codec_id == CODEC_ID_VP6F || | |
270 s->codec_id == CODEC_ID_VP6A) | |
269 stride_align[i]= 16; | 271 stride_align[i]= 16; |
270 else | 272 else |
271 #endif | 273 #endif |
272 stride_align[i] = STRIDE_ALIGN; | 274 stride_align[i] = STRIDE_ALIGN; |
273 unaligned |= picture.linesize[i] % stride_align[i]; | 275 unaligned |= picture.linesize[i] % stride_align[i]; |