diff postproc/cs_test.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 6e35326c742f
children 08cac43f1e38
line wrap: on
line diff
--- a/postproc/cs_test.c	Sat Jun 26 16:21:22 2004 +0000
+++ b/postproc/cs_test.c	Sun Jun 27 00:07:15 2004 +0000
@@ -28,6 +28,10 @@
 #define srcByte 0x55
 #define dstByte 0xBB
 
+#ifdef __APPLE_CC__
+#define memalign(x,y) malloc(y)
+#endif
+
 static int get_sws_cpuflags()
 {
     return (gCpuCaps.hasMMX ? SWS_CPU_CAPS_MMX : 0) |
@@ -281,4 +285,4 @@
 	
 	printf("%d converters passed, %d converters randomly overwrote memory\n", passedNum, failedNum);
 	return failedNum;
-}
\ No newline at end of file
+}