summaryrefslogtreecommitdiffstats
path: root/camera/OMXCameraAdapter
diff options
context:
space:
mode:
authorMilen Mitkov <mmitkov@mm-sol.com>2011-10-19 20:04:24 +0300
committerIliyan Malchev <malchev@google.com>2011-10-19 11:06:44 -0700
commit533be266db006d2c4e371a87be4d15fbf92abc17 (patch)
treef16c0b2f32dda0b81ebc00c9856b5bd21b8c8cf5 /camera/OMXCameraAdapter
parentc78fa2adcbe6ab50b751a45adde4483de528c5e6 (diff)
downloadhardware_ti_omap4xxx-533be266db006d2c4e371a87be4d15fbf92abc17.zip
hardware_ti_omap4xxx-533be266db006d2c4e371a87be4d15fbf92abc17.tar.gz
hardware_ti_omap4xxx-533be266db006d2c4e371a87be4d15fbf92abc17.tar.bz2
CameraHAL: Apply 3A settings offset for default values
Contrast, Sharpness and Saturation were configured with different values because of the required offsets. Change-Id: Ib84ef078b4d7fe671df116b56d29ea1c51dcd24c Signed-off-by: Milen Mitkov <mmitkov@mm-sol.com>
Diffstat (limited to 'camera/OMXCameraAdapter')
-rw-r--r--camera/OMXCameraAdapter/OMX3A.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/camera/OMXCameraAdapter/OMX3A.cpp b/camera/OMXCameraAdapter/OMX3A.cpp
index 16496f0..5078fd7 100644
--- a/camera/OMXCameraAdapter/OMX3A.cpp
+++ b/camera/OMXCameraAdapter/OMX3A.cpp
@@ -369,13 +369,13 @@ status_t OMXCameraAdapter::apply3ADefaults(Gen3A_settings &Gen3A)
Gen3A.Brightness = atoi(OMXCameraAdapter::DEFAULT_BRIGHTNESS);
ret |= setBrightness(Gen3A);
- Gen3A.Saturation = atoi(OMXCameraAdapter::DEFAULT_SATURATION);
+ Gen3A.Saturation = atoi(OMXCameraAdapter::DEFAULT_SATURATION) - SATURATION_OFFSET;
ret |= setSaturation(Gen3A);
- Gen3A.Sharpness = atoi(OMXCameraAdapter::DEFAULT_SHARPNESS);
+ Gen3A.Sharpness = atoi(OMXCameraAdapter::DEFAULT_SHARPNESS) - SHARPNESS_OFFSET;
ret |= setSharpness(Gen3A);
- Gen3A.Contrast = atoi(OMXCameraAdapter::DEFAULT_CONTRAST);
+ Gen3A.Contrast = atoi(OMXCameraAdapter::DEFAULT_CONTRAST) - CONTRAST_OFFSET;
ret |= setContrast(Gen3A);
Gen3A.WhiteBallance = getLUTvalue_HALtoOMX(OMXCameraAdapter::DEFAULT_WB, WBalLUT);