Mercurial > libavcodec.hg
diff 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 |
line wrap: on
line diff
--- a/ppc/dsputil_altivec.c Tue Oct 02 10:26:42 2007 +0000 +++ b/ppc/dsputil_altivec.c Tue Oct 02 10:34:57 2007 +0000 @@ -216,7 +216,7 @@ pix3iv = vec_perm(tv[0], tv[1], vec_lvsl(0, &pix3[1])); /* - Note that Altivec does have vec_avg, but this works on vector pairs + Note that AltiVec does have vec_avg, but this works on vector pairs and rounds up. We could do avg(avg(a,b),avg(c,d)), but the rounding would mean that, for example, avg(3,0,0,1) = 2, when it should be 1. Instead, we have to split the pixel vectors into vectors of shorts,