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/ExynosCameraHWInterface2.h b/libcamera2/ExynosCameraHWInterface2.h
index c469f11..4bdc251 100644
--- a/libcamera2/ExynosCameraHWInterface2.h
+++ b/libcamera2/ExynosCameraHWInterface2.h
@@ -113,6 +113,21 @@
ISS_SUB_END
};
+int SUPPORT_THUMBNAIL_REAR_SIZE[][2] =
+{
+ {160, 120},
+ {160, 90},
+ {144, 96}
+};
+
+int SUPPORT_THUMBNAIL_FRONT_SIZE[][2] =
+{
+ {160, 120},
+ {160, 160},
+ {160, 90},
+ {144, 96}
+};
+
typedef struct node_info {
int fd;
int width;
@@ -493,6 +508,7 @@
void initCameraMemory(ExynosBuffer *buf, int iMemoryNum);
void DumpInfoWithShot(struct camera2_shot_ext * shot_ext);
+ bool m_checkThumbnailSize(int w, int h);
bool yuv2Jpeg(ExynosBuffer *yuvBuf,
ExynosBuffer *jpegBuf,
ExynosRect *rect);
@@ -586,6 +602,8 @@
struct camera2_shot m_jpegMetadata;
int m_nightCaptureCnt;
int m_nightCaptureFrameCnt;
+ int m_thumbNailW;
+ int m_thumbNailH;
};
}; // namespace android