From 95a80b6bd97d306cafc74fb96be00ea0eeba1842 Mon Sep 17 00:00:00 2001 From: Paul Rohde Date: Mon, 18 May 2015 11:27:40 -0700 Subject: [PATCH] Make filmstrip grey squares less common. 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 --- .../android/camera/processing/imagebackend/TaskPreviewChainedJpeg.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/camera/processing/imagebackend/TaskPreviewChainedJpeg.java b/src/com/android/camera/processing/imagebackend/TaskPreviewChainedJpeg.java index b20b764b2..15be2dfe7 100644 --- a/src/com/android/camera/processing/imagebackend/TaskPreviewChainedJpeg.java +++ b/src/com/android/camera/processing/imagebackend/TaskPreviewChainedJpeg.java @@ -48,7 +48,7 @@ public class TaskPreviewChainedJpeg extends TaskConvertImageToRGBPreview { CaptureSession captureSession, Size targetSize, LruResourcePool byteBufferResourcePool) { - super(image, executor, imageTaskManager, ProcessingPriority.SLOW, captureSession, + super(image, executor, imageTaskManager, ProcessingPriority.AVERAGE, captureSession, targetSize , ThumbnailShape.MAINTAIN_ASPECT_NO_INSET); mByteBufferDirectPool = byteBufferResourcePool; } -- 2.11.0