Commit c1c464ee authored by hubbe's avatar hubbe Committed by Commit bot

Add simplistic HLG->SDR conversion.

BBC recommends simply using gamma 2.4 when displaying HLG content on non-HDR.

Review-Url: https://codereview.chromium.org/2355633002
Cr-Commit-Position: refs/heads/master@{#419597}
parent 89504256
......@@ -609,6 +609,13 @@ class ColorSpaceToColorSpaceTransform : public ColorTransform {
from_.transfer_ = ColorSpace::TransferID::SMPTEST2084_NON_HDR;
break;
case ColorSpace::TransferID::ARIB_STD_B67:
// Interpreting HLG using a gamma 2.4 works reasonably well for SDR
// displays. Once we have HDR output capabilies, we'll need to
// change this.
from_.transfer_ = ColorSpace::TransferID::GAMMA24;
break;
default: // Do nothing
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment