summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2013-09-25 19:27:27 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-09-25 19:27:27 +0000
commit4681a0b9f9c8f22a2e313c681385a79790d336ab (patch)
treebe90795b5039e974127da2be44a287ca6d74890f
parentc6b45b56c7eec33a9c7b22c338cd18b00c51ed67 (diff)
parent492ba7cc1dbf63c4d838506d0921dd073efaa8da (diff)
downloadandroid_system_media-4681a0b9f9c8f22a2e313c681385a79790d336ab.tar.gz
android_system_media-4681a0b9f9c8f22a2e313c681385a79790d336ab.tar.bz2
android_system_media-4681a0b9f9c8f22a2e313c681385a79790d336ab.zip
Merge "Camera: Add PASSIVE_UNFOCUSED AF state" into klp-dev
-rw-r--r--camera/docs/docs.html16
-rw-r--r--camera/docs/metadata_properties.xml14
-rw-r--r--camera/include/system/camera_metadata_tags.h1
-rw-r--r--camera/src/camera_metadata_tag_info.c4
4 files changed, 25 insertions, 10 deletions
diff --git a/camera/docs/docs.html b/camera/docs/docs.html
index 13ed4657..f8981e81 100644
--- a/camera/docs/docs.html
+++ b/camera/docs/docs.html
@@ -2962,34 +2962,40 @@
</li>
<li>
<span class="entry_type_enum_name">PASSIVE_SCAN</span>
- <span class="entry_type_enum_notes">if CONTINUOUS_<wbr>* modes are supported AF is
+ <span class="entry_type_enum_notes">if CONTINUOUS_<wbr>* modes are supported.<wbr> AF is
currently doing an AF scan initiated by a continuous
autofocus mode</span>
</li>
<li>
<span class="entry_type_enum_name">PASSIVE_FOCUSED</span>
- <span class="entry_type_enum_notes">if CONTINUOUS_<wbr>* modes are supported AF currently
+ <span class="entry_type_enum_notes">if CONTINUOUS_<wbr>* modes are supported.<wbr> AF currently
believes it is in focus,<wbr> but may restart scanning at
any time.<wbr></span>
</li>
<li>
<span class="entry_type_enum_name">ACTIVE_SCAN</span>
- <span class="entry_type_enum_notes">if AUTO or MACRO modes are supported AF is doing
+ <span class="entry_type_enum_notes">if AUTO or MACRO modes are supported.<wbr> AF is doing
an AF scan because it was triggered by AF
trigger</span>
</li>
<li>
<span class="entry_type_enum_name">FOCUSED_LOCKED</span>
- <span class="entry_type_enum_notes">if any AF mode besides OFF is supported AF
+ <span class="entry_type_enum_notes">if any AF mode besides OFF is supported.<wbr> AF
believes it is focused correctly and is
locked</span>
</li>
<li>
<span class="entry_type_enum_name">NOT_FOCUSED_LOCKED</span>
- <span class="entry_type_enum_notes">if any AF mode besides OFF is supported AF has
+ <span class="entry_type_enum_notes">if any AF mode besides OFF is supported.<wbr> AF has
failed to focus successfully and is
locked</span>
</li>
+ <li>
+ <span class="entry_type_enum_name">PASSIVE_UNFOCUSED</span>
+ <span class="entry_type_enum_notes">if CONTINUOUS_<wbr>* modes are supported.<wbr> AF finished a
+ passive scan without finding focus,<wbr> and may restart
+ scanning at any time.<wbr></span>
+ </li>
</ul>
</td> <!-- entry_type -->
diff --git a/camera/docs/metadata_properties.xml b/camera/docs/metadata_properties.xml
index a008b752..62f3c2d7 100644
--- a/camera/docs/metadata_properties.xml
+++ b/camera/docs/metadata_properties.xml
@@ -781,25 +781,29 @@ xsi:schemaLocation="http://schemas.android.com/service/camera/metadata/ metadata
to scan. When a camera device is opened, it starts in
this state.</notes></value>
<value>PASSIVE_SCAN
- <notes>if CONTINUOUS_* modes are supported AF is
+ <notes>if CONTINUOUS_* modes are supported. AF is
currently doing an AF scan initiated by a continuous
autofocus mode</notes></value>
<value>PASSIVE_FOCUSED
- <notes>if CONTINUOUS_* modes are supported AF currently
+ <notes>if CONTINUOUS_* modes are supported. AF currently
believes it is in focus, but may restart scanning at
any time.</notes></value>
<value>ACTIVE_SCAN
- <notes>if AUTO or MACRO modes are supported AF is doing
+ <notes>if AUTO or MACRO modes are supported. AF is doing
an AF scan because it was triggered by AF
trigger</notes></value>
<value>FOCUSED_LOCKED
- <notes>if any AF mode besides OFF is supported AF
+ <notes>if any AF mode besides OFF is supported. AF
believes it is focused correctly and is
locked</notes></value>
<value>NOT_FOCUSED_LOCKED
- <notes>if any AF mode besides OFF is supported AF has
+ <notes>if any AF mode besides OFF is supported. AF has
failed to focus successfully and is
locked</notes></value>
+ <value>PASSIVE_UNFOCUSED
+ <notes>if CONTINUOUS_* modes are supported. AF finished a
+ passive scan without finding focus, and may restart
+ scanning at any time.</notes></value>
</enum>
<description>Current state of AF algorithm</description>
<notes>Whenever the AF algorithm state changes, a
diff --git a/camera/include/system/camera_metadata_tags.h b/camera/include/system/camera_metadata_tags.h
index df53878c..742cd0b4 100644
--- a/camera/include/system/camera_metadata_tags.h
+++ b/camera/include/system/camera_metadata_tags.h
@@ -497,6 +497,7 @@ typedef enum camera_metadata_enum_android_control_af_state {
ANDROID_CONTROL_AF_STATE_ACTIVE_SCAN,
ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED,
ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED,
+ ANDROID_CONTROL_AF_STATE_PASSIVE_UNFOCUSED,
} camera_metadata_enum_android_control_af_state_t;
// ANDROID_CONTROL_AWB_STATE
diff --git a/camera/src/camera_metadata_tag_info.c b/camera/src/camera_metadata_tag_info.c
index a84ec09c..1a0dc115 100644
--- a/camera/src/camera_metadata_tag_info.c
+++ b/camera/src/camera_metadata_tag_info.c
@@ -1090,6 +1090,10 @@ int camera_metadata_enum_snprint(uint32_t tag,
msg = "NOT_FOCUSED_LOCKED";
ret = 0;
break;
+ case ANDROID_CONTROL_AF_STATE_PASSIVE_UNFOCUSED:
+ msg = "PASSIVE_UNFOCUSED";
+ ret = 0;
+ break;
default:
msg = "error: enum value out of range";
}