diff options
author | linpeter <linpeter@google.com> | 2019-03-14 15:26:08 +0800 |
---|---|---|
committer | Peter Lin <linpeter@google.com> | 2019-04-08 04:06:01 +0000 |
commit | 729e1071df20e964d3bf310134e887ecddf084d2 (patch) | |
tree | 1cae3bb6b014a3f6da8e2a29b1a66bfb38df027d /libqservice | |
parent | 57ae6067fa315aa05fb3abf019a9e6ca8d509d19 (diff) | |
download | display-729e1071df20e964d3bf310134e887ecddf084d2.tar.gz |
hwc2: Add color compensation feature for adaptive color mode
Using transfer matrix to do color compensation for adaptive color mode.
Feature provides white compensation and saturation compensation. It
configured by property vendor.display.adaptive_white_coefficient and
vendor.display.adaptive_saturation_parameter.
In addition, white compentation needs device calibraiton data
(persist/display/calibrated_rgb) to calulate compensated value.
And it has interface command to enable/disable.
adb shell vndservice call display.qservice 201 i32 0 i32 1
Bug: 121231574
Bug: 116282483
Bug: 123483411
Test: Switch mode test and check dumpsys information
(Need WhiteCompensation, Need SaturationCompensation,
current transform)
Change-Id: I5e1aabc31ffdd25172049f745ea4c74b7db02454
Diffstat (limited to 'libqservice')
-rw-r--r-- | libqservice/IQService.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libqservice/IQService.h b/libqservice/IQService.h index 52d72e96..686b2441 100644 --- a/libqservice/IQService.h +++ b/libqservice/IQService.h @@ -82,6 +82,7 @@ public: // Start custom transactions from 200 SET_COLOR_SAMPLING_ENABLED = 200, // Toggle the collection of display color stats + SET_WHITE_COMPENSATION = 201, // Enable/disable white point compensation COMMAND_LIST_END = 400, }; |