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
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;
}