|
|
@ -551,6 +551,8 @@ int NdkCamera::open(const std::string& cameraId) {
|
|
|
|
ACameraDevice_request_template templateId = ((afSupported && m_params.autoFocus) ||
|
|
|
|
ACameraDevice_request_template templateId = ((afSupported && m_params.autoFocus) ||
|
|
|
|
m_params.autoExposure) ? TEMPLATE_PREVIEW
|
|
|
|
m_params.autoExposure) ? TEMPLATE_PREVIEW
|
|
|
|
: TEMPLATE_STILL_CAPTURE;
|
|
|
|
: TEMPLATE_STILL_CAPTURE;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
templateId = TEMPLATE_STILL_CAPTURE;
|
|
|
|
status = ACameraDevice_createCaptureRequest(camera_device, templateId, &capture_request);
|
|
|
|
status = ACameraDevice_createCaptureRequest(camera_device, templateId, &capture_request);
|
|
|
|
|
|
|
|
|
|
|
|
int32_t fpsRange[2] = {1,10};
|
|
|
|
int32_t fpsRange[2] = {1,10};
|
|
|
|