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