From a31de95620a8eafda622347ccbed03c495e6092b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 27 Jun 2004 00:07:15 +0000 Subject: altivec yuv->rgb converter orginal patch by (Marc Hoffman ) critical fixes by (Reza Jelveh ) 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 --- postproc/swscale_internal.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'postproc/swscale_internal.h') diff --git a/postproc/swscale_internal.h b/postproc/swscale_internal.h index 63cc9cd8d8..c6d5a2f974 100644 --- a/postproc/swscale_internal.h +++ b/postproc/swscale_internal.h @@ -132,6 +132,19 @@ typedef struct SwsContext{ int dstW; int esp; uint64_t vRounder __attribute__((aligned(8))); + +#ifdef HAVE_ALTIVEC + + vector signed short CY; + vector signed short CRV; + vector signed short CBU; + vector signed short CGU; + vector signed short CGV; + vector signed short OY; + vector unsigned short CSHIFT; + +#endif + } SwsContext; //FIXME check init (where 0) -- cgit v1.2.3