summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author Siddharth Kapoor <ksiddharth@google.com> 2018-12-05 20:29:06 +0800
committer Siddharth Kapoor <ksiddharth@google.com> 2018-12-05 20:29:06 +0800
commitac1f7c9c50b468315dbd4b0e71e03fb736fd98eb (patch)
tree26f32935f4d9392b831f64020a0f78f00a2970f1 /libs/gui/SurfaceControl.cpp
parent4c3137a9d3fe39d09aed664c0405bb219591cc90 (diff)
[RenderEngine] Clamp input color for BT2020_PQ EOTF
Color input to EOTF for PQ transfer function is out-of-bounds [0.0, 1.0] Reason being, texture2D returns values which is not in range [0.0, 1.0]. These returned values are passed as gl_FragColor.rgb to EOTF for PQ transfer function. In EOTF, colors outside the range [0.0, 1.0] are rendered as black resulting in artifacts while video playback. Clamp the input color to the range [0.0, 1.0] Bug: 118794307 Test: Youtube HDR video plays fine, also screenshots taken while playback does not have any artifacts. Change-Id: I266f5a009c4c58924510283295757abae811a41e
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
0 files changed, 0 insertions, 0 deletions