summaryrefslogtreecommitdiff
path: root/postproc/cs_test.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-06-27 00:07:15 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-06-27 00:07:15 +0000
commita31de95620a8eafda622347ccbed03c495e6092b (patch)
tree81157c010ae503677f00c2226a2c777bf88c057d /postproc/cs_test.c
parent92e09c5dd0b61416e13db7b7f30d09f42e53ad90 (diff)
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 Originally committed as revision 12699 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/cs_test.c')
-rw-r--r--postproc/cs_test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/postproc/cs_test.c b/postproc/cs_test.c
index aad26e236a..0e5fe4a26e 100644
--- a/postproc/cs_test.c
+++ b/postproc/cs_test.c
@@ -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 @@ main(int argc, char **argv)
printf("%d converters passed, %d converters randomly overwrote memory\n", passedNum, failedNum);
return failedNum;
-} \ No newline at end of file
+}