OSDN Git Service

Make filmstrip grey squares less common.
authorPaul Rohde <codelogic@google.com>
Mon, 18 May 2015 18:27:40 +0000 (11:27 -0700)
committerPaul Rohde <codelogic@google.com>
Mon, 18 May 2015 18:27:42 +0000 (11:27 -0700)
Increase the encoding priority of the intermediate thumbnails
by changing the task priority to "Average". This causes the
intermediate thumbs to run on their own thread pool, after
the tiny thumbs are generated but allow them to not get
prempted by slow, full jpg encoding tasks.

Bug: 21169512

Change-Id: I2862acac724cf6302c896feeeb04702170cbf030

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

index b20b764..15be2df 100644 (file)
@@ -48,7 +48,7 @@ public class TaskPreviewChainedJpeg extends TaskConvertImageToRGBPreview {
             CaptureSession captureSession,
             Size targetSize,
             LruResourcePool<Integer, ByteBuffer> byteBufferResourcePool) {
-        super(image, executor, imageTaskManager, ProcessingPriority.SLOW, captureSession,
+        super(image, executor, imageTaskManager, ProcessingPriority.AVERAGE, captureSession,
                 targetSize , ThumbnailShape.MAINTAIN_ASPECT_NO_INSET);
         mByteBufferDirectPool = byteBufferResourcePool;
     }