<div dir="ltr"><div class="gmail_default" style="font-size:small">What an interesting name!<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 7, 2023 at 8:05 PM Andrew Randrianasulu via Cin <<a href="mailto:cin@lists.cinelerra-gg.org">cin@lists.cinelerra-gg.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Found this tidbit<div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><a href="http://psychtoolbox.org/news.html" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">http://psychtoolbox.org/news.html</a><br></div><div dir="auto"><br></div><div dir="auto">in 3.0.18 beta</div><div dir="auto"><br></div><div dir="auto">16 bit native (effective 12 bit) framebuffer support for Linux with AMD Polaris and later.<br></div><div dir="auto"><br></div><div dir="auto">====</div><div dir="auto"><br></div><div dir="auto"><p>This commit switches PsychImaging() to only expose 16 bpc 
framebuffers on such Linux + X11 + AMD Polaris+ + amdvlk + Linux 5.14 
systems, but then at much better reliability and performance than our 
old dead code.</p>

    <p>It allows to get up to 12 bpc per color-channel color output, ie.
 4096 intensity levels for red, green, blue, grayscale/luminance and a 
total of 64 billion shades of color, either on suitable 12 bpc capable 
high-end displays, or via spatial dithering by the gpu on the more 
common 10 bpc capable displays or even - at a lower quality - standard 8
 bpc capable displays.</p>

    <p>This makes Linux the first operating system to my knowledge to 
support this color precision on out of the box on commodity graphics 
hardware and displays, natively at full performance without any 
compromise in timing precision or reliability.</p>

    <p>Basic testing has been performed with a CRS ColorCal-2 on a 
HDR-10 10 bpc capable monitor and on a MacBookPro 2017 Retina display 
under Linux, with AMD RavenRidge and Polaris.</p><p><br></p><p>====</p><p><br></p><p>test apps apparently even include gstreamer-based movie player (never thought I'll find HDR player in medical software ...)</p><p><br></p><p><a href="http://psychtoolbox.org/docs/PsychHDR" rel="noreferrer noreferrer" target="_blank">http://psychtoolbox.org/docs/PsychHDR</a><br></p><p><br></p><p><a href="http://psychtoolbox.org/docs/PlayMoviesDemo" rel="noreferrer" target="_blank">http://psychtoolbox.org/docs/PlayMoviesDemo</a><br></p><p><br></p><p>===</p><p>If the optional flag ‘hdr’ is specified as non-zero, then the demo<br>
expects the onscreen window to display on a HDR-10 capable display device<br>
and system, and tries to switch to HDR mode. If the operating system+gpu<br>
driver+gpu+display combo does not support HDR, the demo will abort with<br>
an error. Otherwise it will expect the movies to be HDR-10 encoded and<br>
try to display them appropriately. A flag of 1 does just that. A flag of 2 will<br>
manually force the assumed EOTF of movies to be of type PQ, iow. assume the movie<br>
is a HDR-10 movie in typical Perceptual Quantizer encoding. This is useful if you<br>
want to play back HDR content on a system with a [<a href="http://psychtoolbox.org/docs/GStreamer" target="_blank">GStreamer</a>]<a href="http://psychtoolbox.org/docs/%28GStreamer%29" target="_blank">(GStreamer)</a> version older than<br>
1.18.0 installed, where [<a href="http://psychtoolbox.org/docs/GStreamer" target="_blank">GStreamer</a>]<a href="http://psychtoolbox.org/docs/%28GStreamer%29" target="_blank">(GStreamer)</a> is not fully HDR capable, but this hack may<br>
get you limping along. Another restriction would be lack of returned HDR metadata,<br>
so if your HDR display expects that, you will not get the best possible quality.<br>
Upgrading to [<a href="http://psychtoolbox.org/docs/GStreamer" target="_blank">GStreamer</a>]<a href="http://psychtoolbox.org/docs/%28GStreamer%29" target="_blank">(GStreamer)</a> 1.18 or later is advised for HDR playback.<br>
A flag of 3 or 4 will use an alternative HDR display method only available on<br>
Linux/X11, with 4 applying the same hack to cope with older [<a href="http://psychtoolbox.org/docs/GStreamer" target="_blank">GStreamer</a>]<a href="http://psychtoolbox.org/docs/%28GStreamer%29" target="_blank">(GStreamer)</a> versions<br>
as a setting of 2.<br></p><p><br></p><p>====</p><p><br></p><p>happy psyching! (???)</p></div></div>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div>