Lines Matching refs:mFovControlData
60 memset(&mFovControlData, 0, sizeof(fov_control_data_t)); in QCameraFOVControl()
115 pFovControl->mFovControlData.camWide = CAM_TYPE_MAIN; in create()
116 pFovControl->mFovControlData.camTele = CAM_TYPE_AUX; in create()
117 pFovControl->mFovControlData.camState = STATE_WIDE; in create()
119 pFovControl->mFovControlData.camWide = CAM_TYPE_AUX; in create()
120 pFovControl->mFovControlData.camTele = CAM_TYPE_MAIN; in create()
121 pFovControl->mFovControlData.camState = STATE_TELE; in create()
134 pFovControl->mFovControlData.lpmEnabled = false; in create()
136 pFovControl->mFovControlData.lpmEnabled = true; in create()
343 mFovControlData.zoomTransInitData.calibData = in consolidateCapabilities()
345 mFovControlData.zoomTransInitData.calibDataSize = in consolidateCapabilities()
366 if (mFovControlData.camcorderMode) { in resetVars()
378 mFovControlData.fallbackEnabled = FOVC_MAIN_CAM_FALLBACK_MECHANISM; in resetVars()
385 mFovControlData.zoomStableCount = 0; in resetVars()
386 mFovControlData.brightnessStableCount = 0; in resetVars()
387 mFovControlData.focusDistStableCount = 0; in resetVars()
388 mFovControlData.zoomDirection = ZOOM_STABLE; in resetVars()
389 mFovControlData.fallbackToWide = false; in resetVars()
391 mFovControlData.status3A.main.af.status = AF_INVALID; in resetVars()
392 mFovControlData.status3A.aux.af.status = AF_INVALID; in resetVars()
394 mFovControlData.afStatusMain = CAM_AF_STATE_INACTIVE; in resetVars()
395 mFovControlData.afStatusAux = CAM_AF_STATE_INACTIVE; in resetVars()
397 mFovControlData.wideCamStreaming = false; in resetVars()
398 mFovControlData.teleCamStreaming = false; in resetVars()
400 mFovControlData.spatialAlignResult.readyStatus = 0; in resetVars()
401 mFovControlData.spatialAlignResult.activeCameras = 0; in resetVars()
402 mFovControlData.spatialAlignResult.camMasterHint = 0; in resetVars()
403 mFovControlData.spatialAlignResult.shiftWide.shiftHorz = 0; in resetVars()
404 mFovControlData.spatialAlignResult.shiftWide.shiftVert = 0; in resetVars()
405 mFovControlData.spatialAlignResult.shiftTele.shiftHorz = 0; in resetVars()
406 mFovControlData.spatialAlignResult.shiftTele.shiftVert = 0; in resetVars()
409 mFovControlData.spatialAlignResult.readyStatus = 1; in resetVars()
440 mFovControlData.camcorderMode = false; in updateConfigSettings()
445 mFovControlData.camcorderMode = true; in updateConfigSettings()
453 mFovControlData.camMainWidthMargin = camMainStreamInfo.margins[i].widthMargins; in updateConfigSettings()
454 mFovControlData.camMainHeightMargin = camMainStreamInfo.margins[i].heightMargins; in updateConfigSettings()
458 mFovControlData.previewSize = camMainStreamInfo.stream_sizes[i]; in updateConfigSettings()
459 mFovControlData.ispOutSize = camMainStreamInfo.stream_sz_plus_margin[i]; in updateConfigSettings()
460 if (!mFovControlData.camcorderMode) { in updateConfigSettings()
461 mFovControlData.camMainWidthMargin = in updateConfigSettings()
463 mFovControlData.camMainHeightMargin = in updateConfigSettings()
476 mFovControlData.camAuxWidthMargin = camAuxStreamInfo.margins[i].widthMargins; in updateConfigSettings()
477 mFovControlData.camAuxHeightMargin = camAuxStreamInfo.margins[i].heightMargins; in updateConfigSettings()
481 mFovControlData.previewSize = camAuxStreamInfo.stream_sizes[i]; in updateConfigSettings()
482 if (!mFovControlData.camcorderMode) { in updateConfigSettings()
483 mFovControlData.camAuxWidthMargin = camAuxStreamInfo.margins[i].widthMargins; in updateConfigSettings()
484 mFovControlData.camAuxHeightMargin = camAuxStreamInfo.margins[i].heightMargins; in updateConfigSettings()
511 float zoom = findZoomRatio(mFovControlData.zoomWide) / in updateConfigSettings()
512 (float)mFovControlData.zoomRatioTable[0]; in updateConfigSettings()
513 if (zoom > mFovControlData.transitionParams.cutOverWideToTele) { in updateConfigSettings()
514 mFovControlResult.camMasterPreview = mFovControlData.camTele; in updateConfigSettings()
515 mFovControlResult.camMaster3A = mFovControlData.camTele; in updateConfigSettings()
516 mFovControlResult.activeCameras = (uint32_t)mFovControlData.camTele; in updateConfigSettings()
517 mFovControlData.camState = STATE_TELE; in updateConfigSettings()
520 mFovControlResult.camMasterPreview = mFovControlData.camWide; in updateConfigSettings()
521 mFovControlResult.camMaster3A = mFovControlData.camWide; in updateConfigSettings()
522 mFovControlResult.activeCameras = (uint32_t)mFovControlData.camWide; in updateConfigSettings()
523 mFovControlData.camState = STATE_WIDE; in updateConfigSettings()
539 mFovControlData.zoomTransInitData.previewDimension.width = in updateConfigSettings()
540 mFovControlData.previewSize.width; in updateConfigSettings()
541 mFovControlData.zoomTransInitData.previewDimension.height = in updateConfigSettings()
542 mFovControlData.previewSize.height; in updateConfigSettings()
543 mFovControlData.zoomTransInitData.ispOutDimension.width = in updateConfigSettings()
544 mFovControlData.ispOutSize.width; in updateConfigSettings()
545 mFovControlData.zoomTransInitData.ispOutDimension.height = in updateConfigSettings()
546 mFovControlData.ispOutSize.height; in updateConfigSettings()
547 mFovControlData.zoomTransInitData.sensorOutDimensionMain.width = in updateConfigSettings()
549 mFovControlData.zoomTransInitData.sensorOutDimensionMain.height = in updateConfigSettings()
551 mFovControlData.zoomTransInitData.sensorOutDimensionAux.width = in updateConfigSettings()
553 mFovControlData.zoomTransInitData.sensorOutDimensionAux.height = in updateConfigSettings()
555 mFovControlData.zoomTransInitData.zoomRatioTable = in updateConfigSettings()
556 mFovControlData.zoomRatioTable; in updateConfigSettings()
557 mFovControlData.zoomTransInitData.zoomRatioTableCount = in updateConfigSettings()
558 mFovControlData.zoomRatioTableCount; in updateConfigSettings()
559 mFovControlData.zoomTransInitData.mode = mFovControlData.camcorderMode ? in updateConfigSettings()
562 if(mZoomTranslator->init(mFovControlData.zoomTransInitData) != NO_ERROR) { in updateConfigSettings()
573 mFovControlData.configCompleted = true; in updateConfigSettings()
615 mFovControlData.zoomWide : mFovControlData.zoomTele; in translateInputParams()
619 mFovControlData.zoomTele : mFovControlData.zoomWide; in translateInputParams()
628 mFovControlData.zoomWide); in translateInputParams()
630 mFovControlData.zoomWide); in translateInputParams()
704 mFovControlData.spatialAlignResult.camMasterHint = mFovControlData.camWide; in processResultMetadata()
706 mFovControlData.spatialAlignResult.camMasterHint = mFovControlData.camTele; in processResultMetadata()
714 masterCam = mFovControlData.camWide; in processResultMetadata()
715 mFovControlData.spatialAlignResult.camMasterPreview = masterCam; in processResultMetadata()
717 masterCam = mFovControlData.camTele; in processResultMetadata()
718 mFovControlData.spatialAlignResult.camMasterPreview = masterCam; in processResultMetadata()
726 mFovControlData.spatialAlignResult.camMaster3A = mFovControlData.camWide; in processResultMetadata()
728 mFovControlData.spatialAlignResult.camMaster3A = mFovControlData.camTele; in processResultMetadata()
734 mFovControlData.spatialAlignResult.readyStatus = spatialAlignOutput->ready_status; in processResultMetadata()
750 float horzShiftFactor = (float)mFovControlData.previewSize.width / in processResultMetadata()
752 float vertShiftFactor = (float)mFovControlData.previewSize.height / in processResultMetadata()
755 mFovControlData.spatialAlignResult.shiftWide.shiftHorz = in processResultMetadata()
757 mFovControlData.spatialAlignResult.shiftWide.shiftVert = in processResultMetadata()
761 mFovControlData.spatialAlignResult.shiftWide.shiftHorz, in processResultMetadata()
762 mFovControlData.spatialAlignResult.shiftWide.shiftVert); in processResultMetadata()
769 float horzShiftFactor = (float)mFovControlData.previewSize.width / in processResultMetadata()
771 float vertShiftFactor = (float)mFovControlData.previewSize.height / in processResultMetadata()
774 mFovControlData.spatialAlignResult.shiftAfRoiWide.shiftHorz = in processResultMetadata()
776 mFovControlData.spatialAlignResult.shiftAfRoiWide.shiftVert = in processResultMetadata()
780 mFovControlData.spatialAlignResult.shiftAfRoiWide.shiftHorz, in processResultMetadata()
781 mFovControlData.spatialAlignResult.shiftAfRoiWide.shiftVert); in processResultMetadata()
795 float horzShiftFactor = (float)mFovControlData.previewSize.width / in processResultMetadata()
797 float vertShiftFactor = (float)mFovControlData.previewSize.height / in processResultMetadata()
800 mFovControlData.spatialAlignResult.shiftTele.shiftHorz = in processResultMetadata()
802 mFovControlData.spatialAlignResult.shiftTele.shiftVert = in processResultMetadata()
806 mFovControlData.spatialAlignResult.shiftTele.shiftHorz, in processResultMetadata()
807 mFovControlData.spatialAlignResult.shiftTele.shiftVert); in processResultMetadata()
814 float horzShiftFactor = (float)mFovControlData.previewSize.width / in processResultMetadata()
816 float vertShiftFactor = (float)mFovControlData.previewSize.height / in processResultMetadata()
819 mFovControlData.spatialAlignResult.shiftAfRoiTele.shiftHorz = in processResultMetadata()
821 mFovControlData.spatialAlignResult.shiftAfRoiTele.shiftVert = in processResultMetadata()
825 mFovControlData.spatialAlignResult.shiftAfRoiTele.shiftHorz, in processResultMetadata()
826 mFovControlData.spatialAlignResult.shiftAfRoiTele.shiftVert); in processResultMetadata()
833 mFovControlData.wideCamStreaming = true; in processResultMetadata()
838 mFovControlData.wideCamStreaming = false; in processResultMetadata()
841 mFovControlData.spatialAlignResult.activeCameras &= ~mFovControlData.camWide; in processResultMetadata()
843 mFovControlData.spatialAlignResult.activeCameras |= mFovControlData.camWide; in processResultMetadata()
849 mFovControlData.teleCamStreaming = true; in processResultMetadata()
854 mFovControlData.teleCamStreaming = false; in processResultMetadata()
857 mFovControlData.spatialAlignResult.activeCameras &= ~mFovControlData.camTele; in processResultMetadata()
859 mFovControlData.spatialAlignResult.activeCameras |= mFovControlData.camTele; in processResultMetadata()
868 mFovControlData.status3A.main.af.status = AF_VALID; in processResultMetadata()
870 mFovControlData.status3A.main.af.status = AF_INVALID; in processResultMetadata()
872 mFovControlData.afStatusMain = *afState; in processResultMetadata()
873 LOGD("AF state: Main cam: %d", mFovControlData.afStatusMain); in processResultMetadata()
877 mFovControlData.status3A.main.ae.luxIndex = *luxIndex; in processResultMetadata()
878 LOGD("Lux Index: Main cam: %f", mFovControlData.status3A.main.ae.luxIndex); in processResultMetadata()
882 mFovControlData.status3A.main.af.focusDistCm = (*objDist < 0) ? 0 : *objDist; in processResultMetadata()
883 LOGD("Obj Dist: Main cam: %d", mFovControlData.status3A.main.af.focusDistCm); in processResultMetadata()
889 mFovControlData.status3A.aux.af.status = AF_VALID; in processResultMetadata()
891 mFovControlData.status3A.aux.af.status = AF_INVALID; in processResultMetadata()
893 mFovControlData.afStatusAux = *afState; in processResultMetadata()
894 LOGD("AF state: Aux cam: %d", mFovControlData.afStatusAux); in processResultMetadata()
898 mFovControlData.status3A.aux.ae.luxIndex = *luxIndex; in processResultMetadata()
899 LOGD("Lux Index: Aux cam: %f", mFovControlData.status3A.aux.ae.luxIndex); in processResultMetadata()
903 mFovControlData.status3A.aux.af.focusDistCm = (*objDist < 0) ? 0 : *objDist; in processResultMetadata()
904 LOGD("Obj Dist: Aux cam: %d", mFovControlData.status3A.aux.af.focusDistCm); in processResultMetadata()
938 (mFovControlData.camState == STATE_TRANSITION) && in processResultMetadata()
940 if (((mFovControlData.afStatusMain == CAM_AF_STATE_FOCUSED_LOCKED) || in processResultMetadata()
941 (mFovControlData.afStatusMain == CAM_AF_STATE_NOT_FOCUSED_LOCKED)) && in processResultMetadata()
942 ((mFovControlData.afStatusAux == CAM_AF_STATE_FOCUSED_LOCKED) || in processResultMetadata()
943 (mFovControlData.afStatusAux == CAM_AF_STATE_NOT_FOCUSED_LOCKED))) { in processResultMetadata()
946 if ((mFovControlData.afStatusMain == CAM_AF_STATE_FOCUSED_LOCKED) && in processResultMetadata()
947 (mFovControlData.afStatusAux == CAM_AF_STATE_FOCUSED_LOCKED)) { in processResultMetadata()
956 if ((mFovControlData.afStatusMain != CAM_AF_STATE_FOCUSED_LOCKED) && in processResultMetadata()
957 (mFovControlData.afStatusMain != CAM_AF_STATE_NOT_FOCUSED_LOCKED)) { in processResultMetadata()
959 mFovControlData.afStatusMain); in processResultMetadata()
962 mFovControlData.afStatusAux); in processResultMetadata()
995 float zoom = findZoomRatio(mFovControlData.zoomWide) / (float)mFovControlData.zoomRatioTable[0]; in generateFovControlResult()
996 uint32_t zoomWide = mFovControlData.zoomWide; in generateFovControlResult()
997 uint32_t zoomWidePrev = mFovControlData.zoomWidePrev; in generateFovControlResult()
999 if (mFovControlData.configCompleted == false) { in generateFovControlResult()
1006 mFovControlData.zoomWidePrev = mFovControlData.zoomWide; in generateFovControlResult()
1012 currentBrightness = mFovControlData.status3A.main.ae.luxIndex; in generateFovControlResult()
1013 currentFocusDist = mFovControlData.status3A.main.af.focusDistCm; in generateFovControlResult()
1015 currentBrightness = mFovControlData.status3A.aux.ae.luxIndex; in generateFovControlResult()
1016 currentFocusDist = mFovControlData.status3A.aux.af.focusDistCm; in generateFovControlResult()
1019 float transitionLow = mFovControlData.transitionParams.transitionLow; in generateFovControlResult()
1020 float transitionHigh = mFovControlData.transitionParams.transitionHigh; in generateFovControlResult()
1021 float cutOverWideToTele = mFovControlData.transitionParams.cutOverWideToTele; in generateFovControlResult()
1022 float cutOverTeleToWide = mFovControlData.transitionParams.cutOverTeleToWide; in generateFovControlResult()
1024 cam_sync_type_t camWide = mFovControlData.camWide; in generateFovControlResult()
1025 cam_sync_type_t camTele = mFovControlData.camTele; in generateFovControlResult()
1031 mFovControlData.zoomDirection = ZOOM_STABLE; in generateFovControlResult()
1032 ++mFovControlData.zoomStableCount; in generateFovControlResult()
1034 mFovControlData.zoomDirection = ZOOM_IN; in generateFovControlResult()
1035 mFovControlData.zoomStableCount = 0; in generateFovControlResult()
1037 mFovControlData.zoomDirection = ZOOM_OUT; in generateFovControlResult()
1038 mFovControlData.zoomStableCount = 0; in generateFovControlResult()
1058 switch (mFovControlData.camState) { in generateFovControlResult()
1062 ++mFovControlData.brightnessStableCount; in generateFovControlResult()
1064 mFovControlData.brightnessStableCount = 0; in generateFovControlResult()
1069 ++mFovControlData.focusDistStableCount; in generateFovControlResult()
1071 mFovControlData.focusDistStableCount = 0; in generateFovControlResult()
1076 mFovControlData.fallbackToWide = false; in generateFovControlResult()
1086 (mFovControlData.zoomDirection == ZOOM_IN) && in generateFovControlResult()
1087 (mFovControlData.fallbackToWide == false))) { in generateFovControlResult()
1088 mFovControlData.camState = STATE_TRANSITION; in generateFovControlResult()
1093 (mFovControlData.brightnessStableCount >= in generateFovControlResult()
1095 (mFovControlData.focusDistStableCount >= in generateFovControlResult()
1098 mFovControlData.camState = STATE_TRANSITION; in generateFovControlResult()
1102 mFovControlData.fallbackToWide = false; in generateFovControlResult()
1105 mFovControlData.zoomStableCount = 0; in generateFovControlResult()
1112 mFovControlData.brightnessStableCount = 0; in generateFovControlResult()
1114 mFovControlData.focusDistStableCount = 0; in generateFovControlResult()
1132 if (mFovControlData.fallbackEnabled && mFovControlData.fallbackToWide) { in generateFovControlResult()
1134 mFovControlData.camState = STATE_WIDE; in generateFovControlResult()
1143 mFovControlData.camState = STATE_WIDE; in generateFovControlResult()
1148 mFovControlData.camState = STATE_TELE; in generateFovControlResult()
1150 } else if (mFovControlData.zoomStableCount >= in generateFovControlResult()
1154 mFovControlData.camState = STATE_WIDE; in generateFovControlResult()
1157 mFovControlData.camState = STATE_TELE; in generateFovControlResult()
1167 ++mFovControlData.brightnessStableCount; in generateFovControlResult()
1169 mFovControlData.brightnessStableCount = 0; in generateFovControlResult()
1174 ++mFovControlData.focusDistStableCount; in generateFovControlResult()
1176 mFovControlData.focusDistStableCount = 0; in generateFovControlResult()
1182 (mFovControlData.zoomDirection == ZOOM_OUT))) { in generateFovControlResult()
1183 mFovControlData.camState = STATE_TRANSITION; in generateFovControlResult()
1189 mFovControlData.fallbackEnabled) { in generateFovControlResult()
1191 if ((mFovControlData.brightnessStableCount >= in generateFovControlResult()
1193 (mFovControlData.focusDistStableCount >= in generateFovControlResult()
1195 mFovControlData.camState = STATE_TRANSITION; in generateFovControlResult()
1199 mFovControlData.zoomStableCount = 0; in generateFovControlResult()
1200 mFovControlData.fallbackToWide = true; in generateFovControlResult()
1208 if (mFovControlData.fallbackEnabled && mFovControlData.fallbackToWide) { in generateFovControlResult()
1215 LOGD("zoom direction: %d", (uint32_t)mFovControlData.zoomDirection); in generateFovControlResult()
1216 LOGD("zoomWide: %d, zoomTele: %d", zoomWide, mFovControlData.zoomTele); in generateFovControlResult()
1228 LOGD("transition state: %s", ((mFovControlData.camState == STATE_WIDE) ? "STATE_WIDE" : in generateFovControlResult()
1229 ((mFovControlData.camState == STATE_TELE) ? "STATE_TELE" : "STATE_TRANSITION" ))); in generateFovControlResult()
1290 cam_sync_type_t camWide = mFovControlData.camWide; in sacRequestedDualZone()
1291 cam_sync_type_t camTele = mFovControlData.camTele; in sacRequestedDualZone()
1295 if ((mFovControlData.spatialAlignResult.activeCameras == (camWide | camTele)) && in sacRequestedDualZone()
1296 (mFovControlData.lpmEnabled)) { in sacRequestedDualZone()
1320 float zoom = findZoomRatio(mFovControlData.zoomWide) / (float)mFovControlData.zoomRatioTable[0]; in canSwitchMasterTo()
1321 float cutOverWideToTele = mFovControlData.transitionParams.cutOverWideToTele; in canSwitchMasterTo()
1322 float cutOverTeleToWide = mFovControlData.transitionParams.cutOverTeleToWide; in canSwitchMasterTo()
1323 af_status afStatusAux = mFovControlData.status3A.aux.af.status; in canSwitchMasterTo()
1334 if (mFovControlData.availableSpatialAlignSolns & CAM_SPATIAL_ALIGN_OEM) { in canSwitchMasterTo()
1336 if (mFovControlData.wideCamStreaming && isSpatialAlignmentReady()) { in canSwitchMasterTo()
1342 if ((mFovControlData.fallbackEnabled && mFovControlData.fallbackToWide) || in canSwitchMasterTo()
1344 if (mFovControlData.wideCamStreaming) { in canSwitchMasterTo()
1350 if (mFovControlData.fallbackEnabled && mFovControlData.fallbackToWide) { in canSwitchMasterTo()
1353 } else if (mFovControlData.availableSpatialAlignSolns & CAM_SPATIAL_ALIGN_OEM) { in canSwitchMasterTo()
1356 if (mFovControlData.teleCamStreaming && in canSwitchMasterTo()
1361 } else if (mFovControlData.availableSpatialAlignSolns & CAM_SPATIAL_ALIGN_QTI) { in canSwitchMasterTo()
1401 cam_sync_type_t camWide = mFovControlData.camWide; in isSpatialAlignmentReady()
1402 cam_sync_type_t camTele = mFovControlData.camTele; in isSpatialAlignmentReady()
1404 if (mFovControlData.availableSpatialAlignSolns & CAM_SPATIAL_ALIGN_OEM) { in isSpatialAlignmentReady()
1406 uint8_t camMasterHint = mFovControlData.spatialAlignResult.camMasterHint; in isSpatialAlignmentReady()
1414 } else if (mFovControlData.availableSpatialAlignSolns & CAM_SPATIAL_ALIGN_QTI) { in isSpatialAlignmentReady()
1415 if (mFovControlData.spatialAlignResult.readyStatus) { in isSpatialAlignmentReady()
1499 mFovControlData.availableSpatialAlignSolns = in validateAndExtractParameters()
1506 mFovControlData.zoomRatioTable = capsMainCam->zoom_ratio_tbl; in validateAndExtractParameters()
1507 mFovControlData.zoomRatioTableCount = capsMainCam->zoom_ratio_tbl_cnt; in validateAndExtractParameters()
1557 mFovControlData.basicFovRatio = (fovWide / fovTele); in calculateBasicFovRatio()
1574 LOGD("BasicFovRatio : %f", mFovControlData.basicFovRatio); in calculateBasicFovRatio()
1600 ratioMarginWidth = (1.0 + (mFovControlData.camMainWidthMargin)) / in combineFovAdjustment()
1601 (1.0 + (mFovControlData.camAuxWidthMargin)); in combineFovAdjustment()
1602 ratioMarginHeight = (1.0 + (mFovControlData.camMainHeightMargin)) / in combineFovAdjustment()
1603 (1.0 + (mFovControlData.camAuxHeightMargin)); in combineFovAdjustment()
1608 mFovControlData.transitionParams.cutOverFactor = in combineFovAdjustment()
1609 (mFovControlData.basicFovRatio / adjustedRatio); in combineFovAdjustment()
1613 LOGD("Main cam margin for width : %f", mFovControlData.camMainWidthMargin); in combineFovAdjustment()
1614 LOGD("Main cam margin for height : %f", mFovControlData.camMainHeightMargin); in combineFovAdjustment()
1615 LOGD("Aux cam margin for width : %f", mFovControlData.camAuxWidthMargin); in combineFovAdjustment()
1616 LOGD("Aux cam margin for height : %f", mFovControlData.camAuxHeightMargin); in combineFovAdjustment()
1650 mFovControlData.transitionParams.cropRatio = mFovControlData.basicFovRatio; in calculateDualCamTransitionParams()
1652 mFovControlData.transitionParams.cutOverWideToTele = in calculateDualCamTransitionParams()
1653 mFovControlData.transitionParams.cutOverFactor + in calculateDualCamTransitionParams()
1654 (mFovControlConfig.percentMarginHysterisis / 100.0) * mFovControlData.basicFovRatio; in calculateDualCamTransitionParams()
1656 mFovControlData.transitionParams.cutOverTeleToWide = in calculateDualCamTransitionParams()
1657 mFovControlData.transitionParams.cutOverFactor; in calculateDualCamTransitionParams()
1659 mFovControlData.transitionParams.transitionHigh = in calculateDualCamTransitionParams()
1660 mFovControlData.transitionParams.cutOverWideToTele + in calculateDualCamTransitionParams()
1661 (percentMarginWide / 100.0) * mFovControlData.basicFovRatio; in calculateDualCamTransitionParams()
1663 mFovControlData.transitionParams.transitionLow = in calculateDualCamTransitionParams()
1664 mFovControlData.transitionParams.cutOverTeleToWide - in calculateDualCamTransitionParams()
1665 (percentMarginTele / 100.0) * mFovControlData.basicFovRatio; in calculateDualCamTransitionParams()
1671 mFovControlData.transitionParams.transitionHigh) { in calculateDualCamTransitionParams()
1672 mFovControlData.transitionParams.transitionHigh = in calculateDualCamTransitionParams()
1676 mFovControlData.transitionParams.transitionLow) { in calculateDualCamTransitionParams()
1677 mFovControlData.transitionParams.transitionLow = in calculateDualCamTransitionParams()
1688 LOGD("transition param: TransitionLow %f", mFovControlData.transitionParams.transitionLow); in calculateDualCamTransitionParams()
1689 LOGD("transition param: TeleToWide %f", mFovControlData.transitionParams.cutOverTeleToWide); in calculateDualCamTransitionParams()
1690 LOGD("transition param: WideToTele %f", mFovControlData.transitionParams.cutOverWideToTele); in calculateDualCamTransitionParams()
1691 LOGD("transition param: TransitionHigh %f", mFovControlData.transitionParams.transitionHigh); in calculateDualCamTransitionParams()
1711 for (uint32_t i = 0; i < mFovControlData.zoomRatioTableCount; ++i) { in findZoomValue()
1712 if (zoomRatio <= mFovControlData.zoomRatioTable[i]) { in findZoomValue()
1736 return mFovControlData.zoomRatioTable[zoom]; in findZoomRatio()
1759 zoomRatioTele = zoomRatioWide / mFovControlData.transitionParams.cutOverFactor; in readjustZoomForTele()
1784 zoomRatioWide = zoomRatioTele * mFovControlData.transitionParams.cutOverFactor; in readjustZoomForWide()
1815 mFovControlData.zoomWide = zoom; in convertUserZoomToWideAndTele()
1816 mFovControlData.zoomTele = readjustZoomForTele(mFovControlData.zoomWide); in convertUserZoomToWideAndTele()
1819 mFovControlData.zoomWide = zoomWide; in convertUserZoomToWideAndTele()
1820 mFovControlData.zoomTele = zoomTele; in convertUserZoomToWideAndTele()
1823 mFovControlData.zoomWide = zoom; in convertUserZoomToWideAndTele()
1824 mFovControlData.zoomTele = readjustZoomForTele(mFovControlData.zoomWide); in convertUserZoomToWideAndTele()
1855 float zoom = findZoomRatio(mFovControlData.zoomWide) / (float)mFovControlData.zoomRatioTable[0]; in translateFocusAreas()
1857 zoomWide = findZoomRatio(mFovControlData.zoomWide); in translateFocusAreas()
1858 zoomTele = findZoomRatio(mFovControlData.zoomTele); in translateFocusAreas()
1860 if (cam == mFovControlData.camWide) { in translateFocusAreas()
1863 fovRatio = (zoomTele / zoomWide) * mFovControlData.transitionParams.cropRatio; in translateFocusAreas()
1869 if (cam == mFovControlData.camWide) { in translateFocusAreas()
1870 shiftHorzAdjusted = mFovControlData.spatialAlignResult.shiftAfRoiWide.shiftHorz; in translateFocusAreas()
1871 shiftVertAdjusted = mFovControlData.spatialAlignResult.shiftAfRoiWide.shiftVert; in translateFocusAreas()
1873 shiftHorzAdjusted = (mFovControlData.transitionParams.cropRatio / zoom) * in translateFocusAreas()
1874 mFovControlData.spatialAlignResult.shiftAfRoiTele.shiftHorz; in translateFocusAreas()
1875 shiftVertAdjusted = (mFovControlData.transitionParams.cropRatio / zoom) * in translateFocusAreas()
1876 mFovControlData.spatialAlignResult.shiftAfRoiTele.shiftVert; in translateFocusAreas()
1894 if ((roiAfTrans.roi[i].left >= mFovControlData.previewSize.width) || in translateFocusAreas()
1895 (roiAfTrans.roi[i].top >= mFovControlData.previewSize.height) || in translateFocusAreas()
1896 (roiAfTrans.roi[i].width >= mFovControlData.previewSize.width) || in translateFocusAreas()
1897 (roiAfTrans.roi[i].height >= mFovControlData.previewSize.height)) { in translateFocusAreas()
1912 mFovControlData.previewSize.width) { in translateFocusAreas()
1914 mFovControlData.previewSize.width - roiAfTrans.roi[i].left; in translateFocusAreas()
1918 mFovControlData.previewSize.height) { in translateFocusAreas()
1920 mFovControlData.previewSize.height - roiAfTrans.roi[i].top; in translateFocusAreas()
1959 float zoom = findZoomRatio(mFovControlData.zoomWide) / (float)mFovControlData.zoomRatioTable[0]; in translateMeteringAreas()
1961 zoomWide = findZoomRatio(mFovControlData.zoomWide); in translateMeteringAreas()
1962 zoomTele = findZoomRatio(mFovControlData.zoomTele); in translateMeteringAreas()
1964 if (cam == mFovControlData.camWide) { in translateMeteringAreas()
1967 fovRatio = (zoomTele / zoomWide) * mFovControlData.transitionParams.cropRatio; in translateMeteringAreas()
1973 if (cam == mFovControlData.camWide) { in translateMeteringAreas()
1974 shiftHorzAdjusted = mFovControlData.spatialAlignResult.shiftAfRoiWide.shiftHorz; in translateMeteringAreas()
1975 shiftVertAdjusted = mFovControlData.spatialAlignResult.shiftAfRoiWide.shiftVert; in translateMeteringAreas()
1977 shiftHorzAdjusted = (mFovControlData.transitionParams.cropRatio / zoom) * in translateMeteringAreas()
1978 mFovControlData.spatialAlignResult.shiftAfRoiTele.shiftHorz; in translateMeteringAreas()
1979 shiftVertAdjusted = (mFovControlData.transitionParams.cropRatio / zoom) * in translateMeteringAreas()
1980 mFovControlData.spatialAlignResult.shiftAfRoiTele.shiftVert; in translateMeteringAreas()
1986 (mFovControlData.previewSize.width / 2)); in translateMeteringAreas()
1987 AuxRoiX = (mFovControlData.previewSize.width / 2) + AuxDiffRoiX; in translateMeteringAreas()
1990 (mFovControlData.previewSize.height / 2)); in translateMeteringAreas()
1991 AuxRoiY = (mFovControlData.previewSize.height / 2) + AuxDiffRoiY; in translateMeteringAreas()
2002 } else if ((AuxRoiX >= mFovControlData.previewSize.width) || in translateMeteringAreas()
2003 (AuxRoiY >= mFovControlData.previewSize.height)) { in translateMeteringAreas()
2005 if (AuxRoiX >= mFovControlData.previewSize.width) { in translateMeteringAreas()
2007 mFovControlData.previewSize.width - 1; in translateMeteringAreas()
2009 if (AuxRoiY >= mFovControlData.previewSize.height) { in translateMeteringAreas()
2011 mFovControlData.previewSize.height - 1; in translateMeteringAreas()
2047 if (cam == mFovControlData.camWide) { in translateRoiFD()
2048 shiftHorz = mFovControlData.spatialAlignResult.shiftWide.shiftHorz; in translateRoiFD()
2049 shiftVert = mFovControlData.spatialAlignResult.shiftWide.shiftVert; in translateRoiFD()
2051 shiftHorz = mFovControlData.spatialAlignResult.shiftTele.shiftHorz; in translateRoiFD()
2052 shiftVert = mFovControlData.spatialAlignResult.shiftTele.shiftVert; in translateRoiFD()
2063 (metaFDTranslated.faces[i].face_boundary.left >= mFovControlData.previewSize.width) || in translateRoiFD()
2065 (metaFDTranslated.faces[i].face_boundary.top >= mFovControlData.previewSize.height) || in translateRoiFD()
2068 mFovControlData.previewSize.width) || in translateRoiFD()
2071 mFovControlData.previewSize.height)) { in translateRoiFD()
2120 frameMargins.widthMargins = mFovControlData.camMainWidthMargin; in getFrameMargins()
2121 frameMargins.heightMargins = mFovControlData.camMainHeightMargin; in getFrameMargins()
2123 frameMargins.widthMargins = mFovControlData.camAuxWidthMargin; in getFrameMargins()
2124 frameMargins.heightMargins = mFovControlData.camAuxHeightMargin; in getFrameMargins()