diff options
author | Tyler Luu <tluu@ti.com> | 2011-10-20 15:54:27 -0500 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-10-20 19:37:16 -0700 |
commit | 0d984019d5d75188de222b6747f3325b55cec3c8 (patch) | |
tree | abf0a749f8c812339397c44c758bd8dd2863ac86 /camera/CameraHal.cpp | |
parent | f336397c1ca3006ec7630cd7f6147882fadd67eb (diff) | |
download | hardware_ti_omap4-0d984019d5d75188de222b6747f3325b55cec3c8.zip hardware_ti_omap4-0d984019d5d75188de222b6747f3325b55cec3c8.tar.gz hardware_ti_omap4-0d984019d5d75188de222b6747f3325b55cec3c8.tar.bz2 |
CameraHAL: WA for #testSceneMode
testSceneMode requires parameters to be updated properly before
starting preview. OMX Camera doesn't currently support this so
we are just going to keep a hard-coded LUT for the scene modes
for now.
Change-Id: I40c4492834d43c9328c87fd7aa4ea06fb1f1d90b
Signed-off-by: Tyler Luu <tluu@ti.com>
Diffstat (limited to 'camera/CameraHal.cpp')
-rw-r--r-- | camera/CameraHal.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/camera/CameraHal.cpp b/camera/CameraHal.cpp index 3610559..7be4931 100644 --- a/camera/CameraHal.cpp +++ b/camera/CameraHal.cpp @@ -721,6 +721,9 @@ int CameraHal::setParameters(const CameraParameters& params) if ((valstr = params.get(CameraParameters::KEY_SCENE_MODE)) != NULL) { if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_SCENE_MODES))) { CAMHAL_LOGDB("Scene mode set %s", valstr); + doesSetParameterNeedUpdate(valstr, + mParameters.get(CameraParameters::KEY_SCENE_MODE), + updateRequired); mParameters.set(CameraParameters::KEY_SCENE_MODE, valstr); } else { CAMHAL_LOGEB("ERROR: Invalid Scene mode = %s", valstr); |