[cairo] filters/image processing

MenTaLguY mental at rydia.net
Fri Mar 24 16:53:41 PST 2006


On Fri, 2006-03-24 at 16:40 -0800, Carl Worth wrote:
> Oh, here's a stupid idea. What if we did something like:
> 
> 	cairo_filter_t
> 	cairo_filter_allocate (cairo_pattern_t *pattern);
> 
> Which would allocate a new filter ID to represent the filter graph
> represented by pattern. And then maybe we could provide some
> pre-defined dummy source patterns so that a resulting filter ID could
> be passed to cairo_set_filter or cairo_set_mask_filter and the correct
> source or mask would be fed into the filter graph where appropriate,
> (while other explicit patterns might feed in at other points).
> 
> If nothing else, this would alleviate the name clash by actually
> proving a means to emulate the existing cairo_filter_t values
> precisely.

Hmmm.  I dunno.  It seems a roundabout solution to the real problem --
how to create filter pipelines with "free variables".

Also, opaque handles are radically different to the usual way things are
done in Cairo... I think we need to think about this some more.

-mental
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060324/3235ce5b/attachment.pgp


More information about the cairo mailing list