Revert "Make a larger jpeg image size caputred by Camera HAL3"

Test: run CtsCameraTestCases

This reverts commit bc4a84a3979c3f3d6130923169917fd240345a99.

Change-Id: I29282b6e3444ce60e57ce8a0b217b452e5f7613b
Merged-In: I29282b6e3444ce60e57ce8a0b217b452e5f7613b
diff --git a/camera/fake-pipeline2/Sensor.cpp b/camera/fake-pipeline2/Sensor.cpp
index 67aa1a6..6d52ff5 100644
--- a/camera/fake-pipeline2/Sensor.cpp
+++ b/camera/fake-pipeline2/Sensor.cpp
@@ -450,9 +450,9 @@
             }
             lastX = x;
             // TODO: Perfect demosaicing is a cheat
-            rCount = (pixel[Scene::R]+(outX+outY)%64) * scale64x;
-            gCount = (pixel[Scene::Gr]+(outX+outY)%64) * scale64x;
-            bCount = (pixel[Scene::B]+(outX+outY)%64) * scale64x;
+            rCount = pixel[Scene::R]  * scale64x;
+            gCount = pixel[Scene::Gr] * scale64x;
+            bCount = pixel[Scene::B]  * scale64x;
 
             *px++ = rCount < 255*64 ? rCount / 64 : 255;
             *px++ = gCount < 255*64 ? gCount / 64 : 255;
@@ -488,9 +488,9 @@
             }
             lastX = x;
            // TODO: Perfect demosaicing is a cheat
-            rCount = (pixel[Scene::R]+(outX+outY)%64)  * scale64x;
-            gCount = (pixel[Scene::Gr]+(outX+outY)%64) * scale64x;
-            bCount = (pixel[Scene::B]+(outX+outY)%64)  * scale64x;
+            rCount = pixel[Scene::R]  * scale64x;
+            gCount = pixel[Scene::Gr] * scale64x;
+            bCount = pixel[Scene::B]  * scale64x;
 
             *px++ = rCount < 255*64 ? rCount / 64 : 255;
             *px++ = gCount < 255*64 ? gCount / 64 : 255;
@@ -541,14 +541,11 @@
                 }
             }
             lastX = x;
-            //Slightly different color for the same Scene, result in larger
-            //jpeg image size requried by CTS test
-            //android.provider.cts.MediaStoreUiTest#testImageCapture
-            rCount = (pixel[Scene::R]+(outX+outY)%64)  * scale64x;
+            rCount = pixel[Scene::R]  * scale64x;
             rCount = rCount < saturationPoint ? rCount : saturationPoint;
-            gCount = (pixel[Scene::Gr]+(outX+outY)%64) * scale64x;
+            gCount = pixel[Scene::Gr] * scale64x;
             gCount = gCount < saturationPoint ? gCount : saturationPoint;
-            bCount = (pixel[Scene::B]+(outX+outY)%64)  * scale64x;
+            bCount = pixel[Scene::B]  * scale64x;
             bCount = bCount < saturationPoint ? bCount : saturationPoint;
             *pxY++ = (rgbToY[0] * rCount + rgbToY[1] * gCount + rgbToY[2] * bCount);
             if (outY % 2 == 0 && outX % 2 == 0) {