From 64124b75764cf82c0bb92c5ea528a67d77d4a824 Mon Sep 17 00:00:00 2001 From: junjiez Date: Thu, 18 Oct 2018 14:46:15 +0800 Subject: SnapdraongCamera:Fix stats visualizer Fix the inverted BG and BG stats by change the index of the data. Change-Id: I63d75a2b76c49a0b4cf74df7236a8fa77f9434f4 CRs-Fixed: 2334736 --- src/com/android/camera/CaptureModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 0b8646784..896d25a19 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -838,7 +838,7 @@ public class CaptureModule implements CameraModule, PhotoController, for (int wi = 0; wi < 10; wi++) { index = 10*(int)(el/64) + 48*10*hi + 48*10*10*(el%64) + wi; - bg_statsdata[480*(639-(int)(index/480))+(index%480)] = Color.argb(255, r, g, b); + bg_statsdata[index] = Color.argb(255, r, g, b); } } } @@ -877,7 +877,7 @@ public class CaptureModule implements CameraModule, PhotoController, for (int wi = 0; wi < 10; wi++) { index = 10*(int)(el/64) + 48*10*hi + 48*10*10*(el%64) + wi; - be_statsdata[480*(639-(int)(index/480))+(index%480)] = Color.argb(255, r, g, b); + be_statsdata[index] = Color.argb(255, r, g, b); } } } -- cgit v1.2.3