Implement BT.2408-6 tone mapping
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
Implement the three parameter tone mapping function based on BT.2408-6 annex 5.
The function requires description of black point, maximum peak and tone mapping knee.
A specific version of the function is used for tone mapping in the Safari browser.
The function allows displaying HDR on imperfect displays well and is somewhat similar to the spline already implemented in mpv.
Preferably also add the described variant of perceptual gamut mapping in ITP color space to limit hue shifts.
The knee would be best specified in nits rather than as a percentage.
SDR to HDR tone mapping is also possible using this function directly without inverting the equation, sigmoidizing the input after simple expansion to desired upconverted SDR peak in the original gamma.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading BT.2408-6 Annex 5 and the existing spline tone-mapping implementation in mpv; no specific files or tests are named in the issue. Define the black point, maximum peak, and nits-based knee behavior, then assess the optional ITP perceptual gamut-mapping variant and SDR-to-HDR use case. Done means the specified function and intended variants are implemented and validated for HDR display mapping.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100