diff options
author | Akwasi Boateng <akwasi.boateng@ti.com> | 2011-10-06 16:06:30 +0300 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-12-01 10:40:03 -0800 |
commit | a2e35e983bc41971fbbd79779c270c25bac21faa (patch) | |
tree | 0875d3a58ff9ca98f3ea21dd8aa4a0e4ac8bac16 /camera | |
parent | ef3c5f377390ed049b9e1472461a7027241f0d60 (diff) | |
download | hardware_ti_omap4-a2e35e983bc41971fbbd79779c270c25bac21faa.zip hardware_ti_omap4-a2e35e983bc41971fbbd79779c270c25bac21faa.tar.gz hardware_ti_omap4-a2e35e983bc41971fbbd79779c270c25bac21faa.tar.bz2 |
CameraHAL: Fixes a small crop issue
- The offset variables 'mXOff' and 'mYOff' in
ANativeDisplayAdapter are always initialized to
zero. If the offset of the incoming preview buffer
is zero and the viewable preview resolution is
smaller than the actual preview buffer resolution,
then the crop will not get configured properly.
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Vicky Martinez-DeFrain <a0869710@ti.com>
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Change-Id: Ib321f17566d253dd65dc4c6d20bf748a9a4c614b
Diffstat (limited to 'camera')
-rw-r--r-- | camera/ANativeWindowDisplayAdapter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/camera/ANativeWindowDisplayAdapter.cpp b/camera/ANativeWindowDisplayAdapter.cpp index 3f13b52..a7b2e86 100644 --- a/camera/ANativeWindowDisplayAdapter.cpp +++ b/camera/ANativeWindowDisplayAdapter.cpp @@ -177,8 +177,8 @@ ANativeWindowDisplayAdapter::ANativeWindowDisplayAdapter():mDisplayThread(NULL), mFailedDQs = 0; mPaused = false; - mXOff = 0; - mYOff = 0; + mXOff = -1; + mYOff = -1; mFirstInit = false; mFD = -1; @@ -454,8 +454,8 @@ int ANativeWindowDisplayAdapter::disableDisplay(bool cancel_buffer) mDisplayEnabled = false; ///Reset the offset values - mXOff = 0; - mYOff = 0; + mXOff = -1; + mYOff = -1; ///Reset the frame width and height values mFrameWidth =0; |