[cairo] painting a r565 raw data on to gdkwindow

zaheer ahmad zaheer.mot at gmail.com
Mon Aug 31 10:43:57 PDT 2009


hi,i have a video plugin that gives the decoded data in 565 format that
matches the native format. i would like to paint this on top of a gdk window
along with content rendered from browser page. i create a cairo context out
of the gdk window and let the browser draw on to it. how do i blend the 565
data on to this? i would think of creating a GdkPixmap (assuming it would be
565) and then set data using g_object_set (pixmap, data..), and then do a
gdk_draw_drawable this pixmap on to the gdk window?  Also i would like the
video drawing path to be as fast as possible (avoiding all 565->8888
back/forth conversions). whats the right way to do this. appreciate any
help.

thanks,
Zaheer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20090831/2c224659/attachment.html 


More information about the cairo mailing list