Java Code Examples for android.hardware.camera2.CaptureResult#LENS_STATE_STATIONARY
The following examples show how to use
android.hardware.camera2.CaptureResult#LENS_STATE_STATIONARY .
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: AcceptableZslImageFilter.java From Camera2 with Apache License 2.0 | 6 votes |
private boolean isLensStationary(TotalCaptureResultProxy metadata) { Integer lensState = metadata.get(CaptureResult.LENS_STATE); if (lensState == null) { return true; } else { switch (lensState) { case CaptureResult.LENS_STATE_STATIONARY: return true; default: return false; } } }
Example 2
Source File: AutoFocusHelper.java From Camera2 with Apache License 2.0 | 5 votes |
/** * Utility function: converts CaptureResult.LENS_STATE to String. */ private static String lensStateToString(int lensState) { switch (lensState) { case CaptureResult.LENS_STATE_MOVING: return "moving"; case CaptureResult.LENS_STATE_STATIONARY: return "stationary"; default: return "unknown"; } }