camera: Add AF scene change key

Test: CTS
Bug: 64847201
Change-Id: I8e083180dd6065431ede1f5c6de8df57f7809a02
gugelfrei
Chien-Yu Chen 7 years ago
parent cd742b9174
commit d71d1c7ff3

@ -1635,6 +1635,28 @@ typedef enum acamera_metadata_tag {
*/
ACAMERA_CONTROL_ENABLE_ZSL = // byte (acamera_metadata_enum_android_control_enable_zsl_t)
ACAMERA_CONTROL_START + 41,
/**
* <p>Whether a significant scene change is detected within the currently-set AF
* region(s).</p>
*
* <p>Type: int32 (acamera_metadata_enum_android_control_af_scene_change_t)</p>
*
* <p>This tag may appear in:
* <ul>
* <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li>
* </ul></p>
*
* <p>When the camera focus routine detects a change in the scene it is looking at,
* such as a large shift in camera viewpoint, significant motion in the scene, or a
* significant illumination change, this value will be set to DETECTED for a single capture
* result. Otherwise the value will be NOT_DETECTED. The threshold for detection is similar
* to what would trigger a new passive focus scan to begin in CONTINUOUS autofocus modes.</p>
* <p>afSceneChange may be DETECTED only if afMode is AF_MODE_CONTINUOUS_VIDEO or
* AF_MODE_CONTINUOUS_PICTURE. In other AF modes, afSceneChange must be NOT_DETECTED.</p>
* <p>This key will be available if the camera device advertises this key via {@link ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS }.</p>
*/
ACAMERA_CONTROL_AF_SCENE_CHANGE = // int32 (acamera_metadata_enum_android_control_af_scene_change_t)
ACAMERA_CONTROL_START + 42,
ACAMERA_CONTROL_END,
/**
@ -6115,6 +6137,20 @@ typedef enum acamera_metadata_enum_acamera_control_enable_zsl {
} acamera_metadata_enum_android_control_enable_zsl_t;
// ACAMERA_CONTROL_AF_SCENE_CHANGE
typedef enum acamera_metadata_enum_acamera_control_af_scene_change {
/**
* <p>Scene change is not detected within the AF region(s).</p>
*/
ACAMERA_CONTROL_AF_SCENE_CHANGE_NOT_DETECTED = 0,
/**
* <p>Scene change is detected within the AF region(s).</p>
*/
ACAMERA_CONTROL_AF_SCENE_CHANGE_DETECTED = 1,
} acamera_metadata_enum_android_control_af_scene_change_t;
// ACAMERA_EDGE_MODE

Loading…
Cancel
Save