|
int | UnRegisterNativeHandle () |
|
int | allocate () |
|
int | setCaptureFormat (int format) |
|
int | startCapture (int width, int height, int frameRate) |
|
int | stopCapture () |
|
boolean | isTorchSupported () |
|
boolean | isFocusSupported () |
|
boolean | isExposureSupported () |
|
boolean | isZoomSupported () |
|
boolean | isAutoFaceFocusSupported () |
|
int | setZoom (float zoomValue) |
|
float | getMaxZoom () |
|
int | setTorchMode (boolean isTorchOn) |
|
int | setFocus (float valX, float valY, boolean inPreview) |
|
int | setExposure (float valX, float valY, boolean inPreview) |
|
int | setAutoFaceFocus (boolean enable) |
|
void | deallocate () |
|
abstract int | allocate () |
|
abstract int | setCaptureFormat (int format) |
|
abstract int | startCapture (int width, int height, int frameRate) |
|
abstract int | stopCapture () |
|
abstract boolean | isTorchSupported () |
|
abstract boolean | isFocusSupported () |
|
abstract boolean | isZoomSupported () |
|
abstract boolean | isAutoFaceFocusSupported () |
|
abstract int | setZoom (float zoomValue) |
|
abstract float | getMaxZoom () |
|
abstract int | setTorchMode (boolean isTorchOn) |
|
abstract int | setFocus (float x, float y, boolean inPreview) |
|
abstract int | setAutoFaceFocus (boolean enable) |
|
abstract boolean | isExposureSupported () |
|
abstract int | setExposure (float x, float y, boolean inPreview) |
|
abstract int | UnRegisterNativeHandle () |
|
abstract void | deallocate () |
|
native void | ProvideCameraFrame (byte[] data, int length, long nativeVideoCaptureDeviceAndroid) |
|
native void | ProvideCameraTexture (byte[] data, int textureID, long nativeVideoCaptureDeviceAndroid) |
|
native boolean | isAutoFaceFocusEnabled (long nativeVideoCaptureDeviceAndroid) |
|
native void | NotifyCameraFocusAreaChanged (float x, float y, float width, float height, long nativeVideoCaptureDeviceAndroid) |
|
native void | NotifyCameraExposureAreaChanged (float x, float y, float width, float height, long nativeVideoCaptureDeviceAndroid) |
|
native void | onCameraError (long nativeVideoCaptureDeviceAndroid, String message) |
|
This class implements Video Capture using Camera2 API, introduced in Android API 21 (L Release). Capture takes place in the current Looper, while pixel download takes place in another thread used by ImageReader. A number of static methods are provided to retrieve information on current system cameras and their capabilities, using android.hardware.camera2.CameraManager.