Skip to content

icc: update tone mapping - #340

Open
ram-mohan wants to merge 1 commit into
google:mainfrom
ittiam-systems:icc
Open

icc: update tone mapping#340
ram-mohan wants to merge 1 commit into
google:mainfrom
ittiam-systems:icc

Conversation

@ram-mohan

Copy link
Copy Markdown
Contributor
  • update tone mapping to reflect the implementation in api-0.
  • update the icc profile to output results in xyz D50 instead of Lab.
  • update the icc profile to output tonemap results in api-0 only.
  • add chad tag.

Test: ./ultrahdr_unit_test

Comment thread lib/include/ultrahdr/icc.h Outdated
Comment thread lib/src/icc.cpp
- update tone mapping to reflect the implementation in api-0.
- update the icc profile to output results in xyz D50 instead of Lab.
- update the icc profile to output tonemap results in api-0 only.
- add chad tag.

Test: ./ultrahdr_unit_test
@gregbenz

Copy link
Copy Markdown
Contributor

Aligning the ICC fallback with API-0 would improve consistency, but two details may need correction: PQ still declares Lab PCS although the new transform produces XYZ D50, and compute_lut_entry() passes false to globalTonemap() after inverse PQ/HLG conversion, whereas API-0 treats those inputs as normalized.

Evaluating the tone-mapping stage at peak white gives approximately 0.5002 for PQ and 0.5206 for HLG instead of 1.0, before ICC serialization. Could these be corrected and covered by PQ/HLG comparisons against API-0, including validation through an independent ICC consumer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants