Java Code Examples for android.hardware.camera2.CaptureRequest#CONTROL_AF_MODE_CONTINUOUS_PICTURE
The following examples show how to use
android.hardware.camera2.CaptureRequest#CONTROL_AF_MODE_CONTINUOUS_PICTURE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CameraInfo.java From MobileInfo with Apache License 2.0 | 6 votes |
private static String getAfAvailableModes(int afAvailableModes) { switch (afAvailableModes) { case CaptureRequest.CONTROL_AF_MODE_OFF: return "OFF"; case CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE: return "CONTINUOUS_PICTURE"; case CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_VIDEO: return "CONTINUOUS_VIDEO"; case CaptureRequest.CONTROL_AF_MODE_EDOF: return "EDOF"; case CaptureRequest.CONTROL_AF_MODE_MACRO: return "MACRO"; case CaptureRequest.CONTROL_AF_MODE_AUTO: return "AUTO"; default: return UNKNOWN + "-" + afAvailableModes; } }
Example 2
Source File: Camera2Handler.java From Augendiagnose with GNU General Public License v2.0 | 5 votes |
@Override public final void setFocusMode(@Nullable final FocusMode focusMode) { if (focusMode == null) { mCurrentFocusMode = CaptureRequest.CONTROL_AF_MODE_OFF; } else { switch (focusMode) { case CONTINUOUS: mCurrentFocusMode = CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE; break; case AUTO: mCurrentFocusMode = CaptureRequest.CONTROL_AF_MODE_AUTO; break; case MACRO: mCurrentFocusMode = CaptureRequest.CONTROL_AF_MODE_MACRO; break; case MANUAL: case FIXED: mCurrentFocusMode = CaptureRequest.CONTROL_AF_MODE_OFF; break; default: mCurrentFocusMode = CaptureRequest.CONTROL_AF_MODE_AUTO; break; } } reconfigureCamera(); }