Revision a1d0b6a2 libavcodec/ppc/dsputil_altivec.c
libavcodec/ppc/dsputil_altivec.c  

216  216 
pix3iv = vec_perm(tv[0], tv[1], vec_lvsl(0, &pix3[1])); 
217  217  
218  218 
/* 
219 
Note that Altivec does have vec_avg, but this works on vector pairs


219 
Note that AltiVec does have vec_avg, but this works on vector pairs


220  220 
and rounds up. We could do avg(avg(a,b),avg(c,d)), but the rounding 
221  221 
would mean that, for example, avg(3,0,0,1) = 2, when it should be 1. 
222  222 
Instead, we have to split the pixel vectors into vectors of shorts, 
Also available in: Unified diff