mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Fix for issue #1201 Updated. Focus mode auto was replaced on continuous-video. Libraries were rebuilt.
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -312,17 +312,17 @@ CameraHandler* CameraHandler::initCameraConnect(const CameraCallback& callback,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(ANDROID_r2_2_0)
|
||||
const char* available_focus_modes = handler->params.get(CameraParameters::KEY_SUPPORTED_FOCUS_MODES);
|
||||
if (available_focus_modes != 0)
|
||||
{
|
||||
// find auto focus mode
|
||||
if (strstr(available_focus_modes, "auto") != NULL)
|
||||
// find continuous focus mode
|
||||
if (strstr(available_focus_modes, "continuous-picture") != NULL)
|
||||
{
|
||||
handler->params.set(CameraParameters::KEY_FOCUS_MODE, CameraParameters::FOCUS_MODE_AUTO);
|
||||
camera->autoFocus();
|
||||
handler->params.set(CameraParameters::KEY_FOCUS_MODE, CameraParameters::FOCUS_MODE_CONTINUOUS_VIDEO);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
status_t pdstatus;
|
||||
#if defined(ANDROID_r2_2_0)
|
||||
|
||||
Reference in New Issue
Block a user