summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Peiyong Lin <lpy@google.com> 2018-04-30 16:55:29 -0700
committer Peiyong Lin <lpy@google.com> 2018-05-02 14:43:48 -0700
commita296b0c232483ff2d80a814a1a39d02397ba559e (patch)
treec78878ccb47653ed714203ef2af79bc240ad4541 /libs/gui/BufferQueueThreadState.cpp
parent8c533232326f40f474fff0125e1f4d55260a547b (diff)
[RenderEngine] Polish shader pipeline for HDR support.
Previously we applied transform matrix between color spaces together with color matrix right before applying OETF. With HDR, we need to do transcoding and apply OOTF. And it's easier if we operate in XYZ color space. This patch essentially extends the pipeline with two matrices. After applying EOTF, input matrix will be applied to convert color into XYZ color space, and right before applying OETF, a combination of output transform matrix and color matrix will be applied to convert the color from XYZ color space to destination color space. Minor: Previously, if wide color gamut is supported and the output is sRGB, we failed to apply color matrix. This patch also fixes this issue by taking it into account under wide color gamut platform. BUG: 73825729 Test: build, flash Change-Id: I09af39375980a42bd84f387229d54e070f634519
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions