Example usage for android.hardware.camera2 CameraCharacteristics CONTROL_MAX_REGIONS_AF

List of usage examples for android.hardware.camera2 CameraCharacteristics CONTROL_MAX_REGIONS_AF

Introduction

In this page you can find the example usage for android.hardware.camera2 CameraCharacteristics CONTROL_MAX_REGIONS_AF.

Prototype

Key CONTROL_MAX_REGIONS_AF

To view the source code for android.hardware.camera2 CameraCharacteristics CONTROL_MAX_REGIONS_AF.

Click Source Link

Document

The maximum number of metering regions that can be used by the auto-focus (AF) routine.

This corresponds to the the maximum allowed number of elements in CaptureRequest#CONTROL_AF_REGIONS android.control.afRegions .

Range of valid values:
Value will be >= 0.

Usage

From source file:com.dastanapps.camera2.view.Cam2AutoFitTextureView.java

private boolean isMeteringAreaAFSupported() {
    return mCharacteristics.get(CameraCharacteristics.CONTROL_MAX_REGIONS_AF) >= 1;
}