availableAfModes, sizeof(availableAfModes));
static const uint8_t availableVstabModes[] = {
- ANDROID_CONTROL_VIDEO_STABILIZATION_OFF
-#ifdef VDIS_ENABLE
- ,ANDROID_CONTROL_VIDEO_STABILIZATION_ON
-#endif
+ ANDROID_CONTROL_VIDEO_STABILIZATION_OFF,
+ ANDROID_CONTROL_VIDEO_STABILIZATION_ON
};
ADD_OR_SIZE(ANDROID_CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES,
availableVstabModes, sizeof(availableVstabModes));
ADD_OR_SIZE(ANDROID_COLOR_MODE, &colorMode, 1);
ADD_OR_SIZE(ANDROID_TONEMAP_MODE, &tonemapMode, 1);
ADD_OR_SIZE(ANDROID_EDGE_MODE, &edgeMode, 1);
-#ifndef VDIS_ENABLE
- vstabMode = ANDROID_CONTROL_VIDEO_STABILIZATION_OFF;
-#endif
ADD_OR_SIZE(ANDROID_CONTROL_VIDEO_STABILIZATION_MODE, &vstabMode, 1);
/** android.noise */
m_lastAeMode(0),
m_lastAaMode(0),
m_lastAwbMode(0),
-#ifdef VDIS_ENABLE
m_vdisBubbleEn(false),
-#endif
m_lastAeComp(0),
m_frameIndex(-1)
{
m_lastAeComp = (int)(shot_ext->shot.ctl.aa.aeExpCompensation);
}
-#ifdef VDIS_ENABLE
if (request_shot->shot.ctl.aa.videoStabilizationMode) {
m_vdisBubbleEn = true;
shot_ext->dis_bypass = 0;
m_vdisBubbleEn = false;
shot_ext->dis_bypass = 1;
}
-#endif
shot_ext->shot.ctl.aa.afTrigger = 0;
(int)(shot_ext->shot.ctl.aa.afMode));
}
-#ifdef VDIS_ENABLE
bool RequestManager::IsVdisEnable(void)
{
return m_vdisBubbleEn;
}
-#endif
int RequestManager::FindEntryIndexByFrameCnt(int frameCnt)
{
m_afState(HAL_AFSTATE_INACTIVE),
m_afMode(NO_CHANGE),
m_afMode2(NO_CHANGE),
-#ifdef VDIS_ENABLE
m_vdisBubbleCnt(0),
m_vdisDupFrame(0),
-#endif
m_IsAfModeUpdateRequired(false),
m_IsAfTriggerRequired(false),
m_IsAfLockRequired(false),
if (NULL == currentRequest) {
ALOGE("DEBUG(%s)(0x%x): dequeue_request returned NULL ", __FUNCTION__, currentSignal);
m_isRequestQueueNull = true;
-#ifdef VDIS_ENABLE
if (m_requestManager->IsVdisEnable())
m_vdisBubbleCnt = 1;
-#endif
}
else {
m_requestManager->RegisterRequest(currentRequest);
matchedFrameCnt = m_requestManager->FindFrameCnt(shot_ext);
}
-#ifdef VDIS_ENABLE
if (matchedFrameCnt == -1 && m_vdisBubbleCnt > 0) {
matchedFrameCnt = m_vdisDupFrame;
}
-#endif
if (matchedFrameCnt != -1) {
-#ifdef VDIS_ENABLE
if (m_vdisBubbleCnt == 0) {
frameTime = systemTime();
m_requestManager->RegisterTimestamp(matchedFrameCnt, &frameTime);
m_requestManager->UpdateIspParameters(shot_ext, matchedFrameCnt, &m_ctlInfo);
}
-#else
- frameTime = systemTime();
- m_requestManager->RegisterTimestamp(matchedFrameCnt, &frameTime);
- m_requestManager->UpdateIspParameters(shot_ext, matchedFrameCnt, &m_ctlInfo);
-#endif
if (m_afModeWaitingCnt != 0) {
ALOGV("### Af Trigger pulled, waiting for mode change cnt(%d) ", m_afModeWaitingCnt);
(int)(shot_ext->shot.ctl.aa.awbMode), (int)(shot_ext->shot.ctl.aa.afMode),
(int)(shot_ext->shot.ctl.aa.afTrigger));
-#ifdef VDIS_ENABLE
if (m_vdisBubbleCnt > 0 && m_vdisDupFrame == matchedFrameCnt) {
shot_ext->dis_bypass = 1;
shot_ext->request_scp = 0;
} else {
m_vdisDupFrame = matchedFrameCnt;
}
-#endif
uint32_t current_scp = shot_ext->request_scp;