This is the sixth day of my participation in the November Gwen Challenge. Check out the event details: The last Gwen Challenge 2021
A, CameraCharacteristics
CameraCharacteristics is a property class that describes the camera device and inherits from the CameraMetadata class. For a given camera, the attributes contained in it are fixed, which is known as static metadata.
Including: Exposure compensation
Auto Exposure/Auto Focus/Auto White Balance (AE/AF/AWB mode)
Automatic Exposure/Automatic White Balance Lock (AE/AWB Lock)
AF trigger
Precapture after effects trigger
Metering Regions
Flash trigger
Exposure time
ISO Sensitivity
Frame Duration
Lens focus distance
Color Correction Matrix
JPEG metadata
Tonemap curve
Crop region
Target FPS range
Capture Intent
Hardware, such as Video stabilization.
This is explained in more detail in the official documentation
2. Obtain an instance
Inner class
By a specific KEY query the corresponding camera features, CameraCharacteristics. KEY
Four, common methods
1. T get(CameraCharacteristics.Key key)
If null is returned, the key is not set.
2. List<CameraCharacteristics.Key<? >> getKeys()
Get to camera equipment all the supported CameraCharacteristics. The Key to get a list of the Key, you can make sure we want to get the Key value is not null, the Key of the list is not allowed to be modified, Otherwise will throw UnsupportedOperationException anomalies.
3. List<CaptureRequest.Key<? >> getAvailableCaptureRequestKeys()
Gets a list of capturerequest. Key supported by the camera device.
4. List<CaptureResult.Key<? >> getAvailableCaptureResultKeys()
Get the list of captureresult. keys supported by the camera device.
5. Common fields
CONTROL_AE_AVAILABLE_MODES: list of auto exposure modes supported by the camera device
CONTROL_AF_AVAILABLE_MODES: list of auto focus modes supported by the camera device
CONTROL_AWB_AVAILABLE_MODES: list of automatic white balance modes supported by camera devices
LENS_FACING: orientation of the camera device relative to the screen
FLASH_INFO_AVAILABLE: Indicates whether the camera has a flash component
INFO_SUPPORTED_HARDWARE_LEVEL: indicates the hardware level supported by the camera