[cairo] Frame Buffer and Special Pixel Formats

Klaus Stehle klaus.stehle at uni-tuebingen.de
Wed Dec 6 03:26:12 PST 2006



On Mon, 4 Dec 2006, Carl Worth wrote:
> [ ... ]
> If instead, the idea is to just add some conversion before and after
> each operation, then it doesn't make sense to provide this as a
> "supported" image format in cairo. It would be more efficient to delay
> the conversion until an entire set of operations is performed, (such
> as a complete frame in an animated sequence). And doing conversion at
> that point should be possible with the interfaces in cairo
> already. (One thing that might be needed is a way to find out the
> region that is dirtied by a sequence of operations so that no more
> data is converted/copied than necessary).
> 
> Does that make sense?

Yes, it does ...
and it should work fine, if there was a hook, a callback function,
which is called by the image surface whenever something has been
dirtied, so the conversions/copies can be triggered automatically.
Thus the "support" of any pixel format could be simulated :-)


Klaus


More information about the cairo mailing list