Hi

When I use cogl_texture_get_cogl_texture(CLUTTER_TEXTURE (video)) to get the 
texture from a video and extract the data from the cogl_texture to a gdk 
pixbuf, pixbuf is corrupted. Its like three splits of the thumbnail in grey 
scale.

When I checked the pixel format of the cogl texture it returned 8 
(COGL_PIXEL_FORMAT_G_8) and the rowstride was equal to the width of the texture.

But COGL documentation shows  COGL_PIXEL_FORMAT_G_8 as FIXME.

The pixbuf is extracted as follows

Pixbuf = gdk_pixbuf_new_from_data(data_video, //extracted usig 
cogle_texture_get_data()
GDK_COLORSPACE_RGB,
FALSE,
8,
Width,
Height,
Rowstride, NULL, NULL);

I am using Clutter 1.0.

The same thing used to work with the clutter 0.8. when used with clutter 0.8 
the pixel format was COGL_PIXEL_FORMAT_24 and the rowstride was three times the 
width of the texture.

Pls help

Thanks

Yaser Hameed


Reply via email to