Re: Framebuffer up, colorspace conversion problem

Alexandre Boeglin <[email protected]>
Newsgroups gmane.linux.ports.game-cube.devel
Message-ID <[email protected]>
Le jeudi 29 janvier 2004 à 03:15, Michael Steil a écrit :
> 
> I uploaded http://www.gc-linux.org/down/cfbimgblt.c , a quick fix to do 
> YUYV (all conversion code by Costis). The problem is: It needs floating 
> point, and the linker complains that there are no floating point 
> libraries.
> 

the YUYV conversion doesn't really need floating point.

you can simply do something like :

y = (299 * r + 587 * g + 114 * b) / 1000;
cb = ( -16874 * r - 33126 * g + 50000 * b + 12800000) / 100000;
cr = (50000 * r - 41869 * g - 8131 * b + 12800000) / 100000;


regards,

-- 
Alexandre Boeglin
e. mail : [email protected] | Jabber : [email protected]
ICQ UIN : 38852646 | Website : http://www.boeglin.org/
GPG fingerprint : 6B02 86CA A79E FA83 2FF0  3B83 14DE 4187 39C1 2786


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.