summaryrefslogtreecommitdiff
path: root/libavcodec/libpostproc/postprocess_template.c
diff options
context:
space:
mode:
authorRomain Dolbeau <dolbeau@irisa.fr>2004-05-28 13:31:38 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-28 13:31:38 +0000
commita7b2871cd1401ce7be59b153eed3f25565b0bb23 (patch)
tree68c0753c1e00e531fba09d0edca351322fd12083 /libavcodec/libpostproc/postprocess_template.c
parent39d89b69666b1f8596c9edc8bfdc29a70610fb68 (diff)
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>) Originally committed as revision 3167 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libpostproc/postprocess_template.c')
-rw-r--r--libavcodec/libpostproc/postprocess_template.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/libpostproc/postprocess_template.c b/libavcodec/libpostproc/postprocess_template.c
index 317ac52566..209fff2402 100644
--- a/libavcodec/libpostproc/postprocess_template.c
+++ b/libavcodec/libpostproc/postprocess_template.c
@@ -2203,6 +2203,7 @@ static inline void RENAME(transpose2)(uint8_t *dst, int dstStride, uint8_t *src)
#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 @@ L2_DIFF_CORE((%0, %%ecx), (%1, %%ecx))
{
int y;
int d=0;
- int sysd=0;
+// int sysd=0;
int i;
for(y=0; y<8; y++)
@@ -2525,7 +2526,7 @@ L2_DIFF_CORE((%0, %%ecx), (%1, %%ecx))
// if(y==0 || y==7) d1+= d1>>1;
// d+= ABS(d1);
d+= d1*d1;
- sysd+= d1;
+// sysd+= d1;
}
}
i=d;
@@ -2611,6 +2612,7 @@ Switch between
}
#endif
}
+#endif //HAVE_ALTIVEC
#ifdef HAVE_MMX
/**