RE: Display 16 bit image



John,

I am working on a OMAP 1510 device and am displaying the 16 bit video
directly to framebuffer. In this case I have been successful in writing to
display. But I wanted to know if gtk has any support for 16 bit display, as
it would be easier for me to if I use pixbuf etc.. The 24bit conversion from
16bit will decrease my performance which is very important in my case here.
So isnt there any method to display a 16bit image other than writing to the
device directly ??

Thanks,
Deepak.


-----Original Message-----
From: John Cupitt [mailto:jcupitt gmail com]
Sent: Tuesday, July 13, 2004 5:05 PM
To: Deepak T V S
Cc: Gtklist
Subject: Re: Display 16 bit image


You need to unpack your pixels to 24 bits RGB then use the pixbuf
library to render to the display:

http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/index.html

(If your image pixel format exactly matches the display video format
it is possible to paint to the display without conversion ... but it
is very painful. I would try using pixbuf first and only do more work
if it is too slow for you)

On Tue, 13 Jul 2004 09:08:25 +0530, Deepak T V S <tvsdeepak emuzed com>
wrote:
I am writing a video player and I have to display a 16 bit image for it.
Can
anyone tell me how to display a 16 bit (RGB) image using gtk.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]