diff options
author | Emilian Peev <epeev@mm-sol.com> | 2012-01-04 08:51:27 +0200 |
---|---|---|
committer | Daniel Levin <dendy@ti.com> | 2012-07-25 08:55:38 -0500 |
commit | fff7b95bdf9f280754cc03cec6df19759899ed05 (patch) | |
tree | e1fe4523dad7a38a4110ffd2b65ac84906a32f07 /camera/OMXCameraAdapter/OMXAlgo.cpp | |
parent | 3b3270ebd0af3c3f22b4b6cfa9a7519df15f245c (diff) | |
download | hardware_ti_omap4-fff7b95bdf9f280754cc03cec6df19759899ed05.zip hardware_ti_omap4-fff7b95bdf9f280754cc03cec6df19759899ed05.tar.gz hardware_ti_omap4-fff7b95bdf9f280754cc03cec6df19759899ed05.tar.bz2 |
CameraHal: Reconfigure preview port for resolutions 720p and higher
Change-Id: Ie6616c57661947cf61c671d9e90417696b44dd3d
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Diffstat (limited to 'camera/OMXCameraAdapter/OMXAlgo.cpp')
-rw-r--r-- | camera/OMXCameraAdapter/OMXAlgo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/camera/OMXCameraAdapter/OMXAlgo.cpp b/camera/OMXCameraAdapter/OMXAlgo.cpp index 3c18d99..48ae72f 100644 --- a/camera/OMXCameraAdapter/OMXAlgo.cpp +++ b/camera/OMXCameraAdapter/OMXAlgo.cpp @@ -1068,10 +1068,11 @@ status_t OMXCameraAdapter::setSensorOrientation(unsigned int degree) } /* Set Temproary Port resolution. - * For resolution with height > 1008,resolution cannot be set without configuring orientation. + * For resolution with height >= 720, + * resolution cannot be set without configuring orientation. * So we first set a temp resolution. We have used VGA */ - if ( mPreviewData->mHeight >= 1008 ) { + if ( mPreviewData->mHeight >= 720 ) { tmpHeight = mPreviewData->mHeight; tmpWidth = mPreviewData->mWidth; mPreviewData->mWidth = 640; |