diff options
author | Ruben Brunk <rubenbrunk@google.com> | 2015-10-14 17:46:52 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2015-10-17 06:55:15 +0000 |
commit | c03443b23de0b474080168d892cd685283c3285b (patch) | |
tree | 568f576a842bf3a3815d92c4de288a5eae518a8d /core | |
parent | b9a73d2ce34b35684a282c8521d65f52fea1197a (diff) | |
download | frameworks_base-c03443b23de0b474080168d892cd685283c3285b.zip frameworks_base-c03443b23de0b474080168d892cd685283c3285b.tar.gz frameworks_base-c03443b23de0b474080168d892cd685283c3285b.tar.bz2 |
Fix lens shading map origin calculation.
Bug: 24816235
Change-Id: Id4609f3349f86c811cbc3d5e1839f880da926486
Diffstat (limited to 'core')
-rw-r--r-- | core/jni/android_hardware_camera2_DngCreator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/jni/android_hardware_camera2_DngCreator.cpp b/core/jni/android_hardware_camera2_DngCreator.cpp index 8b69bbd..4faea18 100644 --- a/core/jni/android_hardware_camera2_DngCreator.cpp +++ b/core/jni/android_hardware_camera2_DngCreator.cpp @@ -1660,10 +1660,11 @@ static sp<TiffWriter> DngCreator_setup(JNIEnv* env, jobject thiz, uint32_t image uint32_t width = static_cast<uint32_t>(entry.data.i32[2]); uint32_t height = static_cast<uint32_t>(entry.data.i32[3]); if (entry2.count > 0 && entry2.count == lsmWidth * lsmHeight * 4) { + // GainMap rectangle is relative to the active area origin. err = builder.addGainMapsForMetadata(lsmWidth, lsmHeight, - ymin, - xmin, + 0, + 0, height, width, opcodeCfaLayout, |