Mercurial > mplayer.hg
diff postproc/swscale.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 | b5c106b694e4 |
children | 931eee818c52 |
line wrap: on
line diff
--- a/postproc/swscale.c Sat Jun 26 16:21:22 2004 +0000 +++ b/postproc/swscale.c Sun Jun 27 00:07:15 2004 +0000 @@ -1726,7 +1726,10 @@ yuv2rgb_c_init_tables(c, inv_table, srcRange, brightness, contrast, saturation); //FIXME factorize - + +#ifdef HAVE_ALTIVEC + yuv2rgb_altivec_init_tables (c, inv_table); +#endif return 0; }