diff options
author | pezhan <pezhan@codeaurora.org> | 2017-03-01 14:28:34 +0800 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2017-06-13 07:18:36 +0200 |
commit | c188ffee66e30718a792bfccb581a9e630a1c4f1 (patch) | |
tree | 6ae1d5b6146fc214243ede5e6af11b6000464bfd /jni/feature_mos | |
parent | d24a8ede150863e67f67bbd04279b138c7fde242 (diff) | |
download | android_packages_apps_Snap-c188ffee66e30718a792bfccb581a9e630a1c4f1.tar.gz android_packages_apps_Snap-c188ffee66e30718a792bfccb581a9e630a1c4f1.tar.bz2 android_packages_apps_Snap-c188ffee66e30718a792bfccb581a9e630a1c4f1.zip |
SnapdragonCamera: Fix Camera1 force close when refocusing the picture.
When the screen is PORTRAIT mode, we get the screen always height < width.
But we get the image always height < width.Under this circumstance,
the inSampleSize maybe incorrect , which will cause OOM when create bitmap.
Need to check the screen's orientation,and choose the correct width and
height to calculate the inSampleSize.
Change-Id: I11743c862ebdb9d35c4fc5de7bf40003c69b7219
CRs-Fixed: 2013250
Diffstat (limited to 'jni/feature_mos')
0 files changed, 0 insertions, 0 deletions