hardware: samsung_slsi: libcamera2: Enable 3DNR
authorHyeonmyeong Choi <hyeon.choi@samsung.com>
Fri, 5 Oct 2012 04:10:21 +0000 (13:10 +0900)
committerAlex Ray <aray@google.com>
Sun, 7 Oct 2012 19:57:08 +0000 (12:57 -0700)
This patch enable 3DNR for video stabilization.

Bug: 7290340
Change-Id: Ib9ced603c8e65bf517684a01817a3fe6d336f213
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
libcamera2/ExynosCameraHWInterface2.cpp

index 4ed5a275f8f37c2a78fe3e63bcbd2b1c7af5c6b4..cf347416068528fd966d161f3ebe809f753b7a57 100644 (file)
@@ -708,9 +708,11 @@ void    RequestManager::UpdateIspParameters(struct camera2_shot_ext *shot_ext, i
     if (request_shot->shot.ctl.aa.videoStabilizationMode) {
         m_vdisBubbleEn = true;
         shot_ext->dis_bypass = 0;
+        shot_ext->dnr_bypass = 0;
     } else {
         m_vdisBubbleEn = false;
         shot_ext->dis_bypass = 1;
+        shot_ext->dnr_bypass = 1;
     }
 
     shot_ext->shot.ctl.aa.afTrigger = 0;
@@ -3411,12 +3413,13 @@ void ExynosCameraHWInterface2::m_sensorThreadFunc(SignalDrivenThread * self)
             if (m_ctlInfo.flash.m_flashEnableFlg)
                 m_preCaptureListenerISP(shot_ext);
 
-            ALOGV("### Isp DQbuf done(%d) count (%d), SCP(%d) SCC(%d) dis_bypass(%d) shot_size(%d)",
+            ALOGV("### Isp DQbuf done(%d) count (%d), SCP(%d) SCC(%d) dis_bypass(%d) dnr_bypass(%d) shot_size(%d)",
                 index,
                 shot_ext->shot.ctl.request.frameCount,
                 shot_ext->request_scp,
                 shot_ext->request_scc,
-                shot_ext->dis_bypass, sizeof(camera2_shot));
+                shot_ext->dis_bypass,
+                shot_ext->dnr_bypass, sizeof(camera2_shot));
 
             ALOGV("(%s): DM aa(%d) aemode(%d) awb(%d) afmode(%d)", __FUNCTION__,
                 (int)(shot_ext->shot.dm.aa.mode), (int)(shot_ext->shot.dm.aa.aeMode),