diff options
author | Tyler Luu <tluu@ti.com> | 2011-10-21 01:46:56 -0500 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-10-21 09:23:01 -0700 |
commit | 14b70386c375a24a2ec0ff627efa9bb90b00ecfe (patch) | |
tree | ef9106b059f34d609a243daf9dc83c0e10b35334 /camera | |
parent | bf3ea792d0dda2047d7876557514a9eb2c5e228a (diff) | |
download | hardware_ti_omap4xxx-14b70386c375a24a2ec0ff627efa9bb90b00ecfe.zip hardware_ti_omap4xxx-14b70386c375a24a2ec0ff627efa9bb90b00ecfe.tar.gz hardware_ti_omap4xxx-14b70386c375a24a2ec0ff627efa9bb90b00ecfe.tar.bz2 |
CameraHal: Fix for #testJpegThumbnailSize
Fixes b/5492679
If an image capture is taken before running this test, the test will
fail because the image capture settings were not being re-applied
to the image port. This patch updates all the capture settings
on first time init.
Change-Id: Iac8ace02b271b431a55736fbbeee29fadc4393bd
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'camera')
-rw-r--r-- | camera/OMXCameraAdapter/OMXCapture.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/camera/OMXCameraAdapter/OMXCapture.cpp b/camera/OMXCameraAdapter/OMXCapture.cpp index 0c31496..5a83169 100644 --- a/camera/OMXCameraAdapter/OMXCapture.cpp +++ b/camera/OMXCameraAdapter/OMXCapture.cpp @@ -264,6 +264,10 @@ status_t OMXCameraAdapter::setParametersCapture(const CameraParameters ¶ms, CAMHAL_LOGDB("Thumbnail Quality set %d", mThumbQuality); + if (mFirstTimeInit) { + mPendingCaptureSettings = ECapturesettingsAll; + } + if (mPendingCaptureSettings) { disableImagePort(); if ( NULL != mReleaseImageBuffersCallback ) { |