<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 2 авг. 2022 г., 20:10 Einar Rünkaru <<a href="mailto:einarrunkaru@gmail.com" target="_blank" rel="noreferrer">einarrunkaru@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<br>
<br>
On 02/08/2022 11:37, Andrea paz wrote:<br>
<br>
> Thanks for the responses; glad to hear from you again.<br>
> In the CVE readme you mention the internal 16-bit color model. Since<br>
> you remain the only deep Cinelerra expert (besides Adam, with whom it<br>
> is difficult to interact), may I ask you to explain how color works in<br>
> Cinelerra? Is it converted continuously as needed? <br>
<br>
Video is decoded to internal representation (look at settings/format). <br>
Internal format is unpacked 3..4 values every pixel. CVE has only <br>
RGBA-16 and AYUV-16 pixel formats. All values are 16 bit.<br>
<br>
CVO (and probably CGG) have 6 internal pixel formats (8-bit and float)<br>
<br>
> Does each plugin<br>
> make the conversions it needs? <br>
<br>
All plugins see the frames only in internal format and modify this as <br>
needed.<br>
<br>
> What do the color model settings affect<br>
> and what are they affected by?<br>
<br>
Color model describes internal pixel format<br>
<br>
> Is it possible to implement ICC<br>
> profiles? <br>
<br>
Probably. How?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Good question. I was looking into mplayer2's code for display part</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/astiob/mplayer2/blob/all/libvo/vo_gl3.c" target="_blank" rel="noreferrer">https://github.com/astiob/mplayer2/blob/all/libvo/vo_gl3.c</a></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Then I found news from yesteryear about lcms2 plugin</div><div dir="auto"><a href="https://littlecms.com/plugin/" target="_blank" rel="noreferrer">https://littlecms.com/plugin/</a></div><div dir="auto">"Little CMS floating point plug-in accelerates 8 bit and floating point color transforms, ".." The speedup is accomplished by implementing new interpolation kernels, adding optimizations and re-arranging memory layouts. Additionally, it can use SIMD instructions if present."</div><div dir="auto"><br></div><div dir="auto">Then there is new infrastructure in ffmpeg git:</div><div dir="auto"><a href="http://ffmpeg.org/pipermail/ffmpeg-devel/2022-July/299438.html">http://ffmpeg.org/pipermail/ffmpeg-devel/2022-July/299438.html</a></div><div dir="auto"><br></div><div dir="auto"><a href="https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/61ffa23c2e42887b32d469d9e69e9eb887b29e9c">https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/61ffa23c2e42887b32d469d9e69e9eb887b29e9c</a></div><div dir="auto">"avcodec/codec_internal: add cap for ICC profile support"</div><div dir="auto"><br></div><div dir="auto">As far as I understand it only works with webp, tiff, png and mjpeg as video format but hopefully can be extended in future?</div><div dir="auto"><br></div><div dir="auto"><br></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>
> In short, I am not clear about anything related to color<br>
> treatment in Cinelerra. This is an issue that we have been dragging<br>
> around for years (for example see the thread:<br>
> <a href="https://www.cinelerra-gg.org/forum/help-video/yuv-to-rgb-conversion-issues/" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.cinelerra-gg.org/forum/help-video/yuv-to-rgb-conversion-issues/</a>)<br>
> but the confusion is total and we can't figure it out.<br>
> Few mentions were made many years ago:<br>
> <a href="https://lists.cinelerra-cv.org/pipermail/cinelerra/2018q4/009903.html" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.cinelerra-cv.org/pipermail/cinelerra/2018q4/009903.html</a><br>
> <a href="https://www.mail-archive.com/cinelerra@skolelinux.no/msg13761.html" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.mail-archive.com/cinelerra@skolelinux.no/msg13761.html</a><br>
<br>
Original Cinelerra does not care about colorspaces. It uses what comes <br>
out from decoder. Some effects work differenlly depending on colorspace. <br>
Sometimes pixel values are converted to float, sometimes to 8-bit for an <br>
effect. Fixing it takes couple of man-years.<br>
<br>
CVE converts color to full-scale (0..65565). All effects work with full <br>
scale values. Encoding converts to colorspace required by the codec.<br>
<br>
Einar<br>
<br>
PS Removed CinGG ML - it does not accept my mails - I am not subscribed.<br>
<br>
<br>
</blockquote></div></div></div>