summaryrefslogtreecommitdiffstats
path: root/postproc/yuv2rgb.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-27 00:07:15 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-27 00:07:15 +0000
commit56164a0e7a174e9525210134aa7c4594a349db48 (patch)
treebdc9e3021f7e0c5a5f955f817adbc4aa0f541ba7 /postproc/yuv2rgb.c
parentbf8c8c80673f5d1d55c5a418c28ec88d753181b0 (diff)
downloadmpv-56164a0e7a174e9525210134aa7c4594a349db48.tar.bz2
mpv-56164a0e7a174e9525210134aa7c4594a349db48.tar.xz
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12699 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/yuv2rgb.c')
-rw-r--r--postproc/yuv2rgb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/postproc/yuv2rgb.c b/postproc/yuv2rgb.c
index a8acec5f19..317ada954e 100644
--- a/postproc/yuv2rgb.c
+++ b/postproc/yuv2rgb.c
@@ -607,6 +607,14 @@ SwsFunc yuv2rgb_get_func_ptr (SwsContext *c)
if(t) return t;
}
#endif
+#ifdef HAVE_ALTIVEC
+ if (c->flags & SWS_CPU_CAPS_ALTIVEC)
+ {
+ SwsFunc t = yuv2rgb_init_altivec(c);
+ if(t) return t;
+ }
+#endif
+
MSG_WARN("No accelerated colorspace conversion found\n");
switch(c->dstFormat){