Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
12697:86ca4e017ac8 | 12698:d2aef091743c |
---|---|
1724 c->ugCoeff= roundToInt16(cgu*8192) * 0x0001000100010001ULL; | 1724 c->ugCoeff= roundToInt16(cgu*8192) * 0x0001000100010001ULL; |
1725 c->yOffset= roundToInt16(oy * 8) * 0x0001000100010001ULL; | 1725 c->yOffset= roundToInt16(oy * 8) * 0x0001000100010001ULL; |
1726 | 1726 |
1727 yuv2rgb_c_init_tables(c, inv_table, srcRange, brightness, contrast, saturation); | 1727 yuv2rgb_c_init_tables(c, inv_table, srcRange, brightness, contrast, saturation); |
1728 //FIXME factorize | 1728 //FIXME factorize |
1729 | 1729 |
1730 #ifdef HAVE_ALTIVEC | |
1731 yuv2rgb_altivec_init_tables (c, inv_table); | |
1732 #endif | |
1730 return 0; | 1733 return 0; |
1731 } | 1734 } |
1732 | 1735 |
1733 /** | 1736 /** |
1734 * @return -1 if not supported | 1737 * @return -1 if not supported |