尝试锁定对焦一次

master
Matthew 11 months ago
parent 82200e7f45
commit ff1584d4d3

@ -1271,12 +1271,18 @@ void NdkCamera::onCaptureCompleted(ACameraCaptureSession* session, ACaptureReque
if (afSupported && (m_params.autoFocus != 0))
{
if (mResult.afState == ACAMERA_CONTROL_AF_STATE_PASSIVE_FOCUSED)
{
// Will lock it
if (mResult.afLockSetted == 0)
{
uint8_t trig = ACAMERA_CONTROL_AF_TRIGGER_START;
status = ACaptureRequest_setEntry_u8(capture_request, ACAMERA_CONTROL_AF_TRIGGER, 1, &trig);
mResult.afLockSetted = 1;
XYLOG(XYLOG_SEVERITY_DEBUG, "Trigger AF AFS=%u", (uint32_t)mResult.afState);
}
}
}
unsigned long long ts = GetMicroTimeStamp();
#if 0

Loading…
Cancel
Save