On 4/27/06, Paul Davis <pjdavis@xxxxxxxxxxxxxxxxxxxxx> wrote: > 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. > > Admittedly, this method is fairly fast. I'm getting between 15 and 20 > fps on my development machine which is only a 1.4 GHz. > > I'm just wondering if anyone knew a more efficient method to get image > data from disk to the screen. Any suggestions are welcome. I think gdk_draw_rgb_image_dithalign() is about as fast as you can get while staying within the world of gdk. I avoid a copy by having my non-standard format be 24-bit RGB and drawing directly from that, but that's it I think. I don't know if gdk_draw_rgb_image_dithalign() uses the XVideo extension, but I imagine not. Of course using that ties you to X. Maybe Cairo with a GL backend would be quicker? Though it'll be a while before that is a common target :) John _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list