hardware: samsung_slsi: libcamera2: Fixed JPEG related problems

1. Fixes crash after capturing multiple snapshots
2. Supports EXIF tags
3. Supports Thumbnails

Change-Id: I60fed4eb64ffbb2c49ceaafb44877d5e23da8562
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
diff --git a/libcamera2/ExynosCameraHWInterface2.h b/libcamera2/ExynosCameraHWInterface2.h
index 250a344..88ce630 100644
--- a/libcamera2/ExynosCameraHWInterface2.h
+++ b/libcamera2/ExynosCameraHWInterface2.h
@@ -51,6 +51,7 @@
 #include "ExynosExif.h"
 #include "csc.h"
 #include "ExynosCamera2.h"
+#include "cutils/properties.h"
 
 namespace android {
 
@@ -487,6 +488,9 @@
     void            SetAfStateForService(int newState);
     int             GetAfStateForService();
     exif_attribute_t    mExifInfo;
+    void            m_setExifFixedAttribute(void);
+    void            m_setExifChangedAttribute(exif_attribute_t *exifInfo, ExynosRect *rect,
+                         camera2_shot *currentEntry);
     void               *m_exynosPictureCSC;
     void               *m_exynosVideoCSC;
 
@@ -543,6 +547,7 @@
     bool                                m_IsAfTriggerRequired;
     bool                                m_IsAfLockRequired;
     int                                 m_serviceAfState;
+    struct camera2_shot                 m_jpegMetadata;
 };
 
 }; // namespace android