summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2022-03-04 23:41:38 +0000
committer Alec Mouri <alecmouri@google.com> 2022-03-18 23:54:08 +0000
commit7a577450e536aa1e99f229a0cb3d3531c82e8a8d (patch)
tree324da642f325123cf62f9c688f481614942a9d1e /libs/gui/LayerDebugInfo.cpp
parent1a3c5456dd9e05642c3d0f388102c511e80b5108 (diff)
Push HLG OOTF down to libtonemap.
Usage of current display brightness may be vendor-configured when the display brightness is very low, so keep the OOTF in libtonemap as part of the reference implementation. Concretely, this means that: * The BT2100 recommended OOTF for HLG->output format is moved from ScaleLuminance in libshaders to be the first part of the tonemapping operator in libtonemap * The inverse OOTF for input format->HLG is moved from NormalizeLuminance in libshaders to the end of the tonemapping operator in libtonemp * Current display brightness is only taken into account in the default tonemapping for Android T. The historic tonemapper does not take into account current display brightness, as it treats the "nominal peak brightness" of the display as 1000 nits instead of the current brightness. Also add a default lower-bound for using the current display brightness, because not having a bound looks really terrible on existing shipping devices Bug: 208933319 Test: builds Test: HLG test video looks okay Test: HDR10 test video didn't break Change-Id: I4f489c68f635a8ecc4d497b98c32e91c297d0765
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions