summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorchenhg <chenhg@synaptics.com>2018-06-20 14:21:20 -0700
committerYin-Chia Yeh <yinchiayeh@google.com>2018-08-09 17:49:57 +0000
commit564cdae552b0048acfc563baac333dc2999ae498 (patch)
treee56d0287221537e1932f713ab63263a458193716 /camera
parentc07a66e169bc8b5a2bebe209c48bf27a553084ce (diff)
downloadplatform_hardware_interfaces-564cdae552b0048acfc563baac333dc2999ae498.tar.gz
platform_hardware_interfaces-564cdae552b0048acfc563baac333dc2999ae498.tar.bz2
platform_hardware_interfaces-564cdae552b0048acfc563baac333dc2999ae498.zip
Camera: provide thumbnail size for more jpeg aspect ratios.
BUG: 110462045 Test: Camera CTS Merged-In: I5f5500a5e4d02c3cbaa127cd9f222d241f047044 Change-Id: I5f5500a5e4d02c3cbaa127cd9f222d241f047044
Diffstat (limited to 'camera')
-rw-r--r--camera/device/3.4/default/ExternalCameraDevice.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/camera/device/3.4/default/ExternalCameraDevice.cpp b/camera/device/3.4/default/ExternalCameraDevice.cpp
index 167b62378b..e093822ad1 100644
--- a/camera/device/3.4/default/ExternalCameraDevice.cpp
+++ b/camera/device/3.4/default/ExternalCameraDevice.cpp
@@ -290,8 +290,14 @@ status_t ExternalCameraDevice::initDefaultCharsKeys(
UPDATE(ANDROID_HOT_PIXEL_AVAILABLE_HOT_PIXEL_MODES, &hotPixelMode, 1);
// android.jpeg
- // TODO: b/72261675 See if we can provide thumbnail size for all jpeg aspect ratios
- const int32_t jpegAvailableThumbnailSizes[] = {0, 0, 240, 180};
+ const int32_t jpegAvailableThumbnailSizes[] = {0, 0,
+ 176, 144,
+ 240, 144,
+ 256, 144,
+ 240, 160,
+ 256, 154,
+ 240, 240,
+ 320, 240};
UPDATE(ANDROID_JPEG_AVAILABLE_THUMBNAIL_SIZES, jpegAvailableThumbnailSizes,
ARRAY_SIZE(jpegAvailableThumbnailSizes));