Java Code Examples for android.hardware.camera2.CaptureRequest#CONTROL_MODE_USE_SCENE_MODE
The following examples show how to use
android.hardware.camera2.CaptureRequest#CONTROL_MODE_USE_SCENE_MODE .
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: ControlModeSelector.java From Camera2 with Apache License 2.0 | 6 votes |
@Override public Integer get() { if (mSupportedHardwareLevel == SupportedHardwareLevel.LEGACY) { if (mHdrSetting.get()) { return CaptureRequest.CONTROL_MODE_USE_SCENE_MODE; } } if (mFaceDetectMode.get() == FaceDetectMode.FULL || mFaceDetectMode.get() == FaceDetectMode.SIMPLE) { return CaptureRequest.CONTROL_MODE_USE_SCENE_MODE; } return CaptureRequest.CONTROL_MODE_AUTO; }
Example 2
Source File: CameraInfo.java From MobileInfo with Apache License 2.0 | 5 votes |
private static String getAvailableModes(int availableModes) { switch (availableModes) { case CaptureRequest.CONTROL_MODE_AUTO: return "AUTO"; case CaptureRequest.CONTROL_MODE_OFF: return "OFF"; case CaptureRequest.CONTROL_MODE_OFF_KEEP_STATE: return "OFF_KEEP_STATE"; case CaptureRequest.CONTROL_MODE_USE_SCENE_MODE: return "MODE_USE_SCENE_MODE"; default: return UNKNOWN + "-" + availableModes; } }