From 564cdae552b0048acfc563baac333dc2999ae498 Mon Sep 17 00:00:00 2001 From: chenhg Date: Wed, 20 Jun 2018 14:21:20 -0700 Subject: [PATCH] Camera: provide thumbnail size for more jpeg aspect ratios. BUG: 110462045 Test: Camera CTS Merged-In: I5f5500a5e4d02c3cbaa127cd9f222d241f047044 Change-Id: I5f5500a5e4d02c3cbaa127cd9f222d241f047044 --- camera/device/3.4/default/ExternalCameraDevice.cpp | 10 ++++++++-- 1 file 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));