OSDN Git Service

Increase the default JPG buffer size.
authorPaul Rohde <codelogic@google.com>
Fri, 15 May 2015 22:30:13 +0000 (15:30 -0700)
committerPaul Rohde <codelogic@google.com>
Fri, 15 May 2015 22:30:13 +0000 (15:30 -0700)
BUG: 21162720
Change-Id: Ie9d634533778c254a000da92f0af2948d814b1dd

src/com/android/camera/processing/imagebackend/TaskCompressImageToJpeg.java

index 118cfed..2e5976c 100644 (file)
@@ -59,7 +59,7 @@ public class TaskCompressImageToJpeg extends TaskJpegEncode {
      *  and is a safe lower bound for this value to use to reduce the memory
      *  footprint for encoding the final jpg.
      */
-    private static final int MINIMUM_EXPECTED_JPG_COMPRESSION_FACTOR = 5;
+    private static final int MINIMUM_EXPECTED_JPG_COMPRESSION_FACTOR = 2;
     private final LruResourcePool<Integer, ByteBuffer> mByteBufferDirectPool;
 
     /**