Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Feature+Bugfix) Add HDR metadata tweaking options + fix HDR HDMI limited #740

Merged
merged 1 commit into from Feb 12, 2023

Conversation

Natrox
Copy link
Contributor

@Natrox Natrox commented Feb 10, 2023

Hello Sorg,

This is another HDR-related PR. It's a small one, the feature was frequently requested in Discord and on the forum, and the bug I fixed was reported by a forum user as well.

Two options have been added to MiSTer.ini:

  • hdr_max_nits: Maximum brightness supported by display (MaxCLL).
  • hdr_avg_nits: Average brightness (MaxFALL).

These values are reported to the display via metadata. Because this meant the metadata is no longer static, I have added checksum calculation as required.

Not all displays listen to these values. For example, my LG C8 TV completely ignores it. However, some other TVs and HDR monitors do make use of these values. It is unpredictable, but this gives users the ability to try and optimize for their display.

I have also fixed a bug related to HDMI limited in HDR-mode. The YPbPr bugfix broke HDMI limited color space conversion when using HDR - I have corrected the code and simplified the base CSC selection for clarity.

Impact
Default values for the new ini options are set to what the metadata had already (1000 and 250 respectively), so users will not need to take any action if they are happy with their setup.
HDMI limited users will no longer have problems with clipping colors.

For the conceivable future, I consider this the final change in HDR logic. It is pretty much feature complete at this point - not much more can be done with our hardware.


Thank you for your hard work!

@sorgelig sorgelig merged commit 6a8eda7 into MiSTer-devel:master Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants