diff options
author | Steve Kondik <steve@cyngn.com> | 2016-07-18 02:36:42 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-07-20 10:07:31 -0700 |
commit | 86cae92291f728d0eca637573ecbe6e0a53ccf1a (patch) | |
tree | 577cc188e1b9fc69b006135fbb480b1848a29e1d /cm/res | |
parent | 25d708141814289067587e504a0bb33a76c28a78 (diff) | |
download | vendor_cmsdk-86cae92291f728d0eca637573ecbe6e0a53ccf1a.zip vendor_cmsdk-86cae92291f728d0eca637573ecbe6e0a53ccf1a.tar.gz vendor_cmsdk-86cae92291f728d0eca637573ecbe6e0a53ccf1a.tar.bz2 |
livedisplay: Add support for direct color balance control
* We currently use the DisplayColorCalibration API for setting display
temperature which makes a lot of guesses about what temperature
the display really is. Some devices will support the new ColorBalance
API (via QDCM or other mechanism), which offers a calibrated
alternative. Add support for this, which will supercede DCC if
available.
* Additionally, define the available color temperature range as a
set of overlayable values so this can be specified per-device.
This range will be mapped to balance values using the power curve
calculations in the new MathUtils class.
Change-Id: I99608c09807b747d962680293c7b0cee8d669003
Diffstat (limited to 'cm/res')
-rw-r--r-- | cm/res/res/values/config.xml | 8 | ||||
-rw-r--r-- | cm/res/res/values/symbols.xml | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/cm/res/res/values/config.xml b/cm/res/res/values/config.xml index f08a75f..9592bf1 100644 --- a/cm/res/res/values/config.xml +++ b/cm/res/res/values/config.xml @@ -57,6 +57,14 @@ <integer name="config_outdoorAmbientLux">9000</integer> <integer name="config_defaultLiveDisplayMode">0</integer> + <!-- These values should map to the true min and max + that the backend is capable of adjusting to. This + is more important when using the ColorBalance mode, + as the discrete adjustment is interpolated between + this range (with config_dayColorTemperature at zero) --> + <integer name="config_minColorTemperature">1000</integer> + <integer name="config_maxColorTemperature">10000</integer> + <bool name="config_defaultAutoContrast">false</bool> <bool name="config_defaultAutoOutdoorMode">true</bool> <bool name="config_defaultColorEnhancement">true</bool> diff --git a/cm/res/res/values/symbols.xml b/cm/res/res/values/symbols.xml index 0e7143c..e79570b 100644 --- a/cm/res/res/values/symbols.xml +++ b/cm/res/res/values/symbols.xml @@ -73,6 +73,9 @@ <java-symbol type="integer" name="config_nightColorTemperature" /> <java-symbol type="integer" name="config_outdoorAmbientLux" /> <java-symbol type="integer" name="config_defaultLiveDisplayMode" /> + <java-symbol type="integer" name="config_minColorTemperature" /> + <java-symbol type="integer" name="config_maxColorTemperature" /> + <java-symbol type="bool" name="config_defaultAutoContrast" /> <java-symbol type="bool" name="config_defaultAutoOutdoorMode" /> <java-symbol type="bool" name="config_defaultColorEnhancement" /> |