Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Eino-Ville Talvala | 2f1a2e4 | 2013-07-25 17:12:05 -0700 | [diff] [blame] | 17 | package android.hardware.camera2; |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 18 | |
Eino-Ville Talvala | 70c2207 | 2013-08-27 12:09:04 -0700 | [diff] [blame] | 19 | import android.hardware.camera2.impl.CameraMetadataNative; |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 20 | |
Igor Murashkin | 7a36a0f | 2013-09-10 18:13:09 -0700 | [diff] [blame] | 21 | import java.lang.reflect.Field; |
Igor Murashkin | 03fdb14 | 2013-09-30 12:14:58 -0700 | [diff] [blame] | 22 | import java.lang.reflect.Modifier; |
Igor Murashkin | 7a36a0f | 2013-09-10 18:13:09 -0700 | [diff] [blame] | 23 | import java.util.ArrayList; |
| 24 | import java.util.Collections; |
| 25 | import java.util.List; |
| 26 | |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 27 | /** |
| 28 | * The base class for camera controls and information. |
| 29 | * |
Igor Murashkin | 7a36a0f | 2013-09-10 18:13:09 -0700 | [diff] [blame] | 30 | * <p> |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 31 | * This class defines the basic key/value map used for querying for camera |
| 32 | * characteristics or capture results, and for setting camera request |
| 33 | * parameters. |
Igor Murashkin | 7a36a0f | 2013-09-10 18:13:09 -0700 | [diff] [blame] | 34 | * </p> |
| 35 | * |
| 36 | * <p> |
| 37 | * All instances of CameraMetadata are immutable. The list of keys with {@link #getKeys()} |
| 38 | * never changes, nor do the values returned by any key with {@link #get} throughout |
| 39 | * the lifetime of the object. |
| 40 | * </p> |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 41 | * |
| 42 | * @see CameraDevice |
| 43 | * @see CameraManager |
Igor Murashkin | 68f4006 | 2013-09-10 12:15:54 -0700 | [diff] [blame] | 44 | * @see CameraCharacteristics |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 45 | **/ |
Eino-Ville Talvala | 70c2207 | 2013-08-27 12:09:04 -0700 | [diff] [blame] | 46 | public abstract class CameraMetadata { |
Igor Murashkin | 7072550 | 2013-06-25 20:27:06 +0000 | [diff] [blame] | 47 | |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 48 | /** |
Igor Murashkin | 68f4006 | 2013-09-10 12:15:54 -0700 | [diff] [blame] | 49 | * Set a camera metadata field to a value. The field definitions can be |
| 50 | * found in {@link CameraCharacteristics}, {@link CaptureResult}, and |
| 51 | * {@link CaptureRequest}. |
| 52 | * |
| 53 | * @param key The metadata field to write. |
| 54 | * @param value The value to set the field to, which must be of a matching |
| 55 | * type to the key. |
| 56 | * |
Eino-Ville Talvala | 70c2207 | 2013-08-27 12:09:04 -0700 | [diff] [blame] | 57 | * @hide |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 58 | */ |
Eino-Ville Talvala | 70c2207 | 2013-08-27 12:09:04 -0700 | [diff] [blame] | 59 | protected CameraMetadata() { |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | /** |
Igor Murashkin | 7a36a0f | 2013-09-10 18:13:09 -0700 | [diff] [blame] | 63 | * Get a camera metadata field value. |
| 64 | * |
| 65 | * <p>The field definitions can be |
Igor Murashkin | 68f4006 | 2013-09-10 12:15:54 -0700 | [diff] [blame] | 66 | * found in {@link CameraCharacteristics}, {@link CaptureResult}, and |
Igor Murashkin | 7a36a0f | 2013-09-10 18:13:09 -0700 | [diff] [blame] | 67 | * {@link CaptureRequest}.</p> |
| 68 | * |
| 69 | * <p>Querying the value for the same key more than once will return a value |
| 70 | * which is equal to the previous queried value.</p> |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 71 | * |
Igor Murashkin | b519cc5 | 2013-07-02 11:23:44 -0700 | [diff] [blame] | 72 | * @throws IllegalArgumentException if the key was not valid |
| 73 | * |
Benjamin Hendricks | 24eb8a3 | 2013-08-15 12:46:22 -0700 | [diff] [blame] | 74 | * @param key The metadata field to read. |
| 75 | * @return The value of that key, or {@code null} if the field is not set. |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 76 | */ |
Eino-Ville Talvala | 70c2207 | 2013-08-27 12:09:04 -0700 | [diff] [blame] | 77 | public abstract <T> T get(Key<T> key); |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 78 | |
Igor Murashkin | 7a36a0f | 2013-09-10 18:13:09 -0700 | [diff] [blame] | 79 | /** |
| 80 | * Returns a list of the keys contained in this map. |
| 81 | * |
| 82 | * <p>The list returned is not modifiable, so any attempts to modify it will throw |
| 83 | * a {@code UnsupportedOperationException}.</p> |
| 84 | * |
| 85 | * <p>All values retrieved by a key from this list with {@link #get} are guaranteed to be |
| 86 | * non-{@code null}. Each key is only listed once in the list. The order of the keys |
| 87 | * is undefined.</p> |
| 88 | * |
| 89 | * @return List of the keys contained in this map. |
| 90 | */ |
| 91 | public List<Key<?>> getKeys() { |
| 92 | return Collections.unmodifiableList(getKeysStatic(this.getClass(), this)); |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Return a list of all the Key<?> that are declared as a field inside of the class |
| 97 | * {@code type}. |
| 98 | * |
| 99 | * <p> |
| 100 | * Optionally, if {@code instance} is not null, then filter out any keys with null values. |
| 101 | * </p> |
| 102 | */ |
| 103 | /*package*/ static ArrayList<Key<?>> getKeysStatic(Class<? extends CameraMetadata> type, |
| 104 | CameraMetadata instance) { |
| 105 | ArrayList<Key<?>> keyList = new ArrayList<Key<?>>(); |
| 106 | |
| 107 | Field[] fields = type.getDeclaredFields(); |
| 108 | for (Field field : fields) { |
Igor Murashkin | 03fdb14 | 2013-09-30 12:14:58 -0700 | [diff] [blame] | 109 | // Filter for Keys that are public |
| 110 | if (field.getType().isAssignableFrom(Key.class) && |
| 111 | (field.getModifiers() & Modifier.PUBLIC) != 0) { |
Igor Murashkin | 7a36a0f | 2013-09-10 18:13:09 -0700 | [diff] [blame] | 112 | Key<?> key; |
| 113 | try { |
| 114 | key = (Key<?>) field.get(instance); |
| 115 | } catch (IllegalAccessException e) { |
| 116 | throw new AssertionError("Can't get IllegalAccessException", e); |
| 117 | } catch (IllegalArgumentException e) { |
| 118 | throw new AssertionError("Can't get IllegalArgumentException", e); |
| 119 | } |
| 120 | if (instance == null || instance.get(key) != null) { |
| 121 | keyList.add(key); |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | return keyList; |
| 127 | } |
| 128 | |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 129 | public static class Key<T> { |
Igor Murashkin | b519cc5 | 2013-07-02 11:23:44 -0700 | [diff] [blame] | 130 | |
| 131 | private boolean mHasTag; |
| 132 | private int mTag; |
| 133 | private final Class<T> mType; |
Eino-Ville Talvala | 70c2207 | 2013-08-27 12:09:04 -0700 | [diff] [blame] | 134 | private final String mName; |
Igor Murashkin | b519cc5 | 2013-07-02 11:23:44 -0700 | [diff] [blame] | 135 | |
Eino-Ville Talvala | 70c2207 | 2013-08-27 12:09:04 -0700 | [diff] [blame] | 136 | /** |
Igor Murashkin | b519cc5 | 2013-07-02 11:23:44 -0700 | [diff] [blame] | 137 | * @hide |
| 138 | */ |
| 139 | public Key(String name, Class<T> type) { |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 140 | if (name == null) { |
| 141 | throw new NullPointerException("Key needs a valid name"); |
Igor Murashkin | b519cc5 | 2013-07-02 11:23:44 -0700 | [diff] [blame] | 142 | } else if (type == null) { |
| 143 | throw new NullPointerException("Type needs to be non-null"); |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 144 | } |
| 145 | mName = name; |
Igor Murashkin | b519cc5 | 2013-07-02 11:23:44 -0700 | [diff] [blame] | 146 | mType = type; |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 147 | } |
| 148 | |
| 149 | public final String getName() { |
| 150 | return mName; |
| 151 | } |
| 152 | |
| 153 | @Override |
| 154 | public final int hashCode() { |
| 155 | return mName.hashCode(); |
| 156 | } |
| 157 | |
| 158 | @Override |
| 159 | @SuppressWarnings("unchecked") |
| 160 | public final boolean equals(Object o) { |
| 161 | if (this == o) { |
| 162 | return true; |
| 163 | } |
| 164 | |
| 165 | if (!(o instanceof Key)) { |
| 166 | return false; |
| 167 | } |
| 168 | |
| 169 | Key lhs = (Key) o; |
| 170 | |
Zhijun He | 2f1680b | 2013-11-13 13:16:56 -0800 | [diff] [blame] | 171 | return mName.equals(lhs.mName) && mType.equals(lhs.mType); |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 172 | } |
| 173 | |
Igor Murashkin | b519cc5 | 2013-07-02 11:23:44 -0700 | [diff] [blame] | 174 | /** |
| 175 | * <p> |
| 176 | * Get the tag corresponding to this key. This enables insertion into the |
| 177 | * native metadata. |
| 178 | * </p> |
| 179 | * |
| 180 | * <p>This value is looked up the first time, and cached subsequently.</p> |
| 181 | * |
Benjamin Hendricks | 24eb8a3 | 2013-08-15 12:46:22 -0700 | [diff] [blame] | 182 | * @return The tag numeric value corresponding to the string |
Igor Murashkin | b519cc5 | 2013-07-02 11:23:44 -0700 | [diff] [blame] | 183 | * |
| 184 | * @hide |
| 185 | */ |
| 186 | public final int getTag() { |
| 187 | if (!mHasTag) { |
Eino-Ville Talvala | 70c2207 | 2013-08-27 12:09:04 -0700 | [diff] [blame] | 188 | mTag = CameraMetadataNative.getTag(mName); |
Igor Murashkin | b519cc5 | 2013-07-02 11:23:44 -0700 | [diff] [blame] | 189 | mHasTag = true; |
| 190 | } |
| 191 | return mTag; |
| 192 | } |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 193 | |
Eino-Ville Talvala | 70c2207 | 2013-08-27 12:09:04 -0700 | [diff] [blame] | 194 | /** |
| 195 | * @hide |
| 196 | */ |
| 197 | public final Class<T> getType() { |
| 198 | return mType; |
Igor Murashkin | 7072550 | 2013-06-25 20:27:06 +0000 | [diff] [blame] | 199 | } |
| 200 | } |
| 201 | |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 202 | /*@O~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~ |
| 203 | * The enum values below this point are generated from metadata |
| 204 | * definitions in /system/media/camera/docs. Do not modify by hand or |
| 205 | * modify the comment blocks at the start or end. |
| 206 | *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~*/ |
| 207 | |
| 208 | // |
Zhijun He | ff41393 | 2014-02-07 15:44:30 -0800 | [diff] [blame] | 209 | // Enumeration values for CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION |
| 210 | // |
| 211 | |
| 212 | /** |
| 213 | * <p>The lens focus distance is not accurate, and the units used for |
| 214 | * {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance} do not correspond to any physical units. |
| 215 | * Setting the lens to the same focus distance on separate occasions may |
| 216 | * result in a different real focus distance, depending on factors such |
| 217 | * as the orientation of the device, the age of the focusing mechanism, |
| 218 | * and the device temperature. The focus distance value will still be |
| 219 | * in the range of <code>[0, {@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance}]</code>, where 0 |
| 220 | * represents the farthest focus.</p> |
| 221 | * |
| 222 | * @see CaptureRequest#LENS_FOCUS_DISTANCE |
| 223 | * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE |
| 224 | * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION |
| 225 | */ |
| 226 | public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED = 0; |
| 227 | |
| 228 | /** |
| 229 | * <p>The lens focus distance is measured in diopters. However, setting the lens |
| 230 | * to the same focus distance on separate occasions may result in a |
| 231 | * different real focus distance, depending on factors such as the |
| 232 | * orientation of the device, the age of the focusing mechanism, and |
| 233 | * the device temperature.</p> |
| 234 | * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION |
| 235 | */ |
| 236 | public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE = 1; |
| 237 | |
| 238 | /** |
| 239 | * <p>The lens focus distance is measured in diopters. The lens mechanism is |
| 240 | * calibrated so that setting the same focus distance is repeatable on |
| 241 | * multiple occasions with good accuracy, and the focus distance corresponds |
| 242 | * to the real physical distance to the plane of best focus.</p> |
| 243 | * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION |
| 244 | */ |
| 245 | public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED = 2; |
| 246 | |
| 247 | // |
Igor Murashkin | 68f4006 | 2013-09-10 12:15:54 -0700 | [diff] [blame] | 248 | // Enumeration values for CameraCharacteristics#LENS_FACING |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 249 | // |
| 250 | |
| 251 | /** |
Igor Murashkin | 68f4006 | 2013-09-10 12:15:54 -0700 | [diff] [blame] | 252 | * @see CameraCharacteristics#LENS_FACING |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 253 | */ |
| 254 | public static final int LENS_FACING_FRONT = 0; |
| 255 | |
| 256 | /** |
Igor Murashkin | 68f4006 | 2013-09-10 12:15:54 -0700 | [diff] [blame] | 257 | * @see CameraCharacteristics#LENS_FACING |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 258 | */ |
| 259 | public static final int LENS_FACING_BACK = 1; |
| 260 | |
| 261 | // |
Igor Murashkin | e46c0da | 2014-02-07 18:34:37 -0800 | [diff] [blame] | 262 | // Enumeration values for CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES |
| 263 | // |
| 264 | |
| 265 | /** |
| 266 | * <p>The minimal set of capabilities that every camera |
| 267 | * device (regardless of {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel}) |
| 268 | * will support.</p> |
| 269 | * <p>The full set of features supported by this capability makes |
| 270 | * the camera2 api backwards compatible with the camera1 |
| 271 | * (android.hardware.Camera) API.</p> |
| 272 | * <p>TODO: @hide this. Doesn't really mean anything except |
| 273 | * act as a catch-all for all the 'base' functionality.</p> |
| 274 | * |
| 275 | * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL |
| 276 | * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES |
| 277 | */ |
| 278 | public static final int REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE = 0; |
| 279 | |
| 280 | /** |
| 281 | * <p>This is a catch-all capability to include all other |
| 282 | * tags or functionality not encapsulated by one of the other |
| 283 | * capabilities.</p> |
| 284 | * <p>A typical example is all tags marked 'optional'.</p> |
| 285 | * <p>TODO: @hide. We may not need this if we @hide all the optional |
| 286 | * tags not belonging to a capability.</p> |
| 287 | * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES |
| 288 | */ |
| 289 | public static final int REQUEST_AVAILABLE_CAPABILITIES_OPTIONAL = 1; |
| 290 | |
| 291 | /** |
| 292 | * <p>The camera device can be manually controlled (3A algorithms such |
| 293 | * as auto exposure, and auto focus can be |
| 294 | * bypassed), this includes but is not limited to:</p> |
| 295 | * <ul> |
| 296 | * <li>Manual exposure control<ul> |
| 297 | * <li>{@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime}</li> |
| 298 | * <li>{@link CameraCharacteristics#SENSOR_INFO_EXPOSURE_TIME_RANGE android.sensor.info.exposureTimeRange}</li> |
| 299 | * </ul> |
| 300 | * </li> |
| 301 | * <li>Manual sensitivity control<ul> |
| 302 | * <li>{@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}</li> |
| 303 | * <li>{@link CameraCharacteristics#SENSOR_INFO_SENSITIVITY_RANGE android.sensor.info.sensitivityRange}</li> |
| 304 | * <li>{@link CameraCharacteristics#SENSOR_BASE_GAIN_FACTOR android.sensor.baseGainFactor}</li> |
| 305 | * </ul> |
| 306 | * </li> |
| 307 | * <li>Manual lens control<ul> |
| 308 | * <li>android.lens.*</li> |
| 309 | * </ul> |
| 310 | * </li> |
| 311 | * <li>Manual flash control<ul> |
| 312 | * <li>android.flash.*</li> |
| 313 | * </ul> |
| 314 | * </li> |
| 315 | * <li>Manual black level locking<ul> |
| 316 | * <li>{@link CaptureRequest#BLACK_LEVEL_LOCK android.blackLevel.lock}</li> |
| 317 | * </ul> |
| 318 | * </li> |
| 319 | * </ul> |
| 320 | * <p>If any of the above 3A algorithms are enabled, then the camera |
| 321 | * device will accurately report the values applied by 3A in the |
| 322 | * result.</p> |
| 323 | * |
| 324 | * @see CaptureRequest#BLACK_LEVEL_LOCK |
| 325 | * @see CameraCharacteristics#SENSOR_BASE_GAIN_FACTOR |
| 326 | * @see CaptureRequest#SENSOR_EXPOSURE_TIME |
| 327 | * @see CameraCharacteristics#SENSOR_INFO_EXPOSURE_TIME_RANGE |
| 328 | * @see CameraCharacteristics#SENSOR_INFO_SENSITIVITY_RANGE |
| 329 | * @see CaptureRequest#SENSOR_SENSITIVITY |
| 330 | * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES |
| 331 | */ |
| 332 | public static final int REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR = 2; |
| 333 | |
| 334 | /** |
| 335 | * <p>TODO: This should be @hide</p> |
| 336 | * <ul> |
| 337 | * <li>Manual tonemap control<ul> |
| 338 | * <li>{@link CaptureRequest#TONEMAP_CURVE_BLUE android.tonemap.curveBlue}</li> |
| 339 | * <li>{@link CaptureRequest#TONEMAP_CURVE_GREEN android.tonemap.curveGreen}</li> |
| 340 | * <li>{@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed}</li> |
| 341 | * <li>{@link CaptureRequest#TONEMAP_MODE android.tonemap.mode}</li> |
| 342 | * <li>{@link CameraCharacteristics#TONEMAP_MAX_CURVE_POINTS android.tonemap.maxCurvePoints}</li> |
| 343 | * </ul> |
| 344 | * </li> |
| 345 | * <li>Manual white balance control<ul> |
| 346 | * <li>{@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}</li> |
| 347 | * <li>{@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains}</li> |
| 348 | * </ul> |
| 349 | * </li> |
| 350 | * <li>Lens shading map information<ul> |
| 351 | * <li>{@link CaptureResult#STATISTICS_LENS_SHADING_MAP android.statistics.lensShadingMap}</li> |
| 352 | * <li>{@link CameraCharacteristics#LENS_INFO_SHADING_MAP_SIZE android.lens.info.shadingMapSize}</li> |
| 353 | * </ul> |
| 354 | * </li> |
| 355 | * </ul> |
| 356 | * <p>If auto white balance is enabled, then the camera device |
| 357 | * will accurately report the values applied by AWB in the result.</p> |
| 358 | * <p>The camera device will also support everything in MANUAL_SENSOR |
| 359 | * except manual lens control and manual flash control.</p> |
| 360 | * |
| 361 | * @see CaptureRequest#COLOR_CORRECTION_GAINS |
| 362 | * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM |
| 363 | * @see CameraCharacteristics#LENS_INFO_SHADING_MAP_SIZE |
| 364 | * @see CaptureResult#STATISTICS_LENS_SHADING_MAP |
| 365 | * @see CaptureRequest#TONEMAP_CURVE_BLUE |
| 366 | * @see CaptureRequest#TONEMAP_CURVE_GREEN |
| 367 | * @see CaptureRequest#TONEMAP_CURVE_RED |
| 368 | * @see CameraCharacteristics#TONEMAP_MAX_CURVE_POINTS |
| 369 | * @see CaptureRequest#TONEMAP_MODE |
| 370 | * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES |
| 371 | */ |
| 372 | public static final int REQUEST_AVAILABLE_CAPABILITIES_GCAM = 3; |
| 373 | |
| 374 | /** |
| 375 | * <p>The camera device supports the Zero Shutter Lag use case.</p> |
| 376 | * <ul> |
| 377 | * <li>At least one input stream can be used.</li> |
| 378 | * <li>RAW_OPAQUE is supported as an output/input format</li> |
| 379 | * <li>Using RAW_OPAQUE does not cause a frame rate drop |
| 380 | * relative to the sensor's maximum capture rate (at that |
| 381 | * resolution).</li> |
| 382 | * <li>RAW_OPAQUE will be reprocessable into both YUV_420_888 |
| 383 | * and JPEG formats.</li> |
| 384 | * <li>The maximum available resolution for RAW_OPAQUE streams |
| 385 | * (both input/output) will match the maximum available |
| 386 | * resolution of JPEG streams.</li> |
| 387 | * </ul> |
| 388 | * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES |
| 389 | */ |
| 390 | public static final int REQUEST_AVAILABLE_CAPABILITIES_ZSL = 4; |
| 391 | |
| 392 | /** |
| 393 | * <p>The camera device supports outputting RAW buffers that can be |
| 394 | * saved offline into a DNG format. It can reprocess DNG |
| 395 | * files (produced from the same camera device) back into YUV.</p> |
| 396 | * <ul> |
| 397 | * <li>At least one input stream can be used.</li> |
| 398 | * <li>RAW16 is supported as output/input format.</li> |
| 399 | * <li>RAW16 is reprocessable into both YUV_420_888 and JPEG |
| 400 | * formats.</li> |
| 401 | * <li>The maximum available resolution for RAW16 streams (both |
| 402 | * input/output) will match the value in |
| 403 | * android.sensor.info.pixelArraySize.</li> |
| 404 | * <li>All DNG-related optional metadata entries are provided |
| 405 | * by the camera device.</li> |
| 406 | * </ul> |
| 407 | * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES |
| 408 | */ |
| 409 | public static final int REQUEST_AVAILABLE_CAPABILITIES_DNG = 5; |
| 410 | |
| 411 | // |
Igor Murashkin | a23ffb5 | 2014-02-07 18:52:34 -0800 | [diff] [blame] | 412 | // Enumeration values for CameraCharacteristics#SCALER_AVAILABLE_STREAM_CONFIGURATIONS |
| 413 | // |
| 414 | |
| 415 | /** |
| 416 | * @see CameraCharacteristics#SCALER_AVAILABLE_STREAM_CONFIGURATIONS |
| 417 | */ |
| 418 | public static final int SCALER_AVAILABLE_STREAM_CONFIGURATIONS_OUTPUT = 0; |
| 419 | |
| 420 | /** |
| 421 | * @see CameraCharacteristics#SCALER_AVAILABLE_STREAM_CONFIGURATIONS |
| 422 | */ |
| 423 | public static final int SCALER_AVAILABLE_STREAM_CONFIGURATIONS_INPUT = 1; |
| 424 | |
| 425 | // |
Igor Murashkin | 68f4006 | 2013-09-10 12:15:54 -0700 | [diff] [blame] | 426 | // Enumeration values for CameraCharacteristics#LED_AVAILABLE_LEDS |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 427 | // |
| 428 | |
| 429 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 430 | * <p>android.led.transmit control is used</p> |
Igor Murashkin | 68f4006 | 2013-09-10 12:15:54 -0700 | [diff] [blame] | 431 | * @see CameraCharacteristics#LED_AVAILABLE_LEDS |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 432 | * @hide |
| 433 | */ |
| 434 | public static final int LED_AVAILABLE_LEDS_TRANSMIT = 0; |
| 435 | |
| 436 | // |
Igor Murashkin | 68f4006 | 2013-09-10 12:15:54 -0700 | [diff] [blame] | 437 | // Enumeration values for CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 438 | // |
| 439 | |
| 440 | /** |
Igor Murashkin | 68f4006 | 2013-09-10 12:15:54 -0700 | [diff] [blame] | 441 | * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 442 | */ |
| 443 | public static final int INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED = 0; |
| 444 | |
| 445 | /** |
Igor Murashkin | 68f4006 | 2013-09-10 12:15:54 -0700 | [diff] [blame] | 446 | * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 447 | */ |
| 448 | public static final int INFO_SUPPORTED_HARDWARE_LEVEL_FULL = 1; |
| 449 | |
| 450 | // |
Igor Murashkin | 3865a84 | 2014-01-17 18:18:39 -0800 | [diff] [blame] | 451 | // Enumeration values for CameraCharacteristics#SYNC_MAX_LATENCY |
| 452 | // |
| 453 | |
| 454 | /** |
| 455 | * <p>Every frame has the requests immediately applied. |
| 456 | * (and furthermore for all results, |
| 457 | * <code>android.sync.frameNumber == android.request.frameCount</code>)</p> |
| 458 | * <p>Changing controls over multiple requests one after another will |
| 459 | * produce results that have those controls applied atomically |
| 460 | * each frame.</p> |
| 461 | * <p>All FULL capability devices will have this as their maxLatency.</p> |
| 462 | * @see CameraCharacteristics#SYNC_MAX_LATENCY |
| 463 | */ |
| 464 | public static final int SYNC_MAX_LATENCY_PER_FRAME_CONTROL = 0; |
| 465 | |
| 466 | /** |
| 467 | * <p>Each new frame has some subset (potentially the entire set) |
| 468 | * of the past requests applied to the camera settings.</p> |
| 469 | * <p>By submitting a series of identical requests, the camera device |
| 470 | * will eventually have the camera settings applied, but it is |
| 471 | * unknown when that exact point will be.</p> |
| 472 | * @see CameraCharacteristics#SYNC_MAX_LATENCY |
| 473 | */ |
| 474 | public static final int SYNC_MAX_LATENCY_UNKNOWN = -1; |
| 475 | |
| 476 | // |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 477 | // Enumeration values for CaptureRequest#COLOR_CORRECTION_MODE |
| 478 | // |
| 479 | |
| 480 | /** |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 481 | * <p>Use the {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform} matrix |
Igor Murashkin | 7d2a5c5 | 2014-01-17 15:07:52 -0800 | [diff] [blame] | 482 | * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} to do color conversion.</p> |
| 483 | * <p>All advanced white balance adjustments (not specified |
| 484 | * by our white balance pipeline) must be disabled.</p> |
| 485 | * <p>If AWB is enabled with <code>{@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} != OFF</code>, then |
| 486 | * TRANSFORM_MATRIX is ignored. The camera device will override |
| 487 | * this value to either FAST or HIGH_QUALITY.</p> |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 488 | * |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 489 | * @see CaptureRequest#COLOR_CORRECTION_GAINS |
Eino-Ville Talvala | 265b34c | 2014-01-16 16:18:52 -0800 | [diff] [blame] | 490 | * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM |
Igor Murashkin | 7d2a5c5 | 2014-01-17 15:07:52 -0800 | [diff] [blame] | 491 | * @see CaptureRequest#CONTROL_AWB_MODE |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 492 | * @see CaptureRequest#COLOR_CORRECTION_MODE |
| 493 | */ |
| 494 | public static final int COLOR_CORRECTION_MODE_TRANSFORM_MATRIX = 0; |
| 495 | |
| 496 | /** |
Igor Murashkin | 7d2a5c5 | 2014-01-17 15:07:52 -0800 | [diff] [blame] | 497 | * <p>Must not slow down capture rate relative to sensor raw |
| 498 | * output.</p> |
| 499 | * <p>Advanced white balance adjustments above and beyond |
| 500 | * the specified white balance pipeline may be applied.</p> |
| 501 | * <p>If AWB is enabled with <code>{@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} != OFF</code>, then |
| 502 | * the camera device uses the last frame's AWB values |
| 503 | * (or defaults if AWB has never been run).</p> |
| 504 | * |
| 505 | * @see CaptureRequest#CONTROL_AWB_MODE |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 506 | * @see CaptureRequest#COLOR_CORRECTION_MODE |
| 507 | */ |
| 508 | public static final int COLOR_CORRECTION_MODE_FAST = 1; |
| 509 | |
| 510 | /** |
Igor Murashkin | 7d2a5c5 | 2014-01-17 15:07:52 -0800 | [diff] [blame] | 511 | * <p>Capture rate (relative to sensor raw output) |
| 512 | * may be reduced by high quality.</p> |
| 513 | * <p>Advanced white balance adjustments above and beyond |
| 514 | * the specified white balance pipeline may be applied.</p> |
| 515 | * <p>If AWB is enabled with <code>{@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} != OFF</code>, then |
| 516 | * the camera device uses the last frame's AWB values |
| 517 | * (or defaults if AWB has never been run).</p> |
| 518 | * |
| 519 | * @see CaptureRequest#CONTROL_AWB_MODE |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 520 | * @see CaptureRequest#COLOR_CORRECTION_MODE |
| 521 | */ |
| 522 | public static final int COLOR_CORRECTION_MODE_HIGH_QUALITY = 2; |
| 523 | |
| 524 | // |
| 525 | // Enumeration values for CaptureRequest#CONTROL_AE_ANTIBANDING_MODE |
| 526 | // |
| 527 | |
| 528 | /** |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 529 | * <p>The camera device will not adjust exposure duration to |
| 530 | * avoid banding problems.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 531 | * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE |
| 532 | */ |
| 533 | public static final int CONTROL_AE_ANTIBANDING_MODE_OFF = 0; |
| 534 | |
| 535 | /** |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 536 | * <p>The camera device will adjust exposure duration to |
| 537 | * avoid banding problems with 50Hz illumination sources.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 538 | * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE |
| 539 | */ |
| 540 | public static final int CONTROL_AE_ANTIBANDING_MODE_50HZ = 1; |
| 541 | |
| 542 | /** |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 543 | * <p>The camera device will adjust exposure duration to |
| 544 | * avoid banding problems with 60Hz illumination |
| 545 | * sources.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 546 | * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE |
| 547 | */ |
| 548 | public static final int CONTROL_AE_ANTIBANDING_MODE_60HZ = 2; |
| 549 | |
| 550 | /** |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 551 | * <p>The camera device will automatically adapt its |
| 552 | * antibanding routine to the current illumination |
| 553 | * conditions. This is the default.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 554 | * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE |
| 555 | */ |
| 556 | public static final int CONTROL_AE_ANTIBANDING_MODE_AUTO = 3; |
| 557 | |
| 558 | // |
| 559 | // Enumeration values for CaptureRequest#CONTROL_AE_MODE |
| 560 | // |
| 561 | |
| 562 | /** |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 563 | * <p>The camera device's autoexposure routine is disabled; |
| 564 | * the application-selected {@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime}, |
| 565 | * {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity} and |
| 566 | * {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} are used by the camera |
| 567 | * device, along with android.flash.* fields, if there's |
| 568 | * a flash unit for this camera device.</p> |
| 569 | * |
Zhijun He | 5f2a47f | 2014-01-16 15:44:41 -0800 | [diff] [blame] | 570 | * @see CaptureRequest#SENSOR_EXPOSURE_TIME |
Eino-Ville Talvala | 265b34c | 2014-01-16 16:18:52 -0800 | [diff] [blame] | 571 | * @see CaptureRequest#SENSOR_FRAME_DURATION |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 572 | * @see CaptureRequest#SENSOR_SENSITIVITY |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 573 | * @see CaptureRequest#CONTROL_AE_MODE |
| 574 | */ |
| 575 | public static final int CONTROL_AE_MODE_OFF = 0; |
| 576 | |
| 577 | /** |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 578 | * <p>The camera device's autoexposure routine is active, |
| 579 | * with no flash control. The application's values for |
| 580 | * {@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime}, |
| 581 | * {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}, and |
| 582 | * {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} are ignored. The |
| 583 | * application has control over the various |
| 584 | * android.flash.* fields.</p> |
| 585 | * |
Zhijun He | 5f2a47f | 2014-01-16 15:44:41 -0800 | [diff] [blame] | 586 | * @see CaptureRequest#SENSOR_EXPOSURE_TIME |
Eino-Ville Talvala | 265b34c | 2014-01-16 16:18:52 -0800 | [diff] [blame] | 587 | * @see CaptureRequest#SENSOR_FRAME_DURATION |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 588 | * @see CaptureRequest#SENSOR_SENSITIVITY |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 589 | * @see CaptureRequest#CONTROL_AE_MODE |
| 590 | */ |
| 591 | public static final int CONTROL_AE_MODE_ON = 1; |
| 592 | |
| 593 | /** |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 594 | * <p>Like ON, except that the camera device also controls |
| 595 | * the camera's flash unit, firing it in low-light |
| 596 | * conditions. The flash may be fired during a |
| 597 | * precapture sequence (triggered by |
| 598 | * {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger}) and may be fired |
| 599 | * for captures for which the |
| 600 | * {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent} field is set to |
| 601 | * STILL_CAPTURE</p> |
| 602 | * |
Igor Murashkin | 3242f4f | 2014-01-15 12:27:41 -0800 | [diff] [blame] | 603 | * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER |
Zhijun He | 5f2a47f | 2014-01-16 15:44:41 -0800 | [diff] [blame] | 604 | * @see CaptureRequest#CONTROL_CAPTURE_INTENT |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 605 | * @see CaptureRequest#CONTROL_AE_MODE |
| 606 | */ |
| 607 | public static final int CONTROL_AE_MODE_ON_AUTO_FLASH = 2; |
| 608 | |
| 609 | /** |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 610 | * <p>Like ON, except that the camera device also controls |
| 611 | * the camera's flash unit, always firing it for still |
| 612 | * captures. The flash may be fired during a precapture |
| 613 | * sequence (triggered by |
| 614 | * {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger}) and will always |
| 615 | * be fired for captures for which the |
| 616 | * {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent} field is set to |
| 617 | * STILL_CAPTURE</p> |
| 618 | * |
Igor Murashkin | 3242f4f | 2014-01-15 12:27:41 -0800 | [diff] [blame] | 619 | * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER |
Zhijun He | 5f2a47f | 2014-01-16 15:44:41 -0800 | [diff] [blame] | 620 | * @see CaptureRequest#CONTROL_CAPTURE_INTENT |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 621 | * @see CaptureRequest#CONTROL_AE_MODE |
| 622 | */ |
| 623 | public static final int CONTROL_AE_MODE_ON_ALWAYS_FLASH = 3; |
| 624 | |
| 625 | /** |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 626 | * <p>Like ON_AUTO_FLASH, but with automatic red eye |
| 627 | * reduction. If deemed necessary by the camera device, |
| 628 | * a red eye reduction flash will fire during the |
| 629 | * precapture sequence.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 630 | * @see CaptureRequest#CONTROL_AE_MODE |
| 631 | */ |
| 632 | public static final int CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE = 4; |
| 633 | |
| 634 | // |
| 635 | // Enumeration values for CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER |
| 636 | // |
| 637 | |
| 638 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 639 | * <p>The trigger is idle.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 640 | * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER |
| 641 | */ |
| 642 | public static final int CONTROL_AE_PRECAPTURE_TRIGGER_IDLE = 0; |
| 643 | |
| 644 | /** |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 645 | * <p>The precapture metering sequence will be started |
| 646 | * by the camera device. The exact effect of the precapture |
| 647 | * trigger depends on the current AE mode and state.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 648 | * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER |
| 649 | */ |
| 650 | public static final int CONTROL_AE_PRECAPTURE_TRIGGER_START = 1; |
| 651 | |
| 652 | // |
| 653 | // Enumeration values for CaptureRequest#CONTROL_AF_MODE |
| 654 | // |
| 655 | |
| 656 | /** |
Zhijun He | f353742 | 2013-12-16 16:56:35 -0800 | [diff] [blame] | 657 | * <p>The auto-focus routine does not control the lens; |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 658 | * {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance} is controlled by the |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 659 | * application</p> |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 660 | * |
| 661 | * @see CaptureRequest#LENS_FOCUS_DISTANCE |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 662 | * @see CaptureRequest#CONTROL_AF_MODE |
| 663 | */ |
| 664 | public static final int CONTROL_AF_MODE_OFF = 0; |
| 665 | |
| 666 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 667 | * <p>If lens is not fixed focus.</p> |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 668 | * <p>Use {@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance} to determine if lens |
Zhijun He | f353742 | 2013-12-16 16:56:35 -0800 | [diff] [blame] | 669 | * is fixed-focus. In this mode, the lens does not move unless |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 670 | * the autofocus trigger action is called. When that trigger |
| 671 | * is activated, AF must transition to ACTIVE_SCAN, then to |
Zhijun He | f353742 | 2013-12-16 16:56:35 -0800 | [diff] [blame] | 672 | * the outcome of the scan (FOCUSED or NOT_FOCUSED).</p> |
| 673 | * <p>Triggering AF_CANCEL resets the lens position to default, |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 674 | * and sets the AF state to INACTIVE.</p> |
Eino-Ville Talvala | 0da8bf5 | 2014-01-08 16:18:35 -0800 | [diff] [blame] | 675 | * |
| 676 | * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 677 | * @see CaptureRequest#CONTROL_AF_MODE |
| 678 | */ |
| 679 | public static final int CONTROL_AF_MODE_AUTO = 1; |
| 680 | |
| 681 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 682 | * <p>In this mode, the lens does not move unless the |
| 683 | * autofocus trigger action is called.</p> |
| 684 | * <p>When that trigger is activated, AF must transition to |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 685 | * ACTIVE_SCAN, then to the outcome of the scan (FOCUSED or |
| 686 | * NOT_FOCUSED). Triggering cancel AF resets the lens |
| 687 | * position to default, and sets the AF state to |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 688 | * INACTIVE.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 689 | * @see CaptureRequest#CONTROL_AF_MODE |
| 690 | */ |
| 691 | public static final int CONTROL_AF_MODE_MACRO = 2; |
| 692 | |
| 693 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 694 | * <p>In this mode, the AF algorithm modifies the lens |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 695 | * position continually to attempt to provide a |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 696 | * constantly-in-focus image stream.</p> |
| 697 | * <p>The focusing behavior should be suitable for good quality |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 698 | * video recording; typically this means slower focus |
| 699 | * movement and no overshoots. When the AF trigger is not |
| 700 | * involved, the AF algorithm should start in INACTIVE state, |
| 701 | * and then transition into PASSIVE_SCAN and PASSIVE_FOCUSED |
| 702 | * states as appropriate. When the AF trigger is activated, |
| 703 | * the algorithm should immediately transition into |
| 704 | * AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 705 | * lens position until a cancel AF trigger is received.</p> |
| 706 | * <p>Once cancel is received, the algorithm should transition |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 707 | * back to INACTIVE and resume passive scan. Note that this |
| 708 | * behavior is not identical to CONTINUOUS_PICTURE, since an |
| 709 | * ongoing PASSIVE_SCAN must immediately be |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 710 | * canceled.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 711 | * @see CaptureRequest#CONTROL_AF_MODE |
| 712 | */ |
| 713 | public static final int CONTROL_AF_MODE_CONTINUOUS_VIDEO = 3; |
| 714 | |
| 715 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 716 | * <p>In this mode, the AF algorithm modifies the lens |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 717 | * position continually to attempt to provide a |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 718 | * constantly-in-focus image stream.</p> |
| 719 | * <p>The focusing behavior should be suitable for still image |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 720 | * capture; typically this means focusing as fast as |
| 721 | * possible. When the AF trigger is not involved, the AF |
| 722 | * algorithm should start in INACTIVE state, and then |
| 723 | * transition into PASSIVE_SCAN and PASSIVE_FOCUSED states as |
| 724 | * appropriate as it attempts to maintain focus. When the AF |
| 725 | * trigger is activated, the algorithm should finish its |
| 726 | * PASSIVE_SCAN if active, and then transition into |
| 727 | * AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 728 | * lens position until a cancel AF trigger is received.</p> |
| 729 | * <p>When the AF cancel trigger is activated, the algorithm |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 730 | * should transition back to INACTIVE and then act as if it |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 731 | * has just been started.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 732 | * @see CaptureRequest#CONTROL_AF_MODE |
| 733 | */ |
| 734 | public static final int CONTROL_AF_MODE_CONTINUOUS_PICTURE = 4; |
| 735 | |
| 736 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 737 | * <p>Extended depth of field (digital focus). AF |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 738 | * trigger is ignored, AF state should always be |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 739 | * INACTIVE.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 740 | * @see CaptureRequest#CONTROL_AF_MODE |
| 741 | */ |
| 742 | public static final int CONTROL_AF_MODE_EDOF = 5; |
| 743 | |
| 744 | // |
| 745 | // Enumeration values for CaptureRequest#CONTROL_AF_TRIGGER |
| 746 | // |
| 747 | |
| 748 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 749 | * <p>The trigger is idle.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 750 | * @see CaptureRequest#CONTROL_AF_TRIGGER |
| 751 | */ |
| 752 | public static final int CONTROL_AF_TRIGGER_IDLE = 0; |
| 753 | |
| 754 | /** |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 755 | * <p>Autofocus will trigger now.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 756 | * @see CaptureRequest#CONTROL_AF_TRIGGER |
| 757 | */ |
| 758 | public static final int CONTROL_AF_TRIGGER_START = 1; |
| 759 | |
| 760 | /** |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 761 | * <p>Autofocus will return to its initial |
| 762 | * state, and cancel any currently active trigger.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 763 | * @see CaptureRequest#CONTROL_AF_TRIGGER |
| 764 | */ |
| 765 | public static final int CONTROL_AF_TRIGGER_CANCEL = 2; |
| 766 | |
| 767 | // |
| 768 | // Enumeration values for CaptureRequest#CONTROL_AWB_MODE |
| 769 | // |
| 770 | |
| 771 | /** |
Zhijun He | 399f05d | 2014-01-15 11:31:30 -0800 | [diff] [blame] | 772 | * <p>The camera device's auto white balance routine is disabled; |
| 773 | * the application-selected color transform matrix |
| 774 | * ({@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}) and gains |
| 775 | * ({@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains}) are used by the camera |
| 776 | * device for manual white balance control.</p> |
| 777 | * |
Zhijun He | 399f05d | 2014-01-15 11:31:30 -0800 | [diff] [blame] | 778 | * @see CaptureRequest#COLOR_CORRECTION_GAINS |
Eino-Ville Talvala | 265b34c | 2014-01-16 16:18:52 -0800 | [diff] [blame] | 779 | * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 780 | * @see CaptureRequest#CONTROL_AWB_MODE |
| 781 | */ |
| 782 | public static final int CONTROL_AWB_MODE_OFF = 0; |
| 783 | |
| 784 | /** |
Zhijun He | 399f05d | 2014-01-15 11:31:30 -0800 | [diff] [blame] | 785 | * <p>The camera device's auto white balance routine is active; |
| 786 | * the application's values for android.colorCorrection.transform |
| 787 | * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.</p> |
| 788 | * |
| 789 | * @see CaptureRequest#COLOR_CORRECTION_GAINS |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 790 | * @see CaptureRequest#CONTROL_AWB_MODE |
| 791 | */ |
| 792 | public static final int CONTROL_AWB_MODE_AUTO = 1; |
| 793 | |
| 794 | /** |
Zhijun He | 399f05d | 2014-01-15 11:31:30 -0800 | [diff] [blame] | 795 | * <p>The camera device's auto white balance routine is disabled; |
| 796 | * the camera device uses incandescent light as the assumed scene |
| 797 | * illumination for white balance. While the exact white balance |
| 798 | * transforms are up to the camera device, they will approximately |
| 799 | * match the CIE standard illuminant A.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 800 | * @see CaptureRequest#CONTROL_AWB_MODE |
| 801 | */ |
| 802 | public static final int CONTROL_AWB_MODE_INCANDESCENT = 2; |
| 803 | |
| 804 | /** |
Zhijun He | 399f05d | 2014-01-15 11:31:30 -0800 | [diff] [blame] | 805 | * <p>The camera device's auto white balance routine is disabled; |
| 806 | * the camera device uses fluorescent light as the assumed scene |
| 807 | * illumination for white balance. While the exact white balance |
| 808 | * transforms are up to the camera device, they will approximately |
| 809 | * match the CIE standard illuminant F2.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 810 | * @see CaptureRequest#CONTROL_AWB_MODE |
| 811 | */ |
| 812 | public static final int CONTROL_AWB_MODE_FLUORESCENT = 3; |
| 813 | |
| 814 | /** |
Zhijun He | 399f05d | 2014-01-15 11:31:30 -0800 | [diff] [blame] | 815 | * <p>The camera device's auto white balance routine is disabled; |
| 816 | * the camera device uses warm fluorescent light as the assumed scene |
| 817 | * illumination for white balance. While the exact white balance |
| 818 | * transforms are up to the camera device, they will approximately |
| 819 | * match the CIE standard illuminant F4.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 820 | * @see CaptureRequest#CONTROL_AWB_MODE |
| 821 | */ |
| 822 | public static final int CONTROL_AWB_MODE_WARM_FLUORESCENT = 4; |
| 823 | |
| 824 | /** |
Zhijun He | 399f05d | 2014-01-15 11:31:30 -0800 | [diff] [blame] | 825 | * <p>The camera device's auto white balance routine is disabled; |
| 826 | * the camera device uses daylight light as the assumed scene |
| 827 | * illumination for white balance. While the exact white balance |
| 828 | * transforms are up to the camera device, they will approximately |
| 829 | * match the CIE standard illuminant D65.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 830 | * @see CaptureRequest#CONTROL_AWB_MODE |
| 831 | */ |
| 832 | public static final int CONTROL_AWB_MODE_DAYLIGHT = 5; |
| 833 | |
| 834 | /** |
Zhijun He | 399f05d | 2014-01-15 11:31:30 -0800 | [diff] [blame] | 835 | * <p>The camera device's auto white balance routine is disabled; |
| 836 | * the camera device uses cloudy daylight light as the assumed scene |
| 837 | * illumination for white balance.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 838 | * @see CaptureRequest#CONTROL_AWB_MODE |
| 839 | */ |
| 840 | public static final int CONTROL_AWB_MODE_CLOUDY_DAYLIGHT = 6; |
| 841 | |
| 842 | /** |
Zhijun He | 399f05d | 2014-01-15 11:31:30 -0800 | [diff] [blame] | 843 | * <p>The camera device's auto white balance routine is disabled; |
| 844 | * the camera device uses twilight light as the assumed scene |
| 845 | * illumination for white balance.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 846 | * @see CaptureRequest#CONTROL_AWB_MODE |
| 847 | */ |
| 848 | public static final int CONTROL_AWB_MODE_TWILIGHT = 7; |
| 849 | |
| 850 | /** |
Zhijun He | 399f05d | 2014-01-15 11:31:30 -0800 | [diff] [blame] | 851 | * <p>The camera device's auto white balance routine is disabled; |
| 852 | * the camera device uses shade light as the assumed scene |
| 853 | * illumination for white balance.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 854 | * @see CaptureRequest#CONTROL_AWB_MODE |
| 855 | */ |
| 856 | public static final int CONTROL_AWB_MODE_SHADE = 8; |
| 857 | |
| 858 | // |
| 859 | // Enumeration values for CaptureRequest#CONTROL_CAPTURE_INTENT |
| 860 | // |
| 861 | |
| 862 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 863 | * <p>This request doesn't fall into the other |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 864 | * categories. Default to preview-like |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 865 | * behavior.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 866 | * @see CaptureRequest#CONTROL_CAPTURE_INTENT |
| 867 | */ |
| 868 | public static final int CONTROL_CAPTURE_INTENT_CUSTOM = 0; |
| 869 | |
| 870 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 871 | * <p>This request is for a preview-like usecase. The |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 872 | * precapture trigger may be used to start off a metering |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 873 | * w/flash sequence</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 874 | * @see CaptureRequest#CONTROL_CAPTURE_INTENT |
| 875 | */ |
| 876 | public static final int CONTROL_CAPTURE_INTENT_PREVIEW = 1; |
| 877 | |
| 878 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 879 | * <p>This request is for a still capture-type |
| 880 | * usecase.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 881 | * @see CaptureRequest#CONTROL_CAPTURE_INTENT |
| 882 | */ |
| 883 | public static final int CONTROL_CAPTURE_INTENT_STILL_CAPTURE = 2; |
| 884 | |
| 885 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 886 | * <p>This request is for a video recording |
| 887 | * usecase.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 888 | * @see CaptureRequest#CONTROL_CAPTURE_INTENT |
| 889 | */ |
| 890 | public static final int CONTROL_CAPTURE_INTENT_VIDEO_RECORD = 3; |
| 891 | |
| 892 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 893 | * <p>This request is for a video snapshot (still |
| 894 | * image while recording video) usecase</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 895 | * @see CaptureRequest#CONTROL_CAPTURE_INTENT |
| 896 | */ |
| 897 | public static final int CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT = 4; |
| 898 | |
| 899 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 900 | * <p>This request is for a ZSL usecase; the |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 901 | * application will stream full-resolution images and |
| 902 | * reprocess one or several later for a final |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 903 | * capture</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 904 | * @see CaptureRequest#CONTROL_CAPTURE_INTENT |
| 905 | */ |
| 906 | public static final int CONTROL_CAPTURE_INTENT_ZERO_SHUTTER_LAG = 5; |
| 907 | |
| 908 | // |
| 909 | // Enumeration values for CaptureRequest#CONTROL_EFFECT_MODE |
| 910 | // |
| 911 | |
| 912 | /** |
Ruben Brunk | 5f1dcfe | 2014-01-17 16:42:51 -0800 | [diff] [blame] | 913 | * <p>No color effect will be applied.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 914 | * @see CaptureRequest#CONTROL_EFFECT_MODE |
| 915 | */ |
| 916 | public static final int CONTROL_EFFECT_MODE_OFF = 0; |
| 917 | |
| 918 | /** |
Ruben Brunk | 5f1dcfe | 2014-01-17 16:42:51 -0800 | [diff] [blame] | 919 | * <p>A "monocolor" effect where the image is mapped into |
| 920 | * a single color. This will typically be grayscale.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 921 | * @see CaptureRequest#CONTROL_EFFECT_MODE |
| 922 | */ |
| 923 | public static final int CONTROL_EFFECT_MODE_MONO = 1; |
| 924 | |
| 925 | /** |
Ruben Brunk | 5f1dcfe | 2014-01-17 16:42:51 -0800 | [diff] [blame] | 926 | * <p>A "photo-negative" effect where the image's colors |
| 927 | * are inverted.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 928 | * @see CaptureRequest#CONTROL_EFFECT_MODE |
| 929 | */ |
| 930 | public static final int CONTROL_EFFECT_MODE_NEGATIVE = 2; |
| 931 | |
| 932 | /** |
Ruben Brunk | 5f1dcfe | 2014-01-17 16:42:51 -0800 | [diff] [blame] | 933 | * <p>A "solarisation" effect (Sabattier effect) where the |
| 934 | * image is wholly or partially reversed in |
| 935 | * tone.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 936 | * @see CaptureRequest#CONTROL_EFFECT_MODE |
| 937 | */ |
| 938 | public static final int CONTROL_EFFECT_MODE_SOLARIZE = 3; |
| 939 | |
| 940 | /** |
Ruben Brunk | 5f1dcfe | 2014-01-17 16:42:51 -0800 | [diff] [blame] | 941 | * <p>A "sepia" effect where the image is mapped into warm |
| 942 | * gray, red, and brown tones.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 943 | * @see CaptureRequest#CONTROL_EFFECT_MODE |
| 944 | */ |
| 945 | public static final int CONTROL_EFFECT_MODE_SEPIA = 4; |
| 946 | |
| 947 | /** |
Ruben Brunk | 5f1dcfe | 2014-01-17 16:42:51 -0800 | [diff] [blame] | 948 | * <p>A "posterization" effect where the image uses |
| 949 | * discrete regions of tone rather than a continuous |
| 950 | * gradient of tones.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 951 | * @see CaptureRequest#CONTROL_EFFECT_MODE |
| 952 | */ |
| 953 | public static final int CONTROL_EFFECT_MODE_POSTERIZE = 5; |
| 954 | |
| 955 | /** |
Ruben Brunk | 5f1dcfe | 2014-01-17 16:42:51 -0800 | [diff] [blame] | 956 | * <p>A "whiteboard" effect where the image is typically displayed |
| 957 | * as regions of white, with black or grey details.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 958 | * @see CaptureRequest#CONTROL_EFFECT_MODE |
| 959 | */ |
| 960 | public static final int CONTROL_EFFECT_MODE_WHITEBOARD = 6; |
| 961 | |
| 962 | /** |
Ruben Brunk | 5f1dcfe | 2014-01-17 16:42:51 -0800 | [diff] [blame] | 963 | * <p>A "blackboard" effect where the image is typically displayed |
| 964 | * as regions of black, with white or grey details.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 965 | * @see CaptureRequest#CONTROL_EFFECT_MODE |
| 966 | */ |
| 967 | public static final int CONTROL_EFFECT_MODE_BLACKBOARD = 7; |
| 968 | |
| 969 | /** |
Ruben Brunk | 5f1dcfe | 2014-01-17 16:42:51 -0800 | [diff] [blame] | 970 | * <p>An "aqua" effect where a blue hue is added to the image.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 971 | * @see CaptureRequest#CONTROL_EFFECT_MODE |
| 972 | */ |
| 973 | public static final int CONTROL_EFFECT_MODE_AQUA = 8; |
| 974 | |
| 975 | // |
| 976 | // Enumeration values for CaptureRequest#CONTROL_MODE |
| 977 | // |
| 978 | |
| 979 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 980 | * <p>Full application control of pipeline. All 3A |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 981 | * routines are disabled, no other settings in |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 982 | * android.control.* have any effect</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 983 | * @see CaptureRequest#CONTROL_MODE |
| 984 | */ |
| 985 | public static final int CONTROL_MODE_OFF = 0; |
| 986 | |
| 987 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 988 | * <p>Use settings for each individual 3A routine. |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 989 | * Manual control of capture parameters is disabled. All |
| 990 | * controls in android.control.* besides sceneMode take |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 991 | * effect</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 992 | * @see CaptureRequest#CONTROL_MODE |
| 993 | */ |
| 994 | public static final int CONTROL_MODE_AUTO = 1; |
| 995 | |
| 996 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 997 | * <p>Use specific scene mode. Enabling this disables |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 998 | * control.aeMode, control.awbMode and control.afMode |
| 999 | * controls; the HAL must ignore those settings while |
| 1000 | * USE_SCENE_MODE is active (except for FACE_PRIORITY |
| 1001 | * scene mode). Other control entries are still active. |
| 1002 | * This setting can only be used if availableSceneModes != |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1003 | * UNSUPPORTED</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1004 | * @see CaptureRequest#CONTROL_MODE |
| 1005 | */ |
| 1006 | public static final int CONTROL_MODE_USE_SCENE_MODE = 2; |
| 1007 | |
Zhijun He | 2d5e897 | 2014-02-07 16:13:46 -0800 | [diff] [blame] | 1008 | /** |
| 1009 | * <p>Same as OFF mode, except that this capture will not be |
| 1010 | * used by camera device background auto-exposure, auto-white balance and |
| 1011 | * auto-focus algorithms to update their statistics.</p> |
| 1012 | * @see CaptureRequest#CONTROL_MODE |
| 1013 | */ |
| 1014 | public static final int CONTROL_MODE_OFF_KEEP_STATE = 3; |
| 1015 | |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1016 | // |
| 1017 | // Enumeration values for CaptureRequest#CONTROL_SCENE_MODE |
| 1018 | // |
| 1019 | |
| 1020 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1021 | * <p>Indicates that no scene modes are set for a given capture request.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1022 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1023 | */ |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1024 | public static final int CONTROL_SCENE_MODE_DISABLED = 0; |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1025 | |
| 1026 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1027 | * <p>If face detection support exists, use face |
| 1028 | * detection data for auto-focus, auto-white balance, and |
| 1029 | * auto-exposure routines. If face detection statistics are |
| 1030 | * disabled (i.e. {@link CaptureRequest#STATISTICS_FACE_DETECT_MODE android.statistics.faceDetectMode} is set to OFF), |
| 1031 | * this should still operate correctly (but will not return |
| 1032 | * face detection statistics to the framework).</p> |
| 1033 | * <p>Unlike the other scene modes, {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode}, |
| 1034 | * {@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode}, and android.control.afMode |
| 1035 | * remain active when FACE_PRIORITY is set.</p> |
| 1036 | * |
| 1037 | * @see CaptureRequest#CONTROL_AE_MODE |
| 1038 | * @see CaptureRequest#CONTROL_AWB_MODE |
| 1039 | * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1040 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1041 | */ |
| 1042 | public static final int CONTROL_SCENE_MODE_FACE_PRIORITY = 1; |
| 1043 | |
| 1044 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1045 | * <p>Optimized for photos of quickly moving objects. |
| 1046 | * Similar to SPORTS.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1047 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1048 | */ |
| 1049 | public static final int CONTROL_SCENE_MODE_ACTION = 2; |
| 1050 | |
| 1051 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1052 | * <p>Optimized for still photos of people.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1053 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1054 | */ |
| 1055 | public static final int CONTROL_SCENE_MODE_PORTRAIT = 3; |
| 1056 | |
| 1057 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1058 | * <p>Optimized for photos of distant macroscopic objects.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1059 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1060 | */ |
| 1061 | public static final int CONTROL_SCENE_MODE_LANDSCAPE = 4; |
| 1062 | |
| 1063 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1064 | * <p>Optimized for low-light settings.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1065 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1066 | */ |
| 1067 | public static final int CONTROL_SCENE_MODE_NIGHT = 5; |
| 1068 | |
| 1069 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1070 | * <p>Optimized for still photos of people in low-light |
| 1071 | * settings.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1072 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1073 | */ |
| 1074 | public static final int CONTROL_SCENE_MODE_NIGHT_PORTRAIT = 6; |
| 1075 | |
| 1076 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1077 | * <p>Optimized for dim, indoor settings where flash must |
| 1078 | * remain off.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1079 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1080 | */ |
| 1081 | public static final int CONTROL_SCENE_MODE_THEATRE = 7; |
| 1082 | |
| 1083 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1084 | * <p>Optimized for bright, outdoor beach settings.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1085 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1086 | */ |
| 1087 | public static final int CONTROL_SCENE_MODE_BEACH = 8; |
| 1088 | |
| 1089 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1090 | * <p>Optimized for bright, outdoor settings containing snow.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1091 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1092 | */ |
| 1093 | public static final int CONTROL_SCENE_MODE_SNOW = 9; |
| 1094 | |
| 1095 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1096 | * <p>Optimized for scenes of the setting sun.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1097 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1098 | */ |
| 1099 | public static final int CONTROL_SCENE_MODE_SUNSET = 10; |
| 1100 | |
| 1101 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1102 | * <p>Optimized to avoid blurry photos due to small amounts of |
| 1103 | * device motion (for example: due to hand shake).</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1104 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1105 | */ |
| 1106 | public static final int CONTROL_SCENE_MODE_STEADYPHOTO = 11; |
| 1107 | |
| 1108 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1109 | * <p>Optimized for nighttime photos of fireworks.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1110 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1111 | */ |
| 1112 | public static final int CONTROL_SCENE_MODE_FIREWORKS = 12; |
| 1113 | |
| 1114 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1115 | * <p>Optimized for photos of quickly moving people. |
| 1116 | * Similar to ACTION.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1117 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1118 | */ |
| 1119 | public static final int CONTROL_SCENE_MODE_SPORTS = 13; |
| 1120 | |
| 1121 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1122 | * <p>Optimized for dim, indoor settings with multiple moving |
| 1123 | * people.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1124 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1125 | */ |
| 1126 | public static final int CONTROL_SCENE_MODE_PARTY = 14; |
| 1127 | |
| 1128 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1129 | * <p>Optimized for dim settings where the main light source |
| 1130 | * is a flame.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1131 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1132 | */ |
| 1133 | public static final int CONTROL_SCENE_MODE_CANDLELIGHT = 15; |
| 1134 | |
| 1135 | /** |
Ruben Brunk | e667936 | 2014-01-17 17:05:54 -0800 | [diff] [blame] | 1136 | * <p>Optimized for accurately capturing a photo of barcode |
| 1137 | * for use by camera applications that wish to read the |
| 1138 | * barcode value.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1139 | * @see CaptureRequest#CONTROL_SCENE_MODE |
| 1140 | */ |
| 1141 | public static final int CONTROL_SCENE_MODE_BARCODE = 16; |
| 1142 | |
| 1143 | // |
| 1144 | // Enumeration values for CaptureRequest#EDGE_MODE |
| 1145 | // |
| 1146 | |
| 1147 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1148 | * <p>No edge enhancement is applied</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1149 | * @see CaptureRequest#EDGE_MODE |
| 1150 | */ |
| 1151 | public static final int EDGE_MODE_OFF = 0; |
| 1152 | |
| 1153 | /** |
Zhijun He | 2807936 | 2013-12-17 10:35:40 -0800 | [diff] [blame] | 1154 | * <p>Must not slow down frame rate relative to sensor |
| 1155 | * output</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1156 | * @see CaptureRequest#EDGE_MODE |
| 1157 | */ |
| 1158 | public static final int EDGE_MODE_FAST = 1; |
| 1159 | |
| 1160 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1161 | * <p>Frame rate may be reduced by high |
| 1162 | * quality</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1163 | * @see CaptureRequest#EDGE_MODE |
| 1164 | */ |
| 1165 | public static final int EDGE_MODE_HIGH_QUALITY = 2; |
| 1166 | |
| 1167 | // |
| 1168 | // Enumeration values for CaptureRequest#FLASH_MODE |
| 1169 | // |
| 1170 | |
| 1171 | /** |
Zhijun He | 66d065a | 2014-01-16 18:18:50 -0800 | [diff] [blame] | 1172 | * <p>Do not fire the flash for this capture.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1173 | * @see CaptureRequest#FLASH_MODE |
| 1174 | */ |
| 1175 | public static final int FLASH_MODE_OFF = 0; |
| 1176 | |
| 1177 | /** |
Zhijun He | 66d065a | 2014-01-16 18:18:50 -0800 | [diff] [blame] | 1178 | * <p>If the flash is available and charged, fire flash |
| 1179 | * for this capture based on android.flash.firingPower and |
| 1180 | * android.flash.firingTime.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1181 | * @see CaptureRequest#FLASH_MODE |
| 1182 | */ |
| 1183 | public static final int FLASH_MODE_SINGLE = 1; |
| 1184 | |
| 1185 | /** |
Zhijun He | 66d065a | 2014-01-16 18:18:50 -0800 | [diff] [blame] | 1186 | * <p>Transition flash to continuously on.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1187 | * @see CaptureRequest#FLASH_MODE |
| 1188 | */ |
| 1189 | public static final int FLASH_MODE_TORCH = 2; |
| 1190 | |
| 1191 | // |
Ruben Brunk | eba1b3a | 2014-02-07 18:23:50 -0800 | [diff] [blame] | 1192 | // Enumeration values for CaptureRequest#HOT_PIXEL_MODE |
| 1193 | // |
| 1194 | |
| 1195 | /** |
| 1196 | * <p>The frame rate must not be reduced relative to sensor raw output |
| 1197 | * for this option.</p> |
| 1198 | * <p>No hot pixel correction is applied.</p> |
| 1199 | * @see CaptureRequest#HOT_PIXEL_MODE |
| 1200 | */ |
| 1201 | public static final int HOT_PIXEL_MODE_OFF = 0; |
| 1202 | |
| 1203 | /** |
| 1204 | * <p>The frame rate must not be reduced relative to sensor raw output |
| 1205 | * for this option.</p> |
| 1206 | * <p>Hot pixel correction is applied.</p> |
| 1207 | * @see CaptureRequest#HOT_PIXEL_MODE |
| 1208 | */ |
| 1209 | public static final int HOT_PIXEL_MODE_FAST = 1; |
| 1210 | |
| 1211 | /** |
| 1212 | * <p>The frame rate may be reduced relative to sensor raw output |
| 1213 | * for this option.</p> |
| 1214 | * <p>A high-quality hot pixel correction is applied.</p> |
| 1215 | * @see CaptureRequest#HOT_PIXEL_MODE |
| 1216 | */ |
| 1217 | public static final int HOT_PIXEL_MODE_HIGH_QUALITY = 2; |
| 1218 | |
| 1219 | // |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1220 | // Enumeration values for CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE |
| 1221 | // |
| 1222 | |
| 1223 | /** |
Ruben Brunk | 00849b3 | 2014-01-17 18:30:23 -0800 | [diff] [blame] | 1224 | * <p>Optical stabilization is unavailable.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1225 | * @see CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE |
| 1226 | */ |
| 1227 | public static final int LENS_OPTICAL_STABILIZATION_MODE_OFF = 0; |
| 1228 | |
| 1229 | /** |
Ruben Brunk | 00849b3 | 2014-01-17 18:30:23 -0800 | [diff] [blame] | 1230 | * <p>Optical stabilization is enabled.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1231 | * @see CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE |
| 1232 | */ |
| 1233 | public static final int LENS_OPTICAL_STABILIZATION_MODE_ON = 1; |
| 1234 | |
| 1235 | // |
| 1236 | // Enumeration values for CaptureRequest#NOISE_REDUCTION_MODE |
| 1237 | // |
| 1238 | |
| 1239 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1240 | * <p>No noise reduction is applied</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1241 | * @see CaptureRequest#NOISE_REDUCTION_MODE |
| 1242 | */ |
| 1243 | public static final int NOISE_REDUCTION_MODE_OFF = 0; |
| 1244 | |
| 1245 | /** |
Zhijun He | 2807936 | 2013-12-17 10:35:40 -0800 | [diff] [blame] | 1246 | * <p>Must not slow down frame rate relative to sensor |
| 1247 | * output</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1248 | * @see CaptureRequest#NOISE_REDUCTION_MODE |
| 1249 | */ |
| 1250 | public static final int NOISE_REDUCTION_MODE_FAST = 1; |
| 1251 | |
| 1252 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1253 | * <p>May slow down frame rate to provide highest |
| 1254 | * quality</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1255 | * @see CaptureRequest#NOISE_REDUCTION_MODE |
| 1256 | */ |
| 1257 | public static final int NOISE_REDUCTION_MODE_HIGH_QUALITY = 2; |
| 1258 | |
| 1259 | // |
Igor Murashkin | c127f05 | 2014-01-17 18:06:02 -0800 | [diff] [blame] | 1260 | // Enumeration values for CaptureRequest#SENSOR_TEST_PATTERN_MODE |
| 1261 | // |
| 1262 | |
| 1263 | /** |
| 1264 | * <p>Default. No test pattern mode is used, and the camera |
| 1265 | * device returns captures from the image sensor.</p> |
| 1266 | * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE |
| 1267 | */ |
| 1268 | public static final int SENSOR_TEST_PATTERN_MODE_OFF = 0; |
| 1269 | |
| 1270 | /** |
| 1271 | * <p>Each pixel in <code>[R, G_even, G_odd, B]</code> is replaced by its |
| 1272 | * respective color channel provided in |
| 1273 | * {@link CaptureRequest#SENSOR_TEST_PATTERN_DATA android.sensor.testPatternData}.</p> |
| 1274 | * <p>For example:</p> |
| 1275 | * <pre><code>android.testPatternData = [0, 0xFFFFFFFF, 0xFFFFFFFF, 0] |
| 1276 | * </code></pre> |
| 1277 | * <p>All green pixels are 100% green. All red/blue pixels are black.</p> |
| 1278 | * <pre><code>android.testPatternData = [0xFFFFFFFF, 0, 0xFFFFFFFF, 0] |
| 1279 | * </code></pre> |
| 1280 | * <p>All red pixels are 100% red. Only the odd green pixels |
| 1281 | * are 100% green. All blue pixels are 100% black.</p> |
| 1282 | * |
| 1283 | * @see CaptureRequest#SENSOR_TEST_PATTERN_DATA |
| 1284 | * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE |
| 1285 | */ |
| 1286 | public static final int SENSOR_TEST_PATTERN_MODE_SOLID_COLOR = 1; |
| 1287 | |
| 1288 | /** |
| 1289 | * <p>All pixel data is replaced with an 8-bar color pattern.</p> |
| 1290 | * <p>The vertical bars (left-to-right) are as follows:</p> |
| 1291 | * <ul> |
| 1292 | * <li>100% white</li> |
| 1293 | * <li>yellow</li> |
| 1294 | * <li>cyan</li> |
| 1295 | * <li>green</li> |
| 1296 | * <li>magenta</li> |
| 1297 | * <li>red</li> |
| 1298 | * <li>blue</li> |
| 1299 | * <li>black</li> |
| 1300 | * </ul> |
| 1301 | * <p>In general the image would look like the following:</p> |
| 1302 | * <pre><code>W Y C G M R B K |
| 1303 | * W Y C G M R B K |
| 1304 | * W Y C G M R B K |
| 1305 | * W Y C G M R B K |
| 1306 | * W Y C G M R B K |
| 1307 | * . . . . . . . . |
| 1308 | * . . . . . . . . |
| 1309 | * . . . . . . . . |
| 1310 | * |
| 1311 | * (B = Blue, K = Black) |
| 1312 | * </code></pre> |
| 1313 | * <p>Each bar should take up 1/8 of the sensor pixel array width. |
| 1314 | * When this is not possible, the bar size should be rounded |
| 1315 | * down to the nearest integer and the pattern can repeat |
| 1316 | * on the right side.</p> |
| 1317 | * <p>Each bar's height must always take up the full sensor |
| 1318 | * pixel array height.</p> |
| 1319 | * <p>Each pixel in this test pattern must be set to either |
| 1320 | * 0% intensity or 100% intensity.</p> |
| 1321 | * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE |
| 1322 | */ |
| 1323 | public static final int SENSOR_TEST_PATTERN_MODE_COLOR_BARS = 2; |
| 1324 | |
| 1325 | /** |
| 1326 | * <p>The test pattern is similar to COLOR_BARS, except that |
| 1327 | * each bar should start at its specified color at the top, |
| 1328 | * and fade to gray at the bottom.</p> |
| 1329 | * <p>Furthermore each bar is further subdivided into a left and |
| 1330 | * right half. The left half should have a smooth gradient, |
| 1331 | * and the right half should have a quantized gradient.</p> |
| 1332 | * <p>In particular, the right half's should consist of blocks of the |
| 1333 | * same color for 1/16th active sensor pixel array width.</p> |
| 1334 | * <p>The least significant bits in the quantized gradient should |
| 1335 | * be copied from the most significant bits of the smooth gradient.</p> |
| 1336 | * <p>The height of each bar should always be a multiple of 128. |
| 1337 | * When this is not the case, the pattern should repeat at the bottom |
| 1338 | * of the image.</p> |
| 1339 | * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE |
| 1340 | */ |
| 1341 | public static final int SENSOR_TEST_PATTERN_MODE_COLOR_BARS_FADE_TO_GRAY = 3; |
| 1342 | |
| 1343 | /** |
| 1344 | * <p>All pixel data is replaced by a pseudo-random sequence |
| 1345 | * generated from a PN9 512-bit sequence (typically implemented |
| 1346 | * in hardware with a linear feedback shift register).</p> |
| 1347 | * <p>The generator should be reset at the beginning of each frame, |
| 1348 | * and thus each subsequent raw frame with this test pattern should |
| 1349 | * be exactly the same as the last.</p> |
| 1350 | * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE |
| 1351 | */ |
| 1352 | public static final int SENSOR_TEST_PATTERN_MODE_PN9 = 4; |
| 1353 | |
| 1354 | /** |
| 1355 | * <p>The first custom test pattern. All custom patterns that are |
| 1356 | * available only on this camera device are at least this numeric |
| 1357 | * value.</p> |
| 1358 | * <p>All of the custom test patterns will be static |
| 1359 | * (that is the raw image must not vary from frame to frame).</p> |
| 1360 | * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE |
| 1361 | */ |
| 1362 | public static final int SENSOR_TEST_PATTERN_MODE_CUSTOM1 = 256; |
| 1363 | |
| 1364 | // |
Zhijun He | ba93fe6 | 2014-01-17 16:43:05 -0800 | [diff] [blame] | 1365 | // Enumeration values for CaptureRequest#SHADING_MODE |
| 1366 | // |
| 1367 | |
| 1368 | /** |
| 1369 | * <p>No lens shading correction is applied</p> |
| 1370 | * @see CaptureRequest#SHADING_MODE |
| 1371 | * @hide |
| 1372 | */ |
| 1373 | public static final int SHADING_MODE_OFF = 0; |
| 1374 | |
| 1375 | /** |
| 1376 | * <p>Must not slow down frame rate relative to sensor raw output</p> |
| 1377 | * @see CaptureRequest#SHADING_MODE |
| 1378 | * @hide |
| 1379 | */ |
| 1380 | public static final int SHADING_MODE_FAST = 1; |
| 1381 | |
| 1382 | /** |
| 1383 | * <p>Frame rate may be reduced by high quality</p> |
| 1384 | * @see CaptureRequest#SHADING_MODE |
| 1385 | * @hide |
| 1386 | */ |
| 1387 | public static final int SHADING_MODE_HIGH_QUALITY = 2; |
| 1388 | |
| 1389 | // |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1390 | // Enumeration values for CaptureRequest#STATISTICS_FACE_DETECT_MODE |
| 1391 | // |
| 1392 | |
| 1393 | /** |
| 1394 | * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE |
| 1395 | */ |
| 1396 | public static final int STATISTICS_FACE_DETECT_MODE_OFF = 0; |
| 1397 | |
| 1398 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1399 | * <p>Optional Return rectangle and confidence |
| 1400 | * only</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1401 | * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE |
| 1402 | */ |
| 1403 | public static final int STATISTICS_FACE_DETECT_MODE_SIMPLE = 1; |
| 1404 | |
| 1405 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1406 | * <p>Optional Return all face |
| 1407 | * metadata</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1408 | * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE |
| 1409 | */ |
| 1410 | public static final int STATISTICS_FACE_DETECT_MODE_FULL = 2; |
| 1411 | |
| 1412 | // |
Eino-Ville Talvala | d96748b | 2013-09-12 11:11:27 -0700 | [diff] [blame] | 1413 | // Enumeration values for CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE |
| 1414 | // |
| 1415 | |
| 1416 | /** |
| 1417 | * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE |
| 1418 | */ |
| 1419 | public static final int STATISTICS_LENS_SHADING_MAP_MODE_OFF = 0; |
| 1420 | |
| 1421 | /** |
| 1422 | * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE |
| 1423 | */ |
| 1424 | public static final int STATISTICS_LENS_SHADING_MAP_MODE_ON = 1; |
| 1425 | |
| 1426 | // |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1427 | // Enumeration values for CaptureRequest#TONEMAP_MODE |
| 1428 | // |
| 1429 | |
| 1430 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1431 | * <p>Use the tone mapping curve specified in |
Igor Murashkin | e006093 | 2014-01-17 17:24:11 -0800 | [diff] [blame] | 1432 | * android.tonemap.curve.</p> |
| 1433 | * <p>All color enhancement and tonemapping must be disabled, except |
| 1434 | * for applying the tonemapping curve specified by |
| 1435 | * {@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed}, {@link CaptureRequest#TONEMAP_CURVE_BLUE android.tonemap.curveBlue}, or |
| 1436 | * {@link CaptureRequest#TONEMAP_CURVE_GREEN android.tonemap.curveGreen}.</p> |
| 1437 | * <p>Must not slow down frame rate relative to raw |
| 1438 | * sensor output.</p> |
| 1439 | * |
| 1440 | * @see CaptureRequest#TONEMAP_CURVE_BLUE |
| 1441 | * @see CaptureRequest#TONEMAP_CURVE_GREEN |
| 1442 | * @see CaptureRequest#TONEMAP_CURVE_RED |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1443 | * @see CaptureRequest#TONEMAP_MODE |
| 1444 | */ |
| 1445 | public static final int TONEMAP_MODE_CONTRAST_CURVE = 0; |
| 1446 | |
| 1447 | /** |
Igor Murashkin | e006093 | 2014-01-17 17:24:11 -0800 | [diff] [blame] | 1448 | * <p>Advanced gamma mapping and color enhancement may be applied.</p> |
| 1449 | * <p>Should not slow down frame rate relative to raw sensor output.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1450 | * @see CaptureRequest#TONEMAP_MODE |
| 1451 | */ |
| 1452 | public static final int TONEMAP_MODE_FAST = 1; |
| 1453 | |
| 1454 | /** |
Igor Murashkin | e006093 | 2014-01-17 17:24:11 -0800 | [diff] [blame] | 1455 | * <p>Advanced gamma mapping and color enhancement may be applied.</p> |
| 1456 | * <p>May slow down frame rate relative to raw sensor output.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1457 | * @see CaptureRequest#TONEMAP_MODE |
| 1458 | */ |
| 1459 | public static final int TONEMAP_MODE_HIGH_QUALITY = 2; |
| 1460 | |
| 1461 | // |
| 1462 | // Enumeration values for CaptureResult#CONTROL_AE_STATE |
| 1463 | // |
| 1464 | |
| 1465 | /** |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 1466 | * <p>AE is off or recently reset. When a camera device is opened, it starts in |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1467 | * this state.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1468 | * @see CaptureResult#CONTROL_AE_STATE |
| 1469 | */ |
| 1470 | public static final int CONTROL_AE_STATE_INACTIVE = 0; |
| 1471 | |
| 1472 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1473 | * <p>AE doesn't yet have a good set of control values |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 1474 | * for the current scene.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1475 | * @see CaptureResult#CONTROL_AE_STATE |
| 1476 | */ |
| 1477 | public static final int CONTROL_AE_STATE_SEARCHING = 1; |
| 1478 | |
| 1479 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1480 | * <p>AE has a good set of control values for the |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 1481 | * current scene.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1482 | * @see CaptureResult#CONTROL_AE_STATE |
| 1483 | */ |
| 1484 | public static final int CONTROL_AE_STATE_CONVERGED = 2; |
| 1485 | |
| 1486 | /** |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 1487 | * <p>AE has been locked.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1488 | * @see CaptureResult#CONTROL_AE_STATE |
| 1489 | */ |
| 1490 | public static final int CONTROL_AE_STATE_LOCKED = 3; |
| 1491 | |
| 1492 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1493 | * <p>AE has a good set of control values, but flash |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1494 | * needs to be fired for good quality still |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 1495 | * capture.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1496 | * @see CaptureResult#CONTROL_AE_STATE |
| 1497 | */ |
| 1498 | public static final int CONTROL_AE_STATE_FLASH_REQUIRED = 4; |
| 1499 | |
| 1500 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1501 | * <p>AE has been asked to do a precapture sequence |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 1502 | * (through the {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger} START), |
| 1503 | * and is currently executing it. Once PRECAPTURE |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1504 | * completes, AE will transition to CONVERGED or |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 1505 | * FLASH_REQUIRED as appropriate.</p> |
| 1506 | * |
| 1507 | * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1508 | * @see CaptureResult#CONTROL_AE_STATE |
| 1509 | */ |
| 1510 | public static final int CONTROL_AE_STATE_PRECAPTURE = 5; |
| 1511 | |
| 1512 | // |
| 1513 | // Enumeration values for CaptureResult#CONTROL_AF_STATE |
| 1514 | // |
| 1515 | |
| 1516 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1517 | * <p>AF off or has not yet tried to scan/been asked |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1518 | * to scan. When a camera device is opened, it starts in |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1519 | * this state.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1520 | * @see CaptureResult#CONTROL_AF_STATE |
| 1521 | */ |
| 1522 | public static final int CONTROL_AF_STATE_INACTIVE = 0; |
| 1523 | |
| 1524 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1525 | * <p>if CONTINUOUS_* modes are supported. AF is |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1526 | * currently doing an AF scan initiated by a continuous |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1527 | * autofocus mode</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1528 | * @see CaptureResult#CONTROL_AF_STATE |
| 1529 | */ |
| 1530 | public static final int CONTROL_AF_STATE_PASSIVE_SCAN = 1; |
| 1531 | |
| 1532 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1533 | * <p>if CONTINUOUS_* modes are supported. AF currently |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1534 | * believes it is in focus, but may restart scanning at |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1535 | * any time.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1536 | * @see CaptureResult#CONTROL_AF_STATE |
| 1537 | */ |
| 1538 | public static final int CONTROL_AF_STATE_PASSIVE_FOCUSED = 2; |
| 1539 | |
| 1540 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1541 | * <p>if AUTO or MACRO modes are supported. AF is doing |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1542 | * an AF scan because it was triggered by AF |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1543 | * trigger</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1544 | * @see CaptureResult#CONTROL_AF_STATE |
| 1545 | */ |
| 1546 | public static final int CONTROL_AF_STATE_ACTIVE_SCAN = 3; |
| 1547 | |
| 1548 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1549 | * <p>if any AF mode besides OFF is supported. AF |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1550 | * believes it is focused correctly and is |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1551 | * locked</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1552 | * @see CaptureResult#CONTROL_AF_STATE |
| 1553 | */ |
| 1554 | public static final int CONTROL_AF_STATE_FOCUSED_LOCKED = 4; |
| 1555 | |
| 1556 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1557 | * <p>if any AF mode besides OFF is supported. AF has |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1558 | * failed to focus successfully and is |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1559 | * locked</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1560 | * @see CaptureResult#CONTROL_AF_STATE |
| 1561 | */ |
| 1562 | public static final int CONTROL_AF_STATE_NOT_FOCUSED_LOCKED = 5; |
| 1563 | |
Eino-Ville Talvala | 9f880f7 | 2013-09-20 17:50:41 -0700 | [diff] [blame] | 1564 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1565 | * <p>if CONTINUOUS_* modes are supported. AF finished a |
Eino-Ville Talvala | 9f880f7 | 2013-09-20 17:50:41 -0700 | [diff] [blame] | 1566 | * passive scan without finding focus, and may restart |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1567 | * scanning at any time.</p> |
Eino-Ville Talvala | 9f880f7 | 2013-09-20 17:50:41 -0700 | [diff] [blame] | 1568 | * @see CaptureResult#CONTROL_AF_STATE |
| 1569 | */ |
| 1570 | public static final int CONTROL_AF_STATE_PASSIVE_UNFOCUSED = 6; |
| 1571 | |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1572 | // |
| 1573 | // Enumeration values for CaptureResult#CONTROL_AWB_STATE |
| 1574 | // |
| 1575 | |
| 1576 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1577 | * <p>AWB is not in auto mode. When a camera device is opened, it |
| 1578 | * starts in this state.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1579 | * @see CaptureResult#CONTROL_AWB_STATE |
| 1580 | */ |
| 1581 | public static final int CONTROL_AWB_STATE_INACTIVE = 0; |
| 1582 | |
| 1583 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1584 | * <p>AWB doesn't yet have a good set of control |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 1585 | * values for the current scene.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1586 | * @see CaptureResult#CONTROL_AWB_STATE |
| 1587 | */ |
| 1588 | public static final int CONTROL_AWB_STATE_SEARCHING = 1; |
| 1589 | |
| 1590 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1591 | * <p>AWB has a good set of control values for the |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 1592 | * current scene.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1593 | * @see CaptureResult#CONTROL_AWB_STATE |
| 1594 | */ |
| 1595 | public static final int CONTROL_AWB_STATE_CONVERGED = 2; |
| 1596 | |
| 1597 | /** |
Zhijun He | 228f4f9 | 2014-01-16 17:22:05 -0800 | [diff] [blame] | 1598 | * <p>AWB has been locked.</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1599 | * @see CaptureResult#CONTROL_AWB_STATE |
| 1600 | */ |
| 1601 | public static final int CONTROL_AWB_STATE_LOCKED = 3; |
| 1602 | |
| 1603 | // |
| 1604 | // Enumeration values for CaptureResult#FLASH_STATE |
| 1605 | // |
| 1606 | |
| 1607 | /** |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1608 | * <p>No flash on camera</p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1609 | * @see CaptureResult#FLASH_STATE |
| 1610 | */ |
| 1611 | public static final int FLASH_STATE_UNAVAILABLE = 0; |
| 1612 | |
| 1613 | /** |
Zhijun He | ca1b73a | 2014-02-03 12:39:53 -0800 | [diff] [blame] | 1614 | * <p>if {@link CameraCharacteristics#FLASH_INFO_AVAILABLE android.flash.info.available} is true Flash is |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1615 | * charging and cannot be fired</p> |
Zhijun He | ca1b73a | 2014-02-03 12:39:53 -0800 | [diff] [blame] | 1616 | * |
| 1617 | * @see CameraCharacteristics#FLASH_INFO_AVAILABLE |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1618 | * @see CaptureResult#FLASH_STATE |
| 1619 | */ |
| 1620 | public static final int FLASH_STATE_CHARGING = 1; |
| 1621 | |
| 1622 | /** |
Zhijun He | ca1b73a | 2014-02-03 12:39:53 -0800 | [diff] [blame] | 1623 | * <p>if {@link CameraCharacteristics#FLASH_INFO_AVAILABLE android.flash.info.available} is true Flash is |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1624 | * ready to fire</p> |
Zhijun He | ca1b73a | 2014-02-03 12:39:53 -0800 | [diff] [blame] | 1625 | * |
| 1626 | * @see CameraCharacteristics#FLASH_INFO_AVAILABLE |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1627 | * @see CaptureResult#FLASH_STATE |
| 1628 | */ |
| 1629 | public static final int FLASH_STATE_READY = 2; |
| 1630 | |
| 1631 | /** |
Zhijun He | ca1b73a | 2014-02-03 12:39:53 -0800 | [diff] [blame] | 1632 | * <p>if {@link CameraCharacteristics#FLASH_INFO_AVAILABLE android.flash.info.available} is true Flash fired |
Igor Murashkin | ace5bf0 | 2013-12-10 17:36:40 -0800 | [diff] [blame] | 1633 | * for this capture</p> |
Zhijun He | ca1b73a | 2014-02-03 12:39:53 -0800 | [diff] [blame] | 1634 | * |
| 1635 | * @see CameraCharacteristics#FLASH_INFO_AVAILABLE |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1636 | * @see CaptureResult#FLASH_STATE |
| 1637 | */ |
| 1638 | public static final int FLASH_STATE_FIRED = 3; |
| 1639 | |
| 1640 | // |
| 1641 | // Enumeration values for CaptureResult#LENS_STATE |
| 1642 | // |
| 1643 | |
| 1644 | /** |
Zhijun He | ca1b73a | 2014-02-03 12:39:53 -0800 | [diff] [blame] | 1645 | * <p>The lens parameters ({@link CaptureRequest#LENS_FOCAL_LENGTH android.lens.focalLength}, android.lens.focusDistance |
| 1646 | * android.lens.filterDensity and {@link CaptureRequest#LENS_APERTURE android.lens.aperture}) are not changing.</p> |
| 1647 | * |
| 1648 | * @see CaptureRequest#LENS_APERTURE |
| 1649 | * @see CaptureRequest#LENS_FOCAL_LENGTH |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1650 | * @see CaptureResult#LENS_STATE |
| 1651 | */ |
| 1652 | public static final int LENS_STATE_STATIONARY = 0; |
| 1653 | |
Igor Murashkin | 9ea4ae6 | 2013-09-11 21:40:11 -0700 | [diff] [blame] | 1654 | /** |
Zhijun He | ca1b73a | 2014-02-03 12:39:53 -0800 | [diff] [blame] | 1655 | * <p>Any of the lens parameters ({@link CaptureRequest#LENS_FOCAL_LENGTH android.lens.focalLength}, android.lens.focusDistance |
| 1656 | * android.lens.filterDensity or {@link CaptureRequest#LENS_APERTURE android.lens.aperture}) is changing.</p> |
| 1657 | * |
| 1658 | * @see CaptureRequest#LENS_APERTURE |
| 1659 | * @see CaptureRequest#LENS_FOCAL_LENGTH |
Igor Murashkin | 9ea4ae6 | 2013-09-11 21:40:11 -0700 | [diff] [blame] | 1660 | * @see CaptureResult#LENS_STATE |
| 1661 | */ |
| 1662 | public static final int LENS_STATE_MOVING = 1; |
| 1663 | |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1664 | // |
| 1665 | // Enumeration values for CaptureResult#STATISTICS_SCENE_FLICKER |
| 1666 | // |
| 1667 | |
| 1668 | /** |
| 1669 | * @see CaptureResult#STATISTICS_SCENE_FLICKER |
| 1670 | */ |
| 1671 | public static final int STATISTICS_SCENE_FLICKER_NONE = 0; |
| 1672 | |
| 1673 | /** |
| 1674 | * @see CaptureResult#STATISTICS_SCENE_FLICKER |
| 1675 | */ |
| 1676 | public static final int STATISTICS_SCENE_FLICKER_50HZ = 1; |
| 1677 | |
| 1678 | /** |
| 1679 | * @see CaptureResult#STATISTICS_SCENE_FLICKER |
| 1680 | */ |
| 1681 | public static final int STATISTICS_SCENE_FLICKER_60HZ = 2; |
| 1682 | |
Igor Murashkin | 3865a84 | 2014-01-17 18:18:39 -0800 | [diff] [blame] | 1683 | // |
| 1684 | // Enumeration values for CaptureResult#SYNC_FRAME_NUMBER |
| 1685 | // |
| 1686 | |
| 1687 | /** |
| 1688 | * <p>The current result is not yet fully synchronized to any request. |
| 1689 | * Synchronization is in progress, and reading metadata from this |
| 1690 | * result may include a mix of data that have taken effect since the |
| 1691 | * last synchronization time.</p> |
| 1692 | * <p>In some future result, within {@link CameraCharacteristics#SYNC_MAX_LATENCY android.sync.maxLatency} frames, |
| 1693 | * this value will update to the actual frame number frame number |
| 1694 | * the result is guaranteed to be synchronized to (as long as the |
| 1695 | * request settings remain constant).</p> |
| 1696 | * |
| 1697 | * @see CameraCharacteristics#SYNC_MAX_LATENCY |
| 1698 | * @see CaptureResult#SYNC_FRAME_NUMBER |
| 1699 | * @hide |
| 1700 | */ |
| 1701 | public static final int SYNC_FRAME_NUMBER_CONVERGING = -1; |
| 1702 | |
| 1703 | /** |
| 1704 | * <p>The current result's synchronization status is unknown. The |
| 1705 | * result may have already converged, or it may be in progress. |
| 1706 | * Reading from this result may include some mix of settings from |
| 1707 | * past requests.</p> |
| 1708 | * <p>After a settings change, the new settings will eventually all |
| 1709 | * take effect for the output buffers and results. However, this |
| 1710 | * value will not change when that happens. Altering settings |
| 1711 | * rapidly may provide outcomes using mixes of settings from recent |
| 1712 | * requests.</p> |
| 1713 | * <p>This value is intended primarily for backwards compatibility with |
| 1714 | * the older camera implementations (for android.hardware.Camera).</p> |
| 1715 | * @see CaptureResult#SYNC_FRAME_NUMBER |
| 1716 | * @hide |
| 1717 | */ |
| 1718 | public static final int SYNC_FRAME_NUMBER_UNKNOWN = -2; |
| 1719 | |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 1720 | /*~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~ |
| 1721 | * End generated code |
| 1722 | *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~O@*/ |
| 1723 | |
Igor Murashkin | b519cc5 | 2013-07-02 11:23:44 -0700 | [diff] [blame] | 1724 | } |