[MPlayer-dev-eng] [PATCH] postproc/yuv2rgb_altivec.c compile fix

Luca Barbato lu_zero at gentoo.org
Sun Oct 3 00:08:48 CEST 2004


Romain Dolbeau wrote:
> Hello,
> 
> The attached patch fix the compilation problem on linux/ppc.
> 
> Could someone explain then "0..255 vs. 16..235" problem
> mentioned in the cvs log ? I can try to fix that.

Romain there are at least a couple problem with the code at least on 
linux\ppc:

1 yuv2rgb_altivec_init_tables does initialize the SwsContext vectors.

2 once you make it load the correct values (maybe I did something wrong 
loading them..) the result is completely wrong.

Said that, here is the code I wrote, it just addresses the first point, 
tomorrow I'll try to discover what's wrong with the final result.

lu

PS: the attached patch is a cumulative patch of the AVV fixes and the 
altivec_init change.


-- 
Luca Barbato
Developer
Gentoo Linux				http://www.gentoo.org/~lu_zero


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: yuv2rgb_altivec_AVV_init.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041003/f05044e6/attachment.asc>


More information about the MPlayer-dev-eng mailing list