Mercurial > libavcodec.hg
diff libpostproc/postprocess_template.c @ 2041:b996fbe0a7e7 libavcodec
Newer version, using a vectorized version of the
new organisation of code in doVertLowPass. it
seems to be faster in AltiVec also...
Also includes a compile fix for the new do_a_deblock
when using AltiVec.
patch by (Romain Dolbeau <dolbeau at irisa dot fr>)
author | michael |
---|---|
date | Fri, 28 May 2004 13:31:38 +0000 |
parents | 5de466b3360e |
children | 703b80c99891 |
line wrap: on
line diff
--- a/libpostproc/postprocess_template.c Fri May 28 13:23:53 2004 +0000 +++ b/libpostproc/postprocess_template.c Fri May 28 13:31:38 2004 +0000 @@ -2203,6 +2203,7 @@ #endif //static int test=0; +#ifndef HAVE_ALTIVEC static inline void RENAME(tempNoiseReducer)(uint8_t *src, int stride, uint8_t *tempBlured, uint32_t *tempBluredPast, int *maxNoise) { @@ -2510,7 +2511,7 @@ { int y; int d=0; - int sysd=0; +// int sysd=0; int i; for(y=0; y<8; y++) @@ -2525,7 +2526,7 @@ // if(y==0 || y==7) d1+= d1>>1; // d+= ABS(d1); d+= d1*d1; - sysd+= d1; +// sysd+= d1; } } i=d; @@ -2611,6 +2612,7 @@ } #endif } +#endif //HAVE_ALTIVEC #ifdef HAVE_MMX /**