From: Paul Rohde Date: Mon, 18 May 2015 18:27:40 +0000 (-0700) Subject: Make filmstrip grey squares less common. X-Git-Tag: android-x86-6.0-r3~37^2~18 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=95a80b6b;p=android-x86%2Fpackages-apps-Camera2.git 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 --- 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; }