<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 1 дек. 2023 г., 18:59 Andrea paz via Cin <<a href="mailto:cin@lists.cinelerra-gg.org">cin@lists.cinelerra-gg.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I tried to make other changes to the plugins for Color Correction to<br>
be able to make it also see out-of-range (HDR) values and be able to<br>
change them. All of this involves floating point calculation. I tried<br>
changing the range of the following plugins:<br>
Alpha; Color3Way; ColorBalance; Gradient; Histogram Bezier e Overlay.<br>
If interested, I can report attempts to modify the code, but I got<br>
good results only with Color3Way.<br>
More in detail:<br>
Alpha: My modifications ruin the plugin. Probably widening the range 0<br>
- 1.0 leads the algorithms to wrong results. However, I think the<br>
original plugin works in floating point.<br>
ColorBalance: From my tests I did not notice any difference with the<br>
unmodified plugin (I used an appimage). I am under the impression that<br>
this plugin already works in floating point and does not need<br>
modification.<br>
Gradient: Here again I find no difference with the original plugin.<br>
Again, I have the impression that the plugin already works in floating<br>
point.<br>
Overlay (shared effect): I don't notice any difference with the original plugin.<br>
Histogram Bezier: I tried extending the range similarly to Histogram<br>
(which works well in HDR, after modification). In this case I see no<br>
change. The code is much more complex and it is probably not enough to<br>
delete the CLAMP.<br>
The change I made is to the file "bistogram.C"<br>
line 361 I changed the value of 1.0 to 10.0.<br>
I also tried editing the file bistogramconfig.C<br>
line 110 e 111 I changed the value of 1.0 to 10.0.<br>
line 229 I changed the value of 1 to 10.<br>
I put these details because the plugin is very important for CC and I<br>
would love it if someone more experienced than me could make it work<br>
on out-of-range data as well. Besides, the plugin is not only a<br>
histogram but also uses the very important "Curves".<br>
For the Videoscope plugin I could not make changes because the code is<br>
too complicated for my skills; similarly to Histogram Bezier.<br>
<br>
Finally I describe Color3Way, in which the modification worked. In the<br>
original plugin the color wheels already seems to work in floating<br>
point, but not the V bar of brightness values (which are clipped).<br>
With the modification the V bar also works on out-of-range data.<br>
The modification is as follows:<br>
File "color3way.C":<br>
line 281 I changed the value of 1.0 to 100.0.<br>
line 284 I changed the value of 1.0 to 100.0<br>
(I have also tried other values, e.g., 10.0, and the clamp always<br>
works up to those values).<br>
The floating point calculation works for both the saturation bar and the V bar.<br>
With the tests done so far, I have had no problems or errors/warnings<br>
on the terminal.<br>
<br>
I did the tests with exr images and then enabled the internal CinGG<br>
engine (but in the tests it also works with "ffmpeg first"). I set the<br>
color model to RGBA-FLOAT (inescapable: with integer 8-bit models you<br>
cannot have HDR) and the color range to 2020 NCL (but it works with<br>
all possible settings, not relevant). The graphics driver is X11<br>
because with X11-OpenGL it does not work.<br>
Used patches:<br>
0001-TEST-Simpler-unlimited-float-overlay.patch<br>
0002-Allow-negative-numbers-in-overlayer.patch<br>
noclamp_in_histogram.diff<br>
Manual changes in color3way.C<br>
<br>
I am happy with the success with Color3Way (as with Histogram) because<br>
I believe it will become increasingly important to work on HDR video<br>
in the future. On the other hand, I regret not having success with<br>
Curves (Histogram Bezier) because it is an essential plugin for CC.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Thanks for experiments!</div><div dir="auto"><br></div><div dir="auto">I wonder if anyone who worked on colour correction plugins in cinelerra still can be contacted? I do not feel very comfortable in this area, because some advanced usage of plugins/modes/rerouting already bite us earlier ....</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank" rel="noreferrer">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div></div></div>