hardware: samsung_slsi: libcamera2: Preserve SCC info on res change.

Preserve ScalerC buffer information on preview stream size change
for the consistency with camera service.

Change-Id: Iad063164598191bcf4c7e26266e2e1f26679560e
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
diff --git a/libcamera2/ExynosCameraHWInterface2.h b/libcamera2/ExynosCameraHWInterface2.h
index c105e3f..b69a4dc 100644
--- a/libcamera2/ExynosCameraHWInterface2.h
+++ b/libcamera2/ExynosCameraHWInterface2.h
@@ -219,7 +219,8 @@
     REGISTERED,
     REQUESTED,
     CAPTURED,
-    METADONE
+    METADONE,
+    COMPLETED
 } request_entry_status_t;
 
 typedef struct request_manager_entry {
@@ -304,11 +305,12 @@
     int     FindEntryIndexByFrameCnt(int frameCnt);
     void    Dump(void);
     int     GetNextIndex(int index);
+    int     GetPrevIndex(int index);
     void    SetDefaultParameters(int cropX);
     void    SetInitialSkip(int count);
     int     GetSkipCnt();
-    void    SetFrameIndex(int index);
-    int    GetFrameIndex();
+    void    SetCompleted(int index);
+    int     GetCompletedIndex();
     void  pushSensorQ(int index);
     int popSensorQ();
     void releaseSensorQ();
@@ -661,6 +663,7 @@
 
     mutable Mutex                       m_qbufLock;
 
+    bool                                m_scpForceSuspended;
     int                                 m_afState;
     int                                 m_afTriggerId;
     enum aa_afmode                      m_afMode;