diff postproc/swscale_template.c @ 12698:d2aef091743c

altivec yuv->rgb converter orginal patch by (Marc Hoffman <mmh at pleasantst dot com>) critical fixes by (Reza Jelveh <reza.jelveh at tu-harburg dot de>) known bugs/issues, which should be fixed ASAP by someone who has a ppc: 0..255 vs. 16..235 unneeded recalculation of tables general cleaup, like removing double initalizing of variables
author michael
date Sun, 27 Jun 2004 00:07:15 +0000
parents 2ef24558b732
children 821f464b4d90
line wrap: on
line diff
--- a/postproc/swscale_template.c	Sat Jun 26 16:21:22 2004 +0000
+++ b/postproc/swscale_template.c	Sun Jun 27 00:07:15 2004 +0000
@@ -943,9 +943,15 @@
 		break;
 #endif
 	default:
+#ifdef HAVE_ALTIVEC
+		altivec_yuv2packedX (c, lumFilter, lumSrc, lumFilterSize,
+			    chrFilter, chrSrc, chrFilterSize,
+			    dest, dstW, dstY);
+#else
 		yuv2packedXinC(c, lumFilter, lumSrc, lumFilterSize,
 			    chrFilter, chrSrc, chrFilterSize,
 			    dest, dstW, dstY);
+#endif
 		break;
 	}
 }