[Cin] Some tests on blending

Andrew Randrianasulu randrianasulu at gmail.com
Fri Mar 28 10:22:34 CET 2025


пт, 28 мар. 2025 г., 12:07 Andrea paz via Cin <cin at lists.cinelerra-gg.org>:

> > If you really want to compare RGBA with YUVA under Blend Algebra, then
> you
> > have either to change COLORSPACE_RGB to COLORSPACE_YUV in the blend
> > function, or to remove the 'COLORSPACE' declaration completely, or to
> change
> > the colorspace parameter in the plugin dialog from the default 'by
> function'
> > to the explicit 'RGB' or 'YUV' value. Have you done this?
>
> No, I didn't. I knew that Blend Algebra uses float and RGB by default,
> and it just seemed interesting to me to see the differences this makes
> from patchbay (I chose YUV media on purpose, for the test, because
> they are the most common). I would actually like to see all parts of
> CinGG unified to the internal float engine and RGB color space, but I
> know that is impossible, as each tool/plugin goes its own way.



If I understand correctly most  non-ffmpeg plugins should technically work
in all modes, due to their history. But clipping probably occur in some of
them even in rgba-float mode as you discovered earlier?


In some sense rgba/yuv modes are "speed hacks", but 4x difference in
cpu/mem usage is not something you can easily dismiss as irrelevant (this
is why variants of yuv still around).


So I
> think it is important to point out each time that with various tools,
> various results can be achieved. I guess for programmers this is an
> obvious and unnecessary aspect. But not to me. Another impossible
> thing I would like to do is to indicate on the manual how each
> tool/plugin works, regarding color spaces, color depths, and use of
> the internal engine in float, but that is information available only
> in very few cases.
> In short, I think Blend Algebra is more reliable (consistent) than
> patchbay overlays, because of its internal conversions to a single
> mode; this is precisely why I would like to try IgorV's tutorial with
> Blend Algebra again.
> I guess I was just talking nonsense and doing useless tests!  :)
>

well, consistency has cpu cost, while I think yuv modes were left in
half-working state in cingg because you only have defined equations for
rgba compositing? With assumption that users who use yuv mode will not use
overlays (say because it either pre edit/assembly or final pass from yuv
compressed source).



> PS: @Phyllis; actually “polemica” is an intalian word I used, I don't
> know why DeepL translated it into “polemic.”
> --
> Cin mailing list
> Cin at lists.cinelerra-gg.org
> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20250328/ef58a9ee/attachment-0001.htm>


More information about the Cin mailing list