hardware: samsung_slsi: libcamera2: fix thumbnail size bug
1. default thumbnail size is 160*120
2. thumbnail size is decided from metadata
Change-Id: Iac6faec295f8df0fc55a400431596077381807b4
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
diff --git a/libcamera2/ExynosCamera2.cpp b/libcamera2/ExynosCamera2.cpp
index 554dfef..dcf937e 100644
--- a/libcamera2/ExynosCamera2.cpp
+++ b/libcamera2/ExynosCamera2.cpp
@@ -411,8 +411,9 @@
static const int32_t jpegThumbnailSizes[] = {
160, 120,
- 320, 240,
- 640, 480
+ 160, 160,
+ 160, 90,
+ 144, 96
};
ADD_OR_SIZE(ANDROID_JPEG_AVAILABLE_THUMBNAIL_SIZES,
@@ -733,7 +734,7 @@
ADD_OR_SIZE(ANDROID_JPEG_QUALITY, &jpegQuality, 1);
static const int32_t thumbnailSize[2] = {
- 640, 480
+ 160, 120
};
ADD_OR_SIZE(ANDROID_JPEG_THUMBNAIL_SIZE, thumbnailSize, 2);