this post was submitted on 01 Apr 2025
26 points (96.4% liked)

Linux

52769 readers
654 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Quackdoc@lemmy.world 3 points 3 days ago (1 children)

I should elaborate on why the "Peak white" stuff is wrong, they give this math here for mapping linear luminance. This can be really confusing, "what do we map the references to" well if PQ "graphics white" is 203, should we map sRGB to 203? clearly not, at least not always as implied by BT.2408.

the question as to what we map SDR content to in an HDR space is complex, and in many cases almost certainly not some number that we can do 1:1 mapping with, which is why specifications for inverse tonemapping exist. for instance BT.2446 defines multiple tone mapping algorithms to go from SDR->HDR->SDR or HDR->SDR->HDR or any step inbetween with minimal content loss and fidelity loss.

we cannot do a simple one size fits all function and expect everything to be hunky dory

[–] Zamundaaa@discuss.tchncs.de 1 points 23 hours ago* (last edited 22 hours ago)

Again, the reference luminance mapping is all about how applications should use the Wayland protocol.

How to map SDR to HDR can indeed be made much more complicated, from simple gamma adjustments to some full blown ITM meant for images or videos, like what BT.2446 suggests, but as far as applications are concerned, those are edge cases that they don't really need to be prepared for.

It's not like they have a different choice - unless the compositor supports custom reference luminance levels (which KWin does, but not all others do), then they need some logic to calculate peak luminance levels. If the compositor steps outside of those common expectations for reference luminance mapping, then the result may not be ideal, but there is no way for the application to do better.