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

Commit 462b8b39 authored by Ruben Brunk's avatar Ruben Brunk Committed by Android Git Automerger
Browse files

am 55dd957d: am 7a027807: am c03443b2: Fix lens shading map origin calculation.

* commit '55dd957d':
  Fix lens shading map origin calculation.
parents 4d655e7b 55dd957d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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,