Hi JS,

Thanks for the precisions. I'm working on a real-time video processing software (http://drone.ws). I have integrated the composition functions found in gimp-composite* and they work remarkably. I'll take a look at the src_over/dst_over implementations and compare them with my own impl. to see which is faster. I'll probably implement the other operators as well but only for RGBA. Since GEGL seems to support different color models, my implementation will doubtly be useful to you (would it?)

   Thanks again.

   Best,

   JS

Joao S. O. Bueno Calligaris wrote:

On Wednesday 13 April 2005 21:12, Joao S. O. Bueno Calligaris wrote:


On Tuesday 12 April 2005 13:06, JS wrote:




Let's see how far I can MAP these SVG comp. modes to GIMPs:

1) clear: Not available as a composite mode. One might just turn the layers visibility off.

2) src:No mode. Turn off the visibility of the dst layer. 3) dst: No mode. Turn off the visibility of the src layer. 4) src_over: mode "behind"
5) dst_over: mode "normal"
6) src_in: no equivalent mode. There would be needed another (custom) mode mode that would multiply or "lighten only" the alpha component, and ignored the dst color.
7) drc_in: no equivalent mode. There would be needed another mode that would multiply or "lighten only" the alpha component, and ignored the src color.
8) src_out: no equivalent mode. There would be needed another mode that would multiply or "lighten only" srca by the complement of dsta, and ignored the dst color.
9) dst_out: no equivalent mode. There would be needed another mode that would multiply or "lighten only" srca by the complement of dsta, and ignored the dst color.
10) src_atop: no equivalent mode. There would be needed another mode that would be like the current behind mode, but use dsta instead of srca
11) drt_atop: no equivalent mode. There would be needed another mode that would be like the current normal mode, but use srca to replace dsta. 12) src_atop: no equivalent mode. A XOR_alpha mode would be needed to emulate this.
------------


Apart of the nice code I pointed in the other e-mail, I have a current python script is flexible enough to easily do these compositions. As a plug-in, however, it doesn't operate in real time: you have to draw you layers, and call the plug-in to generate a resulting layer from the operation.

If you are interested I can have it dealing with these 12 modes in a little more than an hour.

        JS
        -><-
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer





--
Jean-Sébastien Senécal
Freelance programmer / Programmeur autonome
M. Sc. Computer Sciences / Informatique, Université de Montréal
Mail: [EMAIL PROTECTED]
Web: http://drone.ws


_______________________________________________ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer

Reply via email to