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

Commit 1ae05689 authored by Kevin DuBois's avatar Kevin DuBois Committed by android-build-merger
Browse files

Merge "SF: left/right flip luma calculation 90 deg rot" into qt-dev am: 947b4f83

am: 8412da0c

Change-Id: I2ba2deab45659161dcfbae1957b1bb5007edc72d
parents 358a2a1d 8412da0c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -280,6 +280,10 @@ float sampleArea(const uint32_t* data, int32_t width, int32_t height, int32_t st
        area.top = height - area.top;
        area.bottom = height - area.bottom;
        std::swap(area.top, area.bottom);

        area.left = width - area.left;
        area.right = width - area.right;
        std::swap(area.left, area.right);
    }

    std::array<int32_t, 256> brightnessBuckets = {};