comparison ppc/dsputil_altivec.c @ 5749:784dcbdc910f libavcodec

cosmetics: Fix AltiVec spelling.
author diego
date Tue, 02 Oct 2007 10:34:57 +0000
parents 55ed6dc5d476
children 09f99af1db40
comparison
equal deleted inserted replaced
5748:f4b916b6f5c5 5749:784dcbdc910f
214 214
215 tv = (vector unsigned char *) &pix3[1]; 215 tv = (vector unsigned char *) &pix3[1];
216 pix3iv = vec_perm(tv[0], tv[1], vec_lvsl(0, &pix3[1])); 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 and rounds up. We could do avg(avg(a,b),avg(c,d)), but the rounding 220 and rounds up. We could do avg(avg(a,b),avg(c,d)), but the rounding
221 would mean that, for example, avg(3,0,0,1) = 2, when it should be 1. 221 would mean that, for example, avg(3,0,0,1) = 2, when it should be 1.
222 Instead, we have to split the pixel vectors into vectors of shorts, 222 Instead, we have to split the pixel vectors into vectors of shorts,
223 and do the averaging by hand. 223 and do the averaging by hand.
224 */ 224 */