NdkCameraMetadataTags.h revision e2b43843fd12783188edd2c54188ea8d26864788
1/* 2 * Copyright (C) 2015 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 17/** 18 * @addtogroup Camera 19 * @{ 20 */ 21 22/** 23 * @file NdkCameraMetadataTags.h 24 */ 25 26/* 27 * This file defines an NDK API. 28 * Do not remove methods. 29 * Do not change method signatures. 30 * Do not change the value of constants. 31 * Do not change the size of any of the classes defined in here. 32 * Do not reference types that are not part of the NDK. 33 * Do not #include files that aren't part of the NDK. 34 */ 35 36#ifndef _NDK_CAMERA_METADATA_TAGS_H 37#define _NDK_CAMERA_METADATA_TAGS_H 38 39#include <sys/cdefs.h> 40 41__BEGIN_DECLS 42 43#if __ANDROID_API__ >= 24 44 45typedef enum acamera_metadata_section { 46 ACAMERA_COLOR_CORRECTION, 47 ACAMERA_CONTROL, 48 ACAMERA_DEMOSAIC, 49 ACAMERA_EDGE, 50 ACAMERA_FLASH, 51 ACAMERA_FLASH_INFO, 52 ACAMERA_HOT_PIXEL, 53 ACAMERA_JPEG, 54 ACAMERA_LENS, 55 ACAMERA_LENS_INFO, 56 ACAMERA_NOISE_REDUCTION, 57 ACAMERA_QUIRKS, 58 ACAMERA_REQUEST, 59 ACAMERA_SCALER, 60 ACAMERA_SENSOR, 61 ACAMERA_SENSOR_INFO, 62 ACAMERA_SHADING, 63 ACAMERA_STATISTICS, 64 ACAMERA_STATISTICS_INFO, 65 ACAMERA_TONEMAP, 66 ACAMERA_LED, 67 ACAMERA_INFO, 68 ACAMERA_BLACK_LEVEL, 69 ACAMERA_SYNC, 70 ACAMERA_REPROCESS, 71 ACAMERA_DEPTH, 72 ACAMERA_SECTION_COUNT, 73 74 ACAMERA_VENDOR = 0x8000 75} acamera_metadata_section_t; 76 77/** 78 * Hierarchy positions in enum space. 79 */ 80typedef enum acamera_metadata_section_start { 81 ACAMERA_COLOR_CORRECTION_START = ACAMERA_COLOR_CORRECTION << 16, 82 ACAMERA_CONTROL_START = ACAMERA_CONTROL << 16, 83 ACAMERA_DEMOSAIC_START = ACAMERA_DEMOSAIC << 16, 84 ACAMERA_EDGE_START = ACAMERA_EDGE << 16, 85 ACAMERA_FLASH_START = ACAMERA_FLASH << 16, 86 ACAMERA_FLASH_INFO_START = ACAMERA_FLASH_INFO << 16, 87 ACAMERA_HOT_PIXEL_START = ACAMERA_HOT_PIXEL << 16, 88 ACAMERA_JPEG_START = ACAMERA_JPEG << 16, 89 ACAMERA_LENS_START = ACAMERA_LENS << 16, 90 ACAMERA_LENS_INFO_START = ACAMERA_LENS_INFO << 16, 91 ACAMERA_NOISE_REDUCTION_START = ACAMERA_NOISE_REDUCTION << 16, 92 ACAMERA_QUIRKS_START = ACAMERA_QUIRKS << 16, 93 ACAMERA_REQUEST_START = ACAMERA_REQUEST << 16, 94 ACAMERA_SCALER_START = ACAMERA_SCALER << 16, 95 ACAMERA_SENSOR_START = ACAMERA_SENSOR << 16, 96 ACAMERA_SENSOR_INFO_START = ACAMERA_SENSOR_INFO << 16, 97 ACAMERA_SHADING_START = ACAMERA_SHADING << 16, 98 ACAMERA_STATISTICS_START = ACAMERA_STATISTICS << 16, 99 ACAMERA_STATISTICS_INFO_START = ACAMERA_STATISTICS_INFO << 16, 100 ACAMERA_TONEMAP_START = ACAMERA_TONEMAP << 16, 101 ACAMERA_LED_START = ACAMERA_LED << 16, 102 ACAMERA_INFO_START = ACAMERA_INFO << 16, 103 ACAMERA_BLACK_LEVEL_START = ACAMERA_BLACK_LEVEL << 16, 104 ACAMERA_SYNC_START = ACAMERA_SYNC << 16, 105 ACAMERA_REPROCESS_START = ACAMERA_REPROCESS << 16, 106 ACAMERA_DEPTH_START = ACAMERA_DEPTH << 16, 107 ACAMERA_VENDOR_START = ACAMERA_VENDOR << 16 108} acamera_metadata_section_start_t; 109 110/** 111 * Main enum for camera metadata tags. 112 */ 113typedef enum acamera_metadata_tag { 114 /** 115 * <p>The mode control selects how the image data is converted from the 116 * sensor's native color into linear sRGB color.</p> 117 * 118 * <p>This tag may appear in:</p> 119 * <ul> 120 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 121 * <li>ACaptureRequest</li> 122 * </ul> 123 * 124 * <p>When auto-white balance (AWB) is enabled with ACAMERA_CONTROL_AWB_MODE, this 125 * control is overridden by the AWB routine. When AWB is disabled, the 126 * application controls how the color mapping is performed.</p> 127 * <p>We define the expected processing pipeline below. For consistency 128 * across devices, this is always the case with TRANSFORM_MATRIX.</p> 129 * <p>When either FULL or HIGH_QUALITY is used, the camera device may 130 * do additional processing but ACAMERA_COLOR_CORRECTION_GAINS and 131 * ACAMERA_COLOR_CORRECTION_TRANSFORM will still be provided by the 132 * camera device (in the results) and be roughly correct.</p> 133 * <p>Switching to TRANSFORM_MATRIX and using the data provided from 134 * FAST or HIGH_QUALITY will yield a picture with the same white point 135 * as what was produced by the camera device in the earlier frame.</p> 136 * <p>The expected processing pipeline is as follows:</p> 137 * <p><img alt="White balance processing pipeline" src="../images/camera2/metadata/android.colorCorrection.mode/processing_pipeline.png" /></p> 138 * <p>The white balance is encoded by two values, a 4-channel white-balance 139 * gain vector (applied in the Bayer domain), and a 3x3 color transform 140 * matrix (applied after demosaic).</p> 141 * <p>The 4-channel white-balance gains are defined as:</p> 142 * <pre><code>ACAMERA_COLOR_CORRECTION_GAINS = [ R G_even G_odd B ] 143 * </code></pre> 144 * <p>where <code>G_even</code> is the gain for green pixels on even rows of the 145 * output, and <code>G_odd</code> is the gain for green pixels on the odd rows. 146 * These may be identical for a given camera device implementation; if 147 * the camera device does not support a separate gain for even/odd green 148 * channels, it will use the <code>G_even</code> value, and write <code>G_odd</code> equal to 149 * <code>G_even</code> in the output result metadata.</p> 150 * <p>The matrices for color transforms are defined as a 9-entry vector:</p> 151 * <pre><code>ACAMERA_COLOR_CORRECTION_TRANSFORM = [ I0 I1 I2 I3 I4 I5 I6 I7 I8 ] 152 * </code></pre> 153 * <p>which define a transform from input sensor colors, <code>P_in = [ r g b ]</code>, 154 * to output linear sRGB, <code>P_out = [ r' g' b' ]</code>,</p> 155 * <p>with colors as follows:</p> 156 * <pre><code>r' = I0r + I1g + I2b 157 * g' = I3r + I4g + I5b 158 * b' = I6r + I7g + I8b 159 * </code></pre> 160 * <p>Both the input and output value ranges must match. Overflow/underflow 161 * values are clipped to fit within the range.</p> 162 * 163 * @see ACAMERA_COLOR_CORRECTION_GAINS 164 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 165 * @see ACAMERA_CONTROL_AWB_MODE 166 */ 167 ACAMERA_COLOR_CORRECTION_MODE = // byte (enum) 168 ACAMERA_COLOR_CORRECTION_START, 169 /** 170 * <p>A color transform matrix to use to transform 171 * from sensor RGB color space to output linear sRGB color space.</p> 172 * 173 * <p>This tag may appear in:</p> 174 * <ul> 175 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 176 * <li>ACaptureRequest</li> 177 * </ul> 178 * 179 * <p>This matrix is either set by the camera device when the request 180 * ACAMERA_COLOR_CORRECTION_MODE is not TRANSFORM_MATRIX, or 181 * directly by the application in the request when the 182 * ACAMERA_COLOR_CORRECTION_MODE is TRANSFORM_MATRIX.</p> 183 * <p>In the latter case, the camera device may round the matrix to account 184 * for precision issues; the final rounded matrix should be reported back 185 * in this matrix result metadata. The transform should keep the magnitude 186 * of the output color values within <code>[0, 1.0]</code> (assuming input color 187 * values is within the normalized range <code>[0, 1.0]</code>), or clipping may occur.</p> 188 * <p>The valid range of each matrix element varies on different devices, but 189 * values within [-1.5, 3.0] are guaranteed not to be clipped.</p> 190 * 191 * @see ACAMERA_COLOR_CORRECTION_MODE 192 */ 193 ACAMERA_COLOR_CORRECTION_TRANSFORM = // rational[3*3] 194 ACAMERA_COLOR_CORRECTION_START + 1, 195 /** 196 * <p>Gains applying to Bayer raw color channels for 197 * white-balance.</p> 198 * 199 * <p>This tag may appear in:</p> 200 * <ul> 201 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 202 * <li>ACaptureRequest</li> 203 * </ul> 204 * 205 * <p>These per-channel gains are either set by the camera device 206 * when the request ACAMERA_COLOR_CORRECTION_MODE is not 207 * TRANSFORM_MATRIX, or directly by the application in the 208 * request when the ACAMERA_COLOR_CORRECTION_MODE is 209 * TRANSFORM_MATRIX.</p> 210 * <p>The gains in the result metadata are the gains actually 211 * applied by the camera device to the current frame.</p> 212 * <p>The valid range of gains varies on different devices, but gains 213 * between [1.0, 3.0] are guaranteed not to be clipped. Even if a given 214 * device allows gains below 1.0, this is usually not recommended because 215 * this can create color artifacts.</p> 216 * 217 * @see ACAMERA_COLOR_CORRECTION_MODE 218 */ 219 ACAMERA_COLOR_CORRECTION_GAINS = // float[4] 220 ACAMERA_COLOR_CORRECTION_START + 2, 221 /** 222 * <p>Mode of operation for the chromatic aberration correction algorithm.</p> 223 * 224 * <p>This tag may appear in:</p> 225 * <ul> 226 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 227 * <li>ACaptureRequest</li> 228 * </ul> 229 * 230 * <p>Chromatic (color) aberration is caused by the fact that different wavelengths of light 231 * can not focus on the same point after exiting from the lens. This metadata defines 232 * the high level control of chromatic aberration correction algorithm, which aims to 233 * minimize the chromatic artifacts that may occur along the object boundaries in an 234 * image.</p> 235 * <p>FAST/HIGH_QUALITY both mean that camera device determined aberration 236 * correction will be applied. HIGH_QUALITY mode indicates that the camera device will 237 * use the highest-quality aberration correction algorithms, even if it slows down 238 * capture rate. FAST means the camera device will not slow down capture rate when 239 * applying aberration correction.</p> 240 * <p>LEGACY devices will always be in FAST mode.</p> 241 */ 242 ACAMERA_COLOR_CORRECTION_ABERRATION_MODE = // byte (enum) 243 ACAMERA_COLOR_CORRECTION_START + 3, 244 /** 245 * <p>List of aberration correction modes for ACAMERA_COLOR_CORRECTION_ABERRATION_MODE that are 246 * supported by this camera device.</p> 247 * 248 * @see ACAMERA_COLOR_CORRECTION_ABERRATION_MODE 249 * 250 * <p>This tag may appear in:</p> 251 * <ul> 252 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 253 * </ul> 254 * 255 * <p>This key lists the valid modes for ACAMERA_COLOR_CORRECTION_ABERRATION_MODE. If no 256 * aberration correction modes are available for a device, this list will solely include 257 * OFF mode. All camera devices will support either OFF or FAST mode.</p> 258 * <p>Camera devices that support the MANUAL_POST_PROCESSING capability will always list 259 * OFF mode. This includes all FULL level devices.</p> 260 * <p>LEGACY devices will always only support FAST mode.</p> 261 * 262 * @see ACAMERA_COLOR_CORRECTION_ABERRATION_MODE 263 */ 264 ACAMERA_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES = // byte[n] 265 ACAMERA_COLOR_CORRECTION_START + 4, 266 ACAMERA_COLOR_CORRECTION_END, 267 268 /** 269 * <p>The desired setting for the camera device's auto-exposure 270 * algorithm's antibanding compensation.</p> 271 * 272 * <p>This tag may appear in:</p> 273 * <ul> 274 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 275 * <li>ACaptureRequest</li> 276 * </ul> 277 * 278 * <p>Some kinds of lighting fixtures, such as some fluorescent 279 * lights, flicker at the rate of the power supply frequency 280 * (60Hz or 50Hz, depending on country). While this is 281 * typically not noticeable to a person, it can be visible to 282 * a camera device. If a camera sets its exposure time to the 283 * wrong value, the flicker may become visible in the 284 * viewfinder as flicker or in a final captured image, as a 285 * set of variable-brightness bands across the image.</p> 286 * <p>Therefore, the auto-exposure routines of camera devices 287 * include antibanding routines that ensure that the chosen 288 * exposure value will not cause such banding. The choice of 289 * exposure time depends on the rate of flicker, which the 290 * camera device can detect automatically, or the expected 291 * rate can be selected by the application using this 292 * control.</p> 293 * <p>A given camera device may not support all of the possible 294 * options for the antibanding mode. The 295 * ACAMERA_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES key contains 296 * the available modes for a given camera device.</p> 297 * <p>AUTO mode is the default if it is available on given 298 * camera device. When AUTO mode is not available, the 299 * default will be either 50HZ or 60HZ, and both 50HZ 300 * and 60HZ will be available.</p> 301 * <p>If manual exposure control is enabled (by setting 302 * ACAMERA_CONTROL_AE_MODE or ACAMERA_CONTROL_MODE to OFF), 303 * then this setting has no effect, and the application must 304 * ensure it selects exposure times that do not cause banding 305 * issues. The ACAMERA_STATISTICS_SCENE_FLICKER key can assist 306 * the application in this.</p> 307 * 308 * @see ACAMERA_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES 309 * @see ACAMERA_CONTROL_AE_MODE 310 * @see ACAMERA_CONTROL_MODE 311 * @see ACAMERA_STATISTICS_SCENE_FLICKER 312 */ 313 ACAMERA_CONTROL_AE_ANTIBANDING_MODE = // byte (enum) 314 ACAMERA_CONTROL_START, 315 /** 316 * <p>Adjustment to auto-exposure (AE) target image 317 * brightness.</p> 318 * 319 * <p>This tag may appear in:</p> 320 * <ul> 321 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 322 * <li>ACaptureRequest</li> 323 * </ul> 324 * 325 * <p>The adjustment is measured as a count of steps, with the 326 * step size defined by ACAMERA_CONTROL_AE_COMPENSATION_STEP and the 327 * allowed range by ACAMERA_CONTROL_AE_COMPENSATION_RANGE.</p> 328 * <p>For example, if the exposure value (EV) step is 0.333, '6' 329 * will mean an exposure compensation of +2 EV; -3 will mean an 330 * exposure compensation of -1 EV. One EV represents a doubling 331 * of image brightness. Note that this control will only be 332 * effective if ACAMERA_CONTROL_AE_MODE <code>!=</code> OFF. This control 333 * will take effect even when ACAMERA_CONTROL_AE_LOCK <code>== true</code>.</p> 334 * <p>In the event of exposure compensation value being changed, camera device 335 * may take several frames to reach the newly requested exposure target. 336 * During that time, ACAMERA_CONTROL_AE_STATE field will be in the SEARCHING 337 * state. Once the new exposure target is reached, ACAMERA_CONTROL_AE_STATE will 338 * change from SEARCHING to either CONVERGED, LOCKED (if AE lock is enabled), or 339 * FLASH_REQUIRED (if the scene is too dark for still capture).</p> 340 * 341 * @see ACAMERA_CONTROL_AE_COMPENSATION_RANGE 342 * @see ACAMERA_CONTROL_AE_COMPENSATION_STEP 343 * @see ACAMERA_CONTROL_AE_LOCK 344 * @see ACAMERA_CONTROL_AE_MODE 345 * @see ACAMERA_CONTROL_AE_STATE 346 */ 347 ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION = // int32 348 ACAMERA_CONTROL_START + 1, 349 /** 350 * <p>Whether auto-exposure (AE) is currently locked to its latest 351 * calculated values.</p> 352 * 353 * <p>This tag may appear in:</p> 354 * <ul> 355 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 356 * <li>ACaptureRequest</li> 357 * </ul> 358 * 359 * <p>When set to <code>true</code> (ON), the AE algorithm is locked to its latest parameters, 360 * and will not change exposure settings until the lock is set to <code>false</code> (OFF).</p> 361 * <p>Note that even when AE is locked, the flash may be fired if 362 * the ACAMERA_CONTROL_AE_MODE is ON_AUTO_FLASH / 363 * ON_ALWAYS_FLASH / ON_AUTO_FLASH_REDEYE.</p> 364 * <p>When ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION is changed, even if the AE lock 365 * is ON, the camera device will still adjust its exposure value.</p> 366 * <p>If AE precapture is triggered (see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER) 367 * when AE is already locked, the camera device will not change the exposure time 368 * (ACAMERA_SENSOR_EXPOSURE_TIME) and sensitivity (ACAMERA_SENSOR_SENSITIVITY) 369 * parameters. The flash may be fired if the ACAMERA_CONTROL_AE_MODE 370 * is ON_AUTO_FLASH/ON_AUTO_FLASH_REDEYE and the scene is too dark. If the 371 * ACAMERA_CONTROL_AE_MODE is ON_ALWAYS_FLASH, the scene may become overexposed. 372 * Similarly, AE precapture trigger CANCEL has no effect when AE is already locked.</p> 373 * <p>When an AE precapture sequence is triggered, AE unlock will not be able to unlock 374 * the AE if AE is locked by the camera device internally during precapture metering 375 * sequence In other words, submitting requests with AE unlock has no effect for an 376 * ongoing precapture metering sequence. Otherwise, the precapture metering sequence 377 * will never succeed in a sequence of preview requests where AE lock is always set 378 * to <code>false</code>.</p> 379 * <p>Since the camera device has a pipeline of in-flight requests, the settings that 380 * get locked do not necessarily correspond to the settings that were present in the 381 * latest capture result received from the camera device, since additional captures 382 * and AE updates may have occurred even before the result was sent out. If an 383 * application is switching between automatic and manual control and wishes to eliminate 384 * any flicker during the switch, the following procedure is recommended:</p> 385 * <ol> 386 * <li>Starting in auto-AE mode:</li> 387 * <li>Lock AE</li> 388 * <li>Wait for the first result to be output that has the AE locked</li> 389 * <li>Copy exposure settings from that result into a request, set the request to manual AE</li> 390 * <li>Submit the capture request, proceed to run manual AE as desired.</li> 391 * </ol> 392 * <p>See ACAMERA_CONTROL_AE_STATE for AE lock related state transition details.</p> 393 * 394 * @see ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION 395 * @see ACAMERA_CONTROL_AE_MODE 396 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 397 * @see ACAMERA_CONTROL_AE_STATE 398 * @see ACAMERA_SENSOR_EXPOSURE_TIME 399 * @see ACAMERA_SENSOR_SENSITIVITY 400 */ 401 ACAMERA_CONTROL_AE_LOCK = // byte (enum) 402 ACAMERA_CONTROL_START + 2, 403 /** 404 * <p>The desired mode for the camera device's 405 * auto-exposure routine.</p> 406 * 407 * <p>This tag may appear in:</p> 408 * <ul> 409 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 410 * <li>ACaptureRequest</li> 411 * </ul> 412 * 413 * <p>This control is only effective if ACAMERA_CONTROL_MODE is 414 * AUTO.</p> 415 * <p>When set to any of the ON modes, the camera device's 416 * auto-exposure routine is enabled, overriding the 417 * application's selected exposure time, sensor sensitivity, 418 * and frame duration (ACAMERA_SENSOR_EXPOSURE_TIME, 419 * ACAMERA_SENSOR_SENSITIVITY, and 420 * ACAMERA_SENSOR_FRAME_DURATION). If one of the FLASH modes 421 * is selected, the camera device's flash unit controls are 422 * also overridden.</p> 423 * <p>The FLASH modes are only available if the camera device 424 * has a flash unit (ACAMERA_FLASH_INFO_AVAILABLE is <code>true</code>).</p> 425 * <p>If flash TORCH mode is desired, this field must be set to 426 * ON or OFF, and ACAMERA_FLASH_MODE set to TORCH.</p> 427 * <p>When set to any of the ON modes, the values chosen by the 428 * camera device auto-exposure routine for the overridden 429 * fields for a given capture will be available in its 430 * CaptureResult.</p> 431 * 432 * @see ACAMERA_CONTROL_MODE 433 * @see ACAMERA_FLASH_INFO_AVAILABLE 434 * @see ACAMERA_FLASH_MODE 435 * @see ACAMERA_SENSOR_EXPOSURE_TIME 436 * @see ACAMERA_SENSOR_FRAME_DURATION 437 * @see ACAMERA_SENSOR_SENSITIVITY 438 */ 439 ACAMERA_CONTROL_AE_MODE = // byte (enum) 440 ACAMERA_CONTROL_START + 3, 441 /** 442 * <p>List of metering areas to use for auto-exposure adjustment.</p> 443 * 444 * <p>This tag may appear in:</p> 445 * <ul> 446 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 447 * <li>ACaptureRequest</li> 448 * </ul> 449 * 450 * <p>Not available if android.control.maxRegionsAe is 0. 451 * Otherwise will always be present.</p> 452 * <p>The maximum number of regions supported by the device is determined by the value 453 * of android.control.maxRegionsAe.</p> 454 * <p>The data representation is int[5 * area_count]. 455 * Every five elements represent a metering region of (xmin, ymin, xmax, ymax, weight). 456 * The rectangle is defined to be inclusive on xmin and ymin, but exclusive on xmax and 457 * ymax.</p> 458 * <p>The coordinate system is based on the active pixel array, 459 * with (0,0) being the top-left pixel in the active pixel array, and 460 * (ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.width - 1, 461 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.height - 1) being the 462 * bottom-right pixel in the active pixel array.</p> 463 * <p>The weight must be within <code>[0, 1000]</code>, and represents a weight 464 * for every pixel in the area. This means that a large metering area 465 * with the same weight as a smaller area will have more effect in 466 * the metering result. Metering areas can partially overlap and the 467 * camera device will add the weights in the overlap region.</p> 468 * <p>The weights are relative to weights of other exposure metering regions, so if only one 469 * region is used, all non-zero weights will have the same effect. A region with 0 470 * weight is ignored.</p> 471 * <p>If all regions have 0 weight, then no specific metering area needs to be used by the 472 * camera device.</p> 473 * <p>If the metering region is outside the used ACAMERA_SCALER_CROP_REGION returned in 474 * capture result metadata, the camera device will ignore the sections outside the crop 475 * region and output only the intersection rectangle as the metering region in the result 476 * metadata. If the region is entirely outside the crop region, it will be ignored and 477 * not reported in the result metadata.</p> 478 * 479 * @see ACAMERA_SCALER_CROP_REGION 480 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 481 */ 482 ACAMERA_CONTROL_AE_REGIONS = // int32[5*area_count] 483 ACAMERA_CONTROL_START + 4, 484 /** 485 * <p>Range over which the auto-exposure routine can 486 * adjust the capture frame rate to maintain good 487 * exposure.</p> 488 * 489 * <p>This tag may appear in:</p> 490 * <ul> 491 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 492 * <li>ACaptureRequest</li> 493 * </ul> 494 * 495 * <p>Only constrains auto-exposure (AE) algorithm, not 496 * manual control of ACAMERA_SENSOR_EXPOSURE_TIME and 497 * ACAMERA_SENSOR_FRAME_DURATION.</p> 498 * 499 * @see ACAMERA_SENSOR_EXPOSURE_TIME 500 * @see ACAMERA_SENSOR_FRAME_DURATION 501 */ 502 ACAMERA_CONTROL_AE_TARGET_FPS_RANGE = // int32[2] 503 ACAMERA_CONTROL_START + 5, 504 /** 505 * <p>Whether the camera device will trigger a precapture 506 * metering sequence when it processes this request.</p> 507 * 508 * <p>This tag may appear in:</p> 509 * <ul> 510 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 511 * <li>ACaptureRequest</li> 512 * </ul> 513 * 514 * <p>This entry is normally set to IDLE, or is not 515 * included at all in the request settings. When included and 516 * set to START, the camera device will trigger the auto-exposure (AE) 517 * precapture metering sequence.</p> 518 * <p>When set to CANCEL, the camera device will cancel any active 519 * precapture metering trigger, and return to its initial AE state. 520 * If a precapture metering sequence is already completed, and the camera 521 * device has implicitly locked the AE for subsequent still capture, the 522 * CANCEL trigger will unlock the AE and return to its initial AE state.</p> 523 * <p>The precapture sequence should be triggered before starting a 524 * high-quality still capture for final metering decisions to 525 * be made, and for firing pre-capture flash pulses to estimate 526 * scene brightness and required final capture flash power, when 527 * the flash is enabled.</p> 528 * <p>Normally, this entry should be set to START for only a 529 * single request, and the application should wait until the 530 * sequence completes before starting a new one.</p> 531 * <p>When a precapture metering sequence is finished, the camera device 532 * may lock the auto-exposure routine internally to be able to accurately expose the 533 * subsequent still capture image (<code>ACAMERA_CONTROL_CAPTURE_INTENT == STILL_CAPTURE</code>). 534 * For this case, the AE may not resume normal scan if no subsequent still capture is 535 * submitted. To ensure that the AE routine restarts normal scan, the application should 536 * submit a request with <code>ACAMERA_CONTROL_AE_LOCK == true</code>, followed by a request 537 * with <code>ACAMERA_CONTROL_AE_LOCK == false</code>, if the application decides not to submit a 538 * still capture request after the precapture sequence completes. Alternatively, for 539 * API level 23 or newer devices, the CANCEL can be used to unlock the camera device 540 * internally locked AE if the application doesn't submit a still capture request after 541 * the AE precapture trigger. Note that, the CANCEL was added in API level 23, and must not 542 * be used in devices that have earlier API levels.</p> 543 * <p>The exact effect of auto-exposure (AE) precapture trigger 544 * depends on the current AE mode and state; see 545 * ACAMERA_CONTROL_AE_STATE for AE precapture state transition 546 * details.</p> 547 * <p>On LEGACY-level devices, the precapture trigger is not supported; 548 * capturing a high-resolution JPEG image will automatically trigger a 549 * precapture sequence before the high-resolution capture, including 550 * potentially firing a pre-capture flash.</p> 551 * <p>Using the precapture trigger and the auto-focus trigger ACAMERA_CONTROL_AF_TRIGGER 552 * simultaneously is allowed. However, since these triggers often require cooperation between 553 * the auto-focus and auto-exposure routines (for example, the may need to be enabled for a 554 * focus sweep), the camera device may delay acting on a later trigger until the previous 555 * trigger has been fully handled. This may lead to longer intervals between the trigger and 556 * changes to ACAMERA_CONTROL_AE_STATE indicating the start of the precapture sequence, for 557 * example.</p> 558 * <p>If both the precapture and the auto-focus trigger are activated on the same request, then 559 * the camera device will complete them in the optimal order for that device.</p> 560 * 561 * @see ACAMERA_CONTROL_AE_LOCK 562 * @see ACAMERA_CONTROL_AE_STATE 563 * @see ACAMERA_CONTROL_AF_TRIGGER 564 * @see ACAMERA_CONTROL_CAPTURE_INTENT 565 */ 566 ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER = // byte (enum) 567 ACAMERA_CONTROL_START + 6, 568 /** 569 * <p>Whether auto-focus (AF) is currently enabled, and what 570 * mode it is set to.</p> 571 * 572 * <p>This tag may appear in:</p> 573 * <ul> 574 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 575 * <li>ACaptureRequest</li> 576 * </ul> 577 * 578 * <p>Only effective if ACAMERA_CONTROL_MODE = AUTO and the lens is not fixed focus 579 * (i.e. <code>ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE > 0</code>). Also note that 580 * when ACAMERA_CONTROL_AE_MODE is OFF, the behavior of AF is device 581 * dependent. It is recommended to lock AF by using ACAMERA_CONTROL_AF_TRIGGER before 582 * setting ACAMERA_CONTROL_AE_MODE to OFF, or set AF mode to OFF when AE is OFF.</p> 583 * <p>If the lens is controlled by the camera device auto-focus algorithm, 584 * the camera device will report the current AF status in ACAMERA_CONTROL_AF_STATE 585 * in result metadata.</p> 586 * 587 * @see ACAMERA_CONTROL_AE_MODE 588 * @see ACAMERA_CONTROL_AF_STATE 589 * @see ACAMERA_CONTROL_AF_TRIGGER 590 * @see ACAMERA_CONTROL_MODE 591 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 592 */ 593 ACAMERA_CONTROL_AF_MODE = // byte (enum) 594 ACAMERA_CONTROL_START + 7, 595 /** 596 * <p>List of metering areas to use for auto-focus.</p> 597 * 598 * <p>This tag may appear in:</p> 599 * <ul> 600 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 601 * <li>ACaptureRequest</li> 602 * </ul> 603 * 604 * <p>Not available if android.control.maxRegionsAf is 0. 605 * Otherwise will always be present.</p> 606 * <p>The maximum number of focus areas supported by the device is determined by the value 607 * of android.control.maxRegionsAf.</p> 608 * <p>The data representation is int[5 * area_count]. 609 * Every five elements represent a metering region of (xmin, ymin, xmax, ymax, weight). 610 * The rectangle is defined to be inclusive on xmin and ymin, but exclusive on xmax and 611 * ymax.</p> 612 * <p>The coordinate system is based on the active pixel array, 613 * with (0,0) being the top-left pixel in the active pixel array, and 614 * (ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.width - 1, 615 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.height - 1) being the 616 * bottom-right pixel in the active pixel array.</p> 617 * <p>The weight must be within <code>[0, 1000]</code>, and represents a weight 618 * for every pixel in the area. This means that a large metering area 619 * with the same weight as a smaller area will have more effect in 620 * the metering result. Metering areas can partially overlap and the 621 * camera device will add the weights in the overlap region.</p> 622 * <p>The weights are relative to weights of other metering regions, so if only one region 623 * is used, all non-zero weights will have the same effect. A region with 0 weight is 624 * ignored.</p> 625 * <p>If all regions have 0 weight, then no specific metering area needs to be used by the 626 * camera device.</p> 627 * <p>If the metering region is outside the used ACAMERA_SCALER_CROP_REGION returned in 628 * capture result metadata, the camera device will ignore the sections outside the crop 629 * region and output only the intersection rectangle as the metering region in the result 630 * metadata. If the region is entirely outside the crop region, it will be ignored and 631 * not reported in the result metadata.</p> 632 * 633 * @see ACAMERA_SCALER_CROP_REGION 634 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 635 */ 636 ACAMERA_CONTROL_AF_REGIONS = // int32[5*area_count] 637 ACAMERA_CONTROL_START + 8, 638 /** 639 * <p>Whether the camera device will trigger autofocus for this request.</p> 640 * 641 * <p>This tag may appear in:</p> 642 * <ul> 643 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 644 * <li>ACaptureRequest</li> 645 * </ul> 646 * 647 * <p>This entry is normally set to IDLE, or is not 648 * included at all in the request settings.</p> 649 * <p>When included and set to START, the camera device will trigger the 650 * autofocus algorithm. If autofocus is disabled, this trigger has no effect.</p> 651 * <p>When set to CANCEL, the camera device will cancel any active trigger, 652 * and return to its initial AF state.</p> 653 * <p>Generally, applications should set this entry to START or CANCEL for only a 654 * single capture, and then return it to IDLE (or not set at all). Specifying 655 * START for multiple captures in a row means restarting the AF operation over 656 * and over again.</p> 657 * <p>See ACAMERA_CONTROL_AF_STATE for what the trigger means for each AF mode.</p> 658 * <p>Using the autofocus trigger and the precapture trigger ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 659 * simultaneously is allowed. However, since these triggers often require cooperation between 660 * the auto-focus and auto-exposure routines (for example, the may need to be enabled for a 661 * focus sweep), the camera device may delay acting on a later trigger until the previous 662 * trigger has been fully handled. This may lead to longer intervals between the trigger and 663 * changes to ACAMERA_CONTROL_AF_STATE, for example.</p> 664 * 665 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 666 * @see ACAMERA_CONTROL_AF_STATE 667 */ 668 ACAMERA_CONTROL_AF_TRIGGER = // byte (enum) 669 ACAMERA_CONTROL_START + 9, 670 /** 671 * <p>Whether auto-white balance (AWB) is currently locked to its 672 * latest calculated values.</p> 673 * 674 * <p>This tag may appear in:</p> 675 * <ul> 676 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 677 * <li>ACaptureRequest</li> 678 * </ul> 679 * 680 * <p>When set to <code>true</code> (ON), the AWB algorithm is locked to its latest parameters, 681 * and will not change color balance settings until the lock is set to <code>false</code> (OFF).</p> 682 * <p>Since the camera device has a pipeline of in-flight requests, the settings that 683 * get locked do not necessarily correspond to the settings that were present in the 684 * latest capture result received from the camera device, since additional captures 685 * and AWB updates may have occurred even before the result was sent out. If an 686 * application is switching between automatic and manual control and wishes to eliminate 687 * any flicker during the switch, the following procedure is recommended:</p> 688 * <ol> 689 * <li>Starting in auto-AWB mode:</li> 690 * <li>Lock AWB</li> 691 * <li>Wait for the first result to be output that has the AWB locked</li> 692 * <li>Copy AWB settings from that result into a request, set the request to manual AWB</li> 693 * <li>Submit the capture request, proceed to run manual AWB as desired.</li> 694 * </ol> 695 * <p>Note that AWB lock is only meaningful when 696 * ACAMERA_CONTROL_AWB_MODE is in the AUTO mode; in other modes, 697 * AWB is already fixed to a specific setting.</p> 698 * <p>Some LEGACY devices may not support ON; the value is then overridden to OFF.</p> 699 * 700 * @see ACAMERA_CONTROL_AWB_MODE 701 */ 702 ACAMERA_CONTROL_AWB_LOCK = // byte (enum) 703 ACAMERA_CONTROL_START + 10, 704 /** 705 * <p>Whether auto-white balance (AWB) is currently setting the color 706 * transform fields, and what its illumination target 707 * is.</p> 708 * 709 * <p>This tag may appear in:</p> 710 * <ul> 711 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 712 * <li>ACaptureRequest</li> 713 * </ul> 714 * 715 * <p>This control is only effective if ACAMERA_CONTROL_MODE is AUTO.</p> 716 * <p>When set to the ON mode, the camera device's auto-white balance 717 * routine is enabled, overriding the application's selected 718 * ACAMERA_COLOR_CORRECTION_TRANSFORM, ACAMERA_COLOR_CORRECTION_GAINS and 719 * ACAMERA_COLOR_CORRECTION_MODE. Note that when ACAMERA_CONTROL_AE_MODE 720 * is OFF, the behavior of AWB is device dependent. It is recommened to 721 * also set AWB mode to OFF or lock AWB by using ACAMERA_CONTROL_AWB_LOCK before 722 * setting AE mode to OFF.</p> 723 * <p>When set to the OFF mode, the camera device's auto-white balance 724 * routine is disabled. The application manually controls the white 725 * balance by ACAMERA_COLOR_CORRECTION_TRANSFORM, ACAMERA_COLOR_CORRECTION_GAINS 726 * and ACAMERA_COLOR_CORRECTION_MODE.</p> 727 * <p>When set to any other modes, the camera device's auto-white 728 * balance routine is disabled. The camera device uses each 729 * particular illumination target for white balance 730 * adjustment. The application's values for 731 * ACAMERA_COLOR_CORRECTION_TRANSFORM, 732 * ACAMERA_COLOR_CORRECTION_GAINS and 733 * ACAMERA_COLOR_CORRECTION_MODE are ignored.</p> 734 * 735 * @see ACAMERA_COLOR_CORRECTION_GAINS 736 * @see ACAMERA_COLOR_CORRECTION_MODE 737 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 738 * @see ACAMERA_CONTROL_AE_MODE 739 * @see ACAMERA_CONTROL_AWB_LOCK 740 * @see ACAMERA_CONTROL_MODE 741 */ 742 ACAMERA_CONTROL_AWB_MODE = // byte (enum) 743 ACAMERA_CONTROL_START + 11, 744 /** 745 * <p>List of metering areas to use for auto-white-balance illuminant 746 * estimation.</p> 747 * 748 * <p>This tag may appear in:</p> 749 * <ul> 750 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 751 * <li>ACaptureRequest</li> 752 * </ul> 753 * 754 * <p>Not available if android.control.maxRegionsAwb is 0. 755 * Otherwise will always be present.</p> 756 * <p>The maximum number of regions supported by the device is determined by the value 757 * of android.control.maxRegionsAwb.</p> 758 * <p>The data representation is int[5 * area_count]. 759 * Every five elements represent a metering region of (xmin, ymin, xmax, ymax, weight). 760 * The rectangle is defined to be inclusive on xmin and ymin, but exclusive on xmax and 761 * ymax.</p> 762 * <p>The coordinate system is based on the active pixel array, 763 * with (0,0) being the top-left pixel in the active pixel array, and 764 * (ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.width - 1, 765 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.height - 1) being the 766 * bottom-right pixel in the active pixel array.</p> 767 * <p>The weight must range from 0 to 1000, and represents a weight 768 * for every pixel in the area. This means that a large metering area 769 * with the same weight as a smaller area will have more effect in 770 * the metering result. Metering areas can partially overlap and the 771 * camera device will add the weights in the overlap region.</p> 772 * <p>The weights are relative to weights of other white balance metering regions, so if 773 * only one region is used, all non-zero weights will have the same effect. A region with 774 * 0 weight is ignored.</p> 775 * <p>If all regions have 0 weight, then no specific metering area needs to be used by the 776 * camera device.</p> 777 * <p>If the metering region is outside the used ACAMERA_SCALER_CROP_REGION returned in 778 * capture result metadata, the camera device will ignore the sections outside the crop 779 * region and output only the intersection rectangle as the metering region in the result 780 * metadata. If the region is entirely outside the crop region, it will be ignored and 781 * not reported in the result metadata.</p> 782 * 783 * @see ACAMERA_SCALER_CROP_REGION 784 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 785 */ 786 ACAMERA_CONTROL_AWB_REGIONS = // int32[5*area_count] 787 ACAMERA_CONTROL_START + 12, 788 /** 789 * <p>Information to the camera device 3A (auto-exposure, 790 * auto-focus, auto-white balance) routines about the purpose 791 * of this capture, to help the camera device to decide optimal 3A 792 * strategy.</p> 793 * 794 * <p>This tag may appear in:</p> 795 * <ul> 796 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 797 * <li>ACaptureRequest</li> 798 * </ul> 799 * 800 * <p>This control (except for MANUAL) is only effective if 801 * <code>ACAMERA_CONTROL_MODE != OFF</code> and any 3A routine is active.</p> 802 * <p>ZERO_SHUTTER_LAG will be supported if ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 803 * contains PRIVATE_REPROCESSING or YUV_REPROCESSING. MANUAL will be supported if 804 * ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains MANUAL_SENSOR. Other intent values are 805 * always supported.</p> 806 * 807 * @see ACAMERA_CONTROL_MODE 808 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 809 */ 810 ACAMERA_CONTROL_CAPTURE_INTENT = // byte (enum) 811 ACAMERA_CONTROL_START + 13, 812 /** 813 * <p>A special color effect to apply.</p> 814 * 815 * <p>This tag may appear in:</p> 816 * <ul> 817 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 818 * <li>ACaptureRequest</li> 819 * </ul> 820 * 821 * <p>When this mode is set, a color effect will be applied 822 * to images produced by the camera device. The interpretation 823 * and implementation of these color effects is left to the 824 * implementor of the camera device, and should not be 825 * depended on to be consistent (or present) across all 826 * devices.</p> 827 */ 828 ACAMERA_CONTROL_EFFECT_MODE = // byte (enum) 829 ACAMERA_CONTROL_START + 14, 830 /** 831 * <p>Overall mode of 3A (auto-exposure, auto-white-balance, auto-focus) control 832 * routines.</p> 833 * 834 * <p>This tag may appear in:</p> 835 * <ul> 836 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 837 * <li>ACaptureRequest</li> 838 * </ul> 839 * 840 * <p>This is a top-level 3A control switch. When set to OFF, all 3A control 841 * by the camera device is disabled. The application must set the fields for 842 * capture parameters itself.</p> 843 * <p>When set to AUTO, the individual algorithm controls in 844 * ACAMERA_CONTROL_* are in effect, such as ACAMERA_CONTROL_AF_MODE.</p> 845 * <p>When set to USE_SCENE_MODE, the individual controls in 846 * ACAMERA_CONTROL_* are mostly disabled, and the camera device implements 847 * one of the scene mode settings (such as ACTION, SUNSET, or PARTY) 848 * as it wishes. The camera device scene mode 3A settings are provided by 849 * capture results {@link ACameraMetadata} from 850 * {@link ACameraCaptureSession_captureCallback_result}.</p> 851 * <p>When set to OFF_KEEP_STATE, it is similar to OFF mode, the only difference 852 * is that this frame will not be used by camera device background 3A statistics 853 * update, as if this frame is never captured. This mode can be used in the scenario 854 * where the application doesn't want a 3A manual control capture to affect 855 * the subsequent auto 3A capture results.</p> 856 * 857 * @see ACAMERA_CONTROL_AF_MODE 858 */ 859 ACAMERA_CONTROL_MODE = // byte (enum) 860 ACAMERA_CONTROL_START + 15, 861 /** 862 * <p>Control for which scene mode is currently active.</p> 863 * 864 * <p>This tag may appear in:</p> 865 * <ul> 866 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 867 * <li>ACaptureRequest</li> 868 * </ul> 869 * 870 * <p>Scene modes are custom camera modes optimized for a certain set of conditions and 871 * capture settings.</p> 872 * <p>This is the mode that that is active when 873 * <code>ACAMERA_CONTROL_MODE == USE_SCENE_MODE</code>. Aside from FACE_PRIORITY, these modes will 874 * disable ACAMERA_CONTROL_AE_MODE, ACAMERA_CONTROL_AWB_MODE, and ACAMERA_CONTROL_AF_MODE 875 * while in use.</p> 876 * <p>The interpretation and implementation of these scene modes is left 877 * to the implementor of the camera device. Their behavior will not be 878 * consistent across all devices, and any given device may only implement 879 * a subset of these modes.</p> 880 * 881 * @see ACAMERA_CONTROL_AE_MODE 882 * @see ACAMERA_CONTROL_AF_MODE 883 * @see ACAMERA_CONTROL_AWB_MODE 884 * @see ACAMERA_CONTROL_MODE 885 */ 886 ACAMERA_CONTROL_SCENE_MODE = // byte (enum) 887 ACAMERA_CONTROL_START + 16, 888 /** 889 * <p>Whether video stabilization is 890 * active.</p> 891 * 892 * <p>This tag may appear in:</p> 893 * <ul> 894 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 895 * <li>ACaptureRequest</li> 896 * </ul> 897 * 898 * <p>Video stabilization automatically warps images from 899 * the camera in order to stabilize motion between consecutive frames.</p> 900 * <p>If enabled, video stabilization can modify the 901 * ACAMERA_SCALER_CROP_REGION to keep the video stream stabilized.</p> 902 * <p>Switching between different video stabilization modes may take several 903 * frames to initialize, the camera device will report the current mode 904 * in capture result metadata. For example, When "ON" mode is requested, 905 * the video stabilization modes in the first several capture results may 906 * still be "OFF", and it will become "ON" when the initialization is 907 * done.</p> 908 * <p>In addition, not all recording sizes or frame rates may be supported for 909 * stabilization by a device that reports stabilization support. It is guaranteed 910 * that an output targeting a MediaRecorder or MediaCodec will be stabilized if 911 * the recording resolution is less than or equal to 1920 x 1080 (width less than 912 * or equal to 1920, height less than or equal to 1080), and the recording 913 * frame rate is less than or equal to 30fps. At other sizes, the CaptureResult 914 * ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE field will return 915 * OFF if the recording output is not stabilized, or if there are no output 916 * Surface types that can be stabilized.</p> 917 * <p>If a camera device supports both this mode and OIS 918 * (ACAMERA_LENS_OPTICAL_STABILIZATION_MODE), turning both modes on may 919 * produce undesirable interaction, so it is recommended not to enable 920 * both at the same time.</p> 921 * 922 * @see ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE 923 * @see ACAMERA_LENS_OPTICAL_STABILIZATION_MODE 924 * @see ACAMERA_SCALER_CROP_REGION 925 */ 926 ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE = // byte (enum) 927 ACAMERA_CONTROL_START + 17, 928 /** 929 * <p>List of auto-exposure antibanding modes for ACAMERA_CONTROL_AE_ANTIBANDING_MODE that are 930 * supported by this camera device.</p> 931 * 932 * @see ACAMERA_CONTROL_AE_ANTIBANDING_MODE 933 * 934 * <p>This tag may appear in:</p> 935 * <ul> 936 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 937 * </ul> 938 * 939 * <p>Not all of the auto-exposure anti-banding modes may be 940 * supported by a given camera device. This field lists the 941 * valid anti-banding modes that the application may request 942 * for this camera device with the 943 * ACAMERA_CONTROL_AE_ANTIBANDING_MODE control.</p> 944 * 945 * @see ACAMERA_CONTROL_AE_ANTIBANDING_MODE 946 */ 947 ACAMERA_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES = // byte[n] 948 ACAMERA_CONTROL_START + 18, 949 /** 950 * <p>List of auto-exposure modes for ACAMERA_CONTROL_AE_MODE that are supported by this camera 951 * device.</p> 952 * 953 * @see ACAMERA_CONTROL_AE_MODE 954 * 955 * <p>This tag may appear in:</p> 956 * <ul> 957 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 958 * </ul> 959 * 960 * <p>Not all the auto-exposure modes may be supported by a 961 * given camera device, especially if no flash unit is 962 * available. This entry lists the valid modes for 963 * ACAMERA_CONTROL_AE_MODE for this camera device.</p> 964 * <p>All camera devices support ON, and all camera devices with flash 965 * units support ON_AUTO_FLASH and ON_ALWAYS_FLASH.</p> 966 * <p>FULL mode camera devices always support OFF mode, 967 * which enables application control of camera exposure time, 968 * sensitivity, and frame duration.</p> 969 * <p>LEGACY mode camera devices never support OFF mode. 970 * LIMITED mode devices support OFF if they support the MANUAL_SENSOR 971 * capability.</p> 972 * 973 * @see ACAMERA_CONTROL_AE_MODE 974 */ 975 ACAMERA_CONTROL_AE_AVAILABLE_MODES = // byte[n] 976 ACAMERA_CONTROL_START + 19, 977 /** 978 * <p>List of frame rate ranges for ACAMERA_CONTROL_AE_TARGET_FPS_RANGE supported by 979 * this camera device.</p> 980 * 981 * @see ACAMERA_CONTROL_AE_TARGET_FPS_RANGE 982 * 983 * <p>This tag may appear in:</p> 984 * <ul> 985 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 986 * </ul> 987 * 988 * <p>For devices at the LEGACY level or above:</p> 989 * <ul> 990 * <li> 991 * <p>For constant-framerate recording, for each normal 992 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a>, that is, a 993 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> that has 994 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#quality">quality</a> 995 * in the range [ 996 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_LOW">QUALITY_LOW</a>, 997 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_2160P">QUALITY_2160P</a>], 998 * if the profile is supported by the device and has 999 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate">videoFrameRate</a> 1000 * <code>x</code>, this list will always include (<code>x</code>,<code>x</code>).</p> 1001 * </li> 1002 * <li> 1003 * <p>Also, a camera device must either not support any 1004 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a>, 1005 * or support at least one 1006 * normal <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> 1007 * that has 1008 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate">videoFrameRate</a> <code>x</code> >= 24.</p> 1009 * </li> 1010 * </ul> 1011 * <p>For devices at the LIMITED level or above:</p> 1012 * <ul> 1013 * <li>For YUV_420_888 burst capture use case, this list will always include (<code>min</code>, <code>max</code>) 1014 * and (<code>max</code>, <code>max</code>) where <code>min</code> <= 15 and <code>max</code> = the maximum output frame rate of the 1015 * maximum YUV_420_888 output size.</li> 1016 * </ul> 1017 */ 1018 ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES = // int32[2*n] 1019 ACAMERA_CONTROL_START + 20, 1020 /** 1021 * <p>Maximum and minimum exposure compensation values for 1022 * ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION, in counts of ACAMERA_CONTROL_AE_COMPENSATION_STEP, 1023 * that are supported by this camera device.</p> 1024 * 1025 * @see ACAMERA_CONTROL_AE_COMPENSATION_STEP 1026 * @see ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION 1027 * 1028 * <p>This tag may appear in:</p> 1029 * <ul> 1030 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1031 * </ul> 1032 * 1033 * <p>None</p> 1034 */ 1035 ACAMERA_CONTROL_AE_COMPENSATION_RANGE = // int32[2] 1036 ACAMERA_CONTROL_START + 21, 1037 /** 1038 * <p>Smallest step by which the exposure compensation 1039 * can be changed.</p> 1040 * 1041 * <p>This tag may appear in:</p> 1042 * <ul> 1043 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1044 * </ul> 1045 * 1046 * <p>This is the unit for ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION. For example, if this key has 1047 * a value of <code>1/2</code>, then a setting of <code>-2</code> for ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION means 1048 * that the target EV offset for the auto-exposure routine is -1 EV.</p> 1049 * <p>One unit of EV compensation changes the brightness of the captured image by a factor 1050 * of two. +1 EV doubles the image brightness, while -1 EV halves the image brightness.</p> 1051 * 1052 * @see ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION 1053 */ 1054 ACAMERA_CONTROL_AE_COMPENSATION_STEP = // rational 1055 ACAMERA_CONTROL_START + 22, 1056 /** 1057 * <p>List of auto-focus (AF) modes for ACAMERA_CONTROL_AF_MODE that are 1058 * supported by this camera device.</p> 1059 * 1060 * @see ACAMERA_CONTROL_AF_MODE 1061 * 1062 * <p>This tag may appear in:</p> 1063 * <ul> 1064 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1065 * </ul> 1066 * 1067 * <p>Not all the auto-focus modes may be supported by a 1068 * given camera device. This entry lists the valid modes for 1069 * ACAMERA_CONTROL_AF_MODE for this camera device.</p> 1070 * <p>All LIMITED and FULL mode camera devices will support OFF mode, and all 1071 * camera devices with adjustable focuser units 1072 * (<code>ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE > 0</code>) will support AUTO mode.</p> 1073 * <p>LEGACY devices will support OFF mode only if they support 1074 * focusing to infinity (by also setting ACAMERA_LENS_FOCUS_DISTANCE to 1075 * <code>0.0f</code>).</p> 1076 * 1077 * @see ACAMERA_CONTROL_AF_MODE 1078 * @see ACAMERA_LENS_FOCUS_DISTANCE 1079 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 1080 */ 1081 ACAMERA_CONTROL_AF_AVAILABLE_MODES = // byte[n] 1082 ACAMERA_CONTROL_START + 23, 1083 /** 1084 * <p>List of color effects for ACAMERA_CONTROL_EFFECT_MODE that are supported by this camera 1085 * device.</p> 1086 * 1087 * @see ACAMERA_CONTROL_EFFECT_MODE 1088 * 1089 * <p>This tag may appear in:</p> 1090 * <ul> 1091 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1092 * </ul> 1093 * 1094 * <p>This list contains the color effect modes that can be applied to 1095 * images produced by the camera device. 1096 * Implementations are not expected to be consistent across all devices. 1097 * If no color effect modes are available for a device, this will only list 1098 * OFF.</p> 1099 * <p>A color effect will only be applied if 1100 * ACAMERA_CONTROL_MODE != OFF. OFF is always included in this list.</p> 1101 * <p>This control has no effect on the operation of other control routines such 1102 * as auto-exposure, white balance, or focus.</p> 1103 * 1104 * @see ACAMERA_CONTROL_MODE 1105 */ 1106 ACAMERA_CONTROL_AVAILABLE_EFFECTS = // byte[n] 1107 ACAMERA_CONTROL_START + 24, 1108 /** 1109 * <p>List of scene modes for ACAMERA_CONTROL_SCENE_MODE that are supported by this camera 1110 * device.</p> 1111 * 1112 * @see ACAMERA_CONTROL_SCENE_MODE 1113 * 1114 * <p>This tag may appear in:</p> 1115 * <ul> 1116 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1117 * </ul> 1118 * 1119 * <p>This list contains scene modes that can be set for the camera device. 1120 * Only scene modes that have been fully implemented for the 1121 * camera device may be included here. Implementations are not expected 1122 * to be consistent across all devices.</p> 1123 * <p>If no scene modes are supported by the camera device, this 1124 * will be set to DISABLED. Otherwise DISABLED will not be listed.</p> 1125 * <p>FACE_PRIORITY is always listed if face detection is 1126 * supported (i.e.<code>ACAMERA_STATISTICS_INFO_MAX_FACE_COUNT > 1127 * 0</code>).</p> 1128 * 1129 * @see ACAMERA_STATISTICS_INFO_MAX_FACE_COUNT 1130 */ 1131 ACAMERA_CONTROL_AVAILABLE_SCENE_MODES = // byte[n] 1132 ACAMERA_CONTROL_START + 25, 1133 /** 1134 * <p>List of video stabilization modes for ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE 1135 * that are supported by this camera device.</p> 1136 * 1137 * @see ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE 1138 * 1139 * <p>This tag may appear in:</p> 1140 * <ul> 1141 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1142 * </ul> 1143 * 1144 * <p>OFF will always be listed.</p> 1145 */ 1146 ACAMERA_CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES = // byte[n] 1147 ACAMERA_CONTROL_START + 26, 1148 /** 1149 * <p>List of auto-white-balance modes for ACAMERA_CONTROL_AWB_MODE that are supported by this 1150 * camera device.</p> 1151 * 1152 * @see ACAMERA_CONTROL_AWB_MODE 1153 * 1154 * <p>This tag may appear in:</p> 1155 * <ul> 1156 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1157 * </ul> 1158 * 1159 * <p>Not all the auto-white-balance modes may be supported by a 1160 * given camera device. This entry lists the valid modes for 1161 * ACAMERA_CONTROL_AWB_MODE for this camera device.</p> 1162 * <p>All camera devices will support ON mode.</p> 1163 * <p>Camera devices that support the MANUAL_POST_PROCESSING capability will always support OFF 1164 * mode, which enables application control of white balance, by using 1165 * ACAMERA_COLOR_CORRECTION_TRANSFORM and ACAMERA_COLOR_CORRECTION_GAINS(ACAMERA_COLOR_CORRECTION_MODE must be set to TRANSFORM_MATRIX). This includes all FULL 1166 * mode camera devices.</p> 1167 * 1168 * @see ACAMERA_COLOR_CORRECTION_GAINS 1169 * @see ACAMERA_COLOR_CORRECTION_MODE 1170 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 1171 * @see ACAMERA_CONTROL_AWB_MODE 1172 */ 1173 ACAMERA_CONTROL_AWB_AVAILABLE_MODES = // byte[n] 1174 ACAMERA_CONTROL_START + 27, 1175 /** 1176 * <p>List of the maximum number of regions that can be used for metering in 1177 * auto-exposure (AE), auto-white balance (AWB), and auto-focus (AF); 1178 * this corresponds to the the maximum number of elements in 1179 * ACAMERA_CONTROL_AE_REGIONS, ACAMERA_CONTROL_AWB_REGIONS, 1180 * and ACAMERA_CONTROL_AF_REGIONS.</p> 1181 * 1182 * @see ACAMERA_CONTROL_AE_REGIONS 1183 * @see ACAMERA_CONTROL_AF_REGIONS 1184 * @see ACAMERA_CONTROL_AWB_REGIONS 1185 * 1186 * <p>This tag may appear in:</p> 1187 * <ul> 1188 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1189 * </ul> 1190 * 1191 * <p>None</p> 1192 */ 1193 ACAMERA_CONTROL_MAX_REGIONS = // int32[3] 1194 ACAMERA_CONTROL_START + 28, 1195 /** 1196 * <p>Current state of the auto-exposure (AE) algorithm.</p> 1197 * 1198 * <p>This tag may appear in:</p> 1199 * <ul> 1200 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1201 * </ul> 1202 * 1203 * <p>Switching between or enabling AE modes (ACAMERA_CONTROL_AE_MODE) always 1204 * resets the AE state to INACTIVE. Similarly, switching between ACAMERA_CONTROL_MODE, 1205 * or ACAMERA_CONTROL_SCENE_MODE if <code>ACAMERA_CONTROL_MODE == USE_SCENE_MODE</code> resets all 1206 * the algorithm states to INACTIVE.</p> 1207 * <p>The camera device can do several state transitions between two results, if it is 1208 * allowed by the state transition table. For example: INACTIVE may never actually be 1209 * seen in a result.</p> 1210 * <p>The state in the result is the state for this image (in sync with this image): if 1211 * AE state becomes CONVERGED, then the image data associated with this result should 1212 * be good to use.</p> 1213 * <p>Below are state transition tables for different AE modes.</p> 1214 * <p>State | Transition Cause | New State | Notes 1215 * :------------:|:----------------:|:---------:|:-----------------------: 1216 * INACTIVE | | INACTIVE | Camera device auto exposure algorithm is disabled</p> 1217 * <p>When ACAMERA_CONTROL_AE_MODE is AE_MODE_ON_*:</p> 1218 * <p>State | Transition Cause | New State | Notes 1219 * :-------------:|:--------------------------------------------:|:--------------:|:-----------------: 1220 * INACTIVE | Camera device initiates AE scan | SEARCHING | Values changing 1221 * INACTIVE | ACAMERA_CONTROL_AE_LOCK is ON | LOCKED | Values locked 1222 * SEARCHING | Camera device finishes AE scan | CONVERGED | Good values, not changing 1223 * SEARCHING | Camera device finishes AE scan | FLASH_REQUIRED | Converged but too dark w/o flash 1224 * SEARCHING | ACAMERA_CONTROL_AE_LOCK is ON | LOCKED | Values locked 1225 * CONVERGED | Camera device initiates AE scan | SEARCHING | Values changing 1226 * CONVERGED | ACAMERA_CONTROL_AE_LOCK is ON | LOCKED | Values locked 1227 * FLASH_REQUIRED | Camera device initiates AE scan | SEARCHING | Values changing 1228 * FLASH_REQUIRED | ACAMERA_CONTROL_AE_LOCK is ON | LOCKED | Values locked 1229 * LOCKED | ACAMERA_CONTROL_AE_LOCK is OFF | SEARCHING | Values not good after unlock 1230 * LOCKED | ACAMERA_CONTROL_AE_LOCK is OFF | CONVERGED | Values good after unlock 1231 * LOCKED | ACAMERA_CONTROL_AE_LOCK is OFF | FLASH_REQUIRED | Exposure good, but too dark 1232 * PRECAPTURE | Sequence done. ACAMERA_CONTROL_AE_LOCK is OFF | CONVERGED | Ready for high-quality capture 1233 * PRECAPTURE | Sequence done. ACAMERA_CONTROL_AE_LOCK is ON | LOCKED | Ready for high-quality capture 1234 * LOCKED | aeLock is ON and aePrecaptureTrigger is START | LOCKED | Precapture trigger is ignored when AE is already locked 1235 * LOCKED | aeLock is ON and aePrecaptureTrigger is CANCEL| LOCKED | Precapture trigger is ignored when AE is already locked 1236 * Any state (excluding LOCKED) | ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER is START | PRECAPTURE | Start AE precapture metering sequence 1237 * Any state (excluding LOCKED) | ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER is CANCEL| INACTIVE | Currently active precapture metering sequence is canceled</p> 1238 * <p>For the above table, the camera device may skip reporting any state changes that happen 1239 * without application intervention (i.e. mode switch, trigger, locking). Any state that 1240 * can be skipped in that manner is called a transient state.</p> 1241 * <p>For example, for above AE modes (AE_MODE_ON_*), in addition to the state transitions 1242 * listed in above table, it is also legal for the camera device to skip one or more 1243 * transient states between two results. See below table for examples:</p> 1244 * <p>State | Transition Cause | New State | Notes 1245 * :-------------:|:-----------------------------------------------------------:|:--------------:|:-----------------: 1246 * INACTIVE | Camera device finished AE scan | CONVERGED | Values are already good, transient states are skipped by camera device. 1247 * Any state (excluding LOCKED) | ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER is START, sequence done | FLASH_REQUIRED | Converged but too dark w/o flash after a precapture sequence, transient states are skipped by camera device. 1248 * Any state (excluding LOCKED) | ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER is START, sequence done | CONVERGED | Converged after a precapture sequence, transient states are skipped by camera device. 1249 * Any state (excluding LOCKED) | ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER is CANCEL, converged | FLASH_REQUIRED | Converged but too dark w/o flash after a precapture sequence is canceled, transient states are skipped by camera device. 1250 * Any state (excluding LOCKED) | ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER is CANCEL, converged | CONVERGED | Converged after a precapture sequenceis canceled, transient states are skipped by camera device. 1251 * CONVERGED | Camera device finished AE scan | FLASH_REQUIRED | Converged but too dark w/o flash after a new scan, transient states are skipped by camera device. 1252 * FLASH_REQUIRED | Camera device finished AE scan | CONVERGED | Converged after a new scan, transient states are skipped by camera device.</p> 1253 * 1254 * @see ACAMERA_CONTROL_AE_LOCK 1255 * @see ACAMERA_CONTROL_AE_MODE 1256 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 1257 * @see ACAMERA_CONTROL_MODE 1258 * @see ACAMERA_CONTROL_SCENE_MODE 1259 */ 1260 ACAMERA_CONTROL_AE_STATE = // byte (enum) 1261 ACAMERA_CONTROL_START + 31, 1262 /** 1263 * <p>Current state of auto-focus (AF) algorithm.</p> 1264 * 1265 * <p>This tag may appear in:</p> 1266 * <ul> 1267 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1268 * </ul> 1269 * 1270 * <p>Switching between or enabling AF modes (ACAMERA_CONTROL_AF_MODE) always 1271 * resets the AF state to INACTIVE. Similarly, switching between ACAMERA_CONTROL_MODE, 1272 * or ACAMERA_CONTROL_SCENE_MODE if <code>ACAMERA_CONTROL_MODE == USE_SCENE_MODE</code> resets all 1273 * the algorithm states to INACTIVE.</p> 1274 * <p>The camera device can do several state transitions between two results, if it is 1275 * allowed by the state transition table. For example: INACTIVE may never actually be 1276 * seen in a result.</p> 1277 * <p>The state in the result is the state for this image (in sync with this image): if 1278 * AF state becomes FOCUSED, then the image data associated with this result should 1279 * be sharp.</p> 1280 * <p>Below are state transition tables for different AF modes.</p> 1281 * <p>When ACAMERA_CONTROL_AF_MODE is AF_MODE_OFF or AF_MODE_EDOF:</p> 1282 * <p>State | Transition Cause | New State | Notes 1283 * :------------:|:----------------:|:---------:|:-----------: 1284 * INACTIVE | | INACTIVE | Never changes</p> 1285 * <p>When ACAMERA_CONTROL_AF_MODE is AF_MODE_AUTO or AF_MODE_MACRO:</p> 1286 * <p>State | Transition Cause | New State | Notes 1287 * :-----------------:|:----------------:|:------------------:|:--------------: 1288 * INACTIVE | AF_TRIGGER | ACTIVE_SCAN | Start AF sweep, Lens now moving 1289 * ACTIVE_SCAN | AF sweep done | FOCUSED_LOCKED | Focused, Lens now locked 1290 * ACTIVE_SCAN | AF sweep done | NOT_FOCUSED_LOCKED | Not focused, Lens now locked 1291 * ACTIVE_SCAN | AF_CANCEL | INACTIVE | Cancel/reset AF, Lens now locked 1292 * FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Cancel/reset AF 1293 * FOCUSED_LOCKED | AF_TRIGGER | ACTIVE_SCAN | Start new sweep, Lens now moving 1294 * NOT_FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Cancel/reset AF 1295 * NOT_FOCUSED_LOCKED | AF_TRIGGER | ACTIVE_SCAN | Start new sweep, Lens now moving 1296 * Any state | Mode change | INACTIVE |</p> 1297 * <p>For the above table, the camera device may skip reporting any state changes that happen 1298 * without application intervention (i.e. mode switch, trigger, locking). Any state that 1299 * can be skipped in that manner is called a transient state.</p> 1300 * <p>For example, for these AF modes (AF_MODE_AUTO and AF_MODE_MACRO), in addition to the 1301 * state transitions listed in above table, it is also legal for the camera device to skip 1302 * one or more transient states between two results. See below table for examples:</p> 1303 * <p>State | Transition Cause | New State | Notes 1304 * :-----------------:|:----------------:|:------------------:|:--------------: 1305 * INACTIVE | AF_TRIGGER | FOCUSED_LOCKED | Focus is already good or good after a scan, lens is now locked. 1306 * INACTIVE | AF_TRIGGER | NOT_FOCUSED_LOCKED | Focus failed after a scan, lens is now locked. 1307 * FOCUSED_LOCKED | AF_TRIGGER | FOCUSED_LOCKED | Focus is already good or good after a scan, lens is now locked. 1308 * NOT_FOCUSED_LOCKED | AF_TRIGGER | FOCUSED_LOCKED | Focus is good after a scan, lens is not locked.</p> 1309 * <p>When ACAMERA_CONTROL_AF_MODE is AF_MODE_CONTINUOUS_VIDEO:</p> 1310 * <p>State | Transition Cause | New State | Notes 1311 * :-----------------:|:-----------------------------------:|:------------------:|:--------------: 1312 * INACTIVE | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1313 * INACTIVE | AF_TRIGGER | NOT_FOCUSED_LOCKED | AF state query, Lens now locked 1314 * PASSIVE_SCAN | Camera device completes current scan| PASSIVE_FOCUSED | End AF scan, Lens now locked 1315 * PASSIVE_SCAN | Camera device fails current scan | PASSIVE_UNFOCUSED | End AF scan, Lens now locked 1316 * PASSIVE_SCAN | AF_TRIGGER | FOCUSED_LOCKED | Immediate transition, if focus is good. Lens now locked 1317 * PASSIVE_SCAN | AF_TRIGGER | NOT_FOCUSED_LOCKED | Immediate transition, if focus is bad. Lens now locked 1318 * PASSIVE_SCAN | AF_CANCEL | INACTIVE | Reset lens position, Lens now locked 1319 * PASSIVE_FOCUSED | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1320 * PASSIVE_UNFOCUSED | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1321 * PASSIVE_FOCUSED | AF_TRIGGER | FOCUSED_LOCKED | Immediate transition, lens now locked 1322 * PASSIVE_UNFOCUSED | AF_TRIGGER | NOT_FOCUSED_LOCKED | Immediate transition, lens now locked 1323 * FOCUSED_LOCKED | AF_TRIGGER | FOCUSED_LOCKED | No effect 1324 * FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Restart AF scan 1325 * NOT_FOCUSED_LOCKED | AF_TRIGGER | NOT_FOCUSED_LOCKED | No effect 1326 * NOT_FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Restart AF scan</p> 1327 * <p>When ACAMERA_CONTROL_AF_MODE is AF_MODE_CONTINUOUS_PICTURE:</p> 1328 * <p>State | Transition Cause | New State | Notes 1329 * :-----------------:|:------------------------------------:|:------------------:|:--------------: 1330 * INACTIVE | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1331 * INACTIVE | AF_TRIGGER | NOT_FOCUSED_LOCKED | AF state query, Lens now locked 1332 * PASSIVE_SCAN | Camera device completes current scan | PASSIVE_FOCUSED | End AF scan, Lens now locked 1333 * PASSIVE_SCAN | Camera device fails current scan | PASSIVE_UNFOCUSED | End AF scan, Lens now locked 1334 * PASSIVE_SCAN | AF_TRIGGER | FOCUSED_LOCKED | Eventual transition once the focus is good. Lens now locked 1335 * PASSIVE_SCAN | AF_TRIGGER | NOT_FOCUSED_LOCKED | Eventual transition if cannot find focus. Lens now locked 1336 * PASSIVE_SCAN | AF_CANCEL | INACTIVE | Reset lens position, Lens now locked 1337 * PASSIVE_FOCUSED | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1338 * PASSIVE_UNFOCUSED | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1339 * PASSIVE_FOCUSED | AF_TRIGGER | FOCUSED_LOCKED | Immediate trans. Lens now locked 1340 * PASSIVE_UNFOCUSED | AF_TRIGGER | NOT_FOCUSED_LOCKED | Immediate trans. Lens now locked 1341 * FOCUSED_LOCKED | AF_TRIGGER | FOCUSED_LOCKED | No effect 1342 * FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Restart AF scan 1343 * NOT_FOCUSED_LOCKED | AF_TRIGGER | NOT_FOCUSED_LOCKED | No effect 1344 * NOT_FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Restart AF scan</p> 1345 * <p>When switch between AF_MODE_CONTINUOUS_* (CAF modes) and AF_MODE_AUTO/AF_MODE_MACRO 1346 * (AUTO modes), the initial INACTIVE or PASSIVE_SCAN states may be skipped by the 1347 * camera device. When a trigger is included in a mode switch request, the trigger 1348 * will be evaluated in the context of the new mode in the request. 1349 * See below table for examples:</p> 1350 * <p>State | Transition Cause | New State | Notes 1351 * :-----------:|:--------------------------------------:|:----------------------------------------:|:--------------: 1352 * any state | CAF-->AUTO mode switch | INACTIVE | Mode switch without trigger, initial state must be INACTIVE 1353 * any state | CAF-->AUTO mode switch with AF_TRIGGER | trigger-reachable states from INACTIVE | Mode switch with trigger, INACTIVE is skipped 1354 * any state | AUTO-->CAF mode switch | passively reachable states from INACTIVE | Mode switch without trigger, passive transient state is skipped</p> 1355 * 1356 * @see ACAMERA_CONTROL_AF_MODE 1357 * @see ACAMERA_CONTROL_MODE 1358 * @see ACAMERA_CONTROL_SCENE_MODE 1359 */ 1360 ACAMERA_CONTROL_AF_STATE = // byte (enum) 1361 ACAMERA_CONTROL_START + 32, 1362 /** 1363 * <p>Current state of auto-white balance (AWB) algorithm.</p> 1364 * 1365 * <p>This tag may appear in:</p> 1366 * <ul> 1367 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1368 * </ul> 1369 * 1370 * <p>Switching between or enabling AWB modes (ACAMERA_CONTROL_AWB_MODE) always 1371 * resets the AWB state to INACTIVE. Similarly, switching between ACAMERA_CONTROL_MODE, 1372 * or ACAMERA_CONTROL_SCENE_MODE if <code>ACAMERA_CONTROL_MODE == USE_SCENE_MODE</code> resets all 1373 * the algorithm states to INACTIVE.</p> 1374 * <p>The camera device can do several state transitions between two results, if it is 1375 * allowed by the state transition table. So INACTIVE may never actually be seen in 1376 * a result.</p> 1377 * <p>The state in the result is the state for this image (in sync with this image): if 1378 * AWB state becomes CONVERGED, then the image data associated with this result should 1379 * be good to use.</p> 1380 * <p>Below are state transition tables for different AWB modes.</p> 1381 * <p>When <code>ACAMERA_CONTROL_AWB_MODE != AWB_MODE_AUTO</code>:</p> 1382 * <p>State | Transition Cause | New State | Notes 1383 * :------------:|:----------------:|:---------:|:-----------------------: 1384 * INACTIVE | |INACTIVE |Camera device auto white balance algorithm is disabled</p> 1385 * <p>When ACAMERA_CONTROL_AWB_MODE is AWB_MODE_AUTO:</p> 1386 * <p>State | Transition Cause | New State | Notes 1387 * :-------------:|:--------------------------------:|:-------------:|:-----------------: 1388 * INACTIVE | Camera device initiates AWB scan | SEARCHING | Values changing 1389 * INACTIVE | ACAMERA_CONTROL_AWB_LOCK is ON | LOCKED | Values locked 1390 * SEARCHING | Camera device finishes AWB scan | CONVERGED | Good values, not changing 1391 * SEARCHING | ACAMERA_CONTROL_AWB_LOCK is ON | LOCKED | Values locked 1392 * CONVERGED | Camera device initiates AWB scan | SEARCHING | Values changing 1393 * CONVERGED | ACAMERA_CONTROL_AWB_LOCK is ON | LOCKED | Values locked 1394 * LOCKED | ACAMERA_CONTROL_AWB_LOCK is OFF | SEARCHING | Values not good after unlock</p> 1395 * <p>For the above table, the camera device may skip reporting any state changes that happen 1396 * without application intervention (i.e. mode switch, trigger, locking). Any state that 1397 * can be skipped in that manner is called a transient state.</p> 1398 * <p>For example, for this AWB mode (AWB_MODE_AUTO), in addition to the state transitions 1399 * listed in above table, it is also legal for the camera device to skip one or more 1400 * transient states between two results. See below table for examples:</p> 1401 * <p>State | Transition Cause | New State | Notes 1402 * :-------------:|:--------------------------------:|:-------------:|:-----------------: 1403 * INACTIVE | Camera device finished AWB scan | CONVERGED | Values are already good, transient states are skipped by camera device. 1404 * LOCKED | ACAMERA_CONTROL_AWB_LOCK is OFF | CONVERGED | Values good after unlock, transient states are skipped by camera device.</p> 1405 * 1406 * @see ACAMERA_CONTROL_AWB_LOCK 1407 * @see ACAMERA_CONTROL_AWB_MODE 1408 * @see ACAMERA_CONTROL_MODE 1409 * @see ACAMERA_CONTROL_SCENE_MODE 1410 */ 1411 ACAMERA_CONTROL_AWB_STATE = // byte (enum) 1412 ACAMERA_CONTROL_START + 34, 1413 /** 1414 * <p>Whether the camera device supports ACAMERA_CONTROL_AE_LOCK</p> 1415 * 1416 * @see ACAMERA_CONTROL_AE_LOCK 1417 * 1418 * <p>This tag may appear in:</p> 1419 * <ul> 1420 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1421 * </ul> 1422 * 1423 * <p>Devices with MANUAL_SENSOR capability or BURST_CAPTURE capability will always 1424 * list <code>true</code>. This includes FULL devices.</p> 1425 */ 1426 ACAMERA_CONTROL_AE_LOCK_AVAILABLE = // byte (enum) 1427 ACAMERA_CONTROL_START + 36, 1428 /** 1429 * <p>Whether the camera device supports ACAMERA_CONTROL_AWB_LOCK</p> 1430 * 1431 * @see ACAMERA_CONTROL_AWB_LOCK 1432 * 1433 * <p>This tag may appear in:</p> 1434 * <ul> 1435 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1436 * </ul> 1437 * 1438 * <p>Devices with MANUAL_POST_PROCESSING capability or BURST_CAPTURE capability will 1439 * always list <code>true</code>. This includes FULL devices.</p> 1440 */ 1441 ACAMERA_CONTROL_AWB_LOCK_AVAILABLE = // byte (enum) 1442 ACAMERA_CONTROL_START + 37, 1443 /** 1444 * <p>List of control modes for ACAMERA_CONTROL_MODE that are supported by this camera 1445 * device.</p> 1446 * 1447 * @see ACAMERA_CONTROL_MODE 1448 * 1449 * <p>This tag may appear in:</p> 1450 * <ul> 1451 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1452 * </ul> 1453 * 1454 * <p>This list contains control modes that can be set for the camera device. 1455 * LEGACY mode devices will always support AUTO mode. LIMITED and FULL 1456 * devices will always support OFF, AUTO modes.</p> 1457 */ 1458 ACAMERA_CONTROL_AVAILABLE_MODES = // byte[n] 1459 ACAMERA_CONTROL_START + 38, 1460 /** 1461 * <p>Range of boosts for ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST supported 1462 * by this camera device.</p> 1463 * 1464 * @see ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST 1465 * 1466 * <p>This tag may appear in:</p> 1467 * <ul> 1468 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1469 * </ul> 1470 * 1471 * <p>Devices support post RAW sensitivity boost will advertise 1472 * ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST key for controling 1473 * post RAW sensitivity boost.</p> 1474 * <p>This key will be <code>null</code> for devices that do not support any RAW format 1475 * outputs. For devices that do support RAW format outputs, this key will always 1476 * present, and if a device does not support post RAW sensitivity boost, it will 1477 * list <code>(100, 100)</code> in this key.</p> 1478 * 1479 * @see ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST 1480 */ 1481 ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST_RANGE = // int32[2] 1482 ACAMERA_CONTROL_START + 39, 1483 /** 1484 * <p>The amount of additional sensitivity boost applied to output images 1485 * after RAW sensor data is captured.</p> 1486 * 1487 * <p>This tag may appear in:</p> 1488 * <ul> 1489 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1490 * <li>ACaptureRequest</li> 1491 * </ul> 1492 * 1493 * <p>Some camera devices support additional digital sensitivity boosting in the 1494 * camera processing pipeline after sensor RAW image is captured. 1495 * Such a boost will be applied to YUV/JPEG format output images but will not 1496 * have effect on RAW output formats like RAW_SENSOR, RAW10, RAW12 or RAW_OPAQUE.</p> 1497 * <p>This key will be <code>null</code> for devices that do not support any RAW format 1498 * outputs. For devices that do support RAW format outputs, this key will always 1499 * present, and if a device does not support post RAW sensitivity boost, it will 1500 * list <code>100</code> in this key.</p> 1501 * <p>If the camera device cannot apply the exact boost requested, it will reduce the 1502 * boost to the nearest supported value. 1503 * The final boost value used will be available in the output capture result.</p> 1504 * <p>For devices that support post RAW sensitivity boost, the YUV/JPEG output images 1505 * of such device will have the total sensitivity of 1506 * <code>ACAMERA_SENSOR_SENSITIVITY * ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST / 100</code> 1507 * The sensitivity of RAW format images will always be <code>ACAMERA_SENSOR_SENSITIVITY</code></p> 1508 * <p>This control is only effective if ACAMERA_CONTROL_AE_MODE or ACAMERA_CONTROL_MODE is set to 1509 * OFF; otherwise the auto-exposure algorithm will override this value.</p> 1510 * 1511 * @see ACAMERA_CONTROL_AE_MODE 1512 * @see ACAMERA_CONTROL_MODE 1513 * @see ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST 1514 * @see ACAMERA_SENSOR_SENSITIVITY 1515 */ 1516 ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST = // int32 1517 ACAMERA_CONTROL_START + 40, 1518 /** 1519 * <p>Allow camera device to enable zero-shutter-lag mode for requests with 1520 * ACAMERA_CONTROL_CAPTURE_INTENT == STILL_CAPTURE.</p> 1521 * 1522 * @see ACAMERA_CONTROL_CAPTURE_INTENT 1523 * 1524 * <p>This tag may appear in:</p> 1525 * <ul> 1526 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1527 * <li>ACaptureRequest</li> 1528 * </ul> 1529 * 1530 * <p>If enableZsl is <code>true</code>, the camera device may enable zero-shutter-lag mode for requests with 1531 * STILL_CAPTURE capture intent. The camera device may use images captured in the past to 1532 * produce output images for a zero-shutter-lag request. The result metadata including the 1533 * ACAMERA_SENSOR_TIMESTAMP reflects the source frames used to produce output images. 1534 * Therefore, the contents of the output images and the result metadata may be out of order 1535 * compared to previous regular requests. enableZsl does not affect requests with other 1536 * capture intents.</p> 1537 * <p>For example, when requests are submitted in the following order: 1538 * Request A: enableZsl is <code>true</code>, ACAMERA_CONTROL_CAPTURE_INTENT is PREVIEW 1539 * Request B: enableZsl is <code>true</code>, ACAMERA_CONTROL_CAPTURE_INTENT is STILL_CAPTURE</p> 1540 * <p>The output images for request B may have contents captured before the output images for 1541 * request A, and the result metadata for request B may be older than the result metadata for 1542 * request A.</p> 1543 * <p>Note that when enableZsl is <code>true</code>, it is not guaranteed to get output images captured in the 1544 * past for requests with STILL_CAPTURE capture intent.</p> 1545 * <p>The value of enableZsl in capture templates is always <code>false</code> if present.</p> 1546 * 1547 * @see ACAMERA_CONTROL_CAPTURE_INTENT 1548 * @see ACAMERA_SENSOR_TIMESTAMP 1549 */ 1550 ACAMERA_CONTROL_ENABLE_ZSL = // byte (enum) 1551 ACAMERA_CONTROL_START + 41, 1552 ACAMERA_CONTROL_END, 1553 1554 /** 1555 * <p>Operation mode for edge 1556 * enhancement.</p> 1557 * 1558 * <p>This tag may appear in:</p> 1559 * <ul> 1560 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1561 * <li>ACaptureRequest</li> 1562 * </ul> 1563 * 1564 * <p>Edge enhancement improves sharpness and details in the captured image. OFF means 1565 * no enhancement will be applied by the camera device.</p> 1566 * <p>FAST/HIGH_QUALITY both mean camera device determined enhancement 1567 * will be applied. HIGH_QUALITY mode indicates that the 1568 * camera device will use the highest-quality enhancement algorithms, 1569 * even if it slows down capture rate. FAST means the camera device will 1570 * not slow down capture rate when applying edge enhancement. FAST may be the same as OFF if 1571 * edge enhancement will slow down capture rate. Every output stream will have a similar 1572 * amount of enhancement applied.</p> 1573 * <p>ZERO_SHUTTER_LAG is meant to be used by applications that maintain a continuous circular 1574 * buffer of high-resolution images during preview and reprocess image(s) from that buffer 1575 * into a final capture when triggered by the user. In this mode, the camera device applies 1576 * edge enhancement to low-resolution streams (below maximum recording resolution) to 1577 * maximize preview quality, but does not apply edge enhancement to high-resolution streams, 1578 * since those will be reprocessed later if necessary.</p> 1579 * <p>For YUV_REPROCESSING, these FAST/HIGH_QUALITY modes both mean that the camera 1580 * device will apply FAST/HIGH_QUALITY YUV-domain edge enhancement, respectively. 1581 * The camera device may adjust its internal edge enhancement parameters for best 1582 * image quality based on the android.reprocess.effectiveExposureFactor, if it is set.</p> 1583 */ 1584 ACAMERA_EDGE_MODE = // byte (enum) 1585 ACAMERA_EDGE_START, 1586 /** 1587 * <p>List of edge enhancement modes for ACAMERA_EDGE_MODE that are supported by this camera 1588 * device.</p> 1589 * 1590 * @see ACAMERA_EDGE_MODE 1591 * 1592 * <p>This tag may appear in:</p> 1593 * <ul> 1594 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1595 * </ul> 1596 * 1597 * <p>Full-capability camera devices must always support OFF; camera devices that support 1598 * YUV_REPROCESSING or PRIVATE_REPROCESSING will list ZERO_SHUTTER_LAG; all devices will 1599 * list FAST.</p> 1600 */ 1601 ACAMERA_EDGE_AVAILABLE_EDGE_MODES = // byte[n] 1602 ACAMERA_EDGE_START + 2, 1603 ACAMERA_EDGE_END, 1604 1605 /** 1606 * <p>The desired mode for for the camera device's flash control.</p> 1607 * 1608 * <p>This tag may appear in:</p> 1609 * <ul> 1610 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1611 * <li>ACaptureRequest</li> 1612 * </ul> 1613 * 1614 * <p>This control is only effective when flash unit is available 1615 * (<code>ACAMERA_FLASH_INFO_AVAILABLE == true</code>).</p> 1616 * <p>When this control is used, the ACAMERA_CONTROL_AE_MODE must be set to ON or OFF. 1617 * Otherwise, the camera device auto-exposure related flash control (ON_AUTO_FLASH, 1618 * ON_ALWAYS_FLASH, or ON_AUTO_FLASH_REDEYE) will override this control.</p> 1619 * <p>When set to OFF, the camera device will not fire flash for this capture.</p> 1620 * <p>When set to SINGLE, the camera device will fire flash regardless of the camera 1621 * device's auto-exposure routine's result. When used in still capture case, this 1622 * control should be used along with auto-exposure (AE) precapture metering sequence 1623 * (ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER), otherwise, the image may be incorrectly exposed.</p> 1624 * <p>When set to TORCH, the flash will be on continuously. This mode can be used 1625 * for use cases such as preview, auto-focus assist, still capture, or video recording.</p> 1626 * <p>The flash status will be reported by ACAMERA_FLASH_STATE in the capture result metadata.</p> 1627 * 1628 * @see ACAMERA_CONTROL_AE_MODE 1629 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 1630 * @see ACAMERA_FLASH_INFO_AVAILABLE 1631 * @see ACAMERA_FLASH_STATE 1632 */ 1633 ACAMERA_FLASH_MODE = // byte (enum) 1634 ACAMERA_FLASH_START + 2, 1635 /** 1636 * <p>Current state of the flash 1637 * unit.</p> 1638 * 1639 * <p>This tag may appear in:</p> 1640 * <ul> 1641 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1642 * </ul> 1643 * 1644 * <p>When the camera device doesn't have flash unit 1645 * (i.e. <code>ACAMERA_FLASH_INFO_AVAILABLE == false</code>), this state will always be UNAVAILABLE. 1646 * Other states indicate the current flash status.</p> 1647 * <p>In certain conditions, this will be available on LEGACY devices:</p> 1648 * <ul> 1649 * <li>Flash-less cameras always return UNAVAILABLE.</li> 1650 * <li>Using ACAMERA_CONTROL_AE_MODE <code>==</code> ON_ALWAYS_FLASH 1651 * will always return FIRED.</li> 1652 * <li>Using ACAMERA_FLASH_MODE <code>==</code> TORCH 1653 * will always return FIRED.</li> 1654 * </ul> 1655 * <p>In all other conditions the state will not be available on 1656 * LEGACY devices (i.e. it will be <code>null</code>).</p> 1657 * 1658 * @see ACAMERA_CONTROL_AE_MODE 1659 * @see ACAMERA_FLASH_INFO_AVAILABLE 1660 * @see ACAMERA_FLASH_MODE 1661 */ 1662 ACAMERA_FLASH_STATE = // byte (enum) 1663 ACAMERA_FLASH_START + 5, 1664 ACAMERA_FLASH_END, 1665 1666 /** 1667 * <p>Whether this camera device has a 1668 * flash unit.</p> 1669 * 1670 * <p>This tag may appear in:</p> 1671 * <ul> 1672 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1673 * </ul> 1674 * 1675 * <p>Will be <code>false</code> if no flash is available.</p> 1676 * <p>If there is no flash unit, none of the flash controls do 1677 * anything.</p> 1678 */ 1679 ACAMERA_FLASH_INFO_AVAILABLE = // byte (enum) 1680 ACAMERA_FLASH_INFO_START, 1681 ACAMERA_FLASH_INFO_END, 1682 1683 /** 1684 * <p>Operational mode for hot pixel correction.</p> 1685 * 1686 * <p>This tag may appear in:</p> 1687 * <ul> 1688 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1689 * <li>ACaptureRequest</li> 1690 * </ul> 1691 * 1692 * <p>Hotpixel correction interpolates out, or otherwise removes, pixels 1693 * that do not accurately measure the incoming light (i.e. pixels that 1694 * are stuck at an arbitrary value or are oversensitive).</p> 1695 */ 1696 ACAMERA_HOT_PIXEL_MODE = // byte (enum) 1697 ACAMERA_HOT_PIXEL_START, 1698 /** 1699 * <p>List of hot pixel correction modes for ACAMERA_HOT_PIXEL_MODE that are supported by this 1700 * camera device.</p> 1701 * 1702 * @see ACAMERA_HOT_PIXEL_MODE 1703 * 1704 * <p>This tag may appear in:</p> 1705 * <ul> 1706 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1707 * </ul> 1708 * 1709 * <p>FULL mode camera devices will always support FAST.</p> 1710 */ 1711 ACAMERA_HOT_PIXEL_AVAILABLE_HOT_PIXEL_MODES = // byte[n] 1712 ACAMERA_HOT_PIXEL_START + 1, 1713 ACAMERA_HOT_PIXEL_END, 1714 1715 /** 1716 * <p>GPS coordinates to include in output JPEG 1717 * EXIF.</p> 1718 * 1719 * <p>This tag may appear in:</p> 1720 * <ul> 1721 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1722 * <li>ACaptureRequest</li> 1723 * </ul> 1724 * 1725 * <p>None</p> 1726 */ 1727 ACAMERA_JPEG_GPS_COORDINATES = // double[3] 1728 ACAMERA_JPEG_START, 1729 /** 1730 * <p>32 characters describing GPS algorithm to 1731 * include in EXIF.</p> 1732 * 1733 * <p>This tag may appear in:</p> 1734 * <ul> 1735 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1736 * <li>ACaptureRequest</li> 1737 * </ul> 1738 * 1739 * <p>None</p> 1740 */ 1741 ACAMERA_JPEG_GPS_PROCESSING_METHOD = // byte 1742 ACAMERA_JPEG_START + 1, 1743 /** 1744 * <p>Time GPS fix was made to include in 1745 * EXIF.</p> 1746 * 1747 * <p>This tag may appear in:</p> 1748 * <ul> 1749 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1750 * <li>ACaptureRequest</li> 1751 * </ul> 1752 * 1753 * <p>None</p> 1754 */ 1755 ACAMERA_JPEG_GPS_TIMESTAMP = // int64 1756 ACAMERA_JPEG_START + 2, 1757 /** 1758 * <p>The orientation for a JPEG image.</p> 1759 * 1760 * <p>This tag may appear in:</p> 1761 * <ul> 1762 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1763 * <li>ACaptureRequest</li> 1764 * </ul> 1765 * 1766 * <p>The clockwise rotation angle in degrees, relative to the orientation 1767 * to the camera, that the JPEG picture needs to be rotated by, to be viewed 1768 * upright.</p> 1769 * <p>Camera devices may either encode this value into the JPEG EXIF header, or 1770 * rotate the image data to match this orientation. When the image data is rotated, 1771 * the thumbnail data will also be rotated.</p> 1772 * <p>Note that this orientation is relative to the orientation of the camera sensor, given 1773 * by ACAMERA_SENSOR_ORIENTATION.</p> 1774 * <p>To translate from the device orientation given by the Android sensor APIs, the following 1775 * sample code may be used:</p> 1776 * <pre><code>private int getJpegOrientation(CameraCharacteristics c, int deviceOrientation) { 1777 * if (deviceOrientation == android.view.OrientationEventListener.ORIENTATION_UNKNOWN) return 0; 1778 * int sensorOrientation = c.get(CameraCharacteristics.SENSOR_ORIENTATION); 1779 * 1780 * // Round device orientation to a multiple of 90 1781 * deviceOrientation = (deviceOrientation + 45) / 90 * 90; 1782 * 1783 * // Reverse device orientation for front-facing cameras 1784 * boolean facingFront = c.get(CameraCharacteristics.LENS_FACING) == CameraCharacteristics.LENS_FACING_FRONT; 1785 * if (facingFront) deviceOrientation = -deviceOrientation; 1786 * 1787 * // Calculate desired JPEG orientation relative to camera orientation to make 1788 * // the image upright relative to the device orientation 1789 * int jpegOrientation = (sensorOrientation + deviceOrientation + 360) % 360; 1790 * 1791 * return jpegOrientation; 1792 * } 1793 * </code></pre> 1794 * 1795 * @see ACAMERA_SENSOR_ORIENTATION 1796 */ 1797 ACAMERA_JPEG_ORIENTATION = // int32 1798 ACAMERA_JPEG_START + 3, 1799 /** 1800 * <p>Compression quality of the final JPEG 1801 * image.</p> 1802 * 1803 * <p>This tag may appear in:</p> 1804 * <ul> 1805 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1806 * <li>ACaptureRequest</li> 1807 * </ul> 1808 * 1809 * <p>85-95 is typical usage range.</p> 1810 */ 1811 ACAMERA_JPEG_QUALITY = // byte 1812 ACAMERA_JPEG_START + 4, 1813 /** 1814 * <p>Compression quality of JPEG 1815 * thumbnail.</p> 1816 * 1817 * <p>This tag may appear in:</p> 1818 * <ul> 1819 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1820 * <li>ACaptureRequest</li> 1821 * </ul> 1822 * 1823 * <p>None</p> 1824 */ 1825 ACAMERA_JPEG_THUMBNAIL_QUALITY = // byte 1826 ACAMERA_JPEG_START + 5, 1827 /** 1828 * <p>Resolution of embedded JPEG thumbnail.</p> 1829 * 1830 * <p>This tag may appear in:</p> 1831 * <ul> 1832 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1833 * <li>ACaptureRequest</li> 1834 * </ul> 1835 * 1836 * <p>When set to (0, 0) value, the JPEG EXIF will not contain thumbnail, 1837 * but the captured JPEG will still be a valid image.</p> 1838 * <p>For best results, when issuing a request for a JPEG image, the thumbnail size selected 1839 * should have the same aspect ratio as the main JPEG output.</p> 1840 * <p>If the thumbnail image aspect ratio differs from the JPEG primary image aspect 1841 * ratio, the camera device creates the thumbnail by cropping it from the primary image. 1842 * For example, if the primary image has 4:3 aspect ratio, the thumbnail image has 1843 * 16:9 aspect ratio, the primary image will be cropped vertically (letterbox) to 1844 * generate the thumbnail image. The thumbnail image will always have a smaller Field 1845 * Of View (FOV) than the primary image when aspect ratios differ.</p> 1846 * <p>When an ACAMERA_JPEG_ORIENTATION of non-zero degree is requested, 1847 * the camera device will handle thumbnail rotation in one of the following ways:</p> 1848 * <ul> 1849 * <li>Set the 1850 * <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a> 1851 * and keep jpeg and thumbnail image data unrotated.</li> 1852 * <li>Rotate the jpeg and thumbnail image data and not set 1853 * <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>. 1854 * In this case, LIMITED or FULL hardware level devices will report rotated thumnail size 1855 * in capture result, so the width and height will be interchanged if 90 or 270 degree 1856 * orientation is requested. LEGACY device will always report unrotated thumbnail size.</li> 1857 * </ul> 1858 * 1859 * @see ACAMERA_JPEG_ORIENTATION 1860 */ 1861 ACAMERA_JPEG_THUMBNAIL_SIZE = // int32[2] 1862 ACAMERA_JPEG_START + 6, 1863 /** 1864 * <p>List of JPEG thumbnail sizes for ACAMERA_JPEG_THUMBNAIL_SIZE supported by this 1865 * camera device.</p> 1866 * 1867 * @see ACAMERA_JPEG_THUMBNAIL_SIZE 1868 * 1869 * <p>This tag may appear in:</p> 1870 * <ul> 1871 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1872 * </ul> 1873 * 1874 * <p>This list will include at least one non-zero resolution, plus <code>(0,0)</code> for indicating no 1875 * thumbnail should be generated.</p> 1876 * <p>Below condiditions will be satisfied for this size list:</p> 1877 * <ul> 1878 * <li>The sizes will be sorted by increasing pixel area (width x height). 1879 * If several resolutions have the same area, they will be sorted by increasing width.</li> 1880 * <li>The aspect ratio of the largest thumbnail size will be same as the 1881 * aspect ratio of largest JPEG output size in ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS. 1882 * The largest size is defined as the size that has the largest pixel area 1883 * in a given size list.</li> 1884 * <li>Each output JPEG size in ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS will have at least 1885 * one corresponding size that has the same aspect ratio in availableThumbnailSizes, 1886 * and vice versa.</li> 1887 * <li>All non-<code>(0, 0)</code> sizes will have non-zero widths and heights.</li> 1888 * </ul> 1889 * 1890 * @see ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS 1891 */ 1892 ACAMERA_JPEG_AVAILABLE_THUMBNAIL_SIZES = // int32[2*n] 1893 ACAMERA_JPEG_START + 7, 1894 ACAMERA_JPEG_END, 1895 1896 /** 1897 * <p>The desired lens aperture size, as a ratio of lens focal length to the 1898 * effective aperture diameter.</p> 1899 * 1900 * <p>This tag may appear in:</p> 1901 * <ul> 1902 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1903 * <li>ACaptureRequest</li> 1904 * </ul> 1905 * 1906 * <p>Setting this value is only supported on the camera devices that have a variable 1907 * aperture lens.</p> 1908 * <p>When this is supported and ACAMERA_CONTROL_AE_MODE is OFF, 1909 * this can be set along with ACAMERA_SENSOR_EXPOSURE_TIME, 1910 * ACAMERA_SENSOR_SENSITIVITY, and ACAMERA_SENSOR_FRAME_DURATION 1911 * to achieve manual exposure control.</p> 1912 * <p>The requested aperture value may take several frames to reach the 1913 * requested value; the camera device will report the current (intermediate) 1914 * aperture size in capture result metadata while the aperture is changing. 1915 * While the aperture is still changing, ACAMERA_LENS_STATE will be set to MOVING.</p> 1916 * <p>When this is supported and ACAMERA_CONTROL_AE_MODE is one of 1917 * the ON modes, this will be overridden by the camera device 1918 * auto-exposure algorithm, the overridden values are then provided 1919 * back to the user in the corresponding result.</p> 1920 * 1921 * @see ACAMERA_CONTROL_AE_MODE 1922 * @see ACAMERA_LENS_STATE 1923 * @see ACAMERA_SENSOR_EXPOSURE_TIME 1924 * @see ACAMERA_SENSOR_FRAME_DURATION 1925 * @see ACAMERA_SENSOR_SENSITIVITY 1926 */ 1927 ACAMERA_LENS_APERTURE = // float 1928 ACAMERA_LENS_START, 1929 /** 1930 * <p>The desired setting for the lens neutral density filter(s).</p> 1931 * 1932 * <p>This tag may appear in:</p> 1933 * <ul> 1934 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1935 * <li>ACaptureRequest</li> 1936 * </ul> 1937 * 1938 * <p>This control will not be supported on most camera devices.</p> 1939 * <p>Lens filters are typically used to lower the amount of light the 1940 * sensor is exposed to (measured in steps of EV). As used here, an EV 1941 * step is the standard logarithmic representation, which are 1942 * non-negative, and inversely proportional to the amount of light 1943 * hitting the sensor. For example, setting this to 0 would result 1944 * in no reduction of the incoming light, and setting this to 2 would 1945 * mean that the filter is set to reduce incoming light by two stops 1946 * (allowing 1/4 of the prior amount of light to the sensor).</p> 1947 * <p>It may take several frames before the lens filter density changes 1948 * to the requested value. While the filter density is still changing, 1949 * ACAMERA_LENS_STATE will be set to MOVING.</p> 1950 * 1951 * @see ACAMERA_LENS_STATE 1952 */ 1953 ACAMERA_LENS_FILTER_DENSITY = // float 1954 ACAMERA_LENS_START + 1, 1955 /** 1956 * <p>The desired lens focal length; used for optical zoom.</p> 1957 * 1958 * <p>This tag may appear in:</p> 1959 * <ul> 1960 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1961 * <li>ACaptureRequest</li> 1962 * </ul> 1963 * 1964 * <p>This setting controls the physical focal length of the camera 1965 * device's lens. Changing the focal length changes the field of 1966 * view of the camera device, and is usually used for optical zoom.</p> 1967 * <p>Like ACAMERA_LENS_FOCUS_DISTANCE and ACAMERA_LENS_APERTURE, this 1968 * setting won't be applied instantaneously, and it may take several 1969 * frames before the lens can change to the requested focal length. 1970 * While the focal length is still changing, ACAMERA_LENS_STATE will 1971 * be set to MOVING.</p> 1972 * <p>Optical zoom will not be supported on most devices.</p> 1973 * 1974 * @see ACAMERA_LENS_APERTURE 1975 * @see ACAMERA_LENS_FOCUS_DISTANCE 1976 * @see ACAMERA_LENS_STATE 1977 */ 1978 ACAMERA_LENS_FOCAL_LENGTH = // float 1979 ACAMERA_LENS_START + 2, 1980 /** 1981 * <p>Desired distance to plane of sharpest focus, 1982 * measured from frontmost surface of the lens.</p> 1983 * 1984 * <p>This tag may appear in:</p> 1985 * <ul> 1986 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1987 * <li>ACaptureRequest</li> 1988 * </ul> 1989 * 1990 * <p>Should be zero for fixed-focus cameras</p> 1991 */ 1992 ACAMERA_LENS_FOCUS_DISTANCE = // float 1993 ACAMERA_LENS_START + 3, 1994 /** 1995 * <p>Sets whether the camera device uses optical image stabilization (OIS) 1996 * when capturing images.</p> 1997 * 1998 * <p>This tag may appear in:</p> 1999 * <ul> 2000 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2001 * <li>ACaptureRequest</li> 2002 * </ul> 2003 * 2004 * <p>OIS is used to compensate for motion blur due to small 2005 * movements of the camera during capture. Unlike digital image 2006 * stabilization (ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE), OIS 2007 * makes use of mechanical elements to stabilize the camera 2008 * sensor, and thus allows for longer exposure times before 2009 * camera shake becomes apparent.</p> 2010 * <p>Switching between different optical stabilization modes may take several 2011 * frames to initialize, the camera device will report the current mode in 2012 * capture result metadata. For example, When "ON" mode is requested, the 2013 * optical stabilization modes in the first several capture results may still 2014 * be "OFF", and it will become "ON" when the initialization is done.</p> 2015 * <p>If a camera device supports both OIS and digital image stabilization 2016 * (ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE), turning both modes on may produce undesirable 2017 * interaction, so it is recommended not to enable both at the same time.</p> 2018 * <p>Not all devices will support OIS; see 2019 * ACAMERA_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION for 2020 * available controls.</p> 2021 * 2022 * @see ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE 2023 * @see ACAMERA_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION 2024 */ 2025 ACAMERA_LENS_OPTICAL_STABILIZATION_MODE = // byte (enum) 2026 ACAMERA_LENS_START + 4, 2027 /** 2028 * <p>Direction the camera faces relative to 2029 * device screen.</p> 2030 * 2031 * <p>This tag may appear in:</p> 2032 * <ul> 2033 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2034 * </ul> 2035 * 2036 * <p>None</p> 2037 */ 2038 ACAMERA_LENS_FACING = // byte (enum) 2039 ACAMERA_LENS_START + 5, 2040 /** 2041 * <p>The orientation of the camera relative to the sensor 2042 * coordinate system.</p> 2043 * 2044 * <p>This tag may appear in:</p> 2045 * <ul> 2046 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2047 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2048 * </ul> 2049 * 2050 * <p>The four coefficients that describe the quaternion 2051 * rotation from the Android sensor coordinate system to a 2052 * camera-aligned coordinate system where the X-axis is 2053 * aligned with the long side of the image sensor, the Y-axis 2054 * is aligned with the short side of the image sensor, and 2055 * the Z-axis is aligned with the optical axis of the sensor.</p> 2056 * <p>To convert from the quaternion coefficients <code>(x,y,z,w)</code> 2057 * to the axis of rotation <code>(a_x, a_y, a_z)</code> and rotation 2058 * amount <code>theta</code>, the following formulas can be used:</p> 2059 * <pre><code> theta = 2 * acos(w) 2060 * a_x = x / sin(theta/2) 2061 * a_y = y / sin(theta/2) 2062 * a_z = z / sin(theta/2) 2063 * </code></pre> 2064 * <p>To create a 3x3 rotation matrix that applies the rotation 2065 * defined by this quaternion, the following matrix can be 2066 * used:</p> 2067 * <pre><code>R = [ 1 - 2y^2 - 2z^2, 2xy - 2zw, 2xz + 2yw, 2068 * 2xy + 2zw, 1 - 2x^2 - 2z^2, 2yz - 2xw, 2069 * 2xz - 2yw, 2yz + 2xw, 1 - 2x^2 - 2y^2 ] 2070 * </code></pre> 2071 * <p>This matrix can then be used to apply the rotation to a 2072 * column vector point with</p> 2073 * <p><code>p' = Rp</code></p> 2074 * <p>where <code>p</code> is in the device sensor coordinate system, and 2075 * <code>p'</code> is in the camera-oriented coordinate system.</p> 2076 */ 2077 ACAMERA_LENS_POSE_ROTATION = // float[4] 2078 ACAMERA_LENS_START + 6, 2079 /** 2080 * <p>Position of the camera optical center.</p> 2081 * 2082 * <p>This tag may appear in:</p> 2083 * <ul> 2084 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2085 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2086 * </ul> 2087 * 2088 * <p>The position of the camera device's lens optical center, 2089 * as a three-dimensional vector <code>(x,y,z)</code>, relative to the 2090 * optical center of the largest camera device facing in the 2091 * same direction as this camera, in the 2092 * <a href="https://developer.android.com/reference/android/hardware/SensorEvent.html">Android sensor coordinate axes</a>. 2093 * Note that only the axis definitions are shared with 2094 * the sensor coordinate system, but not the origin.</p> 2095 * <p>If this device is the largest or only camera device with a 2096 * given facing, then this position will be <code>(0, 0, 0)</code>; a 2097 * camera device with a lens optical center located 3 cm from 2098 * the main sensor along the +X axis (to the right from the 2099 * user's perspective) will report <code>(0.03, 0, 0)</code>.</p> 2100 * <p>To transform a pixel coordinates between two cameras 2101 * facing the same direction, first the source camera 2102 * ACAMERA_LENS_RADIAL_DISTORTION must be corrected for. Then 2103 * the source camera ACAMERA_LENS_INTRINSIC_CALIBRATION needs 2104 * to be applied, followed by the ACAMERA_LENS_POSE_ROTATION 2105 * of the source camera, the translation of the source camera 2106 * relative to the destination camera, the 2107 * ACAMERA_LENS_POSE_ROTATION of the destination camera, and 2108 * finally the inverse of ACAMERA_LENS_INTRINSIC_CALIBRATION 2109 * of the destination camera. This obtains a 2110 * radial-distortion-free coordinate in the destination 2111 * camera pixel coordinates.</p> 2112 * <p>To compare this against a real image from the destination 2113 * camera, the destination camera image then needs to be 2114 * corrected for radial distortion before comparison or 2115 * sampling.</p> 2116 * 2117 * @see ACAMERA_LENS_INTRINSIC_CALIBRATION 2118 * @see ACAMERA_LENS_POSE_ROTATION 2119 * @see ACAMERA_LENS_RADIAL_DISTORTION 2120 */ 2121 ACAMERA_LENS_POSE_TRANSLATION = // float[3] 2122 ACAMERA_LENS_START + 7, 2123 /** 2124 * <p>The range of scene distances that are in 2125 * sharp focus (depth of field).</p> 2126 * 2127 * <p>This tag may appear in:</p> 2128 * <ul> 2129 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2130 * </ul> 2131 * 2132 * <p>If variable focus not supported, can still report 2133 * fixed depth of field range</p> 2134 */ 2135 ACAMERA_LENS_FOCUS_RANGE = // float[2] 2136 ACAMERA_LENS_START + 8, 2137 /** 2138 * <p>Current lens status.</p> 2139 * 2140 * <p>This tag may appear in:</p> 2141 * <ul> 2142 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2143 * </ul> 2144 * 2145 * <p>For lens parameters ACAMERA_LENS_FOCAL_LENGTH, ACAMERA_LENS_FOCUS_DISTANCE, 2146 * ACAMERA_LENS_FILTER_DENSITY and ACAMERA_LENS_APERTURE, when changes are requested, 2147 * they may take several frames to reach the requested values. This state indicates 2148 * the current status of the lens parameters.</p> 2149 * <p>When the state is STATIONARY, the lens parameters are not changing. This could be 2150 * either because the parameters are all fixed, or because the lens has had enough 2151 * time to reach the most recently-requested values. 2152 * If all these lens parameters are not changable for a camera device, as listed below:</p> 2153 * <ul> 2154 * <li>Fixed focus (<code>ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE == 0</code>), which means 2155 * ACAMERA_LENS_FOCUS_DISTANCE parameter will always be 0.</li> 2156 * <li>Fixed focal length (ACAMERA_LENS_INFO_AVAILABLE_FOCAL_LENGTHS contains single value), 2157 * which means the optical zoom is not supported.</li> 2158 * <li>No ND filter (ACAMERA_LENS_INFO_AVAILABLE_FILTER_DENSITIES contains only 0).</li> 2159 * <li>Fixed aperture (ACAMERA_LENS_INFO_AVAILABLE_APERTURES contains single value).</li> 2160 * </ul> 2161 * <p>Then this state will always be STATIONARY.</p> 2162 * <p>When the state is MOVING, it indicates that at least one of the lens parameters 2163 * is changing.</p> 2164 * 2165 * @see ACAMERA_LENS_APERTURE 2166 * @see ACAMERA_LENS_FILTER_DENSITY 2167 * @see ACAMERA_LENS_FOCAL_LENGTH 2168 * @see ACAMERA_LENS_FOCUS_DISTANCE 2169 * @see ACAMERA_LENS_INFO_AVAILABLE_APERTURES 2170 * @see ACAMERA_LENS_INFO_AVAILABLE_FILTER_DENSITIES 2171 * @see ACAMERA_LENS_INFO_AVAILABLE_FOCAL_LENGTHS 2172 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 2173 */ 2174 ACAMERA_LENS_STATE = // byte (enum) 2175 ACAMERA_LENS_START + 9, 2176 /** 2177 * <p>The parameters for this camera device's intrinsic 2178 * calibration.</p> 2179 * 2180 * <p>This tag may appear in:</p> 2181 * <ul> 2182 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2183 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2184 * </ul> 2185 * 2186 * <p>The five calibration parameters that describe the 2187 * transform from camera-centric 3D coordinates to sensor 2188 * pixel coordinates:</p> 2189 * <pre><code>[f_x, f_y, c_x, c_y, s] 2190 * </code></pre> 2191 * <p>Where <code>f_x</code> and <code>f_y</code> are the horizontal and vertical 2192 * focal lengths, <code>[c_x, c_y]</code> is the position of the optical 2193 * axis, and <code>s</code> is a skew parameter for the sensor plane not 2194 * being aligned with the lens plane.</p> 2195 * <p>These are typically used within a transformation matrix K:</p> 2196 * <pre><code>K = [ f_x, s, c_x, 2197 * 0, f_y, c_y, 2198 * 0 0, 1 ] 2199 * </code></pre> 2200 * <p>which can then be combined with the camera pose rotation 2201 * <code>R</code> and translation <code>t</code> (ACAMERA_LENS_POSE_ROTATION and 2202 * ACAMERA_LENS_POSE_TRANSLATION, respective) to calculate the 2203 * complete transform from world coordinates to pixel 2204 * coordinates:</p> 2205 * <pre><code>P = [ K 0 * [ R t 2206 * 0 1 ] 0 1 ] 2207 * </code></pre> 2208 * <p>and with <code>p_w</code> being a point in the world coordinate system 2209 * and <code>p_s</code> being a point in the camera active pixel array 2210 * coordinate system, and with the mapping including the 2211 * homogeneous division by z:</p> 2212 * <pre><code> p_h = (x_h, y_h, z_h) = P p_w 2213 * p_s = p_h / z_h 2214 * </code></pre> 2215 * <p>so <code>[x_s, y_s]</code> is the pixel coordinates of the world 2216 * point, <code>z_s = 1</code>, and <code>w_s</code> is a measurement of disparity 2217 * (depth) in pixel coordinates.</p> 2218 * <p>Note that the coordinate system for this transform is the 2219 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE system, 2220 * where <code>(0,0)</code> is the top-left of the 2221 * preCorrectionActiveArraySize rectangle. Once the pose and 2222 * intrinsic calibration transforms have been applied to a 2223 * world point, then the ACAMERA_LENS_RADIAL_DISTORTION 2224 * transform needs to be applied, and the result adjusted to 2225 * be in the ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE coordinate 2226 * system (where <code>(0, 0)</code> is the top-left of the 2227 * activeArraySize rectangle), to determine the final pixel 2228 * coordinate of the world point for processed (non-RAW) 2229 * output buffers.</p> 2230 * 2231 * @see ACAMERA_LENS_POSE_ROTATION 2232 * @see ACAMERA_LENS_POSE_TRANSLATION 2233 * @see ACAMERA_LENS_RADIAL_DISTORTION 2234 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 2235 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 2236 */ 2237 ACAMERA_LENS_INTRINSIC_CALIBRATION = // float[5] 2238 ACAMERA_LENS_START + 10, 2239 /** 2240 * <p>The correction coefficients to correct for this camera device's 2241 * radial and tangential lens distortion.</p> 2242 * 2243 * <p>This tag may appear in:</p> 2244 * <ul> 2245 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2246 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2247 * </ul> 2248 * 2249 * <p>Four radial distortion coefficients <code>[kappa_0, kappa_1, kappa_2, 2250 * kappa_3]</code> and two tangential distortion coefficients 2251 * <code>[kappa_4, kappa_5]</code> that can be used to correct the 2252 * lens's geometric distortion with the mapping equations:</p> 2253 * <pre><code> x_c = x_i * ( kappa_0 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) + 2254 * kappa_4 * (2 * x_i * y_i) + kappa_5 * ( r^2 + 2 * x_i^2 ) 2255 * y_c = y_i * ( kappa_0 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) + 2256 * kappa_5 * (2 * x_i * y_i) + kappa_4 * ( r^2 + 2 * y_i^2 ) 2257 * </code></pre> 2258 * <p>Here, <code>[x_c, y_c]</code> are the coordinates to sample in the 2259 * input image that correspond to the pixel values in the 2260 * corrected image at the coordinate <code>[x_i, y_i]</code>:</p> 2261 * <pre><code> correctedImage(x_i, y_i) = sample_at(x_c, y_c, inputImage) 2262 * </code></pre> 2263 * <p>The pixel coordinates are defined in a normalized 2264 * coordinate system related to the 2265 * ACAMERA_LENS_INTRINSIC_CALIBRATION calibration fields. 2266 * Both <code>[x_i, y_i]</code> and <code>[x_c, y_c]</code> have <code>(0,0)</code> at the 2267 * lens optical center <code>[c_x, c_y]</code>. The maximum magnitudes 2268 * of both x and y coordinates are normalized to be 1 at the 2269 * edge further from the optical center, so the range 2270 * for both dimensions is <code>-1 <= x <= 1</code>.</p> 2271 * <p>Finally, <code>r</code> represents the radial distance from the 2272 * optical center, <code>r^2 = x_i^2 + y_i^2</code>, and its magnitude 2273 * is therefore no larger than <code>|r| <= sqrt(2)</code>.</p> 2274 * <p>The distortion model used is the Brown-Conrady model.</p> 2275 * 2276 * @see ACAMERA_LENS_INTRINSIC_CALIBRATION 2277 */ 2278 ACAMERA_LENS_RADIAL_DISTORTION = // float[6] 2279 ACAMERA_LENS_START + 11, 2280 ACAMERA_LENS_END, 2281 2282 /** 2283 * <p>List of aperture size values for ACAMERA_LENS_APERTURE that are 2284 * supported by this camera device.</p> 2285 * 2286 * @see ACAMERA_LENS_APERTURE 2287 * 2288 * <p>This tag may appear in:</p> 2289 * <ul> 2290 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2291 * </ul> 2292 * 2293 * <p>If the camera device doesn't support a variable lens aperture, 2294 * this list will contain only one value, which is the fixed aperture size.</p> 2295 * <p>If the camera device supports a variable aperture, the aperture values 2296 * in this list will be sorted in ascending order.</p> 2297 */ 2298 ACAMERA_LENS_INFO_AVAILABLE_APERTURES = // float[n] 2299 ACAMERA_LENS_INFO_START, 2300 /** 2301 * <p>List of neutral density filter values for 2302 * ACAMERA_LENS_FILTER_DENSITY that are supported by this camera device.</p> 2303 * 2304 * @see ACAMERA_LENS_FILTER_DENSITY 2305 * 2306 * <p>This tag may appear in:</p> 2307 * <ul> 2308 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2309 * </ul> 2310 * 2311 * <p>If a neutral density filter is not supported by this camera device, 2312 * this list will contain only 0. Otherwise, this list will include every 2313 * filter density supported by the camera device, in ascending order.</p> 2314 */ 2315 ACAMERA_LENS_INFO_AVAILABLE_FILTER_DENSITIES = // float[n] 2316 ACAMERA_LENS_INFO_START + 1, 2317 /** 2318 * <p>List of focal lengths for ACAMERA_LENS_FOCAL_LENGTH that are supported by this camera 2319 * device.</p> 2320 * 2321 * @see ACAMERA_LENS_FOCAL_LENGTH 2322 * 2323 * <p>This tag may appear in:</p> 2324 * <ul> 2325 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2326 * </ul> 2327 * 2328 * <p>If optical zoom is not supported, this list will only contain 2329 * a single value corresponding to the fixed focal length of the 2330 * device. Otherwise, this list will include every focal length supported 2331 * by the camera device, in ascending order.</p> 2332 */ 2333 ACAMERA_LENS_INFO_AVAILABLE_FOCAL_LENGTHS = // float[n] 2334 ACAMERA_LENS_INFO_START + 2, 2335 /** 2336 * <p>List of optical image stabilization (OIS) modes for 2337 * ACAMERA_LENS_OPTICAL_STABILIZATION_MODE that are supported by this camera device.</p> 2338 * 2339 * @see ACAMERA_LENS_OPTICAL_STABILIZATION_MODE 2340 * 2341 * <p>This tag may appear in:</p> 2342 * <ul> 2343 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2344 * </ul> 2345 * 2346 * <p>If OIS is not supported by a given camera device, this list will 2347 * contain only OFF.</p> 2348 */ 2349 ACAMERA_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION = // byte[n] 2350 ACAMERA_LENS_INFO_START + 3, 2351 /** 2352 * <p>Hyperfocal distance for this lens.</p> 2353 * 2354 * <p>This tag may appear in:</p> 2355 * <ul> 2356 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2357 * </ul> 2358 * 2359 * <p>If the lens is not fixed focus, the camera device will report this 2360 * field when ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION is APPROXIMATE or CALIBRATED.</p> 2361 * 2362 * @see ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION 2363 */ 2364 ACAMERA_LENS_INFO_HYPERFOCAL_DISTANCE = // float 2365 ACAMERA_LENS_INFO_START + 4, 2366 /** 2367 * <p>Shortest distance from frontmost surface 2368 * of the lens that can be brought into sharp focus.</p> 2369 * 2370 * <p>This tag may appear in:</p> 2371 * <ul> 2372 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2373 * </ul> 2374 * 2375 * <p>If the lens is fixed-focus, this will be 2376 * 0.</p> 2377 */ 2378 ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE = // float 2379 ACAMERA_LENS_INFO_START + 5, 2380 /** 2381 * <p>Dimensions of lens shading map.</p> 2382 * 2383 * <p>This tag may appear in:</p> 2384 * <ul> 2385 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2386 * </ul> 2387 * 2388 * <p>The map should be on the order of 30-40 rows and columns, and 2389 * must be smaller than 64x64.</p> 2390 */ 2391 ACAMERA_LENS_INFO_SHADING_MAP_SIZE = // int32[2] 2392 ACAMERA_LENS_INFO_START + 6, 2393 /** 2394 * <p>The lens focus distance calibration quality.</p> 2395 * 2396 * <p>This tag may appear in:</p> 2397 * <ul> 2398 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2399 * </ul> 2400 * 2401 * <p>The lens focus distance calibration quality determines the reliability of 2402 * focus related metadata entries, i.e. ACAMERA_LENS_FOCUS_DISTANCE, 2403 * ACAMERA_LENS_FOCUS_RANGE, ACAMERA_LENS_INFO_HYPERFOCAL_DISTANCE, and 2404 * ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE.</p> 2405 * <p>APPROXIMATE and CALIBRATED devices report the focus metadata in 2406 * units of diopters (1/meter), so <code>0.0f</code> represents focusing at infinity, 2407 * and increasing positive numbers represent focusing closer and closer 2408 * to the camera device. The focus distance control also uses diopters 2409 * on these devices.</p> 2410 * <p>UNCALIBRATED devices do not use units that are directly comparable 2411 * to any real physical measurement, but <code>0.0f</code> still represents farthest 2412 * focus, and ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE represents the 2413 * nearest focus the device can achieve.</p> 2414 * 2415 * @see ACAMERA_LENS_FOCUS_DISTANCE 2416 * @see ACAMERA_LENS_FOCUS_RANGE 2417 * @see ACAMERA_LENS_INFO_HYPERFOCAL_DISTANCE 2418 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 2419 */ 2420 ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION = // byte (enum) 2421 ACAMERA_LENS_INFO_START + 7, 2422 ACAMERA_LENS_INFO_END, 2423 2424 /** 2425 * <p>Mode of operation for the noise reduction algorithm.</p> 2426 * 2427 * <p>This tag may appear in:</p> 2428 * <ul> 2429 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2430 * <li>ACaptureRequest</li> 2431 * </ul> 2432 * 2433 * <p>The noise reduction algorithm attempts to improve image quality by removing 2434 * excessive noise added by the capture process, especially in dark conditions.</p> 2435 * <p>OFF means no noise reduction will be applied by the camera device, for both raw and 2436 * YUV domain.</p> 2437 * <p>MINIMAL means that only sensor raw domain basic noise reduction is enabled ,to remove 2438 * demosaicing or other processing artifacts. For YUV_REPROCESSING, MINIMAL is same as OFF. 2439 * This mode is optional, may not be support by all devices. The application should check 2440 * ACAMERA_NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES before using it.</p> 2441 * <p>FAST/HIGH_QUALITY both mean camera device determined noise filtering 2442 * will be applied. HIGH_QUALITY mode indicates that the camera device 2443 * will use the highest-quality noise filtering algorithms, 2444 * even if it slows down capture rate. FAST means the camera device will not 2445 * slow down capture rate when applying noise filtering. FAST may be the same as MINIMAL if 2446 * MINIMAL is listed, or the same as OFF if any noise filtering will slow down capture rate. 2447 * Every output stream will have a similar amount of enhancement applied.</p> 2448 * <p>ZERO_SHUTTER_LAG is meant to be used by applications that maintain a continuous circular 2449 * buffer of high-resolution images during preview and reprocess image(s) from that buffer 2450 * into a final capture when triggered by the user. In this mode, the camera device applies 2451 * noise reduction to low-resolution streams (below maximum recording resolution) to maximize 2452 * preview quality, but does not apply noise reduction to high-resolution streams, since 2453 * those will be reprocessed later if necessary.</p> 2454 * <p>For YUV_REPROCESSING, these FAST/HIGH_QUALITY modes both mean that the camera device 2455 * will apply FAST/HIGH_QUALITY YUV domain noise reduction, respectively. The camera device 2456 * may adjust the noise reduction parameters for best image quality based on the 2457 * android.reprocess.effectiveExposureFactor if it is set.</p> 2458 * 2459 * @see ACAMERA_NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES 2460 */ 2461 ACAMERA_NOISE_REDUCTION_MODE = // byte (enum) 2462 ACAMERA_NOISE_REDUCTION_START, 2463 /** 2464 * <p>List of noise reduction modes for ACAMERA_NOISE_REDUCTION_MODE that are supported 2465 * by this camera device.</p> 2466 * 2467 * @see ACAMERA_NOISE_REDUCTION_MODE 2468 * 2469 * <p>This tag may appear in:</p> 2470 * <ul> 2471 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2472 * </ul> 2473 * 2474 * <p>Full-capability camera devices will always support OFF and FAST.</p> 2475 * <p>Camera devices that support YUV_REPROCESSING or PRIVATE_REPROCESSING will support 2476 * ZERO_SHUTTER_LAG.</p> 2477 * <p>Legacy-capability camera devices will only support FAST mode.</p> 2478 */ 2479 ACAMERA_NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES = // byte[n] 2480 ACAMERA_NOISE_REDUCTION_START + 2, 2481 ACAMERA_NOISE_REDUCTION_END, 2482 2483 /** 2484 * <p>The maximum numbers of different types of output streams 2485 * that can be configured and used simultaneously by a camera device.</p> 2486 * 2487 * <p>This tag may appear in:</p> 2488 * <ul> 2489 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2490 * </ul> 2491 * 2492 * <p>This is a 3 element tuple that contains the max number of output simultaneous 2493 * streams for raw sensor, processed (but not stalling), and processed (and stalling) 2494 * formats respectively. For example, assuming that JPEG is typically a processed and 2495 * stalling stream, if max raw sensor format output stream number is 1, max YUV streams 2496 * number is 3, and max JPEG stream number is 2, then this tuple should be <code>(1, 3, 2)</code>.</p> 2497 * <p>This lists the upper bound of the number of output streams supported by 2498 * the camera device. Using more streams simultaneously may require more hardware and 2499 * CPU resources that will consume more power. The image format for an output stream can 2500 * be any supported format provided by ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS. 2501 * The formats defined in ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS can be catergorized 2502 * into the 3 stream types as below:</p> 2503 * <ul> 2504 * <li>Processed (but stalling): any non-RAW format with a stallDurations > 0. 2505 * Typically {@link AIMAGE_FORMAT_JPEG} format.</li> 2506 * <li>Raw formats: {@link AIMAGE_FORMAT_RAW16}, {@link AIMAGE_FORMAT_RAW10}, or 2507 * {@link AIMAGE_FORMAT_RAW12}.</li> 2508 * <li>Processed (but not-stalling): any non-RAW format without a stall duration. 2509 * Typically {@link AIMAGE_FORMAT_YUV_420_888}.</li> 2510 * </ul> 2511 * 2512 * @see ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS 2513 */ 2514 ACAMERA_REQUEST_MAX_NUM_OUTPUT_STREAMS = // int32[3] 2515 ACAMERA_REQUEST_START + 6, 2516 /** 2517 * <p>Specifies the number of pipeline stages the frame went 2518 * through from when it was exposed to when the final completed result 2519 * was available to the framework.</p> 2520 * 2521 * <p>This tag may appear in:</p> 2522 * <ul> 2523 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2524 * </ul> 2525 * 2526 * <p>Depending on what settings are used in the request, and 2527 * what streams are configured, the data may undergo less processing, 2528 * and some pipeline stages skipped.</p> 2529 * <p>See ACAMERA_REQUEST_PIPELINE_MAX_DEPTH for more details.</p> 2530 * 2531 * @see ACAMERA_REQUEST_PIPELINE_MAX_DEPTH 2532 */ 2533 ACAMERA_REQUEST_PIPELINE_DEPTH = // byte 2534 ACAMERA_REQUEST_START + 9, 2535 /** 2536 * <p>Specifies the number of maximum pipeline stages a frame 2537 * has to go through from when it's exposed to when it's available 2538 * to the framework.</p> 2539 * 2540 * <p>This tag may appear in:</p> 2541 * <ul> 2542 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2543 * </ul> 2544 * 2545 * <p>A typical minimum value for this is 2 (one stage to expose, 2546 * one stage to readout) from the sensor. The ISP then usually adds 2547 * its own stages to do custom HW processing. Further stages may be 2548 * added by SW processing.</p> 2549 * <p>Depending on what settings are used (e.g. YUV, JPEG) and what 2550 * processing is enabled (e.g. face detection), the actual pipeline 2551 * depth (specified by ACAMERA_REQUEST_PIPELINE_DEPTH) may be less than 2552 * the max pipeline depth.</p> 2553 * <p>A pipeline depth of X stages is equivalent to a pipeline latency of 2554 * X frame intervals.</p> 2555 * <p>This value will normally be 8 or less, however, for high speed capture session, 2556 * the max pipeline depth will be up to 8 x size of high speed capture request list.</p> 2557 * 2558 * @see ACAMERA_REQUEST_PIPELINE_DEPTH 2559 */ 2560 ACAMERA_REQUEST_PIPELINE_MAX_DEPTH = // byte 2561 ACAMERA_REQUEST_START + 10, 2562 /** 2563 * <p>Defines how many sub-components 2564 * a result will be composed of.</p> 2565 * 2566 * <p>This tag may appear in:</p> 2567 * <ul> 2568 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2569 * </ul> 2570 * 2571 * <p>In order to combat the pipeline latency, partial results 2572 * may be delivered to the application layer from the camera device as 2573 * soon as they are available.</p> 2574 * <p>Optional; defaults to 1. A value of 1 means that partial 2575 * results are not supported, and only the final TotalCaptureResult will 2576 * be produced by the camera device.</p> 2577 * <p>A typical use case for this might be: after requesting an 2578 * auto-focus (AF) lock the new AF state might be available 50% 2579 * of the way through the pipeline. The camera device could 2580 * then immediately dispatch this state via a partial result to 2581 * the application, and the rest of the metadata via later 2582 * partial results.</p> 2583 */ 2584 ACAMERA_REQUEST_PARTIAL_RESULT_COUNT = // int32 2585 ACAMERA_REQUEST_START + 11, 2586 /** 2587 * <p>List of capabilities that this camera device 2588 * advertises as fully supporting.</p> 2589 * 2590 * <p>This tag may appear in:</p> 2591 * <ul> 2592 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2593 * </ul> 2594 * 2595 * <p>A capability is a contract that the camera device makes in order 2596 * to be able to satisfy one or more use cases.</p> 2597 * <p>Listing a capability guarantees that the whole set of features 2598 * required to support a common use will all be available.</p> 2599 * <p>Using a subset of the functionality provided by an unsupported 2600 * capability may be possible on a specific camera device implementation; 2601 * to do this query each of ACAMERA_REQUEST_AVAILABLE_REQUEST_KEYS, 2602 * ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS, 2603 * ACAMERA_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS.</p> 2604 * <p>The following capabilities are guaranteed to be available on 2605 * ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL <code>==</code> FULL devices:</p> 2606 * <ul> 2607 * <li>MANUAL_SENSOR</li> 2608 * <li>MANUAL_POST_PROCESSING</li> 2609 * </ul> 2610 * <p>Other capabilities may be available on either FULL or LIMITED 2611 * devices, but the application should query this key to be sure.</p> 2612 * 2613 * @see ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL 2614 * @see ACAMERA_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS 2615 * @see ACAMERA_REQUEST_AVAILABLE_REQUEST_KEYS 2616 * @see ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS 2617 */ 2618 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES = // byte[n] (enum) 2619 ACAMERA_REQUEST_START + 12, 2620 /** 2621 * <p>A list of all keys that the camera device has available 2622 * to use with {@link ACaptureRequest}.</p> 2623 * 2624 * <p>This tag may appear in:</p> 2625 * <ul> 2626 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2627 * </ul> 2628 * 2629 * <p>Attempting to set a key into a CaptureRequest that is not 2630 * listed here will result in an invalid request and will be rejected 2631 * by the camera device.</p> 2632 * <p>This field can be used to query the feature set of a camera device 2633 * at a more granular level than capabilities. This is especially 2634 * important for optional keys that are not listed under any capability 2635 * in ACAMERA_REQUEST_AVAILABLE_CAPABILITIES.</p> 2636 * 2637 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 2638 */ 2639 ACAMERA_REQUEST_AVAILABLE_REQUEST_KEYS = // int32[n] 2640 ACAMERA_REQUEST_START + 13, 2641 /** 2642 * <p>A list of all keys that the camera device has available 2643 * to query with {@link ACameraMetadata} from 2644 * {@link ACameraCaptureSession_captureCallback_result}.</p> 2645 * 2646 * <p>This tag may appear in:</p> 2647 * <ul> 2648 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2649 * </ul> 2650 * 2651 * <p>Attempting to get a key from a CaptureResult that is not 2652 * listed here will always return a <code>null</code> value. Getting a key from 2653 * a CaptureResult that is listed here will generally never return a <code>null</code> 2654 * value.</p> 2655 * <p>The following keys may return <code>null</code> unless they are enabled:</p> 2656 * <ul> 2657 * <li>ACAMERA_STATISTICS_LENS_SHADING_MAP (non-null iff ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE == ON)</li> 2658 * </ul> 2659 * <p>(Those sometimes-null keys will nevertheless be listed here 2660 * if they are available.)</p> 2661 * <p>This field can be used to query the feature set of a camera device 2662 * at a more granular level than capabilities. This is especially 2663 * important for optional keys that are not listed under any capability 2664 * in ACAMERA_REQUEST_AVAILABLE_CAPABILITIES.</p> 2665 * 2666 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 2667 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP 2668 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE 2669 */ 2670 ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS = // int32[n] 2671 ACAMERA_REQUEST_START + 14, 2672 /** 2673 * <p>A list of all keys that the camera device has available 2674 * to query with {@link ACameraMetadata} from 2675 * {@link ACameraManager_getCameraCharacteristics}.</p> 2676 * 2677 * <p>This tag may appear in:</p> 2678 * <ul> 2679 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2680 * </ul> 2681 * 2682 * <p>This entry follows the same rules as 2683 * ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS (except that it applies for 2684 * CameraCharacteristics instead of CaptureResult). See above for more 2685 * details.</p> 2686 * 2687 * @see ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS 2688 */ 2689 ACAMERA_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS = // int32[n] 2690 ACAMERA_REQUEST_START + 15, 2691 ACAMERA_REQUEST_END, 2692 2693 /** 2694 * <p>The desired region of the sensor to read out for this capture.</p> 2695 * 2696 * <p>This tag may appear in:</p> 2697 * <ul> 2698 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2699 * <li>ACaptureRequest</li> 2700 * </ul> 2701 * 2702 * <p>This control can be used to implement digital zoom.</p> 2703 * <p>The data representation is int[4], which maps to (left, top, width, height).</p> 2704 * <p>The crop region coordinate system is based off 2705 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with <code>(0, 0)</code> being the 2706 * top-left corner of the sensor active array.</p> 2707 * <p>Output streams use this rectangle to produce their output, 2708 * cropping to a smaller region if necessary to maintain the 2709 * stream's aspect ratio, then scaling the sensor input to 2710 * match the output's configured resolution.</p> 2711 * <p>The crop region is applied after the RAW to other color 2712 * space (e.g. YUV) conversion. Since raw streams 2713 * (e.g. RAW16) don't have the conversion stage, they are not 2714 * croppable. The crop region will be ignored by raw streams.</p> 2715 * <p>For non-raw streams, any additional per-stream cropping will 2716 * be done to maximize the final pixel area of the stream.</p> 2717 * <p>For example, if the crop region is set to a 4:3 aspect 2718 * ratio, then 4:3 streams will use the exact crop 2719 * region. 16:9 streams will further crop vertically 2720 * (letterbox).</p> 2721 * <p>Conversely, if the crop region is set to a 16:9, then 4:3 2722 * outputs will crop horizontally (pillarbox), and 16:9 2723 * streams will match exactly. These additional crops will 2724 * be centered within the crop region.</p> 2725 * <p>The width and height of the crop region cannot 2726 * be set to be smaller than 2727 * <code>floor( activeArraySize.width / ACAMERA_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM )</code> and 2728 * <code>floor( activeArraySize.height / ACAMERA_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM )</code>, respectively.</p> 2729 * <p>The camera device may adjust the crop region to account 2730 * for rounding and other hardware requirements; the final 2731 * crop region used will be included in the output capture 2732 * result.</p> 2733 * 2734 * @see ACAMERA_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM 2735 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 2736 */ 2737 ACAMERA_SCALER_CROP_REGION = // int32[4] 2738 ACAMERA_SCALER_START, 2739 /** 2740 * <p>The maximum ratio between both active area width 2741 * and crop region width, and active area height and 2742 * crop region height, for ACAMERA_SCALER_CROP_REGION.</p> 2743 * 2744 * @see ACAMERA_SCALER_CROP_REGION 2745 * 2746 * <p>This tag may appear in:</p> 2747 * <ul> 2748 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2749 * </ul> 2750 * 2751 * <p>This represents the maximum amount of zooming possible by 2752 * the camera device, or equivalently, the minimum cropping 2753 * window size.</p> 2754 * <p>Crop regions that have a width or height that is smaller 2755 * than this ratio allows will be rounded up to the minimum 2756 * allowed size by the camera device.</p> 2757 */ 2758 ACAMERA_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM = // float 2759 ACAMERA_SCALER_START + 4, 2760 /** 2761 * <p>The available stream configurations that this 2762 * camera device supports 2763 * (i.e. format, width, height, output/input stream).</p> 2764 * 2765 * <p>This tag may appear in:</p> 2766 * <ul> 2767 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2768 * </ul> 2769 * 2770 * <p>The configurations are listed as <code>(format, width, height, input?)</code> 2771 * tuples.</p> 2772 * <p>For a given use case, the actual maximum supported resolution 2773 * may be lower than what is listed here, depending on the destination 2774 * Surface for the image data. For example, for recording video, 2775 * the video encoder chosen may have a maximum size limit (e.g. 1080p) 2776 * smaller than what the camera (e.g. maximum resolution is 3264x2448) 2777 * can provide.</p> 2778 * <p>Please reference the documentation for the image data destination to 2779 * check if it limits the maximum size for image data.</p> 2780 * <p>Not all output formats may be supported in a configuration with 2781 * an input stream of a particular format. For more details, see 2782 * android.scaler.availableInputOutputFormatsMap.</p> 2783 * <p>The following table describes the minimum required output stream 2784 * configurations based on the hardware level 2785 * (ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL):</p> 2786 * <p>Format | Size | Hardware Level | Notes 2787 * :-------------:|:--------------------------------------------:|:--------------:|:--------------: 2788 * JPEG | ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE | Any | 2789 * JPEG | 1920x1080 (1080p) | Any | if 1080p <= activeArraySize 2790 * JPEG | 1280x720 (720) | Any | if 720p <= activeArraySize 2791 * JPEG | 640x480 (480p) | Any | if 480p <= activeArraySize 2792 * JPEG | 320x240 (240p) | Any | if 240p <= activeArraySize 2793 * YUV_420_888 | all output sizes available for JPEG | FULL | 2794 * YUV_420_888 | all output sizes available for JPEG, up to the maximum video size | LIMITED | 2795 * IMPLEMENTATION_DEFINED | same as YUV_420_888 | Any |</p> 2796 * <p>Refer to ACAMERA_REQUEST_AVAILABLE_CAPABILITIES for additional 2797 * mandatory stream configurations on a per-capability basis.</p> 2798 * 2799 * @see ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL 2800 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 2801 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 2802 */ 2803 ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS = // int32[n*4] (enum) 2804 ACAMERA_SCALER_START + 10, 2805 /** 2806 * <p>This lists the minimum frame duration for each 2807 * format/size combination.</p> 2808 * 2809 * <p>This tag may appear in:</p> 2810 * <ul> 2811 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2812 * </ul> 2813 * 2814 * <p>This should correspond to the frame duration when only that 2815 * stream is active, with all processing (typically in android.*.mode) 2816 * set to either OFF or FAST.</p> 2817 * <p>When multiple streams are used in a request, the minimum frame 2818 * duration will be max(individual stream min durations).</p> 2819 * <p>The minimum frame duration of a stream (of a particular format, size) 2820 * is the same regardless of whether the stream is input or output.</p> 2821 * <p>See ACAMERA_SENSOR_FRAME_DURATION and 2822 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS for more details about 2823 * calculating the max frame rate.</p> 2824 * 2825 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS 2826 * @see ACAMERA_SENSOR_FRAME_DURATION 2827 */ 2828 ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS = // int64[4*n] 2829 ACAMERA_SCALER_START + 11, 2830 /** 2831 * <p>This lists the maximum stall duration for each 2832 * output format/size combination.</p> 2833 * 2834 * <p>This tag may appear in:</p> 2835 * <ul> 2836 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2837 * </ul> 2838 * 2839 * <p>A stall duration is how much extra time would get added 2840 * to the normal minimum frame duration for a repeating request 2841 * that has streams with non-zero stall.</p> 2842 * <p>For example, consider JPEG captures which have the following 2843 * characteristics:</p> 2844 * <ul> 2845 * <li>JPEG streams act like processed YUV streams in requests for which 2846 * they are not included; in requests in which they are directly 2847 * referenced, they act as JPEG streams. This is because supporting a 2848 * JPEG stream requires the underlying YUV data to always be ready for 2849 * use by a JPEG encoder, but the encoder will only be used (and impact 2850 * frame duration) on requests that actually reference a JPEG stream.</li> 2851 * <li>The JPEG processor can run concurrently to the rest of the camera 2852 * pipeline, but cannot process more than 1 capture at a time.</li> 2853 * </ul> 2854 * <p>In other words, using a repeating YUV request would result 2855 * in a steady frame rate (let's say it's 30 FPS). If a single 2856 * JPEG request is submitted periodically, the frame rate will stay 2857 * at 30 FPS (as long as we wait for the previous JPEG to return each 2858 * time). If we try to submit a repeating YUV + JPEG request, then 2859 * the frame rate will drop from 30 FPS.</p> 2860 * <p>In general, submitting a new request with a non-0 stall time 2861 * stream will <em>not</em> cause a frame rate drop unless there are still 2862 * outstanding buffers for that stream from previous requests.</p> 2863 * <p>Submitting a repeating request with streams (call this <code>S</code>) 2864 * is the same as setting the minimum frame duration from 2865 * the normal minimum frame duration corresponding to <code>S</code>, added with 2866 * the maximum stall duration for <code>S</code>.</p> 2867 * <p>If interleaving requests with and without a stall duration, 2868 * a request will stall by the maximum of the remaining times 2869 * for each can-stall stream with outstanding buffers.</p> 2870 * <p>This means that a stalling request will not have an exposure start 2871 * until the stall has completed.</p> 2872 * <p>This should correspond to the stall duration when only that stream is 2873 * active, with all processing (typically in android.*.mode) set to FAST 2874 * or OFF. Setting any of the processing modes to HIGH_QUALITY 2875 * effectively results in an indeterminate stall duration for all 2876 * streams in a request (the regular stall calculation rules are 2877 * ignored).</p> 2878 * <p>The following formats may always have a stall duration:</p> 2879 * <ul> 2880 * <li>{@link AIMAGE_FORMAT_JPEG}</li> 2881 * <li>{@link AIMAGE_FORMAT_RAW16}</li> 2882 * </ul> 2883 * <p>The following formats will never have a stall duration:</p> 2884 * <ul> 2885 * <li>{@link AIMAGE_FORMAT_YUV_420_888}</li> 2886 * <li>{@link AIMAGE_FORMAT_RAW10}</li> 2887 * </ul> 2888 * <p>All other formats may or may not have an allowed stall duration on 2889 * a per-capability basis; refer to ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 2890 * for more details.</p> 2891 * <p>See ACAMERA_SENSOR_FRAME_DURATION for more information about 2892 * calculating the max frame rate (absent stalls).</p> 2893 * 2894 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 2895 * @see ACAMERA_SENSOR_FRAME_DURATION 2896 */ 2897 ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS = // int64[4*n] 2898 ACAMERA_SCALER_START + 12, 2899 /** 2900 * <p>The crop type that this camera device supports.</p> 2901 * 2902 * <p>This tag may appear in:</p> 2903 * <ul> 2904 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2905 * </ul> 2906 * 2907 * <p>When passing a non-centered crop region (ACAMERA_SCALER_CROP_REGION) to a camera 2908 * device that only supports CENTER_ONLY cropping, the camera device will move the 2909 * crop region to the center of the sensor active array (ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE) 2910 * and keep the crop region width and height unchanged. The camera device will return the 2911 * final used crop region in metadata result ACAMERA_SCALER_CROP_REGION.</p> 2912 * <p>Camera devices that support FREEFORM cropping will support any crop region that 2913 * is inside of the active array. The camera device will apply the same crop region and 2914 * return the final used crop region in capture result metadata ACAMERA_SCALER_CROP_REGION.</p> 2915 * <p>LEGACY capability devices will only support CENTER_ONLY cropping.</p> 2916 * 2917 * @see ACAMERA_SCALER_CROP_REGION 2918 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 2919 */ 2920 ACAMERA_SCALER_CROPPING_TYPE = // byte (enum) 2921 ACAMERA_SCALER_START + 13, 2922 ACAMERA_SCALER_END, 2923 2924 /** 2925 * <p>Duration each pixel is exposed to 2926 * light.</p> 2927 * 2928 * <p>This tag may appear in:</p> 2929 * <ul> 2930 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2931 * <li>ACaptureRequest</li> 2932 * </ul> 2933 * 2934 * <p>If the sensor can't expose this exact duration, it will shorten the 2935 * duration exposed to the nearest possible value (rather than expose longer). 2936 * The final exposure time used will be available in the output capture result.</p> 2937 * <p>This control is only effective if ACAMERA_CONTROL_AE_MODE or ACAMERA_CONTROL_MODE is set to 2938 * OFF; otherwise the auto-exposure algorithm will override this value.</p> 2939 * 2940 * @see ACAMERA_CONTROL_AE_MODE 2941 * @see ACAMERA_CONTROL_MODE 2942 */ 2943 ACAMERA_SENSOR_EXPOSURE_TIME = // int64 2944 ACAMERA_SENSOR_START, 2945 /** 2946 * <p>Duration from start of frame exposure to 2947 * start of next frame exposure.</p> 2948 * 2949 * <p>This tag may appear in:</p> 2950 * <ul> 2951 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2952 * <li>ACaptureRequest</li> 2953 * </ul> 2954 * 2955 * <p>The maximum frame rate that can be supported by a camera subsystem is 2956 * a function of many factors:</p> 2957 * <ul> 2958 * <li>Requested resolutions of output image streams</li> 2959 * <li>Availability of binning / skipping modes on the imager</li> 2960 * <li>The bandwidth of the imager interface</li> 2961 * <li>The bandwidth of the various ISP processing blocks</li> 2962 * </ul> 2963 * <p>Since these factors can vary greatly between different ISPs and 2964 * sensors, the camera abstraction tries to represent the bandwidth 2965 * restrictions with as simple a model as possible.</p> 2966 * <p>The model presented has the following characteristics:</p> 2967 * <ul> 2968 * <li>The image sensor is always configured to output the smallest 2969 * resolution possible given the application's requested output stream 2970 * sizes. The smallest resolution is defined as being at least as large 2971 * as the largest requested output stream size; the camera pipeline must 2972 * never digitally upsample sensor data when the crop region covers the 2973 * whole sensor. In general, this means that if only small output stream 2974 * resolutions are configured, the sensor can provide a higher frame 2975 * rate.</li> 2976 * <li>Since any request may use any or all the currently configured 2977 * output streams, the sensor and ISP must be configured to support 2978 * scaling a single capture to all the streams at the same time. This 2979 * means the camera pipeline must be ready to produce the largest 2980 * requested output size without any delay. Therefore, the overall 2981 * frame rate of a given configured stream set is governed only by the 2982 * largest requested stream resolution.</li> 2983 * <li>Using more than one output stream in a request does not affect the 2984 * frame duration.</li> 2985 * <li>Certain format-streams may need to do additional background processing 2986 * before data is consumed/produced by that stream. These processors 2987 * can run concurrently to the rest of the camera pipeline, but 2988 * cannot process more than 1 capture at a time.</li> 2989 * </ul> 2990 * <p>The necessary information for the application, given the model above, 2991 * is provided via 2992 * {@link ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS}. 2993 * These are used to determine the maximum frame rate / minimum frame 2994 * duration that is possible for a given stream configuration.</p> 2995 * <p>Specifically, the application can use the following rules to 2996 * determine the minimum frame duration it can request from the camera 2997 * device:</p> 2998 * <ol> 2999 * <li>Let the set of currently configured input/output streams 3000 * be called <code>S</code>.</li> 3001 * <li>Find the minimum frame durations for each stream in <code>S</code>, by looking 3002 * it up in {@link ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS} 3003 * (with its respective size/format). Let this set of frame durations be 3004 * called <code>F</code>.</li> 3005 * <li>For any given request <code>R</code>, the minimum frame duration allowed 3006 * for <code>R</code> is the maximum out of all values in <code>F</code>. Let the streams 3007 * used in <code>R</code> be called <code>S_r</code>.</li> 3008 * </ol> 3009 * <p>If none of the streams in <code>S_r</code> have a stall time (listed in {@link 3010 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS} 3011 * using its respective size/format), then the frame duration in <code>F</code> 3012 * determines the steady state frame rate that the application will get 3013 * if it uses <code>R</code> as a repeating request. Let this special kind of 3014 * request be called <code>Rsimple</code>.</p> 3015 * <p>A repeating request <code>Rsimple</code> can be <em>occasionally</em> interleaved 3016 * by a single capture of a new request <code>Rstall</code> (which has at least 3017 * one in-use stream with a non-0 stall time) and if <code>Rstall</code> has the 3018 * same minimum frame duration this will not cause a frame rate loss 3019 * if all buffers from the previous <code>Rstall</code> have already been 3020 * delivered.</p> 3021 * <p>For more details about stalling, see 3022 * {@link ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS}.</p> 3023 * <p>This control is only effective if ACAMERA_CONTROL_AE_MODE or ACAMERA_CONTROL_MODE is set to 3024 * OFF; otherwise the auto-exposure algorithm will override this value.</p> 3025 * 3026 * @see ACAMERA_CONTROL_AE_MODE 3027 * @see ACAMERA_CONTROL_MODE 3028 */ 3029 ACAMERA_SENSOR_FRAME_DURATION = // int64 3030 ACAMERA_SENSOR_START + 1, 3031 /** 3032 * <p>The amount of gain applied to sensor data 3033 * before processing.</p> 3034 * 3035 * <p>This tag may appear in:</p> 3036 * <ul> 3037 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3038 * <li>ACaptureRequest</li> 3039 * </ul> 3040 * 3041 * <p>The sensitivity is the standard ISO sensitivity value, 3042 * as defined in ISO 12232:2006.</p> 3043 * <p>The sensitivity must be within ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE, and 3044 * if if it less than ACAMERA_SENSOR_MAX_ANALOG_SENSITIVITY, the camera device 3045 * is guaranteed to use only analog amplification for applying the gain.</p> 3046 * <p>If the camera device cannot apply the exact sensitivity 3047 * requested, it will reduce the gain to the nearest supported 3048 * value. The final sensitivity used will be available in the 3049 * output capture result.</p> 3050 * <p>This control is only effective if ACAMERA_CONTROL_AE_MODE or ACAMERA_CONTROL_MODE is set to 3051 * OFF; otherwise the auto-exposure algorithm will override this value.</p> 3052 * 3053 * @see ACAMERA_CONTROL_AE_MODE 3054 * @see ACAMERA_CONTROL_MODE 3055 * @see ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE 3056 * @see ACAMERA_SENSOR_MAX_ANALOG_SENSITIVITY 3057 */ 3058 ACAMERA_SENSOR_SENSITIVITY = // int32 3059 ACAMERA_SENSOR_START + 2, 3060 /** 3061 * <p>The standard reference illuminant used as the scene light source when 3062 * calculating the ACAMERA_SENSOR_COLOR_TRANSFORM1, 3063 * ACAMERA_SENSOR_CALIBRATION_TRANSFORM1, and 3064 * ACAMERA_SENSOR_FORWARD_MATRIX1 matrices.</p> 3065 * 3066 * @see ACAMERA_SENSOR_CALIBRATION_TRANSFORM1 3067 * @see ACAMERA_SENSOR_COLOR_TRANSFORM1 3068 * @see ACAMERA_SENSOR_FORWARD_MATRIX1 3069 * 3070 * <p>This tag may appear in:</p> 3071 * <ul> 3072 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3073 * </ul> 3074 * 3075 * <p>The values in this key correspond to the values defined for the 3076 * EXIF LightSource tag. These illuminants are standard light sources 3077 * that are often used calibrating camera devices.</p> 3078 * <p>If this key is present, then ACAMERA_SENSOR_COLOR_TRANSFORM1, 3079 * ACAMERA_SENSOR_CALIBRATION_TRANSFORM1, and 3080 * ACAMERA_SENSOR_FORWARD_MATRIX1 will also be present.</p> 3081 * <p>Some devices may choose to provide a second set of calibration 3082 * information for improved quality, including 3083 * ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 and its corresponding matrices.</p> 3084 * 3085 * @see ACAMERA_SENSOR_CALIBRATION_TRANSFORM1 3086 * @see ACAMERA_SENSOR_COLOR_TRANSFORM1 3087 * @see ACAMERA_SENSOR_FORWARD_MATRIX1 3088 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 3089 */ 3090 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 = // byte (enum) 3091 ACAMERA_SENSOR_START + 3, 3092 /** 3093 * <p>The standard reference illuminant used as the scene light source when 3094 * calculating the ACAMERA_SENSOR_COLOR_TRANSFORM2, 3095 * ACAMERA_SENSOR_CALIBRATION_TRANSFORM2, and 3096 * ACAMERA_SENSOR_FORWARD_MATRIX2 matrices.</p> 3097 * 3098 * @see ACAMERA_SENSOR_CALIBRATION_TRANSFORM2 3099 * @see ACAMERA_SENSOR_COLOR_TRANSFORM2 3100 * @see ACAMERA_SENSOR_FORWARD_MATRIX2 3101 * 3102 * <p>This tag may appear in:</p> 3103 * <ul> 3104 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3105 * </ul> 3106 * 3107 * <p>See ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 for more details.</p> 3108 * <p>If this key is present, then ACAMERA_SENSOR_COLOR_TRANSFORM2, 3109 * ACAMERA_SENSOR_CALIBRATION_TRANSFORM2, and 3110 * ACAMERA_SENSOR_FORWARD_MATRIX2 will also be present.</p> 3111 * 3112 * @see ACAMERA_SENSOR_CALIBRATION_TRANSFORM2 3113 * @see ACAMERA_SENSOR_COLOR_TRANSFORM2 3114 * @see ACAMERA_SENSOR_FORWARD_MATRIX2 3115 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 3116 */ 3117 ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 = // byte 3118 ACAMERA_SENSOR_START + 4, 3119 /** 3120 * <p>A per-device calibration transform matrix that maps from the 3121 * reference sensor colorspace to the actual device sensor colorspace.</p> 3122 * 3123 * <p>This tag may appear in:</p> 3124 * <ul> 3125 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3126 * </ul> 3127 * 3128 * <p>This matrix is used to correct for per-device variations in the 3129 * sensor colorspace, and is used for processing raw buffer data.</p> 3130 * <p>The matrix is expressed as a 3x3 matrix in row-major-order, and 3131 * contains a per-device calibration transform that maps colors 3132 * from reference sensor color space (i.e. the "golden module" 3133 * colorspace) into this camera device's native sensor color 3134 * space under the first reference illuminant 3135 * (ACAMERA_SENSOR_REFERENCE_ILLUMINANT1).</p> 3136 * 3137 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 3138 */ 3139 ACAMERA_SENSOR_CALIBRATION_TRANSFORM1 = // rational[3*3] 3140 ACAMERA_SENSOR_START + 5, 3141 /** 3142 * <p>A per-device calibration transform matrix that maps from the 3143 * reference sensor colorspace to the actual device sensor colorspace 3144 * (this is the colorspace of the raw buffer data).</p> 3145 * 3146 * <p>This tag may appear in:</p> 3147 * <ul> 3148 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3149 * </ul> 3150 * 3151 * <p>This matrix is used to correct for per-device variations in the 3152 * sensor colorspace, and is used for processing raw buffer data.</p> 3153 * <p>The matrix is expressed as a 3x3 matrix in row-major-order, and 3154 * contains a per-device calibration transform that maps colors 3155 * from reference sensor color space (i.e. the "golden module" 3156 * colorspace) into this camera device's native sensor color 3157 * space under the second reference illuminant 3158 * (ACAMERA_SENSOR_REFERENCE_ILLUMINANT2).</p> 3159 * <p>This matrix will only be present if the second reference 3160 * illuminant is present.</p> 3161 * 3162 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 3163 */ 3164 ACAMERA_SENSOR_CALIBRATION_TRANSFORM2 = // rational[3*3] 3165 ACAMERA_SENSOR_START + 6, 3166 /** 3167 * <p>A matrix that transforms color values from CIE XYZ color space to 3168 * reference sensor color space.</p> 3169 * 3170 * <p>This tag may appear in:</p> 3171 * <ul> 3172 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3173 * </ul> 3174 * 3175 * <p>This matrix is used to convert from the standard CIE XYZ color 3176 * space to the reference sensor colorspace, and is used when processing 3177 * raw buffer data.</p> 3178 * <p>The matrix is expressed as a 3x3 matrix in row-major-order, and 3179 * contains a color transform matrix that maps colors from the CIE 3180 * XYZ color space to the reference sensor color space (i.e. the 3181 * "golden module" colorspace) under the first reference illuminant 3182 * (ACAMERA_SENSOR_REFERENCE_ILLUMINANT1).</p> 3183 * <p>The white points chosen in both the reference sensor color space 3184 * and the CIE XYZ colorspace when calculating this transform will 3185 * match the standard white point for the first reference illuminant 3186 * (i.e. no chromatic adaptation will be applied by this transform).</p> 3187 * 3188 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 3189 */ 3190 ACAMERA_SENSOR_COLOR_TRANSFORM1 = // rational[3*3] 3191 ACAMERA_SENSOR_START + 7, 3192 /** 3193 * <p>A matrix that transforms color values from CIE XYZ color space to 3194 * reference sensor color space.</p> 3195 * 3196 * <p>This tag may appear in:</p> 3197 * <ul> 3198 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3199 * </ul> 3200 * 3201 * <p>This matrix is used to convert from the standard CIE XYZ color 3202 * space to the reference sensor colorspace, and is used when processing 3203 * raw buffer data.</p> 3204 * <p>The matrix is expressed as a 3x3 matrix in row-major-order, and 3205 * contains a color transform matrix that maps colors from the CIE 3206 * XYZ color space to the reference sensor color space (i.e. the 3207 * "golden module" colorspace) under the second reference illuminant 3208 * (ACAMERA_SENSOR_REFERENCE_ILLUMINANT2).</p> 3209 * <p>The white points chosen in both the reference sensor color space 3210 * and the CIE XYZ colorspace when calculating this transform will 3211 * match the standard white point for the second reference illuminant 3212 * (i.e. no chromatic adaptation will be applied by this transform).</p> 3213 * <p>This matrix will only be present if the second reference 3214 * illuminant is present.</p> 3215 * 3216 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 3217 */ 3218 ACAMERA_SENSOR_COLOR_TRANSFORM2 = // rational[3*3] 3219 ACAMERA_SENSOR_START + 8, 3220 /** 3221 * <p>A matrix that transforms white balanced camera colors from the reference 3222 * sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.</p> 3223 * 3224 * <p>This tag may appear in:</p> 3225 * <ul> 3226 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3227 * </ul> 3228 * 3229 * <p>This matrix is used to convert to the standard CIE XYZ colorspace, and 3230 * is used when processing raw buffer data.</p> 3231 * <p>This matrix is expressed as a 3x3 matrix in row-major-order, and contains 3232 * a color transform matrix that maps white balanced colors from the 3233 * reference sensor color space to the CIE XYZ color space with a D50 white 3234 * point.</p> 3235 * <p>Under the first reference illuminant (ACAMERA_SENSOR_REFERENCE_ILLUMINANT1) 3236 * this matrix is chosen so that the standard white point for this reference 3237 * illuminant in the reference sensor colorspace is mapped to D50 in the 3238 * CIE XYZ colorspace.</p> 3239 * 3240 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 3241 */ 3242 ACAMERA_SENSOR_FORWARD_MATRIX1 = // rational[3*3] 3243 ACAMERA_SENSOR_START + 9, 3244 /** 3245 * <p>A matrix that transforms white balanced camera colors from the reference 3246 * sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.</p> 3247 * 3248 * <p>This tag may appear in:</p> 3249 * <ul> 3250 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3251 * </ul> 3252 * 3253 * <p>This matrix is used to convert to the standard CIE XYZ colorspace, and 3254 * is used when processing raw buffer data.</p> 3255 * <p>This matrix is expressed as a 3x3 matrix in row-major-order, and contains 3256 * a color transform matrix that maps white balanced colors from the 3257 * reference sensor color space to the CIE XYZ color space with a D50 white 3258 * point.</p> 3259 * <p>Under the second reference illuminant (ACAMERA_SENSOR_REFERENCE_ILLUMINANT2) 3260 * this matrix is chosen so that the standard white point for this reference 3261 * illuminant in the reference sensor colorspace is mapped to D50 in the 3262 * CIE XYZ colorspace.</p> 3263 * <p>This matrix will only be present if the second reference 3264 * illuminant is present.</p> 3265 * 3266 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 3267 */ 3268 ACAMERA_SENSOR_FORWARD_MATRIX2 = // rational[3*3] 3269 ACAMERA_SENSOR_START + 10, 3270 /** 3271 * <p>A fixed black level offset for each of the color filter arrangement 3272 * (CFA) mosaic channels.</p> 3273 * 3274 * <p>This tag may appear in:</p> 3275 * <ul> 3276 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3277 * </ul> 3278 * 3279 * <p>This key specifies the zero light value for each of the CFA mosaic 3280 * channels in the camera sensor. The maximal value output by the 3281 * sensor is represented by the value in ACAMERA_SENSOR_INFO_WHITE_LEVEL.</p> 3282 * <p>The values are given in the same order as channels listed for the CFA 3283 * layout key (see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT), i.e. the 3284 * nth value given corresponds to the black level offset for the nth 3285 * color channel listed in the CFA.</p> 3286 * <p>The black level values of captured images may vary for different 3287 * capture settings (e.g., ACAMERA_SENSOR_SENSITIVITY). This key 3288 * represents a coarse approximation for such case. It is recommended to 3289 * use ACAMERA_SENSOR_DYNAMIC_BLACK_LEVEL or use pixels from 3290 * ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS directly for captures when 3291 * supported by the camera device, which provides more accurate black 3292 * level values. For raw capture in particular, it is recommended to use 3293 * pixels from ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS to calculate black 3294 * level values for each frame.</p> 3295 * 3296 * @see ACAMERA_SENSOR_DYNAMIC_BLACK_LEVEL 3297 * @see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT 3298 * @see ACAMERA_SENSOR_INFO_WHITE_LEVEL 3299 * @see ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS 3300 * @see ACAMERA_SENSOR_SENSITIVITY 3301 */ 3302 ACAMERA_SENSOR_BLACK_LEVEL_PATTERN = // int32[4] 3303 ACAMERA_SENSOR_START + 12, 3304 /** 3305 * <p>Maximum sensitivity that is implemented 3306 * purely through analog gain.</p> 3307 * 3308 * <p>This tag may appear in:</p> 3309 * <ul> 3310 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3311 * </ul> 3312 * 3313 * <p>For ACAMERA_SENSOR_SENSITIVITY values less than or 3314 * equal to this, all applied gain must be analog. For 3315 * values above this, the gain applied can be a mix of analog and 3316 * digital.</p> 3317 * 3318 * @see ACAMERA_SENSOR_SENSITIVITY 3319 */ 3320 ACAMERA_SENSOR_MAX_ANALOG_SENSITIVITY = // int32 3321 ACAMERA_SENSOR_START + 13, 3322 /** 3323 * <p>Clockwise angle through which the output image needs to be rotated to be 3324 * upright on the device screen in its native orientation.</p> 3325 * 3326 * <p>This tag may appear in:</p> 3327 * <ul> 3328 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3329 * </ul> 3330 * 3331 * <p>Also defines the direction of rolling shutter readout, which is from top to bottom in 3332 * the sensor's coordinate system.</p> 3333 */ 3334 ACAMERA_SENSOR_ORIENTATION = // int32 3335 ACAMERA_SENSOR_START + 14, 3336 /** 3337 * <p>Time at start of exposure of first 3338 * row of the image sensor active array, in nanoseconds.</p> 3339 * 3340 * <p>This tag may appear in:</p> 3341 * <ul> 3342 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3343 * </ul> 3344 * 3345 * <p>The timestamps are also included in all image 3346 * buffers produced for the same capture, and will be identical 3347 * on all the outputs.</p> 3348 * <p>When ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE <code>==</code> UNKNOWN, 3349 * the timestamps measure time since an unspecified starting point, 3350 * and are monotonically increasing. They can be compared with the 3351 * timestamps for other captures from the same camera device, but are 3352 * not guaranteed to be comparable to any other time source.</p> 3353 * <p>When ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE <code>==</code> REALTIME, the 3354 * timestamps measure time in the same timebase as 3355 * <a href="https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtimeNanos">elapsedRealtimeNanos</a> 3356 * (or CLOCK_BOOTTIME), and they can 3357 * be compared to other timestamps from other subsystems that 3358 * are using that base.</p> 3359 * <p>For reprocessing, the timestamp will match the start of exposure of 3360 * the input image, i.e. {@link CaptureResult#SENSOR_TIMESTAMP the 3361 * timestamp} in the TotalCaptureResult that was used to create the 3362 * reprocess capture request.</p> 3363 * 3364 * @see ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE 3365 */ 3366 ACAMERA_SENSOR_TIMESTAMP = // int64 3367 ACAMERA_SENSOR_START + 16, 3368 /** 3369 * <p>The estimated camera neutral color in the native sensor colorspace at 3370 * the time of capture.</p> 3371 * 3372 * <p>This tag may appear in:</p> 3373 * <ul> 3374 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3375 * </ul> 3376 * 3377 * <p>This value gives the neutral color point encoded as an RGB value in the 3378 * native sensor color space. The neutral color point indicates the 3379 * currently estimated white point of the scene illumination. It can be 3380 * used to interpolate between the provided color transforms when 3381 * processing raw sensor data.</p> 3382 * <p>The order of the values is R, G, B; where R is in the lowest index.</p> 3383 */ 3384 ACAMERA_SENSOR_NEUTRAL_COLOR_POINT = // rational[3] 3385 ACAMERA_SENSOR_START + 18, 3386 /** 3387 * <p>Noise model coefficients for each CFA mosaic channel.</p> 3388 * 3389 * <p>This tag may appear in:</p> 3390 * <ul> 3391 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3392 * </ul> 3393 * 3394 * <p>This key contains two noise model coefficients for each CFA channel 3395 * corresponding to the sensor amplification (S) and sensor readout 3396 * noise (O). These are given as pairs of coefficients for each channel 3397 * in the same order as channels listed for the CFA layout key 3398 * (see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT). This is 3399 * represented as an array of Pair<Double, Double>, where 3400 * the first member of the Pair at index n is the S coefficient and the 3401 * second member is the O coefficient for the nth color channel in the CFA.</p> 3402 * <p>These coefficients are used in a two parameter noise model to describe 3403 * the amount of noise present in the image for each CFA channel. The 3404 * noise model used here is:</p> 3405 * <p>N(x) = sqrt(Sx + O)</p> 3406 * <p>Where x represents the recorded signal of a CFA channel normalized to 3407 * the range [0, 1], and S and O are the noise model coeffiecients for 3408 * that channel.</p> 3409 * <p>A more detailed description of the noise model can be found in the 3410 * Adobe DNG specification for the NoiseProfile tag.</p> 3411 * 3412 * @see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT 3413 */ 3414 ACAMERA_SENSOR_NOISE_PROFILE = // double[2*CFA Channels] 3415 ACAMERA_SENSOR_START + 19, 3416 /** 3417 * <p>The worst-case divergence between Bayer green channels.</p> 3418 * 3419 * <p>This tag may appear in:</p> 3420 * <ul> 3421 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3422 * </ul> 3423 * 3424 * <p>This value is an estimate of the worst case split between the 3425 * Bayer green channels in the red and blue rows in the sensor color 3426 * filter array.</p> 3427 * <p>The green split is calculated as follows:</p> 3428 * <ol> 3429 * <li>A 5x5 pixel (or larger) window W within the active sensor array is 3430 * chosen. The term 'pixel' here is taken to mean a group of 4 Bayer 3431 * mosaic channels (R, Gr, Gb, B). The location and size of the window 3432 * chosen is implementation defined, and should be chosen to provide a 3433 * green split estimate that is both representative of the entire image 3434 * for this camera sensor, and can be calculated quickly.</li> 3435 * <li>The arithmetic mean of the green channels from the red 3436 * rows (mean_Gr) within W is computed.</li> 3437 * <li>The arithmetic mean of the green channels from the blue 3438 * rows (mean_Gb) within W is computed.</li> 3439 * <li>The maximum ratio R of the two means is computed as follows: 3440 * <code>R = max((mean_Gr + 1)/(mean_Gb + 1), (mean_Gb + 1)/(mean_Gr + 1))</code></li> 3441 * </ol> 3442 * <p>The ratio R is the green split divergence reported for this property, 3443 * which represents how much the green channels differ in the mosaic 3444 * pattern. This value is typically used to determine the treatment of 3445 * the green mosaic channels when demosaicing.</p> 3446 * <p>The green split value can be roughly interpreted as follows:</p> 3447 * <ul> 3448 * <li>R < 1.03 is a negligible split (<3% divergence).</li> 3449 * <li>1.20 <= R >= 1.03 will require some software 3450 * correction to avoid demosaic errors (3-20% divergence).</li> 3451 * <li>R > 1.20 will require strong software correction to produce 3452 * a usuable image (>20% divergence).</li> 3453 * </ul> 3454 */ 3455 ACAMERA_SENSOR_GREEN_SPLIT = // float 3456 ACAMERA_SENSOR_START + 22, 3457 /** 3458 * <p>A pixel <code>[R, G_even, G_odd, B]</code> that supplies the test pattern 3459 * when ACAMERA_SENSOR_TEST_PATTERN_MODE is SOLID_COLOR.</p> 3460 * 3461 * @see ACAMERA_SENSOR_TEST_PATTERN_MODE 3462 * 3463 * <p>This tag may appear in:</p> 3464 * <ul> 3465 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3466 * <li>ACaptureRequest</li> 3467 * </ul> 3468 * 3469 * <p>Each color channel is treated as an unsigned 32-bit integer. 3470 * The camera device then uses the most significant X bits 3471 * that correspond to how many bits are in its Bayer raw sensor 3472 * output.</p> 3473 * <p>For example, a sensor with RAW10 Bayer output would use the 3474 * 10 most significant bits from each color channel.</p> 3475 */ 3476 ACAMERA_SENSOR_TEST_PATTERN_DATA = // int32[4] 3477 ACAMERA_SENSOR_START + 23, 3478 /** 3479 * <p>When enabled, the sensor sends a test pattern instead of 3480 * doing a real exposure from the camera.</p> 3481 * 3482 * <p>This tag may appear in:</p> 3483 * <ul> 3484 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3485 * <li>ACaptureRequest</li> 3486 * </ul> 3487 * 3488 * <p>When a test pattern is enabled, all manual sensor controls specified 3489 * by ACAMERA_SENSOR_* will be ignored. All other controls should 3490 * work as normal.</p> 3491 * <p>For example, if manual flash is enabled, flash firing should still 3492 * occur (and that the test pattern remain unmodified, since the flash 3493 * would not actually affect it).</p> 3494 * <p>Defaults to OFF.</p> 3495 */ 3496 ACAMERA_SENSOR_TEST_PATTERN_MODE = // int32 (enum) 3497 ACAMERA_SENSOR_START + 24, 3498 /** 3499 * <p>List of sensor test pattern modes for ACAMERA_SENSOR_TEST_PATTERN_MODE 3500 * supported by this camera device.</p> 3501 * 3502 * @see ACAMERA_SENSOR_TEST_PATTERN_MODE 3503 * 3504 * <p>This tag may appear in:</p> 3505 * <ul> 3506 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3507 * </ul> 3508 * 3509 * <p>Defaults to OFF, and always includes OFF if defined.</p> 3510 */ 3511 ACAMERA_SENSOR_AVAILABLE_TEST_PATTERN_MODES = // int32[n] 3512 ACAMERA_SENSOR_START + 25, 3513 /** 3514 * <p>Duration between the start of first row exposure 3515 * and the start of last row exposure.</p> 3516 * 3517 * <p>This tag may appear in:</p> 3518 * <ul> 3519 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3520 * </ul> 3521 * 3522 * <p>This is the exposure time skew between the first and last 3523 * row exposure start times. The first row and the last row are 3524 * the first and last rows inside of the 3525 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.</p> 3526 * <p>For typical camera sensors that use rolling shutters, this is also equivalent 3527 * to the frame readout time.</p> 3528 * 3529 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 3530 */ 3531 ACAMERA_SENSOR_ROLLING_SHUTTER_SKEW = // int64 3532 ACAMERA_SENSOR_START + 26, 3533 /** 3534 * <p>List of disjoint rectangles indicating the sensor 3535 * optically shielded black pixel regions.</p> 3536 * 3537 * <p>This tag may appear in:</p> 3538 * <ul> 3539 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3540 * </ul> 3541 * 3542 * <p>In most camera sensors, the active array is surrounded by some 3543 * optically shielded pixel areas. By blocking light, these pixels 3544 * provides a reliable black reference for black level compensation 3545 * in active array region.</p> 3546 * <p>The data representation is int[4], which maps to (left, top, width, height).</p> 3547 * <p>This key provides a list of disjoint rectangles specifying the 3548 * regions of optically shielded (with metal shield) black pixel 3549 * regions if the camera device is capable of reading out these black 3550 * pixels in the output raw images. In comparison to the fixed black 3551 * level values reported by ACAMERA_SENSOR_BLACK_LEVEL_PATTERN, this key 3552 * may provide a more accurate way for the application to calculate 3553 * black level of each captured raw images.</p> 3554 * <p>When this key is reported, the ACAMERA_SENSOR_DYNAMIC_BLACK_LEVEL and 3555 * ACAMERA_SENSOR_DYNAMIC_WHITE_LEVEL will also be reported.</p> 3556 * 3557 * @see ACAMERA_SENSOR_BLACK_LEVEL_PATTERN 3558 * @see ACAMERA_SENSOR_DYNAMIC_BLACK_LEVEL 3559 * @see ACAMERA_SENSOR_DYNAMIC_WHITE_LEVEL 3560 */ 3561 ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS = // int32[4*num_regions] 3562 ACAMERA_SENSOR_START + 27, 3563 /** 3564 * <p>A per-frame dynamic black level offset for each of the color filter 3565 * arrangement (CFA) mosaic channels.</p> 3566 * 3567 * <p>This tag may appear in:</p> 3568 * <ul> 3569 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3570 * </ul> 3571 * 3572 * <p>Camera sensor black levels may vary dramatically for different 3573 * capture settings (e.g. ACAMERA_SENSOR_SENSITIVITY). The fixed black 3574 * level reported by ACAMERA_SENSOR_BLACK_LEVEL_PATTERN may be too 3575 * inaccurate to represent the actual value on a per-frame basis. The 3576 * camera device internal pipeline relies on reliable black level values 3577 * to process the raw images appropriately. To get the best image 3578 * quality, the camera device may choose to estimate the per frame black 3579 * level values either based on optically shielded black regions 3580 * (ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS) or its internal model.</p> 3581 * <p>This key reports the camera device estimated per-frame zero light 3582 * value for each of the CFA mosaic channels in the camera sensor. The 3583 * ACAMERA_SENSOR_BLACK_LEVEL_PATTERN may only represent a coarse 3584 * approximation of the actual black level values. This value is the 3585 * black level used in camera device internal image processing pipeline 3586 * and generally more accurate than the fixed black level values. 3587 * However, since they are estimated values by the camera device, they 3588 * may not be as accurate as the black level values calculated from the 3589 * optical black pixels reported by ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS.</p> 3590 * <p>The values are given in the same order as channels listed for the CFA 3591 * layout key (see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT), i.e. the 3592 * nth value given corresponds to the black level offset for the nth 3593 * color channel listed in the CFA.</p> 3594 * <p>This key will be available if ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS is 3595 * available or the camera device advertises this key via 3596 * {@link ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS}.</p> 3597 * 3598 * @see ACAMERA_SENSOR_BLACK_LEVEL_PATTERN 3599 * @see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT 3600 * @see ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS 3601 * @see ACAMERA_SENSOR_SENSITIVITY 3602 */ 3603 ACAMERA_SENSOR_DYNAMIC_BLACK_LEVEL = // float[4] 3604 ACAMERA_SENSOR_START + 28, 3605 /** 3606 * <p>Maximum raw value output by sensor for this frame.</p> 3607 * 3608 * <p>This tag may appear in:</p> 3609 * <ul> 3610 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3611 * </ul> 3612 * 3613 * <p>Since the ACAMERA_SENSOR_BLACK_LEVEL_PATTERN may change for different 3614 * capture settings (e.g., ACAMERA_SENSOR_SENSITIVITY), the white 3615 * level will change accordingly. This key is similar to 3616 * ACAMERA_SENSOR_INFO_WHITE_LEVEL, but specifies the camera device 3617 * estimated white level for each frame.</p> 3618 * <p>This key will be available if ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS is 3619 * available or the camera device advertises this key via 3620 * {@link ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS}.</p> 3621 * 3622 * @see ACAMERA_SENSOR_BLACK_LEVEL_PATTERN 3623 * @see ACAMERA_SENSOR_INFO_WHITE_LEVEL 3624 * @see ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS 3625 * @see ACAMERA_SENSOR_SENSITIVITY 3626 */ 3627 ACAMERA_SENSOR_DYNAMIC_WHITE_LEVEL = // int32 3628 ACAMERA_SENSOR_START + 29, 3629 ACAMERA_SENSOR_END, 3630 3631 /** 3632 * <p>The area of the image sensor which corresponds to active pixels after any geometric 3633 * distortion correction has been applied.</p> 3634 * 3635 * <p>This tag may appear in:</p> 3636 * <ul> 3637 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3638 * </ul> 3639 * 3640 * <p>This is the rectangle representing the size of the active region of the sensor (i.e. 3641 * the region that actually receives light from the scene) after any geometric correction 3642 * has been applied, and should be treated as the maximum size in pixels of any of the 3643 * image output formats aside from the raw formats.</p> 3644 * <p>This rectangle is defined relative to the full pixel array; (0,0) is the top-left of 3645 * the full pixel array, and the size of the full pixel array is given by 3646 * ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE.</p> 3647 * <p>The data representation is int[4], which maps to (left, top, width, height).</p> 3648 * <p>The coordinate system for most other keys that list pixel coordinates, including 3649 * ACAMERA_SCALER_CROP_REGION, is defined relative to the active array rectangle given in 3650 * this field, with <code>(0, 0)</code> being the top-left of this rectangle.</p> 3651 * <p>The active array may be smaller than the full pixel array, since the full array may 3652 * include black calibration pixels or other inactive regions, and geometric correction 3653 * resulting in scaling or cropping may have been applied.</p> 3654 * 3655 * @see ACAMERA_SCALER_CROP_REGION 3656 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 3657 */ 3658 ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE = // int32[4] 3659 ACAMERA_SENSOR_INFO_START, 3660 /** 3661 * <p>Range of sensitivities for ACAMERA_SENSOR_SENSITIVITY supported by this 3662 * camera device.</p> 3663 * 3664 * @see ACAMERA_SENSOR_SENSITIVITY 3665 * 3666 * <p>This tag may appear in:</p> 3667 * <ul> 3668 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3669 * </ul> 3670 * 3671 * <p>The values are the standard ISO sensitivity values, 3672 * as defined in ISO 12232:2006.</p> 3673 */ 3674 ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE = // int32[2] 3675 ACAMERA_SENSOR_INFO_START + 1, 3676 /** 3677 * <p>The arrangement of color filters on sensor; 3678 * represents the colors in the top-left 2x2 section of 3679 * the sensor, in reading order.</p> 3680 * 3681 * <p>This tag may appear in:</p> 3682 * <ul> 3683 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3684 * </ul> 3685 * 3686 * <p>None</p> 3687 */ 3688 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT = // byte (enum) 3689 ACAMERA_SENSOR_INFO_START + 2, 3690 /** 3691 * <p>The range of image exposure times for ACAMERA_SENSOR_EXPOSURE_TIME supported 3692 * by this camera device.</p> 3693 * 3694 * @see ACAMERA_SENSOR_EXPOSURE_TIME 3695 * 3696 * <p>This tag may appear in:</p> 3697 * <ul> 3698 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3699 * </ul> 3700 * 3701 * <p>None</p> 3702 */ 3703 ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE = // int64[2] 3704 ACAMERA_SENSOR_INFO_START + 3, 3705 /** 3706 * <p>The maximum possible frame duration (minimum frame rate) for 3707 * ACAMERA_SENSOR_FRAME_DURATION that is supported this camera device.</p> 3708 * 3709 * @see ACAMERA_SENSOR_FRAME_DURATION 3710 * 3711 * <p>This tag may appear in:</p> 3712 * <ul> 3713 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3714 * </ul> 3715 * 3716 * <p>Attempting to use frame durations beyond the maximum will result in the frame 3717 * duration being clipped to the maximum. See that control for a full definition of frame 3718 * durations.</p> 3719 * <p>Refer to {@link 3720 * ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS} 3721 * for the minimum frame duration values.</p> 3722 */ 3723 ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION = // int64 3724 ACAMERA_SENSOR_INFO_START + 4, 3725 /** 3726 * <p>The physical dimensions of the full pixel 3727 * array.</p> 3728 * 3729 * <p>This tag may appear in:</p> 3730 * <ul> 3731 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3732 * </ul> 3733 * 3734 * <p>This is the physical size of the sensor pixel 3735 * array defined by ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE.</p> 3736 * 3737 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 3738 */ 3739 ACAMERA_SENSOR_INFO_PHYSICAL_SIZE = // float[2] 3740 ACAMERA_SENSOR_INFO_START + 5, 3741 /** 3742 * <p>Dimensions of the full pixel array, possibly 3743 * including black calibration pixels.</p> 3744 * 3745 * <p>This tag may appear in:</p> 3746 * <ul> 3747 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3748 * </ul> 3749 * 3750 * <p>The pixel count of the full pixel array of the image sensor, which covers 3751 * ACAMERA_SENSOR_INFO_PHYSICAL_SIZE area. This represents the full pixel dimensions of 3752 * the raw buffers produced by this sensor.</p> 3753 * <p>If a camera device supports raw sensor formats, either this or 3754 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE is the maximum dimensions for the raw 3755 * output formats listed in ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS (this depends on 3756 * whether or not the image sensor returns buffers containing pixels that are not 3757 * part of the active array region for blacklevel calibration or other purposes).</p> 3758 * <p>Some parts of the full pixel array may not receive light from the scene, 3759 * or be otherwise inactive. The ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE key 3760 * defines the rectangle of active pixels that will be included in processed image 3761 * formats.</p> 3762 * 3763 * @see ACAMERA_SENSOR_INFO_PHYSICAL_SIZE 3764 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 3765 */ 3766 ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE = // int32[2] 3767 ACAMERA_SENSOR_INFO_START + 6, 3768 /** 3769 * <p>Maximum raw value output by sensor.</p> 3770 * 3771 * <p>This tag may appear in:</p> 3772 * <ul> 3773 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3774 * </ul> 3775 * 3776 * <p>This specifies the fully-saturated encoding level for the raw 3777 * sample values from the sensor. This is typically caused by the 3778 * sensor becoming highly non-linear or clipping. The minimum for 3779 * each channel is specified by the offset in the 3780 * ACAMERA_SENSOR_BLACK_LEVEL_PATTERN key.</p> 3781 * <p>The white level is typically determined either by sensor bit depth 3782 * (8-14 bits is expected), or by the point where the sensor response 3783 * becomes too non-linear to be useful. The default value for this is 3784 * maximum representable value for a 16-bit raw sample (2^16 - 1).</p> 3785 * <p>The white level values of captured images may vary for different 3786 * capture settings (e.g., ACAMERA_SENSOR_SENSITIVITY). This key 3787 * represents a coarse approximation for such case. It is recommended 3788 * to use ACAMERA_SENSOR_DYNAMIC_WHITE_LEVEL for captures when supported 3789 * by the camera device, which provides more accurate white level values.</p> 3790 * 3791 * @see ACAMERA_SENSOR_BLACK_LEVEL_PATTERN 3792 * @see ACAMERA_SENSOR_DYNAMIC_WHITE_LEVEL 3793 * @see ACAMERA_SENSOR_SENSITIVITY 3794 */ 3795 ACAMERA_SENSOR_INFO_WHITE_LEVEL = // int32 3796 ACAMERA_SENSOR_INFO_START + 7, 3797 /** 3798 * <p>The time base source for sensor capture start timestamps.</p> 3799 * 3800 * <p>This tag may appear in:</p> 3801 * <ul> 3802 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3803 * </ul> 3804 * 3805 * <p>The timestamps provided for captures are always in nanoseconds and monotonic, but 3806 * may not based on a time source that can be compared to other system time sources.</p> 3807 * <p>This characteristic defines the source for the timestamps, and therefore whether they 3808 * can be compared against other system time sources/timestamps.</p> 3809 */ 3810 ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE = // byte (enum) 3811 ACAMERA_SENSOR_INFO_START + 8, 3812 /** 3813 * <p>Whether the RAW images output from this camera device are subject to 3814 * lens shading correction.</p> 3815 * 3816 * <p>This tag may appear in:</p> 3817 * <ul> 3818 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3819 * </ul> 3820 * 3821 * <p>If TRUE, all images produced by the camera device in the RAW image formats will 3822 * have lens shading correction already applied to it. If FALSE, the images will 3823 * not be adjusted for lens shading correction. 3824 * See android.request.maxNumOutputRaw for a list of RAW image formats.</p> 3825 * <p>This key will be <code>null</code> for all devices do not report this information. 3826 * Devices with RAW capability will always report this information in this key.</p> 3827 */ 3828 ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED = // byte (enum) 3829 ACAMERA_SENSOR_INFO_START + 9, 3830 /** 3831 * <p>The area of the image sensor which corresponds to active pixels prior to the 3832 * application of any geometric distortion correction.</p> 3833 * 3834 * <p>This tag may appear in:</p> 3835 * <ul> 3836 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3837 * </ul> 3838 * 3839 * <p>The data representation is int[4], which maps to (left, top, width, height).</p> 3840 * <p>This is the rectangle representing the size of the active region of the sensor (i.e. 3841 * the region that actually receives light from the scene) before any geometric correction 3842 * has been applied, and should be treated as the active region rectangle for any of the 3843 * raw formats. All metadata associated with raw processing (e.g. the lens shading 3844 * correction map, and radial distortion fields) treats the top, left of this rectangle as 3845 * the origin, (0,0).</p> 3846 * <p>The size of this region determines the maximum field of view and the maximum number of 3847 * pixels that an image from this sensor can contain, prior to the application of 3848 * geometric distortion correction. The effective maximum pixel dimensions of a 3849 * post-distortion-corrected image is given by the ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 3850 * field, and the effective maximum field of view for a post-distortion-corrected image 3851 * can be calculated by applying the geometric distortion correction fields to this 3852 * rectangle, and cropping to the rectangle given in ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.</p> 3853 * <p>E.g. to calculate position of a pixel, (x,y), in a processed YUV output image with the 3854 * dimensions in ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE given the position of a pixel, 3855 * (x', y'), in the raw pixel array with dimensions give in 3856 * ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE:</p> 3857 * <ol> 3858 * <li>Choose a pixel (x', y') within the active array region of the raw buffer given in 3859 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, otherwise this pixel is considered 3860 * to be outside of the FOV, and will not be shown in the processed output image.</li> 3861 * <li>Apply geometric distortion correction to get the post-distortion pixel coordinate, 3862 * (x_i, y_i). When applying geometric correction metadata, note that metadata for raw 3863 * buffers is defined relative to the top, left of the 3864 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE rectangle.</li> 3865 * <li>If the resulting corrected pixel coordinate is within the region given in 3866 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, then the position of this pixel in the 3867 * processed output image buffer is <code>(x_i - activeArray.left, y_i - activeArray.top)</code>, 3868 * when the top, left coordinate of that buffer is treated as (0, 0).</li> 3869 * </ol> 3870 * <p>Thus, for pixel x',y' = (25, 25) on a sensor where ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 3871 * is (100,100), ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE is (10, 10, 100, 100), 3872 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE is (20, 20, 80, 80), and the geometric distortion 3873 * correction doesn't change the pixel coordinate, the resulting pixel selected in 3874 * pixel coordinates would be x,y = (25, 25) relative to the top,left of the raw buffer 3875 * with dimensions given in ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE, and would be (5, 5) 3876 * relative to the top,left of post-processed YUV output buffer with dimensions given in 3877 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.</p> 3878 * <p>The currently supported fields that correct for geometric distortion are:</p> 3879 * <ol> 3880 * <li>ACAMERA_LENS_RADIAL_DISTORTION.</li> 3881 * </ol> 3882 * <p>If all of the geometric distortion fields are no-ops, this rectangle will be the same 3883 * as the post-distortion-corrected rectangle given in 3884 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.</p> 3885 * <p>This rectangle is defined relative to the full pixel array; (0,0) is the top-left of 3886 * the full pixel array, and the size of the full pixel array is given by 3887 * ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE.</p> 3888 * <p>The pre-correction active array may be smaller than the full pixel array, since the 3889 * full array may include black calibration pixels or other inactive regions.</p> 3890 * 3891 * @see ACAMERA_LENS_RADIAL_DISTORTION 3892 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 3893 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 3894 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 3895 */ 3896 ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE = // int32[4] 3897 ACAMERA_SENSOR_INFO_START + 10, 3898 ACAMERA_SENSOR_INFO_END, 3899 3900 /** 3901 * <p>Quality of lens shading correction applied 3902 * to the image data.</p> 3903 * 3904 * <p>This tag may appear in:</p> 3905 * <ul> 3906 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3907 * <li>ACaptureRequest</li> 3908 * </ul> 3909 * 3910 * <p>When set to OFF mode, no lens shading correction will be applied by the 3911 * camera device, and an identity lens shading map data will be provided 3912 * if <code>ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE == ON</code>. For example, for lens 3913 * shading map with size of <code>[ 4, 3 ]</code>, 3914 * the output android.statistics.lensShadingCorrectionMap for this case will be an identity 3915 * map shown below:</p> 3916 * <pre><code>[ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 3917 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 3918 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 3919 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 3920 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 3921 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] 3922 * </code></pre> 3923 * <p>When set to other modes, lens shading correction will be applied by the camera 3924 * device. Applications can request lens shading map data by setting 3925 * ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE to ON, and then the camera device will provide lens 3926 * shading map data in android.statistics.lensShadingCorrectionMap; the returned shading map 3927 * data will be the one applied by the camera device for this capture request.</p> 3928 * <p>The shading map data may depend on the auto-exposure (AE) and AWB statistics, therefore 3929 * the reliability of the map data may be affected by the AE and AWB algorithms. When AE and 3930 * AWB are in AUTO modes(ACAMERA_CONTROL_AE_MODE <code>!=</code> OFF and ACAMERA_CONTROL_AWB_MODE <code>!=</code> 3931 * OFF), to get best results, it is recommended that the applications wait for the AE and AWB 3932 * to be converged before using the returned shading map data.</p> 3933 * 3934 * @see ACAMERA_CONTROL_AE_MODE 3935 * @see ACAMERA_CONTROL_AWB_MODE 3936 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE 3937 */ 3938 ACAMERA_SHADING_MODE = // byte (enum) 3939 ACAMERA_SHADING_START, 3940 /** 3941 * <p>List of lens shading modes for ACAMERA_SHADING_MODE that are supported by this camera device.</p> 3942 * 3943 * @see ACAMERA_SHADING_MODE 3944 * 3945 * <p>This tag may appear in:</p> 3946 * <ul> 3947 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3948 * </ul> 3949 * 3950 * <p>This list contains lens shading modes that can be set for the camera device. 3951 * Camera devices that support the MANUAL_POST_PROCESSING capability will always 3952 * list OFF and FAST mode. This includes all FULL level devices. 3953 * LEGACY devices will always only support FAST mode.</p> 3954 */ 3955 ACAMERA_SHADING_AVAILABLE_MODES = // byte[n] 3956 ACAMERA_SHADING_START + 2, 3957 ACAMERA_SHADING_END, 3958 3959 /** 3960 * <p>Operating mode for the face detector 3961 * unit.</p> 3962 * 3963 * <p>This tag may appear in:</p> 3964 * <ul> 3965 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3966 * <li>ACaptureRequest</li> 3967 * </ul> 3968 * 3969 * <p>Whether face detection is enabled, and whether it 3970 * should output just the basic fields or the full set of 3971 * fields.</p> 3972 */ 3973 ACAMERA_STATISTICS_FACE_DETECT_MODE = // byte (enum) 3974 ACAMERA_STATISTICS_START, 3975 /** 3976 * <p>Operating mode for hot pixel map generation.</p> 3977 * 3978 * <p>This tag may appear in:</p> 3979 * <ul> 3980 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3981 * <li>ACaptureRequest</li> 3982 * </ul> 3983 * 3984 * <p>If set to <code>true</code>, a hot pixel map is returned in ACAMERA_STATISTICS_HOT_PIXEL_MAP. 3985 * If set to <code>false</code>, no hot pixel map will be returned.</p> 3986 * 3987 * @see ACAMERA_STATISTICS_HOT_PIXEL_MAP 3988 */ 3989 ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE = // byte (enum) 3990 ACAMERA_STATISTICS_START + 3, 3991 /** 3992 * <p>List of unique IDs for detected faces.</p> 3993 * 3994 * <p>This tag may appear in:</p> 3995 * <ul> 3996 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3997 * </ul> 3998 * 3999 * <p>Each detected face is given a unique ID that is valid for as long as the face is visible 4000 * to the camera device. A face that leaves the field of view and later returns may be 4001 * assigned a new ID.</p> 4002 * <p>Only available if ACAMERA_STATISTICS_FACE_DETECT_MODE == FULL</p> 4003 * 4004 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 4005 */ 4006 ACAMERA_STATISTICS_FACE_IDS = // int32[n] 4007 ACAMERA_STATISTICS_START + 4, 4008 /** 4009 * <p>List of landmarks for detected 4010 * faces.</p> 4011 * 4012 * <p>This tag may appear in:</p> 4013 * <ul> 4014 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4015 * </ul> 4016 * 4017 * <p>The coordinate system is that of ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with 4018 * <code>(0, 0)</code> being the top-left pixel of the active array.</p> 4019 * <p>Only available if ACAMERA_STATISTICS_FACE_DETECT_MODE == FULL</p> 4020 * 4021 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 4022 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 4023 */ 4024 ACAMERA_STATISTICS_FACE_LANDMARKS = // int32[n*6] 4025 ACAMERA_STATISTICS_START + 5, 4026 /** 4027 * <p>List of the bounding rectangles for detected 4028 * faces.</p> 4029 * 4030 * <p>This tag may appear in:</p> 4031 * <ul> 4032 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4033 * </ul> 4034 * 4035 * <p>The data representation is int[4], which maps to (left, top, width, height).</p> 4036 * <p>The coordinate system is that of ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with 4037 * <code>(0, 0)</code> being the top-left pixel of the active array.</p> 4038 * <p>Only available if ACAMERA_STATISTICS_FACE_DETECT_MODE != OFF</p> 4039 * 4040 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 4041 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 4042 */ 4043 ACAMERA_STATISTICS_FACE_RECTANGLES = // int32[n*4] 4044 ACAMERA_STATISTICS_START + 6, 4045 /** 4046 * <p>List of the face confidence scores for 4047 * detected faces</p> 4048 * 4049 * <p>This tag may appear in:</p> 4050 * <ul> 4051 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4052 * </ul> 4053 * 4054 * <p>Only available if ACAMERA_STATISTICS_FACE_DETECT_MODE != OFF.</p> 4055 * 4056 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 4057 */ 4058 ACAMERA_STATISTICS_FACE_SCORES = // byte[n] 4059 ACAMERA_STATISTICS_START + 7, 4060 /** 4061 * <p>The shading map is a low-resolution floating-point map 4062 * that lists the coefficients used to correct for vignetting and color shading, 4063 * for each Bayer color channel of RAW image data.</p> 4064 * 4065 * <p>This tag may appear in:</p> 4066 * <ul> 4067 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4068 * </ul> 4069 * 4070 * <p>The map provided here is the same map that is used by the camera device to 4071 * correct both color shading and vignetting for output non-RAW images.</p> 4072 * <p>When there is no lens shading correction applied to RAW 4073 * output images (ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED <code>==</code> 4074 * false), this map is the complete lens shading correction 4075 * map; when there is some lens shading correction applied to 4076 * the RAW output image (ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED<code>==</code> true), this map reports the remaining lens shading 4077 * correction map that needs to be applied to get shading 4078 * corrected images that match the camera device's output for 4079 * non-RAW formats.</p> 4080 * <p>For a complete shading correction map, the least shaded 4081 * section of the image will have a gain factor of 1; all 4082 * other sections will have gains above 1.</p> 4083 * <p>When ACAMERA_COLOR_CORRECTION_MODE = TRANSFORM_MATRIX, the map 4084 * will take into account the colorCorrection settings.</p> 4085 * <p>The shading map is for the entire active pixel array, and is not 4086 * affected by the crop region specified in the request. Each shading map 4087 * entry is the value of the shading compensation map over a specific 4088 * pixel on the sensor. Specifically, with a (N x M) resolution shading 4089 * map, and an active pixel array size (W x H), shading map entry 4090 * (x,y) ϵ (0 ... N-1, 0 ... M-1) is the value of the shading map at 4091 * pixel ( ((W-1)/(N-1)) * x, ((H-1)/(M-1)) * y) for the four color channels. 4092 * The map is assumed to be bilinearly interpolated between the sample points.</p> 4093 * <p>The channel order is [R, Geven, Godd, B], where Geven is the green 4094 * channel for the even rows of a Bayer pattern, and Godd is the odd rows. 4095 * The shading map is stored in a fully interleaved format, and its size 4096 * is provided in the camera static metadata by ACAMERA_LENS_INFO_SHADING_MAP_SIZE.</p> 4097 * <p>The shading map will generally have on the order of 30-40 rows and columns, 4098 * and will be smaller than 64x64.</p> 4099 * <p>As an example, given a very small map defined as:</p> 4100 * <pre><code>ACAMERA_LENS_INFO_SHADING_MAP_SIZE = [ 4, 3 ] 4101 * ACAMERA_STATISTICS_LENS_SHADING_MAP = 4102 * [ 1.3, 1.2, 1.15, 1.2, 1.2, 1.2, 1.15, 1.2, 4103 * 1.1, 1.2, 1.2, 1.2, 1.3, 1.2, 1.3, 1.3, 4104 * 1.2, 1.2, 1.25, 1.1, 1.1, 1.1, 1.1, 1.0, 4105 * 1.0, 1.0, 1.0, 1.0, 1.2, 1.3, 1.25, 1.2, 4106 * 1.3, 1.2, 1.2, 1.3, 1.2, 1.15, 1.1, 1.2, 4107 * 1.2, 1.1, 1.0, 1.2, 1.3, 1.15, 1.2, 1.3 ] 4108 * </code></pre> 4109 * <p>The low-resolution scaling map images for each channel are 4110 * (displayed using nearest-neighbor interpolation):</p> 4111 * <p><img alt="Red lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png" /> 4112 * <img alt="Green (even rows) lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png" /> 4113 * <img alt="Green (odd rows) lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png" /> 4114 * <img alt="Blue lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png" /></p> 4115 * <p>As a visualization only, inverting the full-color map to recover an 4116 * image of a gray wall (using bicubic interpolation for visual quality) 4117 * as captured by the sensor gives:</p> 4118 * <p><img alt="Image of a uniform white wall (inverse shading map)" src="../images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png" /></p> 4119 * <p>Note that the RAW image data might be subject to lens shading 4120 * correction not reported on this map. Query 4121 * ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED to see if RAW image data has subject 4122 * to lens shading correction. If ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED 4123 * is TRUE, the RAW image data is subject to partial or full lens shading 4124 * correction. In the case full lens shading correction is applied to RAW 4125 * images, the gain factor map reported in this key will contain all 1.0 gains. 4126 * In other words, the map reported in this key is the remaining lens shading 4127 * that needs to be applied on the RAW image to get images without lens shading 4128 * artifacts. See android.request.maxNumOutputRaw for a list of RAW image 4129 * formats.</p> 4130 * 4131 * @see ACAMERA_COLOR_CORRECTION_MODE 4132 * @see ACAMERA_LENS_INFO_SHADING_MAP_SIZE 4133 * @see ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED 4134 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP 4135 */ 4136 ACAMERA_STATISTICS_LENS_SHADING_MAP = // float[4*n*m] 4137 ACAMERA_STATISTICS_START + 11, 4138 /** 4139 * <p>The camera device estimated scene illumination lighting 4140 * frequency.</p> 4141 * 4142 * <p>This tag may appear in:</p> 4143 * <ul> 4144 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4145 * </ul> 4146 * 4147 * <p>Many light sources, such as most fluorescent lights, flicker at a rate 4148 * that depends on the local utility power standards. This flicker must be 4149 * accounted for by auto-exposure routines to avoid artifacts in captured images. 4150 * The camera device uses this entry to tell the application what the scene 4151 * illuminant frequency is.</p> 4152 * <p>When manual exposure control is enabled 4153 * (<code>ACAMERA_CONTROL_AE_MODE == OFF</code> or <code>ACAMERA_CONTROL_MODE == 4154 * OFF</code>), the ACAMERA_CONTROL_AE_ANTIBANDING_MODE doesn't perform 4155 * antibanding, and the application can ensure it selects 4156 * exposure times that do not cause banding issues by looking 4157 * into this metadata field. See 4158 * ACAMERA_CONTROL_AE_ANTIBANDING_MODE for more details.</p> 4159 * <p>Reports NONE if there doesn't appear to be flickering illumination.</p> 4160 * 4161 * @see ACAMERA_CONTROL_AE_ANTIBANDING_MODE 4162 * @see ACAMERA_CONTROL_AE_MODE 4163 * @see ACAMERA_CONTROL_MODE 4164 */ 4165 ACAMERA_STATISTICS_SCENE_FLICKER = // byte (enum) 4166 ACAMERA_STATISTICS_START + 14, 4167 /** 4168 * <p>List of <code>(x, y)</code> coordinates of hot/defective pixels on the sensor.</p> 4169 * 4170 * <p>This tag may appear in:</p> 4171 * <ul> 4172 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4173 * </ul> 4174 * 4175 * <p>A coordinate <code>(x, y)</code> must lie between <code>(0, 0)</code>, and 4176 * <code>(width - 1, height - 1)</code> (inclusive), which are the top-left and 4177 * bottom-right of the pixel array, respectively. The width and 4178 * height dimensions are given in ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE. 4179 * This may include hot pixels that lie outside of the active array 4180 * bounds given by ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.</p> 4181 * 4182 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 4183 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 4184 */ 4185 ACAMERA_STATISTICS_HOT_PIXEL_MAP = // int32[2*n] 4186 ACAMERA_STATISTICS_START + 15, 4187 /** 4188 * <p>Whether the camera device will output the lens 4189 * shading map in output result metadata.</p> 4190 * 4191 * <p>This tag may appear in:</p> 4192 * <ul> 4193 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4194 * <li>ACaptureRequest</li> 4195 * </ul> 4196 * 4197 * <p>When set to ON, 4198 * ACAMERA_STATISTICS_LENS_SHADING_MAP will be provided in 4199 * the output result metadata.</p> 4200 * <p>ON is always supported on devices with the RAW capability.</p> 4201 * 4202 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP 4203 */ 4204 ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE = // byte (enum) 4205 ACAMERA_STATISTICS_START + 16, 4206 ACAMERA_STATISTICS_END, 4207 4208 /** 4209 * <p>List of face detection modes for ACAMERA_STATISTICS_FACE_DETECT_MODE that are 4210 * supported by this camera device.</p> 4211 * 4212 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 4213 * 4214 * <p>This tag may appear in:</p> 4215 * <ul> 4216 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4217 * </ul> 4218 * 4219 * <p>OFF is always supported.</p> 4220 */ 4221 ACAMERA_STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES = // byte[n] 4222 ACAMERA_STATISTICS_INFO_START, 4223 /** 4224 * <p>The maximum number of simultaneously detectable 4225 * faces.</p> 4226 * 4227 * <p>This tag may appear in:</p> 4228 * <ul> 4229 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4230 * </ul> 4231 * 4232 * <p>None</p> 4233 */ 4234 ACAMERA_STATISTICS_INFO_MAX_FACE_COUNT = // int32 4235 ACAMERA_STATISTICS_INFO_START + 2, 4236 /** 4237 * <p>List of hot pixel map output modes for ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE that are 4238 * supported by this camera device.</p> 4239 * 4240 * @see ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE 4241 * 4242 * <p>This tag may appear in:</p> 4243 * <ul> 4244 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4245 * </ul> 4246 * 4247 * <p>If no hotpixel map output is available for this camera device, this will contain only 4248 * <code>false</code>.</p> 4249 * <p>ON is always supported on devices with the RAW capability.</p> 4250 */ 4251 ACAMERA_STATISTICS_INFO_AVAILABLE_HOT_PIXEL_MAP_MODES = // byte[n] 4252 ACAMERA_STATISTICS_INFO_START + 6, 4253 /** 4254 * <p>List of lens shading map output modes for ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE that 4255 * are supported by this camera device.</p> 4256 * 4257 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE 4258 * 4259 * <p>This tag may appear in:</p> 4260 * <ul> 4261 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4262 * </ul> 4263 * 4264 * <p>If no lens shading map output is available for this camera device, this key will 4265 * contain only OFF.</p> 4266 * <p>ON is always supported on devices with the RAW capability. 4267 * LEGACY mode devices will always only support OFF.</p> 4268 */ 4269 ACAMERA_STATISTICS_INFO_AVAILABLE_LENS_SHADING_MAP_MODES = // byte[n] 4270 ACAMERA_STATISTICS_INFO_START + 7, 4271 ACAMERA_STATISTICS_INFO_END, 4272 4273 /** 4274 * <p>Tonemapping / contrast / gamma curve for the blue 4275 * channel, to use when ACAMERA_TONEMAP_MODE is 4276 * CONTRAST_CURVE.</p> 4277 * 4278 * @see ACAMERA_TONEMAP_MODE 4279 * 4280 * <p>This tag may appear in:</p> 4281 * <ul> 4282 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4283 * <li>ACaptureRequest</li> 4284 * </ul> 4285 * 4286 * <p>See ACAMERA_TONEMAP_CURVE_RED for more details.</p> 4287 * 4288 * @see ACAMERA_TONEMAP_CURVE_RED 4289 */ 4290 ACAMERA_TONEMAP_CURVE_BLUE = // float[n*2] 4291 ACAMERA_TONEMAP_START, 4292 /** 4293 * <p>Tonemapping / contrast / gamma curve for the green 4294 * channel, to use when ACAMERA_TONEMAP_MODE is 4295 * CONTRAST_CURVE.</p> 4296 * 4297 * @see ACAMERA_TONEMAP_MODE 4298 * 4299 * <p>This tag may appear in:</p> 4300 * <ul> 4301 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4302 * <li>ACaptureRequest</li> 4303 * </ul> 4304 * 4305 * <p>See ACAMERA_TONEMAP_CURVE_RED for more details.</p> 4306 * 4307 * @see ACAMERA_TONEMAP_CURVE_RED 4308 */ 4309 ACAMERA_TONEMAP_CURVE_GREEN = // float[n*2] 4310 ACAMERA_TONEMAP_START + 1, 4311 /** 4312 * <p>Tonemapping / contrast / gamma curve for the red 4313 * channel, to use when ACAMERA_TONEMAP_MODE is 4314 * CONTRAST_CURVE.</p> 4315 * 4316 * @see ACAMERA_TONEMAP_MODE 4317 * 4318 * <p>This tag may appear in:</p> 4319 * <ul> 4320 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4321 * <li>ACaptureRequest</li> 4322 * </ul> 4323 * 4324 * <p>Each channel's curve is defined by an array of control points:</p> 4325 * <pre><code>ACAMERA_TONEMAP_CURVE_RED = 4326 * [ P0in, P0out, P1in, P1out, P2in, P2out, P3in, P3out, ..., PNin, PNout ] 4327 * 2 <= N <= ACAMERA_TONEMAP_MAX_CURVE_POINTS</code></pre> 4328 * <p>These are sorted in order of increasing <code>Pin</code>; it is 4329 * required that input values 0.0 and 1.0 are included in the list to 4330 * define a complete mapping. For input values between control points, 4331 * the camera device must linearly interpolate between the control 4332 * points.</p> 4333 * <p>Each curve can have an independent number of points, and the number 4334 * of points can be less than max (that is, the request doesn't have to 4335 * always provide a curve with number of points equivalent to 4336 * ACAMERA_TONEMAP_MAX_CURVE_POINTS).</p> 4337 * <p>A few examples, and their corresponding graphical mappings; these 4338 * only specify the red channel and the precision is limited to 4 4339 * digits, for conciseness.</p> 4340 * <p>Linear mapping:</p> 4341 * <pre><code>ACAMERA_TONEMAP_CURVE_RED = [ 0, 0, 1.0, 1.0 ] 4342 * </code></pre> 4343 * <p><img alt="Linear mapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png" /></p> 4344 * <p>Invert mapping:</p> 4345 * <pre><code>ACAMERA_TONEMAP_CURVE_RED = [ 0, 1.0, 1.0, 0 ] 4346 * </code></pre> 4347 * <p><img alt="Inverting mapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png" /></p> 4348 * <p>Gamma 1/2.2 mapping, with 16 control points:</p> 4349 * <pre><code>ACAMERA_TONEMAP_CURVE_RED = [ 4350 * 0.0000, 0.0000, 0.0667, 0.2920, 0.1333, 0.4002, 0.2000, 0.4812, 4351 * 0.2667, 0.5484, 0.3333, 0.6069, 0.4000, 0.6594, 0.4667, 0.7072, 4352 * 0.5333, 0.7515, 0.6000, 0.7928, 0.6667, 0.8317, 0.7333, 0.8685, 4353 * 0.8000, 0.9035, 0.8667, 0.9370, 0.9333, 0.9691, 1.0000, 1.0000 ] 4354 * </code></pre> 4355 * <p><img alt="Gamma = 1/2.2 tonemapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png" /></p> 4356 * <p>Standard sRGB gamma mapping, per IEC 61966-2-1:1999, with 16 control points:</p> 4357 * <pre><code>ACAMERA_TONEMAP_CURVE_RED = [ 4358 * 0.0000, 0.0000, 0.0667, 0.2864, 0.1333, 0.4007, 0.2000, 0.4845, 4359 * 0.2667, 0.5532, 0.3333, 0.6125, 0.4000, 0.6652, 0.4667, 0.7130, 4360 * 0.5333, 0.7569, 0.6000, 0.7977, 0.6667, 0.8360, 0.7333, 0.8721, 4361 * 0.8000, 0.9063, 0.8667, 0.9389, 0.9333, 0.9701, 1.0000, 1.0000 ] 4362 * </code></pre> 4363 * <p><img alt="sRGB tonemapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png" /></p> 4364 * 4365 * @see ACAMERA_TONEMAP_CURVE_RED 4366 * @see ACAMERA_TONEMAP_MAX_CURVE_POINTS 4367 */ 4368 ACAMERA_TONEMAP_CURVE_RED = // float[n*2] 4369 ACAMERA_TONEMAP_START + 2, 4370 /** 4371 * <p>High-level global contrast/gamma/tonemapping control.</p> 4372 * 4373 * <p>This tag may appear in:</p> 4374 * <ul> 4375 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4376 * <li>ACaptureRequest</li> 4377 * </ul> 4378 * 4379 * <p>When switching to an application-defined contrast curve by setting 4380 * ACAMERA_TONEMAP_MODE to CONTRAST_CURVE, the curve is defined 4381 * per-channel with a set of <code>(in, out)</code> points that specify the 4382 * mapping from input high-bit-depth pixel value to the output 4383 * low-bit-depth value. Since the actual pixel ranges of both input 4384 * and output may change depending on the camera pipeline, the values 4385 * are specified by normalized floating-point numbers.</p> 4386 * <p>More-complex color mapping operations such as 3D color look-up 4387 * tables, selective chroma enhancement, or other non-linear color 4388 * transforms will be disabled when ACAMERA_TONEMAP_MODE is 4389 * CONTRAST_CURVE.</p> 4390 * <p>When using either FAST or HIGH_QUALITY, the camera device will 4391 * emit its own tonemap curve in android.tonemap.curve. 4392 * These values are always available, and as close as possible to the 4393 * actually used nonlinear/nonglobal transforms.</p> 4394 * <p>If a request is sent with CONTRAST_CURVE with the camera device's 4395 * provided curve in FAST or HIGH_QUALITY, the image's tonemap will be 4396 * roughly the same.</p> 4397 * 4398 * @see ACAMERA_TONEMAP_MODE 4399 */ 4400 ACAMERA_TONEMAP_MODE = // byte (enum) 4401 ACAMERA_TONEMAP_START + 3, 4402 /** 4403 * <p>Maximum number of supported points in the 4404 * tonemap curve that can be used for android.tonemap.curve.</p> 4405 * 4406 * <p>This tag may appear in:</p> 4407 * <ul> 4408 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4409 * </ul> 4410 * 4411 * <p>If the actual number of points provided by the application (in ACAMERA_TONEMAPCURVE_*) is 4412 * less than this maximum, the camera device will resample the curve to its internal 4413 * representation, using linear interpolation.</p> 4414 * <p>The output curves in the result metadata may have a different number 4415 * of points than the input curves, and will represent the actual 4416 * hardware curves used as closely as possible when linearly interpolated.</p> 4417 */ 4418 ACAMERA_TONEMAP_MAX_CURVE_POINTS = // int32 4419 ACAMERA_TONEMAP_START + 4, 4420 /** 4421 * <p>List of tonemapping modes for ACAMERA_TONEMAP_MODE that are supported by this camera 4422 * device.</p> 4423 * 4424 * @see ACAMERA_TONEMAP_MODE 4425 * 4426 * <p>This tag may appear in:</p> 4427 * <ul> 4428 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4429 * </ul> 4430 * 4431 * <p>Camera devices that support the MANUAL_POST_PROCESSING capability will always contain 4432 * at least one of below mode combinations:</p> 4433 * <ul> 4434 * <li>CONTRAST_CURVE, FAST and HIGH_QUALITY</li> 4435 * <li>GAMMA_VALUE, PRESET_CURVE, FAST and HIGH_QUALITY</li> 4436 * </ul> 4437 * <p>This includes all FULL level devices.</p> 4438 */ 4439 ACAMERA_TONEMAP_AVAILABLE_TONE_MAP_MODES = // byte[n] 4440 ACAMERA_TONEMAP_START + 5, 4441 /** 4442 * <p>Tonemapping curve to use when ACAMERA_TONEMAP_MODE is 4443 * GAMMA_VALUE</p> 4444 * 4445 * @see ACAMERA_TONEMAP_MODE 4446 * 4447 * <p>This tag may appear in:</p> 4448 * <ul> 4449 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4450 * <li>ACaptureRequest</li> 4451 * </ul> 4452 * 4453 * <p>The tonemap curve will be defined the following formula: 4454 * * OUT = pow(IN, 1.0 / gamma) 4455 * where IN and OUT is the input pixel value scaled to range [0.0, 1.0], 4456 * pow is the power function and gamma is the gamma value specified by this 4457 * key.</p> 4458 * <p>The same curve will be applied to all color channels. The camera device 4459 * may clip the input gamma value to its supported range. The actual applied 4460 * value will be returned in capture result.</p> 4461 * <p>The valid range of gamma value varies on different devices, but values 4462 * within [1.0, 5.0] are guaranteed not to be clipped.</p> 4463 */ 4464 ACAMERA_TONEMAP_GAMMA = // float 4465 ACAMERA_TONEMAP_START + 6, 4466 /** 4467 * <p>Tonemapping curve to use when ACAMERA_TONEMAP_MODE is 4468 * PRESET_CURVE</p> 4469 * 4470 * @see ACAMERA_TONEMAP_MODE 4471 * 4472 * <p>This tag may appear in:</p> 4473 * <ul> 4474 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4475 * <li>ACaptureRequest</li> 4476 * </ul> 4477 * 4478 * <p>The tonemap curve will be defined by specified standard.</p> 4479 * <p>sRGB (approximated by 16 control points):</p> 4480 * <p><img alt="sRGB tonemapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png" /></p> 4481 * <p>Rec. 709 (approximated by 16 control points):</p> 4482 * <p><img alt="Rec. 709 tonemapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/rec709_tonemap.png" /></p> 4483 * <p>Note that above figures show a 16 control points approximation of preset 4484 * curves. Camera devices may apply a different approximation to the curve.</p> 4485 */ 4486 ACAMERA_TONEMAP_PRESET_CURVE = // byte (enum) 4487 ACAMERA_TONEMAP_START + 7, 4488 ACAMERA_TONEMAP_END, 4489 4490 /** 4491 * <p>Generally classifies the overall set of the camera device functionality.</p> 4492 * 4493 * <p>This tag may appear in:</p> 4494 * <ul> 4495 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4496 * </ul> 4497 * 4498 * <p>The supported hardware level is a high-level description of the camera device's 4499 * capabilities, summarizing several capabilities into one field. Each level adds additional 4500 * features to the previous one, and is always a strict superset of the previous level. 4501 * The ordering is <code>LEGACY < LIMITED < FULL < LEVEL_3</code>.</p> 4502 * <p>Starting from <code>LEVEL_3</code>, the level enumerations are guaranteed to be in increasing 4503 * numerical value as well. To check if a given device is at least at a given hardware level, 4504 * the following code snippet can be used:</p> 4505 * <pre><code>// Returns true if the device supports the required hardware level, or better. 4506 * boolean isHardwareLevelSupported(CameraCharacteristics c, int requiredLevel) { 4507 * int deviceLevel = c.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); 4508 * if (deviceLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY) { 4509 * return requiredLevel == deviceLevel; 4510 * } 4511 * // deviceLevel is not LEGACY, can use numerical sort 4512 * return requiredLevel <= deviceLevel; 4513 * } 4514 * </code></pre> 4515 * <p>At a high level, the levels are:</p> 4516 * <ul> 4517 * <li><code>LEGACY</code> devices operate in a backwards-compatibility mode for older 4518 * Android devices, and have very limited capabilities.</li> 4519 * <li><code>LIMITED</code> devices represent the 4520 * baseline feature set, and may also include additional capabilities that are 4521 * subsets of <code>FULL</code>.</li> 4522 * <li><code>FULL</code> devices additionally support per-frame manual control of sensor, flash, lens and 4523 * post-processing settings, and image capture at a high rate.</li> 4524 * <li><code>LEVEL_3</code> devices additionally support YUV reprocessing and RAW image capture, along 4525 * with additional output stream configurations.</li> 4526 * </ul> 4527 * <p>See the individual level enums for full descriptions of the supported capabilities. The 4528 * ACAMERA_REQUEST_AVAILABLE_CAPABILITIES entry describes the device's capabilities at a 4529 * finer-grain level, if needed. In addition, many controls have their available settings or 4530 * ranges defined in individual metadata tag entries in this document.</p> 4531 * <p>Some features are not part of any particular hardware level or capability and must be 4532 * queried separately. These include:</p> 4533 * <ul> 4534 * <li>Calibrated timestamps (ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE <code>==</code> REALTIME)</li> 4535 * <li>Precision lens control (ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION <code>==</code> CALIBRATED)</li> 4536 * <li>Face detection (ACAMERA_STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES)</li> 4537 * <li>Optical or electrical image stabilization 4538 * (ACAMERA_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION, 4539 * ACAMERA_CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES)</li> 4540 * </ul> 4541 * 4542 * @see ACAMERA_CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES 4543 * @see ACAMERA_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION 4544 * @see ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION 4545 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 4546 * @see ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE 4547 * @see ACAMERA_STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES 4548 */ 4549 ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL = // byte (enum) 4550 ACAMERA_INFO_START, 4551 ACAMERA_INFO_END, 4552 4553 /** 4554 * <p>Whether black-level compensation is locked 4555 * to its current values, or is free to vary.</p> 4556 * 4557 * <p>This tag may appear in:</p> 4558 * <ul> 4559 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4560 * <li>ACaptureRequest</li> 4561 * </ul> 4562 * 4563 * <p>Whether the black level offset was locked for this frame. Should be 4564 * ON if ACAMERA_BLACK_LEVEL_LOCK was ON in the capture request, unless 4565 * a change in other capture settings forced the camera device to 4566 * perform a black level reset.</p> 4567 * 4568 * @see ACAMERA_BLACK_LEVEL_LOCK 4569 */ 4570 ACAMERA_BLACK_LEVEL_LOCK = // byte (enum) 4571 ACAMERA_BLACK_LEVEL_START, 4572 ACAMERA_BLACK_LEVEL_END, 4573 4574 /** 4575 * <p>The frame number corresponding to the last request 4576 * with which the output result (metadata + buffers) has been fully 4577 * synchronized.</p> 4578 * 4579 * <p>This tag may appear in:</p> 4580 * <ul> 4581 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4582 * </ul> 4583 * 4584 * <p>When a request is submitted to the camera device, there is usually a 4585 * delay of several frames before the controls get applied. A camera 4586 * device may either choose to account for this delay by implementing a 4587 * pipeline and carefully submit well-timed atomic control updates, or 4588 * it may start streaming control changes that span over several frame 4589 * boundaries.</p> 4590 * <p>In the latter case, whenever a request's settings change relative to 4591 * the previous submitted request, the full set of changes may take 4592 * multiple frame durations to fully take effect. Some settings may 4593 * take effect sooner (in less frame durations) than others.</p> 4594 * <p>While a set of control changes are being propagated, this value 4595 * will be CONVERGING.</p> 4596 * <p>Once it is fully known that a set of control changes have been 4597 * finished propagating, and the resulting updated control settings 4598 * have been read back by the camera device, this value will be set 4599 * to a non-negative frame number (corresponding to the request to 4600 * which the results have synchronized to).</p> 4601 * <p>Older camera device implementations may not have a way to detect 4602 * when all camera controls have been applied, and will always set this 4603 * value to UNKNOWN.</p> 4604 * <p>FULL capability devices will always have this value set to the 4605 * frame number of the request corresponding to this result.</p> 4606 * <p><em>Further details</em>:</p> 4607 * <ul> 4608 * <li>Whenever a request differs from the last request, any future 4609 * results not yet returned may have this value set to CONVERGING (this 4610 * could include any in-progress captures not yet returned by the camera 4611 * device, for more details see pipeline considerations below).</li> 4612 * <li>Submitting a series of multiple requests that differ from the 4613 * previous request (e.g. r1, r2, r3 s.t. r1 != r2 != r3) 4614 * moves the new synchronization frame to the last non-repeating 4615 * request (using the smallest frame number from the contiguous list of 4616 * repeating requests).</li> 4617 * <li>Submitting the same request repeatedly will not change this value 4618 * to CONVERGING, if it was already a non-negative value.</li> 4619 * <li>When this value changes to non-negative, that means that all of the 4620 * metadata controls from the request have been applied, all of the 4621 * metadata controls from the camera device have been read to the 4622 * updated values (into the result), and all of the graphics buffers 4623 * corresponding to this result are also synchronized to the request.</li> 4624 * </ul> 4625 * <p><em>Pipeline considerations</em>:</p> 4626 * <p>Submitting a request with updated controls relative to the previously 4627 * submitted requests may also invalidate the synchronization state 4628 * of all the results corresponding to currently in-flight requests.</p> 4629 * <p>In other words, results for this current request and up to 4630 * ACAMERA_REQUEST_PIPELINE_MAX_DEPTH prior requests may have their 4631 * ACAMERA_SYNC_FRAME_NUMBER change to CONVERGING.</p> 4632 * 4633 * @see ACAMERA_REQUEST_PIPELINE_MAX_DEPTH 4634 * @see ACAMERA_SYNC_FRAME_NUMBER 4635 */ 4636 ACAMERA_SYNC_FRAME_NUMBER = // int64 (enum) 4637 ACAMERA_SYNC_START, 4638 /** 4639 * <p>The maximum number of frames that can occur after a request 4640 * (different than the previous) has been submitted, and before the 4641 * result's state becomes synchronized.</p> 4642 * 4643 * <p>This tag may appear in:</p> 4644 * <ul> 4645 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4646 * </ul> 4647 * 4648 * <p>This defines the maximum distance (in number of metadata results), 4649 * between the frame number of the request that has new controls to apply 4650 * and the frame number of the result that has all the controls applied.</p> 4651 * <p>In other words this acts as an upper boundary for how many frames 4652 * must occur before the camera device knows for a fact that the new 4653 * submitted camera settings have been applied in outgoing frames.</p> 4654 */ 4655 ACAMERA_SYNC_MAX_LATENCY = // int32 (enum) 4656 ACAMERA_SYNC_START + 1, 4657 ACAMERA_SYNC_END, 4658 4659 /** 4660 * <p>The available depth dataspace stream 4661 * configurations that this camera device supports 4662 * (i.e. format, width, height, output/input stream).</p> 4663 * 4664 * <p>This tag may appear in:</p> 4665 * <ul> 4666 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4667 * </ul> 4668 * 4669 * <p>These are output stream configurations for use with 4670 * dataSpace HAL_DATASPACE_DEPTH. The configurations are 4671 * listed as <code>(format, width, height, input?)</code> tuples.</p> 4672 * <p>Only devices that support depth output for at least 4673 * the HAL_PIXEL_FORMAT_Y16 dense depth map may include 4674 * this entry.</p> 4675 * <p>A device that also supports the HAL_PIXEL_FORMAT_BLOB 4676 * sparse depth point cloud must report a single entry for 4677 * the format in this list as <code>(HAL_PIXEL_FORMAT_BLOB, 4678 * android.depth.maxDepthSamples, 1, OUTPUT)</code> in addition to 4679 * the entries for HAL_PIXEL_FORMAT_Y16.</p> 4680 */ 4681 ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS = // int32[n*4] (enum) 4682 ACAMERA_DEPTH_START + 1, 4683 /** 4684 * <p>This lists the minimum frame duration for each 4685 * format/size combination for depth output formats.</p> 4686 * 4687 * <p>This tag may appear in:</p> 4688 * <ul> 4689 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4690 * </ul> 4691 * 4692 * <p>This should correspond to the frame duration when only that 4693 * stream is active, with all processing (typically in android.*.mode) 4694 * set to either OFF or FAST.</p> 4695 * <p>When multiple streams are used in a request, the minimum frame 4696 * duration will be max(individual stream min durations).</p> 4697 * <p>The minimum frame duration of a stream (of a particular format, size) 4698 * is the same regardless of whether the stream is input or output.</p> 4699 * <p>See ACAMERA_SENSOR_FRAME_DURATION and 4700 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS for more details about 4701 * calculating the max frame rate.</p> 4702 * 4703 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS 4704 * @see ACAMERA_SENSOR_FRAME_DURATION 4705 */ 4706 ACAMERA_DEPTH_AVAILABLE_DEPTH_MIN_FRAME_DURATIONS = // int64[4*n] 4707 ACAMERA_DEPTH_START + 2, 4708 /** 4709 * <p>This lists the maximum stall duration for each 4710 * output format/size combination for depth streams.</p> 4711 * 4712 * <p>This tag may appear in:</p> 4713 * <ul> 4714 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4715 * </ul> 4716 * 4717 * <p>A stall duration is how much extra time would get added 4718 * to the normal minimum frame duration for a repeating request 4719 * that has streams with non-zero stall.</p> 4720 * <p>This functions similarly to 4721 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS for depth 4722 * streams.</p> 4723 * <p>All depth output stream formats may have a nonzero stall 4724 * duration.</p> 4725 * 4726 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS 4727 */ 4728 ACAMERA_DEPTH_AVAILABLE_DEPTH_STALL_DURATIONS = // int64[4*n] 4729 ACAMERA_DEPTH_START + 3, 4730 /** 4731 * <p>Indicates whether a capture request may target both a 4732 * DEPTH16 / DEPTH_POINT_CLOUD output, and normal color outputs (such as 4733 * YUV_420_888, JPEG, or RAW) simultaneously.</p> 4734 * 4735 * <p>This tag may appear in:</p> 4736 * <ul> 4737 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4738 * </ul> 4739 * 4740 * <p>If TRUE, including both depth and color outputs in a single 4741 * capture request is not supported. An application must interleave color 4742 * and depth requests. If FALSE, a single request can target both types 4743 * of output.</p> 4744 * <p>Typically, this restriction exists on camera devices that 4745 * need to emit a specific pattern or wavelength of light to 4746 * measure depth values, which causes the color image to be 4747 * corrupted during depth measurement.</p> 4748 */ 4749 ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE = // byte (enum) 4750 ACAMERA_DEPTH_START + 4, 4751 ACAMERA_DEPTH_END, 4752 4753} acamera_metadata_tag_t; 4754 4755/** 4756 * Enumeration definitions for the various entries that need them 4757 */ 4758 4759// ACAMERA_COLOR_CORRECTION_MODE 4760typedef enum acamera_metadata_enum_acamera_color_correction_mode { 4761 /** 4762 * <p>Use the ACAMERA_COLOR_CORRECTION_TRANSFORM matrix 4763 * and ACAMERA_COLOR_CORRECTION_GAINS to do color conversion.</p> 4764 * <p>All advanced white balance adjustments (not specified 4765 * by our white balance pipeline) must be disabled.</p> 4766 * <p>If AWB is enabled with <code>ACAMERA_CONTROL_AWB_MODE != OFF</code>, then 4767 * TRANSFORM_MATRIX is ignored. The camera device will override 4768 * this value to either FAST or HIGH_QUALITY.</p> 4769 * 4770 * @see ACAMERA_COLOR_CORRECTION_GAINS 4771 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 4772 * @see ACAMERA_CONTROL_AWB_MODE 4773 */ 4774 ACAMERA_COLOR_CORRECTION_MODE_TRANSFORM_MATRIX = 0, 4775 4776 /** 4777 * <p>Color correction processing must not slow down 4778 * capture rate relative to sensor raw output.</p> 4779 * <p>Advanced white balance adjustments above and beyond 4780 * the specified white balance pipeline may be applied.</p> 4781 * <p>If AWB is enabled with <code>ACAMERA_CONTROL_AWB_MODE != OFF</code>, then 4782 * the camera device uses the last frame's AWB values 4783 * (or defaults if AWB has never been run).</p> 4784 * 4785 * @see ACAMERA_CONTROL_AWB_MODE 4786 */ 4787 ACAMERA_COLOR_CORRECTION_MODE_FAST = 1, 4788 4789 /** 4790 * <p>Color correction processing operates at improved 4791 * quality but the capture rate might be reduced (relative to sensor 4792 * raw output rate)</p> 4793 * <p>Advanced white balance adjustments above and beyond 4794 * the specified white balance pipeline may be applied.</p> 4795 * <p>If AWB is enabled with <code>ACAMERA_CONTROL_AWB_MODE != OFF</code>, then 4796 * the camera device uses the last frame's AWB values 4797 * (or defaults if AWB has never been run).</p> 4798 * 4799 * @see ACAMERA_CONTROL_AWB_MODE 4800 */ 4801 ACAMERA_COLOR_CORRECTION_MODE_HIGH_QUALITY = 2, 4802 4803} acamera_metadata_enum_android_color_correction_mode_t; 4804 4805// ACAMERA_COLOR_CORRECTION_ABERRATION_MODE 4806typedef enum acamera_metadata_enum_acamera_color_correction_aberration_mode { 4807 /** 4808 * <p>No aberration correction is applied.</p> 4809 */ 4810 ACAMERA_COLOR_CORRECTION_ABERRATION_MODE_OFF = 0, 4811 4812 /** 4813 * <p>Aberration correction will not slow down capture rate 4814 * relative to sensor raw output.</p> 4815 */ 4816 ACAMERA_COLOR_CORRECTION_ABERRATION_MODE_FAST = 1, 4817 4818 /** 4819 * <p>Aberration correction operates at improved quality but the capture rate might be 4820 * reduced (relative to sensor raw output rate)</p> 4821 */ 4822 ACAMERA_COLOR_CORRECTION_ABERRATION_MODE_HIGH_QUALITY = 2, 4823 4824} acamera_metadata_enum_android_color_correction_aberration_mode_t; 4825 4826 4827// ACAMERA_CONTROL_AE_ANTIBANDING_MODE 4828typedef enum acamera_metadata_enum_acamera_control_ae_antibanding_mode { 4829 /** 4830 * <p>The camera device will not adjust exposure duration to 4831 * avoid banding problems.</p> 4832 */ 4833 ACAMERA_CONTROL_AE_ANTIBANDING_MODE_OFF = 0, 4834 4835 /** 4836 * <p>The camera device will adjust exposure duration to 4837 * avoid banding problems with 50Hz illumination sources.</p> 4838 */ 4839 ACAMERA_CONTROL_AE_ANTIBANDING_MODE_50HZ = 1, 4840 4841 /** 4842 * <p>The camera device will adjust exposure duration to 4843 * avoid banding problems with 60Hz illumination 4844 * sources.</p> 4845 */ 4846 ACAMERA_CONTROL_AE_ANTIBANDING_MODE_60HZ = 2, 4847 4848 /** 4849 * <p>The camera device will automatically adapt its 4850 * antibanding routine to the current illumination 4851 * condition. This is the default mode if AUTO is 4852 * available on given camera device.</p> 4853 */ 4854 ACAMERA_CONTROL_AE_ANTIBANDING_MODE_AUTO = 3, 4855 4856} acamera_metadata_enum_android_control_ae_antibanding_mode_t; 4857 4858// ACAMERA_CONTROL_AE_LOCK 4859typedef enum acamera_metadata_enum_acamera_control_ae_lock { 4860 /** 4861 * <p>Auto-exposure lock is disabled; the AE algorithm 4862 * is free to update its parameters.</p> 4863 */ 4864 ACAMERA_CONTROL_AE_LOCK_OFF = 0, 4865 4866 /** 4867 * <p>Auto-exposure lock is enabled; the AE algorithm 4868 * must not update the exposure and sensitivity parameters 4869 * while the lock is active.</p> 4870 * <p>ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION setting changes 4871 * will still take effect while auto-exposure is locked.</p> 4872 * <p>Some rare LEGACY devices may not support 4873 * this, in which case the value will always be overridden to OFF.</p> 4874 * 4875 * @see ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION 4876 */ 4877 ACAMERA_CONTROL_AE_LOCK_ON = 1, 4878 4879} acamera_metadata_enum_android_control_ae_lock_t; 4880 4881// ACAMERA_CONTROL_AE_MODE 4882typedef enum acamera_metadata_enum_acamera_control_ae_mode { 4883 /** 4884 * <p>The camera device's autoexposure routine is disabled.</p> 4885 * <p>The application-selected ACAMERA_SENSOR_EXPOSURE_TIME, 4886 * ACAMERA_SENSOR_SENSITIVITY and 4887 * ACAMERA_SENSOR_FRAME_DURATION are used by the camera 4888 * device, along with ACAMERA_FLASH_* fields, if there's 4889 * a flash unit for this camera device.</p> 4890 * <p>Note that auto-white balance (AWB) and auto-focus (AF) 4891 * behavior is device dependent when AE is in OFF mode. 4892 * To have consistent behavior across different devices, 4893 * it is recommended to either set AWB and AF to OFF mode 4894 * or lock AWB and AF before setting AE to OFF. 4895 * See ACAMERA_CONTROL_AWB_MODE, ACAMERA_CONTROL_AF_MODE, 4896 * ACAMERA_CONTROL_AWB_LOCK, and ACAMERA_CONTROL_AF_TRIGGER 4897 * for more details.</p> 4898 * <p>LEGACY devices do not support the OFF mode and will 4899 * override attempts to use this value to ON.</p> 4900 * 4901 * @see ACAMERA_CONTROL_AF_MODE 4902 * @see ACAMERA_CONTROL_AF_TRIGGER 4903 * @see ACAMERA_CONTROL_AWB_LOCK 4904 * @see ACAMERA_CONTROL_AWB_MODE 4905 * @see ACAMERA_SENSOR_EXPOSURE_TIME 4906 * @see ACAMERA_SENSOR_FRAME_DURATION 4907 * @see ACAMERA_SENSOR_SENSITIVITY 4908 */ 4909 ACAMERA_CONTROL_AE_MODE_OFF = 0, 4910 4911 /** 4912 * <p>The camera device's autoexposure routine is active, 4913 * with no flash control.</p> 4914 * <p>The application's values for 4915 * ACAMERA_SENSOR_EXPOSURE_TIME, 4916 * ACAMERA_SENSOR_SENSITIVITY, and 4917 * ACAMERA_SENSOR_FRAME_DURATION are ignored. The 4918 * application has control over the various 4919 * ACAMERA_FLASH_* fields.</p> 4920 * 4921 * @see ACAMERA_SENSOR_EXPOSURE_TIME 4922 * @see ACAMERA_SENSOR_FRAME_DURATION 4923 * @see ACAMERA_SENSOR_SENSITIVITY 4924 */ 4925 ACAMERA_CONTROL_AE_MODE_ON = 1, 4926 4927 /** 4928 * <p>Like ON, except that the camera device also controls 4929 * the camera's flash unit, firing it in low-light 4930 * conditions.</p> 4931 * <p>The flash may be fired during a precapture sequence 4932 * (triggered by ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER) and 4933 * may be fired for captures for which the 4934 * ACAMERA_CONTROL_CAPTURE_INTENT field is set to 4935 * STILL_CAPTURE</p> 4936 * 4937 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 4938 * @see ACAMERA_CONTROL_CAPTURE_INTENT 4939 */ 4940 ACAMERA_CONTROL_AE_MODE_ON_AUTO_FLASH = 2, 4941 4942 /** 4943 * <p>Like ON, except that the camera device also controls 4944 * the camera's flash unit, always firing it for still 4945 * captures.</p> 4946 * <p>The flash may be fired during a precapture sequence 4947 * (triggered by ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER) and 4948 * will always be fired for captures for which the 4949 * ACAMERA_CONTROL_CAPTURE_INTENT field is set to 4950 * STILL_CAPTURE</p> 4951 * 4952 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 4953 * @see ACAMERA_CONTROL_CAPTURE_INTENT 4954 */ 4955 ACAMERA_CONTROL_AE_MODE_ON_ALWAYS_FLASH = 3, 4956 4957 /** 4958 * <p>Like ON_AUTO_FLASH, but with automatic red eye 4959 * reduction.</p> 4960 * <p>If deemed necessary by the camera device, a red eye 4961 * reduction flash will fire during the precapture 4962 * sequence.</p> 4963 */ 4964 ACAMERA_CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE = 4, 4965 4966} acamera_metadata_enum_android_control_ae_mode_t; 4967 4968// ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 4969typedef enum acamera_metadata_enum_acamera_control_ae_precapture_trigger { 4970 /** 4971 * <p>The trigger is idle.</p> 4972 */ 4973 ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER_IDLE = 0, 4974 4975 /** 4976 * <p>The precapture metering sequence will be started 4977 * by the camera device.</p> 4978 * <p>The exact effect of the precapture trigger depends on 4979 * the current AE mode and state.</p> 4980 */ 4981 ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER_START = 1, 4982 4983 /** 4984 * <p>The camera device will cancel any currently active or completed 4985 * precapture metering sequence, the auto-exposure routine will return to its 4986 * initial state.</p> 4987 */ 4988 ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER_CANCEL = 2, 4989 4990} acamera_metadata_enum_android_control_ae_precapture_trigger_t; 4991 4992// ACAMERA_CONTROL_AF_MODE 4993typedef enum acamera_metadata_enum_acamera_control_af_mode { 4994 /** 4995 * <p>The auto-focus routine does not control the lens; 4996 * ACAMERA_LENS_FOCUS_DISTANCE is controlled by the 4997 * application.</p> 4998 * 4999 * @see ACAMERA_LENS_FOCUS_DISTANCE 5000 */ 5001 ACAMERA_CONTROL_AF_MODE_OFF = 0, 5002 5003 /** 5004 * <p>Basic automatic focus mode.</p> 5005 * <p>In this mode, the lens does not move unless 5006 * the autofocus trigger action is called. When that trigger 5007 * is activated, AF will transition to ACTIVE_SCAN, then to 5008 * the outcome of the scan (FOCUSED or NOT_FOCUSED).</p> 5009 * <p>Always supported if lens is not fixed focus.</p> 5010 * <p>Use ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE to determine if lens 5011 * is fixed-focus.</p> 5012 * <p>Triggering AF_CANCEL resets the lens position to default, 5013 * and sets the AF state to INACTIVE.</p> 5014 * 5015 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 5016 */ 5017 ACAMERA_CONTROL_AF_MODE_AUTO = 1, 5018 5019 /** 5020 * <p>Close-up focusing mode.</p> 5021 * <p>In this mode, the lens does not move unless the 5022 * autofocus trigger action is called. When that trigger is 5023 * activated, AF will transition to ACTIVE_SCAN, then to 5024 * the outcome of the scan (FOCUSED or NOT_FOCUSED). This 5025 * mode is optimized for focusing on objects very close to 5026 * the camera.</p> 5027 * <p>When that trigger is activated, AF will transition to 5028 * ACTIVE_SCAN, then to the outcome of the scan (FOCUSED or 5029 * NOT_FOCUSED). Triggering cancel AF resets the lens 5030 * position to default, and sets the AF state to 5031 * INACTIVE.</p> 5032 */ 5033 ACAMERA_CONTROL_AF_MODE_MACRO = 2, 5034 5035 /** 5036 * <p>In this mode, the AF algorithm modifies the lens 5037 * position continually to attempt to provide a 5038 * constantly-in-focus image stream.</p> 5039 * <p>The focusing behavior should be suitable for good quality 5040 * video recording; typically this means slower focus 5041 * movement and no overshoots. When the AF trigger is not 5042 * involved, the AF algorithm should start in INACTIVE state, 5043 * and then transition into PASSIVE_SCAN and PASSIVE_FOCUSED 5044 * states as appropriate. When the AF trigger is activated, 5045 * the algorithm should immediately transition into 5046 * AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the 5047 * lens position until a cancel AF trigger is received.</p> 5048 * <p>Once cancel is received, the algorithm should transition 5049 * back to INACTIVE and resume passive scan. Note that this 5050 * behavior is not identical to CONTINUOUS_PICTURE, since an 5051 * ongoing PASSIVE_SCAN must immediately be 5052 * canceled.</p> 5053 */ 5054 ACAMERA_CONTROL_AF_MODE_CONTINUOUS_VIDEO = 3, 5055 5056 /** 5057 * <p>In this mode, the AF algorithm modifies the lens 5058 * position continually to attempt to provide a 5059 * constantly-in-focus image stream.</p> 5060 * <p>The focusing behavior should be suitable for still image 5061 * capture; typically this means focusing as fast as 5062 * possible. When the AF trigger is not involved, the AF 5063 * algorithm should start in INACTIVE state, and then 5064 * transition into PASSIVE_SCAN and PASSIVE_FOCUSED states as 5065 * appropriate as it attempts to maintain focus. When the AF 5066 * trigger is activated, the algorithm should finish its 5067 * PASSIVE_SCAN if active, and then transition into 5068 * AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the 5069 * lens position until a cancel AF trigger is received.</p> 5070 * <p>When the AF cancel trigger is activated, the algorithm 5071 * should transition back to INACTIVE and then act as if it 5072 * has just been started.</p> 5073 */ 5074 ACAMERA_CONTROL_AF_MODE_CONTINUOUS_PICTURE = 4, 5075 5076 /** 5077 * <p>Extended depth of field (digital focus) mode.</p> 5078 * <p>The camera device will produce images with an extended 5079 * depth of field automatically; no special focusing 5080 * operations need to be done before taking a picture.</p> 5081 * <p>AF triggers are ignored, and the AF state will always be 5082 * INACTIVE.</p> 5083 */ 5084 ACAMERA_CONTROL_AF_MODE_EDOF = 5, 5085 5086} acamera_metadata_enum_android_control_af_mode_t; 5087 5088// ACAMERA_CONTROL_AF_TRIGGER 5089typedef enum acamera_metadata_enum_acamera_control_af_trigger { 5090 /** 5091 * <p>The trigger is idle.</p> 5092 */ 5093 ACAMERA_CONTROL_AF_TRIGGER_IDLE = 0, 5094 5095 /** 5096 * <p>Autofocus will trigger now.</p> 5097 */ 5098 ACAMERA_CONTROL_AF_TRIGGER_START = 1, 5099 5100 /** 5101 * <p>Autofocus will return to its initial 5102 * state, and cancel any currently active trigger.</p> 5103 */ 5104 ACAMERA_CONTROL_AF_TRIGGER_CANCEL = 2, 5105 5106} acamera_metadata_enum_android_control_af_trigger_t; 5107 5108// ACAMERA_CONTROL_AWB_LOCK 5109typedef enum acamera_metadata_enum_acamera_control_awb_lock { 5110 /** 5111 * <p>Auto-white balance lock is disabled; the AWB 5112 * algorithm is free to update its parameters if in AUTO 5113 * mode.</p> 5114 */ 5115 ACAMERA_CONTROL_AWB_LOCK_OFF = 0, 5116 5117 /** 5118 * <p>Auto-white balance lock is enabled; the AWB 5119 * algorithm will not update its parameters while the lock 5120 * is active.</p> 5121 */ 5122 ACAMERA_CONTROL_AWB_LOCK_ON = 1, 5123 5124} acamera_metadata_enum_android_control_awb_lock_t; 5125 5126// ACAMERA_CONTROL_AWB_MODE 5127typedef enum acamera_metadata_enum_acamera_control_awb_mode { 5128 /** 5129 * <p>The camera device's auto-white balance routine is disabled.</p> 5130 * <p>The application-selected color transform matrix 5131 * (ACAMERA_COLOR_CORRECTION_TRANSFORM) and gains 5132 * (ACAMERA_COLOR_CORRECTION_GAINS) are used by the camera 5133 * device for manual white balance control.</p> 5134 * 5135 * @see ACAMERA_COLOR_CORRECTION_GAINS 5136 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 5137 */ 5138 ACAMERA_CONTROL_AWB_MODE_OFF = 0, 5139 5140 /** 5141 * <p>The camera device's auto-white balance routine is active.</p> 5142 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 5143 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 5144 * For devices that support the MANUAL_POST_PROCESSING capability, the 5145 * values used by the camera device for the transform and gains 5146 * will be available in the capture result for this request.</p> 5147 * 5148 * @see ACAMERA_COLOR_CORRECTION_GAINS 5149 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 5150 */ 5151 ACAMERA_CONTROL_AWB_MODE_AUTO = 1, 5152 5153 /** 5154 * <p>The camera device's auto-white balance routine is disabled; 5155 * the camera device uses incandescent light as the assumed scene 5156 * illumination for white balance.</p> 5157 * <p>While the exact white balance transforms are up to the 5158 * camera device, they will approximately match the CIE 5159 * standard illuminant A.</p> 5160 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 5161 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 5162 * For devices that support the MANUAL_POST_PROCESSING capability, the 5163 * values used by the camera device for the transform and gains 5164 * will be available in the capture result for this request.</p> 5165 * 5166 * @see ACAMERA_COLOR_CORRECTION_GAINS 5167 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 5168 */ 5169 ACAMERA_CONTROL_AWB_MODE_INCANDESCENT = 2, 5170 5171 /** 5172 * <p>The camera device's auto-white balance routine is disabled; 5173 * the camera device uses fluorescent light as the assumed scene 5174 * illumination for white balance.</p> 5175 * <p>While the exact white balance transforms are up to the 5176 * camera device, they will approximately match the CIE 5177 * standard illuminant F2.</p> 5178 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 5179 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 5180 * For devices that support the MANUAL_POST_PROCESSING capability, the 5181 * values used by the camera device for the transform and gains 5182 * will be available in the capture result for this request.</p> 5183 * 5184 * @see ACAMERA_COLOR_CORRECTION_GAINS 5185 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 5186 */ 5187 ACAMERA_CONTROL_AWB_MODE_FLUORESCENT = 3, 5188 5189 /** 5190 * <p>The camera device's auto-white balance routine is disabled; 5191 * the camera device uses warm fluorescent light as the assumed scene 5192 * illumination for white balance.</p> 5193 * <p>While the exact white balance transforms are up to the 5194 * camera device, they will approximately match the CIE 5195 * standard illuminant F4.</p> 5196 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 5197 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 5198 * For devices that support the MANUAL_POST_PROCESSING capability, the 5199 * values used by the camera device for the transform and gains 5200 * will be available in the capture result for this request.</p> 5201 * 5202 * @see ACAMERA_COLOR_CORRECTION_GAINS 5203 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 5204 */ 5205 ACAMERA_CONTROL_AWB_MODE_WARM_FLUORESCENT = 4, 5206 5207 /** 5208 * <p>The camera device's auto-white balance routine is disabled; 5209 * the camera device uses daylight light as the assumed scene 5210 * illumination for white balance.</p> 5211 * <p>While the exact white balance transforms are up to the 5212 * camera device, they will approximately match the CIE 5213 * standard illuminant D65.</p> 5214 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 5215 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 5216 * For devices that support the MANUAL_POST_PROCESSING capability, the 5217 * values used by the camera device for the transform and gains 5218 * will be available in the capture result for this request.</p> 5219 * 5220 * @see ACAMERA_COLOR_CORRECTION_GAINS 5221 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 5222 */ 5223 ACAMERA_CONTROL_AWB_MODE_DAYLIGHT = 5, 5224 5225 /** 5226 * <p>The camera device's auto-white balance routine is disabled; 5227 * the camera device uses cloudy daylight light as the assumed scene 5228 * illumination for white balance.</p> 5229 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 5230 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 5231 * For devices that support the MANUAL_POST_PROCESSING capability, the 5232 * values used by the camera device for the transform and gains 5233 * will be available in the capture result for this request.</p> 5234 * 5235 * @see ACAMERA_COLOR_CORRECTION_GAINS 5236 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 5237 */ 5238 ACAMERA_CONTROL_AWB_MODE_CLOUDY_DAYLIGHT = 6, 5239 5240 /** 5241 * <p>The camera device's auto-white balance routine is disabled; 5242 * the camera device uses twilight light as the assumed scene 5243 * illumination for white balance.</p> 5244 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 5245 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 5246 * For devices that support the MANUAL_POST_PROCESSING capability, the 5247 * values used by the camera device for the transform and gains 5248 * will be available in the capture result for this request.</p> 5249 * 5250 * @see ACAMERA_COLOR_CORRECTION_GAINS 5251 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 5252 */ 5253 ACAMERA_CONTROL_AWB_MODE_TWILIGHT = 7, 5254 5255 /** 5256 * <p>The camera device's auto-white balance routine is disabled; 5257 * the camera device uses shade light as the assumed scene 5258 * illumination for white balance.</p> 5259 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 5260 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 5261 * For devices that support the MANUAL_POST_PROCESSING capability, the 5262 * values used by the camera device for the transform and gains 5263 * will be available in the capture result for this request.</p> 5264 * 5265 * @see ACAMERA_COLOR_CORRECTION_GAINS 5266 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 5267 */ 5268 ACAMERA_CONTROL_AWB_MODE_SHADE = 8, 5269 5270} acamera_metadata_enum_android_control_awb_mode_t; 5271 5272// ACAMERA_CONTROL_CAPTURE_INTENT 5273typedef enum acamera_metadata_enum_acamera_control_capture_intent { 5274 /** 5275 * <p>The goal of this request doesn't fall into the other 5276 * categories. The camera device will default to preview-like 5277 * behavior.</p> 5278 */ 5279 ACAMERA_CONTROL_CAPTURE_INTENT_CUSTOM = 0, 5280 5281 /** 5282 * <p>This request is for a preview-like use case.</p> 5283 * <p>The precapture trigger may be used to start off a metering 5284 * w/flash sequence.</p> 5285 */ 5286 ACAMERA_CONTROL_CAPTURE_INTENT_PREVIEW = 1, 5287 5288 /** 5289 * <p>This request is for a still capture-type 5290 * use case.</p> 5291 * <p>If the flash unit is under automatic control, it may fire as needed.</p> 5292 */ 5293 ACAMERA_CONTROL_CAPTURE_INTENT_STILL_CAPTURE = 2, 5294 5295 /** 5296 * <p>This request is for a video recording 5297 * use case.</p> 5298 */ 5299 ACAMERA_CONTROL_CAPTURE_INTENT_VIDEO_RECORD = 3, 5300 5301 /** 5302 * <p>This request is for a video snapshot (still 5303 * image while recording video) use case.</p> 5304 * <p>The camera device should take the highest-quality image 5305 * possible (given the other settings) without disrupting the 5306 * frame rate of video recording. </p> 5307 */ 5308 ACAMERA_CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT = 4, 5309 5310 /** 5311 * <p>This request is for a ZSL usecase; the 5312 * application will stream full-resolution images and 5313 * reprocess one or several later for a final 5314 * capture.</p> 5315 */ 5316 ACAMERA_CONTROL_CAPTURE_INTENT_ZERO_SHUTTER_LAG = 5, 5317 5318 /** 5319 * <p>This request is for manual capture use case where 5320 * the applications want to directly control the capture parameters.</p> 5321 * <p>For example, the application may wish to manually control 5322 * ACAMERA_SENSOR_EXPOSURE_TIME, ACAMERA_SENSOR_SENSITIVITY, etc.</p> 5323 * 5324 * @see ACAMERA_SENSOR_EXPOSURE_TIME 5325 * @see ACAMERA_SENSOR_SENSITIVITY 5326 */ 5327 ACAMERA_CONTROL_CAPTURE_INTENT_MANUAL = 6, 5328 5329} acamera_metadata_enum_android_control_capture_intent_t; 5330 5331// ACAMERA_CONTROL_EFFECT_MODE 5332typedef enum acamera_metadata_enum_acamera_control_effect_mode { 5333 /** 5334 * <p>No color effect will be applied.</p> 5335 */ 5336 ACAMERA_CONTROL_EFFECT_MODE_OFF = 0, 5337 5338 /** 5339 * <p>A "monocolor" effect where the image is mapped into 5340 * a single color.</p> 5341 * <p>This will typically be grayscale.</p> 5342 */ 5343 ACAMERA_CONTROL_EFFECT_MODE_MONO = 1, 5344 5345 /** 5346 * <p>A "photo-negative" effect where the image's colors 5347 * are inverted.</p> 5348 */ 5349 ACAMERA_CONTROL_EFFECT_MODE_NEGATIVE = 2, 5350 5351 /** 5352 * <p>A "solarisation" effect (Sabattier effect) where the 5353 * image is wholly or partially reversed in 5354 * tone.</p> 5355 */ 5356 ACAMERA_CONTROL_EFFECT_MODE_SOLARIZE = 3, 5357 5358 /** 5359 * <p>A "sepia" effect where the image is mapped into warm 5360 * gray, red, and brown tones.</p> 5361 */ 5362 ACAMERA_CONTROL_EFFECT_MODE_SEPIA = 4, 5363 5364 /** 5365 * <p>A "posterization" effect where the image uses 5366 * discrete regions of tone rather than a continuous 5367 * gradient of tones.</p> 5368 */ 5369 ACAMERA_CONTROL_EFFECT_MODE_POSTERIZE = 5, 5370 5371 /** 5372 * <p>A "whiteboard" effect where the image is typically displayed 5373 * as regions of white, with black or grey details.</p> 5374 */ 5375 ACAMERA_CONTROL_EFFECT_MODE_WHITEBOARD = 6, 5376 5377 /** 5378 * <p>A "blackboard" effect where the image is typically displayed 5379 * as regions of black, with white or grey details.</p> 5380 */ 5381 ACAMERA_CONTROL_EFFECT_MODE_BLACKBOARD = 7, 5382 5383 /** 5384 * <p>An "aqua" effect where a blue hue is added to the image.</p> 5385 */ 5386 ACAMERA_CONTROL_EFFECT_MODE_AQUA = 8, 5387 5388} acamera_metadata_enum_android_control_effect_mode_t; 5389 5390// ACAMERA_CONTROL_MODE 5391typedef enum acamera_metadata_enum_acamera_control_mode { 5392 /** 5393 * <p>Full application control of pipeline.</p> 5394 * <p>All control by the device's metering and focusing (3A) 5395 * routines is disabled, and no other settings in 5396 * ACAMERA_CONTROL_* have any effect, except that 5397 * ACAMERA_CONTROL_CAPTURE_INTENT may be used by the camera 5398 * device to select post-processing values for processing 5399 * blocks that do not allow for manual control, or are not 5400 * exposed by the camera API.</p> 5401 * <p>However, the camera device's 3A routines may continue to 5402 * collect statistics and update their internal state so that 5403 * when control is switched to AUTO mode, good control values 5404 * can be immediately applied.</p> 5405 * 5406 * @see ACAMERA_CONTROL_CAPTURE_INTENT 5407 */ 5408 ACAMERA_CONTROL_MODE_OFF = 0, 5409 5410 /** 5411 * <p>Use settings for each individual 3A routine.</p> 5412 * <p>Manual control of capture parameters is disabled. All 5413 * controls in ACAMERA_CONTROL_* besides sceneMode take 5414 * effect.</p> 5415 */ 5416 ACAMERA_CONTROL_MODE_AUTO = 1, 5417 5418 /** 5419 * <p>Use a specific scene mode.</p> 5420 * <p>Enabling this disables control.aeMode, control.awbMode and 5421 * control.afMode controls; the camera device will ignore 5422 * those settings while USE_SCENE_MODE is active (except for 5423 * FACE_PRIORITY scene mode). Other control entries are still active. 5424 * This setting can only be used if scene mode is supported (i.e. 5425 * ACAMERA_CONTROL_AVAILABLE_SCENE_MODES 5426 * contain some modes other than DISABLED).</p> 5427 * 5428 * @see ACAMERA_CONTROL_AVAILABLE_SCENE_MODES 5429 */ 5430 ACAMERA_CONTROL_MODE_USE_SCENE_MODE = 2, 5431 5432 /** 5433 * <p>Same as OFF mode, except that this capture will not be 5434 * used by camera device background auto-exposure, auto-white balance and 5435 * auto-focus algorithms (3A) to update their statistics.</p> 5436 * <p>Specifically, the 3A routines are locked to the last 5437 * values set from a request with AUTO, OFF, or 5438 * USE_SCENE_MODE, and any statistics or state updates 5439 * collected from manual captures with OFF_KEEP_STATE will be 5440 * discarded by the camera device.</p> 5441 */ 5442 ACAMERA_CONTROL_MODE_OFF_KEEP_STATE = 3, 5443 5444} acamera_metadata_enum_android_control_mode_t; 5445 5446// ACAMERA_CONTROL_SCENE_MODE 5447typedef enum acamera_metadata_enum_acamera_control_scene_mode { 5448 /** 5449 * <p>Indicates that no scene modes are set for a given capture request.</p> 5450 */ 5451 ACAMERA_CONTROL_SCENE_MODE_DISABLED = 0, 5452 5453 /** 5454 * <p>If face detection support exists, use face 5455 * detection data for auto-focus, auto-white balance, and 5456 * auto-exposure routines.</p> 5457 * <p>If face detection statistics are disabled 5458 * (i.e. ACAMERA_STATISTICS_FACE_DETECT_MODE is set to OFF), 5459 * this should still operate correctly (but will not return 5460 * face detection statistics to the framework).</p> 5461 * <p>Unlike the other scene modes, ACAMERA_CONTROL_AE_MODE, 5462 * ACAMERA_CONTROL_AWB_MODE, and ACAMERA_CONTROL_AF_MODE 5463 * remain active when FACE_PRIORITY is set.</p> 5464 * 5465 * @see ACAMERA_CONTROL_AE_MODE 5466 * @see ACAMERA_CONTROL_AF_MODE 5467 * @see ACAMERA_CONTROL_AWB_MODE 5468 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 5469 */ 5470 ACAMERA_CONTROL_SCENE_MODE_FACE_PRIORITY = 1, 5471 5472 /** 5473 * <p>Optimized for photos of quickly moving objects.</p> 5474 * <p>Similar to SPORTS.</p> 5475 */ 5476 ACAMERA_CONTROL_SCENE_MODE_ACTION = 2, 5477 5478 /** 5479 * <p>Optimized for still photos of people.</p> 5480 */ 5481 ACAMERA_CONTROL_SCENE_MODE_PORTRAIT = 3, 5482 5483 /** 5484 * <p>Optimized for photos of distant macroscopic objects.</p> 5485 */ 5486 ACAMERA_CONTROL_SCENE_MODE_LANDSCAPE = 4, 5487 5488 /** 5489 * <p>Optimized for low-light settings.</p> 5490 */ 5491 ACAMERA_CONTROL_SCENE_MODE_NIGHT = 5, 5492 5493 /** 5494 * <p>Optimized for still photos of people in low-light 5495 * settings.</p> 5496 */ 5497 ACAMERA_CONTROL_SCENE_MODE_NIGHT_PORTRAIT = 6, 5498 5499 /** 5500 * <p>Optimized for dim, indoor settings where flash must 5501 * remain off.</p> 5502 */ 5503 ACAMERA_CONTROL_SCENE_MODE_THEATRE = 7, 5504 5505 /** 5506 * <p>Optimized for bright, outdoor beach settings.</p> 5507 */ 5508 ACAMERA_CONTROL_SCENE_MODE_BEACH = 8, 5509 5510 /** 5511 * <p>Optimized for bright, outdoor settings containing snow.</p> 5512 */ 5513 ACAMERA_CONTROL_SCENE_MODE_SNOW = 9, 5514 5515 /** 5516 * <p>Optimized for scenes of the setting sun.</p> 5517 */ 5518 ACAMERA_CONTROL_SCENE_MODE_SUNSET = 10, 5519 5520 /** 5521 * <p>Optimized to avoid blurry photos due to small amounts of 5522 * device motion (for example: due to hand shake).</p> 5523 */ 5524 ACAMERA_CONTROL_SCENE_MODE_STEADYPHOTO = 11, 5525 5526 /** 5527 * <p>Optimized for nighttime photos of fireworks.</p> 5528 */ 5529 ACAMERA_CONTROL_SCENE_MODE_FIREWORKS = 12, 5530 5531 /** 5532 * <p>Optimized for photos of quickly moving people.</p> 5533 * <p>Similar to ACTION.</p> 5534 */ 5535 ACAMERA_CONTROL_SCENE_MODE_SPORTS = 13, 5536 5537 /** 5538 * <p>Optimized for dim, indoor settings with multiple moving 5539 * people.</p> 5540 */ 5541 ACAMERA_CONTROL_SCENE_MODE_PARTY = 14, 5542 5543 /** 5544 * <p>Optimized for dim settings where the main light source 5545 * is a flame.</p> 5546 */ 5547 ACAMERA_CONTROL_SCENE_MODE_CANDLELIGHT = 15, 5548 5549 /** 5550 * <p>Optimized for accurately capturing a photo of barcode 5551 * for use by camera applications that wish to read the 5552 * barcode value.</p> 5553 */ 5554 ACAMERA_CONTROL_SCENE_MODE_BARCODE = 16, 5555 5556 /** 5557 * <p>Turn on a device-specific high dynamic range (HDR) mode.</p> 5558 * <p>In this scene mode, the camera device captures images 5559 * that keep a larger range of scene illumination levels 5560 * visible in the final image. For example, when taking a 5561 * picture of a object in front of a bright window, both 5562 * the object and the scene through the window may be 5563 * visible when using HDR mode, while in normal AUTO mode, 5564 * one or the other may be poorly exposed. As a tradeoff, 5565 * HDR mode generally takes much longer to capture a single 5566 * image, has no user control, and may have other artifacts 5567 * depending on the HDR method used.</p> 5568 * <p>Therefore, HDR captures operate at a much slower rate 5569 * than regular captures.</p> 5570 * <p>In this mode, on LIMITED or FULL devices, when a request 5571 * is made with a ACAMERA_CONTROL_CAPTURE_INTENT of 5572 * STILL_CAPTURE, the camera device will capture an image 5573 * using a high dynamic range capture technique. On LEGACY 5574 * devices, captures that target a JPEG-format output will 5575 * be captured with HDR, and the capture intent is not 5576 * relevant.</p> 5577 * <p>The HDR capture may involve the device capturing a burst 5578 * of images internally and combining them into one, or it 5579 * may involve the device using specialized high dynamic 5580 * range capture hardware. In all cases, a single image is 5581 * produced in response to a capture request submitted 5582 * while in HDR mode.</p> 5583 * <p>Since substantial post-processing is generally needed to 5584 * produce an HDR image, only YUV, PRIVATE, and JPEG 5585 * outputs are supported for LIMITED/FULL device HDR 5586 * captures, and only JPEG outputs are supported for LEGACY 5587 * HDR captures. Using a RAW output for HDR capture is not 5588 * supported.</p> 5589 * <p>Some devices may also support always-on HDR, which 5590 * applies HDR processing at full frame rate. For these 5591 * devices, intents other than STILL_CAPTURE will also 5592 * produce an HDR output with no frame rate impact compared 5593 * to normal operation, though the quality may be lower 5594 * than for STILL_CAPTURE intents.</p> 5595 * <p>If SCENE_MODE_HDR is used with unsupported output types 5596 * or capture intents, the images captured will be as if 5597 * the SCENE_MODE was not enabled at all.</p> 5598 * 5599 * @see ACAMERA_CONTROL_CAPTURE_INTENT 5600 */ 5601 ACAMERA_CONTROL_SCENE_MODE_HDR = 18, 5602 5603} acamera_metadata_enum_android_control_scene_mode_t; 5604 5605// ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE 5606typedef enum acamera_metadata_enum_acamera_control_video_stabilization_mode { 5607 /** 5608 * <p>Video stabilization is disabled.</p> 5609 */ 5610 ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE_OFF = 0, 5611 5612 /** 5613 * <p>Video stabilization is enabled.</p> 5614 */ 5615 ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE_ON = 1, 5616 5617} acamera_metadata_enum_android_control_video_stabilization_mode_t; 5618 5619// ACAMERA_CONTROL_AE_STATE 5620typedef enum acamera_metadata_enum_acamera_control_ae_state { 5621 /** 5622 * <p>AE is off or recently reset.</p> 5623 * <p>When a camera device is opened, it starts in 5624 * this state. This is a transient state, the camera device may skip reporting 5625 * this state in capture result.</p> 5626 */ 5627 ACAMERA_CONTROL_AE_STATE_INACTIVE = 0, 5628 5629 /** 5630 * <p>AE doesn't yet have a good set of control values 5631 * for the current scene.</p> 5632 * <p>This is a transient state, the camera device may skip 5633 * reporting this state in capture result.</p> 5634 */ 5635 ACAMERA_CONTROL_AE_STATE_SEARCHING = 1, 5636 5637 /** 5638 * <p>AE has a good set of control values for the 5639 * current scene.</p> 5640 */ 5641 ACAMERA_CONTROL_AE_STATE_CONVERGED = 2, 5642 5643 /** 5644 * <p>AE has been locked.</p> 5645 */ 5646 ACAMERA_CONTROL_AE_STATE_LOCKED = 3, 5647 5648 /** 5649 * <p>AE has a good set of control values, but flash 5650 * needs to be fired for good quality still 5651 * capture.</p> 5652 */ 5653 ACAMERA_CONTROL_AE_STATE_FLASH_REQUIRED = 4, 5654 5655 /** 5656 * <p>AE has been asked to do a precapture sequence 5657 * and is currently executing it.</p> 5658 * <p>Precapture can be triggered through setting 5659 * ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER to START. Currently 5660 * active and completed (if it causes camera device internal AE lock) precapture 5661 * metering sequence can be canceled through setting 5662 * ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER to CANCEL.</p> 5663 * <p>Once PRECAPTURE completes, AE will transition to CONVERGED 5664 * or FLASH_REQUIRED as appropriate. This is a transient 5665 * state, the camera device may skip reporting this state in 5666 * capture result.</p> 5667 * 5668 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 5669 */ 5670 ACAMERA_CONTROL_AE_STATE_PRECAPTURE = 5, 5671 5672} acamera_metadata_enum_android_control_ae_state_t; 5673 5674// ACAMERA_CONTROL_AF_STATE 5675typedef enum acamera_metadata_enum_acamera_control_af_state { 5676 /** 5677 * <p>AF is off or has not yet tried to scan/been asked 5678 * to scan.</p> 5679 * <p>When a camera device is opened, it starts in this 5680 * state. This is a transient state, the camera device may 5681 * skip reporting this state in capture 5682 * result.</p> 5683 */ 5684 ACAMERA_CONTROL_AF_STATE_INACTIVE = 0, 5685 5686 /** 5687 * <p>AF is currently performing an AF scan initiated the 5688 * camera device in a continuous autofocus mode.</p> 5689 * <p>Only used by CONTINUOUS_* AF modes. This is a transient 5690 * state, the camera device may skip reporting this state in 5691 * capture result.</p> 5692 */ 5693 ACAMERA_CONTROL_AF_STATE_PASSIVE_SCAN = 1, 5694 5695 /** 5696 * <p>AF currently believes it is in focus, but may 5697 * restart scanning at any time.</p> 5698 * <p>Only used by CONTINUOUS_* AF modes. This is a transient 5699 * state, the camera device may skip reporting this state in 5700 * capture result.</p> 5701 */ 5702 ACAMERA_CONTROL_AF_STATE_PASSIVE_FOCUSED = 2, 5703 5704 /** 5705 * <p>AF is performing an AF scan because it was 5706 * triggered by AF trigger.</p> 5707 * <p>Only used by AUTO or MACRO AF modes. This is a transient 5708 * state, the camera device may skip reporting this state in 5709 * capture result.</p> 5710 */ 5711 ACAMERA_CONTROL_AF_STATE_ACTIVE_SCAN = 3, 5712 5713 /** 5714 * <p>AF believes it is focused correctly and has locked 5715 * focus.</p> 5716 * <p>This state is reached only after an explicit START AF trigger has been 5717 * sent (ACAMERA_CONTROL_AF_TRIGGER), when good focus has been obtained.</p> 5718 * <p>The lens will remain stationary until the AF mode (ACAMERA_CONTROL_AF_MODE) is changed or 5719 * a new AF trigger is sent to the camera device (ACAMERA_CONTROL_AF_TRIGGER).</p> 5720 * 5721 * @see ACAMERA_CONTROL_AF_MODE 5722 * @see ACAMERA_CONTROL_AF_TRIGGER 5723 */ 5724 ACAMERA_CONTROL_AF_STATE_FOCUSED_LOCKED = 4, 5725 5726 /** 5727 * <p>AF has failed to focus successfully and has locked 5728 * focus.</p> 5729 * <p>This state is reached only after an explicit START AF trigger has been 5730 * sent (ACAMERA_CONTROL_AF_TRIGGER), when good focus cannot be obtained.</p> 5731 * <p>The lens will remain stationary until the AF mode (ACAMERA_CONTROL_AF_MODE) is changed or 5732 * a new AF trigger is sent to the camera device (ACAMERA_CONTROL_AF_TRIGGER).</p> 5733 * 5734 * @see ACAMERA_CONTROL_AF_MODE 5735 * @see ACAMERA_CONTROL_AF_TRIGGER 5736 */ 5737 ACAMERA_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED = 5, 5738 5739 /** 5740 * <p>AF finished a passive scan without finding focus, 5741 * and may restart scanning at any time.</p> 5742 * <p>Only used by CONTINUOUS_* AF modes. This is a transient state, the camera 5743 * device may skip reporting this state in capture result.</p> 5744 * <p>LEGACY camera devices do not support this state. When a passive 5745 * scan has finished, it will always go to PASSIVE_FOCUSED.</p> 5746 */ 5747 ACAMERA_CONTROL_AF_STATE_PASSIVE_UNFOCUSED = 6, 5748 5749} acamera_metadata_enum_android_control_af_state_t; 5750 5751// ACAMERA_CONTROL_AWB_STATE 5752typedef enum acamera_metadata_enum_acamera_control_awb_state { 5753 /** 5754 * <p>AWB is not in auto mode, or has not yet started metering.</p> 5755 * <p>When a camera device is opened, it starts in this 5756 * state. This is a transient state, the camera device may 5757 * skip reporting this state in capture 5758 * result.</p> 5759 */ 5760 ACAMERA_CONTROL_AWB_STATE_INACTIVE = 0, 5761 5762 /** 5763 * <p>AWB doesn't yet have a good set of control 5764 * values for the current scene.</p> 5765 * <p>This is a transient state, the camera device 5766 * may skip reporting this state in capture result.</p> 5767 */ 5768 ACAMERA_CONTROL_AWB_STATE_SEARCHING = 1, 5769 5770 /** 5771 * <p>AWB has a good set of control values for the 5772 * current scene.</p> 5773 */ 5774 ACAMERA_CONTROL_AWB_STATE_CONVERGED = 2, 5775 5776 /** 5777 * <p>AWB has been locked.</p> 5778 */ 5779 ACAMERA_CONTROL_AWB_STATE_LOCKED = 3, 5780 5781} acamera_metadata_enum_android_control_awb_state_t; 5782 5783// ACAMERA_CONTROL_AE_LOCK_AVAILABLE 5784typedef enum acamera_metadata_enum_acamera_control_ae_lock_available { 5785 ACAMERA_CONTROL_AE_LOCK_AVAILABLE_FALSE = 0, 5786 5787 ACAMERA_CONTROL_AE_LOCK_AVAILABLE_TRUE = 1, 5788 5789} acamera_metadata_enum_android_control_ae_lock_available_t; 5790 5791// ACAMERA_CONTROL_AWB_LOCK_AVAILABLE 5792typedef enum acamera_metadata_enum_acamera_control_awb_lock_available { 5793 ACAMERA_CONTROL_AWB_LOCK_AVAILABLE_FALSE = 0, 5794 5795 ACAMERA_CONTROL_AWB_LOCK_AVAILABLE_TRUE = 1, 5796 5797} acamera_metadata_enum_android_control_awb_lock_available_t; 5798 5799// ACAMERA_CONTROL_ENABLE_ZSL 5800typedef enum acamera_metadata_enum_acamera_control_enable_zsl { 5801 /** 5802 * <p>Requests with ACAMERA_CONTROL_CAPTURE_INTENT == STILL_CAPTURE must be captured 5803 * after previous requests.</p> 5804 * 5805 * @see ACAMERA_CONTROL_CAPTURE_INTENT 5806 */ 5807 ACAMERA_CONTROL_ENABLE_ZSL_FALSE = 0, 5808 5809 /** 5810 * <p>Requests with ACAMERA_CONTROL_CAPTURE_INTENT == STILL_CAPTURE may or may not be 5811 * captured before previous requests.</p> 5812 * 5813 * @see ACAMERA_CONTROL_CAPTURE_INTENT 5814 */ 5815 ACAMERA_CONTROL_ENABLE_ZSL_TRUE = 1, 5816 5817} acamera_metadata_enum_android_control_enable_zsl_t; 5818 5819 5820 5821// ACAMERA_EDGE_MODE 5822typedef enum acamera_metadata_enum_acamera_edge_mode { 5823 /** 5824 * <p>No edge enhancement is applied.</p> 5825 */ 5826 ACAMERA_EDGE_MODE_OFF = 0, 5827 5828 /** 5829 * <p>Apply edge enhancement at a quality level that does not slow down frame rate 5830 * relative to sensor output. It may be the same as OFF if edge enhancement will 5831 * slow down frame rate relative to sensor.</p> 5832 */ 5833 ACAMERA_EDGE_MODE_FAST = 1, 5834 5835 /** 5836 * <p>Apply high-quality edge enhancement, at a cost of possibly reduced output frame rate.</p> 5837 */ 5838 ACAMERA_EDGE_MODE_HIGH_QUALITY = 2, 5839 5840 /** 5841 * <p>Edge enhancement is applied at different levels for different output streams, 5842 * based on resolution. Streams at maximum recording resolution (see {@link 5843 * ACameraDevice_createCaptureSession}) or below have 5844 * edge enhancement applied, while higher-resolution streams have no edge enhancement 5845 * applied. The level of edge enhancement for low-resolution streams is tuned so that 5846 * frame rate is not impacted, and the quality is equal to or better than FAST (since it 5847 * is only applied to lower-resolution outputs, quality may improve from FAST).</p> 5848 * <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode 5849 * with YUV or PRIVATE reprocessing, where the application continuously captures 5850 * high-resolution intermediate buffers into a circular buffer, from which a final image is 5851 * produced via reprocessing when a user takes a picture. For such a use case, the 5852 * high-resolution buffers must not have edge enhancement applied to maximize efficiency of 5853 * preview and to avoid double-applying enhancement when reprocessed, while low-resolution 5854 * buffers (used for recording or preview, generally) need edge enhancement applied for 5855 * reasonable preview quality.</p> 5856 * <p>This mode is guaranteed to be supported by devices that support either the 5857 * YUV_REPROCESSING or PRIVATE_REPROCESSING capabilities 5858 * (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES lists either of those capabilities) and it will 5859 * be the default mode for CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG template.</p> 5860 * 5861 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 5862 */ 5863 ACAMERA_EDGE_MODE_ZERO_SHUTTER_LAG = 3, 5864 5865} acamera_metadata_enum_android_edge_mode_t; 5866 5867 5868// ACAMERA_FLASH_MODE 5869typedef enum acamera_metadata_enum_acamera_flash_mode { 5870 /** 5871 * <p>Do not fire the flash for this capture.</p> 5872 */ 5873 ACAMERA_FLASH_MODE_OFF = 0, 5874 5875 /** 5876 * <p>If the flash is available and charged, fire flash 5877 * for this capture.</p> 5878 */ 5879 ACAMERA_FLASH_MODE_SINGLE = 1, 5880 5881 /** 5882 * <p>Transition flash to continuously on.</p> 5883 */ 5884 ACAMERA_FLASH_MODE_TORCH = 2, 5885 5886} acamera_metadata_enum_android_flash_mode_t; 5887 5888// ACAMERA_FLASH_STATE 5889typedef enum acamera_metadata_enum_acamera_flash_state { 5890 /** 5891 * <p>No flash on camera.</p> 5892 */ 5893 ACAMERA_FLASH_STATE_UNAVAILABLE = 0, 5894 5895 /** 5896 * <p>Flash is charging and cannot be fired.</p> 5897 */ 5898 ACAMERA_FLASH_STATE_CHARGING = 1, 5899 5900 /** 5901 * <p>Flash is ready to fire.</p> 5902 */ 5903 ACAMERA_FLASH_STATE_READY = 2, 5904 5905 /** 5906 * <p>Flash fired for this capture.</p> 5907 */ 5908 ACAMERA_FLASH_STATE_FIRED = 3, 5909 5910 /** 5911 * <p>Flash partially illuminated this frame.</p> 5912 * <p>This is usually due to the next or previous frame having 5913 * the flash fire, and the flash spilling into this capture 5914 * due to hardware limitations.</p> 5915 */ 5916 ACAMERA_FLASH_STATE_PARTIAL = 4, 5917 5918} acamera_metadata_enum_android_flash_state_t; 5919 5920 5921// ACAMERA_FLASH_INFO_AVAILABLE 5922typedef enum acamera_metadata_enum_acamera_flash_info_available { 5923 ACAMERA_FLASH_INFO_AVAILABLE_FALSE = 0, 5924 5925 ACAMERA_FLASH_INFO_AVAILABLE_TRUE = 1, 5926 5927} acamera_metadata_enum_android_flash_info_available_t; 5928 5929 5930// ACAMERA_HOT_PIXEL_MODE 5931typedef enum acamera_metadata_enum_acamera_hot_pixel_mode { 5932 /** 5933 * <p>No hot pixel correction is applied.</p> 5934 * <p>The frame rate must not be reduced relative to sensor raw output 5935 * for this option.</p> 5936 * <p>The hotpixel map may be returned in ACAMERA_STATISTICS_HOT_PIXEL_MAP.</p> 5937 * 5938 * @see ACAMERA_STATISTICS_HOT_PIXEL_MAP 5939 */ 5940 ACAMERA_HOT_PIXEL_MODE_OFF = 0, 5941 5942 /** 5943 * <p>Hot pixel correction is applied, without reducing frame 5944 * rate relative to sensor raw output.</p> 5945 * <p>The hotpixel map may be returned in ACAMERA_STATISTICS_HOT_PIXEL_MAP.</p> 5946 * 5947 * @see ACAMERA_STATISTICS_HOT_PIXEL_MAP 5948 */ 5949 ACAMERA_HOT_PIXEL_MODE_FAST = 1, 5950 5951 /** 5952 * <p>High-quality hot pixel correction is applied, at a cost 5953 * of possibly reduced frame rate relative to sensor raw output.</p> 5954 * <p>The hotpixel map may be returned in ACAMERA_STATISTICS_HOT_PIXEL_MAP.</p> 5955 * 5956 * @see ACAMERA_STATISTICS_HOT_PIXEL_MAP 5957 */ 5958 ACAMERA_HOT_PIXEL_MODE_HIGH_QUALITY = 2, 5959 5960} acamera_metadata_enum_android_hot_pixel_mode_t; 5961 5962 5963 5964// ACAMERA_LENS_OPTICAL_STABILIZATION_MODE 5965typedef enum acamera_metadata_enum_acamera_lens_optical_stabilization_mode { 5966 /** 5967 * <p>Optical stabilization is unavailable.</p> 5968 */ 5969 ACAMERA_LENS_OPTICAL_STABILIZATION_MODE_OFF = 0, 5970 5971 /** 5972 * <p>Optical stabilization is enabled.</p> 5973 */ 5974 ACAMERA_LENS_OPTICAL_STABILIZATION_MODE_ON = 1, 5975 5976} acamera_metadata_enum_android_lens_optical_stabilization_mode_t; 5977 5978// ACAMERA_LENS_FACING 5979typedef enum acamera_metadata_enum_acamera_lens_facing { 5980 /** 5981 * <p>The camera device faces the same direction as the device's screen.</p> 5982 */ 5983 ACAMERA_LENS_FACING_FRONT = 0, 5984 5985 /** 5986 * <p>The camera device faces the opposite direction as the device's screen.</p> 5987 */ 5988 ACAMERA_LENS_FACING_BACK = 1, 5989 5990 /** 5991 * <p>The camera device is an external camera, and has no fixed facing relative to the 5992 * device's screen.</p> 5993 */ 5994 ACAMERA_LENS_FACING_EXTERNAL = 2, 5995 5996} acamera_metadata_enum_android_lens_facing_t; 5997 5998// ACAMERA_LENS_STATE 5999typedef enum acamera_metadata_enum_acamera_lens_state { 6000 /** 6001 * <p>The lens parameters (ACAMERA_LENS_FOCAL_LENGTH, ACAMERA_LENS_FOCUS_DISTANCE, 6002 * ACAMERA_LENS_FILTER_DENSITY and ACAMERA_LENS_APERTURE) are not changing.</p> 6003 * 6004 * @see ACAMERA_LENS_APERTURE 6005 * @see ACAMERA_LENS_FILTER_DENSITY 6006 * @see ACAMERA_LENS_FOCAL_LENGTH 6007 * @see ACAMERA_LENS_FOCUS_DISTANCE 6008 */ 6009 ACAMERA_LENS_STATE_STATIONARY = 0, 6010 6011 /** 6012 * <p>One or several of the lens parameters 6013 * (ACAMERA_LENS_FOCAL_LENGTH, ACAMERA_LENS_FOCUS_DISTANCE, 6014 * ACAMERA_LENS_FILTER_DENSITY or ACAMERA_LENS_APERTURE) is 6015 * currently changing.</p> 6016 * 6017 * @see ACAMERA_LENS_APERTURE 6018 * @see ACAMERA_LENS_FILTER_DENSITY 6019 * @see ACAMERA_LENS_FOCAL_LENGTH 6020 * @see ACAMERA_LENS_FOCUS_DISTANCE 6021 */ 6022 ACAMERA_LENS_STATE_MOVING = 1, 6023 6024} acamera_metadata_enum_android_lens_state_t; 6025 6026 6027// ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION 6028typedef enum acamera_metadata_enum_acamera_lens_info_focus_distance_calibration { 6029 /** 6030 * <p>The lens focus distance is not accurate, and the units used for 6031 * ACAMERA_LENS_FOCUS_DISTANCE do not correspond to any physical units.</p> 6032 * <p>Setting the lens to the same focus distance on separate occasions may 6033 * result in a different real focus distance, depending on factors such 6034 * as the orientation of the device, the age of the focusing mechanism, 6035 * and the device temperature. The focus distance value will still be 6036 * in the range of <code>[0, ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE]</code>, where 0 6037 * represents the farthest focus.</p> 6038 * 6039 * @see ACAMERA_LENS_FOCUS_DISTANCE 6040 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 6041 */ 6042 ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED = 0, 6043 6044 /** 6045 * <p>The lens focus distance is measured in diopters.</p> 6046 * <p>However, setting the lens to the same focus distance 6047 * on separate occasions may result in a different real 6048 * focus distance, depending on factors such as the 6049 * orientation of the device, the age of the focusing 6050 * mechanism, and the device temperature.</p> 6051 */ 6052 ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE = 1, 6053 6054 /** 6055 * <p>The lens focus distance is measured in diopters, and 6056 * is calibrated.</p> 6057 * <p>The lens mechanism is calibrated so that setting the 6058 * same focus distance is repeatable on multiple 6059 * occasions with good accuracy, and the focus distance 6060 * corresponds to the real physical distance to the plane 6061 * of best focus.</p> 6062 */ 6063 ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED = 2, 6064 6065} acamera_metadata_enum_android_lens_info_focus_distance_calibration_t; 6066 6067 6068// ACAMERA_NOISE_REDUCTION_MODE 6069typedef enum acamera_metadata_enum_acamera_noise_reduction_mode { 6070 /** 6071 * <p>No noise reduction is applied.</p> 6072 */ 6073 ACAMERA_NOISE_REDUCTION_MODE_OFF = 0, 6074 6075 /** 6076 * <p>Noise reduction is applied without reducing frame rate relative to sensor 6077 * output. It may be the same as OFF if noise reduction will reduce frame rate 6078 * relative to sensor.</p> 6079 */ 6080 ACAMERA_NOISE_REDUCTION_MODE_FAST = 1, 6081 6082 /** 6083 * <p>High-quality noise reduction is applied, at the cost of possibly reduced frame 6084 * rate relative to sensor output.</p> 6085 */ 6086 ACAMERA_NOISE_REDUCTION_MODE_HIGH_QUALITY = 2, 6087 6088 /** 6089 * <p>MINIMAL noise reduction is applied without reducing frame rate relative to 6090 * sensor output. </p> 6091 */ 6092 ACAMERA_NOISE_REDUCTION_MODE_MINIMAL = 3, 6093 6094 /** 6095 * <p>Noise reduction is applied at different levels for different output streams, 6096 * based on resolution. Streams at maximum recording resolution (see {@link 6097 * ACameraDevice_createCaptureSession}) or below have noise 6098 * reduction applied, while higher-resolution streams have MINIMAL (if supported) or no 6099 * noise reduction applied (if MINIMAL is not supported.) The degree of noise reduction 6100 * for low-resolution streams is tuned so that frame rate is not impacted, and the quality 6101 * is equal to or better than FAST (since it is only applied to lower-resolution outputs, 6102 * quality may improve from FAST).</p> 6103 * <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode 6104 * with YUV or PRIVATE reprocessing, where the application continuously captures 6105 * high-resolution intermediate buffers into a circular buffer, from which a final image is 6106 * produced via reprocessing when a user takes a picture. For such a use case, the 6107 * high-resolution buffers must not have noise reduction applied to maximize efficiency of 6108 * preview and to avoid over-applying noise filtering when reprocessing, while 6109 * low-resolution buffers (used for recording or preview, generally) need noise reduction 6110 * applied for reasonable preview quality.</p> 6111 * <p>This mode is guaranteed to be supported by devices that support either the 6112 * YUV_REPROCESSING or PRIVATE_REPROCESSING capabilities 6113 * (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES lists either of those capabilities) and it will 6114 * be the default mode for CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG template.</p> 6115 * 6116 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 6117 */ 6118 ACAMERA_NOISE_REDUCTION_MODE_ZERO_SHUTTER_LAG = 4, 6119 6120} acamera_metadata_enum_android_noise_reduction_mode_t; 6121 6122 6123 6124// ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 6125typedef enum acamera_metadata_enum_acamera_request_available_capabilities { 6126 /** 6127 * <p>The minimal set of capabilities that every camera 6128 * device (regardless of ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL) 6129 * supports.</p> 6130 * <p>This capability is listed by all normal devices, and 6131 * indicates that the camera device has a feature set 6132 * that's comparable to the baseline requirements for the 6133 * older android.hardware.Camera API.</p> 6134 * <p>Devices with the DEPTH_OUTPUT capability might not list this 6135 * capability, indicating that they support only depth measurement, 6136 * not standard color output.</p> 6137 * 6138 * @see ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL 6139 */ 6140 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE = 0, 6141 6142 /** 6143 * <p>The camera device can be manually controlled (3A algorithms such 6144 * as auto-exposure, and auto-focus can be bypassed). 6145 * The camera device supports basic manual control of the sensor image 6146 * acquisition related stages. This means the following controls are 6147 * guaranteed to be supported:</p> 6148 * <ul> 6149 * <li>Manual frame duration control<ul> 6150 * <li>ACAMERA_SENSOR_FRAME_DURATION</li> 6151 * <li>ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION</li> 6152 * </ul> 6153 * </li> 6154 * <li>Manual exposure control<ul> 6155 * <li>ACAMERA_SENSOR_EXPOSURE_TIME</li> 6156 * <li>ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE</li> 6157 * </ul> 6158 * </li> 6159 * <li>Manual sensitivity control<ul> 6160 * <li>ACAMERA_SENSOR_SENSITIVITY</li> 6161 * <li>ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE</li> 6162 * </ul> 6163 * </li> 6164 * <li>Manual lens control (if the lens is adjustable)<ul> 6165 * <li>ACAMERA_LENS_*</li> 6166 * </ul> 6167 * </li> 6168 * <li>Manual flash control (if a flash unit is present)<ul> 6169 * <li>ACAMERA_FLASH_*</li> 6170 * </ul> 6171 * </li> 6172 * <li>Manual black level locking<ul> 6173 * <li>ACAMERA_BLACK_LEVEL_LOCK</li> 6174 * </ul> 6175 * </li> 6176 * <li>Auto exposure lock<ul> 6177 * <li>ACAMERA_CONTROL_AE_LOCK</li> 6178 * </ul> 6179 * </li> 6180 * </ul> 6181 * <p>If any of the above 3A algorithms are enabled, then the camera 6182 * device will accurately report the values applied by 3A in the 6183 * result.</p> 6184 * <p>A given camera device may also support additional manual sensor controls, 6185 * but this capability only covers the above list of controls.</p> 6186 * <p>If this is supported, android.scaler.streamConfigurationMap will 6187 * additionally return a min frame duration that is greater than 6188 * zero for each supported size-format combination.</p> 6189 * 6190 * @see ACAMERA_BLACK_LEVEL_LOCK 6191 * @see ACAMERA_CONTROL_AE_LOCK 6192 * @see ACAMERA_SENSOR_EXPOSURE_TIME 6193 * @see ACAMERA_SENSOR_FRAME_DURATION 6194 * @see ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE 6195 * @see ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION 6196 * @see ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE 6197 * @see ACAMERA_SENSOR_SENSITIVITY 6198 */ 6199 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR = 1, 6200 6201 /** 6202 * <p>The camera device post-processing stages can be manually controlled. 6203 * The camera device supports basic manual control of the image post-processing 6204 * stages. This means the following controls are guaranteed to be supported:</p> 6205 * <ul> 6206 * <li> 6207 * <p>Manual tonemap control</p> 6208 * <ul> 6209 * <li>android.tonemap.curve</li> 6210 * <li>ACAMERA_TONEMAP_MODE</li> 6211 * <li>ACAMERA_TONEMAP_MAX_CURVE_POINTS</li> 6212 * <li>ACAMERA_TONEMAP_GAMMA</li> 6213 * <li>ACAMERA_TONEMAP_PRESET_CURVE</li> 6214 * </ul> 6215 * </li> 6216 * <li> 6217 * <p>Manual white balance control</p> 6218 * <ul> 6219 * <li>ACAMERA_COLOR_CORRECTION_TRANSFORM</li> 6220 * <li>ACAMERA_COLOR_CORRECTION_GAINS</li> 6221 * </ul> 6222 * </li> 6223 * <li>Manual lens shading map control<ul> 6224 * <li>ACAMERA_SHADING_MODE</li> 6225 * <li>ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE</li> 6226 * <li>ACAMERA_STATISTICS_LENS_SHADING_MAP</li> 6227 * <li>ACAMERA_LENS_INFO_SHADING_MAP_SIZE</li> 6228 * </ul> 6229 * </li> 6230 * <li>Manual aberration correction control (if aberration correction is supported)<ul> 6231 * <li>ACAMERA_COLOR_CORRECTION_ABERRATION_MODE</li> 6232 * <li>ACAMERA_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES</li> 6233 * </ul> 6234 * </li> 6235 * <li>Auto white balance lock<ul> 6236 * <li>ACAMERA_CONTROL_AWB_LOCK</li> 6237 * </ul> 6238 * </li> 6239 * </ul> 6240 * <p>If auto white balance is enabled, then the camera device 6241 * will accurately report the values applied by AWB in the result.</p> 6242 * <p>A given camera device may also support additional post-processing 6243 * controls, but this capability only covers the above list of controls.</p> 6244 * 6245 * @see ACAMERA_COLOR_CORRECTION_ABERRATION_MODE 6246 * @see ACAMERA_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES 6247 * @see ACAMERA_COLOR_CORRECTION_GAINS 6248 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 6249 * @see ACAMERA_CONTROL_AWB_LOCK 6250 * @see ACAMERA_LENS_INFO_SHADING_MAP_SIZE 6251 * @see ACAMERA_SHADING_MODE 6252 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP 6253 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE 6254 * @see ACAMERA_TONEMAP_GAMMA 6255 * @see ACAMERA_TONEMAP_MAX_CURVE_POINTS 6256 * @see ACAMERA_TONEMAP_MODE 6257 * @see ACAMERA_TONEMAP_PRESET_CURVE 6258 */ 6259 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING = 2, 6260 6261 /** 6262 * <p>The camera device supports outputting RAW buffers and 6263 * metadata for interpreting them.</p> 6264 * <p>Devices supporting the RAW capability allow both for 6265 * saving DNG files, and for direct application processing of 6266 * raw sensor images.</p> 6267 * <ul> 6268 * <li>RAW_SENSOR is supported as an output format.</li> 6269 * <li>The maximum available resolution for RAW_SENSOR streams 6270 * will match either the value in 6271 * ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE or 6272 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE.</li> 6273 * <li>All DNG-related optional metadata entries are provided 6274 * by the camera device.</li> 6275 * </ul> 6276 * 6277 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 6278 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 6279 */ 6280 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_RAW = 3, 6281 6282 /** 6283 * <p>The camera device supports accurately reporting the sensor settings for many of 6284 * the sensor controls while the built-in 3A algorithm is running. This allows 6285 * reporting of sensor settings even when these settings cannot be manually changed.</p> 6286 * <p>The values reported for the following controls are guaranteed to be available 6287 * in the CaptureResult, including when 3A is enabled:</p> 6288 * <ul> 6289 * <li>Exposure control<ul> 6290 * <li>ACAMERA_SENSOR_EXPOSURE_TIME</li> 6291 * </ul> 6292 * </li> 6293 * <li>Sensitivity control<ul> 6294 * <li>ACAMERA_SENSOR_SENSITIVITY</li> 6295 * </ul> 6296 * </li> 6297 * <li>Lens controls (if the lens is adjustable)<ul> 6298 * <li>ACAMERA_LENS_FOCUS_DISTANCE</li> 6299 * <li>ACAMERA_LENS_APERTURE</li> 6300 * </ul> 6301 * </li> 6302 * </ul> 6303 * <p>This capability is a subset of the MANUAL_SENSOR control capability, and will 6304 * always be included if the MANUAL_SENSOR capability is available.</p> 6305 * 6306 * @see ACAMERA_LENS_APERTURE 6307 * @see ACAMERA_LENS_FOCUS_DISTANCE 6308 * @see ACAMERA_SENSOR_EXPOSURE_TIME 6309 * @see ACAMERA_SENSOR_SENSITIVITY 6310 */ 6311 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_READ_SENSOR_SETTINGS = 5, 6312 6313 /** 6314 * <p>The camera device supports capturing high-resolution images at >= 20 frames per 6315 * second, in at least the uncompressed YUV format, when post-processing settings are set 6316 * to FAST. Additionally, maximum-resolution images can be captured at >= 10 frames 6317 * per second. Here, 'high resolution' means at least 8 megapixels, or the maximum 6318 * resolution of the device, whichever is smaller.</p> 6319 * <p>More specifically, this means that at least one output {@link 6320 * AIMAGE_FORMAT_YUV_420_888} size listed in 6321 * {@link ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS} is larger or equal to the 6322 * 'high resolution' defined above, and can be captured at at least 20 fps. 6323 * For the largest {@link AIMAGE_FORMAT_YUV_420_888} size listed in 6324 * {@link ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS}, camera device can capture this 6325 * size for at least 10 frames per second. 6326 * Also the ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES entry lists at least one FPS range 6327 * where the minimum FPS is >= 1 / minimumFrameDuration for the largest YUV_420_888 size.</p> 6328 * <p>If the device supports the {@link AIMAGE_FORMAT_RAW10}, {@link 6329 * AIMAGE_FORMAT_RAW12}, then those can also be captured at the same rate 6330 * as the maximum-size YUV_420_888 resolution is.</p> 6331 * <p>In addition, the ACAMERA_SYNC_MAX_LATENCY field is guaranted to have a value between 0 6332 * and 4, inclusive. ACAMERA_CONTROL_AE_LOCK_AVAILABLE and ACAMERA_CONTROL_AWB_LOCK_AVAILABLE 6333 * are also guaranteed to be <code>true</code> so burst capture with these two locks ON yields 6334 * consistent image output.</p> 6335 * 6336 * @see ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES 6337 * @see ACAMERA_CONTROL_AE_LOCK_AVAILABLE 6338 * @see ACAMERA_CONTROL_AWB_LOCK_AVAILABLE 6339 * @see ACAMERA_SYNC_MAX_LATENCY 6340 */ 6341 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE = 6, 6342 6343 /** 6344 * <p>The camera device can produce depth measurements from its field of view.</p> 6345 * <p>This capability requires the camera device to support the following:</p> 6346 * <ul> 6347 * <li>{@link AIMAGE_FORMAT_DEPTH16} is supported as an output format.</li> 6348 * <li>{@link AIMAGE_FORMAT_DEPTH_POINT_CLOUD} is optionally supported as an 6349 * output format.</li> 6350 * <li>This camera device, and all camera devices with the same ACAMERA_LENS_FACING, 6351 * will list the following calibration entries in {@link ACameraMetadata} from both 6352 * {@link ACameraManager_getCameraCharacteristics} and 6353 * {@link ACameraCaptureSession_captureCallback_result}:<ul> 6354 * <li>ACAMERA_LENS_POSE_TRANSLATION</li> 6355 * <li>ACAMERA_LENS_POSE_ROTATION</li> 6356 * <li>ACAMERA_LENS_INTRINSIC_CALIBRATION</li> 6357 * <li>ACAMERA_LENS_RADIAL_DISTORTION</li> 6358 * </ul> 6359 * </li> 6360 * <li>The ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE entry is listed by this device.</li> 6361 * <li>A LIMITED camera with only the DEPTH_OUTPUT capability does not have to support 6362 * normal YUV_420_888, JPEG, and PRIV-format outputs. It only has to support the DEPTH16 6363 * format.</li> 6364 * </ul> 6365 * <p>Generally, depth output operates at a slower frame rate than standard color capture, 6366 * so the DEPTH16 and DEPTH_POINT_CLOUD formats will commonly have a stall duration that 6367 * should be accounted for (see 6368 * {@link ACAMERA_DEPTH_AVAILABLE_DEPTH_STALL_DURATIONS}). 6369 * On a device that supports both depth and color-based output, to enable smooth preview, 6370 * using a repeating burst is recommended, where a depth-output target is only included 6371 * once every N frames, where N is the ratio between preview output rate and depth output 6372 * rate, including depth stall time.</p> 6373 * 6374 * @see ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE 6375 * @see ACAMERA_LENS_FACING 6376 * @see ACAMERA_LENS_INTRINSIC_CALIBRATION 6377 * @see ACAMERA_LENS_POSE_ROTATION 6378 * @see ACAMERA_LENS_POSE_TRANSLATION 6379 * @see ACAMERA_LENS_RADIAL_DISTORTION 6380 */ 6381 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT = 8, 6382 6383} acamera_metadata_enum_android_request_available_capabilities_t; 6384 6385 6386// ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS 6387typedef enum acamera_metadata_enum_acamera_scaler_available_stream_configurations { 6388 ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_OUTPUT = 0, 6389 6390 ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_INPUT = 1, 6391 6392} acamera_metadata_enum_android_scaler_available_stream_configurations_t; 6393 6394// ACAMERA_SCALER_CROPPING_TYPE 6395typedef enum acamera_metadata_enum_acamera_scaler_cropping_type { 6396 /** 6397 * <p>The camera device only supports centered crop regions.</p> 6398 */ 6399 ACAMERA_SCALER_CROPPING_TYPE_CENTER_ONLY = 0, 6400 6401 /** 6402 * <p>The camera device supports arbitrarily chosen crop regions.</p> 6403 */ 6404 ACAMERA_SCALER_CROPPING_TYPE_FREEFORM = 1, 6405 6406} acamera_metadata_enum_android_scaler_cropping_type_t; 6407 6408 6409// ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 6410typedef enum acamera_metadata_enum_acamera_sensor_reference_illuminant1 { 6411 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT = 1, 6412 6413 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_FLUORESCENT = 2, 6414 6415 /** 6416 * <p>Incandescent light</p> 6417 */ 6418 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_TUNGSTEN = 3, 6419 6420 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_FLASH = 4, 6421 6422 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_FINE_WEATHER = 9, 6423 6424 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_CLOUDY_WEATHER = 10, 6425 6426 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_SHADE = 11, 6427 6428 /** 6429 * <p>D 5700 - 7100K</p> 6430 */ 6431 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT_FLUORESCENT = 12, 6432 6433 /** 6434 * <p>N 4600 - 5400K</p> 6435 */ 6436 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_DAY_WHITE_FLUORESCENT = 13, 6437 6438 /** 6439 * <p>W 3900 - 4500K</p> 6440 */ 6441 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_COOL_WHITE_FLUORESCENT = 14, 6442 6443 /** 6444 * <p>WW 3200 - 3700K</p> 6445 */ 6446 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_WHITE_FLUORESCENT = 15, 6447 6448 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_STANDARD_A = 17, 6449 6450 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_STANDARD_B = 18, 6451 6452 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_STANDARD_C = 19, 6453 6454 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_D55 = 20, 6455 6456 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_D65 = 21, 6457 6458 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_D75 = 22, 6459 6460 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_D50 = 23, 6461 6462 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_ISO_STUDIO_TUNGSTEN = 24, 6463 6464} acamera_metadata_enum_android_sensor_reference_illuminant1_t; 6465 6466// ACAMERA_SENSOR_TEST_PATTERN_MODE 6467typedef enum acamera_metadata_enum_acamera_sensor_test_pattern_mode { 6468 /** 6469 * <p>No test pattern mode is used, and the camera 6470 * device returns captures from the image sensor.</p> 6471 * <p>This is the default if the key is not set.</p> 6472 */ 6473 ACAMERA_SENSOR_TEST_PATTERN_MODE_OFF = 0, 6474 6475 /** 6476 * <p>Each pixel in <code>[R, G_even, G_odd, B]</code> is replaced by its 6477 * respective color channel provided in 6478 * ACAMERA_SENSOR_TEST_PATTERN_DATA.</p> 6479 * <p>For example:</p> 6480 * <pre><code>android.testPatternData = [0, 0xFFFFFFFF, 0xFFFFFFFF, 0] 6481 * </code></pre> 6482 * <p>All green pixels are 100% green. All red/blue pixels are black.</p> 6483 * <pre><code>android.testPatternData = [0xFFFFFFFF, 0, 0xFFFFFFFF, 0] 6484 * </code></pre> 6485 * <p>All red pixels are 100% red. Only the odd green pixels 6486 * are 100% green. All blue pixels are 100% black.</p> 6487 * 6488 * @see ACAMERA_SENSOR_TEST_PATTERN_DATA 6489 */ 6490 ACAMERA_SENSOR_TEST_PATTERN_MODE_SOLID_COLOR = 1, 6491 6492 /** 6493 * <p>All pixel data is replaced with an 8-bar color pattern.</p> 6494 * <p>The vertical bars (left-to-right) are as follows:</p> 6495 * <ul> 6496 * <li>100% white</li> 6497 * <li>yellow</li> 6498 * <li>cyan</li> 6499 * <li>green</li> 6500 * <li>magenta</li> 6501 * <li>red</li> 6502 * <li>blue</li> 6503 * <li>black</li> 6504 * </ul> 6505 * <p>In general the image would look like the following:</p> 6506 * <pre><code>W Y C G M R B K 6507 * W Y C G M R B K 6508 * W Y C G M R B K 6509 * W Y C G M R B K 6510 * W Y C G M R B K 6511 * . . . . . . . . 6512 * . . . . . . . . 6513 * . . . . . . . . 6514 * 6515 * (B = Blue, K = Black) 6516 * </code></pre> 6517 * <p>Each bar should take up 1/8 of the sensor pixel array width. 6518 * When this is not possible, the bar size should be rounded 6519 * down to the nearest integer and the pattern can repeat 6520 * on the right side.</p> 6521 * <p>Each bar's height must always take up the full sensor 6522 * pixel array height.</p> 6523 * <p>Each pixel in this test pattern must be set to either 6524 * 0% intensity or 100% intensity.</p> 6525 */ 6526 ACAMERA_SENSOR_TEST_PATTERN_MODE_COLOR_BARS = 2, 6527 6528 /** 6529 * <p>The test pattern is similar to COLOR_BARS, except that 6530 * each bar should start at its specified color at the top, 6531 * and fade to gray at the bottom.</p> 6532 * <p>Furthermore each bar is further subdivided into a left and 6533 * right half. The left half should have a smooth gradient, 6534 * and the right half should have a quantized gradient.</p> 6535 * <p>In particular, the right half's should consist of blocks of the 6536 * same color for 1/16th active sensor pixel array width.</p> 6537 * <p>The least significant bits in the quantized gradient should 6538 * be copied from the most significant bits of the smooth gradient.</p> 6539 * <p>The height of each bar should always be a multiple of 128. 6540 * When this is not the case, the pattern should repeat at the bottom 6541 * of the image.</p> 6542 */ 6543 ACAMERA_SENSOR_TEST_PATTERN_MODE_COLOR_BARS_FADE_TO_GRAY = 3, 6544 6545 /** 6546 * <p>All pixel data is replaced by a pseudo-random sequence 6547 * generated from a PN9 512-bit sequence (typically implemented 6548 * in hardware with a linear feedback shift register).</p> 6549 * <p>The generator should be reset at the beginning of each frame, 6550 * and thus each subsequent raw frame with this test pattern should 6551 * be exactly the same as the last.</p> 6552 */ 6553 ACAMERA_SENSOR_TEST_PATTERN_MODE_PN9 = 4, 6554 6555 /** 6556 * <p>The first custom test pattern. All custom patterns that are 6557 * available only on this camera device are at least this numeric 6558 * value.</p> 6559 * <p>All of the custom test patterns will be static 6560 * (that is the raw image must not vary from frame to frame).</p> 6561 */ 6562 ACAMERA_SENSOR_TEST_PATTERN_MODE_CUSTOM1 = 256, 6563 6564} acamera_metadata_enum_android_sensor_test_pattern_mode_t; 6565 6566 6567// ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT 6568typedef enum acamera_metadata_enum_acamera_sensor_info_color_filter_arrangement { 6569 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB = 0, 6570 6571 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GRBG = 1, 6572 6573 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GBRG = 2, 6574 6575 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR = 3, 6576 6577 /** 6578 * <p>Sensor is not Bayer; output has 3 16-bit 6579 * values for each pixel, instead of just 1 16-bit value 6580 * per pixel.</p> 6581 */ 6582 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGB = 4, 6583 6584} acamera_metadata_enum_android_sensor_info_color_filter_arrangement_t; 6585 6586// ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE 6587typedef enum acamera_metadata_enum_acamera_sensor_info_timestamp_source { 6588 /** 6589 * <p>Timestamps from ACAMERA_SENSOR_TIMESTAMP are in nanoseconds and monotonic, 6590 * but can not be compared to timestamps from other subsystems 6591 * (e.g. accelerometer, gyro etc.), or other instances of the same or different 6592 * camera devices in the same system. Timestamps between streams and results for 6593 * a single camera instance are comparable, and the timestamps for all buffers 6594 * and the result metadata generated by a single capture are identical.</p> 6595 * 6596 * @see ACAMERA_SENSOR_TIMESTAMP 6597 */ 6598 ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE_UNKNOWN = 0, 6599 6600 /** 6601 * <p>Timestamps from ACAMERA_SENSOR_TIMESTAMP are in the same timebase as 6602 * <a href="https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtimeNanos">elapsedRealtimeNanos</a> 6603 * (or CLOCK_BOOTTIME), and they can be compared to other timestamps using that base.</p> 6604 * 6605 * @see ACAMERA_SENSOR_TIMESTAMP 6606 */ 6607 ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE_REALTIME = 1, 6608 6609} acamera_metadata_enum_android_sensor_info_timestamp_source_t; 6610 6611// ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED 6612typedef enum acamera_metadata_enum_acamera_sensor_info_lens_shading_applied { 6613 ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED_FALSE = 0, 6614 6615 ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED_TRUE = 1, 6616 6617} acamera_metadata_enum_android_sensor_info_lens_shading_applied_t; 6618 6619 6620// ACAMERA_SHADING_MODE 6621typedef enum acamera_metadata_enum_acamera_shading_mode { 6622 /** 6623 * <p>No lens shading correction is applied.</p> 6624 */ 6625 ACAMERA_SHADING_MODE_OFF = 0, 6626 6627 /** 6628 * <p>Apply lens shading corrections, without slowing 6629 * frame rate relative to sensor raw output</p> 6630 */ 6631 ACAMERA_SHADING_MODE_FAST = 1, 6632 6633 /** 6634 * <p>Apply high-quality lens shading correction, at the 6635 * cost of possibly reduced frame rate.</p> 6636 */ 6637 ACAMERA_SHADING_MODE_HIGH_QUALITY = 2, 6638 6639} acamera_metadata_enum_android_shading_mode_t; 6640 6641 6642// ACAMERA_STATISTICS_FACE_DETECT_MODE 6643typedef enum acamera_metadata_enum_acamera_statistics_face_detect_mode { 6644 /** 6645 * <p>Do not include face detection statistics in capture 6646 * results.</p> 6647 */ 6648 ACAMERA_STATISTICS_FACE_DETECT_MODE_OFF = 0, 6649 6650 /** 6651 * <p>Return face rectangle and confidence values only.</p> 6652 */ 6653 ACAMERA_STATISTICS_FACE_DETECT_MODE_SIMPLE = 1, 6654 6655 /** 6656 * <p>Return all face 6657 * metadata.</p> 6658 * <p>In this mode, face rectangles, scores, landmarks, and face IDs are all valid.</p> 6659 */ 6660 ACAMERA_STATISTICS_FACE_DETECT_MODE_FULL = 2, 6661 6662} acamera_metadata_enum_android_statistics_face_detect_mode_t; 6663 6664// ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE 6665typedef enum acamera_metadata_enum_acamera_statistics_hot_pixel_map_mode { 6666 /** 6667 * <p>Hot pixel map production is disabled.</p> 6668 */ 6669 ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE_OFF = 0, 6670 6671 /** 6672 * <p>Hot pixel map production is enabled.</p> 6673 */ 6674 ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE_ON = 1, 6675 6676} acamera_metadata_enum_android_statistics_hot_pixel_map_mode_t; 6677 6678// ACAMERA_STATISTICS_SCENE_FLICKER 6679typedef enum acamera_metadata_enum_acamera_statistics_scene_flicker { 6680 /** 6681 * <p>The camera device does not detect any flickering illumination 6682 * in the current scene.</p> 6683 */ 6684 ACAMERA_STATISTICS_SCENE_FLICKER_NONE = 0, 6685 6686 /** 6687 * <p>The camera device detects illumination flickering at 50Hz 6688 * in the current scene.</p> 6689 */ 6690 ACAMERA_STATISTICS_SCENE_FLICKER_50HZ = 1, 6691 6692 /** 6693 * <p>The camera device detects illumination flickering at 60Hz 6694 * in the current scene.</p> 6695 */ 6696 ACAMERA_STATISTICS_SCENE_FLICKER_60HZ = 2, 6697 6698} acamera_metadata_enum_android_statistics_scene_flicker_t; 6699 6700// ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE 6701typedef enum acamera_metadata_enum_acamera_statistics_lens_shading_map_mode { 6702 /** 6703 * <p>Do not include a lens shading map in the capture result.</p> 6704 */ 6705 ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE_OFF = 0, 6706 6707 /** 6708 * <p>Include a lens shading map in the capture result.</p> 6709 */ 6710 ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE_ON = 1, 6711 6712} acamera_metadata_enum_android_statistics_lens_shading_map_mode_t; 6713 6714 6715 6716// ACAMERA_TONEMAP_MODE 6717typedef enum acamera_metadata_enum_acamera_tonemap_mode { 6718 /** 6719 * <p>Use the tone mapping curve specified in 6720 * the ACAMERA_TONEMAPCURVE_* entries.</p> 6721 * <p>All color enhancement and tonemapping must be disabled, except 6722 * for applying the tonemapping curve specified by 6723 * android.tonemap.curve.</p> 6724 * <p>Must not slow down frame rate relative to raw 6725 * sensor output.</p> 6726 */ 6727 ACAMERA_TONEMAP_MODE_CONTRAST_CURVE = 0, 6728 6729 /** 6730 * <p>Advanced gamma mapping and color enhancement may be applied, without 6731 * reducing frame rate compared to raw sensor output.</p> 6732 */ 6733 ACAMERA_TONEMAP_MODE_FAST = 1, 6734 6735 /** 6736 * <p>High-quality gamma mapping and color enhancement will be applied, at 6737 * the cost of possibly reduced frame rate compared to raw sensor output.</p> 6738 */ 6739 ACAMERA_TONEMAP_MODE_HIGH_QUALITY = 2, 6740 6741 /** 6742 * <p>Use the gamma value specified in ACAMERA_TONEMAP_GAMMA to peform 6743 * tonemapping.</p> 6744 * <p>All color enhancement and tonemapping must be disabled, except 6745 * for applying the tonemapping curve specified by ACAMERA_TONEMAP_GAMMA.</p> 6746 * <p>Must not slow down frame rate relative to raw sensor output.</p> 6747 * 6748 * @see ACAMERA_TONEMAP_GAMMA 6749 */ 6750 ACAMERA_TONEMAP_MODE_GAMMA_VALUE = 3, 6751 6752 /** 6753 * <p>Use the preset tonemapping curve specified in 6754 * ACAMERA_TONEMAP_PRESET_CURVE to peform tonemapping.</p> 6755 * <p>All color enhancement and tonemapping must be disabled, except 6756 * for applying the tonemapping curve specified by 6757 * ACAMERA_TONEMAP_PRESET_CURVE.</p> 6758 * <p>Must not slow down frame rate relative to raw sensor output.</p> 6759 * 6760 * @see ACAMERA_TONEMAP_PRESET_CURVE 6761 */ 6762 ACAMERA_TONEMAP_MODE_PRESET_CURVE = 4, 6763 6764} acamera_metadata_enum_android_tonemap_mode_t; 6765 6766// ACAMERA_TONEMAP_PRESET_CURVE 6767typedef enum acamera_metadata_enum_acamera_tonemap_preset_curve { 6768 /** 6769 * <p>Tonemapping curve is defined by sRGB</p> 6770 */ 6771 ACAMERA_TONEMAP_PRESET_CURVE_SRGB = 0, 6772 6773 /** 6774 * <p>Tonemapping curve is defined by ITU-R BT.709</p> 6775 */ 6776 ACAMERA_TONEMAP_PRESET_CURVE_REC709 = 1, 6777 6778} acamera_metadata_enum_android_tonemap_preset_curve_t; 6779 6780 6781 6782// ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL 6783typedef enum acamera_metadata_enum_acamera_info_supported_hardware_level { 6784 /** 6785 * <p>This camera device does not have enough capabilities to qualify as a <code>FULL</code> device or 6786 * better.</p> 6787 * <p>Only the stream configurations listed in the <code>LEGACY</code> and <code>LIMITED</code> tables in the 6788 * {@link ACameraDevice_createCaptureSession} documentation are guaranteed to be supported.</p> 6789 * <p>All <code>LIMITED</code> devices support the <code>BACKWARDS_COMPATIBLE</code> capability, indicating basic 6790 * support for color image capture. The only exception is that the device may 6791 * alternatively support only the <code>DEPTH_OUTPUT</code> capability, if it can only output depth 6792 * measurements and not color images.</p> 6793 * <p><code>LIMITED</code> devices and above require the use of ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 6794 * to lock exposure metering (and calculate flash power, for cameras with flash) before 6795 * capturing a high-quality still image.</p> 6796 * <p>A <code>LIMITED</code> device that only lists the <code>BACKWARDS_COMPATIBLE</code> capability is only 6797 * required to support full-automatic operation and post-processing (<code>OFF</code> is not 6798 * supported for ACAMERA_CONTROL_AE_MODE, ACAMERA_CONTROL_AF_MODE, or 6799 * ACAMERA_CONTROL_AWB_MODE)</p> 6800 * <p>Additional capabilities may optionally be supported by a <code>LIMITED</code>-level device, and 6801 * can be checked for in ACAMERA_REQUEST_AVAILABLE_CAPABILITIES.</p> 6802 * 6803 * @see ACAMERA_CONTROL_AE_MODE 6804 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 6805 * @see ACAMERA_CONTROL_AF_MODE 6806 * @see ACAMERA_CONTROL_AWB_MODE 6807 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 6808 */ 6809 ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED = 0, 6810 6811 /** 6812 * <p>This camera device is capable of supporting advanced imaging applications.</p> 6813 * <p>The stream configurations listed in the <code>FULL</code>, <code>LEGACY</code> and <code>LIMITED</code> tables in the 6814 * {@link ACameraDevice_createCaptureSession} documentation are guaranteed to be supported.</p> 6815 * <p>A <code>FULL</code> device will support below capabilities:</p> 6816 * <ul> 6817 * <li><code>BURST_CAPTURE</code> capability (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains 6818 * <code>BURST_CAPTURE</code>)</li> 6819 * <li>Per frame control (ACAMERA_SYNC_MAX_LATENCY <code>==</code> PER_FRAME_CONTROL)</li> 6820 * <li>Manual sensor control (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains <code>MANUAL_SENSOR</code>)</li> 6821 * <li>Manual post-processing control (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains 6822 * <code>MANUAL_POST_PROCESSING</code>)</li> 6823 * <li>The required exposure time range defined in ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE</li> 6824 * <li>The required maxFrameDuration defined in ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION</li> 6825 * </ul> 6826 * <p>Note: 6827 * Pre-API level 23, FULL devices also supported arbitrary cropping region 6828 * (ACAMERA_SCALER_CROPPING_TYPE <code>== FREEFORM</code>); this requirement was relaxed in API level 6829 * 23, and <code>FULL</code> devices may only support <code>CENTERED</code> cropping.</p> 6830 * 6831 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 6832 * @see ACAMERA_SCALER_CROPPING_TYPE 6833 * @see ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE 6834 * @see ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION 6835 * @see ACAMERA_SYNC_MAX_LATENCY 6836 */ 6837 ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL_FULL = 1, 6838 6839 /** 6840 * <p>This camera device is running in backward compatibility mode.</p> 6841 * <p>Only the stream configurations listed in the <code>LEGACY</code> table in the {@link 6842 * ACameraDevice_createCaptureSession} documentation are supported.</p> 6843 * <p>A <code>LEGACY</code> device does not support per-frame control, manual sensor control, manual 6844 * post-processing, arbitrary cropping regions, and has relaxed performance constraints. 6845 * No additional capabilities beyond <code>BACKWARD_COMPATIBLE</code> will ever be listed by a 6846 * <code>LEGACY</code> device in ACAMERA_REQUEST_AVAILABLE_CAPABILITIES.</p> 6847 * <p>In addition, the ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER is not functional on <code>LEGACY</code> 6848 * devices. Instead, every request that includes a JPEG-format output target is treated 6849 * as triggering a still capture, internally executing a precapture trigger. This may 6850 * fire the flash for flash power metering during precapture, and then fire the flash 6851 * for the final capture, if a flash is available on the device and the AE mode is set to 6852 * enable the flash.</p> 6853 * 6854 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 6855 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 6856 */ 6857 ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY = 2, 6858 6859 /** 6860 * <p>This camera device is capable of YUV reprocessing and RAW data capture, in addition to 6861 * FULL-level capabilities.</p> 6862 * <p>The stream configurations listed in the <code>LEVEL_3</code>, <code>RAW</code>, <code>FULL</code>, <code>LEGACY</code> and 6863 * <code>LIMITED</code> tables in the {@link 6864 * ACameraDevice_createCaptureSession} 6865 * documentation are guaranteed to be supported.</p> 6866 * <p>The following additional capabilities are guaranteed to be supported:</p> 6867 * <ul> 6868 * <li><code>YUV_REPROCESSING</code> capability (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains 6869 * <code>YUV_REPROCESSING</code>)</li> 6870 * <li><code>RAW</code> capability (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains 6871 * <code>RAW</code>)</li> 6872 * </ul> 6873 * 6874 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 6875 */ 6876 ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL_3 = 3, 6877 6878} acamera_metadata_enum_android_info_supported_hardware_level_t; 6879 6880 6881// ACAMERA_BLACK_LEVEL_LOCK 6882typedef enum acamera_metadata_enum_acamera_black_level_lock { 6883 ACAMERA_BLACK_LEVEL_LOCK_OFF = 0, 6884 6885 ACAMERA_BLACK_LEVEL_LOCK_ON = 1, 6886 6887} acamera_metadata_enum_android_black_level_lock_t; 6888 6889 6890// ACAMERA_SYNC_FRAME_NUMBER 6891typedef enum acamera_metadata_enum_acamera_sync_frame_number { 6892 /** 6893 * <p>The current result is not yet fully synchronized to any request.</p> 6894 * <p>Synchronization is in progress, and reading metadata from this 6895 * result may include a mix of data that have taken effect since the 6896 * last synchronization time.</p> 6897 * <p>In some future result, within ACAMERA_SYNC_MAX_LATENCY frames, 6898 * this value will update to the actual frame number frame number 6899 * the result is guaranteed to be synchronized to (as long as the 6900 * request settings remain constant).</p> 6901 * 6902 * @see ACAMERA_SYNC_MAX_LATENCY 6903 */ 6904 ACAMERA_SYNC_FRAME_NUMBER_CONVERGING = -1, 6905 6906 /** 6907 * <p>The current result's synchronization status is unknown.</p> 6908 * <p>The result may have already converged, or it may be in 6909 * progress. Reading from this result may include some mix 6910 * of settings from past requests.</p> 6911 * <p>After a settings change, the new settings will eventually all 6912 * take effect for the output buffers and results. However, this 6913 * value will not change when that happens. Altering settings 6914 * rapidly may provide outcomes using mixes of settings from recent 6915 * requests.</p> 6916 * <p>This value is intended primarily for backwards compatibility with 6917 * the older camera implementations (for android.hardware.Camera).</p> 6918 */ 6919 ACAMERA_SYNC_FRAME_NUMBER_UNKNOWN = -2, 6920 6921} acamera_metadata_enum_android_sync_frame_number_t; 6922 6923// ACAMERA_SYNC_MAX_LATENCY 6924typedef enum acamera_metadata_enum_acamera_sync_max_latency { 6925 /** 6926 * <p>Every frame has the requests immediately applied.</p> 6927 * <p>Changing controls over multiple requests one after another will 6928 * produce results that have those controls applied atomically 6929 * each frame.</p> 6930 * <p>All FULL capability devices will have this as their maxLatency.</p> 6931 */ 6932 ACAMERA_SYNC_MAX_LATENCY_PER_FRAME_CONTROL = 0, 6933 6934 /** 6935 * <p>Each new frame has some subset (potentially the entire set) 6936 * of the past requests applied to the camera settings.</p> 6937 * <p>By submitting a series of identical requests, the camera device 6938 * will eventually have the camera settings applied, but it is 6939 * unknown when that exact point will be.</p> 6940 * <p>All LEGACY capability devices will have this as their maxLatency.</p> 6941 */ 6942 ACAMERA_SYNC_MAX_LATENCY_UNKNOWN = -1, 6943 6944} acamera_metadata_enum_android_sync_max_latency_t; 6945 6946 6947 6948// ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS 6949typedef enum acamera_metadata_enum_acamera_depth_available_depth_stream_configurations { 6950 ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_OUTPUT = 0, 6951 6952 ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_INPUT = 1, 6953 6954} acamera_metadata_enum_android_depth_available_depth_stream_configurations_t; 6955 6956// ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE 6957typedef enum acamera_metadata_enum_acamera_depth_depth_is_exclusive { 6958 ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE_FALSE = 0, 6959 6960 ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE_TRUE = 1, 6961 6962} acamera_metadata_enum_android_depth_depth_is_exclusive_t; 6963 6964#endif /* __ANDROID_API__ >= 24 */ 6965 6966__END_DECLS 6967 6968#endif /* _NDK_CAMERA_METADATA_TAGS_H */ 6969 6970/** @} */ 6971