[cairo] obtaining image memory from glitz backend

David Reveman davidr at novell.com
Sun Feb 20 13:52:46 PST 2005


On Sat, 2005-02-19 at 22:30 +0100, kysucix wrote: 
> Hi :) I would like to obtain a direct pointer to the image memory just
> after the glitz surface has been shown. With pbuffers it should be
> possible but I don't know how. 
> I just would like to use convolution filter and transfomation for freej
> in order to have hw accelerated video filters.
> Any idea ? :)

It's not possible to get a direct pointer to texture memory, pbuffer
memory or any other GL drawable with OpenGL. You need to call
glitz_get_pixels to access the pixel data with glitz. If you like to use
OpenGL for accelerated video filters, you probably want to keep the
image data in video memory all the way until you like it to go to the
framebuffer.

> Best Regards
> Silvano Galliani aka kysucix
> --
> If you do not wish a man to do a thing, you had better get him to talk
> about it; for the more men talk, the more likely they are to do nothing
> else.   
>     Carlyle

-David




More information about the cairo mailing list