diff options
| author | Shuzhen Wang <shuzhenw@codeaurora.org> | 2014-03-04 01:47:40 -0800 |
|---|---|---|
| committer | Ali B <abittin@gmail.com> | 2018-06-17 19:19:52 +0300 |
| commit | 9ecf0d3ed720ae175d1dfefd03a9d20c9105ab5e (patch) | |
| tree | 6ddc6b2f36dfe5732a1a812c5fcc6e747f49bbf4 | |
| parent | 45c71859ea2a0fe174b8fa310d254120ab4f97b4 (diff) | |
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>
| -rwxr-xr-x | camera/QCamera2/HAL3/QCamera3HWI.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp index f97d1fc..6742084 100755 --- a/camera/QCamera2/HAL3/QCamera3HWI.cpp +++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp @@ -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, |
