blob: 1ce91f64b135ee0d282fa4371352c026d4d1960d [file] [log] [blame]
Eino-Ville Talvalab2675542012-12-12 13:29:45 -08001/*
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 Talvala2f1a2e42013-07-25 17:12:05 -070017package android.hardware.camera2;
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080018
Eino-Ville Talvala70c22072013-08-27 12:09:04 -070019import android.hardware.camera2.impl.CameraMetadataNative;
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080020
Igor Murashkin7a36a0f2013-09-10 18:13:09 -070021import java.lang.reflect.Field;
Igor Murashkin03fdb142013-09-30 12:14:58 -070022import java.lang.reflect.Modifier;
Igor Murashkin7a36a0f2013-09-10 18:13:09 -070023import java.util.ArrayList;
24import java.util.Collections;
25import java.util.List;
26
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080027/**
28 * The base class for camera controls and information.
29 *
Igor Murashkin7a36a0f2013-09-10 18:13:09 -070030 * <p>
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080031 * 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 Murashkin7a36a0f2013-09-10 18:13:09 -070034 * </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 Talvalab2675542012-12-12 13:29:45 -080041 *
42 * @see CameraDevice
43 * @see CameraManager
Igor Murashkin68f40062013-09-10 12:15:54 -070044 * @see CameraCharacteristics
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080045 **/
Eino-Ville Talvala70c22072013-08-27 12:09:04 -070046public abstract class CameraMetadata {
Igor Murashkin70725502013-06-25 20:27:06 +000047
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080048 /**
Igor Murashkin68f40062013-09-10 12:15:54 -070049 * 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 Talvala70c22072013-08-27 12:09:04 -070057 * @hide
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080058 */
Eino-Ville Talvala70c22072013-08-27 12:09:04 -070059 protected CameraMetadata() {
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080060 }
61
62 /**
Igor Murashkin7a36a0f2013-09-10 18:13:09 -070063 * Get a camera metadata field value.
64 *
65 * <p>The field definitions can be
Igor Murashkin68f40062013-09-10 12:15:54 -070066 * found in {@link CameraCharacteristics}, {@link CaptureResult}, and
Igor Murashkin7a36a0f2013-09-10 18:13:09 -070067 * {@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 Talvalab2675542012-12-12 13:29:45 -080071 *
Igor Murashkinb519cc52013-07-02 11:23:44 -070072 * @throws IllegalArgumentException if the key was not valid
73 *
Benjamin Hendricks24eb8a32013-08-15 12:46:22 -070074 * @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 Talvalab2675542012-12-12 13:29:45 -080076 */
Eino-Ville Talvala70c22072013-08-27 12:09:04 -070077 public abstract <T> T get(Key<T> key);
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080078
Igor Murashkin7a36a0f2013-09-10 18:13:09 -070079 /**
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 Murashkin03fdb142013-09-30 12:14:58 -0700109 // Filter for Keys that are public
110 if (field.getType().isAssignableFrom(Key.class) &&
111 (field.getModifiers() & Modifier.PUBLIC) != 0) {
Igor Murashkin7a36a0f2013-09-10 18:13:09 -0700112 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 Talvalab2675542012-12-12 13:29:45 -0800129 public static class Key<T> {
Igor Murashkinb519cc52013-07-02 11:23:44 -0700130
131 private boolean mHasTag;
132 private int mTag;
133 private final Class<T> mType;
Eino-Ville Talvala70c22072013-08-27 12:09:04 -0700134 private final String mName;
Igor Murashkinb519cc52013-07-02 11:23:44 -0700135
Eino-Ville Talvala70c22072013-08-27 12:09:04 -0700136 /**
Igor Murashkinb519cc52013-07-02 11:23:44 -0700137 * @hide
138 */
139 public Key(String name, Class<T> type) {
Eino-Ville Talvalab2675542012-12-12 13:29:45 -0800140 if (name == null) {
141 throw new NullPointerException("Key needs a valid name");
Igor Murashkinb519cc52013-07-02 11:23:44 -0700142 } else if (type == null) {
143 throw new NullPointerException("Type needs to be non-null");
Eino-Ville Talvalab2675542012-12-12 13:29:45 -0800144 }
145 mName = name;
Igor Murashkinb519cc52013-07-02 11:23:44 -0700146 mType = type;
Eino-Ville Talvalab2675542012-12-12 13:29:45 -0800147 }
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 He2f1680b2013-11-13 13:16:56 -0800171 return mName.equals(lhs.mName) && mType.equals(lhs.mType);
Eino-Ville Talvalab2675542012-12-12 13:29:45 -0800172 }
173
Igor Murashkinb519cc52013-07-02 11:23:44 -0700174 /**
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 Hendricks24eb8a32013-08-15 12:46:22 -0700182 * @return The tag numeric value corresponding to the string
Igor Murashkinb519cc52013-07-02 11:23:44 -0700183 *
184 * @hide
185 */
186 public final int getTag() {
187 if (!mHasTag) {
Eino-Ville Talvala70c22072013-08-27 12:09:04 -0700188 mTag = CameraMetadataNative.getTag(mName);
Igor Murashkinb519cc52013-07-02 11:23:44 -0700189 mHasTag = true;
190 }
191 return mTag;
192 }
Eino-Ville Talvalab2675542012-12-12 13:29:45 -0800193
Eino-Ville Talvala70c22072013-08-27 12:09:04 -0700194 /**
195 * @hide
196 */
197 public final Class<T> getType() {
198 return mType;
Igor Murashkin70725502013-06-25 20:27:06 +0000199 }
200 }
201
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700202 /*@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 Heff413932014-02-07 15:44:30 -0800209 // 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 Murashkin68f40062013-09-10 12:15:54 -0700248 // Enumeration values for CameraCharacteristics#LENS_FACING
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700249 //
250
251 /**
Igor Murashkin68f40062013-09-10 12:15:54 -0700252 * @see CameraCharacteristics#LENS_FACING
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700253 */
254 public static final int LENS_FACING_FRONT = 0;
255
256 /**
Igor Murashkin68f40062013-09-10 12:15:54 -0700257 * @see CameraCharacteristics#LENS_FACING
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700258 */
259 public static final int LENS_FACING_BACK = 1;
260
261 //
Igor Murashkine46c0da2014-02-07 18:34:37 -0800262 // 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 Murashkina23ffb52014-02-07 18:52:34 -0800412 // 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 Murashkin68f40062013-09-10 12:15:54 -0700426 // Enumeration values for CameraCharacteristics#LED_AVAILABLE_LEDS
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700427 //
428
429 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800430 * <p>android.led.transmit control is used</p>
Igor Murashkin68f40062013-09-10 12:15:54 -0700431 * @see CameraCharacteristics#LED_AVAILABLE_LEDS
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700432 * @hide
433 */
434 public static final int LED_AVAILABLE_LEDS_TRANSMIT = 0;
435
436 //
Igor Murashkin68f40062013-09-10 12:15:54 -0700437 // Enumeration values for CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700438 //
439
440 /**
Igor Murashkin68f40062013-09-10 12:15:54 -0700441 * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700442 */
443 public static final int INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED = 0;
444
445 /**
Igor Murashkin68f40062013-09-10 12:15:54 -0700446 * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700447 */
448 public static final int INFO_SUPPORTED_HARDWARE_LEVEL_FULL = 1;
449
450 //
Igor Murashkin3865a842014-01-17 18:18:39 -0800451 // 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 Talvala5a32b20c2013-08-08 12:38:36 -0700477 // Enumeration values for CaptureRequest#COLOR_CORRECTION_MODE
478 //
479
480 /**
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800481 * <p>Use the {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform} matrix
Igor Murashkin7d2a5c52014-01-17 15:07:52 -0800482 * 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 Talvala0da8bf52014-01-08 16:18:35 -0800488 *
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800489 * @see CaptureRequest#COLOR_CORRECTION_GAINS
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -0800490 * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
Igor Murashkin7d2a5c52014-01-17 15:07:52 -0800491 * @see CaptureRequest#CONTROL_AWB_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700492 * @see CaptureRequest#COLOR_CORRECTION_MODE
493 */
494 public static final int COLOR_CORRECTION_MODE_TRANSFORM_MATRIX = 0;
495
496 /**
Igor Murashkin7d2a5c52014-01-17 15:07:52 -0800497 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700506 * @see CaptureRequest#COLOR_CORRECTION_MODE
507 */
508 public static final int COLOR_CORRECTION_MODE_FAST = 1;
509
510 /**
Igor Murashkin7d2a5c52014-01-17 15:07:52 -0800511 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700520 * @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 Talvala0da8bf52014-01-08 16:18:35 -0800529 * <p>The camera device will not adjust exposure duration to
530 * avoid banding problems.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700531 * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
532 */
533 public static final int CONTROL_AE_ANTIBANDING_MODE_OFF = 0;
534
535 /**
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800536 * <p>The camera device will adjust exposure duration to
537 * avoid banding problems with 50Hz illumination sources.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700538 * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
539 */
540 public static final int CONTROL_AE_ANTIBANDING_MODE_50HZ = 1;
541
542 /**
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800543 * <p>The camera device will adjust exposure duration to
544 * avoid banding problems with 60Hz illumination
545 * sources.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700546 * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
547 */
548 public static final int CONTROL_AE_ANTIBANDING_MODE_60HZ = 2;
549
550 /**
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800551 * <p>The camera device will automatically adapt its
552 * antibanding routine to the current illumination
553 * conditions. This is the default.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700554 * @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 Talvala0da8bf52014-01-08 16:18:35 -0800563 * <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 He5f2a47f2014-01-16 15:44:41 -0800570 * @see CaptureRequest#SENSOR_EXPOSURE_TIME
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -0800571 * @see CaptureRequest#SENSOR_FRAME_DURATION
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800572 * @see CaptureRequest#SENSOR_SENSITIVITY
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700573 * @see CaptureRequest#CONTROL_AE_MODE
574 */
575 public static final int CONTROL_AE_MODE_OFF = 0;
576
577 /**
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800578 * <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 He5f2a47f2014-01-16 15:44:41 -0800586 * @see CaptureRequest#SENSOR_EXPOSURE_TIME
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -0800587 * @see CaptureRequest#SENSOR_FRAME_DURATION
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800588 * @see CaptureRequest#SENSOR_SENSITIVITY
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700589 * @see CaptureRequest#CONTROL_AE_MODE
590 */
591 public static final int CONTROL_AE_MODE_ON = 1;
592
593 /**
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800594 * <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 Murashkin3242f4f2014-01-15 12:27:41 -0800603 * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
Zhijun He5f2a47f2014-01-16 15:44:41 -0800604 * @see CaptureRequest#CONTROL_CAPTURE_INTENT
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700605 * @see CaptureRequest#CONTROL_AE_MODE
606 */
607 public static final int CONTROL_AE_MODE_ON_AUTO_FLASH = 2;
608
609 /**
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800610 * <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 Murashkin3242f4f2014-01-15 12:27:41 -0800619 * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
Zhijun He5f2a47f2014-01-16 15:44:41 -0800620 * @see CaptureRequest#CONTROL_CAPTURE_INTENT
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700621 * @see CaptureRequest#CONTROL_AE_MODE
622 */
623 public static final int CONTROL_AE_MODE_ON_ALWAYS_FLASH = 3;
624
625 /**
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800626 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700630 * @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 Murashkinace5bf02013-12-10 17:36:40 -0800639 * <p>The trigger is idle.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700640 * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
641 */
642 public static final int CONTROL_AE_PRECAPTURE_TRIGGER_IDLE = 0;
643
644 /**
Zhijun He228f4f92014-01-16 17:22:05 -0800645 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700648 * @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 Hef3537422013-12-16 16:56:35 -0800657 * <p>The auto-focus routine does not control the lens;
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800658 * {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance} is controlled by the
Igor Murashkinace5bf02013-12-10 17:36:40 -0800659 * application</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800660 *
661 * @see CaptureRequest#LENS_FOCUS_DISTANCE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700662 * @see CaptureRequest#CONTROL_AF_MODE
663 */
664 public static final int CONTROL_AF_MODE_OFF = 0;
665
666 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800667 * <p>If lens is not fixed focus.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800668 * <p>Use {@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance} to determine if lens
Zhijun Hef3537422013-12-16 16:56:35 -0800669 * is fixed-focus. In this mode, the lens does not move unless
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700670 * the autofocus trigger action is called. When that trigger
671 * is activated, AF must transition to ACTIVE_SCAN, then to
Zhijun Hef3537422013-12-16 16:56:35 -0800672 * the outcome of the scan (FOCUSED or NOT_FOCUSED).</p>
673 * <p>Triggering AF_CANCEL resets the lens position to default,
Igor Murashkinace5bf02013-12-10 17:36:40 -0800674 * and sets the AF state to INACTIVE.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800675 *
676 * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700677 * @see CaptureRequest#CONTROL_AF_MODE
678 */
679 public static final int CONTROL_AF_MODE_AUTO = 1;
680
681 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800682 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700685 * 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 Murashkinace5bf02013-12-10 17:36:40 -0800688 * INACTIVE.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700689 * @see CaptureRequest#CONTROL_AF_MODE
690 */
691 public static final int CONTROL_AF_MODE_MACRO = 2;
692
693 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800694 * <p>In this mode, the AF algorithm modifies the lens
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700695 * position continually to attempt to provide a
Igor Murashkinace5bf02013-12-10 17:36:40 -0800696 * constantly-in-focus image stream.</p>
697 * <p>The focusing behavior should be suitable for good quality
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700698 * 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 Murashkinace5bf02013-12-10 17:36:40 -0800705 * lens position until a cancel AF trigger is received.</p>
706 * <p>Once cancel is received, the algorithm should transition
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700707 * 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 Murashkinace5bf02013-12-10 17:36:40 -0800710 * canceled.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700711 * @see CaptureRequest#CONTROL_AF_MODE
712 */
713 public static final int CONTROL_AF_MODE_CONTINUOUS_VIDEO = 3;
714
715 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800716 * <p>In this mode, the AF algorithm modifies the lens
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700717 * position continually to attempt to provide a
Igor Murashkinace5bf02013-12-10 17:36:40 -0800718 * constantly-in-focus image stream.</p>
719 * <p>The focusing behavior should be suitable for still image
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700720 * 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 Murashkinace5bf02013-12-10 17:36:40 -0800728 * lens position until a cancel AF trigger is received.</p>
729 * <p>When the AF cancel trigger is activated, the algorithm
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700730 * should transition back to INACTIVE and then act as if it
Igor Murashkinace5bf02013-12-10 17:36:40 -0800731 * has just been started.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700732 * @see CaptureRequest#CONTROL_AF_MODE
733 */
734 public static final int CONTROL_AF_MODE_CONTINUOUS_PICTURE = 4;
735
736 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800737 * <p>Extended depth of field (digital focus). AF
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700738 * trigger is ignored, AF state should always be
Igor Murashkinace5bf02013-12-10 17:36:40 -0800739 * INACTIVE.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700740 * @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 Murashkinace5bf02013-12-10 17:36:40 -0800749 * <p>The trigger is idle.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700750 * @see CaptureRequest#CONTROL_AF_TRIGGER
751 */
752 public static final int CONTROL_AF_TRIGGER_IDLE = 0;
753
754 /**
Zhijun He228f4f92014-01-16 17:22:05 -0800755 * <p>Autofocus will trigger now.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700756 * @see CaptureRequest#CONTROL_AF_TRIGGER
757 */
758 public static final int CONTROL_AF_TRIGGER_START = 1;
759
760 /**
Zhijun He228f4f92014-01-16 17:22:05 -0800761 * <p>Autofocus will return to its initial
762 * state, and cancel any currently active trigger.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700763 * @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 He399f05d2014-01-15 11:31:30 -0800772 * <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 He399f05d2014-01-15 11:31:30 -0800778 * @see CaptureRequest#COLOR_CORRECTION_GAINS
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -0800779 * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700780 * @see CaptureRequest#CONTROL_AWB_MODE
781 */
782 public static final int CONTROL_AWB_MODE_OFF = 0;
783
784 /**
Zhijun He399f05d2014-01-15 11:31:30 -0800785 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700790 * @see CaptureRequest#CONTROL_AWB_MODE
791 */
792 public static final int CONTROL_AWB_MODE_AUTO = 1;
793
794 /**
Zhijun He399f05d2014-01-15 11:31:30 -0800795 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700800 * @see CaptureRequest#CONTROL_AWB_MODE
801 */
802 public static final int CONTROL_AWB_MODE_INCANDESCENT = 2;
803
804 /**
Zhijun He399f05d2014-01-15 11:31:30 -0800805 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700810 * @see CaptureRequest#CONTROL_AWB_MODE
811 */
812 public static final int CONTROL_AWB_MODE_FLUORESCENT = 3;
813
814 /**
Zhijun He399f05d2014-01-15 11:31:30 -0800815 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700820 * @see CaptureRequest#CONTROL_AWB_MODE
821 */
822 public static final int CONTROL_AWB_MODE_WARM_FLUORESCENT = 4;
823
824 /**
Zhijun He399f05d2014-01-15 11:31:30 -0800825 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700830 * @see CaptureRequest#CONTROL_AWB_MODE
831 */
832 public static final int CONTROL_AWB_MODE_DAYLIGHT = 5;
833
834 /**
Zhijun He399f05d2014-01-15 11:31:30 -0800835 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700838 * @see CaptureRequest#CONTROL_AWB_MODE
839 */
840 public static final int CONTROL_AWB_MODE_CLOUDY_DAYLIGHT = 6;
841
842 /**
Zhijun He399f05d2014-01-15 11:31:30 -0800843 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700846 * @see CaptureRequest#CONTROL_AWB_MODE
847 */
848 public static final int CONTROL_AWB_MODE_TWILIGHT = 7;
849
850 /**
Zhijun He399f05d2014-01-15 11:31:30 -0800851 * <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 Talvala5a32b20c2013-08-08 12:38:36 -0700854 * @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 Murashkinace5bf02013-12-10 17:36:40 -0800863 * <p>This request doesn't fall into the other
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700864 * categories. Default to preview-like
Igor Murashkinace5bf02013-12-10 17:36:40 -0800865 * behavior.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700866 * @see CaptureRequest#CONTROL_CAPTURE_INTENT
867 */
868 public static final int CONTROL_CAPTURE_INTENT_CUSTOM = 0;
869
870 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800871 * <p>This request is for a preview-like usecase. The
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700872 * precapture trigger may be used to start off a metering
Igor Murashkinace5bf02013-12-10 17:36:40 -0800873 * w/flash sequence</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700874 * @see CaptureRequest#CONTROL_CAPTURE_INTENT
875 */
876 public static final int CONTROL_CAPTURE_INTENT_PREVIEW = 1;
877
878 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800879 * <p>This request is for a still capture-type
880 * usecase.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700881 * @see CaptureRequest#CONTROL_CAPTURE_INTENT
882 */
883 public static final int CONTROL_CAPTURE_INTENT_STILL_CAPTURE = 2;
884
885 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800886 * <p>This request is for a video recording
887 * usecase.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700888 * @see CaptureRequest#CONTROL_CAPTURE_INTENT
889 */
890 public static final int CONTROL_CAPTURE_INTENT_VIDEO_RECORD = 3;
891
892 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800893 * <p>This request is for a video snapshot (still
894 * image while recording video) usecase</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700895 * @see CaptureRequest#CONTROL_CAPTURE_INTENT
896 */
897 public static final int CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT = 4;
898
899 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800900 * <p>This request is for a ZSL usecase; the
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700901 * application will stream full-resolution images and
902 * reprocess one or several later for a final
Igor Murashkinace5bf02013-12-10 17:36:40 -0800903 * capture</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700904 * @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 Brunk5f1dcfe2014-01-17 16:42:51 -0800913 * <p>No color effect will be applied.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700914 * @see CaptureRequest#CONTROL_EFFECT_MODE
915 */
916 public static final int CONTROL_EFFECT_MODE_OFF = 0;
917
918 /**
Ruben Brunk5f1dcfe2014-01-17 16:42:51 -0800919 * <p>A "monocolor" effect where the image is mapped into
920 * a single color. This will typically be grayscale.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700921 * @see CaptureRequest#CONTROL_EFFECT_MODE
922 */
923 public static final int CONTROL_EFFECT_MODE_MONO = 1;
924
925 /**
Ruben Brunk5f1dcfe2014-01-17 16:42:51 -0800926 * <p>A "photo-negative" effect where the image's colors
927 * are inverted.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700928 * @see CaptureRequest#CONTROL_EFFECT_MODE
929 */
930 public static final int CONTROL_EFFECT_MODE_NEGATIVE = 2;
931
932 /**
Ruben Brunk5f1dcfe2014-01-17 16:42:51 -0800933 * <p>A "solarisation" effect (Sabattier effect) where the
934 * image is wholly or partially reversed in
935 * tone.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700936 * @see CaptureRequest#CONTROL_EFFECT_MODE
937 */
938 public static final int CONTROL_EFFECT_MODE_SOLARIZE = 3;
939
940 /**
Ruben Brunk5f1dcfe2014-01-17 16:42:51 -0800941 * <p>A "sepia" effect where the image is mapped into warm
942 * gray, red, and brown tones.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700943 * @see CaptureRequest#CONTROL_EFFECT_MODE
944 */
945 public static final int CONTROL_EFFECT_MODE_SEPIA = 4;
946
947 /**
Ruben Brunk5f1dcfe2014-01-17 16:42:51 -0800948 * <p>A "posterization" effect where the image uses
949 * discrete regions of tone rather than a continuous
950 * gradient of tones.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700951 * @see CaptureRequest#CONTROL_EFFECT_MODE
952 */
953 public static final int CONTROL_EFFECT_MODE_POSTERIZE = 5;
954
955 /**
Ruben Brunk5f1dcfe2014-01-17 16:42:51 -0800956 * <p>A "whiteboard" effect where the image is typically displayed
957 * as regions of white, with black or grey details.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700958 * @see CaptureRequest#CONTROL_EFFECT_MODE
959 */
960 public static final int CONTROL_EFFECT_MODE_WHITEBOARD = 6;
961
962 /**
Ruben Brunk5f1dcfe2014-01-17 16:42:51 -0800963 * <p>A "blackboard" effect where the image is typically displayed
964 * as regions of black, with white or grey details.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700965 * @see CaptureRequest#CONTROL_EFFECT_MODE
966 */
967 public static final int CONTROL_EFFECT_MODE_BLACKBOARD = 7;
968
969 /**
Ruben Brunk5f1dcfe2014-01-17 16:42:51 -0800970 * <p>An "aqua" effect where a blue hue is added to the image.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700971 * @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 Murashkinace5bf02013-12-10 17:36:40 -0800980 * <p>Full application control of pipeline. All 3A
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700981 * routines are disabled, no other settings in
Igor Murashkinace5bf02013-12-10 17:36:40 -0800982 * android.control.* have any effect</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700983 * @see CaptureRequest#CONTROL_MODE
984 */
985 public static final int CONTROL_MODE_OFF = 0;
986
987 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800988 * <p>Use settings for each individual 3A routine.
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700989 * Manual control of capture parameters is disabled. All
990 * controls in android.control.* besides sceneMode take
Igor Murashkinace5bf02013-12-10 17:36:40 -0800991 * effect</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700992 * @see CaptureRequest#CONTROL_MODE
993 */
994 public static final int CONTROL_MODE_AUTO = 1;
995
996 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800997 * <p>Use specific scene mode. Enabling this disables
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700998 * 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 Murashkinace5bf02013-12-10 17:36:40 -08001003 * UNSUPPORTED</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001004 * @see CaptureRequest#CONTROL_MODE
1005 */
1006 public static final int CONTROL_MODE_USE_SCENE_MODE = 2;
1007
Zhijun He2d5e8972014-02-07 16:13:46 -08001008 /**
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 Talvala5a32b20c2013-08-08 12:38:36 -07001016 //
1017 // Enumeration values for CaptureRequest#CONTROL_SCENE_MODE
1018 //
1019
1020 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001021 * <p>Indicates that no scene modes are set for a given capture request.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001022 * @see CaptureRequest#CONTROL_SCENE_MODE
1023 */
Ruben Brunke6679362014-01-17 17:05:54 -08001024 public static final int CONTROL_SCENE_MODE_DISABLED = 0;
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001025
1026 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001027 * <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 Talvala5a32b20c2013-08-08 12:38:36 -07001040 * @see CaptureRequest#CONTROL_SCENE_MODE
1041 */
1042 public static final int CONTROL_SCENE_MODE_FACE_PRIORITY = 1;
1043
1044 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001045 * <p>Optimized for photos of quickly moving objects.
1046 * Similar to SPORTS.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001047 * @see CaptureRequest#CONTROL_SCENE_MODE
1048 */
1049 public static final int CONTROL_SCENE_MODE_ACTION = 2;
1050
1051 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001052 * <p>Optimized for still photos of people.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001053 * @see CaptureRequest#CONTROL_SCENE_MODE
1054 */
1055 public static final int CONTROL_SCENE_MODE_PORTRAIT = 3;
1056
1057 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001058 * <p>Optimized for photos of distant macroscopic objects.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001059 * @see CaptureRequest#CONTROL_SCENE_MODE
1060 */
1061 public static final int CONTROL_SCENE_MODE_LANDSCAPE = 4;
1062
1063 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001064 * <p>Optimized for low-light settings.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001065 * @see CaptureRequest#CONTROL_SCENE_MODE
1066 */
1067 public static final int CONTROL_SCENE_MODE_NIGHT = 5;
1068
1069 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001070 * <p>Optimized for still photos of people in low-light
1071 * settings.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001072 * @see CaptureRequest#CONTROL_SCENE_MODE
1073 */
1074 public static final int CONTROL_SCENE_MODE_NIGHT_PORTRAIT = 6;
1075
1076 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001077 * <p>Optimized for dim, indoor settings where flash must
1078 * remain off.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001079 * @see CaptureRequest#CONTROL_SCENE_MODE
1080 */
1081 public static final int CONTROL_SCENE_MODE_THEATRE = 7;
1082
1083 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001084 * <p>Optimized for bright, outdoor beach settings.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001085 * @see CaptureRequest#CONTROL_SCENE_MODE
1086 */
1087 public static final int CONTROL_SCENE_MODE_BEACH = 8;
1088
1089 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001090 * <p>Optimized for bright, outdoor settings containing snow.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001091 * @see CaptureRequest#CONTROL_SCENE_MODE
1092 */
1093 public static final int CONTROL_SCENE_MODE_SNOW = 9;
1094
1095 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001096 * <p>Optimized for scenes of the setting sun.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001097 * @see CaptureRequest#CONTROL_SCENE_MODE
1098 */
1099 public static final int CONTROL_SCENE_MODE_SUNSET = 10;
1100
1101 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001102 * <p>Optimized to avoid blurry photos due to small amounts of
1103 * device motion (for example: due to hand shake).</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001104 * @see CaptureRequest#CONTROL_SCENE_MODE
1105 */
1106 public static final int CONTROL_SCENE_MODE_STEADYPHOTO = 11;
1107
1108 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001109 * <p>Optimized for nighttime photos of fireworks.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001110 * @see CaptureRequest#CONTROL_SCENE_MODE
1111 */
1112 public static final int CONTROL_SCENE_MODE_FIREWORKS = 12;
1113
1114 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001115 * <p>Optimized for photos of quickly moving people.
1116 * Similar to ACTION.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001117 * @see CaptureRequest#CONTROL_SCENE_MODE
1118 */
1119 public static final int CONTROL_SCENE_MODE_SPORTS = 13;
1120
1121 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001122 * <p>Optimized for dim, indoor settings with multiple moving
1123 * people.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001124 * @see CaptureRequest#CONTROL_SCENE_MODE
1125 */
1126 public static final int CONTROL_SCENE_MODE_PARTY = 14;
1127
1128 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001129 * <p>Optimized for dim settings where the main light source
1130 * is a flame.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001131 * @see CaptureRequest#CONTROL_SCENE_MODE
1132 */
1133 public static final int CONTROL_SCENE_MODE_CANDLELIGHT = 15;
1134
1135 /**
Ruben Brunke6679362014-01-17 17:05:54 -08001136 * <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 Talvala5a32b20c2013-08-08 12:38:36 -07001139 * @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 Murashkinace5bf02013-12-10 17:36:40 -08001148 * <p>No edge enhancement is applied</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001149 * @see CaptureRequest#EDGE_MODE
1150 */
1151 public static final int EDGE_MODE_OFF = 0;
1152
1153 /**
Zhijun He28079362013-12-17 10:35:40 -08001154 * <p>Must not slow down frame rate relative to sensor
1155 * output</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001156 * @see CaptureRequest#EDGE_MODE
1157 */
1158 public static final int EDGE_MODE_FAST = 1;
1159
1160 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001161 * <p>Frame rate may be reduced by high
1162 * quality</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001163 * @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 He66d065a2014-01-16 18:18:50 -08001172 * <p>Do not fire the flash for this capture.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001173 * @see CaptureRequest#FLASH_MODE
1174 */
1175 public static final int FLASH_MODE_OFF = 0;
1176
1177 /**
Zhijun He66d065a2014-01-16 18:18:50 -08001178 * <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 Talvala5a32b20c2013-08-08 12:38:36 -07001181 * @see CaptureRequest#FLASH_MODE
1182 */
1183 public static final int FLASH_MODE_SINGLE = 1;
1184
1185 /**
Zhijun He66d065a2014-01-16 18:18:50 -08001186 * <p>Transition flash to continuously on.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001187 * @see CaptureRequest#FLASH_MODE
1188 */
1189 public static final int FLASH_MODE_TORCH = 2;
1190
1191 //
Ruben Brunkeba1b3a2014-02-07 18:23:50 -08001192 // 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 Talvala5a32b20c2013-08-08 12:38:36 -07001220 // Enumeration values for CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE
1221 //
1222
1223 /**
Ruben Brunk00849b32014-01-17 18:30:23 -08001224 * <p>Optical stabilization is unavailable.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001225 * @see CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE
1226 */
1227 public static final int LENS_OPTICAL_STABILIZATION_MODE_OFF = 0;
1228
1229 /**
Ruben Brunk00849b32014-01-17 18:30:23 -08001230 * <p>Optical stabilization is enabled.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001231 * @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 Murashkinace5bf02013-12-10 17:36:40 -08001240 * <p>No noise reduction is applied</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001241 * @see CaptureRequest#NOISE_REDUCTION_MODE
1242 */
1243 public static final int NOISE_REDUCTION_MODE_OFF = 0;
1244
1245 /**
Zhijun He28079362013-12-17 10:35:40 -08001246 * <p>Must not slow down frame rate relative to sensor
1247 * output</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001248 * @see CaptureRequest#NOISE_REDUCTION_MODE
1249 */
1250 public static final int NOISE_REDUCTION_MODE_FAST = 1;
1251
1252 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001253 * <p>May slow down frame rate to provide highest
1254 * quality</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001255 * @see CaptureRequest#NOISE_REDUCTION_MODE
1256 */
1257 public static final int NOISE_REDUCTION_MODE_HIGH_QUALITY = 2;
1258
1259 //
Igor Murashkinc127f052014-01-17 18:06:02 -08001260 // 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 Heba93fe62014-01-17 16:43:05 -08001365 // 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 Talvala5a32b20c2013-08-08 12:38:36 -07001390 // 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 Murashkinace5bf02013-12-10 17:36:40 -08001399 * <p>Optional Return rectangle and confidence
1400 * only</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001401 * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
1402 */
1403 public static final int STATISTICS_FACE_DETECT_MODE_SIMPLE = 1;
1404
1405 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001406 * <p>Optional Return all face
1407 * metadata</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001408 * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
1409 */
1410 public static final int STATISTICS_FACE_DETECT_MODE_FULL = 2;
1411
1412 //
Eino-Ville Talvalad96748b2013-09-12 11:11:27 -07001413 // 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 Talvala5a32b20c2013-08-08 12:38:36 -07001427 // Enumeration values for CaptureRequest#TONEMAP_MODE
1428 //
1429
1430 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001431 * <p>Use the tone mapping curve specified in
Igor Murashkine0060932014-01-17 17:24:11 -08001432 * 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 Talvala5a32b20c2013-08-08 12:38:36 -07001443 * @see CaptureRequest#TONEMAP_MODE
1444 */
1445 public static final int TONEMAP_MODE_CONTRAST_CURVE = 0;
1446
1447 /**
Igor Murashkine0060932014-01-17 17:24:11 -08001448 * <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 Talvala5a32b20c2013-08-08 12:38:36 -07001450 * @see CaptureRequest#TONEMAP_MODE
1451 */
1452 public static final int TONEMAP_MODE_FAST = 1;
1453
1454 /**
Igor Murashkine0060932014-01-17 17:24:11 -08001455 * <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 Talvala5a32b20c2013-08-08 12:38:36 -07001457 * @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 He228f4f92014-01-16 17:22:05 -08001466 * <p>AE is off or recently reset. When a camera device is opened, it starts in
Igor Murashkinace5bf02013-12-10 17:36:40 -08001467 * this state.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001468 * @see CaptureResult#CONTROL_AE_STATE
1469 */
1470 public static final int CONTROL_AE_STATE_INACTIVE = 0;
1471
1472 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001473 * <p>AE doesn't yet have a good set of control values
Zhijun He228f4f92014-01-16 17:22:05 -08001474 * for the current scene.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001475 * @see CaptureResult#CONTROL_AE_STATE
1476 */
1477 public static final int CONTROL_AE_STATE_SEARCHING = 1;
1478
1479 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001480 * <p>AE has a good set of control values for the
Zhijun He228f4f92014-01-16 17:22:05 -08001481 * current scene.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001482 * @see CaptureResult#CONTROL_AE_STATE
1483 */
1484 public static final int CONTROL_AE_STATE_CONVERGED = 2;
1485
1486 /**
Zhijun He228f4f92014-01-16 17:22:05 -08001487 * <p>AE has been locked.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001488 * @see CaptureResult#CONTROL_AE_STATE
1489 */
1490 public static final int CONTROL_AE_STATE_LOCKED = 3;
1491
1492 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001493 * <p>AE has a good set of control values, but flash
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001494 * needs to be fired for good quality still
Zhijun He228f4f92014-01-16 17:22:05 -08001495 * capture.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001496 * @see CaptureResult#CONTROL_AE_STATE
1497 */
1498 public static final int CONTROL_AE_STATE_FLASH_REQUIRED = 4;
1499
1500 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001501 * <p>AE has been asked to do a precapture sequence
Zhijun He228f4f92014-01-16 17:22:05 -08001502 * (through the {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger} START),
1503 * and is currently executing it. Once PRECAPTURE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001504 * completes, AE will transition to CONVERGED or
Zhijun He228f4f92014-01-16 17:22:05 -08001505 * FLASH_REQUIRED as appropriate.</p>
1506 *
1507 * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001508 * @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 Murashkinace5bf02013-12-10 17:36:40 -08001517 * <p>AF off or has not yet tried to scan/been asked
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001518 * to scan. When a camera device is opened, it starts in
Igor Murashkinace5bf02013-12-10 17:36:40 -08001519 * this state.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001520 * @see CaptureResult#CONTROL_AF_STATE
1521 */
1522 public static final int CONTROL_AF_STATE_INACTIVE = 0;
1523
1524 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001525 * <p>if CONTINUOUS_* modes are supported. AF is
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001526 * currently doing an AF scan initiated by a continuous
Igor Murashkinace5bf02013-12-10 17:36:40 -08001527 * autofocus mode</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001528 * @see CaptureResult#CONTROL_AF_STATE
1529 */
1530 public static final int CONTROL_AF_STATE_PASSIVE_SCAN = 1;
1531
1532 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001533 * <p>if CONTINUOUS_* modes are supported. AF currently
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001534 * believes it is in focus, but may restart scanning at
Igor Murashkinace5bf02013-12-10 17:36:40 -08001535 * any time.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001536 * @see CaptureResult#CONTROL_AF_STATE
1537 */
1538 public static final int CONTROL_AF_STATE_PASSIVE_FOCUSED = 2;
1539
1540 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001541 * <p>if AUTO or MACRO modes are supported. AF is doing
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001542 * an AF scan because it was triggered by AF
Igor Murashkinace5bf02013-12-10 17:36:40 -08001543 * trigger</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001544 * @see CaptureResult#CONTROL_AF_STATE
1545 */
1546 public static final int CONTROL_AF_STATE_ACTIVE_SCAN = 3;
1547
1548 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001549 * <p>if any AF mode besides OFF is supported. AF
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001550 * believes it is focused correctly and is
Igor Murashkinace5bf02013-12-10 17:36:40 -08001551 * locked</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001552 * @see CaptureResult#CONTROL_AF_STATE
1553 */
1554 public static final int CONTROL_AF_STATE_FOCUSED_LOCKED = 4;
1555
1556 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001557 * <p>if any AF mode besides OFF is supported. AF has
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001558 * failed to focus successfully and is
Igor Murashkinace5bf02013-12-10 17:36:40 -08001559 * locked</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001560 * @see CaptureResult#CONTROL_AF_STATE
1561 */
1562 public static final int CONTROL_AF_STATE_NOT_FOCUSED_LOCKED = 5;
1563
Eino-Ville Talvala9f880f72013-09-20 17:50:41 -07001564 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001565 * <p>if CONTINUOUS_* modes are supported. AF finished a
Eino-Ville Talvala9f880f72013-09-20 17:50:41 -07001566 * passive scan without finding focus, and may restart
Igor Murashkinace5bf02013-12-10 17:36:40 -08001567 * scanning at any time.</p>
Eino-Ville Talvala9f880f72013-09-20 17:50:41 -07001568 * @see CaptureResult#CONTROL_AF_STATE
1569 */
1570 public static final int CONTROL_AF_STATE_PASSIVE_UNFOCUSED = 6;
1571
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001572 //
1573 // Enumeration values for CaptureResult#CONTROL_AWB_STATE
1574 //
1575
1576 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001577 * <p>AWB is not in auto mode. When a camera device is opened, it
1578 * starts in this state.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001579 * @see CaptureResult#CONTROL_AWB_STATE
1580 */
1581 public static final int CONTROL_AWB_STATE_INACTIVE = 0;
1582
1583 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001584 * <p>AWB doesn't yet have a good set of control
Zhijun He228f4f92014-01-16 17:22:05 -08001585 * values for the current scene.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001586 * @see CaptureResult#CONTROL_AWB_STATE
1587 */
1588 public static final int CONTROL_AWB_STATE_SEARCHING = 1;
1589
1590 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001591 * <p>AWB has a good set of control values for the
Zhijun He228f4f92014-01-16 17:22:05 -08001592 * current scene.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001593 * @see CaptureResult#CONTROL_AWB_STATE
1594 */
1595 public static final int CONTROL_AWB_STATE_CONVERGED = 2;
1596
1597 /**
Zhijun He228f4f92014-01-16 17:22:05 -08001598 * <p>AWB has been locked.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001599 * @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 Murashkinace5bf02013-12-10 17:36:40 -08001608 * <p>No flash on camera</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001609 * @see CaptureResult#FLASH_STATE
1610 */
1611 public static final int FLASH_STATE_UNAVAILABLE = 0;
1612
1613 /**
Zhijun Heca1b73a2014-02-03 12:39:53 -08001614 * <p>if {@link CameraCharacteristics#FLASH_INFO_AVAILABLE android.flash.info.available} is true Flash is
Igor Murashkinace5bf02013-12-10 17:36:40 -08001615 * charging and cannot be fired</p>
Zhijun Heca1b73a2014-02-03 12:39:53 -08001616 *
1617 * @see CameraCharacteristics#FLASH_INFO_AVAILABLE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001618 * @see CaptureResult#FLASH_STATE
1619 */
1620 public static final int FLASH_STATE_CHARGING = 1;
1621
1622 /**
Zhijun Heca1b73a2014-02-03 12:39:53 -08001623 * <p>if {@link CameraCharacteristics#FLASH_INFO_AVAILABLE android.flash.info.available} is true Flash is
Igor Murashkinace5bf02013-12-10 17:36:40 -08001624 * ready to fire</p>
Zhijun Heca1b73a2014-02-03 12:39:53 -08001625 *
1626 * @see CameraCharacteristics#FLASH_INFO_AVAILABLE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001627 * @see CaptureResult#FLASH_STATE
1628 */
1629 public static final int FLASH_STATE_READY = 2;
1630
1631 /**
Zhijun Heca1b73a2014-02-03 12:39:53 -08001632 * <p>if {@link CameraCharacteristics#FLASH_INFO_AVAILABLE android.flash.info.available} is true Flash fired
Igor Murashkinace5bf02013-12-10 17:36:40 -08001633 * for this capture</p>
Zhijun Heca1b73a2014-02-03 12:39:53 -08001634 *
1635 * @see CameraCharacteristics#FLASH_INFO_AVAILABLE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001636 * @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 Heca1b73a2014-02-03 12:39:53 -08001645 * <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 Talvala5a32b20c2013-08-08 12:38:36 -07001650 * @see CaptureResult#LENS_STATE
1651 */
1652 public static final int LENS_STATE_STATIONARY = 0;
1653
Igor Murashkin9ea4ae62013-09-11 21:40:11 -07001654 /**
Zhijun Heca1b73a2014-02-03 12:39:53 -08001655 * <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 Murashkin9ea4ae62013-09-11 21:40:11 -07001660 * @see CaptureResult#LENS_STATE
1661 */
1662 public static final int LENS_STATE_MOVING = 1;
1663
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001664 //
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 Murashkin3865a842014-01-17 18:18:39 -08001683 //
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 Talvala5a32b20c2013-08-08 12:38:36 -07001720 /*~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~
1721 * End generated code
1722 *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~O@*/
1723
Igor Murashkinb519cc52013-07-02 11:23:44 -07001724}