This is the 7th day of my participation in the November Gwen Challenge. Check out the details: The last Gwen Challenge 2021

A, CaptureRequest

A CaptureRequest represents a captured request. You can create different capture requests and configure different capture attributes to handle different scenarios. Such as: focus mode, exposure mode, preview resolution, preview target.

2. Obtain an instance

Get a CaptureRequest.Builder object from the createCaptureRequest() method of the CameraDevice object, Finally, a CaptureRequest instance can be obtained through the Build () method of the CaptureRequest.Builder object.

Inner class

1. CaptureRequest.Builder

Access to:

Using CameraDevice. CreateCaptureRequest (int) method to obtain a CaptureRequest. Builder object. The int value is:

TEMPLATE_PREVIEW: Used to create a camera preview request. The camera prioritizes high frame rates over high quality. Suitable for all camera equipment.

TEMPLATE_STILL_CAPTURE: Used to create a photo request. The camera guarantees high picture quality over high frame rate. Suitable for all camera equipment.

TEMPLATE_RECORD: Used to create a recording request. The camera uses standard frame rates and sets video quality. Suitable for all camera equipment.

methods

Void addTarget (Surface outputTarget) : Output surface, add a request. Note that the surface must be included in the CameraDevice createCaptureSession () method to set the output of the surface in the collection.

4. Common fields

Set () method for CaptureRequest.Builder.

CONTROL_AE_LOCK: Auto Exposure (AE) is now locked to its latest calculated value

CONTROL_AE_MODE: Mode required by the camera auto exposure program

CONTROL_AF_MODE: Whether auto focusing (AF) is currently enabled and in what mode

CONTROL_AF_REGIONS: List of metering regions used for autofocus

CONTROL_AWB_LOCK: Whether the automatic white balance (AWB) now locks to its latest calculated value

CONTROL_AWB_MODE: Automatic White Balance (AWB) Is the color conversion field currently set and what is its lighting target

CONTROL_MODE: entire 3A control program mode