Re: Efficient image drawing



On Thu, 2006-04-27 at 05:20 -0500, Paul Davis wrote:
> Howdy,
> 
> I'm developing a video playback app and I'm a bit curious to see if 
> there's a better way to render images to the screen.  As it is now I'm 
> using the Gtkmm objects and copying images from my non-standard format 
> in a GdkPixbuf and then drawing to a GtkDrawingArea using 
> gdk_draw_rgb_image_dithalign.
[snip]

This documentation suggests that GdkPixbuf doesn't need to copy the
data:
http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-creating.html#gdk-pixbuf-new-from-data

Maybe if you implemented a GdkPixbuf backend for your custom format, you
could save on some slow memory copying.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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