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