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