summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilian Peev <epeev@mm-sol.com>2012-05-10 11:54:59 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-10 11:54:59 -0700
commit4c55711a5e94f6e2567d280b7eaa2abb587a9db4 (patch)
treed5657d4112c34e10477fa995bdc6ebca473f13d1
parentfcd047ef397de73e1fac42b9b906eb4ec0025dda (diff)
parent1e67b5ff2e8016d506cb29900b476435f03cb3a3 (diff)
downloadhardware_ti_omap4xxx-4c55711a5e94f6e2567d280b7eaa2abb587a9db4.zip
hardware_ti_omap4xxx-4c55711a5e94f6e2567d280b7eaa2abb587a9db4.tar.gz
hardware_ti_omap4xxx-4c55711a5e94f6e2567d280b7eaa2abb587a9db4.tar.bz2
am 1e67b5ff: CameraHal: Remove lock queries from \'mParams\' during \'getParameters()\'
* commit '1e67b5ff2e8016d506cb29900b476435f03cb3a3': CameraHal: Remove lock queries from 'mParams' during 'getParameters()'
-rwxr-xr-xcamera/OMXCameraAdapter/OMXCameraAdapter.cpp26
1 files changed, 16 insertions, 10 deletions
diff --git a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
index 180b441..11ecf0f 100755
--- a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
+++ b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
@@ -33,6 +33,8 @@
static int mDebugFps = 0;
static int mDebugFcs = 0;
+#undef TRUE
+#undef FALSE
#define HERE(Msg) {CAMHAL_LOGEB("--===line %d, %s===--\n", __LINE__, Msg);}
@@ -739,17 +741,21 @@ void OMXCameraAdapter::getParameters(CameraParameters& params)
}
//Populate current lock status
- if( (valstr = mParams.get(CameraParameters::KEY_AUTO_EXPOSURE_LOCK)) != NULL )
- {
- CAMHAL_LOGDB("Auto Exposure Lock get %s", mParams.get(CameraParameters::KEY_AUTO_EXPOSURE_LOCK));
- params.set(CameraParameters::KEY_AUTO_EXPOSURE_LOCK, valstr);
- }
+ if ( mParameters3A.ExposureLock ) {
+ params.set(CameraParameters::KEY_AUTO_EXPOSURE_LOCK,
+ CameraParameters::TRUE);
+ } else {
+ params.set(CameraParameters::KEY_AUTO_EXPOSURE_LOCK,
+ CameraParameters::FALSE);
+ }
- if( (valstr = mParams.get(CameraParameters::KEY_AUTO_WHITEBALANCE_LOCK)) != NULL )
- {
- CAMHAL_LOGDB("Auto WhiteBalance Lock get %s", mParams.get(CameraParameters::KEY_AUTO_WHITEBALANCE_LOCK));
- params.set(CameraParameters::KEY_AUTO_WHITEBALANCE_LOCK, valstr);
- }
+ if ( mParameters3A.WhiteBalanceLock ) {
+ params.set(CameraParameters::KEY_AUTO_WHITEBALANCE_LOCK,
+ CameraParameters::TRUE);
+ } else {
+ params.set(CameraParameters::KEY_AUTO_WHITEBALANCE_LOCK,
+ CameraParameters::FALSE);
+ }
LOG_FUNCTION_NAME_EXIT;
}