diff options
author | Emilian Peev <epeev@mm-sol.com> | 2012-05-10 11:54:59 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-05-10 11:54:59 -0700 |
commit | 4c55711a5e94f6e2567d280b7eaa2abb587a9db4 (patch) | |
tree | d5657d4112c34e10477fa995bdc6ebca473f13d1 | |
parent | fcd047ef397de73e1fac42b9b906eb4ec0025dda (diff) | |
parent | 1e67b5ff2e8016d506cb29900b476435f03cb3a3 (diff) | |
download | hardware_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-x | camera/OMXCameraAdapter/OMXCameraAdapter.cpp | 26 |
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; } |