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