aboutsummaryrefslogtreecommitdiffstats
path: root/postproc/swscale_template.c
diff options
context:
space:
mode:
authorRomain Dolbeau <dolbeau@irisa.fr>2004-04-06 00:25:47 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-04-06 00:25:47 +0000
commit8c266f0cb76b5f293f257227ba66f68c0914257d (patch)
tree3db7ec3b3031251774eacf2cac8659ef47ea8f12 /postproc/swscale_template.c
parent7c5934ede9f352408c34b638cfccf2d4b3cd8972 (diff)
downloadffmpeg-8c266f0cb76b5f293f257227ba66f68c0914257d.tar.gz
AltiVec hScale, all size patch by (Romain Dolbeau <dolbeaur at club-internet dot fr>)
Originally committed as revision 12131 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/swscale_template.c')
-rw-r--r--postproc/swscale_template.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c
index 6a8117f2fb..2d266f5655 100644
--- a/postproc/swscale_template.c
+++ b/postproc/swscale_template.c
@@ -2154,6 +2154,9 @@ static inline void RENAME(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW
);
}
#else
+#ifdef HAVE_ALTIVEC
+ hScale_altivec_real(dst, dstW, src, srcW, xInc, filter, filterPos, filterSize);
+#else
int i;
for(i=0; i<dstW; i++)
{
@@ -2171,6 +2174,7 @@ static inline void RENAME(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW
// dst[i] = val>>7;
}
#endif
+#endif
}
// *** horizontal scale Y line to temp buffer
static inline void RENAME(hyscale)(uint16_t *dst, int dstWidth, uint8_t *src, int srcW, int xInc,