[Pixman] [PATCH 1/3] Add CLEAR and SRC linear interpolation operators
sandmann at cs.au.dk
Fri Sep 16 08:29:48 PDT 2011
Chris Wilson <chris at chris-wilson.co.uk> writes:
> On Thu, 15 Sep 2011 13:26:09 +0200, sandmann at cs.au.dk (=?utf-8?Q?S=C3=B8ren?= Sandmann) wrote:
>> Chris Wilson <chris at chris-wilson.co.uk> writes:
>> >> Did you see Taekyun Kim's reply to this? He proposes this API:
>> >> pixman_image_composite_xrender(op, src, shape, clip, dst)
>> >> pixman_image_composite_bounded(op, src, shape, clip, dst)
>> >> pixman_image_composite_simple(op, src, shape, clip, dst)
>> >> instead, which would add direct one-pass support for all of cairo's
>> >> compositing schemes, including clip masks.
>> > You're encoding operator semantics into the function call and adding
>> > parameters for the rest?
>> Yes, basically. It's more or less a direct translation of the three
>> compositing equations that cairo uses into function calls.
> But why three functions when the difference is the semantics of the
> operator. Just allow Cairo to pick the operator that corresponds to Cairo's
> interpretation of op + mask + clip.
I guess that makes sense. I'll take a look at the patch sometime next
More information about the Pixman