|
|
|
@ -451,7 +451,7 @@ int NdkCamera::open(const std::string& cameraId) {
|
|
|
|
|
status = ACaptureRequest_setEntry_u8(capture_request, ACAMERA_CONTROL_AF_MODE, 1, &afMode);
|
|
|
|
|
|
|
|
|
|
uint8_t trig = ACAMERA_CONTROL_AF_TRIGGER_START;
|
|
|
|
|
// status = ACaptureRequest_setEntry_u8(capture_request, ACAMERA_CONTROL_AF_TRIGGER, 1, &trig);
|
|
|
|
|
status = ACaptureRequest_setEntry_u8(capture_request, ACAMERA_CONTROL_AF_TRIGGER, 1, &trig);
|
|
|
|
|
m_imagesCaptured = (status == ACAMERA_OK) ? ~0 : 0;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -859,7 +859,7 @@ void NdkCamera::onCaptureCompleted(ACameraCaptureSession* session, ACaptureReque
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
unsigned long long ts = GetMicroTimeStamp();
|
|
|
|
|
if (ts - m_startTime >= 1000)
|
|
|
|
|
if (ts - m_startTime >= m_params.focusTimeout)
|
|
|
|
|
{
|
|
|
|
|
ALOGD("onCaptureCompleted Timeout for AutoFocus And will Capture AF_STATE=%u", (unsigned int)afState);
|
|
|
|
|
m_imagesCaptured = 0;
|
|
|
|
|