From: Alexandre B. <al...@bo...> - 2004-01-31 12:19:26
|
Le jeudi 29 janvier 2004 =E0 03:15, Michael Steil a =E9crit : >=20 > I uploaded http://www.gc-linux.org/down/cfbimgblt.c , a quick fix to do= =20 > YUYV (all conversion code by Costis). The problem is: It needs floating= =20 > point, and the linker complains that there are no floating point=20 > libraries. >=20 the YUYV conversion doesn't really need floating point. you can simply do something like : y =3D (299 * r + 587 * g + 114 * b) / 1000; cb =3D ( -16874 * r - 33126 * g + 50000 * b + 12800000) / 100000; cr =3D (50000 * r - 41869 * g - 8131 * b + 12800000) / 100000; regards, --=20 Alexandre Boeglin e. mail : al...@bo... | Jabber : bo...@ja... ICQ UIN : 38852646 | Website : http://www.boeglin.org/ GPG fingerprint : 6B02 86CA A79E FA83 2FF0 3B83 14DE 4187 39C1 2786 |