CameraMetadata.java revision 611fecec08eb9efeb4393b986d590369df5c812f
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
17package android.hardware.camera2;
18
19import android.hardware.camera2.impl.CameraMetadataNative;
20import android.util.Log;
21
22import java.lang.reflect.Field;
23import java.lang.reflect.Modifier;
24import java.util.ArrayList;
25import java.util.Arrays;
26import java.util.Collections;
27import java.util.List;
28
29/**
30 * The base class for camera controls and information.
31 *
32 * <p>
33 * This class defines the basic key/value map used for querying for camera
34 * characteristics or capture results, and for setting camera request
35 * parameters.
36 * </p>
37 *
38 * <p>
39 * All instances of CameraMetadata are immutable. The list of keys with {@link #getKeys()}
40 * never changes, nor do the values returned by any key with {@code #get} throughout
41 * the lifetime of the object.
42 * </p>
43 *
44 * @see CameraDevice
45 * @see CameraManager
46 * @see CameraCharacteristics
47 **/
48public abstract class CameraMetadata<TKey> {
49
50    private static final String TAG = "CameraMetadataAb";
51    private static final boolean VERBOSE = false;
52
53    /**
54     * Set a camera metadata field to a value. The field definitions can be
55     * found in {@link CameraCharacteristics}, {@link CaptureResult}, and
56     * {@link CaptureRequest}.
57     *
58     * @param key The metadata field to write.
59     * @param value The value to set the field to, which must be of a matching
60     * type to the key.
61     *
62     * @hide
63     */
64    protected CameraMetadata() {
65    }
66
67    /**
68     * Get a camera metadata field value.
69     *
70     * <p>The field definitions can be
71     * found in {@link CameraCharacteristics}, {@link CaptureResult}, and
72     * {@link CaptureRequest}.</p>
73     *
74     * <p>Querying the value for the same key more than once will return a value
75     * which is equal to the previous queried value.</p>
76     *
77     * @throws IllegalArgumentException if the key was not valid
78     *
79     * @param key The metadata field to read.
80     * @return The value of that key, or {@code null} if the field is not set.
81     *
82     * @hide
83     */
84     protected abstract <T> T getProtected(TKey key);
85
86     /**
87      * @hide
88      */
89     protected abstract Class<TKey> getKeyClass();
90
91    /**
92     * Returns a list of the keys contained in this map.
93     *
94     * <p>The list returned is not modifiable, so any attempts to modify it will throw
95     * a {@code UnsupportedOperationException}.</p>
96     *
97     * <p>All values retrieved by a key from this list with {@code #get} are guaranteed to be
98     * non-{@code null}. Each key is only listed once in the list. The order of the keys
99     * is undefined.</p>
100     *
101     * @return List of the keys contained in this map.
102     */
103    @SuppressWarnings("unchecked")
104    public List<TKey> getKeys() {
105        Class<CameraMetadata<TKey>> thisClass = (Class<CameraMetadata<TKey>>) getClass();
106        return Collections.unmodifiableList(
107                getKeysStatic(thisClass, getKeyClass(), this, /*filterTags*/null));
108    }
109
110    /**
111     * Return a list of all the Key<?> that are declared as a field inside of the class
112     * {@code type}.
113     *
114     * <p>
115     * Optionally, if {@code instance} is not null, then filter out any keys with null values.
116     * </p>
117     *
118     * <p>
119     * Optionally, if {@code filterTags} is not {@code null}, then filter out any keys
120     * whose native {@code tag} is not in {@code filterTags}. The {@code filterTags} array will be
121     * sorted as a side effect.
122     * </p>
123     */
124     /*package*/ @SuppressWarnings("unchecked")
125    static <TKey> ArrayList<TKey> getKeysStatic(
126             Class<?> type, Class<TKey> keyClass,
127             CameraMetadata<TKey> instance,
128             int[] filterTags) {
129
130        if (VERBOSE) Log.v(TAG, "getKeysStatic for " + type);
131
132        if (filterTags != null) {
133            Arrays.sort(filterTags);
134        }
135
136        ArrayList<TKey> keyList = new ArrayList<TKey>();
137
138        Field[] fields = type.getDeclaredFields();
139        for (Field field : fields) {
140            // Filter for Keys that are public
141            if (field.getType().isAssignableFrom(keyClass) &&
142                    (field.getModifiers() & Modifier.PUBLIC) != 0) {
143
144                TKey key;
145                try {
146                    key = (TKey) field.get(instance);
147                } catch (IllegalAccessException e) {
148                    throw new AssertionError("Can't get IllegalAccessException", e);
149                } catch (IllegalArgumentException e) {
150                    throw new AssertionError("Can't get IllegalArgumentException", e);
151                }
152
153                if (instance == null || instance.getProtected(key) != null) {
154                    if (shouldKeyBeAdded(key, filterTags)) {
155                        keyList.add(key);
156
157                        if (VERBOSE) {
158                            Log.v(TAG, "getKeysStatic - key was added - " + key);
159                        }
160                    } else if (VERBOSE) {
161                        Log.v(TAG, "getKeysStatic - key was filtered - " + key);
162                    }
163                }
164            }
165        }
166
167        return keyList;
168    }
169
170    @SuppressWarnings("rawtypes")
171    private static <TKey> boolean shouldKeyBeAdded(TKey key, int[] filterTags) {
172        if (key == null) {
173            throw new NullPointerException("key must not be null");
174        }
175
176        CameraMetadataNative.Key nativeKey;
177
178        /*
179         * Get the native key from the public api key
180         */
181        if (key instanceof CameraCharacteristics.Key) {
182            nativeKey = ((CameraCharacteristics.Key)key).getNativeKey();
183        } else if (key instanceof CaptureResult.Key) {
184            nativeKey = ((CaptureResult.Key)key).getNativeKey();
185        } else if (key instanceof CaptureRequest.Key) {
186            nativeKey = ((CaptureRequest.Key)key).getNativeKey();
187        } else {
188            // Reject fields that aren't a key
189            throw new IllegalArgumentException("key type must be that of a metadata key");
190        }
191
192        // No filtering necessary
193        if (filterTags == null) {
194            return true;
195        }
196
197        int keyTag = nativeKey.getTag();
198
199        // non-negative result is returned iff the value is in the array
200        return Arrays.binarySearch(filterTags, keyTag) >= 0;
201    }
202
203    /*@O~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~
204     * The enum values below this point are generated from metadata
205     * definitions in /system/media/camera/docs. Do not modify by hand or
206     * modify the comment blocks at the start or end.
207     *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~*/
208
209    //
210    // Enumeration values for CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION
211    //
212
213    /**
214     * <p>The lens focus distance is not accurate, and the units used for
215     * {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance} do not correspond to any physical units.</p>
216     * <p>Setting the lens to the same focus distance on separate occasions may
217     * result in a different real focus distance, depending on factors such
218     * as the orientation of the device, the age of the focusing mechanism,
219     * and the device temperature. The focus distance value will still be
220     * in the range of <code>[0, {@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance}]</code>, where 0
221     * represents the farthest focus.</p>
222     *
223     * @see CaptureRequest#LENS_FOCUS_DISTANCE
224     * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE
225     * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION
226     */
227    public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED = 0;
228
229    /**
230     * <p>The lens focus distance is measured in diopters.</p>
231     * <p>However, setting the lens to the same focus distance
232     * on separate occasions may result in a different real
233     * focus distance, depending on factors such as the
234     * orientation of the device, the age of the focusing
235     * mechanism, and the device temperature.</p>
236     * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION
237     */
238    public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE = 1;
239
240    /**
241     * <p>The lens focus distance is measured in diopters, and
242     * is calibrated.</p>
243     * <p>The lens mechanism is calibrated so that setting the
244     * same focus distance is repeatable on multiple
245     * occasions with good accuracy, and the focus distance
246     * corresponds to the real physical distance to the plane
247     * of best focus.</p>
248     * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION
249     */
250    public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED = 2;
251
252    //
253    // Enumeration values for CameraCharacteristics#LENS_FACING
254    //
255
256    /**
257     * <p>The camera device faces the same direction as the device's screen.</p>
258     * @see CameraCharacteristics#LENS_FACING
259     */
260    public static final int LENS_FACING_FRONT = 0;
261
262    /**
263     * <p>The camera device faces the opposite direction as the device's screen.</p>
264     * @see CameraCharacteristics#LENS_FACING
265     */
266    public static final int LENS_FACING_BACK = 1;
267
268    //
269    // Enumeration values for CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
270    //
271
272    /**
273     * <p>The minimal set of capabilities that every camera
274     * device (regardless of {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel})
275     * supports.</p>
276     * <p>This capability is listed by all devices, and
277     * indicates that the camera device has a feature set
278     * that's comparable to the baseline requirements for the
279     * older android.hardware.Camera API.</p>
280     *
281     * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
282     * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
283     */
284    public static final int REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE = 0;
285
286    /**
287     * <p>The camera device can be manually controlled (3A algorithms such
288     * as auto-exposure, and auto-focus can be bypassed).
289     * The camera device supports basic manual control of the sensor image
290     * acquisition related stages. This means the following controls are
291     * guaranteed to be supported:</p>
292     * <ul>
293     * <li>Manual frame duration control<ul>
294     * <li>{@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration}</li>
295     * <li>{@link CameraCharacteristics#SENSOR_INFO_MAX_FRAME_DURATION android.sensor.info.maxFrameDuration}</li>
296     * </ul>
297     * </li>
298     * <li>Manual exposure control<ul>
299     * <li>{@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime}</li>
300     * <li>{@link CameraCharacteristics#SENSOR_INFO_EXPOSURE_TIME_RANGE android.sensor.info.exposureTimeRange}</li>
301     * </ul>
302     * </li>
303     * <li>Manual sensitivity control<ul>
304     * <li>{@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}</li>
305     * <li>{@link CameraCharacteristics#SENSOR_INFO_SENSITIVITY_RANGE android.sensor.info.sensitivityRange}</li>
306     * </ul>
307     * </li>
308     * <li>Manual lens control (if the lens is adjustable)<ul>
309     * <li>android.lens.*</li>
310     * </ul>
311     * </li>
312     * <li>Manual flash control (if a flash unit is present)<ul>
313     * <li>android.flash.*</li>
314     * </ul>
315     * </li>
316     * <li>Manual black level locking<ul>
317     * <li>{@link CaptureRequest#BLACK_LEVEL_LOCK android.blackLevel.lock}</li>
318     * </ul>
319     * </li>
320     * </ul>
321     * <p>If any of the above 3A algorithms are enabled, then the camera
322     * device will accurately report the values applied by 3A in the
323     * result.</p>
324     * <p>A given camera device may also support additional manual sensor controls,
325     * but this capability only covers the above list of controls.</p>
326     * <p>If this is supported, {@link CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP android.scaler.streamConfigurationMap} will
327     * additionally return a min frame duration that is greater than
328     * zero for each supported size-format combination.</p>
329     *
330     * @see CaptureRequest#BLACK_LEVEL_LOCK
331     * @see CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP
332     * @see CaptureRequest#SENSOR_EXPOSURE_TIME
333     * @see CaptureRequest#SENSOR_FRAME_DURATION
334     * @see CameraCharacteristics#SENSOR_INFO_EXPOSURE_TIME_RANGE
335     * @see CameraCharacteristics#SENSOR_INFO_MAX_FRAME_DURATION
336     * @see CameraCharacteristics#SENSOR_INFO_SENSITIVITY_RANGE
337     * @see CaptureRequest#SENSOR_SENSITIVITY
338     * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
339     */
340    public static final int REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR = 1;
341
342    /**
343     * <p>The camera device post-processing stages can be manually controlled.
344     * The camera device supports basic manual control of the image post-processing
345     * stages. This means the following controls are guaranteed to be supported:</p>
346     * <ul>
347     * <li>Manual tonemap control<ul>
348     * <li>{@link CaptureRequest#TONEMAP_CURVE android.tonemap.curve}</li>
349     * <li>{@link CaptureRequest#TONEMAP_MODE android.tonemap.mode}</li>
350     * <li>{@link CameraCharacteristics#TONEMAP_MAX_CURVE_POINTS android.tonemap.maxCurvePoints}</li>
351     * </ul>
352     * </li>
353     * <li>Manual white balance control<ul>
354     * <li>{@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}</li>
355     * <li>{@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains}</li>
356     * </ul>
357     * </li>
358     * <li>Manual lens shading map control<ul>
359     * <li>{@link CaptureRequest#SHADING_MODE android.shading.mode}</li>
360     * <li>{@link CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE android.statistics.lensShadingMapMode}</li>
361     * <li>android.statistics.lensShadingMap</li>
362     * <li>android.lens.info.shadingMapSize</li>
363     * </ul>
364     * </li>
365     * <li>Manual aberration correction control (if aberration correction is supported)<ul>
366     * <li>{@link CaptureRequest#COLOR_CORRECTION_ABERRATION_CORRECTION_MODE android.colorCorrection.aberrationCorrectionMode}</li>
367     * <li>{@link CameraCharacteristics#COLOR_CORRECTION_AVAILABLE_ABERRATION_CORRECTION_MODES android.colorCorrection.availableAberrationCorrectionModes}</li>
368     * </ul>
369     * </li>
370     * </ul>
371     * <p>If auto white balance is enabled, then the camera device
372     * will accurately report the values applied by AWB in the result.</p>
373     * <p>A given camera device may also support additional post-processing
374     * controls, but this capability only covers the above list of controls.</p>
375     *
376     * @see CaptureRequest#COLOR_CORRECTION_ABERRATION_CORRECTION_MODE
377     * @see CameraCharacteristics#COLOR_CORRECTION_AVAILABLE_ABERRATION_CORRECTION_MODES
378     * @see CaptureRequest#COLOR_CORRECTION_GAINS
379     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
380     * @see CaptureRequest#SHADING_MODE
381     * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
382     * @see CaptureRequest#TONEMAP_CURVE
383     * @see CameraCharacteristics#TONEMAP_MAX_CURVE_POINTS
384     * @see CaptureRequest#TONEMAP_MODE
385     * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
386     */
387    public static final int REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING = 2;
388
389    /**
390     * <p>The camera device supports outputting RAW buffers and
391     * metadata for interpreting them.</p>
392     * <p>Devices supporting the RAW capability allow both for
393     * saving DNG files, and for direct application processing of
394     * raw sensor images.</p>
395     * <ul>
396     * <li>RAW_SENSOR is supported as an output format.</li>
397     * <li>The maximum available resolution for RAW_SENSOR streams
398     * will match either the value in
399     * {@link CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE android.sensor.info.pixelArraySize} or
400     * {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}.</li>
401     * <li>All DNG-related optional metadata entries are provided
402     * by the camera device.</li>
403     * </ul>
404     *
405     * @see CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE
406     * @see CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE
407     * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
408     */
409    public static final int REQUEST_AVAILABLE_CAPABILITIES_RAW = 3;
410
411    /**
412     * <p>The camera device supports the Zero Shutter Lag use case.</p>
413     * <ul>
414     * <li>At least one input stream can be used.</li>
415     * <li>RAW_OPAQUE is supported as an output/input format</li>
416     * <li>Using RAW_OPAQUE does not cause a frame rate drop
417     * relative to the sensor's maximum capture rate (at that
418     * resolution).</li>
419     * <li>RAW_OPAQUE will be reprocessable into both YUV_420_888
420     * and JPEG formats.</li>
421     * <li>The maximum available resolution for RAW_OPAQUE streams
422     * (both input/output) will match the maximum available
423     * resolution of JPEG streams.</li>
424     * </ul>
425     * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
426     * @hide
427     */
428    public static final int REQUEST_AVAILABLE_CAPABILITIES_ZSL = 4;
429
430    //
431    // Enumeration values for CameraCharacteristics#SCALER_CROPPING_TYPE
432    //
433
434    /**
435     * <p>The camera device only supports centered crop regions.</p>
436     * @see CameraCharacteristics#SCALER_CROPPING_TYPE
437     */
438    public static final int SCALER_CROPPING_TYPE_CENTER_ONLY = 0;
439
440    /**
441     * <p>The camera device supports arbitrarily chosen crop regions.</p>
442     * @see CameraCharacteristics#SCALER_CROPPING_TYPE
443     */
444    public static final int SCALER_CROPPING_TYPE_FREEFORM = 1;
445
446    //
447    // Enumeration values for CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
448    //
449
450    /**
451     * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
452     */
453    public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB = 0;
454
455    /**
456     * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
457     */
458    public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GRBG = 1;
459
460    /**
461     * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
462     */
463    public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GBRG = 2;
464
465    /**
466     * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
467     */
468    public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR = 3;
469
470    /**
471     * <p>Sensor is not Bayer; output has 3 16-bit
472     * values for each pixel, instead of just 1 16-bit value
473     * per pixel.</p>
474     * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
475     */
476    public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGB = 4;
477
478    //
479    // Enumeration values for CameraCharacteristics#SENSOR_INFO_TIMESTAMP_CALIBRATION
480    //
481
482    /**
483     * <p>Timestamps from {@link CaptureResult#SENSOR_TIMESTAMP android.sensor.timestamp} are in nanoseconds and monotonic,
484     * but can not be compared to timestamps from other subsystems
485     * (e.g. accelerometer, gyro etc.), or other instances of the same or different
486     * camera devices in the same system. Timestamps between streams and results for
487     * a single camera instance are comparable, and the timestamps for all buffers
488     * and the result metadata generated by a single capture are identical.</p>
489     *
490     * @see CaptureResult#SENSOR_TIMESTAMP
491     * @see CameraCharacteristics#SENSOR_INFO_TIMESTAMP_CALIBRATION
492     */
493    public static final int SENSOR_INFO_TIMESTAMP_CALIBRATION_UNCALIBRATED = 0;
494
495    /**
496     * <p>Timestamps from {@link CaptureResult#SENSOR_TIMESTAMP android.sensor.timestamp} are in the same timebase as
497     * android.os.SystemClock#elapsedRealtimeNanos(),
498     * and they can be compared to other timestamps using that base.</p>
499     *
500     * @see CaptureResult#SENSOR_TIMESTAMP
501     * @see CameraCharacteristics#SENSOR_INFO_TIMESTAMP_CALIBRATION
502     */
503    public static final int SENSOR_INFO_TIMESTAMP_CALIBRATION_CALIBRATED = 1;
504
505    //
506    // Enumeration values for CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
507    //
508
509    /**
510     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
511     */
512    public static final int SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT = 1;
513
514    /**
515     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
516     */
517    public static final int SENSOR_REFERENCE_ILLUMINANT1_FLUORESCENT = 2;
518
519    /**
520     * <p>Incandescent light</p>
521     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
522     */
523    public static final int SENSOR_REFERENCE_ILLUMINANT1_TUNGSTEN = 3;
524
525    /**
526     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
527     */
528    public static final int SENSOR_REFERENCE_ILLUMINANT1_FLASH = 4;
529
530    /**
531     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
532     */
533    public static final int SENSOR_REFERENCE_ILLUMINANT1_FINE_WEATHER = 9;
534
535    /**
536     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
537     */
538    public static final int SENSOR_REFERENCE_ILLUMINANT1_CLOUDY_WEATHER = 10;
539
540    /**
541     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
542     */
543    public static final int SENSOR_REFERENCE_ILLUMINANT1_SHADE = 11;
544
545    /**
546     * <p>D 5700 - 7100K</p>
547     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
548     */
549    public static final int SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT_FLUORESCENT = 12;
550
551    /**
552     * <p>N 4600 - 5400K</p>
553     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
554     */
555    public static final int SENSOR_REFERENCE_ILLUMINANT1_DAY_WHITE_FLUORESCENT = 13;
556
557    /**
558     * <p>W 3900 - 4500K</p>
559     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
560     */
561    public static final int SENSOR_REFERENCE_ILLUMINANT1_COOL_WHITE_FLUORESCENT = 14;
562
563    /**
564     * <p>WW 3200 - 3700K</p>
565     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
566     */
567    public static final int SENSOR_REFERENCE_ILLUMINANT1_WHITE_FLUORESCENT = 15;
568
569    /**
570     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
571     */
572    public static final int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_A = 17;
573
574    /**
575     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
576     */
577    public static final int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_B = 18;
578
579    /**
580     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
581     */
582    public static final int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_C = 19;
583
584    /**
585     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
586     */
587    public static final int SENSOR_REFERENCE_ILLUMINANT1_D55 = 20;
588
589    /**
590     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
591     */
592    public static final int SENSOR_REFERENCE_ILLUMINANT1_D65 = 21;
593
594    /**
595     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
596     */
597    public static final int SENSOR_REFERENCE_ILLUMINANT1_D75 = 22;
598
599    /**
600     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
601     */
602    public static final int SENSOR_REFERENCE_ILLUMINANT1_D50 = 23;
603
604    /**
605     * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
606     */
607    public static final int SENSOR_REFERENCE_ILLUMINANT1_ISO_STUDIO_TUNGSTEN = 24;
608
609    //
610    // Enumeration values for CameraCharacteristics#LED_AVAILABLE_LEDS
611    //
612
613    /**
614     * <p>android.led.transmit control is used.</p>
615     * @see CameraCharacteristics#LED_AVAILABLE_LEDS
616     * @hide
617     */
618    public static final int LED_AVAILABLE_LEDS_TRANSMIT = 0;
619
620    //
621    // Enumeration values for CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
622    //
623
624    /**
625     * <p>This camera device has only limited capabilities.</p>
626     * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
627     */
628    public static final int INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED = 0;
629
630    /**
631     * <p>This camera device is capable of supporting advanced imaging applications.</p>
632     * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
633     */
634    public static final int INFO_SUPPORTED_HARDWARE_LEVEL_FULL = 1;
635
636    /**
637     * <p>This camera device is running in backward compatibility mode.</p>
638     * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
639     */
640    public static final int INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY = 2;
641
642    //
643    // Enumeration values for CameraCharacteristics#SYNC_MAX_LATENCY
644    //
645
646    /**
647     * <p>Every frame has the requests immediately applied.</p>
648     * <p>Furthermore for all results,
649     * <code>android.sync.frameNumber == android.request.frameCount</code></p>
650     * <p>Changing controls over multiple requests one after another will
651     * produce results that have those controls applied atomically
652     * each frame.</p>
653     * <p>All FULL capability devices will have this as their maxLatency.</p>
654     * @see CameraCharacteristics#SYNC_MAX_LATENCY
655     */
656    public static final int SYNC_MAX_LATENCY_PER_FRAME_CONTROL = 0;
657
658    /**
659     * <p>Each new frame has some subset (potentially the entire set)
660     * of the past requests applied to the camera settings.</p>
661     * <p>By submitting a series of identical requests, the camera device
662     * will eventually have the camera settings applied, but it is
663     * unknown when that exact point will be.</p>
664     * @see CameraCharacteristics#SYNC_MAX_LATENCY
665     */
666    public static final int SYNC_MAX_LATENCY_UNKNOWN = -1;
667
668    //
669    // Enumeration values for CaptureRequest#COLOR_CORRECTION_MODE
670    //
671
672    /**
673     * <p>Use the {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform} matrix
674     * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} to do color conversion.</p>
675     * <p>All advanced white balance adjustments (not specified
676     * by our white balance pipeline) must be disabled.</p>
677     * <p>If AWB is enabled with <code>{@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} != OFF</code>, then
678     * TRANSFORM_MATRIX is ignored. The camera device will override
679     * this value to either FAST or HIGH_QUALITY.</p>
680     *
681     * @see CaptureRequest#COLOR_CORRECTION_GAINS
682     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
683     * @see CaptureRequest#CONTROL_AWB_MODE
684     * @see CaptureRequest#COLOR_CORRECTION_MODE
685     */
686    public static final int COLOR_CORRECTION_MODE_TRANSFORM_MATRIX = 0;
687
688    /**
689     * <p>Color correction processing must not slow down
690     * capture rate relative to sensor raw output.</p>
691     * <p>Advanced white balance adjustments above and beyond
692     * the specified white balance pipeline may be applied.</p>
693     * <p>If AWB is enabled with <code>{@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} != OFF</code>, then
694     * the camera device uses the last frame's AWB values
695     * (or defaults if AWB has never been run).</p>
696     *
697     * @see CaptureRequest#CONTROL_AWB_MODE
698     * @see CaptureRequest#COLOR_CORRECTION_MODE
699     */
700    public static final int COLOR_CORRECTION_MODE_FAST = 1;
701
702    /**
703     * <p>Color correction processing operates at improved
704     * quality but reduced capture rate (relative to sensor raw
705     * output).</p>
706     * <p>Advanced white balance adjustments above and beyond
707     * the specified white balance pipeline may be applied.</p>
708     * <p>If AWB is enabled with <code>{@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} != OFF</code>, then
709     * the camera device uses the last frame's AWB values
710     * (or defaults if AWB has never been run).</p>
711     *
712     * @see CaptureRequest#CONTROL_AWB_MODE
713     * @see CaptureRequest#COLOR_CORRECTION_MODE
714     */
715    public static final int COLOR_CORRECTION_MODE_HIGH_QUALITY = 2;
716
717    //
718    // Enumeration values for CaptureRequest#COLOR_CORRECTION_ABERRATION_CORRECTION_MODE
719    //
720
721    /**
722     * <p>No aberration correction is applied.</p>
723     * @see CaptureRequest#COLOR_CORRECTION_ABERRATION_CORRECTION_MODE
724     */
725    public static final int COLOR_CORRECTION_ABERRATION_CORRECTION_MODE_OFF = 0;
726
727    /**
728     * <p>Aberration correction will not slow down capture rate
729     * relative to sensor raw output.</p>
730     * @see CaptureRequest#COLOR_CORRECTION_ABERRATION_CORRECTION_MODE
731     */
732    public static final int COLOR_CORRECTION_ABERRATION_CORRECTION_MODE_FAST = 1;
733
734    /**
735     * <p>Aberration correction operates at improved quality but reduced
736     * capture rate (relative to sensor raw output).</p>
737     * @see CaptureRequest#COLOR_CORRECTION_ABERRATION_CORRECTION_MODE
738     */
739    public static final int COLOR_CORRECTION_ABERRATION_CORRECTION_MODE_HIGH_QUALITY = 2;
740
741    //
742    // Enumeration values for CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
743    //
744
745    /**
746     * <p>The camera device will not adjust exposure duration to
747     * avoid banding problems.</p>
748     * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
749     */
750    public static final int CONTROL_AE_ANTIBANDING_MODE_OFF = 0;
751
752    /**
753     * <p>The camera device will adjust exposure duration to
754     * avoid banding problems with 50Hz illumination sources.</p>
755     * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
756     */
757    public static final int CONTROL_AE_ANTIBANDING_MODE_50HZ = 1;
758
759    /**
760     * <p>The camera device will adjust exposure duration to
761     * avoid banding problems with 60Hz illumination
762     * sources.</p>
763     * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
764     */
765    public static final int CONTROL_AE_ANTIBANDING_MODE_60HZ = 2;
766
767    /**
768     * <p>The camera device will automatically adapt its
769     * antibanding routine to the current illumination
770     * conditions. This is the default.</p>
771     * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
772     */
773    public static final int CONTROL_AE_ANTIBANDING_MODE_AUTO = 3;
774
775    //
776    // Enumeration values for CaptureRequest#CONTROL_AE_MODE
777    //
778
779    /**
780     * <p>The camera device's autoexposure routine is disabled.</p>
781     * <p>The application-selected {@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime},
782     * {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity} and
783     * {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} are used by the camera
784     * device, along with android.flash.* fields, if there's
785     * a flash unit for this camera device.</p>
786     *
787     * @see CaptureRequest#SENSOR_EXPOSURE_TIME
788     * @see CaptureRequest#SENSOR_FRAME_DURATION
789     * @see CaptureRequest#SENSOR_SENSITIVITY
790     * @see CaptureRequest#CONTROL_AE_MODE
791     */
792    public static final int CONTROL_AE_MODE_OFF = 0;
793
794    /**
795     * <p>The camera device's autoexposure routine is active,
796     * with no flash control.</p>
797     * <p>The application's values for
798     * {@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime},
799     * {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}, and
800     * {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} are ignored. The
801     * application has control over the various
802     * android.flash.* fields.</p>
803     *
804     * @see CaptureRequest#SENSOR_EXPOSURE_TIME
805     * @see CaptureRequest#SENSOR_FRAME_DURATION
806     * @see CaptureRequest#SENSOR_SENSITIVITY
807     * @see CaptureRequest#CONTROL_AE_MODE
808     */
809    public static final int CONTROL_AE_MODE_ON = 1;
810
811    /**
812     * <p>Like ON, except that the camera device also controls
813     * the camera's flash unit, firing it in low-light
814     * conditions.</p>
815     * <p>The flash may be fired during a precapture sequence
816     * (triggered by {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger}) and
817     * may be fired for captures for which the
818     * {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent} field is set to
819     * STILL_CAPTURE</p>
820     *
821     * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
822     * @see CaptureRequest#CONTROL_CAPTURE_INTENT
823     * @see CaptureRequest#CONTROL_AE_MODE
824     */
825    public static final int CONTROL_AE_MODE_ON_AUTO_FLASH = 2;
826
827    /**
828     * <p>Like ON, except that the camera device also controls
829     * the camera's flash unit, always firing it for still
830     * captures.</p>
831     * <p>The flash may be fired during a precapture sequence
832     * (triggered by {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger}) and
833     * will always be fired for captures for which the
834     * {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent} field is set to
835     * STILL_CAPTURE</p>
836     *
837     * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
838     * @see CaptureRequest#CONTROL_CAPTURE_INTENT
839     * @see CaptureRequest#CONTROL_AE_MODE
840     */
841    public static final int CONTROL_AE_MODE_ON_ALWAYS_FLASH = 3;
842
843    /**
844     * <p>Like ON_AUTO_FLASH, but with automatic red eye
845     * reduction.</p>
846     * <p>If deemed necessary by the camera device, a red eye
847     * reduction flash will fire during the precapture
848     * sequence.</p>
849     * @see CaptureRequest#CONTROL_AE_MODE
850     */
851    public static final int CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE = 4;
852
853    //
854    // Enumeration values for CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
855    //
856
857    /**
858     * <p>The trigger is idle.</p>
859     * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
860     */
861    public static final int CONTROL_AE_PRECAPTURE_TRIGGER_IDLE = 0;
862
863    /**
864     * <p>The precapture metering sequence will be started
865     * by the camera device.</p>
866     * <p>The exact effect of the precapture trigger depends on
867     * the current AE mode and state.</p>
868     * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
869     */
870    public static final int CONTROL_AE_PRECAPTURE_TRIGGER_START = 1;
871
872    //
873    // Enumeration values for CaptureRequest#CONTROL_AF_MODE
874    //
875
876    /**
877     * <p>The auto-focus routine does not control the lens;
878     * {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance} is controlled by the
879     * application.</p>
880     *
881     * @see CaptureRequest#LENS_FOCUS_DISTANCE
882     * @see CaptureRequest#CONTROL_AF_MODE
883     */
884    public static final int CONTROL_AF_MODE_OFF = 0;
885
886    /**
887     * <p>Basic automatic focus mode.</p>
888     * <p>In this mode, the lens does not move unless
889     * the autofocus trigger action is called. When that trigger
890     * is activated, AF will transition to ACTIVE_SCAN, then to
891     * the outcome of the scan (FOCUSED or NOT_FOCUSED).</p>
892     * <p>Always supported if lens is not fixed focus.</p>
893     * <p>Use {@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance} to determine if lens
894     * is fixed-focus.</p>
895     * <p>Triggering AF_CANCEL resets the lens position to default,
896     * and sets the AF state to INACTIVE.</p>
897     *
898     * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE
899     * @see CaptureRequest#CONTROL_AF_MODE
900     */
901    public static final int CONTROL_AF_MODE_AUTO = 1;
902
903    /**
904     * <p>Close-up focusing mode.</p>
905     * <p>In this mode, the lens does not move unless the
906     * autofocus trigger action is called. When that trigger is
907     * activated, AF will transition to ACTIVE_SCAN, then to
908     * the outcome of the scan (FOCUSED or NOT_FOCUSED). This
909     * mode is optimized for focusing on objects very close to
910     * the camera.</p>
911     * <p>When that trigger is activated, AF will transition to
912     * ACTIVE_SCAN, then to the outcome of the scan (FOCUSED or
913     * NOT_FOCUSED). Triggering cancel AF resets the lens
914     * position to default, and sets the AF state to
915     * INACTIVE.</p>
916     * @see CaptureRequest#CONTROL_AF_MODE
917     */
918    public static final int CONTROL_AF_MODE_MACRO = 2;
919
920    /**
921     * <p>In this mode, the AF algorithm modifies the lens
922     * position continually to attempt to provide a
923     * constantly-in-focus image stream.</p>
924     * <p>The focusing behavior should be suitable for good quality
925     * video recording; typically this means slower focus
926     * movement and no overshoots. When the AF trigger is not
927     * involved, the AF algorithm should start in INACTIVE state,
928     * and then transition into PASSIVE_SCAN and PASSIVE_FOCUSED
929     * states as appropriate. When the AF trigger is activated,
930     * the algorithm should immediately transition into
931     * AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the
932     * lens position until a cancel AF trigger is received.</p>
933     * <p>Once cancel is received, the algorithm should transition
934     * back to INACTIVE and resume passive scan. Note that this
935     * behavior is not identical to CONTINUOUS_PICTURE, since an
936     * ongoing PASSIVE_SCAN must immediately be
937     * canceled.</p>
938     * @see CaptureRequest#CONTROL_AF_MODE
939     */
940    public static final int CONTROL_AF_MODE_CONTINUOUS_VIDEO = 3;
941
942    /**
943     * <p>In this mode, the AF algorithm modifies the lens
944     * position continually to attempt to provide a
945     * constantly-in-focus image stream.</p>
946     * <p>The focusing behavior should be suitable for still image
947     * capture; typically this means focusing as fast as
948     * possible. When the AF trigger is not involved, the AF
949     * algorithm should start in INACTIVE state, and then
950     * transition into PASSIVE_SCAN and PASSIVE_FOCUSED states as
951     * appropriate as it attempts to maintain focus. When the AF
952     * trigger is activated, the algorithm should finish its
953     * PASSIVE_SCAN if active, and then transition into
954     * AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the
955     * lens position until a cancel AF trigger is received.</p>
956     * <p>When the AF cancel trigger is activated, the algorithm
957     * should transition back to INACTIVE and then act as if it
958     * has just been started.</p>
959     * @see CaptureRequest#CONTROL_AF_MODE
960     */
961    public static final int CONTROL_AF_MODE_CONTINUOUS_PICTURE = 4;
962
963    /**
964     * <p>Extended depth of field (digital focus) mode.</p>
965     * <p>The camera device will produce images with an extended
966     * depth of field automatically; no special focusing
967     * operations need to be done before taking a picture.</p>
968     * <p>AF triggers are ignored, and the AF state will always be
969     * INACTIVE.</p>
970     * @see CaptureRequest#CONTROL_AF_MODE
971     */
972    public static final int CONTROL_AF_MODE_EDOF = 5;
973
974    //
975    // Enumeration values for CaptureRequest#CONTROL_AF_TRIGGER
976    //
977
978    /**
979     * <p>The trigger is idle.</p>
980     * @see CaptureRequest#CONTROL_AF_TRIGGER
981     */
982    public static final int CONTROL_AF_TRIGGER_IDLE = 0;
983
984    /**
985     * <p>Autofocus will trigger now.</p>
986     * @see CaptureRequest#CONTROL_AF_TRIGGER
987     */
988    public static final int CONTROL_AF_TRIGGER_START = 1;
989
990    /**
991     * <p>Autofocus will return to its initial
992     * state, and cancel any currently active trigger.</p>
993     * @see CaptureRequest#CONTROL_AF_TRIGGER
994     */
995    public static final int CONTROL_AF_TRIGGER_CANCEL = 2;
996
997    //
998    // Enumeration values for CaptureRequest#CONTROL_AWB_MODE
999    //
1000
1001    /**
1002     * <p>The camera device's auto-white balance routine is disabled.</p>
1003     * <p>The application-selected color transform matrix
1004     * ({@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}) and gains
1005     * ({@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains}) are used by the camera
1006     * device for manual white balance control.</p>
1007     *
1008     * @see CaptureRequest#COLOR_CORRECTION_GAINS
1009     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
1010     * @see CaptureRequest#CONTROL_AWB_MODE
1011     */
1012    public static final int CONTROL_AWB_MODE_OFF = 0;
1013
1014    /**
1015     * <p>The camera device's auto-white balance routine is active.</p>
1016     * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
1017     * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
1018     * For devices that support the MANUAL_POST_PROCESSING capability, the
1019     * values used by the camera device for the transform and gains
1020     * will be available in the capture result for this request.</p>
1021     *
1022     * @see CaptureRequest#COLOR_CORRECTION_GAINS
1023     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
1024     * @see CaptureRequest#CONTROL_AWB_MODE
1025     */
1026    public static final int CONTROL_AWB_MODE_AUTO = 1;
1027
1028    /**
1029     * <p>The camera device's auto-white balance routine is disabled;
1030     * the camera device uses incandescent light as the assumed scene
1031     * illumination for white balance.</p>
1032     * <p>While the exact white balance transforms are up to the
1033     * camera device, they will approximately match the CIE
1034     * standard illuminant A.</p>
1035     * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
1036     * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
1037     * For devices that support the MANUAL_POST_PROCESSING capability, the
1038     * values used by the camera device for the transform and gains
1039     * will be available in the capture result for this request.</p>
1040     *
1041     * @see CaptureRequest#COLOR_CORRECTION_GAINS
1042     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
1043     * @see CaptureRequest#CONTROL_AWB_MODE
1044     */
1045    public static final int CONTROL_AWB_MODE_INCANDESCENT = 2;
1046
1047    /**
1048     * <p>The camera device's auto-white balance routine is disabled;
1049     * the camera device uses fluorescent light as the assumed scene
1050     * illumination for white balance.</p>
1051     * <p>While the exact white balance transforms are up to the
1052     * camera device, they will approximately match the CIE
1053     * standard illuminant F2.</p>
1054     * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
1055     * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
1056     * For devices that support the MANUAL_POST_PROCESSING capability, the
1057     * values used by the camera device for the transform and gains
1058     * will be available in the capture result for this request.</p>
1059     *
1060     * @see CaptureRequest#COLOR_CORRECTION_GAINS
1061     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
1062     * @see CaptureRequest#CONTROL_AWB_MODE
1063     */
1064    public static final int CONTROL_AWB_MODE_FLUORESCENT = 3;
1065
1066    /**
1067     * <p>The camera device's auto-white balance routine is disabled;
1068     * the camera device uses warm fluorescent light as the assumed scene
1069     * illumination for white balance.</p>
1070     * <p>While the exact white balance transforms are up to the
1071     * camera device, they will approximately match the CIE
1072     * standard illuminant F4.</p>
1073     * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
1074     * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
1075     * For devices that support the MANUAL_POST_PROCESSING capability, the
1076     * values used by the camera device for the transform and gains
1077     * will be available in the capture result for this request.</p>
1078     *
1079     * @see CaptureRequest#COLOR_CORRECTION_GAINS
1080     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
1081     * @see CaptureRequest#CONTROL_AWB_MODE
1082     */
1083    public static final int CONTROL_AWB_MODE_WARM_FLUORESCENT = 4;
1084
1085    /**
1086     * <p>The camera device's auto-white balance routine is disabled;
1087     * the camera device uses daylight light as the assumed scene
1088     * illumination for white balance.</p>
1089     * <p>While the exact white balance transforms are up to the
1090     * camera device, they will approximately match the CIE
1091     * standard illuminant D65.</p>
1092     * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
1093     * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
1094     * For devices that support the MANUAL_POST_PROCESSING capability, the
1095     * values used by the camera device for the transform and gains
1096     * will be available in the capture result for this request.</p>
1097     *
1098     * @see CaptureRequest#COLOR_CORRECTION_GAINS
1099     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
1100     * @see CaptureRequest#CONTROL_AWB_MODE
1101     */
1102    public static final int CONTROL_AWB_MODE_DAYLIGHT = 5;
1103
1104    /**
1105     * <p>The camera device's auto-white balance routine is disabled;
1106     * the camera device uses cloudy daylight light as the assumed scene
1107     * illumination for white balance.</p>
1108     * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
1109     * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
1110     * For devices that support the MANUAL_POST_PROCESSING capability, the
1111     * values used by the camera device for the transform and gains
1112     * will be available in the capture result for this request.</p>
1113     *
1114     * @see CaptureRequest#COLOR_CORRECTION_GAINS
1115     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
1116     * @see CaptureRequest#CONTROL_AWB_MODE
1117     */
1118    public static final int CONTROL_AWB_MODE_CLOUDY_DAYLIGHT = 6;
1119
1120    /**
1121     * <p>The camera device's auto-white balance routine is disabled;
1122     * the camera device uses twilight light as the assumed scene
1123     * illumination for white balance.</p>
1124     * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
1125     * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
1126     * For devices that support the MANUAL_POST_PROCESSING capability, the
1127     * values used by the camera device for the transform and gains
1128     * will be available in the capture result for this request.</p>
1129     *
1130     * @see CaptureRequest#COLOR_CORRECTION_GAINS
1131     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
1132     * @see CaptureRequest#CONTROL_AWB_MODE
1133     */
1134    public static final int CONTROL_AWB_MODE_TWILIGHT = 7;
1135
1136    /**
1137     * <p>The camera device's auto-white balance routine is disabled;
1138     * the camera device uses shade light as the assumed scene
1139     * illumination for white balance.</p>
1140     * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
1141     * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
1142     * For devices that support the MANUAL_POST_PROCESSING capability, the
1143     * values used by the camera device for the transform and gains
1144     * will be available in the capture result for this request.</p>
1145     *
1146     * @see CaptureRequest#COLOR_CORRECTION_GAINS
1147     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
1148     * @see CaptureRequest#CONTROL_AWB_MODE
1149     */
1150    public static final int CONTROL_AWB_MODE_SHADE = 8;
1151
1152    //
1153    // Enumeration values for CaptureRequest#CONTROL_CAPTURE_INTENT
1154    //
1155
1156    /**
1157     * <p>The goal of this request doesn't fall into the other
1158     * categories. The camera device will default to preview-like
1159     * behavior.</p>
1160     * @see CaptureRequest#CONTROL_CAPTURE_INTENT
1161     */
1162    public static final int CONTROL_CAPTURE_INTENT_CUSTOM = 0;
1163
1164    /**
1165     * <p>This request is for a preview-like use case.</p>
1166     * <p>The precapture trigger may be used to start off a metering
1167     * w/flash sequence.</p>
1168     * @see CaptureRequest#CONTROL_CAPTURE_INTENT
1169     */
1170    public static final int CONTROL_CAPTURE_INTENT_PREVIEW = 1;
1171
1172    /**
1173     * <p>This request is for a still capture-type
1174     * use case.</p>
1175     * <p>If the flash unit is under automatic control, it may fire as needed.</p>
1176     * @see CaptureRequest#CONTROL_CAPTURE_INTENT
1177     */
1178    public static final int CONTROL_CAPTURE_INTENT_STILL_CAPTURE = 2;
1179
1180    /**
1181     * <p>This request is for a video recording
1182     * use case.</p>
1183     * @see CaptureRequest#CONTROL_CAPTURE_INTENT
1184     */
1185    public static final int CONTROL_CAPTURE_INTENT_VIDEO_RECORD = 3;
1186
1187    /**
1188     * <p>This request is for a video snapshot (still
1189     * image while recording video) use case.</p>
1190     * <p>The camera device should take the highest-quality image
1191     * possible (given the other settings) without disrupting the
1192     * frame rate of video recording.  </p>
1193     * @see CaptureRequest#CONTROL_CAPTURE_INTENT
1194     */
1195    public static final int CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT = 4;
1196
1197    /**
1198     * <p>This request is for a ZSL usecase; the
1199     * application will stream full-resolution images and
1200     * reprocess one or several later for a final
1201     * capture.</p>
1202     * @see CaptureRequest#CONTROL_CAPTURE_INTENT
1203     */
1204    public static final int CONTROL_CAPTURE_INTENT_ZERO_SHUTTER_LAG = 5;
1205
1206    /**
1207     * <p>This request is for manual capture use case where
1208     * the applications want to directly control the capture parameters.</p>
1209     * <p>For example, the application may wish to manually control
1210     * {@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime}, {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}, etc.</p>
1211     *
1212     * @see CaptureRequest#SENSOR_EXPOSURE_TIME
1213     * @see CaptureRequest#SENSOR_SENSITIVITY
1214     * @see CaptureRequest#CONTROL_CAPTURE_INTENT
1215     */
1216    public static final int CONTROL_CAPTURE_INTENT_MANUAL = 6;
1217
1218    //
1219    // Enumeration values for CaptureRequest#CONTROL_EFFECT_MODE
1220    //
1221
1222    /**
1223     * <p>No color effect will be applied.</p>
1224     * @see CaptureRequest#CONTROL_EFFECT_MODE
1225     */
1226    public static final int CONTROL_EFFECT_MODE_OFF = 0;
1227
1228    /**
1229     * <p>A "monocolor" effect where the image is mapped into
1230     * a single color.</p>
1231     * <p>This will typically be grayscale.</p>
1232     * @see CaptureRequest#CONTROL_EFFECT_MODE
1233     */
1234    public static final int CONTROL_EFFECT_MODE_MONO = 1;
1235
1236    /**
1237     * <p>A "photo-negative" effect where the image's colors
1238     * are inverted.</p>
1239     * @see CaptureRequest#CONTROL_EFFECT_MODE
1240     */
1241    public static final int CONTROL_EFFECT_MODE_NEGATIVE = 2;
1242
1243    /**
1244     * <p>A "solarisation" effect (Sabattier effect) where the
1245     * image is wholly or partially reversed in
1246     * tone.</p>
1247     * @see CaptureRequest#CONTROL_EFFECT_MODE
1248     */
1249    public static final int CONTROL_EFFECT_MODE_SOLARIZE = 3;
1250
1251    /**
1252     * <p>A "sepia" effect where the image is mapped into warm
1253     * gray, red, and brown tones.</p>
1254     * @see CaptureRequest#CONTROL_EFFECT_MODE
1255     */
1256    public static final int CONTROL_EFFECT_MODE_SEPIA = 4;
1257
1258    /**
1259     * <p>A "posterization" effect where the image uses
1260     * discrete regions of tone rather than a continuous
1261     * gradient of tones.</p>
1262     * @see CaptureRequest#CONTROL_EFFECT_MODE
1263     */
1264    public static final int CONTROL_EFFECT_MODE_POSTERIZE = 5;
1265
1266    /**
1267     * <p>A "whiteboard" effect where the image is typically displayed
1268     * as regions of white, with black or grey details.</p>
1269     * @see CaptureRequest#CONTROL_EFFECT_MODE
1270     */
1271    public static final int CONTROL_EFFECT_MODE_WHITEBOARD = 6;
1272
1273    /**
1274     * <p>A "blackboard" effect where the image is typically displayed
1275     * as regions of black, with white or grey details.</p>
1276     * @see CaptureRequest#CONTROL_EFFECT_MODE
1277     */
1278    public static final int CONTROL_EFFECT_MODE_BLACKBOARD = 7;
1279
1280    /**
1281     * <p>An "aqua" effect where a blue hue is added to the image.</p>
1282     * @see CaptureRequest#CONTROL_EFFECT_MODE
1283     */
1284    public static final int CONTROL_EFFECT_MODE_AQUA = 8;
1285
1286    //
1287    // Enumeration values for CaptureRequest#CONTROL_MODE
1288    //
1289
1290    /**
1291     * <p>Full application control of pipeline.</p>
1292     * <p>All control by the device's metering and focusing (3A)
1293     * routines is disabled, and no other settings in
1294     * android.control.* have any effect, except that
1295     * {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent} may be used by the camera
1296     * device to select post-processing values for processing
1297     * blocks that do not allow for manual control, or are not
1298     * exposed by the camera API.</p>
1299     * <p>However, the camera device's 3A routines may continue to
1300     * collect statistics and update their internal state so that
1301     * when control is switched to AUTO mode, good control values
1302     * can be immediately applied.</p>
1303     *
1304     * @see CaptureRequest#CONTROL_CAPTURE_INTENT
1305     * @see CaptureRequest#CONTROL_MODE
1306     */
1307    public static final int CONTROL_MODE_OFF = 0;
1308
1309    /**
1310     * <p>Use settings for each individual 3A routine.</p>
1311     * <p>Manual control of capture parameters is disabled. All
1312     * controls in android.control.* besides sceneMode take
1313     * effect.</p>
1314     * @see CaptureRequest#CONTROL_MODE
1315     */
1316    public static final int CONTROL_MODE_AUTO = 1;
1317
1318    /**
1319     * <p>Use a specific scene mode.</p>
1320     * <p>Enabling this disables control.aeMode, control.awbMode and
1321     * control.afMode controls; the camera device will ignore
1322     * those settings while USE_SCENE_MODE is active (except for
1323     * FACE_PRIORITY scene mode). Other control entries are still
1324     * active.  This setting can only be used if scene mode is
1325     * supported (i.e. {@link CameraCharacteristics#CONTROL_AVAILABLE_SCENE_MODES android.control.availableSceneModes}
1326     * contain some modes other than DISABLED).</p>
1327     *
1328     * @see CameraCharacteristics#CONTROL_AVAILABLE_SCENE_MODES
1329     * @see CaptureRequest#CONTROL_MODE
1330     */
1331    public static final int CONTROL_MODE_USE_SCENE_MODE = 2;
1332
1333    /**
1334     * <p>Same as OFF mode, except that this capture will not be
1335     * used by camera device background auto-exposure, auto-white balance and
1336     * auto-focus algorithms (3A) to update their statistics.</p>
1337     * <p>Specifically, the 3A routines are locked to the last
1338     * values set from a request with AUTO, OFF, or
1339     * USE_SCENE_MODE, and any statistics or state updates
1340     * collected from manual captures with OFF_KEEP_STATE will be
1341     * discarded by the camera device.</p>
1342     * @see CaptureRequest#CONTROL_MODE
1343     */
1344    public static final int CONTROL_MODE_OFF_KEEP_STATE = 3;
1345
1346    //
1347    // Enumeration values for CaptureRequest#CONTROL_SCENE_MODE
1348    //
1349
1350    /**
1351     * <p>Indicates that no scene modes are set for a given capture request.</p>
1352     * @see CaptureRequest#CONTROL_SCENE_MODE
1353     */
1354    public static final int CONTROL_SCENE_MODE_DISABLED = 0;
1355
1356    /**
1357     * <p>If face detection support exists, use face
1358     * detection data for auto-focus, auto-white balance, and
1359     * auto-exposure routines.</p>
1360     * <p>If face detection statistics are disabled
1361     * (i.e. {@link CaptureRequest#STATISTICS_FACE_DETECT_MODE android.statistics.faceDetectMode} is set to OFF),
1362     * this should still operate correctly (but will not return
1363     * face detection statistics to the framework).</p>
1364     * <p>Unlike the other scene modes, {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode},
1365     * {@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode}, and {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}
1366     * remain active when FACE_PRIORITY is set.</p>
1367     *
1368     * @see CaptureRequest#CONTROL_AE_MODE
1369     * @see CaptureRequest#CONTROL_AF_MODE
1370     * @see CaptureRequest#CONTROL_AWB_MODE
1371     * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
1372     * @see CaptureRequest#CONTROL_SCENE_MODE
1373     */
1374    public static final int CONTROL_SCENE_MODE_FACE_PRIORITY = 1;
1375
1376    /**
1377     * <p>Optimized for photos of quickly moving objects.</p>
1378     * <p>Similar to SPORTS.</p>
1379     * @see CaptureRequest#CONTROL_SCENE_MODE
1380     */
1381    public static final int CONTROL_SCENE_MODE_ACTION = 2;
1382
1383    /**
1384     * <p>Optimized for still photos of people.</p>
1385     * @see CaptureRequest#CONTROL_SCENE_MODE
1386     */
1387    public static final int CONTROL_SCENE_MODE_PORTRAIT = 3;
1388
1389    /**
1390     * <p>Optimized for photos of distant macroscopic objects.</p>
1391     * @see CaptureRequest#CONTROL_SCENE_MODE
1392     */
1393    public static final int CONTROL_SCENE_MODE_LANDSCAPE = 4;
1394
1395    /**
1396     * <p>Optimized for low-light settings.</p>
1397     * @see CaptureRequest#CONTROL_SCENE_MODE
1398     */
1399    public static final int CONTROL_SCENE_MODE_NIGHT = 5;
1400
1401    /**
1402     * <p>Optimized for still photos of people in low-light
1403     * settings.</p>
1404     * @see CaptureRequest#CONTROL_SCENE_MODE
1405     */
1406    public static final int CONTROL_SCENE_MODE_NIGHT_PORTRAIT = 6;
1407
1408    /**
1409     * <p>Optimized for dim, indoor settings where flash must
1410     * remain off.</p>
1411     * @see CaptureRequest#CONTROL_SCENE_MODE
1412     */
1413    public static final int CONTROL_SCENE_MODE_THEATRE = 7;
1414
1415    /**
1416     * <p>Optimized for bright, outdoor beach settings.</p>
1417     * @see CaptureRequest#CONTROL_SCENE_MODE
1418     */
1419    public static final int CONTROL_SCENE_MODE_BEACH = 8;
1420
1421    /**
1422     * <p>Optimized for bright, outdoor settings containing snow.</p>
1423     * @see CaptureRequest#CONTROL_SCENE_MODE
1424     */
1425    public static final int CONTROL_SCENE_MODE_SNOW = 9;
1426
1427    /**
1428     * <p>Optimized for scenes of the setting sun.</p>
1429     * @see CaptureRequest#CONTROL_SCENE_MODE
1430     */
1431    public static final int CONTROL_SCENE_MODE_SUNSET = 10;
1432
1433    /**
1434     * <p>Optimized to avoid blurry photos due to small amounts of
1435     * device motion (for example: due to hand shake).</p>
1436     * @see CaptureRequest#CONTROL_SCENE_MODE
1437     */
1438    public static final int CONTROL_SCENE_MODE_STEADYPHOTO = 11;
1439
1440    /**
1441     * <p>Optimized for nighttime photos of fireworks.</p>
1442     * @see CaptureRequest#CONTROL_SCENE_MODE
1443     */
1444    public static final int CONTROL_SCENE_MODE_FIREWORKS = 12;
1445
1446    /**
1447     * <p>Optimized for photos of quickly moving people.</p>
1448     * <p>Similar to ACTION.</p>
1449     * @see CaptureRequest#CONTROL_SCENE_MODE
1450     */
1451    public static final int CONTROL_SCENE_MODE_SPORTS = 13;
1452
1453    /**
1454     * <p>Optimized for dim, indoor settings with multiple moving
1455     * people.</p>
1456     * @see CaptureRequest#CONTROL_SCENE_MODE
1457     */
1458    public static final int CONTROL_SCENE_MODE_PARTY = 14;
1459
1460    /**
1461     * <p>Optimized for dim settings where the main light source
1462     * is a flame.</p>
1463     * @see CaptureRequest#CONTROL_SCENE_MODE
1464     */
1465    public static final int CONTROL_SCENE_MODE_CANDLELIGHT = 15;
1466
1467    /**
1468     * <p>Optimized for accurately capturing a photo of barcode
1469     * for use by camera applications that wish to read the
1470     * barcode value.</p>
1471     * @see CaptureRequest#CONTROL_SCENE_MODE
1472     */
1473    public static final int CONTROL_SCENE_MODE_BARCODE = 16;
1474
1475    /**
1476     * <p>Optimized for high speed video recording (frame rate &gt;=60fps) use case.</p>
1477     * <p>The supported high speed video sizes and fps ranges are specified in
1478     * android.control.availableHighSpeedVideoConfigurations. To get desired
1479     * output frame rates, the application is only allowed to select video size
1480     * and fps range combinations listed in this static metadata. The fps range
1481     * can be control via {@link CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE android.control.aeTargetFpsRange}.</p>
1482     * <p>In this mode, the camera device will override aeMode, awbMode, and afMode to
1483     * ON, ON, and CONTINUOUS_VIDEO, respectively. All post-processing block mode
1484     * controls will be overridden to be FAST. Therefore, no manual control of capture
1485     * and post-processing parameters is possible. All other controls operate the
1486     * same as when {@link CaptureRequest#CONTROL_MODE android.control.mode} == AUTO. This means that all other
1487     * android.control.* fields continue to work, such as</p>
1488     * <ul>
1489     * <li>{@link CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE android.control.aeTargetFpsRange}</li>
1490     * <li>{@link CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION android.control.aeExposureCompensation}</li>
1491     * <li>{@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock}</li>
1492     * <li>{@link CaptureRequest#CONTROL_AWB_LOCK android.control.awbLock}</li>
1493     * <li>{@link CaptureRequest#CONTROL_EFFECT_MODE android.control.effectMode}</li>
1494     * <li>{@link CaptureRequest#CONTROL_AE_REGIONS android.control.aeRegions}</li>
1495     * <li>{@link CaptureRequest#CONTROL_AF_REGIONS android.control.afRegions}</li>
1496     * <li>{@link CaptureRequest#CONTROL_AWB_REGIONS android.control.awbRegions}</li>
1497     * <li>{@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}</li>
1498     * <li>{@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger}</li>
1499     * </ul>
1500     * <p>Outside of android.control.*, the following controls will work:</p>
1501     * <ul>
1502     * <li>{@link CaptureRequest#FLASH_MODE android.flash.mode} (automatic flash for still capture will not work since aeMode is ON)</li>
1503     * <li>{@link CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE android.lens.opticalStabilizationMode} (if it is supported)</li>
1504     * <li>{@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}</li>
1505     * <li>{@link CaptureRequest#STATISTICS_FACE_DETECT_MODE android.statistics.faceDetectMode}</li>
1506     * </ul>
1507     * <p>For high speed recording use case, the actual maximum supported frame rate may
1508     * be lower than what camera can output, depending on the destination Surfaces for
1509     * the image data. For example, if the destination surface is from video encoder,
1510     * the application need check if the video encoder is capable of supporting the
1511     * high frame rate for a given video size, or it will end up with lower recording
1512     * frame rate. If the destination surface is from preview window, the preview frame
1513     * rate will be bounded by the screen refresh rate.</p>
1514     * <p>The camera device will only support up to 2 output high speed streams
1515     * (processed non-stalling format defined in android.request.maxNumOutputStreams)
1516     * in this mode. This control will be effective only if all of below conditions are true:</p>
1517     * <ul>
1518     * <li>The application created no more than maxNumHighSpeedStreams processed non-stalling
1519     * format output streams, where maxNumHighSpeedStreams is calculated as
1520     * min(2, android.request.maxNumOutputStreams[Processed (but not-stalling)]).</li>
1521     * <li>The stream sizes are selected from the sizes reported by
1522     * android.control.availableHighSpeedVideoConfigurations.</li>
1523     * <li>No processed non-stalling or raw streams are configured.</li>
1524     * </ul>
1525     * <p>When above conditions are NOT satistied, the controls of this mode and
1526     * {@link CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE android.control.aeTargetFpsRange} will be ignored by the camera device,
1527     * the camera device will fall back to {@link CaptureRequest#CONTROL_MODE android.control.mode} <code>==</code> AUTO,
1528     * and the returned capture result metadata will give the fps range choosen
1529     * by the camera device.</p>
1530     * <p>Switching into or out of this mode may trigger some camera ISP/sensor
1531     * reconfigurations, which may introduce extra latency. It is recommended that
1532     * the application avoids unnecessary scene mode switch as much as possible.</p>
1533     *
1534     * @see CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION
1535     * @see CaptureRequest#CONTROL_AE_LOCK
1536     * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
1537     * @see CaptureRequest#CONTROL_AE_REGIONS
1538     * @see CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE
1539     * @see CaptureRequest#CONTROL_AF_REGIONS
1540     * @see CaptureRequest#CONTROL_AF_TRIGGER
1541     * @see CaptureRequest#CONTROL_AWB_LOCK
1542     * @see CaptureRequest#CONTROL_AWB_REGIONS
1543     * @see CaptureRequest#CONTROL_EFFECT_MODE
1544     * @see CaptureRequest#CONTROL_MODE
1545     * @see CaptureRequest#FLASH_MODE
1546     * @see CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE
1547     * @see CaptureRequest#SCALER_CROP_REGION
1548     * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
1549     * @see CaptureRequest#CONTROL_SCENE_MODE
1550     */
1551    public static final int CONTROL_SCENE_MODE_HIGH_SPEED_VIDEO = 17;
1552
1553    //
1554    // Enumeration values for CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE
1555    //
1556
1557    /**
1558     * <p>Video stabilization is disabled.</p>
1559     * @see CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE
1560     */
1561    public static final int CONTROL_VIDEO_STABILIZATION_MODE_OFF = 0;
1562
1563    /**
1564     * <p>Video stabilization is enabled.</p>
1565     * @see CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE
1566     */
1567    public static final int CONTROL_VIDEO_STABILIZATION_MODE_ON = 1;
1568
1569    //
1570    // Enumeration values for CaptureRequest#EDGE_MODE
1571    //
1572
1573    /**
1574     * <p>No edge enhancement is applied.</p>
1575     * @see CaptureRequest#EDGE_MODE
1576     */
1577    public static final int EDGE_MODE_OFF = 0;
1578
1579    /**
1580     * <p>Apply edge enhancement at a quality level that does not slow down frame rate relative to sensor
1581     * output</p>
1582     * @see CaptureRequest#EDGE_MODE
1583     */
1584    public static final int EDGE_MODE_FAST = 1;
1585
1586    /**
1587     * <p>Apply high-quality edge enhancement, at a cost of reducing output frame rate.</p>
1588     * @see CaptureRequest#EDGE_MODE
1589     */
1590    public static final int EDGE_MODE_HIGH_QUALITY = 2;
1591
1592    //
1593    // Enumeration values for CaptureRequest#FLASH_MODE
1594    //
1595
1596    /**
1597     * <p>Do not fire the flash for this capture.</p>
1598     * @see CaptureRequest#FLASH_MODE
1599     */
1600    public static final int FLASH_MODE_OFF = 0;
1601
1602    /**
1603     * <p>If the flash is available and charged, fire flash
1604     * for this capture.</p>
1605     * @see CaptureRequest#FLASH_MODE
1606     */
1607    public static final int FLASH_MODE_SINGLE = 1;
1608
1609    /**
1610     * <p>Transition flash to continuously on.</p>
1611     * @see CaptureRequest#FLASH_MODE
1612     */
1613    public static final int FLASH_MODE_TORCH = 2;
1614
1615    //
1616    // Enumeration values for CaptureRequest#HOT_PIXEL_MODE
1617    //
1618
1619    /**
1620     * <p>No hot pixel correction is applied.</p>
1621     * <p>The frame rate must not be reduced relative to sensor raw output
1622     * for this option.</p>
1623     * <p>The hotpixel map may be returned in {@link CaptureResult#STATISTICS_HOT_PIXEL_MAP android.statistics.hotPixelMap}.</p>
1624     *
1625     * @see CaptureResult#STATISTICS_HOT_PIXEL_MAP
1626     * @see CaptureRequest#HOT_PIXEL_MODE
1627     */
1628    public static final int HOT_PIXEL_MODE_OFF = 0;
1629
1630    /**
1631     * <p>Hot pixel correction is applied, without reducing frame
1632     * rate relative to sensor raw output.</p>
1633     * <p>The hotpixel map may be returned in {@link CaptureResult#STATISTICS_HOT_PIXEL_MAP android.statistics.hotPixelMap}.</p>
1634     *
1635     * @see CaptureResult#STATISTICS_HOT_PIXEL_MAP
1636     * @see CaptureRequest#HOT_PIXEL_MODE
1637     */
1638    public static final int HOT_PIXEL_MODE_FAST = 1;
1639
1640    /**
1641     * <p>High-quality hot pixel correction is applied, at a cost
1642     * of reducing frame rate relative to sensor raw output.</p>
1643     * <p>The hotpixel map may be returned in {@link CaptureResult#STATISTICS_HOT_PIXEL_MAP android.statistics.hotPixelMap}.</p>
1644     *
1645     * @see CaptureResult#STATISTICS_HOT_PIXEL_MAP
1646     * @see CaptureRequest#HOT_PIXEL_MODE
1647     */
1648    public static final int HOT_PIXEL_MODE_HIGH_QUALITY = 2;
1649
1650    //
1651    // Enumeration values for CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE
1652    //
1653
1654    /**
1655     * <p>Optical stabilization is unavailable.</p>
1656     * @see CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE
1657     */
1658    public static final int LENS_OPTICAL_STABILIZATION_MODE_OFF = 0;
1659
1660    /**
1661     * <p>Optical stabilization is enabled.</p>
1662     * @see CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE
1663     */
1664    public static final int LENS_OPTICAL_STABILIZATION_MODE_ON = 1;
1665
1666    //
1667    // Enumeration values for CaptureRequest#NOISE_REDUCTION_MODE
1668    //
1669
1670    /**
1671     * <p>No noise reduction is applied.</p>
1672     * @see CaptureRequest#NOISE_REDUCTION_MODE
1673     */
1674    public static final int NOISE_REDUCTION_MODE_OFF = 0;
1675
1676    /**
1677     * <p>Noise reduction is applied without reducing frame rate relative to sensor
1678     * output.</p>
1679     * @see CaptureRequest#NOISE_REDUCTION_MODE
1680     */
1681    public static final int NOISE_REDUCTION_MODE_FAST = 1;
1682
1683    /**
1684     * <p>High-quality noise reduction is applied, at the cost of reducing frame rate
1685     * relative to sensor output.</p>
1686     * @see CaptureRequest#NOISE_REDUCTION_MODE
1687     */
1688    public static final int NOISE_REDUCTION_MODE_HIGH_QUALITY = 2;
1689
1690    //
1691    // Enumeration values for CaptureRequest#SENSOR_TEST_PATTERN_MODE
1692    //
1693
1694    /**
1695     * <p>No test pattern mode is used, and the camera
1696     * device returns captures from the image sensor.</p>
1697     * <p>This is the default if the key is not set.</p>
1698     * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
1699     */
1700    public static final int SENSOR_TEST_PATTERN_MODE_OFF = 0;
1701
1702    /**
1703     * <p>Each pixel in <code>[R, G_even, G_odd, B]</code> is replaced by its
1704     * respective color channel provided in
1705     * {@link CaptureRequest#SENSOR_TEST_PATTERN_DATA android.sensor.testPatternData}.</p>
1706     * <p>For example:</p>
1707     * <pre><code>android.testPatternData = [0, 0xFFFFFFFF, 0xFFFFFFFF, 0]
1708     * </code></pre>
1709     * <p>All green pixels are 100% green. All red/blue pixels are black.</p>
1710     * <pre><code>android.testPatternData = [0xFFFFFFFF, 0, 0xFFFFFFFF, 0]
1711     * </code></pre>
1712     * <p>All red pixels are 100% red. Only the odd green pixels
1713     * are 100% green. All blue pixels are 100% black.</p>
1714     *
1715     * @see CaptureRequest#SENSOR_TEST_PATTERN_DATA
1716     * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
1717     */
1718    public static final int SENSOR_TEST_PATTERN_MODE_SOLID_COLOR = 1;
1719
1720    /**
1721     * <p>All pixel data is replaced with an 8-bar color pattern.</p>
1722     * <p>The vertical bars (left-to-right) are as follows:</p>
1723     * <ul>
1724     * <li>100% white</li>
1725     * <li>yellow</li>
1726     * <li>cyan</li>
1727     * <li>green</li>
1728     * <li>magenta</li>
1729     * <li>red</li>
1730     * <li>blue</li>
1731     * <li>black</li>
1732     * </ul>
1733     * <p>In general the image would look like the following:</p>
1734     * <pre><code>W Y C G M R B K
1735     * W Y C G M R B K
1736     * W Y C G M R B K
1737     * W Y C G M R B K
1738     * W Y C G M R B K
1739     * . . . . . . . .
1740     * . . . . . . . .
1741     * . . . . . . . .
1742     *
1743     * (B = Blue, K = Black)
1744     * </code></pre>
1745     * <p>Each bar should take up 1/8 of the sensor pixel array width.
1746     * When this is not possible, the bar size should be rounded
1747     * down to the nearest integer and the pattern can repeat
1748     * on the right side.</p>
1749     * <p>Each bar's height must always take up the full sensor
1750     * pixel array height.</p>
1751     * <p>Each pixel in this test pattern must be set to either
1752     * 0% intensity or 100% intensity.</p>
1753     * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
1754     */
1755    public static final int SENSOR_TEST_PATTERN_MODE_COLOR_BARS = 2;
1756
1757    /**
1758     * <p>The test pattern is similar to COLOR_BARS, except that
1759     * each bar should start at its specified color at the top,
1760     * and fade to gray at the bottom.</p>
1761     * <p>Furthermore each bar is further subdivided into a left and
1762     * right half. The left half should have a smooth gradient,
1763     * and the right half should have a quantized gradient.</p>
1764     * <p>In particular, the right half's should consist of blocks of the
1765     * same color for 1/16th active sensor pixel array width.</p>
1766     * <p>The least significant bits in the quantized gradient should
1767     * be copied from the most significant bits of the smooth gradient.</p>
1768     * <p>The height of each bar should always be a multiple of 128.
1769     * When this is not the case, the pattern should repeat at the bottom
1770     * of the image.</p>
1771     * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
1772     */
1773    public static final int SENSOR_TEST_PATTERN_MODE_COLOR_BARS_FADE_TO_GRAY = 3;
1774
1775    /**
1776     * <p>All pixel data is replaced by a pseudo-random sequence
1777     * generated from a PN9 512-bit sequence (typically implemented
1778     * in hardware with a linear feedback shift register).</p>
1779     * <p>The generator should be reset at the beginning of each frame,
1780     * and thus each subsequent raw frame with this test pattern should
1781     * be exactly the same as the last.</p>
1782     * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
1783     */
1784    public static final int SENSOR_TEST_PATTERN_MODE_PN9 = 4;
1785
1786    /**
1787     * <p>The first custom test pattern. All custom patterns that are
1788     * available only on this camera device are at least this numeric
1789     * value.</p>
1790     * <p>All of the custom test patterns will be static
1791     * (that is the raw image must not vary from frame to frame).</p>
1792     * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
1793     */
1794    public static final int SENSOR_TEST_PATTERN_MODE_CUSTOM1 = 256;
1795
1796    //
1797    // Enumeration values for CaptureRequest#SHADING_MODE
1798    //
1799
1800    /**
1801     * <p>No lens shading correction is applied.</p>
1802     * @see CaptureRequest#SHADING_MODE
1803     */
1804    public static final int SHADING_MODE_OFF = 0;
1805
1806    /**
1807     * <p>Apply lens shading corrections, without slowing
1808     * frame rate relative to sensor raw output</p>
1809     * @see CaptureRequest#SHADING_MODE
1810     */
1811    public static final int SHADING_MODE_FAST = 1;
1812
1813    /**
1814     * <p>Apply high-quality lens shading correction, at the
1815     * cost of reduced frame rate.</p>
1816     * @see CaptureRequest#SHADING_MODE
1817     */
1818    public static final int SHADING_MODE_HIGH_QUALITY = 2;
1819
1820    //
1821    // Enumeration values for CaptureRequest#STATISTICS_FACE_DETECT_MODE
1822    //
1823
1824    /**
1825     * <p>Do not include face detection statistics in capture
1826     * results.</p>
1827     * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
1828     */
1829    public static final int STATISTICS_FACE_DETECT_MODE_OFF = 0;
1830
1831    /**
1832     * <p>Return face rectangle and confidence values only.</p>
1833     * <p>In this mode, only android.statistics.faceRectangles and
1834     * android.statistics.faceScores outputs are valid.</p>
1835     * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
1836     */
1837    public static final int STATISTICS_FACE_DETECT_MODE_SIMPLE = 1;
1838
1839    /**
1840     * <p>Return all face
1841     * metadata.</p>
1842     * <p>In this mode,
1843     * android.statistics.faceRectangles,
1844     * android.statistics.faceScores,
1845     * android.statistics.faceIds, and
1846     * android.statistics.faceLandmarks outputs are valid.</p>
1847     * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
1848     */
1849    public static final int STATISTICS_FACE_DETECT_MODE_FULL = 2;
1850
1851    //
1852    // Enumeration values for CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
1853    //
1854
1855    /**
1856     * <p>Do not include a lens shading map in the capture result.</p>
1857     * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
1858     */
1859    public static final int STATISTICS_LENS_SHADING_MAP_MODE_OFF = 0;
1860
1861    /**
1862     * <p>Include a lens shading map in the capture result.</p>
1863     * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
1864     */
1865    public static final int STATISTICS_LENS_SHADING_MAP_MODE_ON = 1;
1866
1867    //
1868    // Enumeration values for CaptureRequest#TONEMAP_MODE
1869    //
1870
1871    /**
1872     * <p>Use the tone mapping curve specified in
1873     * the {@link CaptureRequest#TONEMAP_CURVE android.tonemap.curve}* entries.</p>
1874     * <p>All color enhancement and tonemapping must be disabled, except
1875     * for applying the tonemapping curve specified by
1876     * {@link CaptureRequest#TONEMAP_CURVE android.tonemap.curve}.</p>
1877     * <p>Must not slow down frame rate relative to raw
1878     * sensor output.</p>
1879     *
1880     * @see CaptureRequest#TONEMAP_CURVE
1881     * @see CaptureRequest#TONEMAP_MODE
1882     */
1883    public static final int TONEMAP_MODE_CONTRAST_CURVE = 0;
1884
1885    /**
1886     * <p>Advanced gamma mapping and color enhancement may be applied, without
1887     * reducing frame rate compared to raw sensor output.</p>
1888     * @see CaptureRequest#TONEMAP_MODE
1889     */
1890    public static final int TONEMAP_MODE_FAST = 1;
1891
1892    /**
1893     * <p>High-quality gamma mapping and color enhancement will be applied, at
1894     * the cost of reduced frame rate compared to raw sensor output.</p>
1895     * @see CaptureRequest#TONEMAP_MODE
1896     */
1897    public static final int TONEMAP_MODE_HIGH_QUALITY = 2;
1898
1899    //
1900    // Enumeration values for CaptureResult#CONTROL_AE_STATE
1901    //
1902
1903    /**
1904     * <p>AE is off or recently reset.</p>
1905     * <p>When a camera device is opened, it starts in
1906     * this state. This is a transient state, the camera device may skip reporting
1907     * this state in capture result.</p>
1908     * @see CaptureResult#CONTROL_AE_STATE
1909     */
1910    public static final int CONTROL_AE_STATE_INACTIVE = 0;
1911
1912    /**
1913     * <p>AE doesn't yet have a good set of control values
1914     * for the current scene.</p>
1915     * <p>This is a transient state, the camera device may skip
1916     * reporting this state in capture result.</p>
1917     * @see CaptureResult#CONTROL_AE_STATE
1918     */
1919    public static final int CONTROL_AE_STATE_SEARCHING = 1;
1920
1921    /**
1922     * <p>AE has a good set of control values for the
1923     * current scene.</p>
1924     * @see CaptureResult#CONTROL_AE_STATE
1925     */
1926    public static final int CONTROL_AE_STATE_CONVERGED = 2;
1927
1928    /**
1929     * <p>AE has been locked.</p>
1930     * @see CaptureResult#CONTROL_AE_STATE
1931     */
1932    public static final int CONTROL_AE_STATE_LOCKED = 3;
1933
1934    /**
1935     * <p>AE has a good set of control values, but flash
1936     * needs to be fired for good quality still
1937     * capture.</p>
1938     * @see CaptureResult#CONTROL_AE_STATE
1939     */
1940    public static final int CONTROL_AE_STATE_FLASH_REQUIRED = 4;
1941
1942    /**
1943     * <p>AE has been asked to do a precapture sequence
1944     * and is currently executing it.</p>
1945     * <p>Precapture can be triggered through setting
1946     * {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger} to START.</p>
1947     * <p>Once PRECAPTURE completes, AE will transition to CONVERGED
1948     * or FLASH_REQUIRED as appropriate. This is a transient
1949     * state, the camera device may skip reporting this state in
1950     * capture result.</p>
1951     *
1952     * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
1953     * @see CaptureResult#CONTROL_AE_STATE
1954     */
1955    public static final int CONTROL_AE_STATE_PRECAPTURE = 5;
1956
1957    //
1958    // Enumeration values for CaptureResult#CONTROL_AF_STATE
1959    //
1960
1961    /**
1962     * <p>AF is off or has not yet tried to scan/been asked
1963     * to scan.</p>
1964     * <p>When a camera device is opened, it starts in this
1965     * state. This is a transient state, the camera device may
1966     * skip reporting this state in capture
1967     * result.</p>
1968     * @see CaptureResult#CONTROL_AF_STATE
1969     */
1970    public static final int CONTROL_AF_STATE_INACTIVE = 0;
1971
1972    /**
1973     * <p>AF is currently performing an AF scan initiated the
1974     * camera device in a continuous autofocus mode.</p>
1975     * <p>Only used by CONTINUOUS_* AF modes. This is a transient
1976     * state, the camera device may skip reporting this state in
1977     * capture result.</p>
1978     * @see CaptureResult#CONTROL_AF_STATE
1979     */
1980    public static final int CONTROL_AF_STATE_PASSIVE_SCAN = 1;
1981
1982    /**
1983     * <p>AF currently believes it is in focus, but may
1984     * restart scanning at any time.</p>
1985     * <p>Only used by CONTINUOUS_* AF modes. This is a transient
1986     * state, the camera device may skip reporting this state in
1987     * capture result.</p>
1988     * @see CaptureResult#CONTROL_AF_STATE
1989     */
1990    public static final int CONTROL_AF_STATE_PASSIVE_FOCUSED = 2;
1991
1992    /**
1993     * <p>AF is performing an AF scan because it was
1994     * triggered by AF trigger.</p>
1995     * <p>Only used by AUTO or MACRO AF modes. This is a transient
1996     * state, the camera device may skip reporting this state in
1997     * capture result.</p>
1998     * @see CaptureResult#CONTROL_AF_STATE
1999     */
2000    public static final int CONTROL_AF_STATE_ACTIVE_SCAN = 3;
2001
2002    /**
2003     * <p>AF believes it is focused correctly and has locked
2004     * focus.</p>
2005     * <p>This state is reached only after an explicit START AF trigger has been
2006     * sent ({@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}), when good focus has been obtained.</p>
2007     * <p>The lens will remain stationary until the AF mode ({@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}) is changed or
2008     * a new AF trigger is sent to the camera device ({@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}).</p>
2009     *
2010     * @see CaptureRequest#CONTROL_AF_MODE
2011     * @see CaptureRequest#CONTROL_AF_TRIGGER
2012     * @see CaptureResult#CONTROL_AF_STATE
2013     */
2014    public static final int CONTROL_AF_STATE_FOCUSED_LOCKED = 4;
2015
2016    /**
2017     * <p>AF has failed to focus successfully and has locked
2018     * focus.</p>
2019     * <p>This state is reached only after an explicit START AF trigger has been
2020     * sent ({@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}), when good focus cannot be obtained.</p>
2021     * <p>The lens will remain stationary until the AF mode ({@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}) is changed or
2022     * a new AF trigger is sent to the camera device ({@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}).</p>
2023     *
2024     * @see CaptureRequest#CONTROL_AF_MODE
2025     * @see CaptureRequest#CONTROL_AF_TRIGGER
2026     * @see CaptureResult#CONTROL_AF_STATE
2027     */
2028    public static final int CONTROL_AF_STATE_NOT_FOCUSED_LOCKED = 5;
2029
2030    /**
2031     * <p>AF finished a passive scan without finding focus,
2032     * and may restart scanning at any time.</p>
2033     * <p>Only used by CONTINUOUS_* AF modes. This is a transient state, the camera
2034     * device may skip reporting this state in capture result.</p>
2035     * @see CaptureResult#CONTROL_AF_STATE
2036     */
2037    public static final int CONTROL_AF_STATE_PASSIVE_UNFOCUSED = 6;
2038
2039    //
2040    // Enumeration values for CaptureResult#CONTROL_AWB_STATE
2041    //
2042
2043    /**
2044     * <p>AWB is not in auto mode, or has not yet started metering.</p>
2045     * <p>When a camera device is opened, it starts in this
2046     * state. This is a transient state, the camera device may
2047     * skip reporting this state in capture
2048     * result.</p>
2049     * @see CaptureResult#CONTROL_AWB_STATE
2050     */
2051    public static final int CONTROL_AWB_STATE_INACTIVE = 0;
2052
2053    /**
2054     * <p>AWB doesn't yet have a good set of control
2055     * values for the current scene.</p>
2056     * <p>This is a transient state, the camera device
2057     * may skip reporting this state in capture result.</p>
2058     * @see CaptureResult#CONTROL_AWB_STATE
2059     */
2060    public static final int CONTROL_AWB_STATE_SEARCHING = 1;
2061
2062    /**
2063     * <p>AWB has a good set of control values for the
2064     * current scene.</p>
2065     * @see CaptureResult#CONTROL_AWB_STATE
2066     */
2067    public static final int CONTROL_AWB_STATE_CONVERGED = 2;
2068
2069    /**
2070     * <p>AWB has been locked.</p>
2071     * @see CaptureResult#CONTROL_AWB_STATE
2072     */
2073    public static final int CONTROL_AWB_STATE_LOCKED = 3;
2074
2075    //
2076    // Enumeration values for CaptureResult#FLASH_STATE
2077    //
2078
2079    /**
2080     * <p>No flash on camera.</p>
2081     * @see CaptureResult#FLASH_STATE
2082     */
2083    public static final int FLASH_STATE_UNAVAILABLE = 0;
2084
2085    /**
2086     * <p>Flash is charging and cannot be fired.</p>
2087     * @see CaptureResult#FLASH_STATE
2088     */
2089    public static final int FLASH_STATE_CHARGING = 1;
2090
2091    /**
2092     * <p>Flash is ready to fire.</p>
2093     * @see CaptureResult#FLASH_STATE
2094     */
2095    public static final int FLASH_STATE_READY = 2;
2096
2097    /**
2098     * <p>Flash fired for this capture.</p>
2099     * @see CaptureResult#FLASH_STATE
2100     */
2101    public static final int FLASH_STATE_FIRED = 3;
2102
2103    /**
2104     * <p>Flash partially illuminated this frame.</p>
2105     * <p>This is usually due to the next or previous frame having
2106     * the flash fire, and the flash spilling into this capture
2107     * due to hardware limitations.</p>
2108     * @see CaptureResult#FLASH_STATE
2109     */
2110    public static final int FLASH_STATE_PARTIAL = 4;
2111
2112    //
2113    // Enumeration values for CaptureResult#LENS_STATE
2114    //
2115
2116    /**
2117     * <p>The lens parameters ({@link CaptureRequest#LENS_FOCAL_LENGTH android.lens.focalLength}, {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance},
2118     * {@link CaptureRequest#LENS_FILTER_DENSITY android.lens.filterDensity} and {@link CaptureRequest#LENS_APERTURE android.lens.aperture}) are not changing.</p>
2119     *
2120     * @see CaptureRequest#LENS_APERTURE
2121     * @see CaptureRequest#LENS_FILTER_DENSITY
2122     * @see CaptureRequest#LENS_FOCAL_LENGTH
2123     * @see CaptureRequest#LENS_FOCUS_DISTANCE
2124     * @see CaptureResult#LENS_STATE
2125     */
2126    public static final int LENS_STATE_STATIONARY = 0;
2127
2128    /**
2129     * <p>One or several of the lens parameters
2130     * ({@link CaptureRequest#LENS_FOCAL_LENGTH android.lens.focalLength}, {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance},
2131     * {@link CaptureRequest#LENS_FILTER_DENSITY android.lens.filterDensity} or {@link CaptureRequest#LENS_APERTURE android.lens.aperture}) is
2132     * currently changing.</p>
2133     *
2134     * @see CaptureRequest#LENS_APERTURE
2135     * @see CaptureRequest#LENS_FILTER_DENSITY
2136     * @see CaptureRequest#LENS_FOCAL_LENGTH
2137     * @see CaptureRequest#LENS_FOCUS_DISTANCE
2138     * @see CaptureResult#LENS_STATE
2139     */
2140    public static final int LENS_STATE_MOVING = 1;
2141
2142    //
2143    // Enumeration values for CaptureResult#STATISTICS_SCENE_FLICKER
2144    //
2145
2146    /**
2147     * <p>The camera device does not detect any flickering illumination
2148     * in the current scene.</p>
2149     * @see CaptureResult#STATISTICS_SCENE_FLICKER
2150     */
2151    public static final int STATISTICS_SCENE_FLICKER_NONE = 0;
2152
2153    /**
2154     * <p>The camera device detects illumination flickering at 50Hz
2155     * in the current scene.</p>
2156     * @see CaptureResult#STATISTICS_SCENE_FLICKER
2157     */
2158    public static final int STATISTICS_SCENE_FLICKER_50HZ = 1;
2159
2160    /**
2161     * <p>The camera device detects illumination flickering at 60Hz
2162     * in the current scene.</p>
2163     * @see CaptureResult#STATISTICS_SCENE_FLICKER
2164     */
2165    public static final int STATISTICS_SCENE_FLICKER_60HZ = 2;
2166
2167    //
2168    // Enumeration values for CaptureResult#SYNC_FRAME_NUMBER
2169    //
2170
2171    /**
2172     * <p>The current result is not yet fully synchronized to any request.</p>
2173     * <p>Synchronization is in progress, and reading metadata from this
2174     * result may include a mix of data that have taken effect since the
2175     * last synchronization time.</p>
2176     * <p>In some future result, within {@link CameraCharacteristics#SYNC_MAX_LATENCY android.sync.maxLatency} frames,
2177     * this value will update to the actual frame number frame number
2178     * the result is guaranteed to be synchronized to (as long as the
2179     * request settings remain constant).</p>
2180     *
2181     * @see CameraCharacteristics#SYNC_MAX_LATENCY
2182     * @see CaptureResult#SYNC_FRAME_NUMBER
2183     * @hide
2184     */
2185    public static final int SYNC_FRAME_NUMBER_CONVERGING = -1;
2186
2187    /**
2188     * <p>The current result's synchronization status is unknown.</p>
2189     * <p>The result may have already converged, or it may be in
2190     * progress.  Reading from this result may include some mix
2191     * of settings from past requests.</p>
2192     * <p>After a settings change, the new settings will eventually all
2193     * take effect for the output buffers and results. However, this
2194     * value will not change when that happens. Altering settings
2195     * rapidly may provide outcomes using mixes of settings from recent
2196     * requests.</p>
2197     * <p>This value is intended primarily for backwards compatibility with
2198     * the older camera implementations (for android.hardware.Camera).</p>
2199     * @see CaptureResult#SYNC_FRAME_NUMBER
2200     * @hide
2201     */
2202    public static final int SYNC_FRAME_NUMBER_UNKNOWN = -2;
2203
2204    /*~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~
2205     * End generated code
2206     *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~O@*/
2207
2208}
2209