Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce2a5214 authored by Chien-Yu Chen's avatar Chien-Yu Chen
Browse files

camera: Modify AF scene change

Change type to byte because int32 and enum cause type mismatch.
Allow DETECT in all AF modes.

Test: CTS
Bug: 64847201
Change-Id: I9c7b13f0fd53873b14e13eb5c85b421b588ced49
parent 98317214
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1646,7 +1646,7 @@ typedef enum acamera_metadata_tag {
     * <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>Type: byte (acamera_metadata_enum_android_control_af_scene_change_t)</p>
     *
     * <p>This tag may appear in:
     * <ul>
@@ -1658,11 +1658,9 @@ typedef enum acamera_metadata_tag {
     * 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_AF_SCENE_CHANGE =                           // byte (acamera_metadata_enum_android_control_af_scene_change_t)
            ACAMERA_CONTROL_START + 42,
    ACAMERA_CONTROL_END,