[Libdlo] udlfb flush on close (Was: Basic PNG and SVG display)

Sven Killig sven at killig.de
Tue May 26 12:25:50 PDT 2009


> -----Original Message-----
> From: libdlo-bounces at lists.freedesktop.org [mailto:libdlo-
> bounces at lists.freedesktop.org] On Behalf Of Phil Endecott
> Sent: Tuesday, May 26, 2009 8:27 PM
> To: libdlo at lists.freedesktop.org
> Subject: [Libdlo] udlfb flush on close (Was: Basic PNG and SVG display)
> 
> (BTW, does anyone know how
> to convert an image to 565 16-bit raw RGB?  I was expecting there to be
> some pnmtorgb utility but I can't find one.  ImageMagick's convert will
> convert to 24- or 32-bpp raw RGB, but AFAICT Roberto's code doesn't yet
> support 24bpp.)

do you need something like

int RGB_24to16(int red, int grn, int blu) {
	return ( ((red >> 3) << 11) | ((grn >> 2) << 5) | (blu >> 3) );
}

?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3414 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/libdlo/attachments/20090526/75f3e585/attachment.bin 


More information about the Libdlo mailing list