RSS/Atom feed Twitter
Site is read-only, email is disabled

Compositors

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

5 of 5 messages available
Toggle history

Please log in to manage your subscriptions.

Compositors Calculemus 07 Jul 18:24
  Compositors Ville Sokk 07 Jul 19:31
   Compositors Calculemus 08 Jul 00:20
    Compositors Michael Henning 08 Jul 00:35
     Compositors Calculemus 08 Jul 08:15
Calculemus
2012-07-07 18:24:50 UTC (almost 13 years ago)

Compositors

I am trying to understand the code for the compositor soft-light, in the file /gegl-0.2.0/operations/generated/soft-light.c.

I am not sure about line 25: aD = aA + aB - aA * aB;

What is aD, is it alpha channel? Does gegl assume that the input image buffers are RGBA?

Thanks

Ville Sokk
2012-07-07 19:31:54 UTC (almost 13 years ago)

Compositors

On Sat, Jul 7, 2012 at 9:24 PM, Calculemus wrote:

I am trying to understand the code for the compositor soft-light, in the file /gegl-0.2.0/operations/generated/soft-light.c.

I am not sure about line 25: aD = aA + aB - aA * aB;

What is aD, is it alpha channel? Does gegl assume that the input image buffers are RGBA?

Thanks

_______________________________________________ gegl-developer-list mailing list
gegl-developer-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gegl-developer-list

Just above the process function you can see the prepare function which sets input, aux and output buffers to RaGaBaA which is RGBA with premultiplied alpha.

Calculemus
2012-07-08 00:20:59 UTC (almost 13 years ago)

Compositors

What source is used for the math? I see the original Adobe reference uses different math for the compositors like soft-light. Not sure which math to use, the one you guys have in GEGL or the one in the Adobe reference, which is used in Photoshop and After Effects, etc.

Michael Henning
2012-07-08 00:35:25 UTC (almost 13 years ago)

Compositors

Note the comment at the top of that file:

/* SVG rendering modes; see: * http://www.w3.org/TR/SVG12/rendering.html * http://www.w3.org/TR/2004/WD-SVG12-20041027/rendering.html#comp-op-prop *
* aA = aux(src) alpha aB = in(dst) alpha aD = out alpha * cA = aux(src) colour cB = in(dst) colour cD = out colour */

It's also probably useful to note that these operations are generated by svg-12-blend.rb, so you might be better off looking there for some of the code.

-- drawoc

On Sat, Jul 7, 2012 at 8:20 PM, Calculemus wrote:

What source is used for the math? I see the original Adobe reference uses different math for the compositors like soft-light. Not sure which math to use, the one you guys have in GEGL or the one in the Adobe reference, which is used in Photoshop and After Effects, etc.

_______________________________________________ gegl-developer-list mailing list
gegl-developer-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gegl-developer-list

Calculemus
2012-07-08 08:15:56 UTC (almost 13 years ago)

Compositors

Yep I saw that. I see different math being used for these compositors in different places. But I guess I can trust w3 :) and gegl