Camera: provide thumbnail size for more jpeg aspect ratios.

BUG: 110462045
Test: Camera CTS
Merged-In: I5f5500a5e4d02c3cbaa127cd9f222d241f047044
Change-Id: I5f5500a5e4d02c3cbaa127cd9f222d241f047044
This commit is contained in:
chenhg 2018-06-20 14:21:20 -07:00 committed by Yin-Chia Yeh
parent c07a66e169
commit 564cdae552

View file

@ -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));