[gst-devel] getting GdkPixbuf from gdkpixbufsink
mapping at sheerman-chase.org.uk
mapping at sheerman-chase.org.uk
Fri Jan 9 18:17:39 CET 2009
Hello all,
I am looking for some help getting the object GdkPixbuf from
gdkpixbufsink. I am working in image processing so I want to get the
image buffer for each frame. My priorities are to have a reliable and
conceptually simple way of getting the buffer.
I have started by modifying gst-player-0.0.0, changed it to use the
gdkpixbufsink sink and waiting to process messages on the bus. I am
seeing the element/pixbuf messages without a problem. I then call the
following on the bus message:
buff = gst_structure_get_value (msg->structure,"pixbuf");
which gives me a non-zero pointer. I was expecting that is a GdkPixbuf
object. The problem I get is when I do GDK_IS_PIXBUF(buff) it returns
false. Any ideas why?
Or am I meant to retrieve "last-pixbuf" from the sink directly?
If more detail is needed, the code is here:
http://www.sheerman-chase.org.uk/temp/gst-player-pixel.tar.gz
Tim
More information about the gstreamer-devel
mailing list