Camera3: Make maximum thumbnail size to be 4x3

This aligns with most max resolution picture size
aspect ratio. Also make the supported thumbnail
sizes to be in increasing order per spec.

Bug: 12101500
Change-Id: I5ed791f08225605b3a538039a05576da458b9109
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
This commit is contained in:
Shuzhen Wang 2014-03-04 01:47:40 -08:00 committed by Artem Borisov
parent ddd2a8cf02
commit 31a3b7eb46
1 changed files with 7 additions and 2 deletions

View File

@ -126,8 +126,13 @@ const QCamera3HardwareInterface::QCameraMap QCamera3HardwareInterface::FLASH_MOD
{ ANDROID_FLASH_MODE_TORCH, CAM_FLASH_MODE_TORCH }
};
const int32_t available_thumbnail_sizes[] = {512, 288, 480, 288, 256, 154, 432, 288,
320, 240, 176, 144, 0, 0};
const int32_t available_thumbnail_sizes[] = {0, 0,
176, 144,
320, 240,
432, 288,
480, 288,
512, 288,
512, 384};
camera3_device_ops_t QCamera3HardwareInterface::mCameraOps = {
.initialize = QCamera3HardwareInterface::initialize,