Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca110319 authored by Yin-Chia Yeh's avatar Yin-Chia Yeh Committed by android-build-merger
Browse files

Merge "Camera: fix off by one error" into pi-dev am: 4003570f

am: 55321dbd

Change-Id: Ie21a397348d8eef4f7be7b14a2aa9f214ddd6b61
parents e4286897 55321dbd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1787,8 +1787,8 @@ static sp<TiffWriter> DngCreator_setup(JNIEnv* env, jobject thiz, uint32_t image
                    results.find(ANDROID_LENS_DISTORTION);
            if (entry3.count == 5) {
                gotDistortion = true;
                float m_x = std::fmaxf(preWidth - cx, cx);
                float m_y = std::fmaxf(preHeight - cy, cy);
                float m_x = std::fmaxf(preWidth-1 - cx, cx);
                float m_y = std::fmaxf(preHeight-1 - cy, cy);
                float m_sq = m_x*m_x + m_y*m_y;
                float m = sqrtf(m_sq); // distance to farthest corner from optical center
                float f_sq = f * f;