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 44 typedef enum acamera_metadata_section { 45 ACAMERA_COLOR_CORRECTION, 46 ACAMERA_CONTROL, 47 ACAMERA_DEMOSAIC, 48 ACAMERA_EDGE, 49 ACAMERA_FLASH, 50 ACAMERA_FLASH_INFO, 51 ACAMERA_HOT_PIXEL, 52 ACAMERA_JPEG, 53 ACAMERA_LENS, 54 ACAMERA_LENS_INFO, 55 ACAMERA_NOISE_REDUCTION, 56 ACAMERA_QUIRKS, 57 ACAMERA_REQUEST, 58 ACAMERA_SCALER, 59 ACAMERA_SENSOR, 60 ACAMERA_SENSOR_INFO, 61 ACAMERA_SHADING, 62 ACAMERA_STATISTICS, 63 ACAMERA_STATISTICS_INFO, 64 ACAMERA_TONEMAP, 65 ACAMERA_LED, 66 ACAMERA_INFO, 67 ACAMERA_BLACK_LEVEL, 68 ACAMERA_SYNC, 69 ACAMERA_REPROCESS, 70 ACAMERA_DEPTH, 71 ACAMERA_LOGICAL_MULTI_CAMERA, 72 ACAMERA_DISTORTION_CORRECTION, 73 ACAMERA_HEIC, 74 ACAMERA_HEIC_INFO, 75 ACAMERA_AUTOMOTIVE, 76 ACAMERA_AUTOMOTIVE_LENS, 77 ACAMERA_EXTENSION, 78 ACAMERA_JPEGR, 79 ACAMERA_SECTION_COUNT, 80 81 ACAMERA_VENDOR = 0x8000 82 } acamera_metadata_section_t; 83 84 /** 85 * Hierarchy positions in enum space. 86 */ 87 typedef enum acamera_metadata_section_start { 88 ACAMERA_COLOR_CORRECTION_START = ACAMERA_COLOR_CORRECTION << 16, 89 ACAMERA_CONTROL_START = ACAMERA_CONTROL << 16, 90 ACAMERA_DEMOSAIC_START = ACAMERA_DEMOSAIC << 16, 91 ACAMERA_EDGE_START = ACAMERA_EDGE << 16, 92 ACAMERA_FLASH_START = ACAMERA_FLASH << 16, 93 ACAMERA_FLASH_INFO_START = ACAMERA_FLASH_INFO << 16, 94 ACAMERA_HOT_PIXEL_START = ACAMERA_HOT_PIXEL << 16, 95 ACAMERA_JPEG_START = ACAMERA_JPEG << 16, 96 ACAMERA_LENS_START = ACAMERA_LENS << 16, 97 ACAMERA_LENS_INFO_START = ACAMERA_LENS_INFO << 16, 98 ACAMERA_NOISE_REDUCTION_START = ACAMERA_NOISE_REDUCTION << 16, 99 ACAMERA_QUIRKS_START = ACAMERA_QUIRKS << 16, 100 ACAMERA_REQUEST_START = ACAMERA_REQUEST << 16, 101 ACAMERA_SCALER_START = ACAMERA_SCALER << 16, 102 ACAMERA_SENSOR_START = ACAMERA_SENSOR << 16, 103 ACAMERA_SENSOR_INFO_START = ACAMERA_SENSOR_INFO << 16, 104 ACAMERA_SHADING_START = ACAMERA_SHADING << 16, 105 ACAMERA_STATISTICS_START = ACAMERA_STATISTICS << 16, 106 ACAMERA_STATISTICS_INFO_START = ACAMERA_STATISTICS_INFO << 16, 107 ACAMERA_TONEMAP_START = ACAMERA_TONEMAP << 16, 108 ACAMERA_LED_START = ACAMERA_LED << 16, 109 ACAMERA_INFO_START = ACAMERA_INFO << 16, 110 ACAMERA_BLACK_LEVEL_START = ACAMERA_BLACK_LEVEL << 16, 111 ACAMERA_SYNC_START = ACAMERA_SYNC << 16, 112 ACAMERA_REPROCESS_START = ACAMERA_REPROCESS << 16, 113 ACAMERA_DEPTH_START = ACAMERA_DEPTH << 16, 114 ACAMERA_LOGICAL_MULTI_CAMERA_START 115 = ACAMERA_LOGICAL_MULTI_CAMERA 116 << 16, 117 ACAMERA_DISTORTION_CORRECTION_START 118 = ACAMERA_DISTORTION_CORRECTION 119 << 16, 120 ACAMERA_HEIC_START = ACAMERA_HEIC << 16, 121 ACAMERA_HEIC_INFO_START = ACAMERA_HEIC_INFO << 16, 122 ACAMERA_AUTOMOTIVE_START = ACAMERA_AUTOMOTIVE << 16, 123 ACAMERA_AUTOMOTIVE_LENS_START = ACAMERA_AUTOMOTIVE_LENS << 16, 124 ACAMERA_EXTENSION_START = ACAMERA_EXTENSION << 16, 125 ACAMERA_JPEGR_START = ACAMERA_JPEGR << 16, 126 ACAMERA_VENDOR_START = ACAMERA_VENDOR << 16 127 } acamera_metadata_section_start_t; 128 129 /** 130 * Main enum for camera metadata tags. 131 */ 132 typedef enum acamera_metadata_tag { 133 /** 134 * <p>The mode control selects how the image data is converted from the 135 * sensor's native color into linear sRGB color.</p> 136 * 137 * <p>Type: byte (acamera_metadata_enum_android_color_correction_mode_t)</p> 138 * 139 * <p>This tag may appear in: 140 * <ul> 141 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 142 * <li>ACaptureRequest</li> 143 * </ul></p> 144 * 145 * <p>When auto-white balance (AWB) is enabled with ACAMERA_CONTROL_AWB_MODE, this 146 * control is overridden by the AWB routine. When AWB is disabled, the 147 * application controls how the color mapping is performed.</p> 148 * <p>We define the expected processing pipeline below. For consistency 149 * across devices, this is always the case with TRANSFORM_MATRIX.</p> 150 * <p>When either FAST or HIGH_QUALITY is used, the camera device may 151 * do additional processing but ACAMERA_COLOR_CORRECTION_GAINS and 152 * ACAMERA_COLOR_CORRECTION_TRANSFORM will still be provided by the 153 * camera device (in the results) and be roughly correct.</p> 154 * <p>Switching to TRANSFORM_MATRIX and using the data provided from 155 * FAST or HIGH_QUALITY will yield a picture with the same white point 156 * as what was produced by the camera device in the earlier frame.</p> 157 * <p>The expected processing pipeline is as follows:</p> 158 * <p><img alt="White balance processing pipeline" src="../images/camera2/metadata/android.colorCorrection.mode/processing_pipeline.png" /></p> 159 * <p>The white balance is encoded by two values, a 4-channel white-balance 160 * gain vector (applied in the Bayer domain), and a 3x3 color transform 161 * matrix (applied after demosaic).</p> 162 * <p>The 4-channel white-balance gains are defined as:</p> 163 * <pre><code>ACAMERA_COLOR_CORRECTION_GAINS = [ R G_even G_odd B ] 164 * </code></pre> 165 * <p>where <code>G_even</code> is the gain for green pixels on even rows of the 166 * output, and <code>G_odd</code> is the gain for green pixels on the odd rows. 167 * These may be identical for a given camera device implementation; if 168 * the camera device does not support a separate gain for even/odd green 169 * channels, it will use the <code>G_even</code> value, and write <code>G_odd</code> equal to 170 * <code>G_even</code> in the output result metadata.</p> 171 * <p>The matrices for color transforms are defined as a 9-entry vector:</p> 172 * <pre><code>ACAMERA_COLOR_CORRECTION_TRANSFORM = [ I0 I1 I2 I3 I4 I5 I6 I7 I8 ] 173 * </code></pre> 174 * <p>which define a transform from input sensor colors, <code>P_in = [ r g b ]</code>, 175 * to output linear sRGB, <code>P_out = [ r' g' b' ]</code>,</p> 176 * <p>with colors as follows:</p> 177 * <pre><code>r' = I0r + I1g + I2b 178 * g' = I3r + I4g + I5b 179 * b' = I6r + I7g + I8b 180 * </code></pre> 181 * <p>Both the input and output value ranges must match. Overflow/underflow 182 * values are clipped to fit within the range.</p> 183 * 184 * @see ACAMERA_COLOR_CORRECTION_GAINS 185 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 186 * @see ACAMERA_CONTROL_AWB_MODE 187 */ 188 ACAMERA_COLOR_CORRECTION_MODE = // byte (acamera_metadata_enum_android_color_correction_mode_t) 189 ACAMERA_COLOR_CORRECTION_START, 190 /** 191 * <p>A color transform matrix to use to transform 192 * from sensor RGB color space to output linear sRGB color space.</p> 193 * 194 * <p>Type: rational[3*3]</p> 195 * 196 * <p>This tag may appear in: 197 * <ul> 198 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 199 * <li>ACaptureRequest</li> 200 * </ul></p> 201 * 202 * <p>This matrix is either set by the camera device when the request 203 * ACAMERA_COLOR_CORRECTION_MODE is not TRANSFORM_MATRIX, or 204 * directly by the application in the request when the 205 * ACAMERA_COLOR_CORRECTION_MODE is TRANSFORM_MATRIX.</p> 206 * <p>In the latter case, the camera device may round the matrix to account 207 * for precision issues; the final rounded matrix should be reported back 208 * in this matrix result metadata. The transform should keep the magnitude 209 * of the output color values within <code>[0, 1.0]</code> (assuming input color 210 * values is within the normalized range <code>[0, 1.0]</code>), or clipping may occur.</p> 211 * <p>The valid range of each matrix element varies on different devices, but 212 * values within [-1.5, 3.0] are guaranteed not to be clipped.</p> 213 * 214 * @see ACAMERA_COLOR_CORRECTION_MODE 215 */ 216 ACAMERA_COLOR_CORRECTION_TRANSFORM = // rational[3*3] 217 ACAMERA_COLOR_CORRECTION_START + 1, 218 /** 219 * <p>Gains applying to Bayer raw color channels for 220 * white-balance.</p> 221 * 222 * <p>Type: float[4]</p> 223 * 224 * <p>This tag may appear in: 225 * <ul> 226 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 227 * <li>ACaptureRequest</li> 228 * </ul></p> 229 * 230 * <p>These per-channel gains are either set by the camera device 231 * when the request ACAMERA_COLOR_CORRECTION_MODE is not 232 * TRANSFORM_MATRIX, or directly by the application in the 233 * request when the ACAMERA_COLOR_CORRECTION_MODE is 234 * TRANSFORM_MATRIX.</p> 235 * <p>The gains in the result metadata are the gains actually 236 * applied by the camera device to the current frame.</p> 237 * <p>The valid range of gains varies on different devices, but gains 238 * between [1.0, 3.0] are guaranteed not to be clipped. Even if a given 239 * device allows gains below 1.0, this is usually not recommended because 240 * this can create color artifacts.</p> 241 * 242 * @see ACAMERA_COLOR_CORRECTION_MODE 243 */ 244 ACAMERA_COLOR_CORRECTION_GAINS = // float[4] 245 ACAMERA_COLOR_CORRECTION_START + 2, 246 /** 247 * <p>Mode of operation for the chromatic aberration correction algorithm.</p> 248 * 249 * <p>Type: byte (acamera_metadata_enum_android_color_correction_aberration_mode_t)</p> 250 * 251 * <p>This tag may appear in: 252 * <ul> 253 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 254 * <li>ACaptureRequest</li> 255 * </ul></p> 256 * 257 * <p>Chromatic (color) aberration is caused by the fact that different wavelengths of light 258 * can not focus on the same point after exiting from the lens. This metadata defines 259 * the high level control of chromatic aberration correction algorithm, which aims to 260 * minimize the chromatic artifacts that may occur along the object boundaries in an 261 * image.</p> 262 * <p>FAST/HIGH_QUALITY both mean that camera device determined aberration 263 * correction will be applied. HIGH_QUALITY mode indicates that the camera device will 264 * use the highest-quality aberration correction algorithms, even if it slows down 265 * capture rate. FAST means the camera device will not slow down capture rate when 266 * applying aberration correction.</p> 267 * <p>LEGACY devices will always be in FAST mode.</p> 268 */ 269 ACAMERA_COLOR_CORRECTION_ABERRATION_MODE = // byte (acamera_metadata_enum_android_color_correction_aberration_mode_t) 270 ACAMERA_COLOR_CORRECTION_START + 3, 271 /** 272 * <p>List of aberration correction modes for ACAMERA_COLOR_CORRECTION_ABERRATION_MODE that are 273 * supported by this camera device.</p> 274 * 275 * @see ACAMERA_COLOR_CORRECTION_ABERRATION_MODE 276 * 277 * <p>Type: byte[n]</p> 278 * 279 * <p>This tag may appear in: 280 * <ul> 281 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 282 * </ul></p> 283 * 284 * <p>This key lists the valid modes for ACAMERA_COLOR_CORRECTION_ABERRATION_MODE. If no 285 * aberration correction modes are available for a device, this list will solely include 286 * OFF mode. All camera devices will support either OFF or FAST mode.</p> 287 * <p>Camera devices that support the MANUAL_POST_PROCESSING capability will always list 288 * OFF mode. This includes all FULL level devices.</p> 289 * <p>LEGACY devices will always only support FAST mode.</p> 290 * 291 * @see ACAMERA_COLOR_CORRECTION_ABERRATION_MODE 292 */ 293 ACAMERA_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES = // byte[n] 294 ACAMERA_COLOR_CORRECTION_START + 4, 295 ACAMERA_COLOR_CORRECTION_END, 296 297 /** 298 * <p>The desired setting for the camera device's auto-exposure 299 * algorithm's antibanding compensation.</p> 300 * 301 * <p>Type: byte (acamera_metadata_enum_android_control_ae_antibanding_mode_t)</p> 302 * 303 * <p>This tag may appear in: 304 * <ul> 305 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 306 * <li>ACaptureRequest</li> 307 * </ul></p> 308 * 309 * <p>Some kinds of lighting fixtures, such as some fluorescent 310 * lights, flicker at the rate of the power supply frequency 311 * (60Hz or 50Hz, depending on country). While this is 312 * typically not noticeable to a person, it can be visible to 313 * a camera device. If a camera sets its exposure time to the 314 * wrong value, the flicker may become visible in the 315 * viewfinder as flicker or in a final captured image, as a 316 * set of variable-brightness bands across the image.</p> 317 * <p>Therefore, the auto-exposure routines of camera devices 318 * include antibanding routines that ensure that the chosen 319 * exposure value will not cause such banding. The choice of 320 * exposure time depends on the rate of flicker, which the 321 * camera device can detect automatically, or the expected 322 * rate can be selected by the application using this 323 * control.</p> 324 * <p>A given camera device may not support all of the possible 325 * options for the antibanding mode. The 326 * ACAMERA_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES key contains 327 * the available modes for a given camera device.</p> 328 * <p>AUTO mode is the default if it is available on given 329 * camera device. When AUTO mode is not available, the 330 * default will be either 50HZ or 60HZ, and both 50HZ 331 * and 60HZ will be available.</p> 332 * <p>If manual exposure control is enabled (by setting 333 * ACAMERA_CONTROL_AE_MODE or ACAMERA_CONTROL_MODE to OFF), 334 * then this setting has no effect, and the application must 335 * ensure it selects exposure times that do not cause banding 336 * issues. The ACAMERA_STATISTICS_SCENE_FLICKER key can assist 337 * the application in this.</p> 338 * 339 * @see ACAMERA_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES 340 * @see ACAMERA_CONTROL_AE_MODE 341 * @see ACAMERA_CONTROL_MODE 342 * @see ACAMERA_STATISTICS_SCENE_FLICKER 343 */ 344 ACAMERA_CONTROL_AE_ANTIBANDING_MODE = // byte (acamera_metadata_enum_android_control_ae_antibanding_mode_t) 345 ACAMERA_CONTROL_START, 346 /** 347 * <p>Adjustment to auto-exposure (AE) target image 348 * brightness.</p> 349 * 350 * <p>Type: int32</p> 351 * 352 * <p>This tag may appear in: 353 * <ul> 354 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 355 * <li>ACaptureRequest</li> 356 * </ul></p> 357 * 358 * <p>The adjustment is measured as a count of steps, with the 359 * step size defined by ACAMERA_CONTROL_AE_COMPENSATION_STEP and the 360 * allowed range by ACAMERA_CONTROL_AE_COMPENSATION_RANGE.</p> 361 * <p>For example, if the exposure value (EV) step is 0.333, '6' 362 * will mean an exposure compensation of +2 EV; -3 will mean an 363 * exposure compensation of -1 EV. One EV represents a doubling 364 * of image brightness. Note that this control will only be 365 * effective if ACAMERA_CONTROL_AE_MODE <code>!=</code> OFF. This control 366 * will take effect even when ACAMERA_CONTROL_AE_LOCK <code>== true</code>.</p> 367 * <p>In the event of exposure compensation value being changed, camera device 368 * may take several frames to reach the newly requested exposure target. 369 * During that time, ACAMERA_CONTROL_AE_STATE field will be in the SEARCHING 370 * state. Once the new exposure target is reached, ACAMERA_CONTROL_AE_STATE will 371 * change from SEARCHING to either CONVERGED, LOCKED (if AE lock is enabled), or 372 * FLASH_REQUIRED (if the scene is too dark for still capture).</p> 373 * 374 * @see ACAMERA_CONTROL_AE_COMPENSATION_RANGE 375 * @see ACAMERA_CONTROL_AE_COMPENSATION_STEP 376 * @see ACAMERA_CONTROL_AE_LOCK 377 * @see ACAMERA_CONTROL_AE_MODE 378 * @see ACAMERA_CONTROL_AE_STATE 379 */ 380 ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION = // int32 381 ACAMERA_CONTROL_START + 1, 382 /** 383 * <p>Whether auto-exposure (AE) is currently locked to its latest 384 * calculated values.</p> 385 * 386 * <p>Type: byte (acamera_metadata_enum_android_control_ae_lock_t)</p> 387 * 388 * <p>This tag may appear in: 389 * <ul> 390 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 391 * <li>ACaptureRequest</li> 392 * </ul></p> 393 * 394 * <p>When set to <code>true</code> (ON), the AE algorithm is locked to its latest parameters, 395 * and will not change exposure settings until the lock is set to <code>false</code> (OFF).</p> 396 * <p>Note that even when AE is locked, the flash may be fired if 397 * the ACAMERA_CONTROL_AE_MODE is ON_AUTO_FLASH / 398 * ON_ALWAYS_FLASH / ON_AUTO_FLASH_REDEYE.</p> 399 * <p>When ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION is changed, even if the AE lock 400 * is ON, the camera device will still adjust its exposure value.</p> 401 * <p>If AE precapture is triggered (see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER) 402 * when AE is already locked, the camera device will not change the exposure time 403 * (ACAMERA_SENSOR_EXPOSURE_TIME) and sensitivity (ACAMERA_SENSOR_SENSITIVITY) 404 * parameters. The flash may be fired if the ACAMERA_CONTROL_AE_MODE 405 * is ON_AUTO_FLASH/ON_AUTO_FLASH_REDEYE and the scene is too dark. If the 406 * ACAMERA_CONTROL_AE_MODE is ON_ALWAYS_FLASH, the scene may become overexposed. 407 * Similarly, AE precapture trigger CANCEL has no effect when AE is already locked.</p> 408 * <p>When an AE precapture sequence is triggered, AE unlock will not be able to unlock 409 * the AE if AE is locked by the camera device internally during precapture metering 410 * sequence In other words, submitting requests with AE unlock has no effect for an 411 * ongoing precapture metering sequence. Otherwise, the precapture metering sequence 412 * will never succeed in a sequence of preview requests where AE lock is always set 413 * to <code>false</code>.</p> 414 * <p>Since the camera device has a pipeline of in-flight requests, the settings that 415 * get locked do not necessarily correspond to the settings that were present in the 416 * latest capture result received from the camera device, since additional captures 417 * and AE updates may have occurred even before the result was sent out. If an 418 * application is switching between automatic and manual control and wishes to eliminate 419 * any flicker during the switch, the following procedure is recommended:</p> 420 * <ol> 421 * <li>Starting in auto-AE mode:</li> 422 * <li>Lock AE</li> 423 * <li>Wait for the first result to be output that has the AE locked</li> 424 * <li>Copy exposure settings from that result into a request, set the request to manual AE</li> 425 * <li>Submit the capture request, proceed to run manual AE as desired.</li> 426 * </ol> 427 * <p>See ACAMERA_CONTROL_AE_STATE for AE lock related state transition details.</p> 428 * 429 * @see ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION 430 * @see ACAMERA_CONTROL_AE_MODE 431 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 432 * @see ACAMERA_CONTROL_AE_STATE 433 * @see ACAMERA_SENSOR_EXPOSURE_TIME 434 * @see ACAMERA_SENSOR_SENSITIVITY 435 */ 436 ACAMERA_CONTROL_AE_LOCK = // byte (acamera_metadata_enum_android_control_ae_lock_t) 437 ACAMERA_CONTROL_START + 2, 438 /** 439 * <p>The desired mode for the camera device's 440 * auto-exposure routine.</p> 441 * 442 * <p>Type: byte (acamera_metadata_enum_android_control_ae_mode_t)</p> 443 * 444 * <p>This tag may appear in: 445 * <ul> 446 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 447 * <li>ACaptureRequest</li> 448 * </ul></p> 449 * 450 * <p>This control is only effective if ACAMERA_CONTROL_MODE is 451 * AUTO.</p> 452 * <p>When set to any of the ON modes, the camera device's 453 * auto-exposure routine is enabled, overriding the 454 * application's selected exposure time, sensor sensitivity, 455 * and frame duration (ACAMERA_SENSOR_EXPOSURE_TIME, 456 * ACAMERA_SENSOR_SENSITIVITY, and 457 * ACAMERA_SENSOR_FRAME_DURATION). If one of the FLASH modes 458 * is selected, the camera device's flash unit controls are 459 * also overridden.</p> 460 * <p>The FLASH modes are only available if the camera device 461 * has a flash unit (ACAMERA_FLASH_INFO_AVAILABLE is <code>true</code>).</p> 462 * <p>If flash TORCH mode is desired, this field must be set to 463 * ON or OFF, and ACAMERA_FLASH_MODE set to TORCH.</p> 464 * <p>When set to any of the ON modes, the values chosen by the 465 * camera device auto-exposure routine for the overridden 466 * fields for a given capture will be available in its 467 * CaptureResult.</p> 468 * 469 * @see ACAMERA_CONTROL_MODE 470 * @see ACAMERA_FLASH_INFO_AVAILABLE 471 * @see ACAMERA_FLASH_MODE 472 * @see ACAMERA_SENSOR_EXPOSURE_TIME 473 * @see ACAMERA_SENSOR_FRAME_DURATION 474 * @see ACAMERA_SENSOR_SENSITIVITY 475 */ 476 ACAMERA_CONTROL_AE_MODE = // byte (acamera_metadata_enum_android_control_ae_mode_t) 477 ACAMERA_CONTROL_START + 3, 478 /** 479 * <p>List of metering areas to use for auto-exposure adjustment.</p> 480 * 481 * <p>Type: int32[5*area_count]</p> 482 * 483 * <p>This tag may appear in: 484 * <ul> 485 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 486 * <li>ACaptureRequest</li> 487 * </ul></p> 488 * 489 * <p>Not available if android.control.maxRegionsAe is 0. 490 * Otherwise will always be present.</p> 491 * <p>The maximum number of regions supported by the device is determined by the value 492 * of android.control.maxRegionsAe.</p> 493 * <p>For devices not supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate 494 * system always follows that of ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with (0,0) being 495 * the top-left pixel in the active pixel array, and 496 * (ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.width - 1, 497 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.height - 1) being the bottom-right pixel in the 498 * active pixel array.</p> 499 * <p>For devices supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate 500 * system depends on the mode being set. 501 * When the distortion correction mode is OFF, the coordinate system follows 502 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, with 503 * <code>(0, 0)</code> being the top-left pixel of the pre-correction active array, and 504 * (ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE.width - 1, 505 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE.height - 1) being the bottom-right 506 * pixel in the pre-correction active pixel array. 507 * When the distortion correction mode is not OFF, the coordinate system follows 508 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with 509 * <code>(0, 0)</code> being the top-left pixel of the active array, and 510 * (ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.width - 1, 511 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.height - 1) being the bottom-right pixel in the 512 * active pixel array.</p> 513 * <p>The weight must be within <code>[0, 1000]</code>, and represents a weight 514 * for every pixel in the area. This means that a large metering area 515 * with the same weight as a smaller area will have more effect in 516 * the metering result. Metering areas can partially overlap and the 517 * camera device will add the weights in the overlap region.</p> 518 * <p>The weights are relative to weights of other exposure metering regions, so if only one 519 * region is used, all non-zero weights will have the same effect. A region with 0 520 * weight is ignored.</p> 521 * <p>If all regions have 0 weight, then no specific metering area needs to be used by the 522 * camera device.</p> 523 * <p>If the metering region is outside the used ACAMERA_SCALER_CROP_REGION returned in 524 * capture result metadata, the camera device will ignore the sections outside the crop 525 * region and output only the intersection rectangle as the metering region in the result 526 * metadata. If the region is entirely outside the crop region, it will be ignored and 527 * not reported in the result metadata.</p> 528 * <p>When setting the AE metering regions, the application must consider the additional 529 * crop resulted from the aspect ratio differences between the preview stream and 530 * ACAMERA_SCALER_CROP_REGION. For example, if the ACAMERA_SCALER_CROP_REGION is the full 531 * active array size with 4:3 aspect ratio, and the preview stream is 16:9, 532 * the boundary of AE regions will be [0, y_crop] and 533 * [active_width, active_height - 2 * y_crop] rather than [0, 0] and 534 * [active_width, active_height], where y_crop is the additional crop due to aspect ratio 535 * mismatch.</p> 536 * <p>Starting from API level 30, the coordinate system of activeArraySize or 537 * preCorrectionActiveArraySize is used to represent post-zoomRatio field of view, not 538 * pre-zoom field of view. This means that the same aeRegions values at different 539 * ACAMERA_CONTROL_ZOOM_RATIO represent different parts of the scene. The aeRegions 540 * coordinates are relative to the activeArray/preCorrectionActiveArray representing the 541 * zoomed field of view. If ACAMERA_CONTROL_ZOOM_RATIO is set to 1.0 (default), the same 542 * aeRegions at different ACAMERA_SCALER_CROP_REGION still represent the same parts of the 543 * scene as they do before. See ACAMERA_CONTROL_ZOOM_RATIO for details. Whether to use 544 * activeArraySize or preCorrectionActiveArraySize still depends on distortion correction 545 * mode.</p> 546 * <p>For camera devices with the 547 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 548 * capability or devices where 549 * <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a> 550 * lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE">ACAMERA_SENSOR_PIXEL_MODE</a> 551 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION / 552 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION must be used as the 553 * coordinate system for requests where ACAMERA_SENSOR_PIXEL_MODE is set to 554 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 555 * <p>The data representation is <code>int[5 * area_count]</code>. 556 * Every five elements represent a metering region of <code>(xmin, ymin, xmax, ymax, weight)</code>. 557 * The rectangle is defined to be inclusive on xmin and ymin, but exclusive on xmax and 558 * ymax.</p> 559 * 560 * @see ACAMERA_CONTROL_ZOOM_RATIO 561 * @see ACAMERA_DISTORTION_CORRECTION_MODE 562 * @see ACAMERA_SCALER_CROP_REGION 563 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 564 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION 565 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 566 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION 567 * @see ACAMERA_SENSOR_PIXEL_MODE 568 */ 569 ACAMERA_CONTROL_AE_REGIONS = // int32[5*area_count] 570 ACAMERA_CONTROL_START + 4, 571 /** 572 * <p>Range over which the auto-exposure routine can 573 * adjust the capture frame rate to maintain good 574 * exposure.</p> 575 * 576 * <p>Type: int32[2]</p> 577 * 578 * <p>This tag may appear in: 579 * <ul> 580 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 581 * <li>ACaptureRequest</li> 582 * </ul></p> 583 * 584 * <p>Only constrains auto-exposure (AE) algorithm, not 585 * manual control of ACAMERA_SENSOR_EXPOSURE_TIME and 586 * ACAMERA_SENSOR_FRAME_DURATION.</p> 587 * <p>Note that the actual achievable max framerate also depends on the minimum frame 588 * duration of the output streams. The max frame rate will be 589 * <code>min(aeTargetFpsRange.maxFps, 1 / max(individual stream min durations)</code>. For example, 590 * if the application sets this key to <code>{60, 60}</code>, but the maximum minFrameDuration among 591 * all configured streams is 33ms, the maximum framerate won't be 60fps, but will be 592 * 30fps.</p> 593 * <p>To start a CaptureSession with a target FPS range different from the 594 * capture request template's default value, the application 595 * is strongly recommended to call 596 * {@link ACameraDevice_createCaptureSessionWithSessionParameters } 597 * with the target fps range before creating the capture session. The aeTargetFpsRange is 598 * typically a session parameter. Specifying it at session creation time helps avoid 599 * session reconfiguration delays in cases like 60fps or high speed recording.</p> 600 * 601 * @see ACAMERA_SENSOR_EXPOSURE_TIME 602 * @see ACAMERA_SENSOR_FRAME_DURATION 603 */ 604 ACAMERA_CONTROL_AE_TARGET_FPS_RANGE = // int32[2] 605 ACAMERA_CONTROL_START + 5, 606 /** 607 * <p>Whether the camera device will trigger a precapture 608 * metering sequence when it processes this request.</p> 609 * 610 * <p>Type: byte (acamera_metadata_enum_android_control_ae_precapture_trigger_t)</p> 611 * 612 * <p>This tag may appear in: 613 * <ul> 614 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 615 * <li>ACaptureRequest</li> 616 * </ul></p> 617 * 618 * <p>This entry is normally set to IDLE, or is not 619 * included at all in the request settings. When included and 620 * set to START, the camera device will trigger the auto-exposure (AE) 621 * precapture metering sequence.</p> 622 * <p>When set to CANCEL, the camera device will cancel any active 623 * precapture metering trigger, and return to its initial AE state. 624 * If a precapture metering sequence is already completed, and the camera 625 * device has implicitly locked the AE for subsequent still capture, the 626 * CANCEL trigger will unlock the AE and return to its initial AE state.</p> 627 * <p>The precapture sequence should be triggered before starting a 628 * high-quality still capture for final metering decisions to 629 * be made, and for firing pre-capture flash pulses to estimate 630 * scene brightness and required final capture flash power, when 631 * the flash is enabled.</p> 632 * <p>Normally, this entry should be set to START for only a 633 * single request, and the application should wait until the 634 * sequence completes before starting a new one.</p> 635 * <p>When a precapture metering sequence is finished, the camera device 636 * may lock the auto-exposure routine internally to be able to accurately expose the 637 * subsequent still capture image (<code>ACAMERA_CONTROL_CAPTURE_INTENT == STILL_CAPTURE</code>). 638 * For this case, the AE may not resume normal scan if no subsequent still capture is 639 * submitted. To ensure that the AE routine restarts normal scan, the application should 640 * submit a request with <code>ACAMERA_CONTROL_AE_LOCK == true</code>, followed by a request 641 * with <code>ACAMERA_CONTROL_AE_LOCK == false</code>, if the application decides not to submit a 642 * still capture request after the precapture sequence completes. Alternatively, for 643 * API level 23 or newer devices, the CANCEL can be used to unlock the camera device 644 * internally locked AE if the application doesn't submit a still capture request after 645 * the AE precapture trigger. Note that, the CANCEL was added in API level 23, and must not 646 * be used in devices that have earlier API levels.</p> 647 * <p>The exact effect of auto-exposure (AE) precapture trigger 648 * depends on the current AE mode and state; see 649 * ACAMERA_CONTROL_AE_STATE for AE precapture state transition 650 * details.</p> 651 * <p>On LEGACY-level devices, the precapture trigger is not supported; 652 * capturing a high-resolution JPEG image will automatically trigger a 653 * precapture sequence before the high-resolution capture, including 654 * potentially firing a pre-capture flash.</p> 655 * <p>Using the precapture trigger and the auto-focus trigger ACAMERA_CONTROL_AF_TRIGGER 656 * simultaneously is allowed. However, since these triggers often require cooperation between 657 * the auto-focus and auto-exposure routines (for example, the may need to be enabled for a 658 * focus sweep), the camera device may delay acting on a later trigger until the previous 659 * trigger has been fully handled. This may lead to longer intervals between the trigger and 660 * changes to ACAMERA_CONTROL_AE_STATE indicating the start of the precapture sequence, for 661 * example.</p> 662 * <p>If both the precapture and the auto-focus trigger are activated on the same request, then 663 * the camera device will complete them in the optimal order for that device.</p> 664 * 665 * @see ACAMERA_CONTROL_AE_LOCK 666 * @see ACAMERA_CONTROL_AE_STATE 667 * @see ACAMERA_CONTROL_AF_TRIGGER 668 * @see ACAMERA_CONTROL_CAPTURE_INTENT 669 */ 670 ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER = // byte (acamera_metadata_enum_android_control_ae_precapture_trigger_t) 671 ACAMERA_CONTROL_START + 6, 672 /** 673 * <p>Whether auto-focus (AF) is currently enabled, and what 674 * mode it is set to.</p> 675 * 676 * <p>Type: byte (acamera_metadata_enum_android_control_af_mode_t)</p> 677 * 678 * <p>This tag may appear in: 679 * <ul> 680 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 681 * <li>ACaptureRequest</li> 682 * </ul></p> 683 * 684 * <p>Only effective if ACAMERA_CONTROL_MODE = AUTO and the lens is not fixed focus 685 * (i.e. <code>ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE > 0</code>). Also note that 686 * when ACAMERA_CONTROL_AE_MODE is OFF, the behavior of AF is device 687 * dependent. It is recommended to lock AF by using ACAMERA_CONTROL_AF_TRIGGER before 688 * setting ACAMERA_CONTROL_AE_MODE to OFF, or set AF mode to OFF when AE is OFF.</p> 689 * <p>If the lens is controlled by the camera device auto-focus algorithm, 690 * the camera device will report the current AF status in ACAMERA_CONTROL_AF_STATE 691 * in result metadata.</p> 692 * 693 * @see ACAMERA_CONTROL_AE_MODE 694 * @see ACAMERA_CONTROL_AF_STATE 695 * @see ACAMERA_CONTROL_AF_TRIGGER 696 * @see ACAMERA_CONTROL_MODE 697 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 698 */ 699 ACAMERA_CONTROL_AF_MODE = // byte (acamera_metadata_enum_android_control_af_mode_t) 700 ACAMERA_CONTROL_START + 7, 701 /** 702 * <p>List of metering areas to use for auto-focus.</p> 703 * 704 * <p>Type: int32[5*area_count]</p> 705 * 706 * <p>This tag may appear in: 707 * <ul> 708 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 709 * <li>ACaptureRequest</li> 710 * </ul></p> 711 * 712 * <p>Not available if android.control.maxRegionsAf is 0. 713 * Otherwise will always be present.</p> 714 * <p>The maximum number of focus areas supported by the device is determined by the value 715 * of android.control.maxRegionsAf.</p> 716 * <p>For devices not supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate 717 * system always follows that of ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with (0,0) being 718 * the top-left pixel in the active pixel array, and 719 * (ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.width - 1, 720 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.height - 1) being the bottom-right pixel in the 721 * active pixel array.</p> 722 * <p>For devices supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate 723 * system depends on the mode being set. 724 * When the distortion correction mode is OFF, the coordinate system follows 725 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, with 726 * <code>(0, 0)</code> being the top-left pixel of the pre-correction active array, and 727 * (ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE.width - 1, 728 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE.height - 1) being the bottom-right 729 * pixel in the pre-correction active pixel array. 730 * When the distortion correction mode is not OFF, the coordinate system follows 731 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with 732 * <code>(0, 0)</code> being the top-left pixel of the active array, and 733 * (ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.width - 1, 734 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.height - 1) being the bottom-right pixel in the 735 * active pixel array.</p> 736 * <p>The weight must be within <code>[0, 1000]</code>, and represents a weight 737 * for every pixel in the area. This means that a large metering area 738 * with the same weight as a smaller area will have more effect in 739 * the metering result. Metering areas can partially overlap and the 740 * camera device will add the weights in the overlap region.</p> 741 * <p>The weights are relative to weights of other metering regions, so if only one region 742 * is used, all non-zero weights will have the same effect. A region with 0 weight is 743 * ignored.</p> 744 * <p>If all regions have 0 weight, then no specific metering area needs to be used by the 745 * camera device. The capture result will either be a zero weight region as well, or 746 * the region selected by the camera device as the focus area of interest.</p> 747 * <p>If the metering region is outside the used ACAMERA_SCALER_CROP_REGION returned in 748 * capture result metadata, the camera device will ignore the sections outside the crop 749 * region and output only the intersection rectangle as the metering region in the result 750 * metadata. If the region is entirely outside the crop region, it will be ignored and 751 * not reported in the result metadata.</p> 752 * <p>When setting the AF metering regions, the application must consider the additional 753 * crop resulted from the aspect ratio differences between the preview stream and 754 * ACAMERA_SCALER_CROP_REGION. For example, if the ACAMERA_SCALER_CROP_REGION is the full 755 * active array size with 4:3 aspect ratio, and the preview stream is 16:9, 756 * the boundary of AF regions will be [0, y_crop] and 757 * [active_width, active_height - 2 * y_crop] rather than [0, 0] and 758 * [active_width, active_height], where y_crop is the additional crop due to aspect ratio 759 * mismatch.</p> 760 * <p>Starting from API level 30, the coordinate system of activeArraySize or 761 * preCorrectionActiveArraySize is used to represent post-zoomRatio field of view, not 762 * pre-zoom field of view. This means that the same afRegions values at different 763 * ACAMERA_CONTROL_ZOOM_RATIO represent different parts of the scene. The afRegions 764 * coordinates are relative to the activeArray/preCorrectionActiveArray representing the 765 * zoomed field of view. If ACAMERA_CONTROL_ZOOM_RATIO is set to 1.0 (default), the same 766 * afRegions at different ACAMERA_SCALER_CROP_REGION still represent the same parts of the 767 * scene as they do before. See ACAMERA_CONTROL_ZOOM_RATIO for details. Whether to use 768 * activeArraySize or preCorrectionActiveArraySize still depends on distortion correction 769 * mode.</p> 770 * <p>For camera devices with the 771 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 772 * capability or devices where 773 * <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a> 774 * lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE">ACAMERA_SENSOR_PIXEL_MODE</a>, 775 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION / 776 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION must be used as the 777 * coordinate system for requests where ACAMERA_SENSOR_PIXEL_MODE is set to 778 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 779 * <p>The data representation is <code>int[5 * area_count]</code>. 780 * Every five elements represent a metering region of <code>(xmin, ymin, xmax, ymax, weight)</code>. 781 * The rectangle is defined to be inclusive on xmin and ymin, but exclusive on xmax and 782 * ymax.</p> 783 * 784 * @see ACAMERA_CONTROL_ZOOM_RATIO 785 * @see ACAMERA_DISTORTION_CORRECTION_MODE 786 * @see ACAMERA_SCALER_CROP_REGION 787 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 788 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION 789 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 790 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION 791 * @see ACAMERA_SENSOR_PIXEL_MODE 792 */ 793 ACAMERA_CONTROL_AF_REGIONS = // int32[5*area_count] 794 ACAMERA_CONTROL_START + 8, 795 /** 796 * <p>Whether the camera device will trigger autofocus for this request.</p> 797 * 798 * <p>Type: byte (acamera_metadata_enum_android_control_af_trigger_t)</p> 799 * 800 * <p>This tag may appear in: 801 * <ul> 802 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 803 * <li>ACaptureRequest</li> 804 * </ul></p> 805 * 806 * <p>This entry is normally set to IDLE, or is not 807 * included at all in the request settings.</p> 808 * <p>When included and set to START, the camera device will trigger the 809 * autofocus algorithm. If autofocus is disabled, this trigger has no effect.</p> 810 * <p>When set to CANCEL, the camera device will cancel any active trigger, 811 * and return to its initial AF state.</p> 812 * <p>Generally, applications should set this entry to START or CANCEL for only a 813 * single capture, and then return it to IDLE (or not set at all). Specifying 814 * START for multiple captures in a row means restarting the AF operation over 815 * and over again.</p> 816 * <p>See ACAMERA_CONTROL_AF_STATE for what the trigger means for each AF mode.</p> 817 * <p>Using the autofocus trigger and the precapture trigger ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 818 * simultaneously is allowed. However, since these triggers often require cooperation between 819 * the auto-focus and auto-exposure routines (for example, the may need to be enabled for a 820 * focus sweep), the camera device may delay acting on a later trigger until the previous 821 * trigger has been fully handled. This may lead to longer intervals between the trigger and 822 * changes to ACAMERA_CONTROL_AF_STATE, for example.</p> 823 * 824 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 825 * @see ACAMERA_CONTROL_AF_STATE 826 */ 827 ACAMERA_CONTROL_AF_TRIGGER = // byte (acamera_metadata_enum_android_control_af_trigger_t) 828 ACAMERA_CONTROL_START + 9, 829 /** 830 * <p>Whether auto-white balance (AWB) is currently locked to its 831 * latest calculated values.</p> 832 * 833 * <p>Type: byte (acamera_metadata_enum_android_control_awb_lock_t)</p> 834 * 835 * <p>This tag may appear in: 836 * <ul> 837 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 838 * <li>ACaptureRequest</li> 839 * </ul></p> 840 * 841 * <p>When set to <code>true</code> (ON), the AWB algorithm is locked to its latest parameters, 842 * and will not change color balance settings until the lock is set to <code>false</code> (OFF).</p> 843 * <p>Since the camera device has a pipeline of in-flight requests, the settings that 844 * get locked do not necessarily correspond to the settings that were present in the 845 * latest capture result received from the camera device, since additional captures 846 * and AWB updates may have occurred even before the result was sent out. If an 847 * application is switching between automatic and manual control and wishes to eliminate 848 * any flicker during the switch, the following procedure is recommended:</p> 849 * <ol> 850 * <li>Starting in auto-AWB mode:</li> 851 * <li>Lock AWB</li> 852 * <li>Wait for the first result to be output that has the AWB locked</li> 853 * <li>Copy AWB settings from that result into a request, set the request to manual AWB</li> 854 * <li>Submit the capture request, proceed to run manual AWB as desired.</li> 855 * </ol> 856 * <p>Note that AWB lock is only meaningful when 857 * ACAMERA_CONTROL_AWB_MODE is in the AUTO mode; in other modes, 858 * AWB is already fixed to a specific setting.</p> 859 * <p>Some LEGACY devices may not support ON; the value is then overridden to OFF.</p> 860 * 861 * @see ACAMERA_CONTROL_AWB_MODE 862 */ 863 ACAMERA_CONTROL_AWB_LOCK = // byte (acamera_metadata_enum_android_control_awb_lock_t) 864 ACAMERA_CONTROL_START + 10, 865 /** 866 * <p>Whether auto-white balance (AWB) is currently setting the color 867 * transform fields, and what its illumination target 868 * is.</p> 869 * 870 * <p>Type: byte (acamera_metadata_enum_android_control_awb_mode_t)</p> 871 * 872 * <p>This tag may appear in: 873 * <ul> 874 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 875 * <li>ACaptureRequest</li> 876 * </ul></p> 877 * 878 * <p>This control is only effective if ACAMERA_CONTROL_MODE is AUTO.</p> 879 * <p>When set to the AUTO mode, the camera device's auto-white balance 880 * routine is enabled, overriding the application's selected 881 * ACAMERA_COLOR_CORRECTION_TRANSFORM, ACAMERA_COLOR_CORRECTION_GAINS and 882 * ACAMERA_COLOR_CORRECTION_MODE. Note that when ACAMERA_CONTROL_AE_MODE 883 * is OFF, the behavior of AWB is device dependent. It is recommended to 884 * also set AWB mode to OFF or lock AWB by using ACAMERA_CONTROL_AWB_LOCK before 885 * setting AE mode to OFF.</p> 886 * <p>When set to the OFF mode, the camera device's auto-white balance 887 * routine is disabled. The application manually controls the white 888 * balance by ACAMERA_COLOR_CORRECTION_TRANSFORM, ACAMERA_COLOR_CORRECTION_GAINS 889 * and ACAMERA_COLOR_CORRECTION_MODE.</p> 890 * <p>When set to any other modes, the camera device's auto-white 891 * balance routine is disabled. The camera device uses each 892 * particular illumination target for white balance 893 * adjustment. The application's values for 894 * ACAMERA_COLOR_CORRECTION_TRANSFORM, 895 * ACAMERA_COLOR_CORRECTION_GAINS and 896 * ACAMERA_COLOR_CORRECTION_MODE are ignored.</p> 897 * 898 * @see ACAMERA_COLOR_CORRECTION_GAINS 899 * @see ACAMERA_COLOR_CORRECTION_MODE 900 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 901 * @see ACAMERA_CONTROL_AE_MODE 902 * @see ACAMERA_CONTROL_AWB_LOCK 903 * @see ACAMERA_CONTROL_MODE 904 */ 905 ACAMERA_CONTROL_AWB_MODE = // byte (acamera_metadata_enum_android_control_awb_mode_t) 906 ACAMERA_CONTROL_START + 11, 907 /** 908 * <p>List of metering areas to use for auto-white-balance illuminant 909 * estimation.</p> 910 * 911 * <p>Type: int32[5*area_count]</p> 912 * 913 * <p>This tag may appear in: 914 * <ul> 915 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 916 * <li>ACaptureRequest</li> 917 * </ul></p> 918 * 919 * <p>Not available if android.control.maxRegionsAwb is 0. 920 * Otherwise will always be present.</p> 921 * <p>The maximum number of regions supported by the device is determined by the value 922 * of android.control.maxRegionsAwb.</p> 923 * <p>For devices not supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate 924 * system always follows that of ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with (0,0) being 925 * the top-left pixel in the active pixel array, and 926 * (ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.width - 1, 927 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.height - 1) being the bottom-right pixel in the 928 * active pixel array.</p> 929 * <p>For devices supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate 930 * system depends on the mode being set. 931 * When the distortion correction mode is OFF, the coordinate system follows 932 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, with 933 * <code>(0, 0)</code> being the top-left pixel of the pre-correction active array, and 934 * (ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE.width - 1, 935 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE.height - 1) being the bottom-right 936 * pixel in the pre-correction active pixel array. 937 * When the distortion correction mode is not OFF, the coordinate system follows 938 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with 939 * <code>(0, 0)</code> being the top-left pixel of the active array, and 940 * (ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.width - 1, 941 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.height - 1) being the bottom-right pixel in the 942 * active pixel array.</p> 943 * <p>The weight must range from 0 to 1000, and represents a weight 944 * for every pixel in the area. This means that a large metering area 945 * with the same weight as a smaller area will have more effect in 946 * the metering result. Metering areas can partially overlap and the 947 * camera device will add the weights in the overlap region.</p> 948 * <p>The weights are relative to weights of other white balance metering regions, so if 949 * only one region is used, all non-zero weights will have the same effect. A region with 950 * 0 weight is ignored.</p> 951 * <p>If all regions have 0 weight, then no specific metering area needs to be used by the 952 * camera device.</p> 953 * <p>If the metering region is outside the used ACAMERA_SCALER_CROP_REGION returned in 954 * capture result metadata, the camera device will ignore the sections outside the crop 955 * region and output only the intersection rectangle as the metering region in the result 956 * metadata. If the region is entirely outside the crop region, it will be ignored and 957 * not reported in the result metadata.</p> 958 * <p>When setting the AWB metering regions, the application must consider the additional 959 * crop resulted from the aspect ratio differences between the preview stream and 960 * ACAMERA_SCALER_CROP_REGION. For example, if the ACAMERA_SCALER_CROP_REGION is the full 961 * active array size with 4:3 aspect ratio, and the preview stream is 16:9, 962 * the boundary of AWB regions will be [0, y_crop] and 963 * [active_width, active_height - 2 * y_crop] rather than [0, 0] and 964 * [active_width, active_height], where y_crop is the additional crop due to aspect ratio 965 * mismatch.</p> 966 * <p>Starting from API level 30, the coordinate system of activeArraySize or 967 * preCorrectionActiveArraySize is used to represent post-zoomRatio field of view, not 968 * pre-zoom field of view. This means that the same awbRegions values at different 969 * ACAMERA_CONTROL_ZOOM_RATIO represent different parts of the scene. The awbRegions 970 * coordinates are relative to the activeArray/preCorrectionActiveArray representing the 971 * zoomed field of view. If ACAMERA_CONTROL_ZOOM_RATIO is set to 1.0 (default), the same 972 * awbRegions at different ACAMERA_SCALER_CROP_REGION still represent the same parts of 973 * the scene as they do before. See ACAMERA_CONTROL_ZOOM_RATIO for details. Whether to use 974 * activeArraySize or preCorrectionActiveArraySize still depends on distortion correction 975 * mode.</p> 976 * <p>For camera devices with the 977 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 978 * capability or devices where 979 * <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a> 980 * lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE">ACAMERA_SENSOR_PIXEL_MODE</a>, 981 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION / 982 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION must be used as the 983 * coordinate system for requests where ACAMERA_SENSOR_PIXEL_MODE is set to 984 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 985 * <p>The data representation is <code>int[5 * area_count]</code>. 986 * Every five elements represent a metering region of <code>(xmin, ymin, xmax, ymax, weight)</code>. 987 * The rectangle is defined to be inclusive on xmin and ymin, but exclusive on xmax and 988 * ymax.</p> 989 * 990 * @see ACAMERA_CONTROL_ZOOM_RATIO 991 * @see ACAMERA_DISTORTION_CORRECTION_MODE 992 * @see ACAMERA_SCALER_CROP_REGION 993 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 994 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION 995 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 996 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION 997 * @see ACAMERA_SENSOR_PIXEL_MODE 998 */ 999 ACAMERA_CONTROL_AWB_REGIONS = // int32[5*area_count] 1000 ACAMERA_CONTROL_START + 12, 1001 /** 1002 * <p>Information to the camera device 3A (auto-exposure, 1003 * auto-focus, auto-white balance) routines about the purpose 1004 * of this capture, to help the camera device to decide optimal 3A 1005 * strategy.</p> 1006 * 1007 * <p>Type: byte (acamera_metadata_enum_android_control_capture_intent_t)</p> 1008 * 1009 * <p>This tag may appear in: 1010 * <ul> 1011 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1012 * <li>ACaptureRequest</li> 1013 * </ul></p> 1014 * 1015 * <p>This control (except for MANUAL) is only effective if 1016 * <code>ACAMERA_CONTROL_MODE != OFF</code> and any 3A routine is active.</p> 1017 * <p>All intents are supported by all devices, except that:</p> 1018 * <ul> 1019 * <li>ZERO_SHUTTER_LAG will be supported if ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains 1020 * PRIVATE_REPROCESSING or YUV_REPROCESSING.</li> 1021 * <li>MANUAL will be supported if ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains 1022 * MANUAL_SENSOR.</li> 1023 * <li>MOTION_TRACKING will be supported if ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains 1024 * MOTION_TRACKING.</li> 1025 * </ul> 1026 * 1027 * @see ACAMERA_CONTROL_MODE 1028 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 1029 */ 1030 ACAMERA_CONTROL_CAPTURE_INTENT = // byte (acamera_metadata_enum_android_control_capture_intent_t) 1031 ACAMERA_CONTROL_START + 13, 1032 /** 1033 * <p>A special color effect to apply.</p> 1034 * 1035 * <p>Type: byte (acamera_metadata_enum_android_control_effect_mode_t)</p> 1036 * 1037 * <p>This tag may appear in: 1038 * <ul> 1039 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1040 * <li>ACaptureRequest</li> 1041 * </ul></p> 1042 * 1043 * <p>When this mode is set, a color effect will be applied 1044 * to images produced by the camera device. The interpretation 1045 * and implementation of these color effects is left to the 1046 * implementor of the camera device, and should not be 1047 * depended on to be consistent (or present) across all 1048 * devices.</p> 1049 */ 1050 ACAMERA_CONTROL_EFFECT_MODE = // byte (acamera_metadata_enum_android_control_effect_mode_t) 1051 ACAMERA_CONTROL_START + 14, 1052 /** 1053 * <p>Overall mode of 3A (auto-exposure, auto-white-balance, auto-focus) control 1054 * routines.</p> 1055 * 1056 * <p>Type: byte (acamera_metadata_enum_android_control_mode_t)</p> 1057 * 1058 * <p>This tag may appear in: 1059 * <ul> 1060 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1061 * <li>ACaptureRequest</li> 1062 * </ul></p> 1063 * 1064 * <p>This is a top-level 3A control switch. When set to OFF, all 3A control 1065 * by the camera device is disabled. The application must set the fields for 1066 * capture parameters itself.</p> 1067 * <p>When set to AUTO, the individual algorithm controls in 1068 * ACAMERA_CONTROL_* are in effect, such as ACAMERA_CONTROL_AF_MODE.</p> 1069 * <p>When set to USE_SCENE_MODE or USE_EXTENDED_SCENE_MODE, the individual controls in 1070 * ACAMERA_CONTROL_* are mostly disabled, and the camera device 1071 * implements one of the scene mode or extended scene mode settings (such as ACTION, 1072 * SUNSET, PARTY, or BOKEH) as it wishes. The camera device scene mode 1073 * 3A settings are provided by {@link ACameraCaptureSession_captureCallback_result capture results}.</p> 1074 * <p>When set to OFF_KEEP_STATE, it is similar to OFF mode, the only difference 1075 * is that this frame will not be used by camera device background 3A statistics 1076 * update, as if this frame is never captured. This mode can be used in the scenario 1077 * where the application doesn't want a 3A manual control capture to affect 1078 * the subsequent auto 3A capture results.</p> 1079 * 1080 * @see ACAMERA_CONTROL_AF_MODE 1081 */ 1082 ACAMERA_CONTROL_MODE = // byte (acamera_metadata_enum_android_control_mode_t) 1083 ACAMERA_CONTROL_START + 15, 1084 /** 1085 * <p>Control for which scene mode is currently active.</p> 1086 * 1087 * <p>Type: byte (acamera_metadata_enum_android_control_scene_mode_t)</p> 1088 * 1089 * <p>This tag may appear in: 1090 * <ul> 1091 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1092 * <li>ACaptureRequest</li> 1093 * </ul></p> 1094 * 1095 * <p>Scene modes are custom camera modes optimized for a certain set of conditions and 1096 * capture settings.</p> 1097 * <p>This is the mode that that is active when 1098 * <code>ACAMERA_CONTROL_MODE == USE_SCENE_MODE</code>. Aside from FACE_PRIORITY, these modes will 1099 * disable ACAMERA_CONTROL_AE_MODE, ACAMERA_CONTROL_AWB_MODE, and ACAMERA_CONTROL_AF_MODE 1100 * while in use.</p> 1101 * <p>The interpretation and implementation of these scene modes is left 1102 * to the implementor of the camera device. Their behavior will not be 1103 * consistent across all devices, and any given device may only implement 1104 * a subset of these modes.</p> 1105 * 1106 * @see ACAMERA_CONTROL_AE_MODE 1107 * @see ACAMERA_CONTROL_AF_MODE 1108 * @see ACAMERA_CONTROL_AWB_MODE 1109 * @see ACAMERA_CONTROL_MODE 1110 */ 1111 ACAMERA_CONTROL_SCENE_MODE = // byte (acamera_metadata_enum_android_control_scene_mode_t) 1112 ACAMERA_CONTROL_START + 16, 1113 /** 1114 * <p>Whether video stabilization is 1115 * active.</p> 1116 * 1117 * <p>Type: byte (acamera_metadata_enum_android_control_video_stabilization_mode_t)</p> 1118 * 1119 * <p>This tag may appear in: 1120 * <ul> 1121 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1122 * <li>ACaptureRequest</li> 1123 * </ul></p> 1124 * 1125 * <p>Video stabilization automatically warps images from 1126 * the camera in order to stabilize motion between consecutive frames.</p> 1127 * <p>If enabled, video stabilization can modify the 1128 * ACAMERA_SCALER_CROP_REGION to keep the video stream stabilized.</p> 1129 * <p>Switching between different video stabilization modes may take several 1130 * frames to initialize, the camera device will report the current mode 1131 * in capture result metadata. For example, When "ON" mode is requested, 1132 * the video stabilization modes in the first several capture results may 1133 * still be "OFF", and it will become "ON" when the initialization is 1134 * done.</p> 1135 * <p>In addition, not all recording sizes or frame rates may be supported for 1136 * stabilization by a device that reports stabilization support. It is guaranteed 1137 * that an output targeting a MediaRecorder or MediaCodec will be stabilized if 1138 * the recording resolution is less than or equal to 1920 x 1080 (width less than 1139 * or equal to 1920, height less than or equal to 1080), and the recording 1140 * frame rate is less than or equal to 30fps. At other sizes, the CaptureResult 1141 * ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE field will return 1142 * OFF if the recording output is not stabilized, or if there are no output 1143 * Surface types that can be stabilized.</p> 1144 * <p>The application is strongly recommended to call 1145 * {@link ACameraDevice_createCaptureSessionWithSessionParameters } 1146 * with the desired video stabilization mode before creating the capture session. 1147 * Video stabilization mode is a session parameter on many devices. Specifying 1148 * it at session creation time helps avoid reconfiguration delay caused by difference 1149 * between the default value and the first CaptureRequest.</p> 1150 * <p>If a camera device supports both this mode and OIS 1151 * (ACAMERA_LENS_OPTICAL_STABILIZATION_MODE), turning both modes on may 1152 * produce undesirable interaction, so it is recommended not to enable 1153 * both at the same time.</p> 1154 * <p>If video stabilization is set to "PREVIEW_STABILIZATION", 1155 * ACAMERA_LENS_OPTICAL_STABILIZATION_MODE is overridden. The camera sub-system may choose 1156 * to turn on hardware based image stabilization in addition to software based stabilization 1157 * if it deems that appropriate. 1158 * This key may be a part of the available session keys, which camera clients may 1159 * query via 1160 * {@link ACameraManager_getCameraCharacteristics }. 1161 * If this is the case, changing this key over the life-time of a capture session may 1162 * cause delays / glitches.</p> 1163 * 1164 * @see ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE 1165 * @see ACAMERA_LENS_OPTICAL_STABILIZATION_MODE 1166 * @see ACAMERA_SCALER_CROP_REGION 1167 */ 1168 ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE = // byte (acamera_metadata_enum_android_control_video_stabilization_mode_t) 1169 ACAMERA_CONTROL_START + 17, 1170 /** 1171 * <p>List of auto-exposure antibanding modes for ACAMERA_CONTROL_AE_ANTIBANDING_MODE that are 1172 * supported by this camera device.</p> 1173 * 1174 * @see ACAMERA_CONTROL_AE_ANTIBANDING_MODE 1175 * 1176 * <p>Type: byte[n]</p> 1177 * 1178 * <p>This tag may appear in: 1179 * <ul> 1180 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1181 * </ul></p> 1182 * 1183 * <p>Not all of the auto-exposure anti-banding modes may be 1184 * supported by a given camera device. This field lists the 1185 * valid anti-banding modes that the application may request 1186 * for this camera device with the 1187 * ACAMERA_CONTROL_AE_ANTIBANDING_MODE control.</p> 1188 * 1189 * @see ACAMERA_CONTROL_AE_ANTIBANDING_MODE 1190 */ 1191 ACAMERA_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES = // byte[n] 1192 ACAMERA_CONTROL_START + 18, 1193 /** 1194 * <p>List of auto-exposure modes for ACAMERA_CONTROL_AE_MODE that are supported by this camera 1195 * device.</p> 1196 * 1197 * @see ACAMERA_CONTROL_AE_MODE 1198 * 1199 * <p>Type: byte[n]</p> 1200 * 1201 * <p>This tag may appear in: 1202 * <ul> 1203 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1204 * </ul></p> 1205 * 1206 * <p>Not all the auto-exposure modes may be supported by a 1207 * given camera device, especially if no flash unit is 1208 * available. This entry lists the valid modes for 1209 * ACAMERA_CONTROL_AE_MODE for this camera device.</p> 1210 * <p>All camera devices support ON, and all camera devices with flash 1211 * units support ON_AUTO_FLASH and ON_ALWAYS_FLASH.</p> 1212 * <p>FULL mode camera devices always support OFF mode, 1213 * which enables application control of camera exposure time, 1214 * sensitivity, and frame duration.</p> 1215 * <p>LEGACY mode camera devices never support OFF mode. 1216 * LIMITED mode devices support OFF if they support the MANUAL_SENSOR 1217 * capability.</p> 1218 * 1219 * @see ACAMERA_CONTROL_AE_MODE 1220 */ 1221 ACAMERA_CONTROL_AE_AVAILABLE_MODES = // byte[n] 1222 ACAMERA_CONTROL_START + 19, 1223 /** 1224 * <p>List of frame rate ranges for ACAMERA_CONTROL_AE_TARGET_FPS_RANGE supported by 1225 * this camera device.</p> 1226 * 1227 * @see ACAMERA_CONTROL_AE_TARGET_FPS_RANGE 1228 * 1229 * <p>Type: int32[2*n]</p> 1230 * 1231 * <p>This tag may appear in: 1232 * <ul> 1233 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1234 * </ul></p> 1235 * 1236 * <p>For devices at the LEGACY level or above:</p> 1237 * <ul> 1238 * <li> 1239 * <p>For constant-framerate recording, for each normal 1240 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a>, that is, a 1241 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> that has 1242 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#quality">quality</a> in 1243 * the range [<a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_LOW">QUALITY_LOW</a>, 1244 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_2160P">QUALITY_2160P</a>], if the profile is 1245 * supported by the device and has 1246 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate">videoFrameRate</a> <code>x</code>, this list will 1247 * always include (<code>x</code>,<code>x</code>).</p> 1248 * </li> 1249 * <li> 1250 * <p>Also, a camera device must either not support any 1251 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a>, 1252 * or support at least one 1253 * normal <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> that has 1254 * <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate">videoFrameRate</a> <code>x</code> >= 24.</p> 1255 * </li> 1256 * </ul> 1257 * <p>For devices at the LIMITED level or above:</p> 1258 * <ul> 1259 * <li>For devices that advertise NIR color filter arrangement in 1260 * ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT, this list will always include 1261 * (<code>max</code>, <code>max</code>) where <code>max</code> = the maximum output frame rate of the maximum YUV_420_888 1262 * output size.</li> 1263 * <li>For devices advertising any color filter arrangement other than NIR, or devices not 1264 * advertising color filter arrangement, this list will always include (<code>min</code>, <code>max</code>) and 1265 * (<code>max</code>, <code>max</code>) where <code>min</code> <= 15 and <code>max</code> = the maximum output frame rate of the 1266 * maximum YUV_420_888 output size.</li> 1267 * </ul> 1268 * 1269 * @see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT 1270 */ 1271 ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES = // int32[2*n] 1272 ACAMERA_CONTROL_START + 20, 1273 /** 1274 * <p>Maximum and minimum exposure compensation values for 1275 * ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION, in counts of ACAMERA_CONTROL_AE_COMPENSATION_STEP, 1276 * that are supported by this camera device.</p> 1277 * 1278 * @see ACAMERA_CONTROL_AE_COMPENSATION_STEP 1279 * @see ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION 1280 * 1281 * <p>Type: int32[2]</p> 1282 * 1283 * <p>This tag may appear in: 1284 * <ul> 1285 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1286 * </ul></p> 1287 * 1288 */ 1289 ACAMERA_CONTROL_AE_COMPENSATION_RANGE = // int32[2] 1290 ACAMERA_CONTROL_START + 21, 1291 /** 1292 * <p>Smallest step by which the exposure compensation 1293 * can be changed.</p> 1294 * 1295 * <p>Type: rational</p> 1296 * 1297 * <p>This tag may appear in: 1298 * <ul> 1299 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1300 * </ul></p> 1301 * 1302 * <p>This is the unit for ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION. For example, if this key has 1303 * a value of <code>1/2</code>, then a setting of <code>-2</code> for ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION means 1304 * that the target EV offset for the auto-exposure routine is -1 EV.</p> 1305 * <p>One unit of EV compensation changes the brightness of the captured image by a factor 1306 * of two. +1 EV doubles the image brightness, while -1 EV halves the image brightness.</p> 1307 * 1308 * @see ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION 1309 */ 1310 ACAMERA_CONTROL_AE_COMPENSATION_STEP = // rational 1311 ACAMERA_CONTROL_START + 22, 1312 /** 1313 * <p>List of auto-focus (AF) modes for ACAMERA_CONTROL_AF_MODE that are 1314 * supported by this camera device.</p> 1315 * 1316 * @see ACAMERA_CONTROL_AF_MODE 1317 * 1318 * <p>Type: byte[n]</p> 1319 * 1320 * <p>This tag may appear in: 1321 * <ul> 1322 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1323 * </ul></p> 1324 * 1325 * <p>Not all the auto-focus modes may be supported by a 1326 * given camera device. This entry lists the valid modes for 1327 * ACAMERA_CONTROL_AF_MODE for this camera device.</p> 1328 * <p>All LIMITED and FULL mode camera devices will support OFF mode, and all 1329 * camera devices with adjustable focuser units 1330 * (<code>ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE > 0</code>) will support AUTO mode.</p> 1331 * <p>LEGACY devices will support OFF mode only if they support 1332 * focusing to infinity (by also setting ACAMERA_LENS_FOCUS_DISTANCE to 1333 * <code>0.0f</code>).</p> 1334 * 1335 * @see ACAMERA_CONTROL_AF_MODE 1336 * @see ACAMERA_LENS_FOCUS_DISTANCE 1337 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 1338 */ 1339 ACAMERA_CONTROL_AF_AVAILABLE_MODES = // byte[n] 1340 ACAMERA_CONTROL_START + 23, 1341 /** 1342 * <p>List of color effects for ACAMERA_CONTROL_EFFECT_MODE that are supported by this camera 1343 * device.</p> 1344 * 1345 * @see ACAMERA_CONTROL_EFFECT_MODE 1346 * 1347 * <p>Type: byte[n]</p> 1348 * 1349 * <p>This tag may appear in: 1350 * <ul> 1351 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1352 * </ul></p> 1353 * 1354 * <p>This list contains the color effect modes that can be applied to 1355 * images produced by the camera device. 1356 * Implementations are not expected to be consistent across all devices. 1357 * If no color effect modes are available for a device, this will only list 1358 * OFF.</p> 1359 * <p>A color effect will only be applied if 1360 * ACAMERA_CONTROL_MODE != OFF. OFF is always included in this list.</p> 1361 * <p>This control has no effect on the operation of other control routines such 1362 * as auto-exposure, white balance, or focus.</p> 1363 * 1364 * @see ACAMERA_CONTROL_MODE 1365 */ 1366 ACAMERA_CONTROL_AVAILABLE_EFFECTS = // byte[n] 1367 ACAMERA_CONTROL_START + 24, 1368 /** 1369 * <p>List of scene modes for ACAMERA_CONTROL_SCENE_MODE that are supported by this camera 1370 * device.</p> 1371 * 1372 * @see ACAMERA_CONTROL_SCENE_MODE 1373 * 1374 * <p>Type: byte[n]</p> 1375 * 1376 * <p>This tag may appear in: 1377 * <ul> 1378 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1379 * </ul></p> 1380 * 1381 * <p>This list contains scene modes that can be set for the camera device. 1382 * Only scene modes that have been fully implemented for the 1383 * camera device may be included here. Implementations are not expected 1384 * to be consistent across all devices.</p> 1385 * <p>If no scene modes are supported by the camera device, this 1386 * will be set to DISABLED. Otherwise DISABLED will not be listed.</p> 1387 * <p>FACE_PRIORITY is always listed if face detection is 1388 * supported (i.e.<code>ACAMERA_STATISTICS_INFO_MAX_FACE_COUNT > 1389 * 0</code>).</p> 1390 * 1391 * @see ACAMERA_STATISTICS_INFO_MAX_FACE_COUNT 1392 */ 1393 ACAMERA_CONTROL_AVAILABLE_SCENE_MODES = // byte[n] 1394 ACAMERA_CONTROL_START + 25, 1395 /** 1396 * <p>List of video stabilization modes for ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE 1397 * that are supported by this camera device.</p> 1398 * 1399 * @see ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE 1400 * 1401 * <p>Type: byte[n]</p> 1402 * 1403 * <p>This tag may appear in: 1404 * <ul> 1405 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1406 * </ul></p> 1407 * 1408 * <p>OFF will always be listed.</p> 1409 */ 1410 ACAMERA_CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES = // byte[n] 1411 ACAMERA_CONTROL_START + 26, 1412 /** 1413 * <p>List of auto-white-balance modes for ACAMERA_CONTROL_AWB_MODE that are supported by this 1414 * camera device.</p> 1415 * 1416 * @see ACAMERA_CONTROL_AWB_MODE 1417 * 1418 * <p>Type: byte[n]</p> 1419 * 1420 * <p>This tag may appear in: 1421 * <ul> 1422 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1423 * </ul></p> 1424 * 1425 * <p>Not all the auto-white-balance modes may be supported by a 1426 * given camera device. This entry lists the valid modes for 1427 * ACAMERA_CONTROL_AWB_MODE for this camera device.</p> 1428 * <p>All camera devices will support ON mode.</p> 1429 * <p>Camera devices that support the MANUAL_POST_PROCESSING capability will always support OFF 1430 * mode, which enables application control of white balance, by using 1431 * ACAMERA_COLOR_CORRECTION_TRANSFORM and ACAMERA_COLOR_CORRECTION_GAINS(ACAMERA_COLOR_CORRECTION_MODE must be set to TRANSFORM_MATRIX). This includes all FULL 1432 * mode camera devices.</p> 1433 * 1434 * @see ACAMERA_COLOR_CORRECTION_GAINS 1435 * @see ACAMERA_COLOR_CORRECTION_MODE 1436 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 1437 * @see ACAMERA_CONTROL_AWB_MODE 1438 */ 1439 ACAMERA_CONTROL_AWB_AVAILABLE_MODES = // byte[n] 1440 ACAMERA_CONTROL_START + 27, 1441 /** 1442 * <p>List of the maximum number of regions that can be used for metering in 1443 * auto-exposure (AE), auto-white balance (AWB), and auto-focus (AF); 1444 * this corresponds to the maximum number of elements in 1445 * ACAMERA_CONTROL_AE_REGIONS, ACAMERA_CONTROL_AWB_REGIONS, 1446 * and ACAMERA_CONTROL_AF_REGIONS.</p> 1447 * 1448 * @see ACAMERA_CONTROL_AE_REGIONS 1449 * @see ACAMERA_CONTROL_AF_REGIONS 1450 * @see ACAMERA_CONTROL_AWB_REGIONS 1451 * 1452 * <p>Type: int32[3]</p> 1453 * 1454 * <p>This tag may appear in: 1455 * <ul> 1456 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1457 * </ul></p> 1458 * 1459 */ 1460 ACAMERA_CONTROL_MAX_REGIONS = // int32[3] 1461 ACAMERA_CONTROL_START + 28, 1462 /** 1463 * <p>Current state of the auto-exposure (AE) algorithm.</p> 1464 * 1465 * <p>Type: byte (acamera_metadata_enum_android_control_ae_state_t)</p> 1466 * 1467 * <p>This tag may appear in: 1468 * <ul> 1469 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1470 * </ul></p> 1471 * 1472 * <p>Switching between or enabling AE modes (ACAMERA_CONTROL_AE_MODE) always 1473 * resets the AE state to INACTIVE. Similarly, switching between ACAMERA_CONTROL_MODE, 1474 * or ACAMERA_CONTROL_SCENE_MODE if <code>ACAMERA_CONTROL_MODE == USE_SCENE_MODE</code> resets all 1475 * the algorithm states to INACTIVE.</p> 1476 * <p>The camera device can do several state transitions between two results, if it is 1477 * allowed by the state transition table. For example: INACTIVE may never actually be 1478 * seen in a result.</p> 1479 * <p>The state in the result is the state for this image (in sync with this image): if 1480 * AE state becomes CONVERGED, then the image data associated with this result should 1481 * be good to use.</p> 1482 * <p>Below are state transition tables for different AE modes.</p> 1483 * <p>State | Transition Cause | New State | Notes 1484 * :------------:|:----------------:|:---------:|:-----------------------: 1485 * INACTIVE | | INACTIVE | Camera device auto exposure algorithm is disabled</p> 1486 * <p>When ACAMERA_CONTROL_AE_MODE is AE_MODE_ON*:</p> 1487 * <p>State | Transition Cause | New State | Notes 1488 * :-------------:|:--------------------------------------------:|:--------------:|:-----------------: 1489 * INACTIVE | Camera device initiates AE scan | SEARCHING | Values changing 1490 * INACTIVE | ACAMERA_CONTROL_AE_LOCK is ON | LOCKED | Values locked 1491 * SEARCHING | Camera device finishes AE scan | CONVERGED | Good values, not changing 1492 * SEARCHING | Camera device finishes AE scan | FLASH_REQUIRED | Converged but too dark w/o flash 1493 * SEARCHING | ACAMERA_CONTROL_AE_LOCK is ON | LOCKED | Values locked 1494 * CONVERGED | Camera device initiates AE scan | SEARCHING | Values changing 1495 * CONVERGED | ACAMERA_CONTROL_AE_LOCK is ON | LOCKED | Values locked 1496 * FLASH_REQUIRED | Camera device initiates AE scan | SEARCHING | Values changing 1497 * FLASH_REQUIRED | ACAMERA_CONTROL_AE_LOCK is ON | LOCKED | Values locked 1498 * LOCKED | ACAMERA_CONTROL_AE_LOCK is OFF | SEARCHING | Values not good after unlock 1499 * LOCKED | ACAMERA_CONTROL_AE_LOCK is OFF | CONVERGED | Values good after unlock 1500 * LOCKED | ACAMERA_CONTROL_AE_LOCK is OFF | FLASH_REQUIRED | Exposure good, but too dark 1501 * PRECAPTURE | Sequence done. ACAMERA_CONTROL_AE_LOCK is OFF | CONVERGED | Ready for high-quality capture 1502 * PRECAPTURE | Sequence done. ACAMERA_CONTROL_AE_LOCK is ON | LOCKED | Ready for high-quality capture 1503 * LOCKED | aeLock is ON and aePrecaptureTrigger is START | LOCKED | Precapture trigger is ignored when AE is already locked 1504 * LOCKED | aeLock is ON and aePrecaptureTrigger is CANCEL| LOCKED | Precapture trigger is ignored when AE is already locked 1505 * Any state (excluding LOCKED) | ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER is START | PRECAPTURE | Start AE precapture metering sequence 1506 * Any state (excluding LOCKED) | ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER is CANCEL| INACTIVE | Currently active precapture metering sequence is canceled</p> 1507 * <p>If the camera device supports AE external flash mode (ON_EXTERNAL_FLASH is included in 1508 * ACAMERA_CONTROL_AE_AVAILABLE_MODES), ACAMERA_CONTROL_AE_STATE must be FLASH_REQUIRED after 1509 * the camera device finishes AE scan and it's too dark without flash.</p> 1510 * <p>For the above table, the camera device may skip reporting any state changes that happen 1511 * without application intervention (i.e. mode switch, trigger, locking). Any state that 1512 * can be skipped in that manner is called a transient state.</p> 1513 * <p>For example, for above AE modes (AE_MODE_ON*), in addition to the state transitions 1514 * listed in above table, it is also legal for the camera device to skip one or more 1515 * transient states between two results. See below table for examples:</p> 1516 * <p>State | Transition Cause | New State | Notes 1517 * :-------------:|:-----------------------------------------------------------:|:--------------:|:-----------------: 1518 * INACTIVE | Camera device finished AE scan | CONVERGED | Values are already good, transient states are skipped by camera device. 1519 * 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. 1520 * 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. 1521 * 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. 1522 * Any state (excluding LOCKED) | ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER is CANCEL, converged | CONVERGED | Converged after a precapture sequences canceled, transient states are skipped by camera device. 1523 * 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. 1524 * FLASH_REQUIRED | Camera device finished AE scan | CONVERGED | Converged after a new scan, transient states are skipped by camera device.</p> 1525 * 1526 * @see ACAMERA_CONTROL_AE_AVAILABLE_MODES 1527 * @see ACAMERA_CONTROL_AE_LOCK 1528 * @see ACAMERA_CONTROL_AE_MODE 1529 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 1530 * @see ACAMERA_CONTROL_AE_STATE 1531 * @see ACAMERA_CONTROL_MODE 1532 * @see ACAMERA_CONTROL_SCENE_MODE 1533 */ 1534 ACAMERA_CONTROL_AE_STATE = // byte (acamera_metadata_enum_android_control_ae_state_t) 1535 ACAMERA_CONTROL_START + 31, 1536 /** 1537 * <p>Current state of auto-focus (AF) algorithm.</p> 1538 * 1539 * <p>Type: byte (acamera_metadata_enum_android_control_af_state_t)</p> 1540 * 1541 * <p>This tag may appear in: 1542 * <ul> 1543 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1544 * </ul></p> 1545 * 1546 * <p>Switching between or enabling AF modes (ACAMERA_CONTROL_AF_MODE) always 1547 * resets the AF state to INACTIVE. Similarly, switching between ACAMERA_CONTROL_MODE, 1548 * or ACAMERA_CONTROL_SCENE_MODE if <code>ACAMERA_CONTROL_MODE == USE_SCENE_MODE</code> resets all 1549 * the algorithm states to INACTIVE.</p> 1550 * <p>The camera device can do several state transitions between two results, if it is 1551 * allowed by the state transition table. For example: INACTIVE may never actually be 1552 * seen in a result.</p> 1553 * <p>The state in the result is the state for this image (in sync with this image): if 1554 * AF state becomes FOCUSED, then the image data associated with this result should 1555 * be sharp.</p> 1556 * <p>Below are state transition tables for different AF modes.</p> 1557 * <p>When ACAMERA_CONTROL_AF_MODE is AF_MODE_OFF or AF_MODE_EDOF:</p> 1558 * <p>State | Transition Cause | New State | Notes 1559 * :------------:|:----------------:|:---------:|:-----------: 1560 * INACTIVE | | INACTIVE | Never changes</p> 1561 * <p>When ACAMERA_CONTROL_AF_MODE is AF_MODE_AUTO or AF_MODE_MACRO:</p> 1562 * <p>State | Transition Cause | New State | Notes 1563 * :-----------------:|:----------------:|:------------------:|:--------------: 1564 * INACTIVE | AF_TRIGGER | ACTIVE_SCAN | Start AF sweep, Lens now moving 1565 * ACTIVE_SCAN | AF sweep done | FOCUSED_LOCKED | Focused, Lens now locked 1566 * ACTIVE_SCAN | AF sweep done | NOT_FOCUSED_LOCKED | Not focused, Lens now locked 1567 * ACTIVE_SCAN | AF_CANCEL | INACTIVE | Cancel/reset AF, Lens now locked 1568 * FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Cancel/reset AF 1569 * FOCUSED_LOCKED | AF_TRIGGER | ACTIVE_SCAN | Start new sweep, Lens now moving 1570 * NOT_FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Cancel/reset AF 1571 * NOT_FOCUSED_LOCKED | AF_TRIGGER | ACTIVE_SCAN | Start new sweep, Lens now moving 1572 * Any state | Mode change | INACTIVE |</p> 1573 * <p>For the above table, the camera device may skip reporting any state changes that happen 1574 * without application intervention (i.e. mode switch, trigger, locking). Any state that 1575 * can be skipped in that manner is called a transient state.</p> 1576 * <p>For example, for these AF modes (AF_MODE_AUTO and AF_MODE_MACRO), in addition to the 1577 * state transitions listed in above table, it is also legal for the camera device to skip 1578 * one or more transient states between two results. See below table for examples:</p> 1579 * <p>State | Transition Cause | New State | Notes 1580 * :-----------------:|:----------------:|:------------------:|:--------------: 1581 * INACTIVE | AF_TRIGGER | FOCUSED_LOCKED | Focus is already good or good after a scan, lens is now locked. 1582 * INACTIVE | AF_TRIGGER | NOT_FOCUSED_LOCKED | Focus failed after a scan, lens is now locked. 1583 * FOCUSED_LOCKED | AF_TRIGGER | FOCUSED_LOCKED | Focus is already good or good after a scan, lens is now locked. 1584 * NOT_FOCUSED_LOCKED | AF_TRIGGER | FOCUSED_LOCKED | Focus is good after a scan, lens is not locked.</p> 1585 * <p>When ACAMERA_CONTROL_AF_MODE is AF_MODE_CONTINUOUS_VIDEO:</p> 1586 * <p>State | Transition Cause | New State | Notes 1587 * :-----------------:|:-----------------------------------:|:------------------:|:--------------: 1588 * INACTIVE | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1589 * INACTIVE | AF_TRIGGER | NOT_FOCUSED_LOCKED | AF state query, Lens now locked 1590 * PASSIVE_SCAN | Camera device completes current scan| PASSIVE_FOCUSED | End AF scan, Lens now locked 1591 * PASSIVE_SCAN | Camera device fails current scan | PASSIVE_UNFOCUSED | End AF scan, Lens now locked 1592 * PASSIVE_SCAN | AF_TRIGGER | FOCUSED_LOCKED | Immediate transition, if focus is good. Lens now locked 1593 * PASSIVE_SCAN | AF_TRIGGER | NOT_FOCUSED_LOCKED | Immediate transition, if focus is bad. Lens now locked 1594 * PASSIVE_SCAN | AF_CANCEL | INACTIVE | Reset lens position, Lens now locked 1595 * PASSIVE_FOCUSED | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1596 * PASSIVE_UNFOCUSED | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1597 * PASSIVE_FOCUSED | AF_TRIGGER | FOCUSED_LOCKED | Immediate transition, lens now locked 1598 * PASSIVE_UNFOCUSED | AF_TRIGGER | NOT_FOCUSED_LOCKED | Immediate transition, lens now locked 1599 * FOCUSED_LOCKED | AF_TRIGGER | FOCUSED_LOCKED | No effect 1600 * FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Restart AF scan 1601 * NOT_FOCUSED_LOCKED | AF_TRIGGER | NOT_FOCUSED_LOCKED | No effect 1602 * NOT_FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Restart AF scan</p> 1603 * <p>When ACAMERA_CONTROL_AF_MODE is AF_MODE_CONTINUOUS_PICTURE:</p> 1604 * <p>State | Transition Cause | New State | Notes 1605 * :-----------------:|:------------------------------------:|:------------------:|:--------------: 1606 * INACTIVE | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1607 * INACTIVE | AF_TRIGGER | NOT_FOCUSED_LOCKED | AF state query, Lens now locked 1608 * PASSIVE_SCAN | Camera device completes current scan | PASSIVE_FOCUSED | End AF scan, Lens now locked 1609 * PASSIVE_SCAN | Camera device fails current scan | PASSIVE_UNFOCUSED | End AF scan, Lens now locked 1610 * PASSIVE_SCAN | AF_TRIGGER | FOCUSED_LOCKED | Eventual transition once the focus is good. Lens now locked 1611 * PASSIVE_SCAN | AF_TRIGGER | NOT_FOCUSED_LOCKED | Eventual transition if cannot find focus. Lens now locked 1612 * PASSIVE_SCAN | AF_CANCEL | INACTIVE | Reset lens position, Lens now locked 1613 * PASSIVE_FOCUSED | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1614 * PASSIVE_UNFOCUSED | Camera device initiates new scan | PASSIVE_SCAN | Start AF scan, Lens now moving 1615 * PASSIVE_FOCUSED | AF_TRIGGER | FOCUSED_LOCKED | Immediate trans. Lens now locked 1616 * PASSIVE_UNFOCUSED | AF_TRIGGER | NOT_FOCUSED_LOCKED | Immediate trans. Lens now locked 1617 * FOCUSED_LOCKED | AF_TRIGGER | FOCUSED_LOCKED | No effect 1618 * FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Restart AF scan 1619 * NOT_FOCUSED_LOCKED | AF_TRIGGER | NOT_FOCUSED_LOCKED | No effect 1620 * NOT_FOCUSED_LOCKED | AF_CANCEL | INACTIVE | Restart AF scan</p> 1621 * <p>When switch between AF_MODE_CONTINUOUS_* (CAF modes) and AF_MODE_AUTO/AF_MODE_MACRO 1622 * (AUTO modes), the initial INACTIVE or PASSIVE_SCAN states may be skipped by the 1623 * camera device. When a trigger is included in a mode switch request, the trigger 1624 * will be evaluated in the context of the new mode in the request. 1625 * See below table for examples:</p> 1626 * <p>State | Transition Cause | New State | Notes 1627 * :-----------:|:--------------------------------------:|:----------------------------------------:|:--------------: 1628 * any state | CAF-->AUTO mode switch | INACTIVE | Mode switch without trigger, initial state must be INACTIVE 1629 * any state | CAF-->AUTO mode switch with AF_TRIGGER | trigger-reachable states from INACTIVE | Mode switch with trigger, INACTIVE is skipped 1630 * any state | AUTO-->CAF mode switch | passively reachable states from INACTIVE | Mode switch without trigger, passive transient state is skipped</p> 1631 * 1632 * @see ACAMERA_CONTROL_AF_MODE 1633 * @see ACAMERA_CONTROL_MODE 1634 * @see ACAMERA_CONTROL_SCENE_MODE 1635 */ 1636 ACAMERA_CONTROL_AF_STATE = // byte (acamera_metadata_enum_android_control_af_state_t) 1637 ACAMERA_CONTROL_START + 32, 1638 /** 1639 * <p>Current state of auto-white balance (AWB) algorithm.</p> 1640 * 1641 * <p>Type: byte (acamera_metadata_enum_android_control_awb_state_t)</p> 1642 * 1643 * <p>This tag may appear in: 1644 * <ul> 1645 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1646 * </ul></p> 1647 * 1648 * <p>Switching between or enabling AWB modes (ACAMERA_CONTROL_AWB_MODE) always 1649 * resets the AWB state to INACTIVE. Similarly, switching between ACAMERA_CONTROL_MODE, 1650 * or ACAMERA_CONTROL_SCENE_MODE if <code>ACAMERA_CONTROL_MODE == USE_SCENE_MODE</code> resets all 1651 * the algorithm states to INACTIVE.</p> 1652 * <p>The camera device can do several state transitions between two results, if it is 1653 * allowed by the state transition table. So INACTIVE may never actually be seen in 1654 * a result.</p> 1655 * <p>The state in the result is the state for this image (in sync with this image): if 1656 * AWB state becomes CONVERGED, then the image data associated with this result should 1657 * be good to use.</p> 1658 * <p>Below are state transition tables for different AWB modes.</p> 1659 * <p>When <code>ACAMERA_CONTROL_AWB_MODE != AWB_MODE_AUTO</code>:</p> 1660 * <p>State | Transition Cause | New State | Notes 1661 * :------------:|:----------------:|:---------:|:-----------------------: 1662 * INACTIVE | |INACTIVE |Camera device auto white balance algorithm is disabled</p> 1663 * <p>When ACAMERA_CONTROL_AWB_MODE is AWB_MODE_AUTO:</p> 1664 * <p>State | Transition Cause | New State | Notes 1665 * :-------------:|:--------------------------------:|:-------------:|:-----------------: 1666 * INACTIVE | Camera device initiates AWB scan | SEARCHING | Values changing 1667 * INACTIVE | ACAMERA_CONTROL_AWB_LOCK is ON | LOCKED | Values locked 1668 * SEARCHING | Camera device finishes AWB scan | CONVERGED | Good values, not changing 1669 * SEARCHING | ACAMERA_CONTROL_AWB_LOCK is ON | LOCKED | Values locked 1670 * CONVERGED | Camera device initiates AWB scan | SEARCHING | Values changing 1671 * CONVERGED | ACAMERA_CONTROL_AWB_LOCK is ON | LOCKED | Values locked 1672 * LOCKED | ACAMERA_CONTROL_AWB_LOCK is OFF | SEARCHING | Values not good after unlock</p> 1673 * <p>For the above table, the camera device may skip reporting any state changes that happen 1674 * without application intervention (i.e. mode switch, trigger, locking). Any state that 1675 * can be skipped in that manner is called a transient state.</p> 1676 * <p>For example, for this AWB mode (AWB_MODE_AUTO), in addition to the state transitions 1677 * listed in above table, it is also legal for the camera device to skip one or more 1678 * transient states between two results. See below table for examples:</p> 1679 * <p>State | Transition Cause | New State | Notes 1680 * :-------------:|:--------------------------------:|:-------------:|:-----------------: 1681 * INACTIVE | Camera device finished AWB scan | CONVERGED | Values are already good, transient states are skipped by camera device. 1682 * LOCKED | ACAMERA_CONTROL_AWB_LOCK is OFF | CONVERGED | Values good after unlock, transient states are skipped by camera device.</p> 1683 * 1684 * @see ACAMERA_CONTROL_AWB_LOCK 1685 * @see ACAMERA_CONTROL_AWB_MODE 1686 * @see ACAMERA_CONTROL_MODE 1687 * @see ACAMERA_CONTROL_SCENE_MODE 1688 */ 1689 ACAMERA_CONTROL_AWB_STATE = // byte (acamera_metadata_enum_android_control_awb_state_t) 1690 ACAMERA_CONTROL_START + 34, 1691 /** 1692 * <p>Whether the camera device supports ACAMERA_CONTROL_AE_LOCK</p> 1693 * 1694 * @see ACAMERA_CONTROL_AE_LOCK 1695 * 1696 * <p>Type: byte (acamera_metadata_enum_android_control_ae_lock_available_t)</p> 1697 * 1698 * <p>This tag may appear in: 1699 * <ul> 1700 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1701 * </ul></p> 1702 * 1703 * <p>Devices with MANUAL_SENSOR capability or BURST_CAPTURE capability will always 1704 * list <code>true</code>. This includes FULL devices.</p> 1705 */ 1706 ACAMERA_CONTROL_AE_LOCK_AVAILABLE = // byte (acamera_metadata_enum_android_control_ae_lock_available_t) 1707 ACAMERA_CONTROL_START + 36, 1708 /** 1709 * <p>Whether the camera device supports ACAMERA_CONTROL_AWB_LOCK</p> 1710 * 1711 * @see ACAMERA_CONTROL_AWB_LOCK 1712 * 1713 * <p>Type: byte (acamera_metadata_enum_android_control_awb_lock_available_t)</p> 1714 * 1715 * <p>This tag may appear in: 1716 * <ul> 1717 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1718 * </ul></p> 1719 * 1720 * <p>Devices with MANUAL_POST_PROCESSING capability or BURST_CAPTURE capability will 1721 * always list <code>true</code>. This includes FULL devices.</p> 1722 */ 1723 ACAMERA_CONTROL_AWB_LOCK_AVAILABLE = // byte (acamera_metadata_enum_android_control_awb_lock_available_t) 1724 ACAMERA_CONTROL_START + 37, 1725 /** 1726 * <p>List of control modes for ACAMERA_CONTROL_MODE that are supported by this camera 1727 * device.</p> 1728 * 1729 * @see ACAMERA_CONTROL_MODE 1730 * 1731 * <p>Type: byte[n]</p> 1732 * 1733 * <p>This tag may appear in: 1734 * <ul> 1735 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1736 * </ul></p> 1737 * 1738 * <p>This list contains control modes that can be set for the camera device. 1739 * LEGACY mode devices will always support AUTO mode. LIMITED and FULL 1740 * devices will always support OFF, AUTO modes.</p> 1741 */ 1742 ACAMERA_CONTROL_AVAILABLE_MODES = // byte[n] 1743 ACAMERA_CONTROL_START + 38, 1744 /** 1745 * <p>Range of boosts for ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST supported 1746 * by this camera device.</p> 1747 * 1748 * @see ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST 1749 * 1750 * <p>Type: int32[2]</p> 1751 * 1752 * <p>This tag may appear in: 1753 * <ul> 1754 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1755 * </ul></p> 1756 * 1757 * <p>Devices support post RAW sensitivity boost will advertise 1758 * ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST key for controlling 1759 * post RAW sensitivity boost.</p> 1760 * <p>This key will be <code>null</code> for devices that do not support any RAW format 1761 * outputs. For devices that do support RAW format outputs, this key will always 1762 * present, and if a device does not support post RAW sensitivity boost, it will 1763 * list <code>(100, 100)</code> in this key.</p> 1764 * 1765 * @see ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST 1766 */ 1767 ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST_RANGE = // int32[2] 1768 ACAMERA_CONTROL_START + 39, 1769 /** 1770 * <p>The amount of additional sensitivity boost applied to output images 1771 * after RAW sensor data is captured.</p> 1772 * 1773 * <p>Type: int32</p> 1774 * 1775 * <p>This tag may appear in: 1776 * <ul> 1777 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1778 * <li>ACaptureRequest</li> 1779 * </ul></p> 1780 * 1781 * <p>Some camera devices support additional digital sensitivity boosting in the 1782 * camera processing pipeline after sensor RAW image is captured. 1783 * Such a boost will be applied to YUV/JPEG format output images but will not 1784 * have effect on RAW output formats like RAW_SENSOR, RAW10, RAW12 or RAW_OPAQUE.</p> 1785 * <p>This key will be <code>null</code> for devices that do not support any RAW format 1786 * outputs. For devices that do support RAW format outputs, this key will always 1787 * present, and if a device does not support post RAW sensitivity boost, it will 1788 * list <code>100</code> in this key.</p> 1789 * <p>If the camera device cannot apply the exact boost requested, it will reduce the 1790 * boost to the nearest supported value. 1791 * The final boost value used will be available in the output capture result.</p> 1792 * <p>For devices that support post RAW sensitivity boost, the YUV/JPEG output images 1793 * of such device will have the total sensitivity of 1794 * <code>ACAMERA_SENSOR_SENSITIVITY * ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST / 100</code> 1795 * The sensitivity of RAW format images will always be <code>ACAMERA_SENSOR_SENSITIVITY</code></p> 1796 * <p>This control is only effective if ACAMERA_CONTROL_AE_MODE or ACAMERA_CONTROL_MODE is set to 1797 * OFF; otherwise the auto-exposure algorithm will override this value.</p> 1798 * 1799 * @see ACAMERA_CONTROL_AE_MODE 1800 * @see ACAMERA_CONTROL_MODE 1801 * @see ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST 1802 * @see ACAMERA_SENSOR_SENSITIVITY 1803 */ 1804 ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST = // int32 1805 ACAMERA_CONTROL_START + 40, 1806 /** 1807 * <p>Allow camera device to enable zero-shutter-lag mode for requests with 1808 * ACAMERA_CONTROL_CAPTURE_INTENT == STILL_CAPTURE.</p> 1809 * 1810 * @see ACAMERA_CONTROL_CAPTURE_INTENT 1811 * 1812 * <p>Type: byte (acamera_metadata_enum_android_control_enable_zsl_t)</p> 1813 * 1814 * <p>This tag may appear in: 1815 * <ul> 1816 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1817 * <li>ACaptureRequest</li> 1818 * </ul></p> 1819 * 1820 * <p>If enableZsl is <code>true</code>, the camera device may enable zero-shutter-lag mode for requests with 1821 * STILL_CAPTURE capture intent. The camera device may use images captured in the past to 1822 * produce output images for a zero-shutter-lag request. The result metadata including the 1823 * ACAMERA_SENSOR_TIMESTAMP reflects the source frames used to produce output images. 1824 * Therefore, the contents of the output images and the result metadata may be out of order 1825 * compared to previous regular requests. enableZsl does not affect requests with other 1826 * capture intents.</p> 1827 * <p>For example, when requests are submitted in the following order: 1828 * Request A: enableZsl is ON, ACAMERA_CONTROL_CAPTURE_INTENT is PREVIEW 1829 * Request B: enableZsl is ON, ACAMERA_CONTROL_CAPTURE_INTENT is STILL_CAPTURE</p> 1830 * <p>The output images for request B may have contents captured before the output images for 1831 * request A, and the result metadata for request B may be older than the result metadata for 1832 * request A.</p> 1833 * <p>Note that when enableZsl is <code>true</code>, it is not guaranteed to get output images captured in 1834 * the past for requests with STILL_CAPTURE capture intent.</p> 1835 * <p>For applications targeting SDK versions O and newer, the value of enableZsl in 1836 * TEMPLATE_STILL_CAPTURE template may be <code>true</code>. The value in other templates is always 1837 * <code>false</code> if present.</p> 1838 * <p>For applications targeting SDK versions older than O, the value of enableZsl in all 1839 * capture templates is always <code>false</code> if present.</p> 1840 * <p>For application-operated ZSL, use CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG template.</p> 1841 * 1842 * @see ACAMERA_CONTROL_CAPTURE_INTENT 1843 * @see ACAMERA_SENSOR_TIMESTAMP 1844 */ 1845 ACAMERA_CONTROL_ENABLE_ZSL = // byte (acamera_metadata_enum_android_control_enable_zsl_t) 1846 ACAMERA_CONTROL_START + 41, 1847 /** 1848 * <p>Whether a significant scene change is detected within the currently-set AF 1849 * region(s).</p> 1850 * 1851 * <p>Type: byte (acamera_metadata_enum_android_control_af_scene_change_t)</p> 1852 * 1853 * <p>This tag may appear in: 1854 * <ul> 1855 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1856 * </ul></p> 1857 * 1858 * <p>When the camera focus routine detects a change in the scene it is looking at, 1859 * such as a large shift in camera viewpoint, significant motion in the scene, or a 1860 * significant illumination change, this value will be set to DETECTED for a single capture 1861 * result. Otherwise the value will be NOT_DETECTED. The threshold for detection is similar 1862 * to what would trigger a new passive focus scan to begin in CONTINUOUS autofocus modes.</p> 1863 * <p>This key will be available if the camera device advertises this key via {@link ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS }.</p> 1864 */ 1865 ACAMERA_CONTROL_AF_SCENE_CHANGE = // byte (acamera_metadata_enum_android_control_af_scene_change_t) 1866 ACAMERA_CONTROL_START + 42, 1867 /** 1868 * <p>The list of extended scene modes for ACAMERA_CONTROL_EXTENDED_SCENE_MODE that are supported 1869 * by this camera device, and each extended scene mode's maximum streaming (non-stall) size 1870 * with effect.</p> 1871 * 1872 * @see ACAMERA_CONTROL_EXTENDED_SCENE_MODE 1873 * 1874 * <p>Type: int32[3*n]</p> 1875 * 1876 * <p>This tag may appear in: 1877 * <ul> 1878 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1879 * </ul></p> 1880 * 1881 * <p>For DISABLED mode, the camera behaves normally with no extended scene mode enabled.</p> 1882 * <p>For BOKEH_STILL_CAPTURE mode, the maximum streaming dimension specifies the limit 1883 * under which bokeh is effective when capture intent is PREVIEW. Note that when capture 1884 * intent is PREVIEW, the bokeh effect may not be as high in quality compared to 1885 * STILL_CAPTURE intent in order to maintain reasonable frame rate. The maximum streaming 1886 * dimension must be one of the YUV_420_888 or PRIVATE resolutions in 1887 * availableStreamConfigurations, or (0, 0) if preview bokeh is not supported. If the 1888 * application configures a stream larger than the maximum streaming dimension, bokeh 1889 * effect may not be applied for this stream for PREVIEW intent.</p> 1890 * <p>For BOKEH_CONTINUOUS mode, the maximum streaming dimension specifies the limit under 1891 * which bokeh is effective. This dimension must be one of the YUV_420_888 or PRIVATE 1892 * resolutions in availableStreamConfigurations, and if the sensor maximum resolution is 1893 * larger than or equal to 1080p, the maximum streaming dimension must be at least 1080p. 1894 * If the application configures a stream with larger dimension, the stream may not have 1895 * bokeh effect applied.</p> 1896 */ 1897 ACAMERA_CONTROL_AVAILABLE_EXTENDED_SCENE_MODE_MAX_SIZES = // int32[3*n] 1898 ACAMERA_CONTROL_START + 43, 1899 /** 1900 * <p>The ranges of supported zoom ratio for non-DISABLED ACAMERA_CONTROL_EXTENDED_SCENE_MODE.</p> 1901 * 1902 * @see ACAMERA_CONTROL_EXTENDED_SCENE_MODE 1903 * 1904 * <p>Type: float[2*n]</p> 1905 * 1906 * <p>This tag may appear in: 1907 * <ul> 1908 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1909 * </ul></p> 1910 * 1911 * <p>When extended scene mode is set, the camera device may have limited range of zoom ratios 1912 * compared to when extended scene mode is DISABLED. This tag lists the zoom ratio ranges 1913 * for all supported non-DISABLED extended scene modes, in the same order as in 1914 * android.control.availableExtended.</p> 1915 * <p>Range [1.0, 1.0] means that no zoom (optical or digital) is supported.</p> 1916 */ 1917 ACAMERA_CONTROL_AVAILABLE_EXTENDED_SCENE_MODE_ZOOM_RATIO_RANGES = 1918 // float[2*n] 1919 ACAMERA_CONTROL_START + 44, 1920 /** 1921 * <p>Whether extended scene mode is enabled for a particular capture request.</p> 1922 * 1923 * <p>Type: byte (acamera_metadata_enum_android_control_extended_scene_mode_t)</p> 1924 * 1925 * <p>This tag may appear in: 1926 * <ul> 1927 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1928 * <li>ACaptureRequest</li> 1929 * </ul></p> 1930 * 1931 * <p>With bokeh mode, the camera device may blur out the parts of scene that are not in 1932 * focus, creating a bokeh (or shallow depth of field) effect for people or objects.</p> 1933 * <p>When set to BOKEH_STILL_CAPTURE mode with STILL_CAPTURE capture intent, due to the extra 1934 * processing needed for high quality bokeh effect, the stall may be longer than when 1935 * capture intent is not STILL_CAPTURE.</p> 1936 * <p>When set to BOKEH_STILL_CAPTURE mode with PREVIEW capture intent,</p> 1937 * <ul> 1938 * <li>If the camera device has BURST_CAPTURE capability, the frame rate requirement of 1939 * BURST_CAPTURE must still be met.</li> 1940 * <li>All streams not larger than the maximum streaming dimension for BOKEH_STILL_CAPTURE mode 1941 * (queried via {@link ACAMERA_CONTROL_AVAILABLE_EXTENDED_SCENE_MODE_MAX_SIZES }) 1942 * will have preview bokeh effect applied.</li> 1943 * </ul> 1944 * <p>When set to BOKEH_CONTINUOUS mode, configured streams dimension should not exceed this mode's 1945 * maximum streaming dimension in order to have bokeh effect applied. Bokeh effect may not 1946 * be available for streams larger than the maximum streaming dimension.</p> 1947 * <p>Switching between different extended scene modes may involve reconfiguration of the camera 1948 * pipeline, resulting in long latency. The application should check this key against the 1949 * available session keys queried via 1950 * {@link ACameraManager_getCameraCharacteristics }.</p> 1951 * <p>For a logical multi-camera, bokeh may be implemented by stereo vision from sub-cameras 1952 * with different field of view. As a result, when bokeh mode is enabled, the camera device 1953 * may override ACAMERA_SCALER_CROP_REGION or ACAMERA_CONTROL_ZOOM_RATIO, and the field of 1954 * view may be smaller than when bokeh mode is off.</p> 1955 * 1956 * @see ACAMERA_CONTROL_ZOOM_RATIO 1957 * @see ACAMERA_SCALER_CROP_REGION 1958 */ 1959 ACAMERA_CONTROL_EXTENDED_SCENE_MODE = // byte (acamera_metadata_enum_android_control_extended_scene_mode_t) 1960 ACAMERA_CONTROL_START + 45, 1961 /** 1962 * <p>Minimum and maximum zoom ratios supported by this camera device.</p> 1963 * 1964 * <p>Type: float[2]</p> 1965 * 1966 * <p>This tag may appear in: 1967 * <ul> 1968 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 1969 * </ul></p> 1970 * 1971 * <p>If the camera device supports zoom-out from 1x zoom, minZoom will be less than 1.0, and 1972 * setting ACAMERA_CONTROL_ZOOM_RATIO to values less than 1.0 increases the camera's field 1973 * of view.</p> 1974 * 1975 * @see ACAMERA_CONTROL_ZOOM_RATIO 1976 */ 1977 ACAMERA_CONTROL_ZOOM_RATIO_RANGE = // float[2] 1978 ACAMERA_CONTROL_START + 46, 1979 /** 1980 * <p>The desired zoom ratio</p> 1981 * 1982 * <p>Type: float</p> 1983 * 1984 * <p>This tag may appear in: 1985 * <ul> 1986 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 1987 * <li>ACaptureRequest</li> 1988 * </ul></p> 1989 * 1990 * <p>Instead of using ACAMERA_SCALER_CROP_REGION for zoom, the application can now choose to 1991 * use this tag to specify the desired zoom level.</p> 1992 * <p>By using this control, the application gains a simpler way to control zoom, which can 1993 * be a combination of optical and digital zoom. For example, a multi-camera system may 1994 * contain more than one lens with different focal lengths, and the user can use optical 1995 * zoom by switching between lenses. Using zoomRatio has benefits in the scenarios below:</p> 1996 * <ul> 1997 * <li>Zooming in from a wide-angle lens to a telephoto lens: A floating-point ratio provides 1998 * better precision compared to an integer value of ACAMERA_SCALER_CROP_REGION.</li> 1999 * <li>Zooming out from a wide lens to an ultrawide lens: zoomRatio supports zoom-out whereas 2000 * ACAMERA_SCALER_CROP_REGION doesn't.</li> 2001 * </ul> 2002 * <p>To illustrate, here are several scenarios of different zoom ratios, crop regions, 2003 * and output streams, for a hypothetical camera device with an active array of size 2004 * <code>(2000,1500)</code>.</p> 2005 * <ul> 2006 * <li>Camera Configuration:<ul> 2007 * <li>Active array size: <code>2000x1500</code> (3 MP, 4:3 aspect ratio)</li> 2008 * <li>Output stream #1: <code>640x480</code> (VGA, 4:3 aspect ratio)</li> 2009 * <li>Output stream #2: <code>1280x720</code> (720p, 16:9 aspect ratio)</li> 2010 * </ul> 2011 * </li> 2012 * <li>Case #1: 4:3 crop region with 2.0x zoom ratio<ul> 2013 * <li>Zoomed field of view: 1/4 of original field of view</li> 2014 * <li>Crop region: <code>Rect(0, 0, 2000, 1500) // (left, top, right, bottom)</code> (post zoom)</li> 2015 * </ul> 2016 * </li> 2017 * <li><img alt="4:3 aspect ratio crop diagram" src="../images/camera2/metadata/android.control.zoomRatio/zoom-ratio-2-crop-43.png" /><ul> 2018 * <li><code>640x480</code> stream source area: <code>(0, 0, 2000, 1500)</code> (equal to crop region)</li> 2019 * <li><code>1280x720</code> stream source area: <code>(0, 187, 2000, 1312)</code> (letterboxed)</li> 2020 * </ul> 2021 * </li> 2022 * <li>Case #2: 16:9 crop region with 2.0x zoom.<ul> 2023 * <li>Zoomed field of view: 1/4 of original field of view</li> 2024 * <li>Crop region: <code>Rect(0, 187, 2000, 1312)</code></li> 2025 * <li><img alt="16:9 aspect ratio crop diagram" src="../images/camera2/metadata/android.control.zoomRatio/zoom-ratio-2-crop-169.png" /></li> 2026 * <li><code>640x480</code> stream source area: <code>(250, 187, 1750, 1312)</code> (pillarboxed)</li> 2027 * <li><code>1280x720</code> stream source area: <code>(0, 187, 2000, 1312)</code> (equal to crop region)</li> 2028 * </ul> 2029 * </li> 2030 * <li>Case #3: 1:1 crop region with 0.5x zoom out to ultrawide lens.<ul> 2031 * <li>Zoomed field of view: 4x of original field of view (switched from wide lens to ultrawide lens)</li> 2032 * <li>Crop region: <code>Rect(250, 0, 1750, 1500)</code></li> 2033 * <li><img alt="1:1 aspect ratio crop diagram" src="../images/camera2/metadata/android.control.zoomRatio/zoom-ratio-0.5-crop-11.png" /></li> 2034 * <li><code>640x480</code> stream source area: <code>(250, 187, 1750, 1312)</code> (letterboxed)</li> 2035 * <li><code>1280x720</code> stream source area: <code>(250, 328, 1750, 1172)</code> (letterboxed)</li> 2036 * </ul> 2037 * </li> 2038 * </ul> 2039 * <p>As seen from the graphs above, the coordinate system of cropRegion now changes to the 2040 * effective after-zoom field-of-view, and is represented by the rectangle of (0, 0, 2041 * activeArrayWith, activeArrayHeight). The same applies to AE/AWB/AF regions, and faces. 2042 * This coordinate system change isn't applicable to RAW capture and its related 2043 * metadata such as intrinsicCalibration and lensShadingMap.</p> 2044 * <p>Using the same hypothetical example above, and assuming output stream #1 (640x480) is 2045 * the viewfinder stream, the application can achieve 2.0x zoom in one of two ways:</p> 2046 * <ul> 2047 * <li>zoomRatio = 2.0, scaler.cropRegion = (0, 0, 2000, 1500)</li> 2048 * <li>zoomRatio = 1.0 (default), scaler.cropRegion = (500, 375, 1500, 1125)</li> 2049 * </ul> 2050 * <p>If the application intends to set aeRegions to be top-left quarter of the viewfinder 2051 * field-of-view, the ACAMERA_CONTROL_AE_REGIONS should be set to (0, 0, 1000, 750) with 2052 * zoomRatio set to 2.0. Alternatively, the application can set aeRegions to the equivalent 2053 * region of (500, 375, 1000, 750) for zoomRatio of 1.0. If the application doesn't 2054 * explicitly set ACAMERA_CONTROL_ZOOM_RATIO, its value defaults to 1.0.</p> 2055 * <p>One limitation of controlling zoom using zoomRatio is that the ACAMERA_SCALER_CROP_REGION 2056 * must only be used for letterboxing or pillarboxing of the sensor active array, and no 2057 * FREEFORM cropping can be used with ACAMERA_CONTROL_ZOOM_RATIO other than 1.0. If 2058 * ACAMERA_CONTROL_ZOOM_RATIO is not 1.0, and ACAMERA_SCALER_CROP_REGION is set to be 2059 * windowboxing, the camera framework will override the ACAMERA_SCALER_CROP_REGION to be 2060 * the active array.</p> 2061 * <p>In the capture request, if the application sets ACAMERA_CONTROL_ZOOM_RATIO to a 2062 * value != 1.0, the ACAMERA_CONTROL_ZOOM_RATIO tag in the capture result reflects the 2063 * effective zoom ratio achieved by the camera device, and the ACAMERA_SCALER_CROP_REGION 2064 * adjusts for additional crops that are not zoom related. Otherwise, if the application 2065 * sets ACAMERA_CONTROL_ZOOM_RATIO to 1.0, or does not set it at all, the 2066 * ACAMERA_CONTROL_ZOOM_RATIO tag in the result metadata will also be 1.0.</p> 2067 * <p>When the application requests a physical stream for a logical multi-camera, the 2068 * ACAMERA_CONTROL_ZOOM_RATIO in the physical camera result metadata will be 1.0, and 2069 * the ACAMERA_SCALER_CROP_REGION tag reflects the amount of zoom and crop done by the 2070 * physical camera device.</p> 2071 * 2072 * @see ACAMERA_CONTROL_AE_REGIONS 2073 * @see ACAMERA_CONTROL_ZOOM_RATIO 2074 * @see ACAMERA_SCALER_CROP_REGION 2075 */ 2076 ACAMERA_CONTROL_ZOOM_RATIO = // float 2077 ACAMERA_CONTROL_START + 47, 2078 /** 2079 * <p>The desired CaptureRequest settings override with which certain keys are 2080 * applied earlier so that they can take effect sooner.</p> 2081 * 2082 * <p>Type: int32 (acamera_metadata_enum_android_control_settings_override_t)</p> 2083 * 2084 * <p>This tag may appear in: 2085 * <ul> 2086 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2087 * <li>ACaptureRequest</li> 2088 * </ul></p> 2089 * 2090 * <p>There are some CaptureRequest keys which can be applied earlier than others 2091 * when controls within a CaptureRequest aren't required to take effect at the same time. 2092 * One such example is zoom. Zoom can be applied at a later stage of the camera pipeline. 2093 * As soon as the camera device receives the CaptureRequest, it can apply the requested 2094 * zoom value onto an earlier request that's already in the pipeline, thus improves zoom 2095 * latency.</p> 2096 * <p>This key's value in the capture result reflects whether the controls for this capture 2097 * are overridden "by" a newer request. This means that if a capture request turns on 2098 * settings override, the capture result of an earlier request will contain the key value 2099 * of ZOOM. On the other hand, if a capture request has settings override turned on, 2100 * but all newer requests have it turned off, the key's value in the capture result will 2101 * be OFF because this capture isn't overridden by a newer capture. In the two examples 2102 * below, the capture results columns illustrate the settingsOverride values in different 2103 * scenarios.</p> 2104 * <p>Assuming the zoom settings override can speed up by 1 frame, below example illustrates 2105 * the speed-up at the start of capture session:</p> 2106 * <pre><code>Camera session created 2107 * Request 1 (zoom=1.0x, override=ZOOM) -> 2108 * Request 2 (zoom=1.2x, override=ZOOM) -> 2109 * Request 3 (zoom=1.4x, override=ZOOM) -> Result 1 (zoom=1.2x, override=ZOOM) 2110 * Request 4 (zoom=1.6x, override=ZOOM) -> Result 2 (zoom=1.4x, override=ZOOM) 2111 * Request 5 (zoom=1.8x, override=ZOOM) -> Result 3 (zoom=1.6x, override=ZOOM) 2112 * -> Result 4 (zoom=1.8x, override=ZOOM) 2113 * -> Result 5 (zoom=1.8x, override=OFF) 2114 * </code></pre> 2115 * <p>The application can turn on settings override and use zoom as normal. The example 2116 * shows that the later zoom values (1.2x, 1.4x, 1.6x, and 1.8x) overwrite the zoom 2117 * values (1.0x, 1.2x, 1.4x, and 1.8x) of earlier requests (#1, #2, #3, and #4).</p> 2118 * <p>The application must make sure the settings override doesn't interfere with user 2119 * journeys requiring simultaneous application of all controls in CaptureRequest on the 2120 * requested output targets. For example, if the application takes a still capture using 2121 * CameraCaptureSession#capture, and the repeating request immediately sets a different 2122 * zoom value using override, the inflight still capture could have its zoom value 2123 * overwritten unexpectedly.</p> 2124 * <p>So the application is strongly recommended to turn off settingsOverride when taking 2125 * still/burst captures, and turn it back on when there is only repeating viewfinder 2126 * request and no inflight still/burst captures.</p> 2127 * <p>Below is the example demonstrating the transitions in and out of the 2128 * settings override:</p> 2129 * <pre><code>Request 1 (zoom=1.0x, override=OFF) 2130 * Request 2 (zoom=1.2x, override=OFF) 2131 * Request 3 (zoom=1.4x, override=ZOOM) -> Result 1 (zoom=1.0x, override=OFF) 2132 * Request 4 (zoom=1.6x, override=ZOOM) -> Result 2 (zoom=1.4x, override=ZOOM) 2133 * Request 5 (zoom=1.8x, override=OFF) -> Result 3 (zoom=1.6x, override=ZOOM) 2134 * -> Result 4 (zoom=1.6x, override=OFF) 2135 * -> Result 5 (zoom=1.8x, override=OFF) 2136 * </code></pre> 2137 * <p>This example shows that:</p> 2138 * <ul> 2139 * <li>The application "ramps in" settings override by setting the control to ZOOM. 2140 * In the example, request #3 enables zoom settings override. Because the camera device 2141 * can speed up applying zoom by 1 frame, the outputs of request #2 has 1.4x zoom, the 2142 * value specified in request #3.</li> 2143 * <li>The application "ramps out" of settings override by setting the control to OFF. In 2144 * the example, request #5 changes the override to OFF. Because request #4's zoom 2145 * takes effect in result #3, result #4's zoom remains the same until new value takes 2146 * effect in result #5.</li> 2147 * </ul> 2148 */ 2149 ACAMERA_CONTROL_SETTINGS_OVERRIDE = // int32 (acamera_metadata_enum_android_control_settings_override_t) 2150 ACAMERA_CONTROL_START + 49, 2151 /** 2152 * <p>List of available settings overrides supported by the camera device that can 2153 * be used to speed up certain controls.</p> 2154 * 2155 * <p>Type: int32[n]</p> 2156 * 2157 * <p>This tag may appear in: 2158 * <ul> 2159 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2160 * </ul></p> 2161 * 2162 * <p>When not all controls within a CaptureRequest are required to take effect 2163 * at the same time on the outputs, the camera device may apply certain request keys sooner 2164 * to improve latency. This list contains such supported settings overrides. Each settings 2165 * override corresponds to a set of CaptureRequest keys that can be sped up when applying.</p> 2166 * <p>A supported settings override can be passed in via 2167 * <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.html#CONTROL_SETTINGS_OVERRIDE">CaptureRequest#CONTROL_SETTINGS_OVERRIDE</a>, and the 2168 * CaptureRequest keys corresponding to the override are applied as soon as possible, not 2169 * bound by per-frame synchronization. See ACAMERA_CONTROL_SETTINGS_OVERRIDE for the 2170 * CaptureRequest keys for each override.</p> 2171 * <p>OFF is always included in this list.</p> 2172 * 2173 * @see ACAMERA_CONTROL_SETTINGS_OVERRIDE 2174 */ 2175 ACAMERA_CONTROL_AVAILABLE_SETTINGS_OVERRIDES = // int32[n] 2176 ACAMERA_CONTROL_START + 50, 2177 /** 2178 * <p>Automatic crop, pan and zoom to keep objects in the center of the frame.</p> 2179 * 2180 * <p>Type: byte (acamera_metadata_enum_android_control_autoframing_t)</p> 2181 * 2182 * <p>This tag may appear in: 2183 * <ul> 2184 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2185 * <li>ACaptureRequest</li> 2186 * </ul></p> 2187 * 2188 * <p>Auto-framing is a special mode provided by the camera device to dynamically crop, zoom 2189 * or pan the camera feed to try to ensure that the people in a scene occupy a reasonable 2190 * portion of the viewport. It is primarily designed to support video calling in 2191 * situations where the user isn't directly in front of the device, especially for 2192 * wide-angle cameras. 2193 * ACAMERA_SCALER_CROP_REGION and ACAMERA_CONTROL_ZOOM_RATIO in CaptureResult will be used 2194 * to denote the coordinates of the auto-framed region. 2195 * Zoom and video stabilization controls are disabled when auto-framing is enabled. The 3A 2196 * regions must map the screen coordinates into the scaler crop returned from the capture 2197 * result instead of using the active array sensor.</p> 2198 * 2199 * @see ACAMERA_CONTROL_ZOOM_RATIO 2200 * @see ACAMERA_SCALER_CROP_REGION 2201 */ 2202 ACAMERA_CONTROL_AUTOFRAMING = // byte (acamera_metadata_enum_android_control_autoframing_t) 2203 ACAMERA_CONTROL_START + 52, 2204 /** 2205 * <p>Whether the camera device supports ACAMERA_CONTROL_AUTOFRAMING.</p> 2206 * 2207 * @see ACAMERA_CONTROL_AUTOFRAMING 2208 * 2209 * <p>Type: byte (acamera_metadata_enum_android_control_autoframing_available_t)</p> 2210 * 2211 * <p>This tag may appear in: 2212 * <ul> 2213 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2214 * </ul></p> 2215 * 2216 * <p>Will be <code>false</code> if auto-framing is not available.</p> 2217 */ 2218 ACAMERA_CONTROL_AUTOFRAMING_AVAILABLE = // byte (acamera_metadata_enum_android_control_autoframing_available_t) 2219 ACAMERA_CONTROL_START + 53, 2220 /** 2221 * <p>Current state of auto-framing.</p> 2222 * 2223 * <p>Type: byte (acamera_metadata_enum_android_control_autoframing_state_t)</p> 2224 * 2225 * <p>This tag may appear in: 2226 * <ul> 2227 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2228 * </ul></p> 2229 * 2230 * <p>When the camera doesn't have auto-framing available (i.e 2231 * <code>ACAMERA_CONTROL_AUTOFRAMING_AVAILABLE</code> == false) or it is not enabled (i.e 2232 * <code>ACAMERA_CONTROL_AUTOFRAMING</code> == OFF), the state will always be INACTIVE. 2233 * Other states indicate the current auto-framing state:</p> 2234 * <ul> 2235 * <li>When <code>ACAMERA_CONTROL_AUTOFRAMING</code> is set to ON, auto-framing will take 2236 * place. While the frame is aligning itself to center the object (doing things like 2237 * zooming in, zooming out or pan), the state will be FRAMING.</li> 2238 * <li>When field of view is not being adjusted anymore and has reached a stable state, the 2239 * state will be CONVERGED.</li> 2240 * </ul> 2241 * 2242 * @see ACAMERA_CONTROL_AUTOFRAMING 2243 * @see ACAMERA_CONTROL_AUTOFRAMING_AVAILABLE 2244 */ 2245 ACAMERA_CONTROL_AUTOFRAMING_STATE = // byte (acamera_metadata_enum_android_control_autoframing_state_t) 2246 ACAMERA_CONTROL_START + 54, 2247 ACAMERA_CONTROL_END, 2248 2249 /** 2250 * <p>Operation mode for edge 2251 * enhancement.</p> 2252 * 2253 * <p>Type: byte (acamera_metadata_enum_android_edge_mode_t)</p> 2254 * 2255 * <p>This tag may appear in: 2256 * <ul> 2257 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2258 * <li>ACaptureRequest</li> 2259 * </ul></p> 2260 * 2261 * <p>Edge enhancement improves sharpness and details in the captured image. OFF means 2262 * no enhancement will be applied by the camera device.</p> 2263 * <p>FAST/HIGH_QUALITY both mean camera device determined enhancement 2264 * will be applied. HIGH_QUALITY mode indicates that the 2265 * camera device will use the highest-quality enhancement algorithms, 2266 * even if it slows down capture rate. FAST means the camera device will 2267 * not slow down capture rate when applying edge enhancement. FAST may be the same as OFF if 2268 * edge enhancement will slow down capture rate. Every output stream will have a similar 2269 * amount of enhancement applied.</p> 2270 * <p>ZERO_SHUTTER_LAG is meant to be used by applications that maintain a continuous circular 2271 * buffer of high-resolution images during preview and reprocess image(s) from that buffer 2272 * into a final capture when triggered by the user. In this mode, the camera device applies 2273 * edge enhancement to low-resolution streams (below maximum recording resolution) to 2274 * maximize preview quality, but does not apply edge enhancement to high-resolution streams, 2275 * since those will be reprocessed later if necessary.</p> 2276 * <p>For YUV_REPROCESSING, these FAST/HIGH_QUALITY modes both mean that the camera 2277 * device will apply FAST/HIGH_QUALITY YUV-domain edge enhancement, respectively. 2278 * The camera device may adjust its internal edge enhancement parameters for best 2279 * image quality based on the android.reprocess.effectiveExposureFactor, if it is set.</p> 2280 */ 2281 ACAMERA_EDGE_MODE = // byte (acamera_metadata_enum_android_edge_mode_t) 2282 ACAMERA_EDGE_START, 2283 /** 2284 * <p>List of edge enhancement modes for ACAMERA_EDGE_MODE that are supported by this camera 2285 * device.</p> 2286 * 2287 * @see ACAMERA_EDGE_MODE 2288 * 2289 * <p>Type: byte[n]</p> 2290 * 2291 * <p>This tag may appear in: 2292 * <ul> 2293 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2294 * </ul></p> 2295 * 2296 * <p>Full-capability camera devices must always support OFF; camera devices that support 2297 * YUV_REPROCESSING or PRIVATE_REPROCESSING will list ZERO_SHUTTER_LAG; all devices will 2298 * list FAST.</p> 2299 */ 2300 ACAMERA_EDGE_AVAILABLE_EDGE_MODES = // byte[n] 2301 ACAMERA_EDGE_START + 2, 2302 ACAMERA_EDGE_END, 2303 2304 /** 2305 * <p>The desired mode for for the camera device's flash control.</p> 2306 * 2307 * <p>Type: byte (acamera_metadata_enum_android_flash_mode_t)</p> 2308 * 2309 * <p>This tag may appear in: 2310 * <ul> 2311 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2312 * <li>ACaptureRequest</li> 2313 * </ul></p> 2314 * 2315 * <p>This control is only effective when flash unit is available 2316 * (<code>ACAMERA_FLASH_INFO_AVAILABLE == true</code>).</p> 2317 * <p>When this control is used, the ACAMERA_CONTROL_AE_MODE must be set to ON or OFF. 2318 * Otherwise, the camera device auto-exposure related flash control (ON_AUTO_FLASH, 2319 * ON_ALWAYS_FLASH, or ON_AUTO_FLASH_REDEYE) will override this control.</p> 2320 * <p>When set to OFF, the camera device will not fire flash for this capture.</p> 2321 * <p>When set to SINGLE, the camera device will fire flash regardless of the camera 2322 * device's auto-exposure routine's result. When used in still capture case, this 2323 * control should be used along with auto-exposure (AE) precapture metering sequence 2324 * (ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER), otherwise, the image may be incorrectly exposed.</p> 2325 * <p>When set to TORCH, the flash will be on continuously. This mode can be used 2326 * for use cases such as preview, auto-focus assist, still capture, or video recording.</p> 2327 * <p>The flash status will be reported by ACAMERA_FLASH_STATE in the capture result metadata.</p> 2328 * 2329 * @see ACAMERA_CONTROL_AE_MODE 2330 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 2331 * @see ACAMERA_FLASH_INFO_AVAILABLE 2332 * @see ACAMERA_FLASH_STATE 2333 */ 2334 ACAMERA_FLASH_MODE = // byte (acamera_metadata_enum_android_flash_mode_t) 2335 ACAMERA_FLASH_START + 2, 2336 /** 2337 * <p>Current state of the flash 2338 * unit.</p> 2339 * 2340 * <p>Type: byte (acamera_metadata_enum_android_flash_state_t)</p> 2341 * 2342 * <p>This tag may appear in: 2343 * <ul> 2344 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2345 * </ul></p> 2346 * 2347 * <p>When the camera device doesn't have flash unit 2348 * (i.e. <code>ACAMERA_FLASH_INFO_AVAILABLE == false</code>), this state will always be UNAVAILABLE. 2349 * Other states indicate the current flash status.</p> 2350 * <p>In certain conditions, this will be available on LEGACY devices:</p> 2351 * <ul> 2352 * <li>Flash-less cameras always return UNAVAILABLE.</li> 2353 * <li>Using ACAMERA_CONTROL_AE_MODE <code>==</code> ON_ALWAYS_FLASH 2354 * will always return FIRED.</li> 2355 * <li>Using ACAMERA_FLASH_MODE <code>==</code> TORCH 2356 * will always return FIRED.</li> 2357 * </ul> 2358 * <p>In all other conditions the state will not be available on 2359 * LEGACY devices (i.e. it will be <code>null</code>).</p> 2360 * 2361 * @see ACAMERA_CONTROL_AE_MODE 2362 * @see ACAMERA_FLASH_INFO_AVAILABLE 2363 * @see ACAMERA_FLASH_MODE 2364 */ 2365 ACAMERA_FLASH_STATE = // byte (acamera_metadata_enum_android_flash_state_t) 2366 ACAMERA_FLASH_START + 5, 2367 ACAMERA_FLASH_END, 2368 2369 /** 2370 * <p>Whether this camera device has a 2371 * flash unit.</p> 2372 * 2373 * <p>Type: byte (acamera_metadata_enum_android_flash_info_available_t)</p> 2374 * 2375 * <p>This tag may appear in: 2376 * <ul> 2377 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2378 * </ul></p> 2379 * 2380 * <p>Will be <code>false</code> if no flash is available.</p> 2381 * <p>If there is no flash unit, none of the flash controls do 2382 * anything.</p> 2383 */ 2384 ACAMERA_FLASH_INFO_AVAILABLE = // byte (acamera_metadata_enum_android_flash_info_available_t) 2385 ACAMERA_FLASH_INFO_START, 2386 /** 2387 * <p>Maximum flashlight brightness level.</p> 2388 * 2389 * <p>Type: int32</p> 2390 * 2391 * <p>This tag may appear in: 2392 * <ul> 2393 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2394 * </ul></p> 2395 * 2396 * <p>If this value is greater than 1, then the device supports controlling the 2397 * flashlight brightness level via 2398 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#turnOnTorchWithStrengthLevel">CameraManager#turnOnTorchWithStrengthLevel</a>. 2399 * If this value is equal to 1, flashlight brightness control is not supported. 2400 * The value for this key will be null for devices with no flash unit.</p> 2401 * <p>The maximum value is guaranteed to be safe to use for an indefinite duration in 2402 * terms of device flashlight lifespan, but may be too bright for comfort for many 2403 * use cases. Use the default torch brightness value to avoid problems with an 2404 * over-bright flashlight.</p> 2405 */ 2406 ACAMERA_FLASH_INFO_STRENGTH_MAXIMUM_LEVEL = // int32 2407 ACAMERA_FLASH_INFO_START + 2, 2408 /** 2409 * <p>Default flashlight brightness level to be set via 2410 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#turnOnTorchWithStrengthLevel">CameraManager#turnOnTorchWithStrengthLevel</a>.</p> 2411 * 2412 * <p>Type: int32</p> 2413 * 2414 * <p>This tag may appear in: 2415 * <ul> 2416 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2417 * </ul></p> 2418 * 2419 * <p>If flash unit is available this will be greater than or equal to 1 and less 2420 * or equal to <code>ACAMERA_FLASH_INFO_STRENGTH_MAXIMUM_LEVEL</code>.</p> 2421 * <p>Setting flashlight brightness above the default level 2422 * (i.e.<code>ACAMERA_FLASH_INFO_STRENGTH_DEFAULT_LEVEL</code>) may make the device more 2423 * likely to reach thermal throttling conditions and slow down, or drain the 2424 * battery quicker than normal. To minimize such issues, it is recommended to 2425 * start the flashlight at this default brightness until a user explicitly requests 2426 * a brighter level. 2427 * Note that the value for this key will be null for devices with no flash unit. 2428 * The default level should always be > 0.</p> 2429 * 2430 * @see ACAMERA_FLASH_INFO_STRENGTH_DEFAULT_LEVEL 2431 * @see ACAMERA_FLASH_INFO_STRENGTH_MAXIMUM_LEVEL 2432 */ 2433 ACAMERA_FLASH_INFO_STRENGTH_DEFAULT_LEVEL = // int32 2434 ACAMERA_FLASH_INFO_START + 3, 2435 ACAMERA_FLASH_INFO_END, 2436 2437 /** 2438 * <p>Operational mode for hot pixel correction.</p> 2439 * 2440 * <p>Type: byte (acamera_metadata_enum_android_hot_pixel_mode_t)</p> 2441 * 2442 * <p>This tag may appear in: 2443 * <ul> 2444 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2445 * <li>ACaptureRequest</li> 2446 * </ul></p> 2447 * 2448 * <p>Hotpixel correction interpolates out, or otherwise removes, pixels 2449 * that do not accurately measure the incoming light (i.e. pixels that 2450 * are stuck at an arbitrary value or are oversensitive).</p> 2451 */ 2452 ACAMERA_HOT_PIXEL_MODE = // byte (acamera_metadata_enum_android_hot_pixel_mode_t) 2453 ACAMERA_HOT_PIXEL_START, 2454 /** 2455 * <p>List of hot pixel correction modes for ACAMERA_HOT_PIXEL_MODE that are supported by this 2456 * camera device.</p> 2457 * 2458 * @see ACAMERA_HOT_PIXEL_MODE 2459 * 2460 * <p>Type: byte[n]</p> 2461 * 2462 * <p>This tag may appear in: 2463 * <ul> 2464 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2465 * </ul></p> 2466 * 2467 * <p>FULL mode camera devices will always support FAST.</p> 2468 */ 2469 ACAMERA_HOT_PIXEL_AVAILABLE_HOT_PIXEL_MODES = // byte[n] 2470 ACAMERA_HOT_PIXEL_START + 1, 2471 ACAMERA_HOT_PIXEL_END, 2472 2473 /** 2474 * <p>GPS coordinates to include in output JPEG 2475 * EXIF.</p> 2476 * 2477 * <p>Type: double[3]</p> 2478 * 2479 * <p>This tag may appear in: 2480 * <ul> 2481 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2482 * <li>ACaptureRequest</li> 2483 * </ul></p> 2484 * 2485 * <p>This tag is also used for HEIC image capture.</p> 2486 */ 2487 ACAMERA_JPEG_GPS_COORDINATES = // double[3] 2488 ACAMERA_JPEG_START, 2489 /** 2490 * <p>32 characters describing GPS algorithm to 2491 * include in EXIF.</p> 2492 * 2493 * <p>Type: byte</p> 2494 * 2495 * <p>This tag may appear in: 2496 * <ul> 2497 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2498 * <li>ACaptureRequest</li> 2499 * </ul></p> 2500 * 2501 * <p>This tag is also used for HEIC image capture.</p> 2502 */ 2503 ACAMERA_JPEG_GPS_PROCESSING_METHOD = // byte 2504 ACAMERA_JPEG_START + 1, 2505 /** 2506 * <p>Time GPS fix was made to include in 2507 * EXIF.</p> 2508 * 2509 * <p>Type: int64</p> 2510 * 2511 * <p>This tag may appear in: 2512 * <ul> 2513 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2514 * <li>ACaptureRequest</li> 2515 * </ul></p> 2516 * 2517 * <p>This tag is also used for HEIC image capture.</p> 2518 */ 2519 ACAMERA_JPEG_GPS_TIMESTAMP = // int64 2520 ACAMERA_JPEG_START + 2, 2521 /** 2522 * <p>The orientation for a JPEG image.</p> 2523 * 2524 * <p>Type: int32</p> 2525 * 2526 * <p>This tag may appear in: 2527 * <ul> 2528 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2529 * <li>ACaptureRequest</li> 2530 * </ul></p> 2531 * 2532 * <p>The clockwise rotation angle in degrees, relative to the orientation 2533 * to the camera, that the JPEG picture needs to be rotated by, to be viewed 2534 * upright.</p> 2535 * <p>Camera devices may either encode this value into the JPEG EXIF header, or 2536 * rotate the image data to match this orientation. When the image data is rotated, 2537 * the thumbnail data will also be rotated.</p> 2538 * <p>Note that this orientation is relative to the orientation of the camera sensor, given 2539 * by ACAMERA_SENSOR_ORIENTATION.</p> 2540 * <p>To translate from the device orientation given by the Android sensor APIs for camera 2541 * sensors which are not EXTERNAL, the following sample code may be used:</p> 2542 * <pre><code>private int getJpegOrientation(CameraCharacteristics c, int deviceOrientation) { 2543 * if (deviceOrientation == android.view.OrientationEventListener.ORIENTATION_UNKNOWN) return 0; 2544 * int sensorOrientation = c.get(CameraCharacteristics.SENSOR_ORIENTATION); 2545 * 2546 * // Round device orientation to a multiple of 90 2547 * deviceOrientation = (deviceOrientation + 45) / 90 * 90; 2548 * 2549 * // Reverse device orientation for front-facing cameras 2550 * boolean facingFront = c.get(CameraCharacteristics.LENS_FACING) == CameraCharacteristics.LENS_FACING_FRONT; 2551 * if (facingFront) deviceOrientation = -deviceOrientation; 2552 * 2553 * // Calculate desired JPEG orientation relative to camera orientation to make 2554 * // the image upright relative to the device orientation 2555 * int jpegOrientation = (sensorOrientation + deviceOrientation + 360) % 360; 2556 * 2557 * return jpegOrientation; 2558 * } 2559 * </code></pre> 2560 * <p>For EXTERNAL cameras the sensor orientation will always be set to 0 and the facing will 2561 * also be set to EXTERNAL. The above code is not relevant in such case.</p> 2562 * <p>This tag is also used to describe the orientation of the HEIC image capture, in which 2563 * case the rotation is reflected by 2564 * <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>, and not by 2565 * rotating the image data itself.</p> 2566 * 2567 * @see ACAMERA_SENSOR_ORIENTATION 2568 */ 2569 ACAMERA_JPEG_ORIENTATION = // int32 2570 ACAMERA_JPEG_START + 3, 2571 /** 2572 * <p>Compression quality of the final JPEG 2573 * image.</p> 2574 * 2575 * <p>Type: byte</p> 2576 * 2577 * <p>This tag may appear in: 2578 * <ul> 2579 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2580 * <li>ACaptureRequest</li> 2581 * </ul></p> 2582 * 2583 * <p>85-95 is typical usage range. This tag is also used to describe the quality 2584 * of the HEIC image capture.</p> 2585 */ 2586 ACAMERA_JPEG_QUALITY = // byte 2587 ACAMERA_JPEG_START + 4, 2588 /** 2589 * <p>Compression quality of JPEG 2590 * thumbnail.</p> 2591 * 2592 * <p>Type: byte</p> 2593 * 2594 * <p>This tag may appear in: 2595 * <ul> 2596 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2597 * <li>ACaptureRequest</li> 2598 * </ul></p> 2599 * 2600 * <p>This tag is also used to describe the quality of the HEIC image capture.</p> 2601 */ 2602 ACAMERA_JPEG_THUMBNAIL_QUALITY = // byte 2603 ACAMERA_JPEG_START + 5, 2604 /** 2605 * <p>Resolution of embedded JPEG thumbnail.</p> 2606 * 2607 * <p>Type: int32[2]</p> 2608 * 2609 * <p>This tag may appear in: 2610 * <ul> 2611 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2612 * <li>ACaptureRequest</li> 2613 * </ul></p> 2614 * 2615 * <p>When set to (0, 0) value, the JPEG EXIF will not contain thumbnail, 2616 * but the captured JPEG will still be a valid image.</p> 2617 * <p>For best results, when issuing a request for a JPEG image, the thumbnail size selected 2618 * should have the same aspect ratio as the main JPEG output.</p> 2619 * <p>If the thumbnail image aspect ratio differs from the JPEG primary image aspect 2620 * ratio, the camera device creates the thumbnail by cropping it from the primary image. 2621 * For example, if the primary image has 4:3 aspect ratio, the thumbnail image has 2622 * 16:9 aspect ratio, the primary image will be cropped vertically (letterbox) to 2623 * generate the thumbnail image. The thumbnail image will always have a smaller Field 2624 * Of View (FOV) than the primary image when aspect ratios differ.</p> 2625 * <p>When an ACAMERA_JPEG_ORIENTATION of non-zero degree is requested, 2626 * the camera device will handle thumbnail rotation in one of the following ways:</p> 2627 * <ul> 2628 * <li>Set the <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a> 2629 * and keep jpeg and thumbnail image data unrotated.</li> 2630 * <li>Rotate the jpeg and thumbnail image data and not set 2631 * <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>. In this 2632 * case, LIMITED or FULL hardware level devices will report rotated thumbnail size in 2633 * capture result, so the width and height will be interchanged if 90 or 270 degree 2634 * orientation is requested. LEGACY device will always report unrotated thumbnail 2635 * size.</li> 2636 * </ul> 2637 * <p>The tag is also used as thumbnail size for HEIC image format capture, in which case the 2638 * the thumbnail rotation is reflected by 2639 * <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>, and not by 2640 * rotating the thumbnail data itself.</p> 2641 * 2642 * @see ACAMERA_JPEG_ORIENTATION 2643 */ 2644 ACAMERA_JPEG_THUMBNAIL_SIZE = // int32[2] 2645 ACAMERA_JPEG_START + 6, 2646 /** 2647 * <p>List of JPEG thumbnail sizes for ACAMERA_JPEG_THUMBNAIL_SIZE supported by this 2648 * camera device.</p> 2649 * 2650 * @see ACAMERA_JPEG_THUMBNAIL_SIZE 2651 * 2652 * <p>Type: int32[2*n]</p> 2653 * 2654 * <p>This tag may appear in: 2655 * <ul> 2656 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2657 * </ul></p> 2658 * 2659 * <p>This list will include at least one non-zero resolution, plus <code>(0,0)</code> for indicating no 2660 * thumbnail should be generated.</p> 2661 * <p>Below conditions will be satisfied for this size list:</p> 2662 * <ul> 2663 * <li>The sizes will be sorted by increasing pixel area (width x height). 2664 * If several resolutions have the same area, they will be sorted by increasing width.</li> 2665 * <li>The aspect ratio of the largest thumbnail size will be same as the 2666 * aspect ratio of largest JPEG output size in ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS. 2667 * The largest size is defined as the size that has the largest pixel area 2668 * in a given size list.</li> 2669 * <li>Each output JPEG size in ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS will have at least 2670 * one corresponding size that has the same aspect ratio in availableThumbnailSizes, 2671 * and vice versa.</li> 2672 * <li>All non-<code>(0, 0)</code> sizes will have non-zero widths and heights.</li> 2673 * </ul> 2674 * <p>This list is also used as supported thumbnail sizes for HEIC image format capture.</p> 2675 * 2676 * @see ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS 2677 */ 2678 ACAMERA_JPEG_AVAILABLE_THUMBNAIL_SIZES = // int32[2*n] 2679 ACAMERA_JPEG_START + 7, 2680 ACAMERA_JPEG_END, 2681 2682 /** 2683 * <p>The desired lens aperture size, as a ratio of lens focal length to the 2684 * effective aperture diameter.</p> 2685 * 2686 * <p>Type: float</p> 2687 * 2688 * <p>This tag may appear in: 2689 * <ul> 2690 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2691 * <li>ACaptureRequest</li> 2692 * </ul></p> 2693 * 2694 * <p>Setting this value is only supported on the camera devices that have a variable 2695 * aperture lens.</p> 2696 * <p>When this is supported and ACAMERA_CONTROL_AE_MODE is OFF, 2697 * this can be set along with ACAMERA_SENSOR_EXPOSURE_TIME, 2698 * ACAMERA_SENSOR_SENSITIVITY, and ACAMERA_SENSOR_FRAME_DURATION 2699 * to achieve manual exposure control.</p> 2700 * <p>The requested aperture value may take several frames to reach the 2701 * requested value; the camera device will report the current (intermediate) 2702 * aperture size in capture result metadata while the aperture is changing. 2703 * While the aperture is still changing, ACAMERA_LENS_STATE will be set to MOVING.</p> 2704 * <p>When this is supported and ACAMERA_CONTROL_AE_MODE is one of 2705 * the ON modes, this will be overridden by the camera device 2706 * auto-exposure algorithm, the overridden values are then provided 2707 * back to the user in the corresponding result.</p> 2708 * 2709 * @see ACAMERA_CONTROL_AE_MODE 2710 * @see ACAMERA_LENS_STATE 2711 * @see ACAMERA_SENSOR_EXPOSURE_TIME 2712 * @see ACAMERA_SENSOR_FRAME_DURATION 2713 * @see ACAMERA_SENSOR_SENSITIVITY 2714 */ 2715 ACAMERA_LENS_APERTURE = // float 2716 ACAMERA_LENS_START, 2717 /** 2718 * <p>The desired setting for the lens neutral density filter(s).</p> 2719 * 2720 * <p>Type: float</p> 2721 * 2722 * <p>This tag may appear in: 2723 * <ul> 2724 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2725 * <li>ACaptureRequest</li> 2726 * </ul></p> 2727 * 2728 * <p>This control will not be supported on most camera devices.</p> 2729 * <p>Lens filters are typically used to lower the amount of light the 2730 * sensor is exposed to (measured in steps of EV). As used here, an EV 2731 * step is the standard logarithmic representation, which are 2732 * non-negative, and inversely proportional to the amount of light 2733 * hitting the sensor. For example, setting this to 0 would result 2734 * in no reduction of the incoming light, and setting this to 2 would 2735 * mean that the filter is set to reduce incoming light by two stops 2736 * (allowing 1/4 of the prior amount of light to the sensor).</p> 2737 * <p>It may take several frames before the lens filter density changes 2738 * to the requested value. While the filter density is still changing, 2739 * ACAMERA_LENS_STATE will be set to MOVING.</p> 2740 * 2741 * @see ACAMERA_LENS_STATE 2742 */ 2743 ACAMERA_LENS_FILTER_DENSITY = // float 2744 ACAMERA_LENS_START + 1, 2745 /** 2746 * <p>The desired lens focal length; used for optical zoom.</p> 2747 * 2748 * <p>Type: float</p> 2749 * 2750 * <p>This tag may appear in: 2751 * <ul> 2752 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2753 * <li>ACaptureRequest</li> 2754 * </ul></p> 2755 * 2756 * <p>This setting controls the physical focal length of the camera 2757 * device's lens. Changing the focal length changes the field of 2758 * view of the camera device, and is usually used for optical zoom.</p> 2759 * <p>Like ACAMERA_LENS_FOCUS_DISTANCE and ACAMERA_LENS_APERTURE, this 2760 * setting won't be applied instantaneously, and it may take several 2761 * frames before the lens can change to the requested focal length. 2762 * While the focal length is still changing, ACAMERA_LENS_STATE will 2763 * be set to MOVING.</p> 2764 * <p>Optical zoom via this control will not be supported on most devices. Starting from API 2765 * level 30, the camera device may combine optical and digital zoom through the 2766 * ACAMERA_CONTROL_ZOOM_RATIO control.</p> 2767 * 2768 * @see ACAMERA_CONTROL_ZOOM_RATIO 2769 * @see ACAMERA_LENS_APERTURE 2770 * @see ACAMERA_LENS_FOCUS_DISTANCE 2771 * @see ACAMERA_LENS_STATE 2772 */ 2773 ACAMERA_LENS_FOCAL_LENGTH = // float 2774 ACAMERA_LENS_START + 2, 2775 /** 2776 * <p>Desired distance to plane of sharpest focus, 2777 * measured from frontmost surface of the lens.</p> 2778 * 2779 * <p>Type: float</p> 2780 * 2781 * <p>This tag may appear in: 2782 * <ul> 2783 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2784 * <li>ACaptureRequest</li> 2785 * </ul></p> 2786 * 2787 * <p>Should be zero for fixed-focus cameras</p> 2788 */ 2789 ACAMERA_LENS_FOCUS_DISTANCE = // float 2790 ACAMERA_LENS_START + 3, 2791 /** 2792 * <p>Sets whether the camera device uses optical image stabilization (OIS) 2793 * when capturing images.</p> 2794 * 2795 * <p>Type: byte (acamera_metadata_enum_android_lens_optical_stabilization_mode_t)</p> 2796 * 2797 * <p>This tag may appear in: 2798 * <ul> 2799 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2800 * <li>ACaptureRequest</li> 2801 * </ul></p> 2802 * 2803 * <p>OIS is used to compensate for motion blur due to small 2804 * movements of the camera during capture. Unlike digital image 2805 * stabilization (ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE), OIS 2806 * makes use of mechanical elements to stabilize the camera 2807 * sensor, and thus allows for longer exposure times before 2808 * camera shake becomes apparent.</p> 2809 * <p>Switching between different optical stabilization modes may take several 2810 * frames to initialize, the camera device will report the current mode in 2811 * capture result metadata. For example, When "ON" mode is requested, the 2812 * optical stabilization modes in the first several capture results may still 2813 * be "OFF", and it will become "ON" when the initialization is done.</p> 2814 * <p>If a camera device supports both OIS and digital image stabilization 2815 * (ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE), turning both modes on may produce undesirable 2816 * interaction, so it is recommended not to enable both at the same time.</p> 2817 * <p>If ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE is set to "PREVIEW_STABILIZATION", 2818 * ACAMERA_LENS_OPTICAL_STABILIZATION_MODE is overridden. The camera sub-system may choose 2819 * to turn on hardware based image stabilization in addition to software based stabilization 2820 * if it deems that appropriate. This key's value in the capture result will reflect which 2821 * OIS mode was chosen.</p> 2822 * <p>Not all devices will support OIS; see 2823 * ACAMERA_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION for 2824 * available controls.</p> 2825 * 2826 * @see ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE 2827 * @see ACAMERA_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION 2828 * @see ACAMERA_LENS_OPTICAL_STABILIZATION_MODE 2829 */ 2830 ACAMERA_LENS_OPTICAL_STABILIZATION_MODE = // byte (acamera_metadata_enum_android_lens_optical_stabilization_mode_t) 2831 ACAMERA_LENS_START + 4, 2832 /** 2833 * <p>Direction the camera faces relative to 2834 * device screen.</p> 2835 * 2836 * <p>Type: byte (acamera_metadata_enum_android_lens_facing_t)</p> 2837 * 2838 * <p>This tag may appear in: 2839 * <ul> 2840 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2841 * </ul></p> 2842 * 2843 */ 2844 ACAMERA_LENS_FACING = // byte (acamera_metadata_enum_android_lens_facing_t) 2845 ACAMERA_LENS_START + 5, 2846 /** 2847 * <p>The orientation of the camera relative to the sensor 2848 * coordinate system.</p> 2849 * 2850 * <p>Type: float[4]</p> 2851 * 2852 * <p>This tag may appear in: 2853 * <ul> 2854 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2855 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2856 * </ul></p> 2857 * 2858 * <p>The four coefficients that describe the quaternion 2859 * rotation from the Android sensor coordinate system to a 2860 * camera-aligned coordinate system where the X-axis is 2861 * aligned with the long side of the image sensor, the Y-axis 2862 * is aligned with the short side of the image sensor, and 2863 * the Z-axis is aligned with the optical axis of the sensor.</p> 2864 * <p>To convert from the quaternion coefficients <code>(x,y,z,w)</code> 2865 * to the axis of rotation <code>(a_x, a_y, a_z)</code> and rotation 2866 * amount <code>theta</code>, the following formulas can be used:</p> 2867 * <pre><code> theta = 2 * acos(w) 2868 * a_x = x / sin(theta/2) 2869 * a_y = y / sin(theta/2) 2870 * a_z = z / sin(theta/2) 2871 * </code></pre> 2872 * <p>To create a 3x3 rotation matrix that applies the rotation 2873 * defined by this quaternion, the following matrix can be 2874 * used:</p> 2875 * <pre><code>R = [ 1 - 2y^2 - 2z^2, 2xy - 2zw, 2xz + 2yw, 2876 * 2xy + 2zw, 1 - 2x^2 - 2z^2, 2yz - 2xw, 2877 * 2xz - 2yw, 2yz + 2xw, 1 - 2x^2 - 2y^2 ] 2878 * </code></pre> 2879 * <p>This matrix can then be used to apply the rotation to a 2880 * column vector point with</p> 2881 * <p><code>p' = Rp</code></p> 2882 * <p>where <code>p</code> is in the device sensor coordinate system, and 2883 * <code>p'</code> is in the camera-oriented coordinate system.</p> 2884 * <p>If ACAMERA_LENS_POSE_REFERENCE is UNDEFINED, the quaternion rotation cannot 2885 * be accurately represented by the camera device, and will be represented by 2886 * default values matching its default facing.</p> 2887 * 2888 * @see ACAMERA_LENS_POSE_REFERENCE 2889 */ 2890 ACAMERA_LENS_POSE_ROTATION = // float[4] 2891 ACAMERA_LENS_START + 6, 2892 /** 2893 * <p>Position of the camera optical center.</p> 2894 * 2895 * <p>Type: float[3]</p> 2896 * 2897 * <p>This tag may appear in: 2898 * <ul> 2899 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 2900 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2901 * </ul></p> 2902 * 2903 * <p>The position of the camera device's lens optical center, 2904 * as a three-dimensional vector <code>(x,y,z)</code>.</p> 2905 * <p>Prior to Android P, or when ACAMERA_LENS_POSE_REFERENCE is PRIMARY_CAMERA, this position 2906 * is relative to the optical center of the largest camera device facing in the same 2907 * direction as this camera, in the <a href="https://developer.android.com/reference/android/hardware/SensorEvent.html">Android sensor 2908 * coordinate axes</a>. Note that only the axis definitions are shared with the sensor 2909 * coordinate system, but not the origin.</p> 2910 * <p>If this device is the largest or only camera device with a given facing, then this 2911 * position will be <code>(0, 0, 0)</code>; a camera device with a lens optical center located 3 cm 2912 * from the main sensor along the +X axis (to the right from the user's perspective) will 2913 * report <code>(0.03, 0, 0)</code>. Note that this means that, for many computer vision 2914 * applications, the position needs to be negated to convert it to a translation from the 2915 * camera to the origin.</p> 2916 * <p>To transform a pixel coordinates between two cameras facing the same direction, first 2917 * the source camera ACAMERA_LENS_DISTORTION must be corrected for. Then the source 2918 * camera ACAMERA_LENS_INTRINSIC_CALIBRATION needs to be applied, followed by the 2919 * ACAMERA_LENS_POSE_ROTATION of the source camera, the translation of the source camera 2920 * relative to the destination camera, the ACAMERA_LENS_POSE_ROTATION of the destination 2921 * camera, and finally the inverse of ACAMERA_LENS_INTRINSIC_CALIBRATION of the destination 2922 * camera. This obtains a radial-distortion-free coordinate in the destination camera pixel 2923 * coordinates.</p> 2924 * <p>To compare this against a real image from the destination camera, the destination camera 2925 * image then needs to be corrected for radial distortion before comparison or sampling.</p> 2926 * <p>When ACAMERA_LENS_POSE_REFERENCE is GYROSCOPE, then this position is relative to 2927 * the center of the primary gyroscope on the device. The axis definitions are the same as 2928 * with PRIMARY_CAMERA.</p> 2929 * <p>When ACAMERA_LENS_POSE_REFERENCE is UNDEFINED, this position cannot be accurately 2930 * represented by the camera device, and will be represented as <code>(0, 0, 0)</code>.</p> 2931 * <p>When ACAMERA_LENS_POSE_REFERENCE is AUTOMOTIVE, then this position is relative to the 2932 * origin of the automotive sensor coordinate system, which is at the center of the rear 2933 * axle.</p> 2934 * 2935 * @see ACAMERA_LENS_DISTORTION 2936 * @see ACAMERA_LENS_INTRINSIC_CALIBRATION 2937 * @see ACAMERA_LENS_POSE_REFERENCE 2938 * @see ACAMERA_LENS_POSE_ROTATION 2939 */ 2940 ACAMERA_LENS_POSE_TRANSLATION = // float[3] 2941 ACAMERA_LENS_START + 7, 2942 /** 2943 * <p>The range of scene distances that are in 2944 * sharp focus (depth of field).</p> 2945 * 2946 * <p>Type: float[2]</p> 2947 * 2948 * <p>This tag may appear in: 2949 * <ul> 2950 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2951 * </ul></p> 2952 * 2953 * <p>If variable focus not supported, can still report 2954 * fixed depth of field range</p> 2955 */ 2956 ACAMERA_LENS_FOCUS_RANGE = // float[2] 2957 ACAMERA_LENS_START + 8, 2958 /** 2959 * <p>Current lens status.</p> 2960 * 2961 * <p>Type: byte (acamera_metadata_enum_android_lens_state_t)</p> 2962 * 2963 * <p>This tag may appear in: 2964 * <ul> 2965 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 2966 * </ul></p> 2967 * 2968 * <p>For lens parameters ACAMERA_LENS_FOCAL_LENGTH, ACAMERA_LENS_FOCUS_DISTANCE, 2969 * ACAMERA_LENS_FILTER_DENSITY and ACAMERA_LENS_APERTURE, when changes are requested, 2970 * they may take several frames to reach the requested values. This state indicates 2971 * the current status of the lens parameters.</p> 2972 * <p>When the state is STATIONARY, the lens parameters are not changing. This could be 2973 * either because the parameters are all fixed, or because the lens has had enough 2974 * time to reach the most recently-requested values. 2975 * If all these lens parameters are not changeable for a camera device, as listed below:</p> 2976 * <ul> 2977 * <li>Fixed focus (<code>ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE == 0</code>), which means 2978 * ACAMERA_LENS_FOCUS_DISTANCE parameter will always be 0.</li> 2979 * <li>Fixed focal length (ACAMERA_LENS_INFO_AVAILABLE_FOCAL_LENGTHS contains single value), 2980 * which means the optical zoom is not supported.</li> 2981 * <li>No ND filter (ACAMERA_LENS_INFO_AVAILABLE_FILTER_DENSITIES contains only 0).</li> 2982 * <li>Fixed aperture (ACAMERA_LENS_INFO_AVAILABLE_APERTURES contains single value).</li> 2983 * </ul> 2984 * <p>Then this state will always be STATIONARY.</p> 2985 * <p>When the state is MOVING, it indicates that at least one of the lens parameters 2986 * is changing.</p> 2987 * 2988 * @see ACAMERA_LENS_APERTURE 2989 * @see ACAMERA_LENS_FILTER_DENSITY 2990 * @see ACAMERA_LENS_FOCAL_LENGTH 2991 * @see ACAMERA_LENS_FOCUS_DISTANCE 2992 * @see ACAMERA_LENS_INFO_AVAILABLE_APERTURES 2993 * @see ACAMERA_LENS_INFO_AVAILABLE_FILTER_DENSITIES 2994 * @see ACAMERA_LENS_INFO_AVAILABLE_FOCAL_LENGTHS 2995 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 2996 */ 2997 ACAMERA_LENS_STATE = // byte (acamera_metadata_enum_android_lens_state_t) 2998 ACAMERA_LENS_START + 9, 2999 /** 3000 * <p>The parameters for this camera device's intrinsic 3001 * calibration.</p> 3002 * 3003 * <p>Type: float[5]</p> 3004 * 3005 * <p>This tag may appear in: 3006 * <ul> 3007 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3008 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3009 * </ul></p> 3010 * 3011 * <p>The five calibration parameters that describe the 3012 * transform from camera-centric 3D coordinates to sensor 3013 * pixel coordinates:</p> 3014 * <pre><code>[f_x, f_y, c_x, c_y, s] 3015 * </code></pre> 3016 * <p>Where <code>f_x</code> and <code>f_y</code> are the horizontal and vertical 3017 * focal lengths, <code>[c_x, c_y]</code> is the position of the optical 3018 * axis, and <code>s</code> is a skew parameter for the sensor plane not 3019 * being aligned with the lens plane.</p> 3020 * <p>These are typically used within a transformation matrix K:</p> 3021 * <pre><code>K = [ f_x, s, c_x, 3022 * 0, f_y, c_y, 3023 * 0 0, 1 ] 3024 * </code></pre> 3025 * <p>which can then be combined with the camera pose rotation 3026 * <code>R</code> and translation <code>t</code> (ACAMERA_LENS_POSE_ROTATION and 3027 * ACAMERA_LENS_POSE_TRANSLATION, respectively) to calculate the 3028 * complete transform from world coordinates to pixel 3029 * coordinates:</p> 3030 * <pre><code>P = [ K 0 * [ R -Rt 3031 * 0 1 ] 0 1 ] 3032 * </code></pre> 3033 * <p>(Note the negation of poseTranslation when mapping from camera 3034 * to world coordinates, and multiplication by the rotation).</p> 3035 * <p>With <code>p_w</code> being a point in the world coordinate system 3036 * and <code>p_s</code> being a point in the camera active pixel array 3037 * coordinate system, and with the mapping including the 3038 * homogeneous division by z:</p> 3039 * <pre><code> p_h = (x_h, y_h, z_h) = P p_w 3040 * p_s = p_h / z_h 3041 * </code></pre> 3042 * <p>so <code>[x_s, y_s]</code> is the pixel coordinates of the world 3043 * point, <code>z_s = 1</code>, and <code>w_s</code> is a measurement of disparity 3044 * (depth) in pixel coordinates.</p> 3045 * <p>Note that the coordinate system for this transform is the 3046 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE system, 3047 * where <code>(0,0)</code> is the top-left of the 3048 * preCorrectionActiveArraySize rectangle. Once the pose and 3049 * intrinsic calibration transforms have been applied to a 3050 * world point, then the ACAMERA_LENS_DISTORTION 3051 * transform needs to be applied, and the result adjusted to 3052 * be in the ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE coordinate 3053 * system (where <code>(0, 0)</code> is the top-left of the 3054 * activeArraySize rectangle), to determine the final pixel 3055 * coordinate of the world point for processed (non-RAW) 3056 * output buffers.</p> 3057 * <p>For camera devices, the center of pixel <code>(x,y)</code> is located at 3058 * coordinate <code>(x + 0.5, y + 0.5)</code>. So on a device with a 3059 * precorrection active array of size <code>(10,10)</code>, the valid pixel 3060 * indices go from <code>(0,0)-(9,9)</code>, and an perfectly-built camera would 3061 * have an optical center at the exact center of the pixel grid, at 3062 * coordinates <code>(5.0, 5.0)</code>, which is the top-left corner of pixel 3063 * <code>(5,5)</code>.</p> 3064 * 3065 * @see ACAMERA_LENS_DISTORTION 3066 * @see ACAMERA_LENS_POSE_ROTATION 3067 * @see ACAMERA_LENS_POSE_TRANSLATION 3068 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 3069 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 3070 */ 3071 ACAMERA_LENS_INTRINSIC_CALIBRATION = // float[5] 3072 ACAMERA_LENS_START + 10, 3073 ACAMERA_LENS_RADIAL_DISTORTION = // Deprecated! DO NOT USE 3074 ACAMERA_LENS_START + 11, 3075 /** 3076 * <p>The origin for ACAMERA_LENS_POSE_TRANSLATION, and the accuracy of 3077 * ACAMERA_LENS_POSE_TRANSLATION and ACAMERA_LENS_POSE_ROTATION.</p> 3078 * 3079 * @see ACAMERA_LENS_POSE_ROTATION 3080 * @see ACAMERA_LENS_POSE_TRANSLATION 3081 * 3082 * <p>Type: byte (acamera_metadata_enum_android_lens_pose_reference_t)</p> 3083 * 3084 * <p>This tag may appear in: 3085 * <ul> 3086 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3087 * </ul></p> 3088 * 3089 * <p>Different calibration methods and use cases can produce better or worse results 3090 * depending on the selected coordinate origin.</p> 3091 */ 3092 ACAMERA_LENS_POSE_REFERENCE = // byte (acamera_metadata_enum_android_lens_pose_reference_t) 3093 ACAMERA_LENS_START + 12, 3094 /** 3095 * <p>The correction coefficients to correct for this camera device's 3096 * radial and tangential lens distortion.</p> 3097 * <p>Replaces the deprecated ACAMERA_LENS_RADIAL_DISTORTION field, which was 3098 * inconsistently defined.</p> 3099 * 3100 * @see ACAMERA_LENS_RADIAL_DISTORTION 3101 * 3102 * <p>Type: float[5]</p> 3103 * 3104 * <p>This tag may appear in: 3105 * <ul> 3106 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3107 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3108 * </ul></p> 3109 * 3110 * <p>Three radial distortion coefficients <code>[kappa_1, kappa_2, 3111 * kappa_3]</code> and two tangential distortion coefficients 3112 * <code>[kappa_4, kappa_5]</code> that can be used to correct the 3113 * lens's geometric distortion with the mapping equations:</p> 3114 * <pre><code> x_c = x_i * ( 1 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) + 3115 * kappa_4 * (2 * x_i * y_i) + kappa_5 * ( r^2 + 2 * x_i^2 ) 3116 * y_c = y_i * ( 1 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) + 3117 * kappa_5 * (2 * x_i * y_i) + kappa_4 * ( r^2 + 2 * y_i^2 ) 3118 * </code></pre> 3119 * <p>Here, <code>[x_c, y_c]</code> are the coordinates to sample in the 3120 * input image that correspond to the pixel values in the 3121 * corrected image at the coordinate <code>[x_i, y_i]</code>:</p> 3122 * <pre><code> correctedImage(x_i, y_i) = sample_at(x_c, y_c, inputImage) 3123 * </code></pre> 3124 * <p>The pixel coordinates are defined in a coordinate system 3125 * related to the ACAMERA_LENS_INTRINSIC_CALIBRATION 3126 * calibration fields; see that entry for details of the mapping stages. 3127 * Both <code>[x_i, y_i]</code> and <code>[x_c, y_c]</code> 3128 * have <code>(0,0)</code> at the lens optical center <code>[c_x, c_y]</code>, and 3129 * the range of the coordinates depends on the focal length 3130 * terms of the intrinsic calibration.</p> 3131 * <p>Finally, <code>r</code> represents the radial distance from the 3132 * optical center, <code>r^2 = x_i^2 + y_i^2</code>.</p> 3133 * <p>The distortion model used is the Brown-Conrady model.</p> 3134 * 3135 * @see ACAMERA_LENS_INTRINSIC_CALIBRATION 3136 */ 3137 ACAMERA_LENS_DISTORTION = // float[5] 3138 ACAMERA_LENS_START + 13, 3139 /** 3140 * <p>The correction coefficients to correct for this camera device's 3141 * radial and tangential lens distortion for a 3142 * CaptureRequest with ACAMERA_SENSOR_PIXEL_MODE set to 3143 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 3144 * 3145 * @see ACAMERA_SENSOR_PIXEL_MODE 3146 * 3147 * <p>Type: float[5]</p> 3148 * 3149 * <p>This tag may appear in: 3150 * <ul> 3151 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3152 * </ul></p> 3153 * 3154 * <p>Analogous to ACAMERA_LENS_DISTORTION, when ACAMERA_SENSOR_PIXEL_MODE is set to 3155 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 3156 * 3157 * @see ACAMERA_LENS_DISTORTION 3158 * @see ACAMERA_SENSOR_PIXEL_MODE 3159 */ 3160 ACAMERA_LENS_DISTORTION_MAXIMUM_RESOLUTION = // float[5] 3161 ACAMERA_LENS_START + 14, 3162 /** 3163 * <p>The parameters for this camera device's intrinsic 3164 * calibration when ACAMERA_SENSOR_PIXEL_MODE is set to 3165 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 3166 * 3167 * @see ACAMERA_SENSOR_PIXEL_MODE 3168 * 3169 * <p>Type: float[5]</p> 3170 * 3171 * <p>This tag may appear in: 3172 * <ul> 3173 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3174 * </ul></p> 3175 * 3176 * <p>Analogous to ACAMERA_LENS_INTRINSIC_CALIBRATION, when ACAMERA_SENSOR_PIXEL_MODE is set to 3177 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 3178 * 3179 * @see ACAMERA_LENS_INTRINSIC_CALIBRATION 3180 * @see ACAMERA_SENSOR_PIXEL_MODE 3181 */ 3182 ACAMERA_LENS_INTRINSIC_CALIBRATION_MAXIMUM_RESOLUTION = // float[5] 3183 ACAMERA_LENS_START + 15, 3184 ACAMERA_LENS_END, 3185 3186 /** 3187 * <p>List of aperture size values for ACAMERA_LENS_APERTURE that are 3188 * supported by this camera device.</p> 3189 * 3190 * @see ACAMERA_LENS_APERTURE 3191 * 3192 * <p>Type: float[n]</p> 3193 * 3194 * <p>This tag may appear in: 3195 * <ul> 3196 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3197 * </ul></p> 3198 * 3199 * <p>If the camera device doesn't support a variable lens aperture, 3200 * this list will contain only one value, which is the fixed aperture size.</p> 3201 * <p>If the camera device supports a variable aperture, the aperture values 3202 * in this list will be sorted in ascending order.</p> 3203 */ 3204 ACAMERA_LENS_INFO_AVAILABLE_APERTURES = // float[n] 3205 ACAMERA_LENS_INFO_START, 3206 /** 3207 * <p>List of neutral density filter values for 3208 * ACAMERA_LENS_FILTER_DENSITY that are supported by this camera device.</p> 3209 * 3210 * @see ACAMERA_LENS_FILTER_DENSITY 3211 * 3212 * <p>Type: float[n]</p> 3213 * 3214 * <p>This tag may appear in: 3215 * <ul> 3216 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3217 * </ul></p> 3218 * 3219 * <p>If a neutral density filter is not supported by this camera device, 3220 * this list will contain only 0. Otherwise, this list will include every 3221 * filter density supported by the camera device, in ascending order.</p> 3222 */ 3223 ACAMERA_LENS_INFO_AVAILABLE_FILTER_DENSITIES = // float[n] 3224 ACAMERA_LENS_INFO_START + 1, 3225 /** 3226 * <p>List of focal lengths for ACAMERA_LENS_FOCAL_LENGTH that are supported by this camera 3227 * device.</p> 3228 * 3229 * @see ACAMERA_LENS_FOCAL_LENGTH 3230 * 3231 * <p>Type: float[n]</p> 3232 * 3233 * <p>This tag may appear in: 3234 * <ul> 3235 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3236 * </ul></p> 3237 * 3238 * <p>If optical zoom is not supported, this list will only contain 3239 * a single value corresponding to the fixed focal length of the 3240 * device. Otherwise, this list will include every focal length supported 3241 * by the camera device, in ascending order.</p> 3242 */ 3243 ACAMERA_LENS_INFO_AVAILABLE_FOCAL_LENGTHS = // float[n] 3244 ACAMERA_LENS_INFO_START + 2, 3245 /** 3246 * <p>List of optical image stabilization (OIS) modes for 3247 * ACAMERA_LENS_OPTICAL_STABILIZATION_MODE that are supported by this camera device.</p> 3248 * 3249 * @see ACAMERA_LENS_OPTICAL_STABILIZATION_MODE 3250 * 3251 * <p>Type: byte[n]</p> 3252 * 3253 * <p>This tag may appear in: 3254 * <ul> 3255 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3256 * </ul></p> 3257 * 3258 * <p>If OIS is not supported by a given camera device, this list will 3259 * contain only OFF.</p> 3260 */ 3261 ACAMERA_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION = // byte[n] 3262 ACAMERA_LENS_INFO_START + 3, 3263 /** 3264 * <p>Hyperfocal distance for this lens.</p> 3265 * 3266 * <p>Type: float</p> 3267 * 3268 * <p>This tag may appear in: 3269 * <ul> 3270 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3271 * </ul></p> 3272 * 3273 * <p>If the lens is not fixed focus, the camera device will report this 3274 * field when ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION is APPROXIMATE or CALIBRATED.</p> 3275 * 3276 * @see ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION 3277 */ 3278 ACAMERA_LENS_INFO_HYPERFOCAL_DISTANCE = // float 3279 ACAMERA_LENS_INFO_START + 4, 3280 /** 3281 * <p>Shortest distance from frontmost surface 3282 * of the lens that can be brought into sharp focus.</p> 3283 * 3284 * <p>Type: float</p> 3285 * 3286 * <p>This tag may appear in: 3287 * <ul> 3288 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3289 * </ul></p> 3290 * 3291 * <p>If the lens is fixed-focus, this will be 3292 * 0.</p> 3293 */ 3294 ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE = // float 3295 ACAMERA_LENS_INFO_START + 5, 3296 /** 3297 * <p>Dimensions of lens shading map.</p> 3298 * 3299 * <p>Type: int32[2]</p> 3300 * 3301 * <p>This tag may appear in: 3302 * <ul> 3303 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3304 * </ul></p> 3305 * 3306 * <p>The map should be on the order of 30-40 rows and columns, and 3307 * must be smaller than 64x64.</p> 3308 */ 3309 ACAMERA_LENS_INFO_SHADING_MAP_SIZE = // int32[2] 3310 ACAMERA_LENS_INFO_START + 6, 3311 /** 3312 * <p>The lens focus distance calibration quality.</p> 3313 * 3314 * <p>Type: byte (acamera_metadata_enum_android_lens_info_focus_distance_calibration_t)</p> 3315 * 3316 * <p>This tag may appear in: 3317 * <ul> 3318 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3319 * </ul></p> 3320 * 3321 * <p>The lens focus distance calibration quality determines the reliability of 3322 * focus related metadata entries, i.e. ACAMERA_LENS_FOCUS_DISTANCE, 3323 * ACAMERA_LENS_FOCUS_RANGE, ACAMERA_LENS_INFO_HYPERFOCAL_DISTANCE, and 3324 * ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE.</p> 3325 * <p>APPROXIMATE and CALIBRATED devices report the focus metadata in 3326 * units of diopters (1/meter), so <code>0.0f</code> represents focusing at infinity, 3327 * and increasing positive numbers represent focusing closer and closer 3328 * to the camera device. The focus distance control also uses diopters 3329 * on these devices.</p> 3330 * <p>UNCALIBRATED devices do not use units that are directly comparable 3331 * to any real physical measurement, but <code>0.0f</code> still represents farthest 3332 * focus, and ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE represents the 3333 * nearest focus the device can achieve.</p> 3334 * 3335 * @see ACAMERA_LENS_FOCUS_DISTANCE 3336 * @see ACAMERA_LENS_FOCUS_RANGE 3337 * @see ACAMERA_LENS_INFO_HYPERFOCAL_DISTANCE 3338 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 3339 */ 3340 ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION = // byte (acamera_metadata_enum_android_lens_info_focus_distance_calibration_t) 3341 ACAMERA_LENS_INFO_START + 7, 3342 ACAMERA_LENS_INFO_END, 3343 3344 /** 3345 * <p>Mode of operation for the noise reduction algorithm.</p> 3346 * 3347 * <p>Type: byte (acamera_metadata_enum_android_noise_reduction_mode_t)</p> 3348 * 3349 * <p>This tag may appear in: 3350 * <ul> 3351 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3352 * <li>ACaptureRequest</li> 3353 * </ul></p> 3354 * 3355 * <p>The noise reduction algorithm attempts to improve image quality by removing 3356 * excessive noise added by the capture process, especially in dark conditions.</p> 3357 * <p>OFF means no noise reduction will be applied by the camera device, for both raw and 3358 * YUV domain.</p> 3359 * <p>MINIMAL means that only sensor raw domain basic noise reduction is enabled ,to remove 3360 * demosaicing or other processing artifacts. For YUV_REPROCESSING, MINIMAL is same as OFF. 3361 * This mode is optional, may not be support by all devices. The application should check 3362 * ACAMERA_NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES before using it.</p> 3363 * <p>FAST/HIGH_QUALITY both mean camera device determined noise filtering 3364 * will be applied. HIGH_QUALITY mode indicates that the camera device 3365 * will use the highest-quality noise filtering algorithms, 3366 * even if it slows down capture rate. FAST means the camera device will not 3367 * slow down capture rate when applying noise filtering. FAST may be the same as MINIMAL if 3368 * MINIMAL is listed, or the same as OFF if any noise filtering will slow down capture rate. 3369 * Every output stream will have a similar amount of enhancement applied.</p> 3370 * <p>ZERO_SHUTTER_LAG is meant to be used by applications that maintain a continuous circular 3371 * buffer of high-resolution images during preview and reprocess image(s) from that buffer 3372 * into a final capture when triggered by the user. In this mode, the camera device applies 3373 * noise reduction to low-resolution streams (below maximum recording resolution) to maximize 3374 * preview quality, but does not apply noise reduction to high-resolution streams, since 3375 * those will be reprocessed later if necessary.</p> 3376 * <p>For YUV_REPROCESSING, these FAST/HIGH_QUALITY modes both mean that the camera device 3377 * will apply FAST/HIGH_QUALITY YUV domain noise reduction, respectively. The camera device 3378 * may adjust the noise reduction parameters for best image quality based on the 3379 * android.reprocess.effectiveExposureFactor if it is set.</p> 3380 * 3381 * @see ACAMERA_NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES 3382 */ 3383 ACAMERA_NOISE_REDUCTION_MODE = // byte (acamera_metadata_enum_android_noise_reduction_mode_t) 3384 ACAMERA_NOISE_REDUCTION_START, 3385 /** 3386 * <p>List of noise reduction modes for ACAMERA_NOISE_REDUCTION_MODE that are supported 3387 * by this camera device.</p> 3388 * 3389 * @see ACAMERA_NOISE_REDUCTION_MODE 3390 * 3391 * <p>Type: byte[n]</p> 3392 * 3393 * <p>This tag may appear in: 3394 * <ul> 3395 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3396 * </ul></p> 3397 * 3398 * <p>Full-capability camera devices will always support OFF and FAST.</p> 3399 * <p>Camera devices that support YUV_REPROCESSING or PRIVATE_REPROCESSING will support 3400 * ZERO_SHUTTER_LAG.</p> 3401 * <p>Legacy-capability camera devices will only support FAST mode.</p> 3402 */ 3403 ACAMERA_NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES = // byte[n] 3404 ACAMERA_NOISE_REDUCTION_START + 2, 3405 ACAMERA_NOISE_REDUCTION_END, 3406 3407 /** 3408 * <p>The maximum numbers of different types of output streams 3409 * that can be configured and used simultaneously by a camera device.</p> 3410 * 3411 * <p>Type: int32[3]</p> 3412 * 3413 * <p>This tag may appear in: 3414 * <ul> 3415 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3416 * </ul></p> 3417 * 3418 * <p>This is a 3 element tuple that contains the max number of output simultaneous 3419 * streams for raw sensor, processed (but not stalling), and processed (and stalling) 3420 * formats respectively. For example, assuming that JPEG is typically a processed and 3421 * stalling stream, if max raw sensor format output stream number is 1, max YUV streams 3422 * number is 3, and max JPEG stream number is 2, then this tuple should be <code>(1, 3, 2)</code>.</p> 3423 * <p>This lists the upper bound of the number of output streams supported by 3424 * the camera device. Using more streams simultaneously may require more hardware and 3425 * CPU resources that will consume more power. The image format for an output stream can 3426 * be any supported format provided by ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS. 3427 * The formats defined in ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS can be categorized 3428 * into the 3 stream types as below:</p> 3429 * <ul> 3430 * <li>Processed (but stalling): any non-RAW format with a stallDurations > 0. 3431 * Typically {@link AIMAGE_FORMAT_JPEG JPEG format}.</li> 3432 * <li>Raw formats: {@link AIMAGE_FORMAT_RAW16 RAW_SENSOR}, {@link AIMAGE_FORMAT_RAW10 RAW10}, or 3433 * {@link AIMAGE_FORMAT_RAW12 RAW12}.</li> 3434 * <li>Processed (but not-stalling): any non-RAW format without a stall duration. Typically 3435 * {@link AIMAGE_FORMAT_YUV_420_888 YUV_420_888}, 3436 * <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> 3437 * </ul> 3438 * 3439 * @see ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS 3440 */ 3441 ACAMERA_REQUEST_MAX_NUM_OUTPUT_STREAMS = // int32[3] 3442 ACAMERA_REQUEST_START + 6, 3443 /** 3444 * <p>Specifies the number of pipeline stages the frame went 3445 * through from when it was exposed to when the final completed result 3446 * was available to the framework.</p> 3447 * 3448 * <p>Type: byte</p> 3449 * 3450 * <p>This tag may appear in: 3451 * <ul> 3452 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3453 * </ul></p> 3454 * 3455 * <p>Depending on what settings are used in the request, and 3456 * what streams are configured, the data may undergo less processing, 3457 * and some pipeline stages skipped.</p> 3458 * <p>See ACAMERA_REQUEST_PIPELINE_MAX_DEPTH for more details.</p> 3459 * 3460 * @see ACAMERA_REQUEST_PIPELINE_MAX_DEPTH 3461 */ 3462 ACAMERA_REQUEST_PIPELINE_DEPTH = // byte 3463 ACAMERA_REQUEST_START + 9, 3464 /** 3465 * <p>Specifies the number of maximum pipeline stages a frame 3466 * has to go through from when it's exposed to when it's available 3467 * to the framework.</p> 3468 * 3469 * <p>Type: byte</p> 3470 * 3471 * <p>This tag may appear in: 3472 * <ul> 3473 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3474 * </ul></p> 3475 * 3476 * <p>A typical minimum value for this is 2 (one stage to expose, 3477 * one stage to readout) from the sensor. The ISP then usually adds 3478 * its own stages to do custom HW processing. Further stages may be 3479 * added by SW processing.</p> 3480 * <p>Depending on what settings are used (e.g. YUV, JPEG) and what 3481 * processing is enabled (e.g. face detection), the actual pipeline 3482 * depth (specified by ACAMERA_REQUEST_PIPELINE_DEPTH) may be less than 3483 * the max pipeline depth.</p> 3484 * <p>A pipeline depth of X stages is equivalent to a pipeline latency of 3485 * X frame intervals.</p> 3486 * <p>This value will normally be 8 or less, however, for high speed capture session, 3487 * the max pipeline depth will be up to 8 x size of high speed capture request list.</p> 3488 * 3489 * @see ACAMERA_REQUEST_PIPELINE_DEPTH 3490 */ 3491 ACAMERA_REQUEST_PIPELINE_MAX_DEPTH = // byte 3492 ACAMERA_REQUEST_START + 10, 3493 /** 3494 * <p>Defines how many sub-components 3495 * a result will be composed of.</p> 3496 * 3497 * <p>Type: int32</p> 3498 * 3499 * <p>This tag may appear in: 3500 * <ul> 3501 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3502 * </ul></p> 3503 * 3504 * <p>In order to combat the pipeline latency, partial results 3505 * may be delivered to the application layer from the camera device as 3506 * soon as they are available.</p> 3507 * <p>Optional; defaults to 1. A value of 1 means that partial 3508 * results are not supported, and only the final TotalCaptureResult will 3509 * be produced by the camera device.</p> 3510 * <p>A typical use case for this might be: after requesting an 3511 * auto-focus (AF) lock the new AF state might be available 50% 3512 * of the way through the pipeline. The camera device could 3513 * then immediately dispatch this state via a partial result to 3514 * the application, and the rest of the metadata via later 3515 * partial results.</p> 3516 */ 3517 ACAMERA_REQUEST_PARTIAL_RESULT_COUNT = // int32 3518 ACAMERA_REQUEST_START + 11, 3519 /** 3520 * <p>List of capabilities that this camera device 3521 * advertises as fully supporting.</p> 3522 * 3523 * <p>Type: byte[n] (acamera_metadata_enum_android_request_available_capabilities_t)</p> 3524 * 3525 * <p>This tag may appear in: 3526 * <ul> 3527 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3528 * </ul></p> 3529 * 3530 * <p>A capability is a contract that the camera device makes in order 3531 * to be able to satisfy one or more use cases.</p> 3532 * <p>Listing a capability guarantees that the whole set of features 3533 * required to support a common use will all be available.</p> 3534 * <p>Using a subset of the functionality provided by an unsupported 3535 * capability may be possible on a specific camera device implementation; 3536 * to do this query each of ACAMERA_REQUEST_AVAILABLE_REQUEST_KEYS, 3537 * ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS, 3538 * ACAMERA_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS.</p> 3539 * <p>The following capabilities are guaranteed to be available on 3540 * ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL <code>==</code> FULL devices:</p> 3541 * <ul> 3542 * <li>MANUAL_SENSOR</li> 3543 * <li>MANUAL_POST_PROCESSING</li> 3544 * </ul> 3545 * <p>Other capabilities may be available on either FULL or LIMITED 3546 * devices, but the application should query this key to be sure.</p> 3547 * 3548 * @see ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL 3549 * @see ACAMERA_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS 3550 * @see ACAMERA_REQUEST_AVAILABLE_REQUEST_KEYS 3551 * @see ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS 3552 */ 3553 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES = // byte[n] (acamera_metadata_enum_android_request_available_capabilities_t) 3554 ACAMERA_REQUEST_START + 12, 3555 /** 3556 * <p>A list of all keys that the camera device has available 3557 * to use with {@link ACaptureRequest }.</p> 3558 * 3559 * <p>Type: int32[n]</p> 3560 * 3561 * <p>This tag may appear in: 3562 * <ul> 3563 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3564 * </ul></p> 3565 * 3566 * <p>Attempting to set a key into a CaptureRequest that is not 3567 * listed here will result in an invalid request and will be rejected 3568 * by the camera device.</p> 3569 * <p>This field can be used to query the feature set of a camera device 3570 * at a more granular level than capabilities. This is especially 3571 * important for optional keys that are not listed under any capability 3572 * in ACAMERA_REQUEST_AVAILABLE_CAPABILITIES.</p> 3573 * 3574 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 3575 */ 3576 ACAMERA_REQUEST_AVAILABLE_REQUEST_KEYS = // int32[n] 3577 ACAMERA_REQUEST_START + 13, 3578 /** 3579 * <p>A list of all keys that the camera device has available to use with {@link ACameraCaptureSession_captureCallback_result }.</p> 3580 * 3581 * <p>Type: int32[n]</p> 3582 * 3583 * <p>This tag may appear in: 3584 * <ul> 3585 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3586 * </ul></p> 3587 * 3588 * <p>Attempting to get a key from a CaptureResult that is not 3589 * listed here will always return a <code>null</code> value. Getting a key from 3590 * a CaptureResult that is listed here will generally never return a <code>null</code> 3591 * value.</p> 3592 * <p>The following keys may return <code>null</code> unless they are enabled:</p> 3593 * <ul> 3594 * <li>ACAMERA_STATISTICS_LENS_SHADING_MAP (non-null iff ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE == ON)</li> 3595 * </ul> 3596 * <p>(Those sometimes-null keys will nevertheless be listed here 3597 * if they are available.)</p> 3598 * <p>This field can be used to query the feature set of a camera device 3599 * at a more granular level than capabilities. This is especially 3600 * important for optional keys that are not listed under any capability 3601 * in ACAMERA_REQUEST_AVAILABLE_CAPABILITIES.</p> 3602 * 3603 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 3604 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP 3605 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE 3606 */ 3607 ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS = // int32[n] 3608 ACAMERA_REQUEST_START + 14, 3609 /** 3610 * <p>A list of all keys that the camera device has available to use with {@link ACameraManager_getCameraCharacteristics }.</p> 3611 * 3612 * <p>Type: int32[n]</p> 3613 * 3614 * <p>This tag may appear in: 3615 * <ul> 3616 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3617 * </ul></p> 3618 * 3619 * <p>This entry follows the same rules as 3620 * ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS (except that it applies for 3621 * CameraCharacteristics instead of CaptureResult). See above for more 3622 * details.</p> 3623 * 3624 * @see ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS 3625 */ 3626 ACAMERA_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS = // int32[n] 3627 ACAMERA_REQUEST_START + 15, 3628 /** 3629 * <p>A subset of the available request keys that the camera device 3630 * can pass as part of the capture session initialization.</p> 3631 * 3632 * <p>Type: int32[n]</p> 3633 * 3634 * <p>This tag may appear in: 3635 * <ul> 3636 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3637 * </ul></p> 3638 * 3639 * <p>This is a subset of ACAMERA_REQUEST_AVAILABLE_REQUEST_KEYS which 3640 * contains a list of keys that are difficult to apply per-frame and 3641 * can result in unexpected delays when modified during the capture session 3642 * lifetime. Typical examples include parameters that require a 3643 * time-consuming hardware re-configuration or internal camera pipeline 3644 * change. For performance reasons we advise clients to pass their initial 3645 * values as part of 3646 * {@link ACameraDevice_createCaptureSessionWithSessionParameters }. 3647 * Once the camera capture session is enabled it is also recommended to avoid 3648 * changing them from their initial values set in 3649 * {@link ACameraDevice_createCaptureSessionWithSessionParameters }. 3650 * Control over session parameters can still be exerted in capture requests 3651 * but clients should be aware and expect delays during their application. 3652 * An example usage scenario could look like this:</p> 3653 * <ul> 3654 * <li>The camera client starts by querying the session parameter key list via 3655 * {@link ACameraManager_getCameraCharacteristics }.</li> 3656 * <li>Before triggering the capture session create sequence, a capture request 3657 * must be built via 3658 * {@link ACameraDevice_createCaptureRequest } 3659 * using an appropriate template matching the particular use case.</li> 3660 * <li>The client should go over the list of session parameters and check 3661 * whether some of the keys listed matches with the parameters that 3662 * they intend to modify as part of the first capture request.</li> 3663 * <li>If there is no such match, the capture request can be passed 3664 * unmodified to 3665 * {@link ACameraDevice_createCaptureSessionWithSessionParameters }.</li> 3666 * <li>If matches do exist, the client should update the respective values 3667 * and pass the request to 3668 * {@link ACameraDevice_createCaptureSessionWithSessionParameters }.</li> 3669 * <li>After the capture session initialization completes the session parameter 3670 * key list can continue to serve as reference when posting or updating 3671 * further requests. As mentioned above further changes to session 3672 * parameters should ideally be avoided, if updates are necessary 3673 * however clients could expect a delay/glitch during the 3674 * parameter switch.</li> 3675 * </ul> 3676 * 3677 * @see ACAMERA_REQUEST_AVAILABLE_REQUEST_KEYS 3678 */ 3679 ACAMERA_REQUEST_AVAILABLE_SESSION_KEYS = // int32[n] 3680 ACAMERA_REQUEST_START + 16, 3681 /** 3682 * <p>A subset of the available request keys that can be overridden for 3683 * physical devices backing a logical multi-camera.</p> 3684 * 3685 * <p>Type: int32[n]</p> 3686 * 3687 * <p>This tag may appear in: 3688 * <ul> 3689 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3690 * </ul></p> 3691 * 3692 * <p>This is a subset of ACAMERA_REQUEST_AVAILABLE_REQUEST_KEYS which contains a list 3693 * of keys that can be overridden using 3694 * <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.Builder.html#setPhysicalCameraKey">Builder#setPhysicalCameraKey</a>. 3695 * The respective value of such request key can be obtained by calling 3696 * <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.Builder.html#getPhysicalCameraKey">Builder#getPhysicalCameraKey</a>. 3697 * Capture requests that contain individual physical device requests must be built via 3698 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureRequest(int,">Set)</a>.</p> 3699 * 3700 * @see ACAMERA_REQUEST_AVAILABLE_REQUEST_KEYS 3701 */ 3702 ACAMERA_REQUEST_AVAILABLE_PHYSICAL_CAMERA_REQUEST_KEYS = // int32[n] 3703 ACAMERA_REQUEST_START + 17, 3704 /** 3705 * <p>A map of all available 10-bit dynamic range profiles along with their 3706 * capture request constraints.</p> 3707 * 3708 * <p>Type: int64[n*3] (acamera_metadata_enum_android_request_available_dynamic_range_profiles_map_t)</p> 3709 * 3710 * <p>This tag may appear in: 3711 * <ul> 3712 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3713 * </ul></p> 3714 * 3715 * <p>Devices supporting the 10-bit output capability 3716 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT">CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT</a> 3717 * must list their supported dynamic range profiles. In case the camera is not able to 3718 * support every possible profile combination within a single capture request, then the 3719 * constraints must be listed here as well.</p> 3720 */ 3721 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP = // int64[n*3] (acamera_metadata_enum_android_request_available_dynamic_range_profiles_map_t) 3722 ACAMERA_REQUEST_START + 19, 3723 /** 3724 * <p>A list of all possible color space profiles supported by a camera device.</p> 3725 * 3726 * <p>Type: int64[n*3] (acamera_metadata_enum_android_request_available_color_space_profiles_map_t)</p> 3727 * 3728 * <p>This tag may appear in: 3729 * <ul> 3730 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3731 * </ul></p> 3732 * 3733 * <p>A color space profile is a combination of a color space, an image format, and a dynamic range 3734 * profile. If a camera does not support the 3735 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT">CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT</a> 3736 * capability, the dynamic range profile will always be 3737 * <a href="https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#STANDARD">DynamicRangeProfiles#STANDARD</a>. Camera clients can 3738 * use <a href="https://developer.android.com/reference/android/hardware/camera2/params/SessionConfiguration.html#setColorSpace">SessionConfiguration#setColorSpace</a> to select 3739 * a color space.</p> 3740 */ 3741 ACAMERA_REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP = // int64[n*3] (acamera_metadata_enum_android_request_available_color_space_profiles_map_t) 3742 ACAMERA_REQUEST_START + 21, 3743 ACAMERA_REQUEST_END, 3744 3745 /** 3746 * <p>The desired region of the sensor to read out for this capture.</p> 3747 * 3748 * <p>Type: int32[4]</p> 3749 * 3750 * <p>This tag may appear in: 3751 * <ul> 3752 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 3753 * <li>ACaptureRequest</li> 3754 * </ul></p> 3755 * 3756 * <p>This control can be used to implement digital zoom.</p> 3757 * <p>For devices not supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate 3758 * system always follows that of ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with <code>(0, 0)</code> being 3759 * the top-left pixel of the active array.</p> 3760 * <p>For devices supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate system 3761 * depends on the mode being set. When the distortion correction mode is OFF, the 3762 * coordinate system follows ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, with <code>(0, 3763 * 0)</code> being the top-left pixel of the pre-correction active array. When the distortion 3764 * correction mode is not OFF, the coordinate system follows 3765 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with <code>(0, 0)</code> being the top-left pixel of the 3766 * active array.</p> 3767 * <p>Output streams use this rectangle to produce their output, cropping to a smaller region 3768 * if necessary to maintain the stream's aspect ratio, then scaling the sensor input to 3769 * match the output's configured resolution.</p> 3770 * <p>The crop region is usually applied after the RAW to other color space (e.g. YUV) 3771 * conversion. As a result RAW streams are not croppable unless supported by the 3772 * camera device. See ACAMERA_SCALER_AVAILABLE_STREAM_USE_CASES#CROPPED_RAW for details.</p> 3773 * <p>For non-raw streams, any additional per-stream cropping will be done to maximize the 3774 * final pixel area of the stream.</p> 3775 * <p>For example, if the crop region is set to a 4:3 aspect ratio, then 4:3 streams will use 3776 * the exact crop region. 16:9 streams will further crop vertically (letterbox).</p> 3777 * <p>Conversely, if the crop region is set to a 16:9, then 4:3 outputs will crop horizontally 3778 * (pillarbox), and 16:9 streams will match exactly. These additional crops will be 3779 * centered within the crop region.</p> 3780 * <p>To illustrate, here are several scenarios of different crop regions and output streams, 3781 * for a hypothetical camera device with an active array of size <code>(2000,1500)</code>. Note that 3782 * several of these examples use non-centered crop regions for ease of illustration; such 3783 * regions are only supported on devices with FREEFORM capability 3784 * (ACAMERA_SCALER_CROPPING_TYPE <code>== FREEFORM</code>), but this does not affect the way the crop 3785 * rules work otherwise.</p> 3786 * <ul> 3787 * <li>Camera Configuration:<ul> 3788 * <li>Active array size: <code>2000x1500</code> (3 MP, 4:3 aspect ratio)</li> 3789 * <li>Output stream #1: <code>640x480</code> (VGA, 4:3 aspect ratio)</li> 3790 * <li>Output stream #2: <code>1280x720</code> (720p, 16:9 aspect ratio)</li> 3791 * </ul> 3792 * </li> 3793 * <li>Case #1: 4:3 crop region with 2x digital zoom<ul> 3794 * <li>Crop region: <code>Rect(500, 375, 1500, 1125) // (left, top, right, bottom)</code></li> 3795 * <li><img alt="4:3 aspect ratio crop diagram" src="../images/camera2/metadata/android.scaler.cropRegion/crop-region-43-ratio.png" /></li> 3796 * <li><code>640x480</code> stream source area: <code>(500, 375, 1500, 1125)</code> (equal to crop region)</li> 3797 * <li><code>1280x720</code> stream source area: <code>(500, 469, 1500, 1031)</code> (letterboxed)</li> 3798 * </ul> 3799 * </li> 3800 * <li>Case #2: 16:9 crop region with ~1.5x digital zoom.<ul> 3801 * <li>Crop region: <code>Rect(500, 375, 1833, 1125)</code></li> 3802 * <li><img alt="16:9 aspect ratio crop diagram" src="../images/camera2/metadata/android.scaler.cropRegion/crop-region-169-ratio.png" /></li> 3803 * <li><code>640x480</code> stream source area: <code>(666, 375, 1666, 1125)</code> (pillarboxed)</li> 3804 * <li><code>1280x720</code> stream source area: <code>(500, 375, 1833, 1125)</code> (equal to crop region)</li> 3805 * </ul> 3806 * </li> 3807 * <li>Case #3: 1:1 crop region with ~2.6x digital zoom.<ul> 3808 * <li>Crop region: <code>Rect(500, 375, 1250, 1125)</code></li> 3809 * <li><img alt="1:1 aspect ratio crop diagram" src="../images/camera2/metadata/android.scaler.cropRegion/crop-region-11-ratio.png" /></li> 3810 * <li><code>640x480</code> stream source area: <code>(500, 469, 1250, 1031)</code> (letterboxed)</li> 3811 * <li><code>1280x720</code> stream source area: <code>(500, 543, 1250, 957)</code> (letterboxed)</li> 3812 * </ul> 3813 * </li> 3814 * <li>Case #4: Replace <code>640x480</code> stream with <code>1024x1024</code> stream, with 4:3 crop region:<ul> 3815 * <li>Crop region: <code>Rect(500, 375, 1500, 1125)</code></li> 3816 * <li><img alt="Square output, 4:3 aspect ratio crop diagram" src="../images/camera2/metadata/android.scaler.cropRegion/crop-region-43-square-ratio.png" /></li> 3817 * <li><code>1024x1024</code> stream source area: <code>(625, 375, 1375, 1125)</code> (pillarboxed)</li> 3818 * <li><code>1280x720</code> stream source area: <code>(500, 469, 1500, 1031)</code> (letterboxed)</li> 3819 * <li>Note that in this case, neither of the two outputs is a subset of the other, with 3820 * each containing image data the other doesn't have.</li> 3821 * </ul> 3822 * </li> 3823 * </ul> 3824 * <p>If the coordinate system is ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, the width and height 3825 * of the crop region cannot be set to be smaller than 3826 * <code>floor( activeArraySize.width / ACAMERA_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM )</code> and 3827 * <code>floor( activeArraySize.height / ACAMERA_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM )</code>, respectively.</p> 3828 * <p>If the coordinate system is ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, the width 3829 * and height of the crop region cannot be set to be smaller than 3830 * <code>floor( preCorrectionActiveArraySize.width / ACAMERA_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM )</code> 3831 * and 3832 * <code>floor( preCorrectionActiveArraySize.height / ACAMERA_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM )</code>, 3833 * respectively.</p> 3834 * <p>The camera device may adjust the crop region to account for rounding and other hardware 3835 * requirements; the final crop region used will be included in the output capture result.</p> 3836 * <p>The camera sensor output aspect ratio depends on factors such as output stream 3837 * combination and ACAMERA_CONTROL_AE_TARGET_FPS_RANGE, and shouldn't be adjusted by using 3838 * this control. And the camera device will treat different camera sensor output sizes 3839 * (potentially with in-sensor crop) as the same crop of 3840 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE. As a result, the application shouldn't assume the 3841 * maximum crop region always maps to the same aspect ratio or field of view for the 3842 * sensor output.</p> 3843 * <p>Starting from API level 30, it's strongly recommended to use ACAMERA_CONTROL_ZOOM_RATIO 3844 * to take advantage of better support for zoom with logical multi-camera. The benefits 3845 * include better precision with optical-digital zoom combination, and ability to do 3846 * zoom-out from 1.0x. When using ACAMERA_CONTROL_ZOOM_RATIO for zoom, the crop region in 3847 * the capture request should be left as the default activeArray size. The 3848 * coordinate system is post-zoom, meaning that the activeArraySize or 3849 * preCorrectionActiveArraySize covers the camera device's field of view "after" zoom. See 3850 * ACAMERA_CONTROL_ZOOM_RATIO for details.</p> 3851 * <p>For camera devices with the 3852 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 3853 * capability or devices where <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a> 3854 * lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE">ACAMERA_SENSOR_PIXEL_MODE</a></p> 3855 * <p>ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION / 3856 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION must be used as the 3857 * coordinate system for requests where ACAMERA_SENSOR_PIXEL_MODE is set to 3858 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 3859 * <p>The data representation is int[4], which maps to (left, top, width, height).</p> 3860 * 3861 * @see ACAMERA_CONTROL_AE_TARGET_FPS_RANGE 3862 * @see ACAMERA_CONTROL_ZOOM_RATIO 3863 * @see ACAMERA_DISTORTION_CORRECTION_MODE 3864 * @see ACAMERA_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM 3865 * @see ACAMERA_SCALER_AVAILABLE_STREAM_USE_CASES 3866 * @see ACAMERA_SCALER_CROPPING_TYPE 3867 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 3868 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION 3869 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 3870 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION 3871 * @see ACAMERA_SENSOR_PIXEL_MODE 3872 */ 3873 ACAMERA_SCALER_CROP_REGION = // int32[4] 3874 ACAMERA_SCALER_START, 3875 /** 3876 * <p>The maximum ratio between both active area width 3877 * and crop region width, and active area height and 3878 * crop region height, for ACAMERA_SCALER_CROP_REGION.</p> 3879 * 3880 * @see ACAMERA_SCALER_CROP_REGION 3881 * 3882 * <p>Type: float</p> 3883 * 3884 * <p>This tag may appear in: 3885 * <ul> 3886 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3887 * </ul></p> 3888 * 3889 * <p>This represents the maximum amount of zooming possible by 3890 * the camera device, or equivalently, the minimum cropping 3891 * window size.</p> 3892 * <p>Crop regions that have a width or height that is smaller 3893 * than this ratio allows will be rounded up to the minimum 3894 * allowed size by the camera device.</p> 3895 * <p>Starting from API level 30, when using ACAMERA_CONTROL_ZOOM_RATIO to zoom in or out, 3896 * the application must use ACAMERA_CONTROL_ZOOM_RATIO_RANGE to query both the minimum and 3897 * maximum zoom ratio.</p> 3898 * 3899 * @see ACAMERA_CONTROL_ZOOM_RATIO 3900 * @see ACAMERA_CONTROL_ZOOM_RATIO_RANGE 3901 */ 3902 ACAMERA_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM = // float 3903 ACAMERA_SCALER_START + 4, 3904 /** 3905 * <p>The available stream configurations that this 3906 * camera device supports 3907 * (i.e. format, width, height, output/input stream).</p> 3908 * 3909 * <p>Type: int32[n*4] (acamera_metadata_enum_android_scaler_available_stream_configurations_t)</p> 3910 * 3911 * <p>This tag may appear in: 3912 * <ul> 3913 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3914 * </ul></p> 3915 * 3916 * <p>The configurations are listed as <code>(format, width, height, input?)</code> 3917 * tuples.</p> 3918 * <p>For a given use case, the actual maximum supported resolution 3919 * may be lower than what is listed here, depending on the destination 3920 * Surface for the image data. For example, for recording video, 3921 * the video encoder chosen may have a maximum size limit (e.g. 1080p) 3922 * smaller than what the camera (e.g. maximum resolution is 3264x2448) 3923 * can provide.</p> 3924 * <p>Please reference the documentation for the image data destination to 3925 * check if it limits the maximum size for image data.</p> 3926 * <p>Not all output formats may be supported in a configuration with 3927 * an input stream of a particular format. For more details, see 3928 * android.scaler.availableInputOutputFormatsMap.</p> 3929 * <p>For applications targeting SDK version older than 31, the following table 3930 * describes the minimum required output stream configurations based on the hardware level 3931 * (ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL):</p> 3932 * <p>Format | Size | Hardware Level | Notes 3933 * :-------------:|:--------------------------------------------:|:--------------:|:--------------: 3934 * JPEG | ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE | Any | 3935 * JPEG | 1920x1080 (1080p) | Any | if 1080p <= activeArraySize 3936 * JPEG | 1280x720 (720) | Any | if 720p <= activeArraySize 3937 * JPEG | 640x480 (480p) | Any | if 480p <= activeArraySize 3938 * JPEG | 320x240 (240p) | Any | if 240p <= activeArraySize 3939 * YUV_420_888 | all output sizes available for JPEG | FULL | 3940 * YUV_420_888 | all output sizes available for JPEG, up to the maximum video size | LIMITED | 3941 * IMPLEMENTATION_DEFINED | same as YUV_420_888 | Any |</p> 3942 * <p>For applications targeting SDK version 31 or newer, if the mobile device declares to be 3943 * media performance class 12 or higher by setting 3944 * <a href="https://developer.android.com/reference/android/os/Build.VERSION.html#MEDIA_PERFORMANCE_CLASS">VERSION#MEDIA_PERFORMANCE_CLASS</a> to be 31 or larger, 3945 * the primary camera devices (first rear/front camera in the camera ID list) will not 3946 * support JPEG sizes smaller than 1080p. If the application configures a JPEG stream 3947 * smaller than 1080p, the camera device will round up the JPEG image size to at least 3948 * 1080p. The requirements for IMPLEMENTATION_DEFINED and YUV_420_888 stay the same. 3949 * This new minimum required output stream configurations are illustrated by the table below:</p> 3950 * <p>Format | Size | Hardware Level | Notes 3951 * :-------------:|:--------------------------------------------:|:--------------:|:--------------: 3952 * JPEG | ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE | Any | 3953 * JPEG | 1920x1080 (1080p) | Any | if 1080p <= activeArraySize 3954 * YUV_420_888 | ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE | FULL | 3955 * YUV_420_888 | 1920x1080 (1080p) | FULL | if 1080p <= activeArraySize 3956 * YUV_420_888 | 1280x720 (720) | FULL | if 720p <= activeArraySize 3957 * YUV_420_888 | 640x480 (480p) | FULL | if 480p <= activeArraySize 3958 * YUV_420_888 | 320x240 (240p) | FULL | if 240p <= activeArraySize 3959 * YUV_420_888 | all output sizes available for FULL hardware level, up to the maximum video size | LIMITED | 3960 * IMPLEMENTATION_DEFINED | same as YUV_420_888 | Any |</p> 3961 * <p>For applications targeting SDK version 31 or newer, if the mobile device doesn't declare 3962 * to be media performance class 12 or better by setting 3963 * <a href="https://developer.android.com/reference/android/os/Build.VERSION.html#MEDIA_PERFORMANCE_CLASS">VERSION#MEDIA_PERFORMANCE_CLASS</a> to be 31 or larger, 3964 * or if the camera device isn't a primary rear/front camera, the minimum required output 3965 * stream configurations are the same as for applications targeting SDK version older than 3966 * 31.</p> 3967 * <p>Refer to ACAMERA_REQUEST_AVAILABLE_CAPABILITIES for additional 3968 * mandatory stream configurations on a per-capability basis.</p> 3969 * <p>Exception on 176x144 (QCIF) resolution: camera devices usually have a fixed capability for 3970 * downscaling from larger resolution to smaller, and the QCIF resolution sometimes is not 3971 * fully supported due to this limitation on devices with high-resolution image sensors. 3972 * Therefore, trying to configure a QCIF resolution stream together with any other 3973 * stream larger than 1920x1080 resolution (either width or height) might not be supported, 3974 * and capture session creation will fail if it is not.</p> 3975 * 3976 * @see ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL 3977 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 3978 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 3979 */ 3980 ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS = // int32[n*4] (acamera_metadata_enum_android_scaler_available_stream_configurations_t) 3981 ACAMERA_SCALER_START + 10, 3982 /** 3983 * <p>This lists the minimum frame duration for each 3984 * format/size combination.</p> 3985 * 3986 * <p>Type: int64[4*n]</p> 3987 * 3988 * <p>This tag may appear in: 3989 * <ul> 3990 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 3991 * </ul></p> 3992 * 3993 * <p>This should correspond to the frame duration when only that 3994 * stream is active, with all processing (typically in android.*.mode) 3995 * set to either OFF or FAST.</p> 3996 * <p>When multiple streams are used in a request, the minimum frame 3997 * duration will be max(individual stream min durations).</p> 3998 * <p>See ACAMERA_SENSOR_FRAME_DURATION and 3999 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS for more details about 4000 * calculating the max frame rate.</p> 4001 * 4002 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS 4003 * @see ACAMERA_SENSOR_FRAME_DURATION 4004 */ 4005 ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS = // int64[4*n] 4006 ACAMERA_SCALER_START + 11, 4007 /** 4008 * <p>This lists the maximum stall duration for each 4009 * output format/size combination.</p> 4010 * 4011 * <p>Type: int64[4*n]</p> 4012 * 4013 * <p>This tag may appear in: 4014 * <ul> 4015 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4016 * </ul></p> 4017 * 4018 * <p>A stall duration is how much extra time would get added 4019 * to the normal minimum frame duration for a repeating request 4020 * that has streams with non-zero stall.</p> 4021 * <p>For example, consider JPEG captures which have the following 4022 * characteristics:</p> 4023 * <ul> 4024 * <li>JPEG streams act like processed YUV streams in requests for which 4025 * they are not included; in requests in which they are directly 4026 * referenced, they act as JPEG streams. This is because supporting a 4027 * JPEG stream requires the underlying YUV data to always be ready for 4028 * use by a JPEG encoder, but the encoder will only be used (and impact 4029 * frame duration) on requests that actually reference a JPEG stream.</li> 4030 * <li>The JPEG processor can run concurrently to the rest of the camera 4031 * pipeline, but cannot process more than 1 capture at a time.</li> 4032 * </ul> 4033 * <p>In other words, using a repeating YUV request would result 4034 * in a steady frame rate (let's say it's 30 FPS). If a single 4035 * JPEG request is submitted periodically, the frame rate will stay 4036 * at 30 FPS (as long as we wait for the previous JPEG to return each 4037 * time). If we try to submit a repeating YUV + JPEG request, then 4038 * the frame rate will drop from 30 FPS.</p> 4039 * <p>In general, submitting a new request with a non-0 stall time 4040 * stream will <em>not</em> cause a frame rate drop unless there are still 4041 * outstanding buffers for that stream from previous requests.</p> 4042 * <p>Submitting a repeating request with streams (call this <code>S</code>) 4043 * is the same as setting the minimum frame duration from 4044 * the normal minimum frame duration corresponding to <code>S</code>, added with 4045 * the maximum stall duration for <code>S</code>.</p> 4046 * <p>If interleaving requests with and without a stall duration, 4047 * a request will stall by the maximum of the remaining times 4048 * for each can-stall stream with outstanding buffers.</p> 4049 * <p>This means that a stalling request will not have an exposure start 4050 * until the stall has completed.</p> 4051 * <p>This should correspond to the stall duration when only that stream is 4052 * active, with all processing (typically in android.*.mode) set to FAST 4053 * or OFF. Setting any of the processing modes to HIGH_QUALITY 4054 * effectively results in an indeterminate stall duration for all 4055 * streams in a request (the regular stall calculation rules are 4056 * ignored).</p> 4057 * <p>The following formats may always have a stall duration:</p> 4058 * <ul> 4059 * <li>{@link AIMAGE_FORMAT_JPEG }</li> 4060 * <li>{@link AIMAGE_FORMAT_RAW16 }</li> 4061 * </ul> 4062 * <p>The following formats will never have a stall duration:</p> 4063 * <ul> 4064 * <li>{@link AIMAGE_FORMAT_YUV_420_888 }</li> 4065 * <li>{@link AIMAGE_FORMAT_RAW10 }</li> 4066 * <li>{@link AIMAGE_FORMAT_RAW12 }</li> 4067 * <li>{@link AIMAGE_FORMAT_Y8 }</li> 4068 * </ul> 4069 * <p>All other formats may or may not have an allowed stall duration on 4070 * a per-capability basis; refer to ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 4071 * for more details.</p> 4072 * <p>See ACAMERA_SENSOR_FRAME_DURATION for more information about 4073 * calculating the max frame rate (absent stalls).</p> 4074 * 4075 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 4076 * @see ACAMERA_SENSOR_FRAME_DURATION 4077 */ 4078 ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS = // int64[4*n] 4079 ACAMERA_SCALER_START + 12, 4080 /** 4081 * <p>The crop type that this camera device supports.</p> 4082 * 4083 * <p>Type: byte (acamera_metadata_enum_android_scaler_cropping_type_t)</p> 4084 * 4085 * <p>This tag may appear in: 4086 * <ul> 4087 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4088 * </ul></p> 4089 * 4090 * <p>When passing a non-centered crop region (ACAMERA_SCALER_CROP_REGION) to a camera 4091 * device that only supports CENTER_ONLY cropping, the camera device will move the 4092 * crop region to the center of the sensor active array (ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE) 4093 * and keep the crop region width and height unchanged. The camera device will return the 4094 * final used crop region in metadata result ACAMERA_SCALER_CROP_REGION.</p> 4095 * <p>Camera devices that support FREEFORM cropping will support any crop region that 4096 * is inside of the active array. The camera device will apply the same crop region and 4097 * return the final used crop region in capture result metadata ACAMERA_SCALER_CROP_REGION.</p> 4098 * <p>Starting from API level 30,</p> 4099 * <ul> 4100 * <li>If the camera device supports FREEFORM cropping, in order to do FREEFORM cropping, the 4101 * application must set ACAMERA_CONTROL_ZOOM_RATIO to 1.0, and use ACAMERA_SCALER_CROP_REGION 4102 * for zoom.</li> 4103 * <li>To do CENTER_ONLY zoom, the application has below 2 options:<ol> 4104 * <li>Set ACAMERA_CONTROL_ZOOM_RATIO to 1.0; adjust zoom by ACAMERA_SCALER_CROP_REGION.</li> 4105 * <li>Adjust zoom by ACAMERA_CONTROL_ZOOM_RATIO; use ACAMERA_SCALER_CROP_REGION to crop 4106 * the field of view vertically (letterboxing) or horizontally (pillarboxing), but not 4107 * windowboxing.</li> 4108 * </ol> 4109 * </li> 4110 * <li>Setting ACAMERA_CONTROL_ZOOM_RATIO to values different than 1.0 and 4111 * ACAMERA_SCALER_CROP_REGION to be windowboxing at the same time are not supported. In this 4112 * case, the camera framework will override the ACAMERA_SCALER_CROP_REGION to be the active 4113 * array.</li> 4114 * </ul> 4115 * <p>LEGACY capability devices will only support CENTER_ONLY cropping.</p> 4116 * 4117 * @see ACAMERA_CONTROL_ZOOM_RATIO 4118 * @see ACAMERA_SCALER_CROP_REGION 4119 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 4120 */ 4121 ACAMERA_SCALER_CROPPING_TYPE = // byte (acamera_metadata_enum_android_scaler_cropping_type_t) 4122 ACAMERA_SCALER_START + 13, 4123 /** 4124 * <p>Recommended stream configurations for common client use cases.</p> 4125 * 4126 * <p>Type: int32[n*5] (acamera_metadata_enum_android_scaler_available_recommended_stream_configurations_t)</p> 4127 * 4128 * <p>This tag may appear in: 4129 * <ul> 4130 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4131 * </ul></p> 4132 * 4133 * <p>Optional subset of the ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS that contains 4134 * similar tuples listed as 4135 * (i.e. width, height, format, output/input stream, usecase bit field). 4136 * Camera devices will be able to suggest particular stream configurations which are 4137 * power and performance efficient for specific use cases. For more information about 4138 * retrieving the suggestions see 4139 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getRecommendedStreamConfigurationMap">CameraCharacteristics#getRecommendedStreamConfigurationMap</a>.</p> 4140 * <p>The data representation is int[5], which maps to 4141 * (width, height, format, output/input stream, usecase bit field). The array can be 4142 * parsed using the following pseudo code:</p> 4143 * <p>struct StreamConfiguration { 4144 * int32_t format; 4145 * int32_t width; 4146 * int32_t height; 4147 * int32_t isInput; };</p> 4148 * <p>void getPreferredStreamConfigurations( 4149 * int32_t *array, size_t count, int32_t usecaseId, 4150 * Vector < StreamConfiguration > * scs) { 4151 * const size_t STREAM_CONFIGURATION_SIZE = 5; 4152 * const size_t STREAM_WIDTH_OFFSET = 0; 4153 * const size_t STREAM_HEIGHT_OFFSET = 1; 4154 * const size_t STREAM_FORMAT_OFFSET = 2; 4155 * const size_t STREAM_IS_INPUT_OFFSET = 3; 4156 * const size_t STREAM_USECASE_BITMAP_OFFSET = 4;</p> 4157 * <pre><code>for (size_t i = 0; i < count; i+= STREAM_CONFIGURATION_SIZE) { 4158 * int32_t width = array[i + STREAM_WIDTH_OFFSET]; 4159 * int32_t height = array[i + STREAM_HEIGHT_OFFSET]; 4160 * int32_t format = array[i + STREAM_FORMAT_OFFSET]; 4161 * int32_t isInput = array[i + STREAM_IS_INPUT_OFFSET]; 4162 * int32_t supportedUsecases = array[i + STREAM_USECASE_BITMAP_OFFSET]; 4163 * if (supportedUsecases & (1 << usecaseId)) { 4164 * StreamConfiguration sc = {format, width, height, isInput}; 4165 * scs->add(sc); 4166 * } 4167 * } 4168 * </code></pre> 4169 * <p>}</p> 4170 * 4171 * @see ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS 4172 */ 4173 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS = 4174 // int32[n*5] (acamera_metadata_enum_android_scaler_available_recommended_stream_configurations_t) 4175 ACAMERA_SCALER_START + 14, 4176 /** 4177 * <p>Recommended mappings of image formats that are supported by this 4178 * camera device for input streams, to their corresponding output formats.</p> 4179 * 4180 * <p>Type: int32</p> 4181 * 4182 * <p>This tag may appear in: 4183 * <ul> 4184 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4185 * </ul></p> 4186 * 4187 * <p>This is a recommended subset of the complete list of mappings found in 4188 * android.scaler.availableInputOutputFormatsMap. The same requirements apply here as well. 4189 * The list however doesn't need to contain all available and supported mappings. Instead of 4190 * this developers must list only recommended and efficient entries. 4191 * If set, the information will be available in the ZERO_SHUTTER_LAG recommended stream 4192 * configuration see 4193 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getRecommendedStreamConfigurationMap">CameraCharacteristics#getRecommendedStreamConfigurationMap</a>.</p> 4194 */ 4195 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_INPUT_OUTPUT_FORMATS_MAP = 4196 // int32 4197 ACAMERA_SCALER_START + 15, 4198 /** 4199 * <p>List of rotate-and-crop modes for ACAMERA_SCALER_ROTATE_AND_CROP that are supported by this camera device.</p> 4200 * 4201 * @see ACAMERA_SCALER_ROTATE_AND_CROP 4202 * 4203 * <p>Type: byte[n]</p> 4204 * 4205 * <p>This tag may appear in: 4206 * <ul> 4207 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4208 * </ul></p> 4209 * 4210 * <p>This entry lists the valid modes for ACAMERA_SCALER_ROTATE_AND_CROP for this camera device.</p> 4211 * <p>Starting with API level 30, all devices will list at least <code>ROTATE_AND_CROP_NONE</code>. 4212 * Devices with support for rotate-and-crop will additionally list at least 4213 * <code>ROTATE_AND_CROP_AUTO</code> and <code>ROTATE_AND_CROP_90</code>.</p> 4214 * 4215 * @see ACAMERA_SCALER_ROTATE_AND_CROP 4216 */ 4217 ACAMERA_SCALER_AVAILABLE_ROTATE_AND_CROP_MODES = // byte[n] 4218 ACAMERA_SCALER_START + 16, 4219 /** 4220 * <p>Whether a rotation-and-crop operation is applied to processed 4221 * outputs from the camera.</p> 4222 * 4223 * <p>Type: byte (acamera_metadata_enum_android_scaler_rotate_and_crop_t)</p> 4224 * 4225 * <p>This tag may appear in: 4226 * <ul> 4227 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4228 * <li>ACaptureRequest</li> 4229 * </ul></p> 4230 * 4231 * <p>This control is primarily intended to help camera applications with no support for 4232 * multi-window modes to work correctly on devices where multi-window scenarios are 4233 * unavoidable, such as foldables or other devices with variable display geometry or more 4234 * free-form window placement (such as laptops, which often place portrait-orientation apps 4235 * in landscape with pillarboxing).</p> 4236 * <p>If supported, the default value is <code>ROTATE_AND_CROP_AUTO</code>, which allows the camera API 4237 * to enable backwards-compatibility support for applications that do not support resizing 4238 * / multi-window modes, when the device is in fact in a multi-window mode (such as inset 4239 * portrait on laptops, or on a foldable device in some fold states). In addition, 4240 * <code>ROTATE_AND_CROP_NONE</code> and <code>ROTATE_AND_CROP_90</code> will always be available if this control 4241 * is supported by the device. If not supported, devices API level 30 or higher will always 4242 * list only <code>ROTATE_AND_CROP_NONE</code>.</p> 4243 * <p>When <code>CROP_AUTO</code> is in use, and the camera API activates backward-compatibility mode, 4244 * several metadata fields will also be parsed differently to ensure that coordinates are 4245 * correctly handled for features like drawing face detection boxes or passing in 4246 * tap-to-focus coordinates. The camera API will convert positions in the active array 4247 * coordinate system to/from the cropped-and-rotated coordinate system to make the 4248 * operation transparent for applications. The following controls are affected:</p> 4249 * <ul> 4250 * <li>ACAMERA_CONTROL_AE_REGIONS</li> 4251 * <li>ACAMERA_CONTROL_AF_REGIONS</li> 4252 * <li>ACAMERA_CONTROL_AWB_REGIONS</li> 4253 * <li>android.statistics.faces</li> 4254 * </ul> 4255 * <p>Capture results will contain the actual value selected by the API; 4256 * <code>ROTATE_AND_CROP_AUTO</code> will never be seen in a capture result.</p> 4257 * <p>Applications can also select their preferred cropping mode, either to opt out of the 4258 * backwards-compatibility treatment, or to use the cropping feature themselves as needed. 4259 * In this case, no coordinate translation will be done automatically, and all controls 4260 * will continue to use the normal active array coordinates.</p> 4261 * <p>Cropping and rotating is done after the application of digital zoom (via either 4262 * ACAMERA_SCALER_CROP_REGION or ACAMERA_CONTROL_ZOOM_RATIO), but before each individual 4263 * output is further cropped and scaled. It only affects processed outputs such as 4264 * YUV, PRIVATE, and JPEG. It has no effect on RAW outputs.</p> 4265 * <p>When <code>CROP_90</code> or <code>CROP_270</code> are selected, there is a significant loss to the field of 4266 * view. For example, with a 4:3 aspect ratio output of 1600x1200, <code>CROP_90</code> will still 4267 * produce 1600x1200 output, but these buffers are cropped from a vertical 3:4 slice at the 4268 * center of the 4:3 area, then rotated to be 4:3, and then upscaled to 1600x1200. Only 4269 * 56.25% of the original FOV is still visible. In general, for an aspect ratio of <code>w:h</code>, 4270 * the crop and rotate operation leaves <code>(h/w)^2</code> of the field of view visible. For 16:9, 4271 * this is ~31.6%.</p> 4272 * <p>As a visual example, the figure below shows the effect of <code>ROTATE_AND_CROP_90</code> on the 4273 * outputs for the following parameters:</p> 4274 * <ul> 4275 * <li>Sensor active array: <code>2000x1500</code></li> 4276 * <li>Crop region: top-left: <code>(500, 375)</code>, size: <code>(1000, 750)</code> (4:3 aspect ratio)</li> 4277 * <li>Output streams: YUV <code>640x480</code> and YUV <code>1280x720</code></li> 4278 * <li><code>ROTATE_AND_CROP_90</code></li> 4279 * </ul> 4280 * <p><img alt="Effect of ROTATE_AND_CROP_90" src="../images/camera2/metadata/android.scaler.rotateAndCrop/crop-region-rotate-90-43-ratio.png" /></p> 4281 * <p>With these settings, the regions of the active array covered by the output streams are:</p> 4282 * <ul> 4283 * <li>640x480 stream crop: top-left: <code>(219, 375)</code>, size: <code>(562, 750)</code></li> 4284 * <li>1280x720 stream crop: top-left: <code>(289, 375)</code>, size: <code>(422, 750)</code></li> 4285 * </ul> 4286 * <p>Since the buffers are rotated, the buffers as seen by the application are:</p> 4287 * <ul> 4288 * <li>640x480 stream: top-left: <code>(781, 375)</code> on active array, size: <code>(640, 480)</code>, downscaled 1.17x from sensor pixels</li> 4289 * <li>1280x720 stream: top-left: <code>(711, 375)</code> on active array, size: <code>(1280, 720)</code>, upscaled 1.71x from sensor pixels</li> 4290 * </ul> 4291 * 4292 * @see ACAMERA_CONTROL_AE_REGIONS 4293 * @see ACAMERA_CONTROL_AF_REGIONS 4294 * @see ACAMERA_CONTROL_AWB_REGIONS 4295 * @see ACAMERA_CONTROL_ZOOM_RATIO 4296 * @see ACAMERA_SCALER_CROP_REGION 4297 */ 4298 ACAMERA_SCALER_ROTATE_AND_CROP = // byte (acamera_metadata_enum_android_scaler_rotate_and_crop_t) 4299 ACAMERA_SCALER_START + 17, 4300 /** 4301 * <p>Default YUV/PRIVATE size to use for requesting secure image buffers.</p> 4302 * 4303 * <p>Type: int32[2]</p> 4304 * 4305 * <p>This tag may appear in: 4306 * <ul> 4307 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4308 * </ul></p> 4309 * 4310 * <p>This entry lists the default size supported in the secure camera mode. This entry is 4311 * optional on devices support the SECURE_IMAGE_DATA capability. This entry will be null 4312 * if the camera device does not list SECURE_IMAGE_DATA capability.</p> 4313 * <p>When the key is present, only a PRIVATE/YUV output of the specified size is guaranteed 4314 * to be supported by the camera HAL in the secure camera mode. Any other format or 4315 * resolutions might not be supported. Use 4316 * {@link ACameraDevice_isSessionConfigurationSupported } 4317 * API to query if a secure session configuration is supported if the device supports this 4318 * API.</p> 4319 * <p>If this key returns null on a device with SECURE_IMAGE_DATA capability, the application 4320 * can assume all output sizes listed in the 4321 * {@link ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS } 4322 * are supported.</p> 4323 */ 4324 ACAMERA_SCALER_DEFAULT_SECURE_IMAGE_SIZE = // int32[2] 4325 ACAMERA_SCALER_START + 18, 4326 /** 4327 * <p>The available multi-resolution stream configurations that this 4328 * physical camera device supports 4329 * (i.e. format, width, height, output/input stream).</p> 4330 * 4331 * <p>Type: int32[n*4] (acamera_metadata_enum_android_scaler_physical_camera_multi_resolution_stream_configurations_t)</p> 4332 * 4333 * <p>This tag may appear in: 4334 * <ul> 4335 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4336 * </ul></p> 4337 * 4338 * <p>This list contains a subset of the parent logical camera's multi-resolution stream 4339 * configurations which belong to this physical camera, and it will advertise and will only 4340 * advertise the maximum supported resolutions for a particular format.</p> 4341 * <p>If this camera device isn't a physical camera device constituting a logical camera, 4342 * but a standalone <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 4343 * camera, this field represents the multi-resolution input/output stream configurations of 4344 * default mode and max resolution modes. The sizes will be the maximum resolution of a 4345 * particular format for default mode and max resolution mode.</p> 4346 * <p>This field will only be advertised if the device is a physical camera of a 4347 * logical multi-camera device or an ultra high resolution sensor camera. For a logical 4348 * multi-camera, the camera API will derive the logical camera’s multi-resolution stream 4349 * configurations from all physical cameras. For an ultra high resolution sensor camera, this 4350 * is used directly as the camera’s multi-resolution stream configurations.</p> 4351 */ 4352 ACAMERA_SCALER_PHYSICAL_CAMERA_MULTI_RESOLUTION_STREAM_CONFIGURATIONS = 4353 // int32[n*4] (acamera_metadata_enum_android_scaler_physical_camera_multi_resolution_stream_configurations_t) 4354 ACAMERA_SCALER_START + 19, 4355 /** 4356 * <p>The available stream configurations that this 4357 * camera device supports (i.e. format, width, height, output/input stream) for a 4358 * CaptureRequest with ACAMERA_SENSOR_PIXEL_MODE set to 4359 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 4360 * 4361 * @see ACAMERA_SENSOR_PIXEL_MODE 4362 * 4363 * <p>Type: int32[n*4] (acamera_metadata_enum_android_scaler_available_stream_configurations_maximum_resolution_t)</p> 4364 * 4365 * <p>This tag may appear in: 4366 * <ul> 4367 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4368 * </ul></p> 4369 * 4370 * <p>Analogous to ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS, for configurations 4371 * which are applicable when ACAMERA_SENSOR_PIXEL_MODE is set to 4372 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 4373 * <p>Not all output formats may be supported in a configuration with 4374 * an input stream of a particular format. For more details, see 4375 * android.scaler.availableInputOutputFormatsMapMaximumResolution.</p> 4376 * 4377 * @see ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS 4378 * @see ACAMERA_SENSOR_PIXEL_MODE 4379 */ 4380 ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION = 4381 // int32[n*4] (acamera_metadata_enum_android_scaler_available_stream_configurations_maximum_resolution_t) 4382 ACAMERA_SCALER_START + 20, 4383 /** 4384 * <p>This lists the minimum frame duration for each 4385 * format/size combination when the camera device is sent a CaptureRequest with 4386 * ACAMERA_SENSOR_PIXEL_MODE set to 4387 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 4388 * 4389 * @see ACAMERA_SENSOR_PIXEL_MODE 4390 * 4391 * <p>Type: int64[4*n]</p> 4392 * 4393 * <p>This tag may appear in: 4394 * <ul> 4395 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4396 * </ul></p> 4397 * 4398 * <p>Analogous to ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS, for configurations 4399 * which are applicable when ACAMERA_SENSOR_PIXEL_MODE is set to 4400 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 4401 * <p>When multiple streams are used in a request (if supported, when ACAMERA_SENSOR_PIXEL_MODE 4402 * is set to 4403 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>), the 4404 * minimum frame duration will be max(individual stream min durations).</p> 4405 * <p>See ACAMERA_SENSOR_FRAME_DURATION and 4406 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS_MAXIMUM_RESOLUTION for more details about 4407 * calculating the max frame rate.</p> 4408 * 4409 * @see ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS 4410 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS_MAXIMUM_RESOLUTION 4411 * @see ACAMERA_SENSOR_FRAME_DURATION 4412 * @see ACAMERA_SENSOR_PIXEL_MODE 4413 */ 4414 ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS_MAXIMUM_RESOLUTION = 4415 // int64[4*n] 4416 ACAMERA_SCALER_START + 21, 4417 /** 4418 * <p>This lists the maximum stall duration for each 4419 * output format/size combination when CaptureRequests are submitted with 4420 * ACAMERA_SENSOR_PIXEL_MODE set to 4421 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a></p> 4422 * 4423 * @see ACAMERA_SENSOR_PIXEL_MODE 4424 * 4425 * <p>Type: int64[4*n]</p> 4426 * 4427 * <p>This tag may appear in: 4428 * <ul> 4429 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4430 * </ul></p> 4431 * 4432 * <p>Analogous to ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS, for configurations 4433 * which are applicable when ACAMERA_SENSOR_PIXEL_MODE is set to 4434 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 4435 * 4436 * @see ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS 4437 * @see ACAMERA_SENSOR_PIXEL_MODE 4438 */ 4439 ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS_MAXIMUM_RESOLUTION = 4440 // int64[4*n] 4441 ACAMERA_SCALER_START + 22, 4442 /** 4443 * <p>Whether the camera device supports multi-resolution input or output streams</p> 4444 * 4445 * <p>Type: byte (acamera_metadata_enum_android_scaler_multi_resolution_stream_supported_t)</p> 4446 * 4447 * <p>This tag may appear in: 4448 * <ul> 4449 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4450 * </ul></p> 4451 * 4452 * <p>A logical multi-camera or an ultra high resolution camera may support multi-resolution 4453 * input or output streams. With multi-resolution output streams, the camera device is able 4454 * to output different resolution images depending on the current active physical camera or 4455 * pixel mode. With multi-resolution input streams, the camera device can reprocess images 4456 * of different resolutions from different physical cameras or sensor pixel modes.</p> 4457 * <p>When set to TRUE:</p> 4458 * <ul> 4459 * <li>For a logical multi-camera, the camera framework derives 4460 * android.scaler.multiResolutionStreamConfigurationMap by combining the 4461 * ACAMERA_SCALER_PHYSICAL_CAMERA_MULTI_RESOLUTION_STREAM_CONFIGURATIONS from its physical 4462 * cameras.</li> 4463 * <li>For an ultra-high resolution sensor camera, the camera framework directly copies 4464 * the value of ACAMERA_SCALER_PHYSICAL_CAMERA_MULTI_RESOLUTION_STREAM_CONFIGURATIONS to 4465 * android.scaler.multiResolutionStreamConfigurationMap.</li> 4466 * </ul> 4467 * 4468 * @see ACAMERA_SCALER_PHYSICAL_CAMERA_MULTI_RESOLUTION_STREAM_CONFIGURATIONS 4469 */ 4470 ACAMERA_SCALER_MULTI_RESOLUTION_STREAM_SUPPORTED = // byte (acamera_metadata_enum_android_scaler_multi_resolution_stream_supported_t) 4471 ACAMERA_SCALER_START + 24, 4472 /** 4473 * <p>The stream use cases supported by this camera device.</p> 4474 * 4475 * <p>Type: int64[n] (acamera_metadata_enum_android_scaler_available_stream_use_cases_t)</p> 4476 * 4477 * <p>This tag may appear in: 4478 * <ul> 4479 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4480 * </ul></p> 4481 * 4482 * <p>The stream use case indicates the purpose of a particular camera stream from 4483 * the end-user perspective. Some examples of camera use cases are: preview stream for 4484 * live viewfinder shown to the user, still capture for generating high quality photo 4485 * capture, video record for encoding the camera output for the purpose of future playback, 4486 * and video call for live realtime video conferencing.</p> 4487 * <p>With this flag, the camera device can optimize the image processing pipeline 4488 * parameters, such as tuning, sensor mode, and ISP settings, independent of 4489 * the properties of the immediate camera output surface. For example, if the output 4490 * surface is a SurfaceTexture, the stream use case flag can be used to indicate whether 4491 * the camera frames eventually go to display, video encoder, 4492 * still image capture, or all of them combined.</p> 4493 * <p>The application sets the use case of a camera stream by calling 4494 * <a href="https://developer.android.com/reference/android/hardware/camera2/params/OutputConfiguration.html#setStreamUseCase">OutputConfiguration#setStreamUseCase</a>.</p> 4495 * <p>A camera device with 4496 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE">CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE</a> 4497 * capability must support the following stream use cases:</p> 4498 * <ul> 4499 * <li>DEFAULT</li> 4500 * <li>PREVIEW</li> 4501 * <li>STILL_CAPTURE</li> 4502 * <li>VIDEO_RECORD</li> 4503 * <li>PREVIEW_VIDEO_STILL</li> 4504 * <li>VIDEO_CALL</li> 4505 * </ul> 4506 * <p>The guaranteed stream combinations related to stream use case for a camera device with 4507 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE">CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE</a> 4508 * capability is documented in the camera device 4509 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#stream-use-case-capability-additional-guaranteed-configurations">guideline</a>. The application is strongly recommended to use one of the guaranteed stream 4510 * combinations. 4511 * If the application creates a session with a stream combination not in the guaranteed 4512 * list, or with mixed DEFAULT and non-DEFAULT use cases within the same session, 4513 * the camera device may ignore some stream use cases due to hardware constraints 4514 * and implementation details.</p> 4515 * <p>For stream combinations not covered by the stream use case mandatory lists, such as 4516 * reprocessable session, constrained high speed session, or RAW stream combinations, the 4517 * application should leave stream use cases within the session as DEFAULT.</p> 4518 */ 4519 ACAMERA_SCALER_AVAILABLE_STREAM_USE_CASES = // int64[n] (acamera_metadata_enum_android_scaler_available_stream_use_cases_t) 4520 ACAMERA_SCALER_START + 25, 4521 /** 4522 * <p>The region of the sensor that corresponds to the RAW read out for this 4523 * capture when the stream use case of a RAW stream is set to CROPPED_RAW.</p> 4524 * 4525 * <p>Type: int32[4]</p> 4526 * 4527 * <p>This tag may appear in: 4528 * <ul> 4529 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4530 * </ul></p> 4531 * 4532 * <p>The coordinate system follows that of ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE.</p> 4533 * <p>This CaptureResult key will be set when the corresponding CaptureRequest has a RAW target 4534 * with stream use case set to 4535 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SCALER_AVAILABLE_STREAM_USE_CASES_CROPPED_RAW">CameraMetadata#SCALER_AVAILABLE_STREAM_USE_CASES_CROPPED_RAW</a>, 4536 * otherwise it will be {@code null}. 4537 * The value of this key specifies the region of the sensor used for the RAW capture and can 4538 * be used to calculate the corresponding field of view of RAW streams. 4539 * This field of view will always be >= field of view for (processed) non-RAW streams for the 4540 * capture. Note: The region specified may not necessarily be centered.</p> 4541 * <p>For example: Assume a camera device has a pre correction active array size of 4542 * {@code {0, 0, 1500, 2000}}. If the RAW_CROP_REGION is {@code {500, 375, 1500, 1125}}, that 4543 * corresponds to a centered crop of 1/4th of the full field of view RAW stream.</p> 4544 * <p>The metadata keys which describe properties of RAW frames:</p> 4545 * <ul> 4546 * <li>ACAMERA_STATISTICS_HOT_PIXEL_MAP</li> 4547 * <li>android.statistics.lensShadingCorrectionMap</li> 4548 * <li>ACAMERA_LENS_DISTORTION</li> 4549 * <li>ACAMERA_LENS_POSE_TRANSLATION</li> 4550 * <li>ACAMERA_LENS_POSE_ROTATION</li> 4551 * <li>ACAMERA_LENS_DISTORTION</li> 4552 * <li>ACAMERA_LENS_INTRINSIC_CALIBRATION</li> 4553 * </ul> 4554 * <p>should be interpreted in the effective after raw crop field-of-view coordinate system. 4555 * In this coordinate system, 4556 * {preCorrectionActiveArraySize.left, preCorrectionActiveArraySize.top} corresponds to the 4557 * the top left corner of the cropped RAW frame and 4558 * {preCorrectionActiveArraySize.right, preCorrectionActiveArraySize.bottom} corresponds to 4559 * the bottom right corner. Client applications must use the values of the keys 4560 * in the CaptureResult metadata if present.</p> 4561 * <p>Crop regions (android.scaler.CropRegion), AE/AWB/AF regions and face coordinates still 4562 * use the ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE coordinate system as usual.</p> 4563 * 4564 * @see ACAMERA_LENS_DISTORTION 4565 * @see ACAMERA_LENS_INTRINSIC_CALIBRATION 4566 * @see ACAMERA_LENS_POSE_ROTATION 4567 * @see ACAMERA_LENS_POSE_TRANSLATION 4568 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 4569 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 4570 * @see ACAMERA_STATISTICS_HOT_PIXEL_MAP 4571 */ 4572 ACAMERA_SCALER_RAW_CROP_REGION = // int32[4] 4573 ACAMERA_SCALER_START + 26, 4574 ACAMERA_SCALER_END, 4575 4576 /** 4577 * <p>Duration each pixel is exposed to 4578 * light.</p> 4579 * 4580 * <p>Type: int64</p> 4581 * 4582 * <p>This tag may appear in: 4583 * <ul> 4584 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4585 * <li>ACaptureRequest</li> 4586 * </ul></p> 4587 * 4588 * <p>If the sensor can't expose this exact duration, it will shorten the 4589 * duration exposed to the nearest possible value (rather than expose longer). 4590 * The final exposure time used will be available in the output capture result.</p> 4591 * <p>This control is only effective if ACAMERA_CONTROL_AE_MODE or ACAMERA_CONTROL_MODE is set to 4592 * OFF; otherwise the auto-exposure algorithm will override this value.</p> 4593 * 4594 * @see ACAMERA_CONTROL_AE_MODE 4595 * @see ACAMERA_CONTROL_MODE 4596 */ 4597 ACAMERA_SENSOR_EXPOSURE_TIME = // int64 4598 ACAMERA_SENSOR_START, 4599 /** 4600 * <p>Duration from start of frame exposure to 4601 * start of next frame exposure.</p> 4602 * 4603 * <p>Type: int64</p> 4604 * 4605 * <p>This tag may appear in: 4606 * <ul> 4607 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4608 * <li>ACaptureRequest</li> 4609 * </ul></p> 4610 * 4611 * <p>The maximum frame rate that can be supported by a camera subsystem is 4612 * a function of many factors:</p> 4613 * <ul> 4614 * <li>Requested resolutions of output image streams</li> 4615 * <li>Availability of binning / skipping modes on the imager</li> 4616 * <li>The bandwidth of the imager interface</li> 4617 * <li>The bandwidth of the various ISP processing blocks</li> 4618 * </ul> 4619 * <p>Since these factors can vary greatly between different ISPs and 4620 * sensors, the camera abstraction tries to represent the bandwidth 4621 * restrictions with as simple a model as possible.</p> 4622 * <p>The model presented has the following characteristics:</p> 4623 * <ul> 4624 * <li>The image sensor is always configured to output the smallest 4625 * resolution possible given the application's requested output stream 4626 * sizes. The smallest resolution is defined as being at least as large 4627 * as the largest requested output stream size; the camera pipeline must 4628 * never digitally upsample sensor data when the crop region covers the 4629 * whole sensor. In general, this means that if only small output stream 4630 * resolutions are configured, the sensor can provide a higher frame 4631 * rate.</li> 4632 * <li>Since any request may use any or all the currently configured 4633 * output streams, the sensor and ISP must be configured to support 4634 * scaling a single capture to all the streams at the same time. This 4635 * means the camera pipeline must be ready to produce the largest 4636 * requested output size without any delay. Therefore, the overall 4637 * frame rate of a given configured stream set is governed only by the 4638 * largest requested stream resolution.</li> 4639 * <li>Using more than one output stream in a request does not affect the 4640 * frame duration.</li> 4641 * <li>Certain format-streams may need to do additional background processing 4642 * before data is consumed/produced by that stream. These processors 4643 * can run concurrently to the rest of the camera pipeline, but 4644 * cannot process more than 1 capture at a time.</li> 4645 * </ul> 4646 * <p>The necessary information for the application, given the model above, is provided via 4647 * {@link ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS }. 4648 * These are used to determine the maximum frame rate / minimum frame duration that is 4649 * possible for a given stream configuration.</p> 4650 * <p>Specifically, the application can use the following rules to 4651 * determine the minimum frame duration it can request from the camera 4652 * device:</p> 4653 * <ol> 4654 * <li>Let the set of currently configured input/output streams be called <code>S</code>.</li> 4655 * <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 } 4656 * (with its respective size/format). Let this set of frame durations be called <code>F</code>.</li> 4657 * <li>For any given request <code>R</code>, the minimum frame duration allowed for <code>R</code> is the maximum 4658 * out of all values in <code>F</code>. Let the streams used in <code>R</code> be called <code>S_r</code>.</li> 4659 * </ol> 4660 * <p>If none of the streams in <code>S_r</code> have a stall time (listed in {@link ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS } 4661 * using its respective size/format), then the frame duration in <code>F</code> determines the steady 4662 * state frame rate that the application will get if it uses <code>R</code> as a repeating request. Let 4663 * this special kind of request be called <code>Rsimple</code>.</p> 4664 * <p>A repeating request <code>Rsimple</code> can be <em>occasionally</em> interleaved by a single capture of a 4665 * new request <code>Rstall</code> (which has at least one in-use stream with a non-0 stall time) and if 4666 * <code>Rstall</code> has the same minimum frame duration this will not cause a frame rate loss if all 4667 * buffers from the previous <code>Rstall</code> have already been delivered.</p> 4668 * <p>For more details about stalling, see {@link ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS }.</p> 4669 * <p>This control is only effective if ACAMERA_CONTROL_AE_MODE or ACAMERA_CONTROL_MODE is set to 4670 * OFF; otherwise the auto-exposure algorithm will override this value.</p> 4671 * 4672 * @see ACAMERA_CONTROL_AE_MODE 4673 * @see ACAMERA_CONTROL_MODE 4674 */ 4675 ACAMERA_SENSOR_FRAME_DURATION = // int64 4676 ACAMERA_SENSOR_START + 1, 4677 /** 4678 * <p>The amount of gain applied to sensor data 4679 * before processing.</p> 4680 * 4681 * <p>Type: int32</p> 4682 * 4683 * <p>This tag may appear in: 4684 * <ul> 4685 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 4686 * <li>ACaptureRequest</li> 4687 * </ul></p> 4688 * 4689 * <p>The sensitivity is the standard ISO sensitivity value, 4690 * as defined in ISO 12232:2006.</p> 4691 * <p>The sensitivity must be within ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE, and 4692 * if if it less than ACAMERA_SENSOR_MAX_ANALOG_SENSITIVITY, the camera device 4693 * is guaranteed to use only analog amplification for applying the gain.</p> 4694 * <p>If the camera device cannot apply the exact sensitivity 4695 * requested, it will reduce the gain to the nearest supported 4696 * value. The final sensitivity used will be available in the 4697 * output capture result.</p> 4698 * <p>This control is only effective if ACAMERA_CONTROL_AE_MODE or ACAMERA_CONTROL_MODE is set to 4699 * OFF; otherwise the auto-exposure algorithm will override this value.</p> 4700 * <p>Note that for devices supporting postRawSensitivityBoost, the total sensitivity applied 4701 * to the final processed image is the combination of ACAMERA_SENSOR_SENSITIVITY and 4702 * ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST. In case the application uses the sensor 4703 * sensitivity from last capture result of an auto request for a manual request, in order 4704 * to achieve the same brightness in the output image, the application should also 4705 * set postRawSensitivityBoost.</p> 4706 * 4707 * @see ACAMERA_CONTROL_AE_MODE 4708 * @see ACAMERA_CONTROL_MODE 4709 * @see ACAMERA_CONTROL_POST_RAW_SENSITIVITY_BOOST 4710 * @see ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE 4711 * @see ACAMERA_SENSOR_MAX_ANALOG_SENSITIVITY 4712 * @see ACAMERA_SENSOR_SENSITIVITY 4713 */ 4714 ACAMERA_SENSOR_SENSITIVITY = // int32 4715 ACAMERA_SENSOR_START + 2, 4716 /** 4717 * <p>The standard reference illuminant used as the scene light source when 4718 * calculating the ACAMERA_SENSOR_COLOR_TRANSFORM1, 4719 * ACAMERA_SENSOR_CALIBRATION_TRANSFORM1, and 4720 * ACAMERA_SENSOR_FORWARD_MATRIX1 matrices.</p> 4721 * 4722 * @see ACAMERA_SENSOR_CALIBRATION_TRANSFORM1 4723 * @see ACAMERA_SENSOR_COLOR_TRANSFORM1 4724 * @see ACAMERA_SENSOR_FORWARD_MATRIX1 4725 * 4726 * <p>Type: byte (acamera_metadata_enum_android_sensor_reference_illuminant1_t)</p> 4727 * 4728 * <p>This tag may appear in: 4729 * <ul> 4730 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4731 * </ul></p> 4732 * 4733 * <p>The values in this key correspond to the values defined for the 4734 * EXIF LightSource tag. These illuminants are standard light sources 4735 * that are often used calibrating camera devices.</p> 4736 * <p>If this key is present, then ACAMERA_SENSOR_COLOR_TRANSFORM1, 4737 * ACAMERA_SENSOR_CALIBRATION_TRANSFORM1, and 4738 * ACAMERA_SENSOR_FORWARD_MATRIX1 will also be present.</p> 4739 * <p>Some devices may choose to provide a second set of calibration 4740 * information for improved quality, including 4741 * ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 and its corresponding matrices.</p> 4742 * <p>Starting from Android Q, this key will not be present for a MONOCHROME camera, even if 4743 * the camera device has RAW capability.</p> 4744 * 4745 * @see ACAMERA_SENSOR_CALIBRATION_TRANSFORM1 4746 * @see ACAMERA_SENSOR_COLOR_TRANSFORM1 4747 * @see ACAMERA_SENSOR_FORWARD_MATRIX1 4748 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 4749 */ 4750 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 = // byte (acamera_metadata_enum_android_sensor_reference_illuminant1_t) 4751 ACAMERA_SENSOR_START + 3, 4752 /** 4753 * <p>The standard reference illuminant used as the scene light source when 4754 * calculating the ACAMERA_SENSOR_COLOR_TRANSFORM2, 4755 * ACAMERA_SENSOR_CALIBRATION_TRANSFORM2, and 4756 * ACAMERA_SENSOR_FORWARD_MATRIX2 matrices.</p> 4757 * 4758 * @see ACAMERA_SENSOR_CALIBRATION_TRANSFORM2 4759 * @see ACAMERA_SENSOR_COLOR_TRANSFORM2 4760 * @see ACAMERA_SENSOR_FORWARD_MATRIX2 4761 * 4762 * <p>Type: byte</p> 4763 * 4764 * <p>This tag may appear in: 4765 * <ul> 4766 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4767 * </ul></p> 4768 * 4769 * <p>See ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 for more details.</p> 4770 * <p>If this key is present, then ACAMERA_SENSOR_COLOR_TRANSFORM2, 4771 * ACAMERA_SENSOR_CALIBRATION_TRANSFORM2, and 4772 * ACAMERA_SENSOR_FORWARD_MATRIX2 will also be present.</p> 4773 * <p>Starting from Android Q, this key will not be present for a MONOCHROME camera, even if 4774 * the camera device has RAW capability.</p> 4775 * 4776 * @see ACAMERA_SENSOR_CALIBRATION_TRANSFORM2 4777 * @see ACAMERA_SENSOR_COLOR_TRANSFORM2 4778 * @see ACAMERA_SENSOR_FORWARD_MATRIX2 4779 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 4780 */ 4781 ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 = // byte 4782 ACAMERA_SENSOR_START + 4, 4783 /** 4784 * <p>A per-device calibration transform matrix that maps from the 4785 * reference sensor colorspace to the actual device sensor colorspace.</p> 4786 * 4787 * <p>Type: rational[3*3]</p> 4788 * 4789 * <p>This tag may appear in: 4790 * <ul> 4791 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4792 * </ul></p> 4793 * 4794 * <p>This matrix is used to correct for per-device variations in the 4795 * sensor colorspace, and is used for processing raw buffer data.</p> 4796 * <p>The matrix is expressed as a 3x3 matrix in row-major-order, and 4797 * contains a per-device calibration transform that maps colors 4798 * from reference sensor color space (i.e. the "golden module" 4799 * colorspace) into this camera device's native sensor color 4800 * space under the first reference illuminant 4801 * (ACAMERA_SENSOR_REFERENCE_ILLUMINANT1).</p> 4802 * <p>Starting from Android Q, this key will not be present for a MONOCHROME camera, even if 4803 * the camera device has RAW capability.</p> 4804 * 4805 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 4806 */ 4807 ACAMERA_SENSOR_CALIBRATION_TRANSFORM1 = // rational[3*3] 4808 ACAMERA_SENSOR_START + 5, 4809 /** 4810 * <p>A per-device calibration transform matrix that maps from the 4811 * reference sensor colorspace to the actual device sensor colorspace 4812 * (this is the colorspace of the raw buffer data).</p> 4813 * 4814 * <p>Type: rational[3*3]</p> 4815 * 4816 * <p>This tag may appear in: 4817 * <ul> 4818 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4819 * </ul></p> 4820 * 4821 * <p>This matrix is used to correct for per-device variations in the 4822 * sensor colorspace, and is used for processing raw buffer data.</p> 4823 * <p>The matrix is expressed as a 3x3 matrix in row-major-order, and 4824 * contains a per-device calibration transform that maps colors 4825 * from reference sensor color space (i.e. the "golden module" 4826 * colorspace) into this camera device's native sensor color 4827 * space under the second reference illuminant 4828 * (ACAMERA_SENSOR_REFERENCE_ILLUMINANT2).</p> 4829 * <p>This matrix will only be present if the second reference 4830 * illuminant is present.</p> 4831 * <p>Starting from Android Q, this key will not be present for a MONOCHROME camera, even if 4832 * the camera device has RAW capability.</p> 4833 * 4834 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 4835 */ 4836 ACAMERA_SENSOR_CALIBRATION_TRANSFORM2 = // rational[3*3] 4837 ACAMERA_SENSOR_START + 6, 4838 /** 4839 * <p>A matrix that transforms color values from CIE XYZ color space to 4840 * reference sensor color space.</p> 4841 * 4842 * <p>Type: rational[3*3]</p> 4843 * 4844 * <p>This tag may appear in: 4845 * <ul> 4846 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4847 * </ul></p> 4848 * 4849 * <p>This matrix is used to convert from the standard CIE XYZ color 4850 * space to the reference sensor colorspace, and is used when processing 4851 * raw buffer data.</p> 4852 * <p>The matrix is expressed as a 3x3 matrix in row-major-order, and 4853 * contains a color transform matrix that maps colors from the CIE 4854 * XYZ color space to the reference sensor color space (i.e. the 4855 * "golden module" colorspace) under the first reference illuminant 4856 * (ACAMERA_SENSOR_REFERENCE_ILLUMINANT1).</p> 4857 * <p>The white points chosen in both the reference sensor color space 4858 * and the CIE XYZ colorspace when calculating this transform will 4859 * match the standard white point for the first reference illuminant 4860 * (i.e. no chromatic adaptation will be applied by this transform).</p> 4861 * <p>Starting from Android Q, this key will not be present for a MONOCHROME camera, even if 4862 * the camera device has RAW capability.</p> 4863 * 4864 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 4865 */ 4866 ACAMERA_SENSOR_COLOR_TRANSFORM1 = // rational[3*3] 4867 ACAMERA_SENSOR_START + 7, 4868 /** 4869 * <p>A matrix that transforms color values from CIE XYZ color space to 4870 * reference sensor color space.</p> 4871 * 4872 * <p>Type: rational[3*3]</p> 4873 * 4874 * <p>This tag may appear in: 4875 * <ul> 4876 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4877 * </ul></p> 4878 * 4879 * <p>This matrix is used to convert from the standard CIE XYZ color 4880 * space to the reference sensor colorspace, and is used when processing 4881 * raw buffer data.</p> 4882 * <p>The matrix is expressed as a 3x3 matrix in row-major-order, and 4883 * contains a color transform matrix that maps colors from the CIE 4884 * XYZ color space to the reference sensor color space (i.e. the 4885 * "golden module" colorspace) under the second reference illuminant 4886 * (ACAMERA_SENSOR_REFERENCE_ILLUMINANT2).</p> 4887 * <p>The white points chosen in both the reference sensor color space 4888 * and the CIE XYZ colorspace when calculating this transform will 4889 * match the standard white point for the second reference illuminant 4890 * (i.e. no chromatic adaptation will be applied by this transform).</p> 4891 * <p>This matrix will only be present if the second reference 4892 * illuminant is present.</p> 4893 * <p>Starting from Android Q, this key will not be present for a MONOCHROME camera, even if 4894 * the camera device has RAW capability.</p> 4895 * 4896 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 4897 */ 4898 ACAMERA_SENSOR_COLOR_TRANSFORM2 = // rational[3*3] 4899 ACAMERA_SENSOR_START + 8, 4900 /** 4901 * <p>A matrix that transforms white balanced camera colors from the reference 4902 * sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.</p> 4903 * 4904 * <p>Type: rational[3*3]</p> 4905 * 4906 * <p>This tag may appear in: 4907 * <ul> 4908 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4909 * </ul></p> 4910 * 4911 * <p>This matrix is used to convert to the standard CIE XYZ colorspace, and 4912 * is used when processing raw buffer data.</p> 4913 * <p>This matrix is expressed as a 3x3 matrix in row-major-order, and contains 4914 * a color transform matrix that maps white balanced colors from the 4915 * reference sensor color space to the CIE XYZ color space with a D50 white 4916 * point.</p> 4917 * <p>Under the first reference illuminant (ACAMERA_SENSOR_REFERENCE_ILLUMINANT1) 4918 * this matrix is chosen so that the standard white point for this reference 4919 * illuminant in the reference sensor colorspace is mapped to D50 in the 4920 * CIE XYZ colorspace.</p> 4921 * <p>Starting from Android Q, this key will not be present for a MONOCHROME camera, even if 4922 * the camera device has RAW capability.</p> 4923 * 4924 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 4925 */ 4926 ACAMERA_SENSOR_FORWARD_MATRIX1 = // rational[3*3] 4927 ACAMERA_SENSOR_START + 9, 4928 /** 4929 * <p>A matrix that transforms white balanced camera colors from the reference 4930 * sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.</p> 4931 * 4932 * <p>Type: rational[3*3]</p> 4933 * 4934 * <p>This tag may appear in: 4935 * <ul> 4936 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4937 * </ul></p> 4938 * 4939 * <p>This matrix is used to convert to the standard CIE XYZ colorspace, and 4940 * is used when processing raw buffer data.</p> 4941 * <p>This matrix is expressed as a 3x3 matrix in row-major-order, and contains 4942 * a color transform matrix that maps white balanced colors from the 4943 * reference sensor color space to the CIE XYZ color space with a D50 white 4944 * point.</p> 4945 * <p>Under the second reference illuminant (ACAMERA_SENSOR_REFERENCE_ILLUMINANT2) 4946 * this matrix is chosen so that the standard white point for this reference 4947 * illuminant in the reference sensor colorspace is mapped to D50 in the 4948 * CIE XYZ colorspace.</p> 4949 * <p>This matrix will only be present if the second reference 4950 * illuminant is present.</p> 4951 * <p>Starting from Android Q, this key will not be present for a MONOCHROME camera, even if 4952 * the camera device has RAW capability.</p> 4953 * 4954 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 4955 */ 4956 ACAMERA_SENSOR_FORWARD_MATRIX2 = // rational[3*3] 4957 ACAMERA_SENSOR_START + 10, 4958 /** 4959 * <p>A fixed black level offset for each of the color filter arrangement 4960 * (CFA) mosaic channels.</p> 4961 * 4962 * <p>Type: int32[4]</p> 4963 * 4964 * <p>This tag may appear in: 4965 * <ul> 4966 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 4967 * </ul></p> 4968 * 4969 * <p>This key specifies the zero light value for each of the CFA mosaic 4970 * channels in the camera sensor. The maximal value output by the 4971 * sensor is represented by the value in ACAMERA_SENSOR_INFO_WHITE_LEVEL.</p> 4972 * <p>The values are given in the same order as channels listed for the CFA 4973 * layout key (see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT), i.e. the 4974 * nth value given corresponds to the black level offset for the nth 4975 * color channel listed in the CFA.</p> 4976 * <p>The black level values of captured images may vary for different 4977 * capture settings (e.g., ACAMERA_SENSOR_SENSITIVITY). This key 4978 * represents a coarse approximation for such case. It is recommended to 4979 * use ACAMERA_SENSOR_DYNAMIC_BLACK_LEVEL or use pixels from 4980 * ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS directly for captures when 4981 * supported by the camera device, which provides more accurate black 4982 * level values. For raw capture in particular, it is recommended to use 4983 * pixels from ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS to calculate black 4984 * level values for each frame.</p> 4985 * <p>For a MONOCHROME camera device, all of the 2x2 channels must have the same values.</p> 4986 * 4987 * @see ACAMERA_SENSOR_DYNAMIC_BLACK_LEVEL 4988 * @see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT 4989 * @see ACAMERA_SENSOR_INFO_WHITE_LEVEL 4990 * @see ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS 4991 * @see ACAMERA_SENSOR_SENSITIVITY 4992 */ 4993 ACAMERA_SENSOR_BLACK_LEVEL_PATTERN = // int32[4] 4994 ACAMERA_SENSOR_START + 12, 4995 /** 4996 * <p>Maximum sensitivity that is implemented 4997 * purely through analog gain.</p> 4998 * 4999 * <p>Type: int32</p> 5000 * 5001 * <p>This tag may appear in: 5002 * <ul> 5003 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5004 * </ul></p> 5005 * 5006 * <p>For ACAMERA_SENSOR_SENSITIVITY values less than or 5007 * equal to this, all applied gain must be analog. For 5008 * values above this, the gain applied can be a mix of analog and 5009 * digital.</p> 5010 * 5011 * @see ACAMERA_SENSOR_SENSITIVITY 5012 */ 5013 ACAMERA_SENSOR_MAX_ANALOG_SENSITIVITY = // int32 5014 ACAMERA_SENSOR_START + 13, 5015 /** 5016 * <p>Clockwise angle through which the output image needs to be rotated to be 5017 * upright on the device screen in its native orientation.</p> 5018 * 5019 * <p>Type: int32</p> 5020 * 5021 * <p>This tag may appear in: 5022 * <ul> 5023 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5024 * </ul></p> 5025 * 5026 * <p>Also defines the direction of rolling shutter readout, which is from top to bottom in 5027 * the sensor's coordinate system.</p> 5028 * <p>Starting with Android API level 32, camera clients that query the orientation via 5029 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#get">CameraCharacteristics#get</a> on foldable devices which 5030 * include logical cameras can receive a value that can dynamically change depending on the 5031 * device/fold state. 5032 * Clients are advised to not cache or store the orientation value of such logical sensors. 5033 * In case repeated queries to CameraCharacteristics are not preferred, then clients can 5034 * also access the entire mapping from device state to sensor orientation in 5035 * <a href="https://developer.android.com/reference/android/hardware/camera2/params/DeviceStateSensorOrientationMap.html">DeviceStateSensorOrientationMap</a>. 5036 * Do note that a dynamically changing sensor orientation value in camera characteristics 5037 * will not be the best way to establish the orientation per frame. Clients that want to 5038 * know the sensor orientation of a particular captured frame should query the 5039 * ACAMERA_LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID from the corresponding capture result and 5040 * check the respective physical camera orientation.</p> 5041 * <p>Native camera clients must query ACAMERA_INFO_DEVICE_STATE_ORIENTATIONS for the mapping 5042 * between device state and camera sensor orientation. Dynamic updates to the sensor 5043 * orientation are not supported in this code path.</p> 5044 * 5045 * @see ACAMERA_INFO_DEVICE_STATE_ORIENTATIONS 5046 * @see ACAMERA_LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID 5047 */ 5048 ACAMERA_SENSOR_ORIENTATION = // int32 5049 ACAMERA_SENSOR_START + 14, 5050 /** 5051 * <p>Time at start of exposure of first 5052 * row of the image sensor active array, in nanoseconds.</p> 5053 * 5054 * <p>Type: int64</p> 5055 * 5056 * <p>This tag may appear in: 5057 * <ul> 5058 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5059 * </ul></p> 5060 * 5061 * <p>The timestamps are also included in all image 5062 * buffers produced for the same capture, and will be identical 5063 * on all the outputs.</p> 5064 * <p>When ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE <code>==</code> UNKNOWN, 5065 * the timestamps measure time since an unspecified starting point, 5066 * and are monotonically increasing. They can be compared with the 5067 * timestamps for other captures from the same camera device, but are 5068 * not guaranteed to be comparable to any other time source.</p> 5069 * <p>When ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE <code>==</code> REALTIME, the 5070 * 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 5071 * be compared to other timestamps from other subsystems that 5072 * are using that base.</p> 5073 * <p>For reprocessing, the timestamp will match the start of exposure of 5074 * the input image, i.e. <a href="https://developer.android.com/reference/CaptureResult.html#SENSOR_TIMESTAMP">the 5075 * timestamp</a> in the TotalCaptureResult that was used to create the 5076 * reprocess capture request.</p> 5077 * 5078 * @see ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE 5079 */ 5080 ACAMERA_SENSOR_TIMESTAMP = // int64 5081 ACAMERA_SENSOR_START + 16, 5082 /** 5083 * <p>The estimated camera neutral color in the native sensor colorspace at 5084 * the time of capture.</p> 5085 * 5086 * <p>Type: rational[3]</p> 5087 * 5088 * <p>This tag may appear in: 5089 * <ul> 5090 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5091 * </ul></p> 5092 * 5093 * <p>This value gives the neutral color point encoded as an RGB value in the 5094 * native sensor color space. The neutral color point indicates the 5095 * currently estimated white point of the scene illumination. It can be 5096 * used to interpolate between the provided color transforms when 5097 * processing raw sensor data.</p> 5098 * <p>The order of the values is R, G, B; where R is in the lowest index.</p> 5099 * <p>Starting from Android Q, this key will not be present for a MONOCHROME camera, even if 5100 * the camera device has RAW capability.</p> 5101 */ 5102 ACAMERA_SENSOR_NEUTRAL_COLOR_POINT = // rational[3] 5103 ACAMERA_SENSOR_START + 18, 5104 /** 5105 * <p>Noise model coefficients for each CFA mosaic channel.</p> 5106 * 5107 * <p>Type: double[2*CFA Channels]</p> 5108 * 5109 * <p>This tag may appear in: 5110 * <ul> 5111 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5112 * </ul></p> 5113 * 5114 * <p>This key contains two noise model coefficients for each CFA channel 5115 * corresponding to the sensor amplification (S) and sensor readout 5116 * noise (O). These are given as pairs of coefficients for each channel 5117 * in the same order as channels listed for the CFA layout key 5118 * (see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT). This is 5119 * represented as an array of Pair<Double, Double>, where 5120 * the first member of the Pair at index n is the S coefficient and the 5121 * second member is the O coefficient for the nth color channel in the CFA.</p> 5122 * <p>These coefficients are used in a two parameter noise model to describe 5123 * the amount of noise present in the image for each CFA channel. The 5124 * noise model used here is:</p> 5125 * <p>N(x) = sqrt(Sx + O)</p> 5126 * <p>Where x represents the recorded signal of a CFA channel normalized to 5127 * the range [0, 1], and S and O are the noise model coefficients for 5128 * that channel.</p> 5129 * <p>A more detailed description of the noise model can be found in the 5130 * Adobe DNG specification for the NoiseProfile tag.</p> 5131 * <p>For a MONOCHROME camera, there is only one color channel. So the noise model coefficients 5132 * will only contain one S and one O.</p> 5133 * 5134 * @see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT 5135 */ 5136 ACAMERA_SENSOR_NOISE_PROFILE = // double[2*CFA Channels] 5137 ACAMERA_SENSOR_START + 19, 5138 /** 5139 * <p>The worst-case divergence between Bayer green channels.</p> 5140 * 5141 * <p>Type: float</p> 5142 * 5143 * <p>This tag may appear in: 5144 * <ul> 5145 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5146 * </ul></p> 5147 * 5148 * <p>This value is an estimate of the worst case split between the 5149 * Bayer green channels in the red and blue rows in the sensor color 5150 * filter array.</p> 5151 * <p>The green split is calculated as follows:</p> 5152 * <ol> 5153 * <li>A 5x5 pixel (or larger) window W within the active sensor array is 5154 * chosen. The term 'pixel' here is taken to mean a group of 4 Bayer 5155 * mosaic channels (R, Gr, Gb, B). The location and size of the window 5156 * chosen is implementation defined, and should be chosen to provide a 5157 * green split estimate that is both representative of the entire image 5158 * for this camera sensor, and can be calculated quickly.</li> 5159 * <li>The arithmetic mean of the green channels from the red 5160 * rows (mean_Gr) within W is computed.</li> 5161 * <li>The arithmetic mean of the green channels from the blue 5162 * rows (mean_Gb) within W is computed.</li> 5163 * <li>The maximum ratio R of the two means is computed as follows: 5164 * <code>R = max((mean_Gr + 1)/(mean_Gb + 1), (mean_Gb + 1)/(mean_Gr + 1))</code></li> 5165 * </ol> 5166 * <p>The ratio R is the green split divergence reported for this property, 5167 * which represents how much the green channels differ in the mosaic 5168 * pattern. This value is typically used to determine the treatment of 5169 * the green mosaic channels when demosaicing.</p> 5170 * <p>The green split value can be roughly interpreted as follows:</p> 5171 * <ul> 5172 * <li>R < 1.03 is a negligible split (<3% divergence).</li> 5173 * <li>1.20 <= R >= 1.03 will require some software 5174 * correction to avoid demosaic errors (3-20% divergence).</li> 5175 * <li>R > 1.20 will require strong software correction to produce 5176 * a usable image (>20% divergence).</li> 5177 * </ul> 5178 * <p>Starting from Android Q, this key will not be present for a MONOCHROME camera, even if 5179 * the camera device has RAW capability.</p> 5180 */ 5181 ACAMERA_SENSOR_GREEN_SPLIT = // float 5182 ACAMERA_SENSOR_START + 22, 5183 /** 5184 * <p>A pixel <code>[R, G_even, G_odd, B]</code> that supplies the test pattern 5185 * when ACAMERA_SENSOR_TEST_PATTERN_MODE is SOLID_COLOR.</p> 5186 * 5187 * @see ACAMERA_SENSOR_TEST_PATTERN_MODE 5188 * 5189 * <p>Type: int32[4]</p> 5190 * 5191 * <p>This tag may appear in: 5192 * <ul> 5193 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5194 * <li>ACaptureRequest</li> 5195 * </ul></p> 5196 * 5197 * <p>Each color channel is treated as an unsigned 32-bit integer. 5198 * The camera device then uses the most significant X bits 5199 * that correspond to how many bits are in its Bayer raw sensor 5200 * output.</p> 5201 * <p>For example, a sensor with RAW10 Bayer output would use the 5202 * 10 most significant bits from each color channel.</p> 5203 */ 5204 ACAMERA_SENSOR_TEST_PATTERN_DATA = // int32[4] 5205 ACAMERA_SENSOR_START + 23, 5206 /** 5207 * <p>When enabled, the sensor sends a test pattern instead of 5208 * doing a real exposure from the camera.</p> 5209 * 5210 * <p>Type: int32 (acamera_metadata_enum_android_sensor_test_pattern_mode_t)</p> 5211 * 5212 * <p>This tag may appear in: 5213 * <ul> 5214 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5215 * <li>ACaptureRequest</li> 5216 * </ul></p> 5217 * 5218 * <p>When a test pattern is enabled, all manual sensor controls specified 5219 * by ACAMERA_SENSOR_* will be ignored. All other controls should 5220 * work as normal.</p> 5221 * <p>For example, if manual flash is enabled, flash firing should still 5222 * occur (and that the test pattern remain unmodified, since the flash 5223 * would not actually affect it).</p> 5224 * <p>Defaults to OFF.</p> 5225 */ 5226 ACAMERA_SENSOR_TEST_PATTERN_MODE = // int32 (acamera_metadata_enum_android_sensor_test_pattern_mode_t) 5227 ACAMERA_SENSOR_START + 24, 5228 /** 5229 * <p>List of sensor test pattern modes for ACAMERA_SENSOR_TEST_PATTERN_MODE 5230 * supported by this camera device.</p> 5231 * 5232 * @see ACAMERA_SENSOR_TEST_PATTERN_MODE 5233 * 5234 * <p>Type: int32[n]</p> 5235 * 5236 * <p>This tag may appear in: 5237 * <ul> 5238 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5239 * </ul></p> 5240 * 5241 * <p>Defaults to OFF, and always includes OFF if defined.</p> 5242 */ 5243 ACAMERA_SENSOR_AVAILABLE_TEST_PATTERN_MODES = // int32[n] 5244 ACAMERA_SENSOR_START + 25, 5245 /** 5246 * <p>Duration between the start of exposure for the first row of the image sensor, 5247 * and the start of exposure for one past the last row of the image sensor.</p> 5248 * 5249 * <p>Type: int64</p> 5250 * 5251 * <p>This tag may appear in: 5252 * <ul> 5253 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5254 * </ul></p> 5255 * 5256 * <p>This is the exposure time skew between the first and <code>(last+1)</code> row exposure start times. The 5257 * first row and the last row are the first and last rows inside of the 5258 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.</p> 5259 * <p>For typical camera sensors that use rolling shutters, this is also equivalent to the frame 5260 * readout time.</p> 5261 * <p>If the image sensor is operating in a binned or cropped mode due to the current output 5262 * target resolutions, it's possible this skew is reported to be larger than the exposure 5263 * time, for example, since it is based on the full array even if a partial array is read 5264 * out. Be sure to scale the number to cover the section of the sensor actually being used 5265 * for the outputs you care about. So if your output covers N rows of the active array of 5266 * height H, scale this value by N/H to get the total skew for that viewport.</p> 5267 * <p><em>Note:</em> Prior to Android 11, this field was described as measuring duration from 5268 * first to last row of the image sensor, which is not equal to the frame readout time for a 5269 * rolling shutter sensor. Implementations generally reported the latter value, so to resolve 5270 * the inconsistency, the description has been updated to range from (first, last+1) row 5271 * exposure start, instead.</p> 5272 * 5273 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 5274 */ 5275 ACAMERA_SENSOR_ROLLING_SHUTTER_SKEW = // int64 5276 ACAMERA_SENSOR_START + 26, 5277 /** 5278 * <p>List of disjoint rectangles indicating the sensor 5279 * optically shielded black pixel regions.</p> 5280 * 5281 * <p>Type: int32[4*num_regions]</p> 5282 * 5283 * <p>This tag may appear in: 5284 * <ul> 5285 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5286 * </ul></p> 5287 * 5288 * <p>In most camera sensors, the active array is surrounded by some 5289 * optically shielded pixel areas. By blocking light, these pixels 5290 * provides a reliable black reference for black level compensation 5291 * in active array region.</p> 5292 * <p>This key provides a list of disjoint rectangles specifying the 5293 * regions of optically shielded (with metal shield) black pixel 5294 * regions if the camera device is capable of reading out these black 5295 * pixels in the output raw images. In comparison to the fixed black 5296 * level values reported by ACAMERA_SENSOR_BLACK_LEVEL_PATTERN, this key 5297 * may provide a more accurate way for the application to calculate 5298 * black level of each captured raw images.</p> 5299 * <p>When this key is reported, the ACAMERA_SENSOR_DYNAMIC_BLACK_LEVEL and 5300 * ACAMERA_SENSOR_DYNAMIC_WHITE_LEVEL will also be reported.</p> 5301 * <p>The data representation is <code>int[4]</code>, which maps to <code>(left, top, width, height)</code>.</p> 5302 * 5303 * @see ACAMERA_SENSOR_BLACK_LEVEL_PATTERN 5304 * @see ACAMERA_SENSOR_DYNAMIC_BLACK_LEVEL 5305 * @see ACAMERA_SENSOR_DYNAMIC_WHITE_LEVEL 5306 */ 5307 ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS = // int32[4*num_regions] 5308 ACAMERA_SENSOR_START + 27, 5309 /** 5310 * <p>A per-frame dynamic black level offset for each of the color filter 5311 * arrangement (CFA) mosaic channels.</p> 5312 * 5313 * <p>Type: float[4]</p> 5314 * 5315 * <p>This tag may appear in: 5316 * <ul> 5317 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5318 * </ul></p> 5319 * 5320 * <p>Camera sensor black levels may vary dramatically for different 5321 * capture settings (e.g. ACAMERA_SENSOR_SENSITIVITY). The fixed black 5322 * level reported by ACAMERA_SENSOR_BLACK_LEVEL_PATTERN may be too 5323 * inaccurate to represent the actual value on a per-frame basis. The 5324 * camera device internal pipeline relies on reliable black level values 5325 * to process the raw images appropriately. To get the best image 5326 * quality, the camera device may choose to estimate the per frame black 5327 * level values either based on optically shielded black regions 5328 * (ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS) or its internal model.</p> 5329 * <p>This key reports the camera device estimated per-frame zero light 5330 * value for each of the CFA mosaic channels in the camera sensor. The 5331 * ACAMERA_SENSOR_BLACK_LEVEL_PATTERN may only represent a coarse 5332 * approximation of the actual black level values. This value is the 5333 * black level used in camera device internal image processing pipeline 5334 * and generally more accurate than the fixed black level values. 5335 * However, since they are estimated values by the camera device, they 5336 * may not be as accurate as the black level values calculated from the 5337 * optical black pixels reported by ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS.</p> 5338 * <p>The values are given in the same order as channels listed for the CFA 5339 * layout key (see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT), i.e. the 5340 * nth value given corresponds to the black level offset for the nth 5341 * color channel listed in the CFA.</p> 5342 * <p>For a MONOCHROME camera, all of the 2x2 channels must have the same values.</p> 5343 * <p>This key will be available if ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS is available or the 5344 * camera device advertises this key via {@link ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS }.</p> 5345 * 5346 * @see ACAMERA_SENSOR_BLACK_LEVEL_PATTERN 5347 * @see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT 5348 * @see ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS 5349 * @see ACAMERA_SENSOR_SENSITIVITY 5350 */ 5351 ACAMERA_SENSOR_DYNAMIC_BLACK_LEVEL = // float[4] 5352 ACAMERA_SENSOR_START + 28, 5353 /** 5354 * <p>Maximum raw value output by sensor for this frame.</p> 5355 * 5356 * <p>Type: int32</p> 5357 * 5358 * <p>This tag may appear in: 5359 * <ul> 5360 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5361 * </ul></p> 5362 * 5363 * <p>Since the ACAMERA_SENSOR_BLACK_LEVEL_PATTERN may change for different 5364 * capture settings (e.g., ACAMERA_SENSOR_SENSITIVITY), the white 5365 * level will change accordingly. This key is similar to 5366 * ACAMERA_SENSOR_INFO_WHITE_LEVEL, but specifies the camera device 5367 * estimated white level for each frame.</p> 5368 * <p>This key will be available if ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS is 5369 * available or the camera device advertises this key via 5370 * {@link ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS }.</p> 5371 * 5372 * @see ACAMERA_SENSOR_BLACK_LEVEL_PATTERN 5373 * @see ACAMERA_SENSOR_INFO_WHITE_LEVEL 5374 * @see ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS 5375 * @see ACAMERA_SENSOR_SENSITIVITY 5376 */ 5377 ACAMERA_SENSOR_DYNAMIC_WHITE_LEVEL = // int32 5378 ACAMERA_SENSOR_START + 29, 5379 /** 5380 * <p>Switches sensor pixel mode between maximum resolution mode and default mode.</p> 5381 * 5382 * <p>Type: byte (acamera_metadata_enum_android_sensor_pixel_mode_t)</p> 5383 * 5384 * <p>This tag may appear in: 5385 * <ul> 5386 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5387 * <li>ACaptureRequest</li> 5388 * </ul></p> 5389 * 5390 * <p>This key controls whether the camera sensor operates in 5391 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a> 5392 * mode or not. By default, all camera devices operate in 5393 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_DEFAULT">CameraMetadata#SENSOR_PIXEL_MODE_DEFAULT</a> mode. 5394 * When operating in 5395 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_DEFAULT">CameraMetadata#SENSOR_PIXEL_MODE_DEFAULT</a> mode, sensors 5396 * would typically perform pixel binning in order to improve low light 5397 * performance, noise reduction etc. However, in 5398 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a> 5399 * mode, sensors typically operate in unbinned mode allowing for a larger image size. 5400 * The stream configurations supported in 5401 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a> 5402 * mode are also different from those of 5403 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_DEFAULT">CameraMetadata#SENSOR_PIXEL_MODE_DEFAULT</a> mode. 5404 * They can be queried through 5405 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#get">CameraCharacteristics#get</a> with 5406 * <a href="https://developer.android.com/reference/CameraCharacteristics.html#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION">CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION</a>. 5407 * Unless reported by both 5408 * <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html">StreamConfigurationMap</a>s, the outputs from 5409 * <code>android.scaler.streamConfigurationMapMaximumResolution</code> and 5410 * <code>android.scaler.streamConfigurationMap</code> 5411 * must not be mixed in the same CaptureRequest. In other words, these outputs are 5412 * exclusive to each other. 5413 * This key does not need to be set for reprocess requests. 5414 * This key will be be present on devices supporting the 5415 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 5416 * capability. It may also be present on devices which do not support the aforementioned 5417 * capability. In that case:</p> 5418 * <ul> 5419 * <li> 5420 * <p>The mandatory stream combinations listed in 5421 * android.scaler.mandatoryMaximumResolutionStreamCombinations would not apply.</p> 5422 * </li> 5423 * <li> 5424 * <p>The bayer pattern of {@code RAW} streams when 5425 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a> 5426 * is selected will be the one listed in ACAMERA_SENSOR_INFO_BINNING_FACTOR.</p> 5427 * </li> 5428 * <li> 5429 * <p>The following keys will always be present:</p> 5430 * <ul> 5431 * <li>android.scaler.streamConfigurationMapMaximumResolution</li> 5432 * <li>ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION</li> 5433 * <li>ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE_MAXIMUM_RESOLUTION</li> 5434 * <li>ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION</li> 5435 * </ul> 5436 * </li> 5437 * </ul> 5438 * 5439 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION 5440 * @see ACAMERA_SENSOR_INFO_BINNING_FACTOR 5441 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE_MAXIMUM_RESOLUTION 5442 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION 5443 */ 5444 ACAMERA_SENSOR_PIXEL_MODE = // byte (acamera_metadata_enum_android_sensor_pixel_mode_t) 5445 ACAMERA_SENSOR_START + 32, 5446 /** 5447 * <p>Whether <code>RAW</code> images requested have their bayer pattern as described by 5448 * ACAMERA_SENSOR_INFO_BINNING_FACTOR.</p> 5449 * 5450 * @see ACAMERA_SENSOR_INFO_BINNING_FACTOR 5451 * 5452 * <p>Type: byte (acamera_metadata_enum_android_sensor_raw_binning_factor_used_t)</p> 5453 * 5454 * <p>This tag may appear in: 5455 * <ul> 5456 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5457 * </ul></p> 5458 * 5459 * <p>This key will only be present in devices advertising the 5460 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 5461 * capability which also advertise <code>REMOSAIC_REPROCESSING</code> capability. On all other devices 5462 * RAW targets will have a regular bayer pattern.</p> 5463 */ 5464 ACAMERA_SENSOR_RAW_BINNING_FACTOR_USED = // byte (acamera_metadata_enum_android_sensor_raw_binning_factor_used_t) 5465 ACAMERA_SENSOR_START + 33, 5466 ACAMERA_SENSOR_END, 5467 5468 /** 5469 * <p>The area of the image sensor which corresponds to active pixels after any geometric 5470 * distortion correction has been applied.</p> 5471 * 5472 * <p>Type: int32[4]</p> 5473 * 5474 * <p>This tag may appear in: 5475 * <ul> 5476 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5477 * </ul></p> 5478 * 5479 * <p>This is the rectangle representing the size of the active region of the sensor (i.e. 5480 * the region that actually receives light from the scene) after any geometric correction 5481 * has been applied, and should be treated as the maximum size in pixels of any of the 5482 * image output formats aside from the raw formats.</p> 5483 * <p>This rectangle is defined relative to the full pixel array; (0,0) is the top-left of 5484 * the full pixel array, and the size of the full pixel array is given by 5485 * ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE.</p> 5486 * <p>The coordinate system for most other keys that list pixel coordinates, including 5487 * ACAMERA_SCALER_CROP_REGION, is defined relative to the active array rectangle given in 5488 * this field, with <code>(0, 0)</code> being the top-left of this rectangle.</p> 5489 * <p>The active array may be smaller than the full pixel array, since the full array may 5490 * include black calibration pixels or other inactive regions.</p> 5491 * <p>For devices that do not support ACAMERA_DISTORTION_CORRECTION_MODE control, the active 5492 * array must be the same as ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE.</p> 5493 * <p>For devices that support ACAMERA_DISTORTION_CORRECTION_MODE control, the active array must 5494 * be enclosed by ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE. The difference between 5495 * pre-correction active array and active array accounts for scaling or cropping caused 5496 * by lens geometric distortion correction.</p> 5497 * <p>In general, application should always refer to active array size for controls like 5498 * metering regions or crop region. Two exceptions are when the application is dealing with 5499 * RAW image buffers (RAW_SENSOR, RAW10, RAW12 etc), or when application explicitly set 5500 * ACAMERA_DISTORTION_CORRECTION_MODE to OFF. In these cases, application should refer 5501 * to ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE.</p> 5502 * <p>The data representation is <code>int[4]</code>, which maps to <code>(left, top, width, height)</code>.</p> 5503 * 5504 * @see ACAMERA_DISTORTION_CORRECTION_MODE 5505 * @see ACAMERA_SCALER_CROP_REGION 5506 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 5507 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 5508 */ 5509 ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE = // int32[4] 5510 ACAMERA_SENSOR_INFO_START, 5511 /** 5512 * <p>Range of sensitivities for ACAMERA_SENSOR_SENSITIVITY supported by this 5513 * camera device.</p> 5514 * 5515 * @see ACAMERA_SENSOR_SENSITIVITY 5516 * 5517 * <p>Type: int32[2]</p> 5518 * 5519 * <p>This tag may appear in: 5520 * <ul> 5521 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5522 * </ul></p> 5523 * 5524 * <p>The values are the standard ISO sensitivity values, 5525 * as defined in ISO 12232:2006.</p> 5526 */ 5527 ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE = // int32[2] 5528 ACAMERA_SENSOR_INFO_START + 1, 5529 /** 5530 * <p>The arrangement of color filters on sensor; 5531 * represents the colors in the top-left 2x2 section of 5532 * the sensor, in reading order, for a Bayer camera, or the 5533 * light spectrum it captures for MONOCHROME camera.</p> 5534 * 5535 * <p>Type: byte (acamera_metadata_enum_android_sensor_info_color_filter_arrangement_t)</p> 5536 * 5537 * <p>This tag may appear in: 5538 * <ul> 5539 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5540 * </ul></p> 5541 * 5542 */ 5543 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT = // byte (acamera_metadata_enum_android_sensor_info_color_filter_arrangement_t) 5544 ACAMERA_SENSOR_INFO_START + 2, 5545 /** 5546 * <p>The range of image exposure times for ACAMERA_SENSOR_EXPOSURE_TIME supported 5547 * by this camera device.</p> 5548 * 5549 * @see ACAMERA_SENSOR_EXPOSURE_TIME 5550 * 5551 * <p>Type: int64[2]</p> 5552 * 5553 * <p>This tag may appear in: 5554 * <ul> 5555 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5556 * </ul></p> 5557 * 5558 */ 5559 ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE = // int64[2] 5560 ACAMERA_SENSOR_INFO_START + 3, 5561 /** 5562 * <p>The maximum possible frame duration (minimum frame rate) for 5563 * ACAMERA_SENSOR_FRAME_DURATION that is supported this camera device.</p> 5564 * 5565 * @see ACAMERA_SENSOR_FRAME_DURATION 5566 * 5567 * <p>Type: int64</p> 5568 * 5569 * <p>This tag may appear in: 5570 * <ul> 5571 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5572 * </ul></p> 5573 * 5574 * <p>Attempting to use frame durations beyond the maximum will result in the frame 5575 * duration being clipped to the maximum. See that control for a full definition of frame 5576 * durations.</p> 5577 * <p>Refer to {@link ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS } 5578 * for the minimum frame duration values.</p> 5579 */ 5580 ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION = // int64 5581 ACAMERA_SENSOR_INFO_START + 4, 5582 /** 5583 * <p>The physical dimensions of the full pixel 5584 * array.</p> 5585 * 5586 * <p>Type: float[2]</p> 5587 * 5588 * <p>This tag may appear in: 5589 * <ul> 5590 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5591 * </ul></p> 5592 * 5593 * <p>This is the physical size of the sensor pixel 5594 * array defined by ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE.</p> 5595 * 5596 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 5597 */ 5598 ACAMERA_SENSOR_INFO_PHYSICAL_SIZE = // float[2] 5599 ACAMERA_SENSOR_INFO_START + 5, 5600 /** 5601 * <p>Dimensions of the full pixel array, possibly 5602 * including black calibration pixels.</p> 5603 * 5604 * <p>Type: int32[2]</p> 5605 * 5606 * <p>This tag may appear in: 5607 * <ul> 5608 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5609 * </ul></p> 5610 * 5611 * <p>The pixel count of the full pixel array of the image sensor, which covers 5612 * ACAMERA_SENSOR_INFO_PHYSICAL_SIZE area. This represents the full pixel dimensions of 5613 * the raw buffers produced by this sensor.</p> 5614 * <p>If a camera device supports raw sensor formats, either this or 5615 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE is the maximum dimensions for the raw 5616 * output formats listed in {@link ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS } 5617 * (this depends on whether or not the image sensor returns buffers containing pixels that 5618 * are not part of the active array region for blacklevel calibration or other purposes).</p> 5619 * <p>Some parts of the full pixel array may not receive light from the scene, 5620 * or be otherwise inactive. The ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE key 5621 * defines the rectangle of active pixels that will be included in processed image 5622 * formats.</p> 5623 * 5624 * @see ACAMERA_SENSOR_INFO_PHYSICAL_SIZE 5625 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 5626 */ 5627 ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE = // int32[2] 5628 ACAMERA_SENSOR_INFO_START + 6, 5629 /** 5630 * <p>Maximum raw value output by sensor.</p> 5631 * 5632 * <p>Type: int32</p> 5633 * 5634 * <p>This tag may appear in: 5635 * <ul> 5636 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5637 * </ul></p> 5638 * 5639 * <p>This specifies the fully-saturated encoding level for the raw 5640 * sample values from the sensor. This is typically caused by the 5641 * sensor becoming highly non-linear or clipping. The minimum for 5642 * each channel is specified by the offset in the 5643 * ACAMERA_SENSOR_BLACK_LEVEL_PATTERN key.</p> 5644 * <p>The white level is typically determined either by sensor bit depth 5645 * (8-14 bits is expected), or by the point where the sensor response 5646 * becomes too non-linear to be useful. The default value for this is 5647 * maximum representable value for a 16-bit raw sample (2^16 - 1).</p> 5648 * <p>The white level values of captured images may vary for different 5649 * capture settings (e.g., ACAMERA_SENSOR_SENSITIVITY). This key 5650 * represents a coarse approximation for such case. It is recommended 5651 * to use ACAMERA_SENSOR_DYNAMIC_WHITE_LEVEL for captures when supported 5652 * by the camera device, which provides more accurate white level values.</p> 5653 * 5654 * @see ACAMERA_SENSOR_BLACK_LEVEL_PATTERN 5655 * @see ACAMERA_SENSOR_DYNAMIC_WHITE_LEVEL 5656 * @see ACAMERA_SENSOR_SENSITIVITY 5657 */ 5658 ACAMERA_SENSOR_INFO_WHITE_LEVEL = // int32 5659 ACAMERA_SENSOR_INFO_START + 7, 5660 /** 5661 * <p>The time base source for sensor capture start timestamps.</p> 5662 * 5663 * <p>Type: byte (acamera_metadata_enum_android_sensor_info_timestamp_source_t)</p> 5664 * 5665 * <p>This tag may appear in: 5666 * <ul> 5667 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5668 * </ul></p> 5669 * 5670 * <p>The timestamps provided for captures are always in nanoseconds and monotonic, but 5671 * may not based on a time source that can be compared to other system time sources.</p> 5672 * <p>This characteristic defines the source for the timestamps, and therefore whether they 5673 * can be compared against other system time sources/timestamps.</p> 5674 */ 5675 ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE = // byte (acamera_metadata_enum_android_sensor_info_timestamp_source_t) 5676 ACAMERA_SENSOR_INFO_START + 8, 5677 /** 5678 * <p>Whether the RAW images output from this camera device are subject to 5679 * lens shading correction.</p> 5680 * 5681 * <p>Type: byte (acamera_metadata_enum_android_sensor_info_lens_shading_applied_t)</p> 5682 * 5683 * <p>This tag may appear in: 5684 * <ul> 5685 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5686 * </ul></p> 5687 * 5688 * <p>If TRUE, all images produced by the camera device in the RAW image formats will 5689 * have lens shading correction already applied to it. If FALSE, the images will 5690 * not be adjusted for lens shading correction. 5691 * See android.request.maxNumOutputRaw for a list of RAW image formats.</p> 5692 * <p>This key will be <code>null</code> for all devices do not report this information. 5693 * Devices with RAW capability will always report this information in this key.</p> 5694 */ 5695 ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED = // byte (acamera_metadata_enum_android_sensor_info_lens_shading_applied_t) 5696 ACAMERA_SENSOR_INFO_START + 9, 5697 /** 5698 * <p>The area of the image sensor which corresponds to active pixels prior to the 5699 * application of any geometric distortion correction.</p> 5700 * 5701 * <p>Type: int32[4]</p> 5702 * 5703 * <p>This tag may appear in: 5704 * <ul> 5705 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5706 * </ul></p> 5707 * 5708 * <p>This is the rectangle representing the size of the active region of the sensor (i.e. 5709 * the region that actually receives light from the scene) before any geometric correction 5710 * has been applied, and should be treated as the active region rectangle for any of the 5711 * raw formats. All metadata associated with raw processing (e.g. the lens shading 5712 * correction map, and radial distortion fields) treats the top, left of this rectangle as 5713 * the origin, (0,0).</p> 5714 * <p>The size of this region determines the maximum field of view and the maximum number of 5715 * pixels that an image from this sensor can contain, prior to the application of 5716 * geometric distortion correction. The effective maximum pixel dimensions of a 5717 * post-distortion-corrected image is given by the ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 5718 * field, and the effective maximum field of view for a post-distortion-corrected image 5719 * can be calculated by applying the geometric distortion correction fields to this 5720 * rectangle, and cropping to the rectangle given in ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.</p> 5721 * <p>E.g. to calculate position of a pixel, (x,y), in a processed YUV output image with the 5722 * dimensions in ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE given the position of a pixel, 5723 * (x', y'), in the raw pixel array with dimensions given in 5724 * ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE:</p> 5725 * <ol> 5726 * <li>Choose a pixel (x', y') within the active array region of the raw buffer given in 5727 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, otherwise this pixel is considered 5728 * to be outside of the FOV, and will not be shown in the processed output image.</li> 5729 * <li>Apply geometric distortion correction to get the post-distortion pixel coordinate, 5730 * (x_i, y_i). When applying geometric correction metadata, note that metadata for raw 5731 * buffers is defined relative to the top, left of the 5732 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE rectangle.</li> 5733 * <li>If the resulting corrected pixel coordinate is within the region given in 5734 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, then the position of this pixel in the 5735 * processed output image buffer is <code>(x_i - activeArray.left, y_i - activeArray.top)</code>, 5736 * when the top, left coordinate of that buffer is treated as (0, 0).</li> 5737 * </ol> 5738 * <p>Thus, for pixel x',y' = (25, 25) on a sensor where ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 5739 * is (100,100), ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE is (10, 10, 100, 100), 5740 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE is (20, 20, 80, 80), and the geometric distortion 5741 * correction doesn't change the pixel coordinate, the resulting pixel selected in 5742 * pixel coordinates would be x,y = (25, 25) relative to the top,left of the raw buffer 5743 * with dimensions given in ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE, and would be (5, 5) 5744 * relative to the top,left of post-processed YUV output buffer with dimensions given in 5745 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.</p> 5746 * <p>The currently supported fields that correct for geometric distortion are:</p> 5747 * <ol> 5748 * <li>ACAMERA_LENS_DISTORTION.</li> 5749 * </ol> 5750 * <p>If the camera device doesn't support geometric distortion correction, or all of the 5751 * geometric distortion fields are no-ops, this rectangle will be the same as the 5752 * post-distortion-corrected rectangle given in ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.</p> 5753 * <p>This rectangle is defined relative to the full pixel array; (0,0) is the top-left of 5754 * the full pixel array, and the size of the full pixel array is given by 5755 * ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE.</p> 5756 * <p>The pre-correction active array may be smaller than the full pixel array, since the 5757 * full array may include black calibration pixels or other inactive regions.</p> 5758 * <p>The data representation is <code>int[4]</code>, which maps to <code>(left, top, width, height)</code>.</p> 5759 * 5760 * @see ACAMERA_LENS_DISTORTION 5761 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 5762 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 5763 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 5764 */ 5765 ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE = // int32[4] 5766 ACAMERA_SENSOR_INFO_START + 10, 5767 /** 5768 * <p>The area of the image sensor which corresponds to active pixels after any geometric 5769 * distortion correction has been applied, when the sensor runs in maximum resolution mode.</p> 5770 * 5771 * <p>Type: int32[4]</p> 5772 * 5773 * <p>This tag may appear in: 5774 * <ul> 5775 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5776 * </ul></p> 5777 * 5778 * <p>Analogous to ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, when ACAMERA_SENSOR_PIXEL_MODE 5779 * is set to 5780 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>. 5781 * Refer to ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE for details, with sensor array related keys 5782 * replaced with their 5783 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a> 5784 * counterparts. 5785 * This key will only be present for devices which advertise the 5786 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 5787 * capability or devices where <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a> 5788 * lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE">ACAMERA_SENSOR_PIXEL_MODE</a></p> 5789 * <p>The data representation is <code>int[4]</code>, which maps to <code>(left, top, width, height)</code>.</p> 5790 * 5791 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 5792 * @see ACAMERA_SENSOR_PIXEL_MODE 5793 */ 5794 ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION = // int32[4] 5795 ACAMERA_SENSOR_INFO_START + 11, 5796 /** 5797 * <p>Dimensions of the full pixel array, possibly 5798 * including black calibration pixels, when the sensor runs in maximum resolution mode. 5799 * Analogous to ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE, when ACAMERA_SENSOR_PIXEL_MODE is 5800 * set to 5801 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 5802 * 5803 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 5804 * @see ACAMERA_SENSOR_PIXEL_MODE 5805 * 5806 * <p>Type: int32[2]</p> 5807 * 5808 * <p>This tag may appear in: 5809 * <ul> 5810 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5811 * </ul></p> 5812 * 5813 * <p>The pixel count of the full pixel array of the image sensor, which covers 5814 * ACAMERA_SENSOR_INFO_PHYSICAL_SIZE area. This represents the full pixel dimensions of 5815 * the raw buffers produced by this sensor, when it runs in maximum resolution mode. That 5816 * is, when ACAMERA_SENSOR_PIXEL_MODE is set to 5817 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>. 5818 * This key will only be present for devices which advertise the 5819 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 5820 * capability or devices where <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a> 5821 * lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE">ACAMERA_SENSOR_PIXEL_MODE</a></p> 5822 * 5823 * @see ACAMERA_SENSOR_INFO_PHYSICAL_SIZE 5824 * @see ACAMERA_SENSOR_PIXEL_MODE 5825 */ 5826 ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE_MAXIMUM_RESOLUTION = // int32[2] 5827 ACAMERA_SENSOR_INFO_START + 12, 5828 /** 5829 * <p>The area of the image sensor which corresponds to active pixels prior to the 5830 * application of any geometric distortion correction, when the sensor runs in maximum 5831 * resolution mode. This key must be used for crop / metering regions, only when 5832 * ACAMERA_SENSOR_PIXEL_MODE is set to 5833 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 5834 * 5835 * @see ACAMERA_SENSOR_PIXEL_MODE 5836 * 5837 * <p>Type: int32[4]</p> 5838 * 5839 * <p>This tag may appear in: 5840 * <ul> 5841 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5842 * </ul></p> 5843 * 5844 * <p>Analogous to ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, 5845 * when ACAMERA_SENSOR_PIXEL_MODE is set to 5846 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>. 5847 * This key will only be present for devices which advertise the 5848 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 5849 * capability or devices where <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a> 5850 * lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE">ACAMERA_SENSOR_PIXEL_MODE</a></p> 5851 * <p>The data representation is <code>int[4]</code>, which maps to <code>(left, top, width, height)</code>.</p> 5852 * 5853 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 5854 * @see ACAMERA_SENSOR_PIXEL_MODE 5855 */ 5856 ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION = 5857 // int32[4] 5858 ACAMERA_SENSOR_INFO_START + 13, 5859 /** 5860 * <p>Dimensions of the group of pixels which are under the same color filter. 5861 * This specifies the width and height (pair of integers) of the group of pixels which fall 5862 * under the same color filter for ULTRA_HIGH_RESOLUTION sensors.</p> 5863 * 5864 * <p>Type: int32[2]</p> 5865 * 5866 * <p>This tag may appear in: 5867 * <ul> 5868 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5869 * </ul></p> 5870 * 5871 * <p>Sensors can have pixels grouped together under the same color filter in order 5872 * to improve various aspects of imaging such as noise reduction, low light 5873 * performance etc. These groups can be of various sizes such as 2X2 (quad bayer), 5874 * 3X3 (nona-bayer). This key specifies the length and width of the pixels grouped under 5875 * the same color filter. 5876 * In case the device has the 5877 * <a href="https://developer.android.com/reference/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 5878 * capability :</p> 5879 * <ul> 5880 * <li>This key will not be present if REMOSAIC_REPROCESSING is not supported, since RAW 5881 * images will have a regular bayer pattern.</li> 5882 * </ul> 5883 * <p>In case the device does not have the 5884 * <a href="https://developer.android.com/reference/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR</a> 5885 * capability :</p> 5886 * <ul> 5887 * <li>This key will be present if 5888 * <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a> 5889 * lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE">ACAMERA_SENSOR_PIXEL_MODE</a>, since RAW 5890 * images may not necessarily have a regular bayer pattern when 5891 * <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE">ACAMERA_SENSOR_PIXEL_MODE</a> is set to 5892 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</li> 5893 * </ul> 5894 * 5895 * @see ACAMERA_SENSOR_PIXEL_MODE 5896 */ 5897 ACAMERA_SENSOR_INFO_BINNING_FACTOR = // int32[2] 5898 ACAMERA_SENSOR_INFO_START + 14, 5899 ACAMERA_SENSOR_INFO_END, 5900 5901 /** 5902 * <p>Quality of lens shading correction applied 5903 * to the image data.</p> 5904 * 5905 * <p>Type: byte (acamera_metadata_enum_android_shading_mode_t)</p> 5906 * 5907 * <p>This tag may appear in: 5908 * <ul> 5909 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5910 * <li>ACaptureRequest</li> 5911 * </ul></p> 5912 * 5913 * <p>When set to OFF mode, no lens shading correction will be applied by the 5914 * camera device, and an identity lens shading map data will be provided 5915 * if <code>ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE == ON</code>. For example, for lens 5916 * shading map with size of <code>[ 4, 3 ]</code>, 5917 * the output android.statistics.lensShadingCorrectionMap for this case will be an identity 5918 * map shown below:</p> 5919 * <pre><code>[ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 5920 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 5921 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 5922 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 5923 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 5924 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] 5925 * </code></pre> 5926 * <p>When set to other modes, lens shading correction will be applied by the camera 5927 * device. Applications can request lens shading map data by setting 5928 * ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE to ON, and then the camera device will provide lens 5929 * shading map data in android.statistics.lensShadingCorrectionMap; the returned shading map 5930 * data will be the one applied by the camera device for this capture request.</p> 5931 * <p>The shading map data may depend on the auto-exposure (AE) and AWB statistics, therefore 5932 * the reliability of the map data may be affected by the AE and AWB algorithms. When AE and 5933 * AWB are in AUTO modes(ACAMERA_CONTROL_AE_MODE <code>!=</code> OFF and ACAMERA_CONTROL_AWB_MODE <code>!=</code> 5934 * OFF), to get best results, it is recommended that the applications wait for the AE and AWB 5935 * to be converged before using the returned shading map data.</p> 5936 * 5937 * @see ACAMERA_CONTROL_AE_MODE 5938 * @see ACAMERA_CONTROL_AWB_MODE 5939 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE 5940 */ 5941 ACAMERA_SHADING_MODE = // byte (acamera_metadata_enum_android_shading_mode_t) 5942 ACAMERA_SHADING_START, 5943 /** 5944 * <p>List of lens shading modes for ACAMERA_SHADING_MODE that are supported by this camera device.</p> 5945 * 5946 * @see ACAMERA_SHADING_MODE 5947 * 5948 * <p>Type: byte[n]</p> 5949 * 5950 * <p>This tag may appear in: 5951 * <ul> 5952 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 5953 * </ul></p> 5954 * 5955 * <p>This list contains lens shading modes that can be set for the camera device. 5956 * Camera devices that support the MANUAL_POST_PROCESSING capability will always 5957 * list OFF and FAST mode. This includes all FULL level devices. 5958 * LEGACY devices will always only support FAST mode.</p> 5959 */ 5960 ACAMERA_SHADING_AVAILABLE_MODES = // byte[n] 5961 ACAMERA_SHADING_START + 2, 5962 ACAMERA_SHADING_END, 5963 5964 /** 5965 * <p>Operating mode for the face detector 5966 * unit.</p> 5967 * 5968 * <p>Type: byte (acamera_metadata_enum_android_statistics_face_detect_mode_t)</p> 5969 * 5970 * <p>This tag may appear in: 5971 * <ul> 5972 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5973 * <li>ACaptureRequest</li> 5974 * </ul></p> 5975 * 5976 * <p>Whether face detection is enabled, and whether it 5977 * should output just the basic fields or the full set of 5978 * fields.</p> 5979 */ 5980 ACAMERA_STATISTICS_FACE_DETECT_MODE = // byte (acamera_metadata_enum_android_statistics_face_detect_mode_t) 5981 ACAMERA_STATISTICS_START, 5982 /** 5983 * <p>Operating mode for hot pixel map generation.</p> 5984 * 5985 * <p>Type: byte (acamera_metadata_enum_android_statistics_hot_pixel_map_mode_t)</p> 5986 * 5987 * <p>This tag may appear in: 5988 * <ul> 5989 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 5990 * <li>ACaptureRequest</li> 5991 * </ul></p> 5992 * 5993 * <p>If set to <code>true</code>, a hot pixel map is returned in ACAMERA_STATISTICS_HOT_PIXEL_MAP. 5994 * If set to <code>false</code>, no hot pixel map will be returned.</p> 5995 * 5996 * @see ACAMERA_STATISTICS_HOT_PIXEL_MAP 5997 */ 5998 ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE = // byte (acamera_metadata_enum_android_statistics_hot_pixel_map_mode_t) 5999 ACAMERA_STATISTICS_START + 3, 6000 /** 6001 * <p>List of unique IDs for detected faces.</p> 6002 * 6003 * <p>Type: int32[n]</p> 6004 * 6005 * <p>This tag may appear in: 6006 * <ul> 6007 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6008 * </ul></p> 6009 * 6010 * <p>Each detected face is given a unique ID that is valid for as long as the face is visible 6011 * to the camera device. A face that leaves the field of view and later returns may be 6012 * assigned a new ID.</p> 6013 * <p>Only available if ACAMERA_STATISTICS_FACE_DETECT_MODE == FULL</p> 6014 * 6015 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 6016 */ 6017 ACAMERA_STATISTICS_FACE_IDS = // int32[n] 6018 ACAMERA_STATISTICS_START + 4, 6019 /** 6020 * <p>List of landmarks for detected 6021 * faces.</p> 6022 * 6023 * <p>Type: int32[n*6]</p> 6024 * 6025 * <p>This tag may appear in: 6026 * <ul> 6027 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6028 * </ul></p> 6029 * 6030 * <p>For devices not supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate 6031 * system always follows that of ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with <code>(0, 0)</code> being 6032 * the top-left pixel of the active array.</p> 6033 * <p>For devices supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate 6034 * system depends on the mode being set. 6035 * When the distortion correction mode is OFF, the coordinate system follows 6036 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, with 6037 * <code>(0, 0)</code> being the top-left pixel of the pre-correction active array. 6038 * When the distortion correction mode is not OFF, the coordinate system follows 6039 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with 6040 * <code>(0, 0)</code> being the top-left pixel of the active array.</p> 6041 * <p>Only available if ACAMERA_STATISTICS_FACE_DETECT_MODE == FULL.</p> 6042 * <p>Starting from API level 30, the coordinate system of activeArraySize or 6043 * preCorrectionActiveArraySize is used to represent post-zoomRatio field of view, not 6044 * pre-zoomRatio field of view. This means that if the relative position of faces and 6045 * the camera device doesn't change, when zooming in by increasing 6046 * ACAMERA_CONTROL_ZOOM_RATIO, the face landmarks move farther away from the center of the 6047 * activeArray or preCorrectionActiveArray. If ACAMERA_CONTROL_ZOOM_RATIO is set to 1.0 6048 * (default), the face landmarks coordinates won't change as ACAMERA_SCALER_CROP_REGION 6049 * changes. See ACAMERA_CONTROL_ZOOM_RATIO for details. Whether to use activeArraySize or 6050 * preCorrectionActiveArraySize still depends on distortion correction mode.</p> 6051 * 6052 * @see ACAMERA_CONTROL_ZOOM_RATIO 6053 * @see ACAMERA_DISTORTION_CORRECTION_MODE 6054 * @see ACAMERA_SCALER_CROP_REGION 6055 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 6056 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 6057 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 6058 */ 6059 ACAMERA_STATISTICS_FACE_LANDMARKS = // int32[n*6] 6060 ACAMERA_STATISTICS_START + 5, 6061 /** 6062 * <p>List of the bounding rectangles for detected 6063 * faces.</p> 6064 * 6065 * <p>Type: int32[n*4]</p> 6066 * 6067 * <p>This tag may appear in: 6068 * <ul> 6069 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6070 * </ul></p> 6071 * 6072 * <p>For devices not supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate 6073 * system always follows that of ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with <code>(0, 0)</code> being 6074 * the top-left pixel of the active array.</p> 6075 * <p>For devices supporting ACAMERA_DISTORTION_CORRECTION_MODE control, the coordinate 6076 * system depends on the mode being set. 6077 * When the distortion correction mode is OFF, the coordinate system follows 6078 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, with 6079 * <code>(0, 0)</code> being the top-left pixel of the pre-correction active array. 6080 * When the distortion correction mode is not OFF, the coordinate system follows 6081 * ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE, with 6082 * <code>(0, 0)</code> being the top-left pixel of the active array.</p> 6083 * <p>Only available if ACAMERA_STATISTICS_FACE_DETECT_MODE != OFF.</p> 6084 * <p>Starting from API level 30, the coordinate system of activeArraySize or 6085 * preCorrectionActiveArraySize is used to represent post-zoomRatio field of view, not 6086 * pre-zoomRatio field of view. This means that if the relative position of faces and 6087 * the camera device doesn't change, when zooming in by increasing 6088 * ACAMERA_CONTROL_ZOOM_RATIO, the face rectangles grow larger and move farther away from 6089 * the center of the activeArray or preCorrectionActiveArray. If ACAMERA_CONTROL_ZOOM_RATIO 6090 * is set to 1.0 (default), the face rectangles won't change as ACAMERA_SCALER_CROP_REGION 6091 * changes. See ACAMERA_CONTROL_ZOOM_RATIO for details. Whether to use activeArraySize or 6092 * preCorrectionActiveArraySize still depends on distortion correction mode.</p> 6093 * <p>The data representation is <code>int[4]</code>, which maps to <code>(left, top, right, bottom)</code>.</p> 6094 * 6095 * @see ACAMERA_CONTROL_ZOOM_RATIO 6096 * @see ACAMERA_DISTORTION_CORRECTION_MODE 6097 * @see ACAMERA_SCALER_CROP_REGION 6098 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 6099 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 6100 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 6101 */ 6102 ACAMERA_STATISTICS_FACE_RECTANGLES = // int32[n*4] 6103 ACAMERA_STATISTICS_START + 6, 6104 /** 6105 * <p>List of the face confidence scores for 6106 * detected faces</p> 6107 * 6108 * <p>Type: byte[n]</p> 6109 * 6110 * <p>This tag may appear in: 6111 * <ul> 6112 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6113 * </ul></p> 6114 * 6115 * <p>Only available if ACAMERA_STATISTICS_FACE_DETECT_MODE != OFF.</p> 6116 * 6117 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 6118 */ 6119 ACAMERA_STATISTICS_FACE_SCORES = // byte[n] 6120 ACAMERA_STATISTICS_START + 7, 6121 /** 6122 * <p>The shading map is a low-resolution floating-point map 6123 * that lists the coefficients used to correct for vignetting and color shading, 6124 * for each Bayer color channel of RAW image data.</p> 6125 * 6126 * <p>Type: float[4*n*m]</p> 6127 * 6128 * <p>This tag may appear in: 6129 * <ul> 6130 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6131 * </ul></p> 6132 * 6133 * <p>The map provided here is the same map that is used by the camera device to 6134 * correct both color shading and vignetting for output non-RAW images.</p> 6135 * <p>When there is no lens shading correction applied to RAW 6136 * output images (ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED <code>==</code> 6137 * false), this map is the complete lens shading correction 6138 * map; when there is some lens shading correction applied to 6139 * the RAW output image (ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED<code>==</code> true), this map reports the remaining lens shading 6140 * correction map that needs to be applied to get shading 6141 * corrected images that match the camera device's output for 6142 * non-RAW formats.</p> 6143 * <p>For a complete shading correction map, the least shaded 6144 * section of the image will have a gain factor of 1; all 6145 * other sections will have gains above 1.</p> 6146 * <p>When ACAMERA_COLOR_CORRECTION_MODE = TRANSFORM_MATRIX, the map 6147 * will take into account the colorCorrection settings.</p> 6148 * <p>The shading map is for the entire active pixel array, and is not 6149 * affected by the crop region specified in the request. Each shading map 6150 * entry is the value of the shading compensation map over a specific 6151 * pixel on the sensor. Specifically, with a (N x M) resolution shading 6152 * map, and an active pixel array size (W x H), shading map entry 6153 * (x,y) ϵ (0 ... N-1, 0 ... M-1) is the value of the shading map at 6154 * pixel ( ((W-1)/(N-1)) * x, ((H-1)/(M-1)) * y) for the four color channels. 6155 * The map is assumed to be bilinearly interpolated between the sample points.</p> 6156 * <p>For a Bayer camera, the channel order is [R, Geven, Godd, B], where Geven is 6157 * the green channel for the even rows of a Bayer pattern, and Godd is the odd rows. 6158 * The shading map is stored in a fully interleaved format, and its size 6159 * is provided in the camera static metadata by ACAMERA_LENS_INFO_SHADING_MAP_SIZE.</p> 6160 * <p>The shading map will generally have on the order of 30-40 rows and columns, 6161 * and will be smaller than 64x64.</p> 6162 * <p>As an example, given a very small map for a Bayer camera defined as:</p> 6163 * <pre><code>ACAMERA_LENS_INFO_SHADING_MAP_SIZE = [ 4, 3 ] 6164 * ACAMERA_STATISTICS_LENS_SHADING_MAP = 6165 * [ 1.3, 1.2, 1.15, 1.2, 1.2, 1.2, 1.15, 1.2, 6166 * 1.1, 1.2, 1.2, 1.2, 1.3, 1.2, 1.3, 1.3, 6167 * 1.2, 1.2, 1.25, 1.1, 1.1, 1.1, 1.1, 1.0, 6168 * 1.0, 1.0, 1.0, 1.0, 1.2, 1.3, 1.25, 1.2, 6169 * 1.3, 1.2, 1.2, 1.3, 1.2, 1.15, 1.1, 1.2, 6170 * 1.2, 1.1, 1.0, 1.2, 1.3, 1.15, 1.2, 1.3 ] 6171 * </code></pre> 6172 * <p>The low-resolution scaling map images for each channel are 6173 * (displayed using nearest-neighbor interpolation):</p> 6174 * <p><img alt="Red lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png" /> 6175 * <img alt="Green (even rows) lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png" /> 6176 * <img alt="Green (odd rows) lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png" /> 6177 * <img alt="Blue lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png" /></p> 6178 * <p>As a visualization only, inverting the full-color map to recover an 6179 * image of a gray wall (using bicubic interpolation for visual quality) 6180 * as captured by the sensor gives:</p> 6181 * <p><img alt="Image of a uniform white wall (inverse shading map)" src="../images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png" /></p> 6182 * <p>For a MONOCHROME camera, all of the 2x2 channels must have the same values. An example 6183 * shading map for such a camera is defined as:</p> 6184 * <pre><code>ACAMERA_LENS_INFO_SHADING_MAP_SIZE = [ 4, 3 ] 6185 * ACAMERA_STATISTICS_LENS_SHADING_MAP = 6186 * [ 1.3, 1.3, 1.3, 1.3, 1.2, 1.2, 1.2, 1.2, 6187 * 1.1, 1.1, 1.1, 1.1, 1.3, 1.3, 1.3, 1.3, 6188 * 1.2, 1.2, 1.2, 1.2, 1.1, 1.1, 1.1, 1.1, 6189 * 1.0, 1.0, 1.0, 1.0, 1.2, 1.2, 1.2, 1.2, 6190 * 1.3, 1.3, 1.3, 1.3, 1.2, 1.2, 1.2, 1.2, 6191 * 1.2, 1.2, 1.2, 1.2, 1.3, 1.3, 1.3, 1.3 ] 6192 * </code></pre> 6193 * <p>Note that the RAW image data might be subject to lens shading 6194 * correction not reported on this map. Query 6195 * ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED to see if RAW image data has subject 6196 * to lens shading correction. If ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED 6197 * is TRUE, the RAW image data is subject to partial or full lens shading 6198 * correction. In the case full lens shading correction is applied to RAW 6199 * images, the gain factor map reported in this key will contain all 1.0 gains. 6200 * In other words, the map reported in this key is the remaining lens shading 6201 * that needs to be applied on the RAW image to get images without lens shading 6202 * artifacts. See android.request.maxNumOutputRaw for a list of RAW image 6203 * formats.</p> 6204 * 6205 * @see ACAMERA_COLOR_CORRECTION_MODE 6206 * @see ACAMERA_LENS_INFO_SHADING_MAP_SIZE 6207 * @see ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED 6208 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP 6209 */ 6210 ACAMERA_STATISTICS_LENS_SHADING_MAP = // float[4*n*m] 6211 ACAMERA_STATISTICS_START + 11, 6212 /** 6213 * <p>The camera device estimated scene illumination lighting 6214 * frequency.</p> 6215 * 6216 * <p>Type: byte (acamera_metadata_enum_android_statistics_scene_flicker_t)</p> 6217 * 6218 * <p>This tag may appear in: 6219 * <ul> 6220 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6221 * </ul></p> 6222 * 6223 * <p>Many light sources, such as most fluorescent lights, flicker at a rate 6224 * that depends on the local utility power standards. This flicker must be 6225 * accounted for by auto-exposure routines to avoid artifacts in captured images. 6226 * The camera device uses this entry to tell the application what the scene 6227 * illuminant frequency is.</p> 6228 * <p>When manual exposure control is enabled 6229 * (<code>ACAMERA_CONTROL_AE_MODE == OFF</code> or <code>ACAMERA_CONTROL_MODE == 6230 * OFF</code>), the ACAMERA_CONTROL_AE_ANTIBANDING_MODE doesn't perform 6231 * antibanding, and the application can ensure it selects 6232 * exposure times that do not cause banding issues by looking 6233 * into this metadata field. See 6234 * ACAMERA_CONTROL_AE_ANTIBANDING_MODE for more details.</p> 6235 * <p>Reports NONE if there doesn't appear to be flickering illumination.</p> 6236 * 6237 * @see ACAMERA_CONTROL_AE_ANTIBANDING_MODE 6238 * @see ACAMERA_CONTROL_AE_MODE 6239 * @see ACAMERA_CONTROL_MODE 6240 */ 6241 ACAMERA_STATISTICS_SCENE_FLICKER = // byte (acamera_metadata_enum_android_statistics_scene_flicker_t) 6242 ACAMERA_STATISTICS_START + 14, 6243 /** 6244 * <p>List of <code>(x, y)</code> coordinates of hot/defective pixels on the sensor.</p> 6245 * 6246 * <p>Type: int32[2*n]</p> 6247 * 6248 * <p>This tag may appear in: 6249 * <ul> 6250 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6251 * </ul></p> 6252 * 6253 * <p>A coordinate <code>(x, y)</code> must lie between <code>(0, 0)</code>, and 6254 * <code>(width - 1, height - 1)</code> (inclusive), which are the top-left and 6255 * bottom-right of the pixel array, respectively. The width and 6256 * height dimensions are given in ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE. 6257 * This may include hot pixels that lie outside of the active array 6258 * bounds given by ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE.</p> 6259 * 6260 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 6261 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 6262 */ 6263 ACAMERA_STATISTICS_HOT_PIXEL_MAP = // int32[2*n] 6264 ACAMERA_STATISTICS_START + 15, 6265 /** 6266 * <p>Whether the camera device will output the lens 6267 * shading map in output result metadata.</p> 6268 * 6269 * <p>Type: byte (acamera_metadata_enum_android_statistics_lens_shading_map_mode_t)</p> 6270 * 6271 * <p>This tag may appear in: 6272 * <ul> 6273 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6274 * <li>ACaptureRequest</li> 6275 * </ul></p> 6276 * 6277 * <p>When set to ON, 6278 * ACAMERA_STATISTICS_LENS_SHADING_MAP will be provided in 6279 * the output result metadata.</p> 6280 * <p>ON is always supported on devices with the RAW capability.</p> 6281 * 6282 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP 6283 */ 6284 ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE = // byte (acamera_metadata_enum_android_statistics_lens_shading_map_mode_t) 6285 ACAMERA_STATISTICS_START + 16, 6286 /** 6287 * <p>A control for selecting whether optical stabilization (OIS) position 6288 * information is included in output result metadata.</p> 6289 * 6290 * <p>Type: byte (acamera_metadata_enum_android_statistics_ois_data_mode_t)</p> 6291 * 6292 * <p>This tag may appear in: 6293 * <ul> 6294 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6295 * <li>ACaptureRequest</li> 6296 * </ul></p> 6297 * 6298 * <p>Since optical image stabilization generally involves motion much faster than the duration 6299 * of individual image exposure, multiple OIS samples can be included for a single capture 6300 * result. For example, if the OIS reporting operates at 200 Hz, a typical camera operating 6301 * at 30fps may have 6-7 OIS samples per capture result. This information can be combined 6302 * with the rolling shutter skew to account for lens motion during image exposure in 6303 * post-processing algorithms.</p> 6304 */ 6305 ACAMERA_STATISTICS_OIS_DATA_MODE = // byte (acamera_metadata_enum_android_statistics_ois_data_mode_t) 6306 ACAMERA_STATISTICS_START + 17, 6307 /** 6308 * <p>An array of timestamps of OIS samples, in nanoseconds.</p> 6309 * 6310 * <p>Type: int64[n]</p> 6311 * 6312 * <p>This tag may appear in: 6313 * <ul> 6314 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6315 * </ul></p> 6316 * 6317 * <p>The array contains the timestamps of OIS samples. The timestamps are in the same 6318 * timebase as and comparable to ACAMERA_SENSOR_TIMESTAMP.</p> 6319 * 6320 * @see ACAMERA_SENSOR_TIMESTAMP 6321 */ 6322 ACAMERA_STATISTICS_OIS_TIMESTAMPS = // int64[n] 6323 ACAMERA_STATISTICS_START + 18, 6324 /** 6325 * <p>An array of shifts of OIS samples, in x direction.</p> 6326 * 6327 * <p>Type: float[n]</p> 6328 * 6329 * <p>This tag may appear in: 6330 * <ul> 6331 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6332 * </ul></p> 6333 * 6334 * <p>The array contains the amount of shifts in x direction, in pixels, based on OIS samples. 6335 * A positive value is a shift from left to right in the pre-correction active array 6336 * coordinate system. For example, if the optical center is (1000, 500) in pre-correction 6337 * active array coordinates, a shift of (3, 0) puts the new optical center at (1003, 500).</p> 6338 * <p>The number of shifts must match the number of timestamps in 6339 * ACAMERA_STATISTICS_OIS_TIMESTAMPS.</p> 6340 * <p>The OIS samples are not affected by whether lens distortion correction is enabled (on 6341 * supporting devices). They are always reported in pre-correction active array coordinates, 6342 * since the scaling of OIS shifts would depend on the specific spot on the sensor the shift 6343 * is needed.</p> 6344 * 6345 * @see ACAMERA_STATISTICS_OIS_TIMESTAMPS 6346 */ 6347 ACAMERA_STATISTICS_OIS_X_SHIFTS = // float[n] 6348 ACAMERA_STATISTICS_START + 19, 6349 /** 6350 * <p>An array of shifts of OIS samples, in y direction.</p> 6351 * 6352 * <p>Type: float[n]</p> 6353 * 6354 * <p>This tag may appear in: 6355 * <ul> 6356 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6357 * </ul></p> 6358 * 6359 * <p>The array contains the amount of shifts in y direction, in pixels, based on OIS samples. 6360 * A positive value is a shift from top to bottom in pre-correction active array coordinate 6361 * system. For example, if the optical center is (1000, 500) in active array coordinates, a 6362 * shift of (0, 5) puts the new optical center at (1000, 505).</p> 6363 * <p>The number of shifts must match the number of timestamps in 6364 * ACAMERA_STATISTICS_OIS_TIMESTAMPS.</p> 6365 * <p>The OIS samples are not affected by whether lens distortion correction is enabled (on 6366 * supporting devices). They are always reported in pre-correction active array coordinates, 6367 * since the scaling of OIS shifts would depend on the specific spot on the sensor the shift 6368 * is needed.</p> 6369 * 6370 * @see ACAMERA_STATISTICS_OIS_TIMESTAMPS 6371 */ 6372 ACAMERA_STATISTICS_OIS_Y_SHIFTS = // float[n] 6373 ACAMERA_STATISTICS_START + 20, 6374 ACAMERA_STATISTICS_END, 6375 6376 /** 6377 * <p>List of face detection modes for ACAMERA_STATISTICS_FACE_DETECT_MODE that are 6378 * supported by this camera device.</p> 6379 * 6380 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 6381 * 6382 * <p>Type: byte[n]</p> 6383 * 6384 * <p>This tag may appear in: 6385 * <ul> 6386 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6387 * </ul></p> 6388 * 6389 * <p>OFF is always supported.</p> 6390 */ 6391 ACAMERA_STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES = // byte[n] 6392 ACAMERA_STATISTICS_INFO_START, 6393 /** 6394 * <p>The maximum number of simultaneously detectable 6395 * faces.</p> 6396 * 6397 * <p>Type: int32</p> 6398 * 6399 * <p>This tag may appear in: 6400 * <ul> 6401 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6402 * </ul></p> 6403 * 6404 */ 6405 ACAMERA_STATISTICS_INFO_MAX_FACE_COUNT = // int32 6406 ACAMERA_STATISTICS_INFO_START + 2, 6407 /** 6408 * <p>List of hot pixel map output modes for ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE that are 6409 * supported by this camera device.</p> 6410 * 6411 * @see ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE 6412 * 6413 * <p>Type: byte[n]</p> 6414 * 6415 * <p>This tag may appear in: 6416 * <ul> 6417 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6418 * </ul></p> 6419 * 6420 * <p>If no hotpixel map output is available for this camera device, this will contain only 6421 * <code>false</code>.</p> 6422 * <p>ON is always supported on devices with the RAW capability.</p> 6423 */ 6424 ACAMERA_STATISTICS_INFO_AVAILABLE_HOT_PIXEL_MAP_MODES = // byte[n] 6425 ACAMERA_STATISTICS_INFO_START + 6, 6426 /** 6427 * <p>List of lens shading map output modes for ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE that 6428 * are supported by this camera device.</p> 6429 * 6430 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE 6431 * 6432 * <p>Type: byte[n]</p> 6433 * 6434 * <p>This tag may appear in: 6435 * <ul> 6436 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6437 * </ul></p> 6438 * 6439 * <p>If no lens shading map output is available for this camera device, this key will 6440 * contain only OFF.</p> 6441 * <p>ON is always supported on devices with the RAW capability. 6442 * LEGACY mode devices will always only support OFF.</p> 6443 */ 6444 ACAMERA_STATISTICS_INFO_AVAILABLE_LENS_SHADING_MAP_MODES = // byte[n] 6445 ACAMERA_STATISTICS_INFO_START + 7, 6446 /** 6447 * <p>List of OIS data output modes for ACAMERA_STATISTICS_OIS_DATA_MODE that 6448 * are supported by this camera device.</p> 6449 * 6450 * @see ACAMERA_STATISTICS_OIS_DATA_MODE 6451 * 6452 * <p>Type: byte[n]</p> 6453 * 6454 * <p>This tag may appear in: 6455 * <ul> 6456 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6457 * </ul></p> 6458 * 6459 * <p>If no OIS data output is available for this camera device, this key will 6460 * contain only OFF.</p> 6461 */ 6462 ACAMERA_STATISTICS_INFO_AVAILABLE_OIS_DATA_MODES = // byte[n] 6463 ACAMERA_STATISTICS_INFO_START + 8, 6464 ACAMERA_STATISTICS_INFO_END, 6465 6466 /** 6467 * <p>Tonemapping / contrast / gamma curve for the blue 6468 * channel, to use when ACAMERA_TONEMAP_MODE is 6469 * CONTRAST_CURVE.</p> 6470 * 6471 * @see ACAMERA_TONEMAP_MODE 6472 * 6473 * <p>Type: float[n*2]</p> 6474 * 6475 * <p>This tag may appear in: 6476 * <ul> 6477 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6478 * <li>ACaptureRequest</li> 6479 * </ul></p> 6480 * 6481 * <p>See ACAMERA_TONEMAP_CURVE_RED for more details.</p> 6482 * 6483 * @see ACAMERA_TONEMAP_CURVE_RED 6484 */ 6485 ACAMERA_TONEMAP_CURVE_BLUE = // float[n*2] 6486 ACAMERA_TONEMAP_START, 6487 /** 6488 * <p>Tonemapping / contrast / gamma curve for the green 6489 * channel, to use when ACAMERA_TONEMAP_MODE is 6490 * CONTRAST_CURVE.</p> 6491 * 6492 * @see ACAMERA_TONEMAP_MODE 6493 * 6494 * <p>Type: float[n*2]</p> 6495 * 6496 * <p>This tag may appear in: 6497 * <ul> 6498 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6499 * <li>ACaptureRequest</li> 6500 * </ul></p> 6501 * 6502 * <p>See ACAMERA_TONEMAP_CURVE_RED for more details.</p> 6503 * 6504 * @see ACAMERA_TONEMAP_CURVE_RED 6505 */ 6506 ACAMERA_TONEMAP_CURVE_GREEN = // float[n*2] 6507 ACAMERA_TONEMAP_START + 1, 6508 /** 6509 * <p>Tonemapping / contrast / gamma curve for the red 6510 * channel, to use when ACAMERA_TONEMAP_MODE is 6511 * CONTRAST_CURVE.</p> 6512 * 6513 * @see ACAMERA_TONEMAP_MODE 6514 * 6515 * <p>Type: float[n*2]</p> 6516 * 6517 * <p>This tag may appear in: 6518 * <ul> 6519 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6520 * <li>ACaptureRequest</li> 6521 * </ul></p> 6522 * 6523 * <p>Each channel's curve is defined by an array of control points:</p> 6524 * <pre><code>ACAMERA_TONEMAP_CURVE_RED = 6525 * [ P0in, P0out, P1in, P1out, P2in, P2out, P3in, P3out, ..., PNin, PNout ] 6526 * 2 <= N <= ACAMERA_TONEMAP_MAX_CURVE_POINTS</code></pre> 6527 * <p>These are sorted in order of increasing <code>Pin</code>; it is 6528 * required that input values 0.0 and 1.0 are included in the list to 6529 * define a complete mapping. For input values between control points, 6530 * the camera device must linearly interpolate between the control 6531 * points.</p> 6532 * <p>Each curve can have an independent number of points, and the number 6533 * of points can be less than max (that is, the request doesn't have to 6534 * always provide a curve with number of points equivalent to 6535 * ACAMERA_TONEMAP_MAX_CURVE_POINTS).</p> 6536 * <p>For devices with MONOCHROME capability, all three channels must have the same set of 6537 * control points.</p> 6538 * <p>A few examples, and their corresponding graphical mappings; these 6539 * only specify the red channel and the precision is limited to 4 6540 * digits, for conciseness.</p> 6541 * <p>Linear mapping:</p> 6542 * <pre><code>ACAMERA_TONEMAP_CURVE_RED = [ 0, 0, 1.0, 1.0 ] 6543 * </code></pre> 6544 * <p><img alt="Linear mapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png" /></p> 6545 * <p>Invert mapping:</p> 6546 * <pre><code>ACAMERA_TONEMAP_CURVE_RED = [ 0, 1.0, 1.0, 0 ] 6547 * </code></pre> 6548 * <p><img alt="Inverting mapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png" /></p> 6549 * <p>Gamma 1/2.2 mapping, with 16 control points:</p> 6550 * <pre><code>ACAMERA_TONEMAP_CURVE_RED = [ 6551 * 0.0000, 0.0000, 0.0667, 0.2920, 0.1333, 0.4002, 0.2000, 0.4812, 6552 * 0.2667, 0.5484, 0.3333, 0.6069, 0.4000, 0.6594, 0.4667, 0.7072, 6553 * 0.5333, 0.7515, 0.6000, 0.7928, 0.6667, 0.8317, 0.7333, 0.8685, 6554 * 0.8000, 0.9035, 0.8667, 0.9370, 0.9333, 0.9691, 1.0000, 1.0000 ] 6555 * </code></pre> 6556 * <p><img alt="Gamma = 1/2.2 tonemapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png" /></p> 6557 * <p>Standard sRGB gamma mapping, per IEC 61966-2-1:1999, with 16 control points:</p> 6558 * <pre><code>ACAMERA_TONEMAP_CURVE_RED = [ 6559 * 0.0000, 0.0000, 0.0667, 0.2864, 0.1333, 0.4007, 0.2000, 0.4845, 6560 * 0.2667, 0.5532, 0.3333, 0.6125, 0.4000, 0.6652, 0.4667, 0.7130, 6561 * 0.5333, 0.7569, 0.6000, 0.7977, 0.6667, 0.8360, 0.7333, 0.8721, 6562 * 0.8000, 0.9063, 0.8667, 0.9389, 0.9333, 0.9701, 1.0000, 1.0000 ] 6563 * </code></pre> 6564 * <p><img alt="sRGB tonemapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png" /></p> 6565 * 6566 * @see ACAMERA_TONEMAP_CURVE_RED 6567 * @see ACAMERA_TONEMAP_MAX_CURVE_POINTS 6568 */ 6569 ACAMERA_TONEMAP_CURVE_RED = // float[n*2] 6570 ACAMERA_TONEMAP_START + 2, 6571 /** 6572 * <p>High-level global contrast/gamma/tonemapping control.</p> 6573 * 6574 * <p>Type: byte (acamera_metadata_enum_android_tonemap_mode_t)</p> 6575 * 6576 * <p>This tag may appear in: 6577 * <ul> 6578 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6579 * <li>ACaptureRequest</li> 6580 * </ul></p> 6581 * 6582 * <p>When switching to an application-defined contrast curve by setting 6583 * ACAMERA_TONEMAP_MODE to CONTRAST_CURVE, the curve is defined 6584 * per-channel with a set of <code>(in, out)</code> points that specify the 6585 * mapping from input high-bit-depth pixel value to the output 6586 * low-bit-depth value. Since the actual pixel ranges of both input 6587 * and output may change depending on the camera pipeline, the values 6588 * are specified by normalized floating-point numbers.</p> 6589 * <p>More-complex color mapping operations such as 3D color look-up 6590 * tables, selective chroma enhancement, or other non-linear color 6591 * transforms will be disabled when ACAMERA_TONEMAP_MODE is 6592 * CONTRAST_CURVE.</p> 6593 * <p>When using either FAST or HIGH_QUALITY, the camera device will 6594 * emit its own tonemap curve in android.tonemap.curve. 6595 * These values are always available, and as close as possible to the 6596 * actually used nonlinear/nonglobal transforms.</p> 6597 * <p>If a request is sent with CONTRAST_CURVE with the camera device's 6598 * provided curve in FAST or HIGH_QUALITY, the image's tonemap will be 6599 * roughly the same.</p> 6600 * 6601 * @see ACAMERA_TONEMAP_MODE 6602 */ 6603 ACAMERA_TONEMAP_MODE = // byte (acamera_metadata_enum_android_tonemap_mode_t) 6604 ACAMERA_TONEMAP_START + 3, 6605 /** 6606 * <p>Maximum number of supported points in the 6607 * tonemap curve that can be used for android.tonemap.curve.</p> 6608 * 6609 * <p>Type: int32</p> 6610 * 6611 * <p>This tag may appear in: 6612 * <ul> 6613 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6614 * </ul></p> 6615 * 6616 * <p>If the actual number of points provided by the application (in ACAMERA_TONEMAPCURVE_*) is 6617 * less than this maximum, the camera device will resample the curve to its internal 6618 * representation, using linear interpolation.</p> 6619 * <p>The output curves in the result metadata may have a different number 6620 * of points than the input curves, and will represent the actual 6621 * hardware curves used as closely as possible when linearly interpolated.</p> 6622 */ 6623 ACAMERA_TONEMAP_MAX_CURVE_POINTS = // int32 6624 ACAMERA_TONEMAP_START + 4, 6625 /** 6626 * <p>List of tonemapping modes for ACAMERA_TONEMAP_MODE that are supported by this camera 6627 * device.</p> 6628 * 6629 * @see ACAMERA_TONEMAP_MODE 6630 * 6631 * <p>Type: byte[n]</p> 6632 * 6633 * <p>This tag may appear in: 6634 * <ul> 6635 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6636 * </ul></p> 6637 * 6638 * <p>Camera devices that support the MANUAL_POST_PROCESSING capability will always contain 6639 * at least one of below mode combinations:</p> 6640 * <ul> 6641 * <li>CONTRAST_CURVE, FAST and HIGH_QUALITY</li> 6642 * <li>GAMMA_VALUE, PRESET_CURVE, FAST and HIGH_QUALITY</li> 6643 * </ul> 6644 * <p>This includes all FULL level devices.</p> 6645 */ 6646 ACAMERA_TONEMAP_AVAILABLE_TONE_MAP_MODES = // byte[n] 6647 ACAMERA_TONEMAP_START + 5, 6648 /** 6649 * <p>Tonemapping curve to use when ACAMERA_TONEMAP_MODE is 6650 * GAMMA_VALUE</p> 6651 * 6652 * @see ACAMERA_TONEMAP_MODE 6653 * 6654 * <p>Type: float</p> 6655 * 6656 * <p>This tag may appear in: 6657 * <ul> 6658 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6659 * <li>ACaptureRequest</li> 6660 * </ul></p> 6661 * 6662 * <p>The tonemap curve will be defined the following formula:</p> 6663 * <ul> 6664 * <li>OUT = pow(IN, 1.0 / gamma)</li> 6665 * </ul> 6666 * <p>where IN and OUT is the input pixel value scaled to range [0.0, 1.0], 6667 * pow is the power function and gamma is the gamma value specified by this 6668 * key.</p> 6669 * <p>The same curve will be applied to all color channels. The camera device 6670 * may clip the input gamma value to its supported range. The actual applied 6671 * value will be returned in capture result.</p> 6672 * <p>The valid range of gamma value varies on different devices, but values 6673 * within [1.0, 5.0] are guaranteed not to be clipped.</p> 6674 */ 6675 ACAMERA_TONEMAP_GAMMA = // float 6676 ACAMERA_TONEMAP_START + 6, 6677 /** 6678 * <p>Tonemapping curve to use when ACAMERA_TONEMAP_MODE is 6679 * PRESET_CURVE</p> 6680 * 6681 * @see ACAMERA_TONEMAP_MODE 6682 * 6683 * <p>Type: byte (acamera_metadata_enum_android_tonemap_preset_curve_t)</p> 6684 * 6685 * <p>This tag may appear in: 6686 * <ul> 6687 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6688 * <li>ACaptureRequest</li> 6689 * </ul></p> 6690 * 6691 * <p>The tonemap curve will be defined by specified standard.</p> 6692 * <p>sRGB (approximated by 16 control points):</p> 6693 * <p><img alt="sRGB tonemapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png" /></p> 6694 * <p>Rec. 709 (approximated by 16 control points):</p> 6695 * <p><img alt="Rec. 709 tonemapping curve" src="../images/camera2/metadata/android.tonemap.curveRed/rec709_tonemap.png" /></p> 6696 * <p>Note that above figures show a 16 control points approximation of preset 6697 * curves. Camera devices may apply a different approximation to the curve.</p> 6698 */ 6699 ACAMERA_TONEMAP_PRESET_CURVE = // byte (acamera_metadata_enum_android_tonemap_preset_curve_t) 6700 ACAMERA_TONEMAP_START + 7, 6701 ACAMERA_TONEMAP_END, 6702 6703 /** 6704 * <p>Generally classifies the overall set of the camera device functionality.</p> 6705 * 6706 * <p>Type: byte (acamera_metadata_enum_android_info_supported_hardware_level_t)</p> 6707 * 6708 * <p>This tag may appear in: 6709 * <ul> 6710 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6711 * </ul></p> 6712 * 6713 * <p>The supported hardware level is a high-level description of the camera device's 6714 * capabilities, summarizing several capabilities into one field. Each level adds additional 6715 * features to the previous one, and is always a strict superset of the previous level. 6716 * The ordering is <code>LEGACY < LIMITED < FULL < LEVEL_3</code>.</p> 6717 * <p>Starting from <code>LEVEL_3</code>, the level enumerations are guaranteed to be in increasing 6718 * numerical value as well. To check if a given device is at least at a given hardware level, 6719 * the following code snippet can be used:</p> 6720 * <pre><code>// Returns true if the device supports the required hardware level, or better. 6721 * boolean isHardwareLevelSupported(CameraCharacteristics c, int requiredLevel) { 6722 * final int[] sortedHwLevels = { 6723 * CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY, 6724 * CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL, 6725 * CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED, 6726 * CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_FULL, 6727 * CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_3 6728 * }; 6729 * int deviceLevel = c.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); 6730 * if (requiredLevel == deviceLevel) { 6731 * return true; 6732 * } 6733 * 6734 * for (int sortedlevel : sortedHwLevels) { 6735 * if (sortedlevel == requiredLevel) { 6736 * return true; 6737 * } else if (sortedlevel == deviceLevel) { 6738 * return false; 6739 * } 6740 * } 6741 * return false; // Should never reach here 6742 * } 6743 * </code></pre> 6744 * <p>At a high level, the levels are:</p> 6745 * <ul> 6746 * <li><code>LEGACY</code> devices operate in a backwards-compatibility mode for older 6747 * Android devices, and have very limited capabilities.</li> 6748 * <li><code>LIMITED</code> devices represent the 6749 * baseline feature set, and may also include additional capabilities that are 6750 * subsets of <code>FULL</code>.</li> 6751 * <li><code>FULL</code> devices additionally support per-frame manual control of sensor, flash, lens and 6752 * post-processing settings, and image capture at a high rate.</li> 6753 * <li><code>LEVEL_3</code> devices additionally support YUV reprocessing and RAW image capture, along 6754 * with additional output stream configurations.</li> 6755 * <li><code>EXTERNAL</code> devices are similar to <code>LIMITED</code> devices with exceptions like some sensor or 6756 * lens information not reported or less stable framerates.</li> 6757 * </ul> 6758 * <p>See the individual level enums for full descriptions of the supported capabilities. The 6759 * ACAMERA_REQUEST_AVAILABLE_CAPABILITIES entry describes the device's capabilities at a 6760 * finer-grain level, if needed. In addition, many controls have their available settings or 6761 * ranges defined in individual entries from {@link ACameraManager_getCameraCharacteristics }.</p> 6762 * <p>Some features are not part of any particular hardware level or capability and must be 6763 * queried separately. These include:</p> 6764 * <ul> 6765 * <li>Calibrated timestamps (ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE <code>==</code> REALTIME)</li> 6766 * <li>Precision lens control (ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION <code>==</code> CALIBRATED)</li> 6767 * <li>Face detection (ACAMERA_STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES)</li> 6768 * <li>Optical or electrical image stabilization 6769 * (ACAMERA_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION, 6770 * ACAMERA_CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES)</li> 6771 * </ul> 6772 * 6773 * @see ACAMERA_CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES 6774 * @see ACAMERA_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION 6775 * @see ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION 6776 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 6777 * @see ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE 6778 * @see ACAMERA_STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES 6779 */ 6780 ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL = // byte (acamera_metadata_enum_android_info_supported_hardware_level_t) 6781 ACAMERA_INFO_START, 6782 /** 6783 * <p>A short string for manufacturer version information about the camera device, such as 6784 * ISP hardware, sensors, etc.</p> 6785 * 6786 * <p>Type: byte</p> 6787 * 6788 * <p>This tag may appear in: 6789 * <ul> 6790 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6791 * </ul></p> 6792 * 6793 * <p>This can be used in <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_IMAGE_DESCRIPTION">TAG_IMAGE_DESCRIPTION</a> 6794 * in jpeg EXIF. This key may be absent if no version information is available on the 6795 * device.</p> 6796 */ 6797 ACAMERA_INFO_VERSION = // byte 6798 ACAMERA_INFO_START + 1, 6799 /** 6800 * 6801 * <p>Type: int64[2*n]</p> 6802 * 6803 * <p>This tag may appear in: 6804 * <ul> 6805 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6806 * </ul></p> 6807 * 6808 * <p>HAL must populate the array with 6809 * (hardware::camera::provider::V2_5::DeviceState, sensorOrientation) pairs for each 6810 * supported device state bitwise combination.</p> 6811 */ 6812 ACAMERA_INFO_DEVICE_STATE_ORIENTATIONS = // int64[2*n] 6813 ACAMERA_INFO_START + 3, 6814 ACAMERA_INFO_END, 6815 6816 /** 6817 * <p>Whether black-level compensation is locked 6818 * to its current values, or is free to vary.</p> 6819 * 6820 * <p>Type: byte (acamera_metadata_enum_android_black_level_lock_t)</p> 6821 * 6822 * <p>This tag may appear in: 6823 * <ul> 6824 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6825 * <li>ACaptureRequest</li> 6826 * </ul></p> 6827 * 6828 * <p>Whether the black level offset was locked for this frame. Should be 6829 * ON if ACAMERA_BLACK_LEVEL_LOCK was ON in the capture request, unless 6830 * a change in other capture settings forced the camera device to 6831 * perform a black level reset.</p> 6832 * 6833 * @see ACAMERA_BLACK_LEVEL_LOCK 6834 */ 6835 ACAMERA_BLACK_LEVEL_LOCK = // byte (acamera_metadata_enum_android_black_level_lock_t) 6836 ACAMERA_BLACK_LEVEL_START, 6837 ACAMERA_BLACK_LEVEL_END, 6838 6839 /** 6840 * <p>The frame number corresponding to the last request 6841 * with which the output result (metadata + buffers) has been fully 6842 * synchronized.</p> 6843 * 6844 * <p>Type: int64 (acamera_metadata_enum_android_sync_frame_number_t)</p> 6845 * 6846 * <p>This tag may appear in: 6847 * <ul> 6848 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 6849 * </ul></p> 6850 * 6851 * <p>When a request is submitted to the camera device, there is usually a 6852 * delay of several frames before the controls get applied. A camera 6853 * device may either choose to account for this delay by implementing a 6854 * pipeline and carefully submit well-timed atomic control updates, or 6855 * it may start streaming control changes that span over several frame 6856 * boundaries.</p> 6857 * <p>In the latter case, whenever a request's settings change relative to 6858 * the previous submitted request, the full set of changes may take 6859 * multiple frame durations to fully take effect. Some settings may 6860 * take effect sooner (in less frame durations) than others.</p> 6861 * <p>While a set of control changes are being propagated, this value 6862 * will be CONVERGING.</p> 6863 * <p>Once it is fully known that a set of control changes have been 6864 * finished propagating, and the resulting updated control settings 6865 * have been read back by the camera device, this value will be set 6866 * to a non-negative frame number (corresponding to the request to 6867 * which the results have synchronized to).</p> 6868 * <p>Older camera device implementations may not have a way to detect 6869 * when all camera controls have been applied, and will always set this 6870 * value to UNKNOWN.</p> 6871 * <p>FULL capability devices will always have this value set to the 6872 * frame number of the request corresponding to this result.</p> 6873 * <p><em>Further details</em>:</p> 6874 * <ul> 6875 * <li>Whenever a request differs from the last request, any future 6876 * results not yet returned may have this value set to CONVERGING (this 6877 * could include any in-progress captures not yet returned by the camera 6878 * device, for more details see pipeline considerations below).</li> 6879 * <li>Submitting a series of multiple requests that differ from the 6880 * previous request (e.g. r1, r2, r3 s.t. r1 != r2 != r3) 6881 * moves the new synchronization frame to the last non-repeating 6882 * request (using the smallest frame number from the contiguous list of 6883 * repeating requests).</li> 6884 * <li>Submitting the same request repeatedly will not change this value 6885 * to CONVERGING, if it was already a non-negative value.</li> 6886 * <li>When this value changes to non-negative, that means that all of the 6887 * metadata controls from the request have been applied, all of the 6888 * metadata controls from the camera device have been read to the 6889 * updated values (into the result), and all of the graphics buffers 6890 * corresponding to this result are also synchronized to the request.</li> 6891 * </ul> 6892 * <p><em>Pipeline considerations</em>:</p> 6893 * <p>Submitting a request with updated controls relative to the previously 6894 * submitted requests may also invalidate the synchronization state 6895 * of all the results corresponding to currently in-flight requests.</p> 6896 * <p>In other words, results for this current request and up to 6897 * ACAMERA_REQUEST_PIPELINE_MAX_DEPTH prior requests may have their 6898 * ACAMERA_SYNC_FRAME_NUMBER change to CONVERGING.</p> 6899 * 6900 * @see ACAMERA_REQUEST_PIPELINE_MAX_DEPTH 6901 * @see ACAMERA_SYNC_FRAME_NUMBER 6902 */ 6903 ACAMERA_SYNC_FRAME_NUMBER = // int64 (acamera_metadata_enum_android_sync_frame_number_t) 6904 ACAMERA_SYNC_START, 6905 /** 6906 * <p>The maximum number of frames that can occur after a request 6907 * (different than the previous) has been submitted, and before the 6908 * result's state becomes synchronized.</p> 6909 * 6910 * <p>Type: int32 (acamera_metadata_enum_android_sync_max_latency_t)</p> 6911 * 6912 * <p>This tag may appear in: 6913 * <ul> 6914 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6915 * </ul></p> 6916 * 6917 * <p>This defines the maximum distance (in number of metadata results), 6918 * between the frame number of the request that has new controls to apply 6919 * and the frame number of the result that has all the controls applied.</p> 6920 * <p>In other words this acts as an upper boundary for how many frames 6921 * must occur before the camera device knows for a fact that the new 6922 * submitted camera settings have been applied in outgoing frames.</p> 6923 */ 6924 ACAMERA_SYNC_MAX_LATENCY = // int32 (acamera_metadata_enum_android_sync_max_latency_t) 6925 ACAMERA_SYNC_START + 1, 6926 ACAMERA_SYNC_END, 6927 6928 /** 6929 * <p>The available depth dataspace stream 6930 * configurations that this camera device supports 6931 * (i.e. format, width, height, output/input stream).</p> 6932 * 6933 * <p>Type: int32[n*4] (acamera_metadata_enum_android_depth_available_depth_stream_configurations_t)</p> 6934 * 6935 * <p>This tag may appear in: 6936 * <ul> 6937 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6938 * </ul></p> 6939 * 6940 * <p>These are output stream configurations for use with 6941 * dataSpace HAL_DATASPACE_DEPTH. The configurations are 6942 * listed as <code>(format, width, height, input?)</code> tuples.</p> 6943 * <p>Only devices that support depth output for at least 6944 * the HAL_PIXEL_FORMAT_Y16 dense depth map may include 6945 * this entry.</p> 6946 * <p>A device that also supports the HAL_PIXEL_FORMAT_BLOB 6947 * sparse depth point cloud must report a single entry for 6948 * the format in this list as <code>(HAL_PIXEL_FORMAT_BLOB, 6949 * android.depth.maxDepthSamples, 1, OUTPUT)</code> in addition to 6950 * the entries for HAL_PIXEL_FORMAT_Y16.</p> 6951 */ 6952 ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS = // int32[n*4] (acamera_metadata_enum_android_depth_available_depth_stream_configurations_t) 6953 ACAMERA_DEPTH_START + 1, 6954 /** 6955 * <p>This lists the minimum frame duration for each 6956 * format/size combination for depth output formats.</p> 6957 * 6958 * <p>Type: int64[4*n]</p> 6959 * 6960 * <p>This tag may appear in: 6961 * <ul> 6962 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6963 * </ul></p> 6964 * 6965 * <p>This should correspond to the frame duration when only that 6966 * stream is active, with all processing (typically in android.*.mode) 6967 * set to either OFF or FAST.</p> 6968 * <p>When multiple streams are used in a request, the minimum frame 6969 * duration will be max(individual stream min durations).</p> 6970 * <p>The minimum frame duration of a stream (of a particular format, size) 6971 * is the same regardless of whether the stream is input or output.</p> 6972 * <p>See ACAMERA_SENSOR_FRAME_DURATION and 6973 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS for more details about 6974 * calculating the max frame rate.</p> 6975 * 6976 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS 6977 * @see ACAMERA_SENSOR_FRAME_DURATION 6978 */ 6979 ACAMERA_DEPTH_AVAILABLE_DEPTH_MIN_FRAME_DURATIONS = // int64[4*n] 6980 ACAMERA_DEPTH_START + 2, 6981 /** 6982 * <p>This lists the maximum stall duration for each 6983 * output format/size combination for depth streams.</p> 6984 * 6985 * <p>Type: int64[4*n]</p> 6986 * 6987 * <p>This tag may appear in: 6988 * <ul> 6989 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 6990 * </ul></p> 6991 * 6992 * <p>A stall duration is how much extra time would get added 6993 * to the normal minimum frame duration for a repeating request 6994 * that has streams with non-zero stall.</p> 6995 * <p>This functions similarly to 6996 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS for depth 6997 * streams.</p> 6998 * <p>All depth output stream formats may have a nonzero stall 6999 * duration.</p> 7000 * 7001 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS 7002 */ 7003 ACAMERA_DEPTH_AVAILABLE_DEPTH_STALL_DURATIONS = // int64[4*n] 7004 ACAMERA_DEPTH_START + 3, 7005 /** 7006 * <p>Indicates whether a capture request may target both a 7007 * DEPTH16 / DEPTH_POINT_CLOUD output, and normal color outputs (such as 7008 * YUV_420_888, JPEG, or RAW) simultaneously.</p> 7009 * 7010 * <p>Type: byte (acamera_metadata_enum_android_depth_depth_is_exclusive_t)</p> 7011 * 7012 * <p>This tag may appear in: 7013 * <ul> 7014 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7015 * </ul></p> 7016 * 7017 * <p>If TRUE, including both depth and color outputs in a single 7018 * capture request is not supported. An application must interleave color 7019 * and depth requests. If FALSE, a single request can target both types 7020 * of output.</p> 7021 * <p>Typically, this restriction exists on camera devices that 7022 * need to emit a specific pattern or wavelength of light to 7023 * measure depth values, which causes the color image to be 7024 * corrupted during depth measurement.</p> 7025 */ 7026 ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE = // byte (acamera_metadata_enum_android_depth_depth_is_exclusive_t) 7027 ACAMERA_DEPTH_START + 4, 7028 /** 7029 * <p>Recommended depth stream configurations for common client use cases.</p> 7030 * 7031 * <p>Type: int32[n*5]</p> 7032 * 7033 * <p>This tag may appear in: 7034 * <ul> 7035 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7036 * </ul></p> 7037 * 7038 * <p>Optional subset of the ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS that 7039 * contains similar tuples listed as 7040 * (i.e. width, height, format, output/input stream, usecase bit field). 7041 * Camera devices will be able to suggest particular depth stream configurations which are 7042 * power and performance efficient for specific use cases. For more information about 7043 * retrieving the suggestions see 7044 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getRecommendedStreamConfigurationMap">CameraCharacteristics#getRecommendedStreamConfigurationMap</a>.</p> 7045 * <p>For data representation please refer to 7046 * ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS</p> 7047 * 7048 * @see ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS 7049 * @see ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS 7050 */ 7051 ACAMERA_DEPTH_AVAILABLE_RECOMMENDED_DEPTH_STREAM_CONFIGURATIONS = 7052 // int32[n*5] 7053 ACAMERA_DEPTH_START + 5, 7054 /** 7055 * <p>The available dynamic depth dataspace stream 7056 * configurations that this camera device supports 7057 * (i.e. format, width, height, output/input stream).</p> 7058 * 7059 * <p>Type: int32[n*4] (acamera_metadata_enum_android_depth_available_dynamic_depth_stream_configurations_t)</p> 7060 * 7061 * <p>This tag may appear in: 7062 * <ul> 7063 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7064 * </ul></p> 7065 * 7066 * <p>These are output stream configurations for use with 7067 * dataSpace DYNAMIC_DEPTH. The configurations are 7068 * listed as <code>(format, width, height, input?)</code> tuples.</p> 7069 * <p>Only devices that support depth output for at least 7070 * the HAL_PIXEL_FORMAT_Y16 dense depth map along with 7071 * HAL_PIXEL_FORMAT_BLOB with the same size or size with 7072 * the same aspect ratio can have dynamic depth dataspace 7073 * stream configuration. ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE also 7074 * needs to be set to FALSE.</p> 7075 * 7076 * @see ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE 7077 */ 7078 ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS = 7079 // int32[n*4] (acamera_metadata_enum_android_depth_available_dynamic_depth_stream_configurations_t) 7080 ACAMERA_DEPTH_START + 6, 7081 /** 7082 * <p>This lists the minimum frame duration for each 7083 * format/size combination for dynamic depth output streams.</p> 7084 * 7085 * <p>Type: int64[4*n]</p> 7086 * 7087 * <p>This tag may appear in: 7088 * <ul> 7089 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7090 * </ul></p> 7091 * 7092 * <p>This should correspond to the frame duration when only that 7093 * stream is active, with all processing (typically in android.*.mode) 7094 * set to either OFF or FAST.</p> 7095 * <p>When multiple streams are used in a request, the minimum frame 7096 * duration will be max(individual stream min durations).</p> 7097 * <p>The minimum frame duration of a stream (of a particular format, size) 7098 * is the same regardless of whether the stream is input or output.</p> 7099 */ 7100 ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_MIN_FRAME_DURATIONS = // int64[4*n] 7101 ACAMERA_DEPTH_START + 7, 7102 /** 7103 * <p>This lists the maximum stall duration for each 7104 * output format/size combination for dynamic depth streams.</p> 7105 * 7106 * <p>Type: int64[4*n]</p> 7107 * 7108 * <p>This tag may appear in: 7109 * <ul> 7110 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7111 * </ul></p> 7112 * 7113 * <p>A stall duration is how much extra time would get added 7114 * to the normal minimum frame duration for a repeating request 7115 * that has streams with non-zero stall.</p> 7116 * <p>All dynamic depth output streams may have a nonzero stall 7117 * duration.</p> 7118 */ 7119 ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STALL_DURATIONS = // int64[4*n] 7120 ACAMERA_DEPTH_START + 8, 7121 /** 7122 * <p>The available depth dataspace stream 7123 * configurations that this camera device supports 7124 * (i.e. format, width, height, output/input stream) when a CaptureRequest is submitted with 7125 * ACAMERA_SENSOR_PIXEL_MODE set to 7126 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7127 * 7128 * @see ACAMERA_SENSOR_PIXEL_MODE 7129 * 7130 * <p>Type: int32[n*4] (acamera_metadata_enum_android_depth_available_depth_stream_configurations_maximum_resolution_t)</p> 7131 * 7132 * <p>This tag may appear in: 7133 * <ul> 7134 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7135 * </ul></p> 7136 * 7137 * <p>Analogous to ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS, for configurations which 7138 * are applicable when ACAMERA_SENSOR_PIXEL_MODE is set to 7139 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7140 * 7141 * @see ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS 7142 * @see ACAMERA_SENSOR_PIXEL_MODE 7143 */ 7144 ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION = 7145 // int32[n*4] (acamera_metadata_enum_android_depth_available_depth_stream_configurations_maximum_resolution_t) 7146 ACAMERA_DEPTH_START + 9, 7147 /** 7148 * <p>This lists the minimum frame duration for each 7149 * format/size combination for depth output formats when a CaptureRequest is submitted with 7150 * ACAMERA_SENSOR_PIXEL_MODE set to 7151 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7152 * 7153 * @see ACAMERA_SENSOR_PIXEL_MODE 7154 * 7155 * <p>Type: int64[4*n]</p> 7156 * 7157 * <p>This tag may appear in: 7158 * <ul> 7159 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7160 * </ul></p> 7161 * 7162 * <p>Analogous to ACAMERA_DEPTH_AVAILABLE_DEPTH_MIN_FRAME_DURATIONS, for configurations which 7163 * are applicable when ACAMERA_SENSOR_PIXEL_MODE is set to 7164 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7165 * <p>See ACAMERA_SENSOR_FRAME_DURATION and 7166 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS_MAXIMUM_RESOLUTION for more details about 7167 * calculating the max frame rate.</p> 7168 * 7169 * @see ACAMERA_DEPTH_AVAILABLE_DEPTH_MIN_FRAME_DURATIONS 7170 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS_MAXIMUM_RESOLUTION 7171 * @see ACAMERA_SENSOR_FRAME_DURATION 7172 * @see ACAMERA_SENSOR_PIXEL_MODE 7173 */ 7174 ACAMERA_DEPTH_AVAILABLE_DEPTH_MIN_FRAME_DURATIONS_MAXIMUM_RESOLUTION = 7175 // int64[4*n] 7176 ACAMERA_DEPTH_START + 10, 7177 /** 7178 * <p>This lists the maximum stall duration for each 7179 * output format/size combination for depth streams for CaptureRequests where 7180 * ACAMERA_SENSOR_PIXEL_MODE is set to 7181 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7182 * 7183 * @see ACAMERA_SENSOR_PIXEL_MODE 7184 * 7185 * <p>Type: int64[4*n]</p> 7186 * 7187 * <p>This tag may appear in: 7188 * <ul> 7189 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7190 * </ul></p> 7191 * 7192 * <p>Analogous to ACAMERA_DEPTH_AVAILABLE_DEPTH_STALL_DURATIONS, for configurations which 7193 * are applicable when ACAMERA_SENSOR_PIXEL_MODE is set to 7194 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7195 * 7196 * @see ACAMERA_DEPTH_AVAILABLE_DEPTH_STALL_DURATIONS 7197 * @see ACAMERA_SENSOR_PIXEL_MODE 7198 */ 7199 ACAMERA_DEPTH_AVAILABLE_DEPTH_STALL_DURATIONS_MAXIMUM_RESOLUTION = 7200 // int64[4*n] 7201 ACAMERA_DEPTH_START + 11, 7202 /** 7203 * <p>The available dynamic depth dataspace stream 7204 * configurations that this camera device supports (i.e. format, width, height, 7205 * output/input stream) for CaptureRequests where ACAMERA_SENSOR_PIXEL_MODE is set to 7206 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7207 * 7208 * @see ACAMERA_SENSOR_PIXEL_MODE 7209 * 7210 * <p>Type: int32[n*4] (acamera_metadata_enum_android_depth_available_dynamic_depth_stream_configurations_maximum_resolution_t)</p> 7211 * 7212 * <p>This tag may appear in: 7213 * <ul> 7214 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7215 * </ul></p> 7216 * 7217 * <p>Analogous to ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS, for configurations 7218 * which are applicable when ACAMERA_SENSOR_PIXEL_MODE is set to 7219 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7220 * 7221 * @see ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS 7222 * @see ACAMERA_SENSOR_PIXEL_MODE 7223 */ 7224 ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION = 7225 // int32[n*4] (acamera_metadata_enum_android_depth_available_dynamic_depth_stream_configurations_maximum_resolution_t) 7226 ACAMERA_DEPTH_START + 12, 7227 /** 7228 * <p>This lists the minimum frame duration for each 7229 * format/size combination for dynamic depth output streams for CaptureRequests where 7230 * ACAMERA_SENSOR_PIXEL_MODE is set to 7231 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7232 * 7233 * @see ACAMERA_SENSOR_PIXEL_MODE 7234 * 7235 * <p>Type: int64[4*n]</p> 7236 * 7237 * <p>This tag may appear in: 7238 * <ul> 7239 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7240 * </ul></p> 7241 * 7242 * <p>Analogous to ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_MIN_FRAME_DURATIONS, for configurations 7243 * which are applicable when ACAMERA_SENSOR_PIXEL_MODE is set to 7244 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7245 * 7246 * @see ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_MIN_FRAME_DURATIONS 7247 * @see ACAMERA_SENSOR_PIXEL_MODE 7248 */ 7249 ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_MIN_FRAME_DURATIONS_MAXIMUM_RESOLUTION = 7250 // int64[4*n] 7251 ACAMERA_DEPTH_START + 13, 7252 /** 7253 * <p>This lists the maximum stall duration for each 7254 * output format/size combination for dynamic depth streams for CaptureRequests where 7255 * ACAMERA_SENSOR_PIXEL_MODE is set to 7256 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7257 * 7258 * @see ACAMERA_SENSOR_PIXEL_MODE 7259 * 7260 * <p>Type: int64[4*n]</p> 7261 * 7262 * <p>This tag may appear in: 7263 * <ul> 7264 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7265 * </ul></p> 7266 * 7267 * <p>Analogous to ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STALL_DURATIONS, for configurations 7268 * which are applicable when ACAMERA_SENSOR_PIXEL_MODE is set to 7269 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7270 * 7271 * @see ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STALL_DURATIONS 7272 * @see ACAMERA_SENSOR_PIXEL_MODE 7273 */ 7274 ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STALL_DURATIONS_MAXIMUM_RESOLUTION = 7275 // int64[4*n] 7276 ACAMERA_DEPTH_START + 14, 7277 ACAMERA_DEPTH_END, 7278 7279 /** 7280 * <p>String containing the ids of the underlying physical cameras.</p> 7281 * 7282 * <p>Type: byte[n]</p> 7283 * 7284 * <p>This tag may appear in: 7285 * <ul> 7286 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7287 * </ul></p> 7288 * 7289 * <p>For a logical camera, this is concatenation of all underlying physical camera IDs. 7290 * The null terminator for physical camera ID must be preserved so that the whole string 7291 * can be tokenized using '\0' to generate list of physical camera IDs.</p> 7292 * <p>For example, if the physical camera IDs of the logical camera are "2" and "3", the 7293 * value of this tag will be ['2', '\0', '3', '\0'].</p> 7294 * <p>The number of physical camera IDs must be no less than 2.</p> 7295 */ 7296 ACAMERA_LOGICAL_MULTI_CAMERA_PHYSICAL_IDS = // byte[n] 7297 ACAMERA_LOGICAL_MULTI_CAMERA_START, 7298 /** 7299 * <p>The accuracy of frame timestamp synchronization between physical cameras</p> 7300 * 7301 * <p>Type: byte (acamera_metadata_enum_android_logical_multi_camera_sensor_sync_type_t)</p> 7302 * 7303 * <p>This tag may appear in: 7304 * <ul> 7305 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7306 * </ul></p> 7307 * 7308 * <p>The accuracy of the frame timestamp synchronization determines the physical cameras' 7309 * ability to start exposure at the same time. If the sensorSyncType is CALIBRATED, the 7310 * physical camera sensors usually run in leader/follower mode where one sensor generates a 7311 * timing signal for the other, so that their shutter time is synchronized. For APPROXIMATE 7312 * sensorSyncType, the camera sensors usually run in leader/leader mode, where both sensors 7313 * use their own timing generator, and there could be offset between their start of exposure.</p> 7314 * <p>In both cases, all images generated for a particular capture request still carry the same 7315 * timestamps, so that they can be used to look up the matching frame number and 7316 * onCaptureStarted callback.</p> 7317 * <p>This tag is only applicable if the logical camera device supports concurrent physical 7318 * streams from different physical cameras.</p> 7319 */ 7320 ACAMERA_LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE = // byte (acamera_metadata_enum_android_logical_multi_camera_sensor_sync_type_t) 7321 ACAMERA_LOGICAL_MULTI_CAMERA_START + 1, 7322 /** 7323 * <p>String containing the ID of the underlying active physical camera.</p> 7324 * 7325 * <p>Type: byte</p> 7326 * 7327 * <p>This tag may appear in: 7328 * <ul> 7329 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 7330 * </ul></p> 7331 * 7332 * <p>The ID of the active physical camera that's backing the logical camera. All camera 7333 * streams and metadata that are not physical camera specific will be originating from this 7334 * physical camera.</p> 7335 * <p>For a logical camera made up of physical cameras where each camera's lenses have 7336 * different characteristics, the camera device may choose to switch between the physical 7337 * cameras when application changes FOCAL_LENGTH or SCALER_CROP_REGION. 7338 * At the time of lens switch, this result metadata reflects the new active physical camera 7339 * ID.</p> 7340 * <p>This key will be available if the camera device advertises this key via {@link ACAMERA_REQUEST_AVAILABLE_RESULT_KEYS }. 7341 * When available, this must be one of valid physical IDs backing this logical multi-camera. 7342 * If this key is not available for a logical multi-camera, the camera device implementation 7343 * may still switch between different active physical cameras based on use case, but the 7344 * current active physical camera information won't be available to the application.</p> 7345 */ 7346 ACAMERA_LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID = // byte 7347 ACAMERA_LOGICAL_MULTI_CAMERA_START + 2, 7348 ACAMERA_LOGICAL_MULTI_CAMERA_END, 7349 7350 /** 7351 * <p>Mode of operation for the lens distortion correction block.</p> 7352 * 7353 * <p>Type: byte (acamera_metadata_enum_android_distortion_correction_mode_t)</p> 7354 * 7355 * <p>This tag may appear in: 7356 * <ul> 7357 * <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li> 7358 * <li>ACaptureRequest</li> 7359 * </ul></p> 7360 * 7361 * <p>The lens distortion correction block attempts to improve image quality by fixing 7362 * radial, tangential, or other geometric aberrations in the camera device's optics. If 7363 * available, the ACAMERA_LENS_DISTORTION field documents the lens's distortion parameters.</p> 7364 * <p>OFF means no distortion correction is done.</p> 7365 * <p>FAST/HIGH_QUALITY both mean camera device determined distortion correction will be 7366 * applied. HIGH_QUALITY mode indicates that the camera device will use the highest-quality 7367 * correction algorithms, even if it slows down capture rate. FAST means the camera device 7368 * will not slow down capture rate when applying correction. FAST may be the same as OFF if 7369 * any correction at all would slow down capture rate. Every output stream will have a 7370 * similar amount of enhancement applied.</p> 7371 * <p>The correction only applies to processed outputs such as YUV, Y8, JPEG, or DEPTH16; it is 7372 * not applied to any RAW output.</p> 7373 * <p>This control will be on by default on devices that support this control. Applications 7374 * disabling distortion correction need to pay extra attention with the coordinate system of 7375 * metering regions, crop region, and face rectangles. When distortion correction is OFF, 7376 * metadata coordinates follow the coordinate system of 7377 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE. When distortion is not OFF, metadata 7378 * coordinates follow the coordinate system of ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE. The 7379 * camera device will map these metadata fields to match the corrected image produced by the 7380 * camera device, for both capture requests and results. However, this mapping is not very 7381 * precise, since rectangles do not generally map to rectangles when corrected. Only linear 7382 * scaling between the active array and precorrection active array coordinates is 7383 * performed. Applications that require precise correction of metadata need to undo that 7384 * linear scaling, and apply a more complete correction that takes into the account the app's 7385 * own requirements.</p> 7386 * <p>The full list of metadata that is affected in this way by distortion correction is:</p> 7387 * <ul> 7388 * <li>ACAMERA_CONTROL_AF_REGIONS</li> 7389 * <li>ACAMERA_CONTROL_AE_REGIONS</li> 7390 * <li>ACAMERA_CONTROL_AWB_REGIONS</li> 7391 * <li>ACAMERA_SCALER_CROP_REGION</li> 7392 * <li>android.statistics.faces</li> 7393 * </ul> 7394 * 7395 * @see ACAMERA_CONTROL_AE_REGIONS 7396 * @see ACAMERA_CONTROL_AF_REGIONS 7397 * @see ACAMERA_CONTROL_AWB_REGIONS 7398 * @see ACAMERA_LENS_DISTORTION 7399 * @see ACAMERA_SCALER_CROP_REGION 7400 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 7401 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 7402 */ 7403 ACAMERA_DISTORTION_CORRECTION_MODE = // byte (acamera_metadata_enum_android_distortion_correction_mode_t) 7404 ACAMERA_DISTORTION_CORRECTION_START, 7405 /** 7406 * <p>List of distortion correction modes for ACAMERA_DISTORTION_CORRECTION_MODE that are 7407 * supported by this camera device.</p> 7408 * 7409 * @see ACAMERA_DISTORTION_CORRECTION_MODE 7410 * 7411 * <p>Type: byte[n]</p> 7412 * 7413 * <p>This tag may appear in: 7414 * <ul> 7415 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7416 * </ul></p> 7417 * 7418 * <p>No device is required to support this API; such devices will always list only 'OFF'. 7419 * All devices that support this API will list both FAST and HIGH_QUALITY.</p> 7420 */ 7421 ACAMERA_DISTORTION_CORRECTION_AVAILABLE_MODES = // byte[n] 7422 ACAMERA_DISTORTION_CORRECTION_START + 1, 7423 ACAMERA_DISTORTION_CORRECTION_END, 7424 7425 /** 7426 * <p>The available HEIC (ISO/IEC 23008-12) stream 7427 * configurations that this camera device supports 7428 * (i.e. format, width, height, output/input stream).</p> 7429 * 7430 * <p>Type: int32[n*4] (acamera_metadata_enum_android_heic_available_heic_stream_configurations_t)</p> 7431 * 7432 * <p>This tag may appear in: 7433 * <ul> 7434 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7435 * </ul></p> 7436 * 7437 * <p>The configurations are listed as <code>(format, width, height, input?)</code> tuples.</p> 7438 * <p>If the camera device supports HEIC image format, it will support identical set of stream 7439 * combinations involving HEIC image format, compared to the combinations involving JPEG 7440 * image format as required by the device's hardware level and capabilities.</p> 7441 * <p>All the static, control, and dynamic metadata tags related to JPEG apply to HEIC formats. 7442 * Configuring JPEG and HEIC streams at the same time is not supported.</p> 7443 * <p>All the configuration tuples <code>(format, width, height, input?)</code> will contain 7444 * AIMAGE_FORMAT_HEIC format as OUTPUT only.</p> 7445 */ 7446 ACAMERA_HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS = // int32[n*4] (acamera_metadata_enum_android_heic_available_heic_stream_configurations_t) 7447 ACAMERA_HEIC_START, 7448 /** 7449 * <p>This lists the minimum frame duration for each 7450 * format/size combination for HEIC output formats.</p> 7451 * 7452 * <p>Type: int64[4*n]</p> 7453 * 7454 * <p>This tag may appear in: 7455 * <ul> 7456 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7457 * </ul></p> 7458 * 7459 * <p>This should correspond to the frame duration when only that 7460 * stream is active, with all processing (typically in android.*.mode) 7461 * set to either OFF or FAST.</p> 7462 * <p>When multiple streams are used in a request, the minimum frame 7463 * duration will be max(individual stream min durations).</p> 7464 * <p>See ACAMERA_SENSOR_FRAME_DURATION and 7465 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS for more details about 7466 * calculating the max frame rate.</p> 7467 * 7468 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS 7469 * @see ACAMERA_SENSOR_FRAME_DURATION 7470 */ 7471 ACAMERA_HEIC_AVAILABLE_HEIC_MIN_FRAME_DURATIONS = // int64[4*n] 7472 ACAMERA_HEIC_START + 1, 7473 /** 7474 * <p>This lists the maximum stall duration for each 7475 * output format/size combination for HEIC streams.</p> 7476 * 7477 * <p>Type: int64[4*n]</p> 7478 * 7479 * <p>This tag may appear in: 7480 * <ul> 7481 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7482 * </ul></p> 7483 * 7484 * <p>A stall duration is how much extra time would get added 7485 * to the normal minimum frame duration for a repeating request 7486 * that has streams with non-zero stall.</p> 7487 * <p>This functions similarly to 7488 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS for HEIC 7489 * streams.</p> 7490 * <p>All HEIC output stream formats may have a nonzero stall 7491 * duration.</p> 7492 * 7493 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS 7494 */ 7495 ACAMERA_HEIC_AVAILABLE_HEIC_STALL_DURATIONS = // int64[4*n] 7496 ACAMERA_HEIC_START + 2, 7497 /** 7498 * <p>The available HEIC (ISO/IEC 23008-12) stream 7499 * configurations that this camera device supports 7500 * (i.e. format, width, height, output/input stream).</p> 7501 * 7502 * <p>Type: int32[n*4] (acamera_metadata_enum_android_heic_available_heic_stream_configurations_maximum_resolution_t)</p> 7503 * 7504 * <p>This tag may appear in: 7505 * <ul> 7506 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7507 * </ul></p> 7508 * 7509 * <p>Refer to ACAMERA_HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS for details.</p> 7510 * <p>All the configuration tuples <code>(format, width, height, input?)</code> will contain 7511 * AIMAGE_FORMAT_HEIC format as OUTPUT only.</p> 7512 * 7513 * @see ACAMERA_HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS 7514 */ 7515 ACAMERA_HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION = 7516 // int32[n*4] (acamera_metadata_enum_android_heic_available_heic_stream_configurations_maximum_resolution_t) 7517 ACAMERA_HEIC_START + 3, 7518 /** 7519 * <p>This lists the minimum frame duration for each 7520 * format/size combination for HEIC output formats for CaptureRequests where 7521 * ACAMERA_SENSOR_PIXEL_MODE is set to 7522 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7523 * 7524 * @see ACAMERA_SENSOR_PIXEL_MODE 7525 * 7526 * <p>Type: int64[4*n]</p> 7527 * 7528 * <p>This tag may appear in: 7529 * <ul> 7530 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7531 * </ul></p> 7532 * 7533 * <p>Refer to ACAMERA_HEIC_AVAILABLE_HEIC_MIN_FRAME_DURATIONS for details.</p> 7534 * 7535 * @see ACAMERA_HEIC_AVAILABLE_HEIC_MIN_FRAME_DURATIONS 7536 */ 7537 ACAMERA_HEIC_AVAILABLE_HEIC_MIN_FRAME_DURATIONS_MAXIMUM_RESOLUTION = 7538 // int64[4*n] 7539 ACAMERA_HEIC_START + 4, 7540 /** 7541 * <p>This lists the maximum stall duration for each 7542 * output format/size combination for HEIC streams for CaptureRequests where 7543 * ACAMERA_SENSOR_PIXEL_MODE is set to 7544 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7545 * 7546 * @see ACAMERA_SENSOR_PIXEL_MODE 7547 * 7548 * <p>Type: int64[4*n]</p> 7549 * 7550 * <p>This tag may appear in: 7551 * <ul> 7552 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7553 * </ul></p> 7554 * 7555 * <p>Refer to ACAMERA_HEIC_AVAILABLE_HEIC_STALL_DURATIONS for details.</p> 7556 * 7557 * @see ACAMERA_HEIC_AVAILABLE_HEIC_STALL_DURATIONS 7558 */ 7559 ACAMERA_HEIC_AVAILABLE_HEIC_STALL_DURATIONS_MAXIMUM_RESOLUTION = 7560 // int64[4*n] 7561 ACAMERA_HEIC_START + 5, 7562 ACAMERA_HEIC_END, 7563 7564 /** 7565 * <p>Location of the cameras on the automotive devices.</p> 7566 * 7567 * <p>Type: byte (acamera_metadata_enum_android_automotive_location_t)</p> 7568 * 7569 * <p>This tag may appear in: 7570 * <ul> 7571 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7572 * </ul></p> 7573 * 7574 * <p>This enum defines the locations of the cameras relative to the vehicle body frame on 7575 * <a href="https://source.android.com/devices/sensors/sensor-types#auto_axes">the automotive sensor coordinate system</a>. 7576 * If the system has FEATURE_AUTOMOTIVE, the camera will have this entry in its static 7577 * metadata.</p> 7578 * <ul> 7579 * <li>INTERIOR is the inside of the vehicle body frame (or the passenger cabin).</li> 7580 * <li>EXTERIOR is the outside of the vehicle body frame.</li> 7581 * <li>EXTRA is the extra vehicle such as a trailer.</li> 7582 * </ul> 7583 * <p>Each side of the vehicle body frame on this coordinate system is defined as below:</p> 7584 * <ul> 7585 * <li>FRONT is where the Y-axis increases toward.</li> 7586 * <li>REAR is where the Y-axis decreases toward.</li> 7587 * <li>LEFT is where the X-axis decreases toward.</li> 7588 * <li>RIGHT is where the X-axis increases toward.</li> 7589 * </ul> 7590 * <p>If the camera has either EXTERIOR_OTHER or EXTRA_OTHER, its static metadata will list 7591 * the following entries, so that applications can determine the camera's exact location:</p> 7592 * <ul> 7593 * <li>ACAMERA_LENS_POSE_REFERENCE</li> 7594 * <li>ACAMERA_LENS_POSE_ROTATION</li> 7595 * <li>ACAMERA_LENS_POSE_TRANSLATION</li> 7596 * </ul> 7597 * 7598 * @see ACAMERA_LENS_POSE_REFERENCE 7599 * @see ACAMERA_LENS_POSE_ROTATION 7600 * @see ACAMERA_LENS_POSE_TRANSLATION 7601 */ 7602 ACAMERA_AUTOMOTIVE_LOCATION = // byte (acamera_metadata_enum_android_automotive_location_t) 7603 ACAMERA_AUTOMOTIVE_START, 7604 ACAMERA_AUTOMOTIVE_END, 7605 7606 /** 7607 * <p>The direction of the camera faces relative to the vehicle body frame and the 7608 * passenger seats.</p> 7609 * 7610 * <p>Type: byte[n] (acamera_metadata_enum_android_automotive_lens_facing_t)</p> 7611 * 7612 * <p>This tag may appear in: 7613 * <ul> 7614 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7615 * </ul></p> 7616 * 7617 * <p>This enum defines the lens facing characteristic of the cameras on the automotive 7618 * devices with locations ACAMERA_AUTOMOTIVE_LOCATION defines. If the system has 7619 * FEATURE_AUTOMOTIVE, the camera will have this entry in its static metadata.</p> 7620 * <p>When ACAMERA_AUTOMOTIVE_LOCATION is INTERIOR, this has one or more INTERIOR_* 7621 * values or a single EXTERIOR_* value. When this has more than one INTERIOR_*, 7622 * the first value must be the one for the seat closest to the optical axis. If this 7623 * contains INTERIOR_OTHER, all other values will be ineffective.</p> 7624 * <p>When ACAMERA_AUTOMOTIVE_LOCATION is EXTERIOR_* or EXTRA, this has a single 7625 * EXTERIOR_* value.</p> 7626 * <p>If a camera has INTERIOR_OTHER or EXTERIOR_OTHER, or more than one camera is at the 7627 * same location and facing the same direction, their static metadata will list the 7628 * following entries, so that applications can determine their lenses' exact facing 7629 * directions:</p> 7630 * <ul> 7631 * <li>ACAMERA_LENS_POSE_REFERENCE</li> 7632 * <li>ACAMERA_LENS_POSE_ROTATION</li> 7633 * <li>ACAMERA_LENS_POSE_TRANSLATION</li> 7634 * </ul> 7635 * 7636 * @see ACAMERA_AUTOMOTIVE_LOCATION 7637 * @see ACAMERA_LENS_POSE_REFERENCE 7638 * @see ACAMERA_LENS_POSE_ROTATION 7639 * @see ACAMERA_LENS_POSE_TRANSLATION 7640 */ 7641 ACAMERA_AUTOMOTIVE_LENS_FACING = // byte[n] (acamera_metadata_enum_android_automotive_lens_facing_t) 7642 ACAMERA_AUTOMOTIVE_LENS_START, 7643 ACAMERA_AUTOMOTIVE_LENS_END, 7644 7645 /** 7646 * <p>The available Jpeg/R stream 7647 * configurations that this camera device supports 7648 * (i.e. format, width, height, output/input stream).</p> 7649 * 7650 * <p>Type: int32[n*4] (acamera_metadata_enum_android_jpegr_available_jpeg_r_stream_configurations_t)</p> 7651 * 7652 * <p>This tag may appear in: 7653 * <ul> 7654 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7655 * </ul></p> 7656 * 7657 * <p>The configurations are listed as <code>(format, width, height, input?)</code> tuples.</p> 7658 * <p>If the camera device supports Jpeg/R, it will support the same stream combinations with 7659 * Jpeg/R as it does with P010. The stream combinations with Jpeg/R (or P010) supported 7660 * by the device is determined by the device's hardware level and capabilities.</p> 7661 * <p>All the static, control, and dynamic metadata tags related to JPEG apply to Jpeg/R formats. 7662 * Configuring JPEG and Jpeg/R streams at the same time is not supported.</p> 7663 * <p>All the configuration tuples <code>(format, width, height, input?)</code> will contain 7664 * AIMAGE_FORMAT_JPEGR format as OUTPUT only.</p> 7665 */ 7666 ACAMERA_JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS = // int32[n*4] (acamera_metadata_enum_android_jpegr_available_jpeg_r_stream_configurations_t) 7667 ACAMERA_JPEGR_START, 7668 /** 7669 * <p>This lists the minimum frame duration for each 7670 * format/size combination for Jpeg/R output formats.</p> 7671 * 7672 * <p>Type: int64[4*n]</p> 7673 * 7674 * <p>This tag may appear in: 7675 * <ul> 7676 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7677 * </ul></p> 7678 * 7679 * <p>This should correspond to the frame duration when only that 7680 * stream is active, with all processing (typically in android.*.mode) 7681 * set to either OFF or FAST.</p> 7682 * <p>When multiple streams are used in a request, the minimum frame 7683 * duration will be max(individual stream min durations).</p> 7684 * <p>See ACAMERA_SENSOR_FRAME_DURATION and 7685 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS for more details about 7686 * calculating the max frame rate.</p> 7687 * 7688 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS 7689 * @see ACAMERA_SENSOR_FRAME_DURATION 7690 */ 7691 ACAMERA_JPEGR_AVAILABLE_JPEG_R_MIN_FRAME_DURATIONS = // int64[4*n] 7692 ACAMERA_JPEGR_START + 1, 7693 /** 7694 * <p>This lists the maximum stall duration for each 7695 * output format/size combination for Jpeg/R streams.</p> 7696 * 7697 * <p>Type: int64[4*n]</p> 7698 * 7699 * <p>This tag may appear in: 7700 * <ul> 7701 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7702 * </ul></p> 7703 * 7704 * <p>A stall duration is how much extra time would get added 7705 * to the normal minimum frame duration for a repeating request 7706 * that has streams with non-zero stall.</p> 7707 * <p>This functions similarly to 7708 * ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS for Jpeg/R 7709 * streams.</p> 7710 * <p>All Jpeg/R output stream formats may have a nonzero stall 7711 * duration.</p> 7712 * 7713 * @see ACAMERA_SCALER_AVAILABLE_STALL_DURATIONS 7714 */ 7715 ACAMERA_JPEGR_AVAILABLE_JPEG_R_STALL_DURATIONS = // int64[4*n] 7716 ACAMERA_JPEGR_START + 2, 7717 /** 7718 * <p>The available Jpeg/R stream 7719 * configurations that this camera device supports 7720 * (i.e. format, width, height, output/input stream).</p> 7721 * 7722 * <p>Type: int32[n*4] (acamera_metadata_enum_android_jpegr_available_jpeg_r_stream_configurations_maximum_resolution_t)</p> 7723 * 7724 * <p>This tag may appear in: 7725 * <ul> 7726 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7727 * </ul></p> 7728 * 7729 * <p>Refer to ACAMERA_JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS for details.</p> 7730 * <p>All the configuration tuples <code>(format, width, height, input?)</code> will contain 7731 * AIMAGE_FORMAT_JPEG_R format as OUTPUT only.</p> 7732 * 7733 * @see ACAMERA_JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS 7734 */ 7735 ACAMERA_JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION = 7736 // int32[n*4] (acamera_metadata_enum_android_jpegr_available_jpeg_r_stream_configurations_maximum_resolution_t) 7737 ACAMERA_JPEGR_START + 3, 7738 /** 7739 * <p>This lists the minimum frame duration for each 7740 * format/size combination for Jpeg/R output formats for CaptureRequests where 7741 * ACAMERA_SENSOR_PIXEL_MODE is set to 7742 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7743 * 7744 * @see ACAMERA_SENSOR_PIXEL_MODE 7745 * 7746 * <p>Type: int64[4*n]</p> 7747 * 7748 * <p>This tag may appear in: 7749 * <ul> 7750 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7751 * </ul></p> 7752 * 7753 * <p>Refer to ACAMERA_JPEGR_AVAILABLE_JPEG_R_MIN_FRAME_DURATIONS for details.</p> 7754 * 7755 * @see ACAMERA_JPEGR_AVAILABLE_JPEG_R_MIN_FRAME_DURATIONS 7756 */ 7757 ACAMERA_JPEGR_AVAILABLE_JPEG_R_MIN_FRAME_DURATIONS_MAXIMUM_RESOLUTION = 7758 // int64[4*n] 7759 ACAMERA_JPEGR_START + 4, 7760 /** 7761 * <p>This lists the maximum stall duration for each 7762 * output format/size combination for Jpeg/R streams for CaptureRequests where 7763 * ACAMERA_SENSOR_PIXEL_MODE is set to 7764 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION</a>.</p> 7765 * 7766 * @see ACAMERA_SENSOR_PIXEL_MODE 7767 * 7768 * <p>Type: int64[4*n]</p> 7769 * 7770 * <p>This tag may appear in: 7771 * <ul> 7772 * <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li> 7773 * </ul></p> 7774 * 7775 * <p>Refer to ACAMERA_JPEGR_AVAILABLE_JPEG_R_STALL_DURATIONS for details.</p> 7776 * 7777 * @see ACAMERA_JPEGR_AVAILABLE_JPEG_R_STALL_DURATIONS 7778 */ 7779 ACAMERA_JPEGR_AVAILABLE_JPEG_R_STALL_DURATIONS_MAXIMUM_RESOLUTION = 7780 // int64[4*n] 7781 ACAMERA_JPEGR_START + 5, 7782 ACAMERA_JPEGR_END, 7783 7784 } acamera_metadata_tag_t; 7785 7786 /** 7787 * Enumeration definitions for the various entries that need them 7788 */ 7789 7790 // ACAMERA_COLOR_CORRECTION_MODE 7791 typedef enum acamera_metadata_enum_acamera_color_correction_mode { 7792 /** 7793 * <p>Use the ACAMERA_COLOR_CORRECTION_TRANSFORM matrix 7794 * and ACAMERA_COLOR_CORRECTION_GAINS to do color conversion.</p> 7795 * <p>All advanced white balance adjustments (not specified 7796 * by our white balance pipeline) must be disabled.</p> 7797 * <p>If AWB is enabled with <code>ACAMERA_CONTROL_AWB_MODE != OFF</code>, then 7798 * TRANSFORM_MATRIX is ignored. The camera device will override 7799 * this value to either FAST or HIGH_QUALITY.</p> 7800 * 7801 * @see ACAMERA_COLOR_CORRECTION_GAINS 7802 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 7803 * @see ACAMERA_CONTROL_AWB_MODE 7804 */ 7805 ACAMERA_COLOR_CORRECTION_MODE_TRANSFORM_MATRIX = 0, 7806 7807 /** 7808 * <p>Color correction processing must not slow down 7809 * capture rate relative to sensor raw output.</p> 7810 * <p>Advanced white balance adjustments above and beyond 7811 * the specified white balance pipeline may be applied.</p> 7812 * <p>If AWB is enabled with <code>ACAMERA_CONTROL_AWB_MODE != OFF</code>, then 7813 * the camera device uses the last frame's AWB values 7814 * (or defaults if AWB has never been run).</p> 7815 * 7816 * @see ACAMERA_CONTROL_AWB_MODE 7817 */ 7818 ACAMERA_COLOR_CORRECTION_MODE_FAST = 1, 7819 7820 /** 7821 * <p>Color correction processing operates at improved 7822 * quality but the capture rate might be reduced (relative to sensor 7823 * raw output rate)</p> 7824 * <p>Advanced white balance adjustments above and beyond 7825 * the specified white balance pipeline may be applied.</p> 7826 * <p>If AWB is enabled with <code>ACAMERA_CONTROL_AWB_MODE != OFF</code>, then 7827 * the camera device uses the last frame's AWB values 7828 * (or defaults if AWB has never been run).</p> 7829 * 7830 * @see ACAMERA_CONTROL_AWB_MODE 7831 */ 7832 ACAMERA_COLOR_CORRECTION_MODE_HIGH_QUALITY = 2, 7833 7834 } acamera_metadata_enum_android_color_correction_mode_t; 7835 7836 // ACAMERA_COLOR_CORRECTION_ABERRATION_MODE 7837 typedef enum acamera_metadata_enum_acamera_color_correction_aberration_mode { 7838 /** 7839 * <p>No aberration correction is applied.</p> 7840 */ 7841 ACAMERA_COLOR_CORRECTION_ABERRATION_MODE_OFF = 0, 7842 7843 /** 7844 * <p>Aberration correction will not slow down capture rate 7845 * relative to sensor raw output.</p> 7846 */ 7847 ACAMERA_COLOR_CORRECTION_ABERRATION_MODE_FAST = 1, 7848 7849 /** 7850 * <p>Aberration correction operates at improved quality but the capture rate might be 7851 * reduced (relative to sensor raw output rate)</p> 7852 */ 7853 ACAMERA_COLOR_CORRECTION_ABERRATION_MODE_HIGH_QUALITY = 2, 7854 7855 } acamera_metadata_enum_android_color_correction_aberration_mode_t; 7856 7857 7858 // ACAMERA_CONTROL_AE_ANTIBANDING_MODE 7859 typedef enum acamera_metadata_enum_acamera_control_ae_antibanding_mode { 7860 /** 7861 * <p>The camera device will not adjust exposure duration to 7862 * avoid banding problems.</p> 7863 */ 7864 ACAMERA_CONTROL_AE_ANTIBANDING_MODE_OFF = 0, 7865 7866 /** 7867 * <p>The camera device will adjust exposure duration to 7868 * avoid banding problems with 50Hz illumination sources.</p> 7869 */ 7870 ACAMERA_CONTROL_AE_ANTIBANDING_MODE_50HZ = 1, 7871 7872 /** 7873 * <p>The camera device will adjust exposure duration to 7874 * avoid banding problems with 60Hz illumination 7875 * sources.</p> 7876 */ 7877 ACAMERA_CONTROL_AE_ANTIBANDING_MODE_60HZ = 2, 7878 7879 /** 7880 * <p>The camera device will automatically adapt its 7881 * antibanding routine to the current illumination 7882 * condition. This is the default mode if AUTO is 7883 * available on given camera device.</p> 7884 */ 7885 ACAMERA_CONTROL_AE_ANTIBANDING_MODE_AUTO = 3, 7886 7887 } acamera_metadata_enum_android_control_ae_antibanding_mode_t; 7888 7889 // ACAMERA_CONTROL_AE_LOCK 7890 typedef enum acamera_metadata_enum_acamera_control_ae_lock { 7891 /** 7892 * <p>Auto-exposure lock is disabled; the AE algorithm 7893 * is free to update its parameters.</p> 7894 */ 7895 ACAMERA_CONTROL_AE_LOCK_OFF = 0, 7896 7897 /** 7898 * <p>Auto-exposure lock is enabled; the AE algorithm 7899 * must not update the exposure and sensitivity parameters 7900 * while the lock is active.</p> 7901 * <p>ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION setting changes 7902 * will still take effect while auto-exposure is locked.</p> 7903 * <p>Some rare LEGACY devices may not support 7904 * this, in which case the value will always be overridden to OFF.</p> 7905 * 7906 * @see ACAMERA_CONTROL_AE_EXPOSURE_COMPENSATION 7907 */ 7908 ACAMERA_CONTROL_AE_LOCK_ON = 1, 7909 7910 } acamera_metadata_enum_android_control_ae_lock_t; 7911 7912 // ACAMERA_CONTROL_AE_MODE 7913 typedef enum acamera_metadata_enum_acamera_control_ae_mode { 7914 /** 7915 * <p>The camera device's autoexposure routine is disabled.</p> 7916 * <p>The application-selected ACAMERA_SENSOR_EXPOSURE_TIME, 7917 * ACAMERA_SENSOR_SENSITIVITY and 7918 * ACAMERA_SENSOR_FRAME_DURATION are used by the camera 7919 * device, along with ACAMERA_FLASH_* fields, if there's 7920 * a flash unit for this camera device.</p> 7921 * <p>Note that auto-white balance (AWB) and auto-focus (AF) 7922 * behavior is device dependent when AE is in OFF mode. 7923 * To have consistent behavior across different devices, 7924 * it is recommended to either set AWB and AF to OFF mode 7925 * or lock AWB and AF before setting AE to OFF. 7926 * See ACAMERA_CONTROL_AWB_MODE, ACAMERA_CONTROL_AF_MODE, 7927 * ACAMERA_CONTROL_AWB_LOCK, and ACAMERA_CONTROL_AF_TRIGGER 7928 * for more details.</p> 7929 * <p>LEGACY devices do not support the OFF mode and will 7930 * override attempts to use this value to ON.</p> 7931 * 7932 * @see ACAMERA_CONTROL_AF_MODE 7933 * @see ACAMERA_CONTROL_AF_TRIGGER 7934 * @see ACAMERA_CONTROL_AWB_LOCK 7935 * @see ACAMERA_CONTROL_AWB_MODE 7936 * @see ACAMERA_SENSOR_EXPOSURE_TIME 7937 * @see ACAMERA_SENSOR_FRAME_DURATION 7938 * @see ACAMERA_SENSOR_SENSITIVITY 7939 */ 7940 ACAMERA_CONTROL_AE_MODE_OFF = 0, 7941 7942 /** 7943 * <p>The camera device's autoexposure routine is active, 7944 * with no flash control.</p> 7945 * <p>The application's values for 7946 * ACAMERA_SENSOR_EXPOSURE_TIME, 7947 * ACAMERA_SENSOR_SENSITIVITY, and 7948 * ACAMERA_SENSOR_FRAME_DURATION are ignored. The 7949 * application has control over the various 7950 * ACAMERA_FLASH_* fields.</p> 7951 * 7952 * @see ACAMERA_SENSOR_EXPOSURE_TIME 7953 * @see ACAMERA_SENSOR_FRAME_DURATION 7954 * @see ACAMERA_SENSOR_SENSITIVITY 7955 */ 7956 ACAMERA_CONTROL_AE_MODE_ON = 1, 7957 7958 /** 7959 * <p>Like ON, except that the camera device also controls 7960 * the camera's flash unit, firing it in low-light 7961 * conditions.</p> 7962 * <p>The flash may be fired during a precapture sequence 7963 * (triggered by ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER) and 7964 * may be fired for captures for which the 7965 * ACAMERA_CONTROL_CAPTURE_INTENT field is set to 7966 * STILL_CAPTURE</p> 7967 * 7968 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 7969 * @see ACAMERA_CONTROL_CAPTURE_INTENT 7970 */ 7971 ACAMERA_CONTROL_AE_MODE_ON_AUTO_FLASH = 2, 7972 7973 /** 7974 * <p>Like ON, except that the camera device also controls 7975 * the camera's flash unit, always firing it for still 7976 * captures.</p> 7977 * <p>The flash may be fired during a precapture sequence 7978 * (triggered by ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER) and 7979 * will always be fired for captures for which the 7980 * ACAMERA_CONTROL_CAPTURE_INTENT field is set to 7981 * STILL_CAPTURE</p> 7982 * 7983 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 7984 * @see ACAMERA_CONTROL_CAPTURE_INTENT 7985 */ 7986 ACAMERA_CONTROL_AE_MODE_ON_ALWAYS_FLASH = 3, 7987 7988 /** 7989 * <p>Like ON_AUTO_FLASH, but with automatic red eye 7990 * reduction.</p> 7991 * <p>If deemed necessary by the camera device, a red eye 7992 * reduction flash will fire during the precapture 7993 * sequence.</p> 7994 */ 7995 ACAMERA_CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE = 4, 7996 7997 /** 7998 * <p>An external flash has been turned on.</p> 7999 * <p>It informs the camera device that an external flash has been turned on, and that 8000 * metering (and continuous focus if active) should be quickly recalculated to account 8001 * for the external flash. Otherwise, this mode acts like ON.</p> 8002 * <p>When the external flash is turned off, AE mode should be changed to one of the 8003 * other available AE modes.</p> 8004 * <p>If the camera device supports AE external flash mode, ACAMERA_CONTROL_AE_STATE must 8005 * be FLASH_REQUIRED after the camera device finishes AE scan and it's too dark without 8006 * flash.</p> 8007 * 8008 * @see ACAMERA_CONTROL_AE_STATE 8009 */ 8010 ACAMERA_CONTROL_AE_MODE_ON_EXTERNAL_FLASH = 5, 8011 8012 } acamera_metadata_enum_android_control_ae_mode_t; 8013 8014 // ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 8015 typedef enum acamera_metadata_enum_acamera_control_ae_precapture_trigger { 8016 /** 8017 * <p>The trigger is idle.</p> 8018 */ 8019 ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER_IDLE = 0, 8020 8021 /** 8022 * <p>The precapture metering sequence will be started 8023 * by the camera device.</p> 8024 * <p>The exact effect of the precapture trigger depends on 8025 * the current AE mode and state.</p> 8026 */ 8027 ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER_START = 1, 8028 8029 /** 8030 * <p>The camera device will cancel any currently active or completed 8031 * precapture metering sequence, the auto-exposure routine will return to its 8032 * initial state.</p> 8033 */ 8034 ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER_CANCEL = 2, 8035 8036 } acamera_metadata_enum_android_control_ae_precapture_trigger_t; 8037 8038 // ACAMERA_CONTROL_AF_MODE 8039 typedef enum acamera_metadata_enum_acamera_control_af_mode { 8040 /** 8041 * <p>The auto-focus routine does not control the lens; 8042 * ACAMERA_LENS_FOCUS_DISTANCE is controlled by the 8043 * application.</p> 8044 * 8045 * @see ACAMERA_LENS_FOCUS_DISTANCE 8046 */ 8047 ACAMERA_CONTROL_AF_MODE_OFF = 0, 8048 8049 /** 8050 * <p>Basic automatic focus mode.</p> 8051 * <p>In this mode, the lens does not move unless 8052 * the autofocus trigger action is called. When that trigger 8053 * is activated, AF will transition to ACTIVE_SCAN, then to 8054 * the outcome of the scan (FOCUSED or NOT_FOCUSED).</p> 8055 * <p>Always supported if lens is not fixed focus.</p> 8056 * <p>Use ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE to determine if lens 8057 * is fixed-focus.</p> 8058 * <p>Triggering AF_CANCEL resets the lens position to default, 8059 * and sets the AF state to INACTIVE.</p> 8060 * 8061 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 8062 */ 8063 ACAMERA_CONTROL_AF_MODE_AUTO = 1, 8064 8065 /** 8066 * <p>Close-up focusing mode.</p> 8067 * <p>In this mode, the lens does not move unless the 8068 * autofocus trigger action is called. When that trigger is 8069 * activated, AF will transition to ACTIVE_SCAN, then to 8070 * the outcome of the scan (FOCUSED or NOT_FOCUSED). This 8071 * mode is optimized for focusing on objects very close to 8072 * the camera.</p> 8073 * <p>When that trigger is activated, AF will transition to 8074 * ACTIVE_SCAN, then to the outcome of the scan (FOCUSED or 8075 * NOT_FOCUSED). Triggering cancel AF resets the lens 8076 * position to default, and sets the AF state to 8077 * INACTIVE.</p> 8078 */ 8079 ACAMERA_CONTROL_AF_MODE_MACRO = 2, 8080 8081 /** 8082 * <p>In this mode, the AF algorithm modifies the lens 8083 * position continually to attempt to provide a 8084 * constantly-in-focus image stream.</p> 8085 * <p>The focusing behavior should be suitable for good quality 8086 * video recording; typically this means slower focus 8087 * movement and no overshoots. When the AF trigger is not 8088 * involved, the AF algorithm should start in INACTIVE state, 8089 * and then transition into PASSIVE_SCAN and PASSIVE_FOCUSED 8090 * states as appropriate. When the AF trigger is activated, 8091 * the algorithm should immediately transition into 8092 * AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the 8093 * lens position until a cancel AF trigger is received.</p> 8094 * <p>Once cancel is received, the algorithm should transition 8095 * back to INACTIVE and resume passive scan. Note that this 8096 * behavior is not identical to CONTINUOUS_PICTURE, since an 8097 * ongoing PASSIVE_SCAN must immediately be 8098 * canceled.</p> 8099 */ 8100 ACAMERA_CONTROL_AF_MODE_CONTINUOUS_VIDEO = 3, 8101 8102 /** 8103 * <p>In this mode, the AF algorithm modifies the lens 8104 * position continually to attempt to provide a 8105 * constantly-in-focus image stream.</p> 8106 * <p>The focusing behavior should be suitable for still image 8107 * capture; typically this means focusing as fast as 8108 * possible. When the AF trigger is not involved, the AF 8109 * algorithm should start in INACTIVE state, and then 8110 * transition into PASSIVE_SCAN and PASSIVE_FOCUSED states as 8111 * appropriate as it attempts to maintain focus. When the AF 8112 * trigger is activated, the algorithm should finish its 8113 * PASSIVE_SCAN if active, and then transition into 8114 * AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the 8115 * lens position until a cancel AF trigger is received.</p> 8116 * <p>When the AF cancel trigger is activated, the algorithm 8117 * should transition back to INACTIVE and then act as if it 8118 * has just been started.</p> 8119 */ 8120 ACAMERA_CONTROL_AF_MODE_CONTINUOUS_PICTURE = 4, 8121 8122 /** 8123 * <p>Extended depth of field (digital focus) mode.</p> 8124 * <p>The camera device will produce images with an extended 8125 * depth of field automatically; no special focusing 8126 * operations need to be done before taking a picture.</p> 8127 * <p>AF triggers are ignored, and the AF state will always be 8128 * INACTIVE.</p> 8129 */ 8130 ACAMERA_CONTROL_AF_MODE_EDOF = 5, 8131 8132 } acamera_metadata_enum_android_control_af_mode_t; 8133 8134 // ACAMERA_CONTROL_AF_TRIGGER 8135 typedef enum acamera_metadata_enum_acamera_control_af_trigger { 8136 /** 8137 * <p>The trigger is idle.</p> 8138 */ 8139 ACAMERA_CONTROL_AF_TRIGGER_IDLE = 0, 8140 8141 /** 8142 * <p>Autofocus will trigger now.</p> 8143 */ 8144 ACAMERA_CONTROL_AF_TRIGGER_START = 1, 8145 8146 /** 8147 * <p>Autofocus will return to its initial 8148 * state, and cancel any currently active trigger.</p> 8149 */ 8150 ACAMERA_CONTROL_AF_TRIGGER_CANCEL = 2, 8151 8152 } acamera_metadata_enum_android_control_af_trigger_t; 8153 8154 // ACAMERA_CONTROL_AWB_LOCK 8155 typedef enum acamera_metadata_enum_acamera_control_awb_lock { 8156 /** 8157 * <p>Auto-white balance lock is disabled; the AWB 8158 * algorithm is free to update its parameters if in AUTO 8159 * mode.</p> 8160 */ 8161 ACAMERA_CONTROL_AWB_LOCK_OFF = 0, 8162 8163 /** 8164 * <p>Auto-white balance lock is enabled; the AWB 8165 * algorithm will not update its parameters while the lock 8166 * is active.</p> 8167 */ 8168 ACAMERA_CONTROL_AWB_LOCK_ON = 1, 8169 8170 } acamera_metadata_enum_android_control_awb_lock_t; 8171 8172 // ACAMERA_CONTROL_AWB_MODE 8173 typedef enum acamera_metadata_enum_acamera_control_awb_mode { 8174 /** 8175 * <p>The camera device's auto-white balance routine is disabled.</p> 8176 * <p>The application-selected color transform matrix 8177 * (ACAMERA_COLOR_CORRECTION_TRANSFORM) and gains 8178 * (ACAMERA_COLOR_CORRECTION_GAINS) are used by the camera 8179 * device for manual white balance control.</p> 8180 * 8181 * @see ACAMERA_COLOR_CORRECTION_GAINS 8182 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 8183 */ 8184 ACAMERA_CONTROL_AWB_MODE_OFF = 0, 8185 8186 /** 8187 * <p>The camera device's auto-white balance routine is active.</p> 8188 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 8189 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 8190 * For devices that support the MANUAL_POST_PROCESSING capability, the 8191 * values used by the camera device for the transform and gains 8192 * will be available in the capture result for this request.</p> 8193 * 8194 * @see ACAMERA_COLOR_CORRECTION_GAINS 8195 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 8196 */ 8197 ACAMERA_CONTROL_AWB_MODE_AUTO = 1, 8198 8199 /** 8200 * <p>The camera device's auto-white balance routine is disabled; 8201 * the camera device uses incandescent light as the assumed scene 8202 * illumination for white balance.</p> 8203 * <p>While the exact white balance transforms are up to the 8204 * camera device, they will approximately match the CIE 8205 * standard illuminant A.</p> 8206 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 8207 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 8208 * For devices that support the MANUAL_POST_PROCESSING capability, the 8209 * values used by the camera device for the transform and gains 8210 * will be available in the capture result for this request.</p> 8211 * 8212 * @see ACAMERA_COLOR_CORRECTION_GAINS 8213 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 8214 */ 8215 ACAMERA_CONTROL_AWB_MODE_INCANDESCENT = 2, 8216 8217 /** 8218 * <p>The camera device's auto-white balance routine is disabled; 8219 * the camera device uses fluorescent light as the assumed scene 8220 * illumination for white balance.</p> 8221 * <p>While the exact white balance transforms are up to the 8222 * camera device, they will approximately match the CIE 8223 * standard illuminant F2.</p> 8224 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 8225 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 8226 * For devices that support the MANUAL_POST_PROCESSING capability, the 8227 * values used by the camera device for the transform and gains 8228 * will be available in the capture result for this request.</p> 8229 * 8230 * @see ACAMERA_COLOR_CORRECTION_GAINS 8231 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 8232 */ 8233 ACAMERA_CONTROL_AWB_MODE_FLUORESCENT = 3, 8234 8235 /** 8236 * <p>The camera device's auto-white balance routine is disabled; 8237 * the camera device uses warm fluorescent light as the assumed scene 8238 * illumination for white balance.</p> 8239 * <p>While the exact white balance transforms are up to the 8240 * camera device, they will approximately match the CIE 8241 * standard illuminant F4.</p> 8242 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 8243 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 8244 * For devices that support the MANUAL_POST_PROCESSING capability, the 8245 * values used by the camera device for the transform and gains 8246 * will be available in the capture result for this request.</p> 8247 * 8248 * @see ACAMERA_COLOR_CORRECTION_GAINS 8249 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 8250 */ 8251 ACAMERA_CONTROL_AWB_MODE_WARM_FLUORESCENT = 4, 8252 8253 /** 8254 * <p>The camera device's auto-white balance routine is disabled; 8255 * the camera device uses daylight light as the assumed scene 8256 * illumination for white balance.</p> 8257 * <p>While the exact white balance transforms are up to the 8258 * camera device, they will approximately match the CIE 8259 * standard illuminant D65.</p> 8260 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 8261 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 8262 * For devices that support the MANUAL_POST_PROCESSING capability, the 8263 * values used by the camera device for the transform and gains 8264 * will be available in the capture result for this request.</p> 8265 * 8266 * @see ACAMERA_COLOR_CORRECTION_GAINS 8267 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 8268 */ 8269 ACAMERA_CONTROL_AWB_MODE_DAYLIGHT = 5, 8270 8271 /** 8272 * <p>The camera device's auto-white balance routine is disabled; 8273 * the camera device uses cloudy daylight light as the assumed scene 8274 * illumination for white balance.</p> 8275 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 8276 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 8277 * For devices that support the MANUAL_POST_PROCESSING capability, the 8278 * values used by the camera device for the transform and gains 8279 * will be available in the capture result for this request.</p> 8280 * 8281 * @see ACAMERA_COLOR_CORRECTION_GAINS 8282 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 8283 */ 8284 ACAMERA_CONTROL_AWB_MODE_CLOUDY_DAYLIGHT = 6, 8285 8286 /** 8287 * <p>The camera device's auto-white balance routine is disabled; 8288 * the camera device uses twilight light as the assumed scene 8289 * illumination for white balance.</p> 8290 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 8291 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 8292 * For devices that support the MANUAL_POST_PROCESSING capability, the 8293 * values used by the camera device for the transform and gains 8294 * will be available in the capture result for this request.</p> 8295 * 8296 * @see ACAMERA_COLOR_CORRECTION_GAINS 8297 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 8298 */ 8299 ACAMERA_CONTROL_AWB_MODE_TWILIGHT = 7, 8300 8301 /** 8302 * <p>The camera device's auto-white balance routine is disabled; 8303 * the camera device uses shade light as the assumed scene 8304 * illumination for white balance.</p> 8305 * <p>The application's values for ACAMERA_COLOR_CORRECTION_TRANSFORM 8306 * and ACAMERA_COLOR_CORRECTION_GAINS are ignored. 8307 * For devices that support the MANUAL_POST_PROCESSING capability, the 8308 * values used by the camera device for the transform and gains 8309 * will be available in the capture result for this request.</p> 8310 * 8311 * @see ACAMERA_COLOR_CORRECTION_GAINS 8312 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 8313 */ 8314 ACAMERA_CONTROL_AWB_MODE_SHADE = 8, 8315 8316 } acamera_metadata_enum_android_control_awb_mode_t; 8317 8318 // ACAMERA_CONTROL_CAPTURE_INTENT 8319 typedef enum acamera_metadata_enum_acamera_control_capture_intent { 8320 /** 8321 * <p>The goal of this request doesn't fall into the other 8322 * categories. The camera device will default to preview-like 8323 * behavior.</p> 8324 */ 8325 ACAMERA_CONTROL_CAPTURE_INTENT_CUSTOM = 0, 8326 8327 /** 8328 * <p>This request is for a preview-like use case.</p> 8329 * <p>The precapture trigger may be used to start off a metering 8330 * w/flash sequence.</p> 8331 */ 8332 ACAMERA_CONTROL_CAPTURE_INTENT_PREVIEW = 1, 8333 8334 /** 8335 * <p>This request is for a still capture-type 8336 * use case.</p> 8337 * <p>If the flash unit is under automatic control, it may fire as needed.</p> 8338 */ 8339 ACAMERA_CONTROL_CAPTURE_INTENT_STILL_CAPTURE = 2, 8340 8341 /** 8342 * <p>This request is for a video recording 8343 * use case.</p> 8344 */ 8345 ACAMERA_CONTROL_CAPTURE_INTENT_VIDEO_RECORD = 3, 8346 8347 /** 8348 * <p>This request is for a video snapshot (still 8349 * image while recording video) use case.</p> 8350 * <p>The camera device should take the highest-quality image 8351 * possible (given the other settings) without disrupting the 8352 * frame rate of video recording. </p> 8353 */ 8354 ACAMERA_CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT = 4, 8355 8356 /** 8357 * <p>This request is for a ZSL usecase; the 8358 * application will stream full-resolution images and 8359 * reprocess one or several later for a final 8360 * capture.</p> 8361 */ 8362 ACAMERA_CONTROL_CAPTURE_INTENT_ZERO_SHUTTER_LAG = 5, 8363 8364 /** 8365 * <p>This request is for manual capture use case where 8366 * the applications want to directly control the capture parameters.</p> 8367 * <p>For example, the application may wish to manually control 8368 * ACAMERA_SENSOR_EXPOSURE_TIME, ACAMERA_SENSOR_SENSITIVITY, etc.</p> 8369 * 8370 * @see ACAMERA_SENSOR_EXPOSURE_TIME 8371 * @see ACAMERA_SENSOR_SENSITIVITY 8372 */ 8373 ACAMERA_CONTROL_CAPTURE_INTENT_MANUAL = 6, 8374 8375 /** 8376 * <p>This request is for a motion tracking use case, where 8377 * the application will use camera and inertial sensor data to 8378 * locate and track objects in the world.</p> 8379 * <p>The camera device auto-exposure routine will limit the exposure time 8380 * of the camera to no more than 20 milliseconds, to minimize motion blur.</p> 8381 */ 8382 ACAMERA_CONTROL_CAPTURE_INTENT_MOTION_TRACKING = 7, 8383 8384 } acamera_metadata_enum_android_control_capture_intent_t; 8385 8386 // ACAMERA_CONTROL_EFFECT_MODE 8387 typedef enum acamera_metadata_enum_acamera_control_effect_mode { 8388 /** 8389 * <p>No color effect will be applied.</p> 8390 */ 8391 ACAMERA_CONTROL_EFFECT_MODE_OFF = 0, 8392 8393 /** 8394 * <p>A "monocolor" effect where the image is mapped into 8395 * a single color.</p> 8396 * <p>This will typically be grayscale.</p> 8397 */ 8398 ACAMERA_CONTROL_EFFECT_MODE_MONO = 1, 8399 8400 /** 8401 * <p>A "photo-negative" effect where the image's colors 8402 * are inverted.</p> 8403 */ 8404 ACAMERA_CONTROL_EFFECT_MODE_NEGATIVE = 2, 8405 8406 /** 8407 * <p>A "solarisation" effect (Sabattier effect) where the 8408 * image is wholly or partially reversed in 8409 * tone.</p> 8410 */ 8411 ACAMERA_CONTROL_EFFECT_MODE_SOLARIZE = 3, 8412 8413 /** 8414 * <p>A "sepia" effect where the image is mapped into warm 8415 * gray, red, and brown tones.</p> 8416 */ 8417 ACAMERA_CONTROL_EFFECT_MODE_SEPIA = 4, 8418 8419 /** 8420 * <p>A "posterization" effect where the image uses 8421 * discrete regions of tone rather than a continuous 8422 * gradient of tones.</p> 8423 */ 8424 ACAMERA_CONTROL_EFFECT_MODE_POSTERIZE = 5, 8425 8426 /** 8427 * <p>A "whiteboard" effect where the image is typically displayed 8428 * as regions of white, with black or grey details.</p> 8429 */ 8430 ACAMERA_CONTROL_EFFECT_MODE_WHITEBOARD = 6, 8431 8432 /** 8433 * <p>A "blackboard" effect where the image is typically displayed 8434 * as regions of black, with white or grey details.</p> 8435 */ 8436 ACAMERA_CONTROL_EFFECT_MODE_BLACKBOARD = 7, 8437 8438 /** 8439 * <p>An "aqua" effect where a blue hue is added to the image.</p> 8440 */ 8441 ACAMERA_CONTROL_EFFECT_MODE_AQUA = 8, 8442 8443 } acamera_metadata_enum_android_control_effect_mode_t; 8444 8445 // ACAMERA_CONTROL_MODE 8446 typedef enum acamera_metadata_enum_acamera_control_mode { 8447 /** 8448 * <p>Full application control of pipeline.</p> 8449 * <p>All control by the device's metering and focusing (3A) 8450 * routines is disabled, and no other settings in 8451 * ACAMERA_CONTROL_* have any effect, except that 8452 * ACAMERA_CONTROL_CAPTURE_INTENT may be used by the camera 8453 * device to select post-processing values for processing 8454 * blocks that do not allow for manual control, or are not 8455 * exposed by the camera API.</p> 8456 * <p>However, the camera device's 3A routines may continue to 8457 * collect statistics and update their internal state so that 8458 * when control is switched to AUTO mode, good control values 8459 * can be immediately applied.</p> 8460 * 8461 * @see ACAMERA_CONTROL_CAPTURE_INTENT 8462 */ 8463 ACAMERA_CONTROL_MODE_OFF = 0, 8464 8465 /** 8466 * <p>Use settings for each individual 3A routine.</p> 8467 * <p>Manual control of capture parameters is disabled. All 8468 * controls in ACAMERA_CONTROL_* besides sceneMode take 8469 * effect.</p> 8470 */ 8471 ACAMERA_CONTROL_MODE_AUTO = 1, 8472 8473 /** 8474 * <p>Use a specific scene mode.</p> 8475 * <p>Enabling this disables control.aeMode, control.awbMode and 8476 * control.afMode controls; the camera device will ignore 8477 * those settings while USE_SCENE_MODE is active (except for 8478 * FACE_PRIORITY scene mode). Other control entries are still active. 8479 * This setting can only be used if scene mode is supported (i.e. 8480 * ACAMERA_CONTROL_AVAILABLE_SCENE_MODES 8481 * contain some modes other than DISABLED).</p> 8482 * <p>For extended scene modes such as BOKEH, please use USE_EXTENDED_SCENE_MODE instead.</p> 8483 * 8484 * @see ACAMERA_CONTROL_AVAILABLE_SCENE_MODES 8485 */ 8486 ACAMERA_CONTROL_MODE_USE_SCENE_MODE = 2, 8487 8488 /** 8489 * <p>Same as OFF mode, except that this capture will not be 8490 * used by camera device background auto-exposure, auto-white balance and 8491 * auto-focus algorithms (3A) to update their statistics.</p> 8492 * <p>Specifically, the 3A routines are locked to the last 8493 * values set from a request with AUTO, OFF, or 8494 * USE_SCENE_MODE, and any statistics or state updates 8495 * collected from manual captures with OFF_KEEP_STATE will be 8496 * discarded by the camera device.</p> 8497 */ 8498 ACAMERA_CONTROL_MODE_OFF_KEEP_STATE = 3, 8499 8500 /** 8501 * <p>Use a specific extended scene mode.</p> 8502 * <p>When extended scene mode is on, the camera device may override certain control 8503 * parameters, such as targetFpsRange, AE, AWB, and AF modes, to achieve best power and 8504 * quality tradeoffs. Only the mandatory stream combinations of LIMITED hardware level 8505 * are guaranteed.</p> 8506 * <p>This setting can only be used if extended scene mode is supported (i.e. 8507 * android.control.availableExtendedSceneModes 8508 * contains some modes other than DISABLED).</p> 8509 */ 8510 ACAMERA_CONTROL_MODE_USE_EXTENDED_SCENE_MODE = 4, 8511 8512 } acamera_metadata_enum_android_control_mode_t; 8513 8514 // ACAMERA_CONTROL_SCENE_MODE 8515 typedef enum acamera_metadata_enum_acamera_control_scene_mode { 8516 /** 8517 * <p>Indicates that no scene modes are set for a given capture request.</p> 8518 */ 8519 ACAMERA_CONTROL_SCENE_MODE_DISABLED = 0, 8520 8521 /** 8522 * <p>If face detection support exists, use face 8523 * detection data for auto-focus, auto-white balance, and 8524 * auto-exposure routines.</p> 8525 * <p>If face detection statistics are disabled 8526 * (i.e. ACAMERA_STATISTICS_FACE_DETECT_MODE is set to OFF), 8527 * this should still operate correctly (but will not return 8528 * face detection statistics to the framework).</p> 8529 * <p>Unlike the other scene modes, ACAMERA_CONTROL_AE_MODE, 8530 * ACAMERA_CONTROL_AWB_MODE, and ACAMERA_CONTROL_AF_MODE 8531 * remain active when FACE_PRIORITY is set.</p> 8532 * 8533 * @see ACAMERA_CONTROL_AE_MODE 8534 * @see ACAMERA_CONTROL_AF_MODE 8535 * @see ACAMERA_CONTROL_AWB_MODE 8536 * @see ACAMERA_STATISTICS_FACE_DETECT_MODE 8537 */ 8538 ACAMERA_CONTROL_SCENE_MODE_FACE_PRIORITY = 1, 8539 8540 /** 8541 * <p>Optimized for photos of quickly moving objects.</p> 8542 * <p>Similar to SPORTS.</p> 8543 */ 8544 ACAMERA_CONTROL_SCENE_MODE_ACTION = 2, 8545 8546 /** 8547 * <p>Optimized for still photos of people.</p> 8548 */ 8549 ACAMERA_CONTROL_SCENE_MODE_PORTRAIT = 3, 8550 8551 /** 8552 * <p>Optimized for photos of distant macroscopic objects.</p> 8553 */ 8554 ACAMERA_CONTROL_SCENE_MODE_LANDSCAPE = 4, 8555 8556 /** 8557 * <p>Optimized for low-light settings.</p> 8558 */ 8559 ACAMERA_CONTROL_SCENE_MODE_NIGHT = 5, 8560 8561 /** 8562 * <p>Optimized for still photos of people in low-light 8563 * settings.</p> 8564 */ 8565 ACAMERA_CONTROL_SCENE_MODE_NIGHT_PORTRAIT = 6, 8566 8567 /** 8568 * <p>Optimized for dim, indoor settings where flash must 8569 * remain off.</p> 8570 */ 8571 ACAMERA_CONTROL_SCENE_MODE_THEATRE = 7, 8572 8573 /** 8574 * <p>Optimized for bright, outdoor beach settings.</p> 8575 */ 8576 ACAMERA_CONTROL_SCENE_MODE_BEACH = 8, 8577 8578 /** 8579 * <p>Optimized for bright, outdoor settings containing snow.</p> 8580 */ 8581 ACAMERA_CONTROL_SCENE_MODE_SNOW = 9, 8582 8583 /** 8584 * <p>Optimized for scenes of the setting sun.</p> 8585 */ 8586 ACAMERA_CONTROL_SCENE_MODE_SUNSET = 10, 8587 8588 /** 8589 * <p>Optimized to avoid blurry photos due to small amounts of 8590 * device motion (for example: due to hand shake).</p> 8591 */ 8592 ACAMERA_CONTROL_SCENE_MODE_STEADYPHOTO = 11, 8593 8594 /** 8595 * <p>Optimized for nighttime photos of fireworks.</p> 8596 */ 8597 ACAMERA_CONTROL_SCENE_MODE_FIREWORKS = 12, 8598 8599 /** 8600 * <p>Optimized for photos of quickly moving people.</p> 8601 * <p>Similar to ACTION.</p> 8602 */ 8603 ACAMERA_CONTROL_SCENE_MODE_SPORTS = 13, 8604 8605 /** 8606 * <p>Optimized for dim, indoor settings with multiple moving 8607 * people.</p> 8608 */ 8609 ACAMERA_CONTROL_SCENE_MODE_PARTY = 14, 8610 8611 /** 8612 * <p>Optimized for dim settings where the main light source 8613 * is a candle.</p> 8614 */ 8615 ACAMERA_CONTROL_SCENE_MODE_CANDLELIGHT = 15, 8616 8617 /** 8618 * <p>Optimized for accurately capturing a photo of barcode 8619 * for use by camera applications that wish to read the 8620 * barcode value.</p> 8621 */ 8622 ACAMERA_CONTROL_SCENE_MODE_BARCODE = 16, 8623 8624 /** 8625 * <p>Turn on a device-specific high dynamic range (HDR) mode.</p> 8626 * <p>In this scene mode, the camera device captures images 8627 * that keep a larger range of scene illumination levels 8628 * visible in the final image. For example, when taking a 8629 * picture of a object in front of a bright window, both 8630 * the object and the scene through the window may be 8631 * visible when using HDR mode, while in normal AUTO mode, 8632 * one or the other may be poorly exposed. As a tradeoff, 8633 * HDR mode generally takes much longer to capture a single 8634 * image, has no user control, and may have other artifacts 8635 * depending on the HDR method used.</p> 8636 * <p>Therefore, HDR captures operate at a much slower rate 8637 * than regular captures.</p> 8638 * <p>In this mode, on LIMITED or FULL devices, when a request 8639 * is made with a ACAMERA_CONTROL_CAPTURE_INTENT of 8640 * STILL_CAPTURE, the camera device will capture an image 8641 * using a high dynamic range capture technique. On LEGACY 8642 * devices, captures that target a JPEG-format output will 8643 * be captured with HDR, and the capture intent is not 8644 * relevant.</p> 8645 * <p>The HDR capture may involve the device capturing a burst 8646 * of images internally and combining them into one, or it 8647 * may involve the device using specialized high dynamic 8648 * range capture hardware. In all cases, a single image is 8649 * produced in response to a capture request submitted 8650 * while in HDR mode.</p> 8651 * <p>Since substantial post-processing is generally needed to 8652 * produce an HDR image, only YUV, PRIVATE, and JPEG 8653 * outputs are supported for LIMITED/FULL device HDR 8654 * captures, and only JPEG outputs are supported for LEGACY 8655 * HDR captures. Using a RAW output for HDR capture is not 8656 * supported.</p> 8657 * <p>Some devices may also support always-on HDR, which 8658 * applies HDR processing at full frame rate. For these 8659 * devices, intents other than STILL_CAPTURE will also 8660 * produce an HDR output with no frame rate impact compared 8661 * to normal operation, though the quality may be lower 8662 * than for STILL_CAPTURE intents.</p> 8663 * <p>If SCENE_MODE_HDR is used with unsupported output types 8664 * or capture intents, the images captured will be as if 8665 * the SCENE_MODE was not enabled at all.</p> 8666 * 8667 * @see ACAMERA_CONTROL_CAPTURE_INTENT 8668 */ 8669 ACAMERA_CONTROL_SCENE_MODE_HDR = 18, 8670 8671 } acamera_metadata_enum_android_control_scene_mode_t; 8672 8673 // ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE 8674 typedef enum acamera_metadata_enum_acamera_control_video_stabilization_mode { 8675 /** 8676 * <p>Video stabilization is disabled.</p> 8677 */ 8678 ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE_OFF = 0, 8679 8680 /** 8681 * <p>Video stabilization is enabled.</p> 8682 */ 8683 ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE_ON = 1, 8684 8685 /** 8686 * <p>Preview stabilization, where the preview in addition to all other non-RAW streams are 8687 * stabilized with the same quality of stabilization, is enabled. This mode aims to give 8688 * clients a 'what you see is what you get' effect. In this mode, the FoV reduction will 8689 * be a maximum of 20 % both horizontally and vertically 8690 * (10% from left, right, top, bottom) for the given zoom ratio / crop region. 8691 * The resultant FoV will also be the same across all processed streams 8692 * (that have the same aspect ratio).</p> 8693 */ 8694 ACAMERA_CONTROL_VIDEO_STABILIZATION_MODE_PREVIEW_STABILIZATION = 2, 8695 8696 } acamera_metadata_enum_android_control_video_stabilization_mode_t; 8697 8698 // ACAMERA_CONTROL_AE_STATE 8699 typedef enum acamera_metadata_enum_acamera_control_ae_state { 8700 /** 8701 * <p>AE is off or recently reset.</p> 8702 * <p>When a camera device is opened, it starts in 8703 * this state. This is a transient state, the camera device may skip reporting 8704 * this state in capture result.</p> 8705 */ 8706 ACAMERA_CONTROL_AE_STATE_INACTIVE = 0, 8707 8708 /** 8709 * <p>AE doesn't yet have a good set of control values 8710 * for the current scene.</p> 8711 * <p>This is a transient state, the camera device may skip 8712 * reporting this state in capture result.</p> 8713 */ 8714 ACAMERA_CONTROL_AE_STATE_SEARCHING = 1, 8715 8716 /** 8717 * <p>AE has a good set of control values for the 8718 * current scene.</p> 8719 */ 8720 ACAMERA_CONTROL_AE_STATE_CONVERGED = 2, 8721 8722 /** 8723 * <p>AE has been locked.</p> 8724 */ 8725 ACAMERA_CONTROL_AE_STATE_LOCKED = 3, 8726 8727 /** 8728 * <p>AE has a good set of control values, but flash 8729 * needs to be fired for good quality still 8730 * capture.</p> 8731 */ 8732 ACAMERA_CONTROL_AE_STATE_FLASH_REQUIRED = 4, 8733 8734 /** 8735 * <p>AE has been asked to do a precapture sequence 8736 * and is currently executing it.</p> 8737 * <p>Precapture can be triggered through setting 8738 * ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER to START. Currently 8739 * active and completed (if it causes camera device internal AE lock) precapture 8740 * metering sequence can be canceled through setting 8741 * ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER to CANCEL.</p> 8742 * <p>Once PRECAPTURE completes, AE will transition to CONVERGED 8743 * or FLASH_REQUIRED as appropriate. This is a transient 8744 * state, the camera device may skip reporting this state in 8745 * capture result.</p> 8746 * 8747 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 8748 */ 8749 ACAMERA_CONTROL_AE_STATE_PRECAPTURE = 5, 8750 8751 } acamera_metadata_enum_android_control_ae_state_t; 8752 8753 // ACAMERA_CONTROL_AF_STATE 8754 typedef enum acamera_metadata_enum_acamera_control_af_state { 8755 /** 8756 * <p>AF is off or has not yet tried to scan/been asked 8757 * to scan.</p> 8758 * <p>When a camera device is opened, it starts in this 8759 * state. This is a transient state, the camera device may 8760 * skip reporting this state in capture 8761 * result.</p> 8762 */ 8763 ACAMERA_CONTROL_AF_STATE_INACTIVE = 0, 8764 8765 /** 8766 * <p>AF is currently performing an AF scan initiated the 8767 * camera device in a continuous autofocus mode.</p> 8768 * <p>Only used by CONTINUOUS_* AF modes. This is a transient 8769 * state, the camera device may skip reporting this state in 8770 * capture result.</p> 8771 */ 8772 ACAMERA_CONTROL_AF_STATE_PASSIVE_SCAN = 1, 8773 8774 /** 8775 * <p>AF currently believes it is in focus, but may 8776 * restart scanning at any time.</p> 8777 * <p>Only used by CONTINUOUS_* AF modes. This is a transient 8778 * state, the camera device may skip reporting this state in 8779 * capture result.</p> 8780 */ 8781 ACAMERA_CONTROL_AF_STATE_PASSIVE_FOCUSED = 2, 8782 8783 /** 8784 * <p>AF is performing an AF scan because it was 8785 * triggered by AF trigger.</p> 8786 * <p>Only used by AUTO or MACRO AF modes. This is a transient 8787 * state, the camera device may skip reporting this state in 8788 * capture result.</p> 8789 */ 8790 ACAMERA_CONTROL_AF_STATE_ACTIVE_SCAN = 3, 8791 8792 /** 8793 * <p>AF believes it is focused correctly and has locked 8794 * focus.</p> 8795 * <p>This state is reached only after an explicit START AF trigger has been 8796 * sent (ACAMERA_CONTROL_AF_TRIGGER), when good focus has been obtained.</p> 8797 * <p>The lens will remain stationary until the AF mode (ACAMERA_CONTROL_AF_MODE) is changed or 8798 * a new AF trigger is sent to the camera device (ACAMERA_CONTROL_AF_TRIGGER).</p> 8799 * 8800 * @see ACAMERA_CONTROL_AF_MODE 8801 * @see ACAMERA_CONTROL_AF_TRIGGER 8802 */ 8803 ACAMERA_CONTROL_AF_STATE_FOCUSED_LOCKED = 4, 8804 8805 /** 8806 * <p>AF has failed to focus successfully and has locked 8807 * focus.</p> 8808 * <p>This state is reached only after an explicit START AF trigger has been 8809 * sent (ACAMERA_CONTROL_AF_TRIGGER), when good focus cannot be obtained.</p> 8810 * <p>The lens will remain stationary until the AF mode (ACAMERA_CONTROL_AF_MODE) is changed or 8811 * a new AF trigger is sent to the camera device (ACAMERA_CONTROL_AF_TRIGGER).</p> 8812 * 8813 * @see ACAMERA_CONTROL_AF_MODE 8814 * @see ACAMERA_CONTROL_AF_TRIGGER 8815 */ 8816 ACAMERA_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED = 5, 8817 8818 /** 8819 * <p>AF finished a passive scan without finding focus, 8820 * and may restart scanning at any time.</p> 8821 * <p>Only used by CONTINUOUS_* AF modes. This is a transient state, the camera 8822 * device may skip reporting this state in capture result.</p> 8823 * <p>LEGACY camera devices do not support this state. When a passive 8824 * scan has finished, it will always go to PASSIVE_FOCUSED.</p> 8825 */ 8826 ACAMERA_CONTROL_AF_STATE_PASSIVE_UNFOCUSED = 6, 8827 8828 } acamera_metadata_enum_android_control_af_state_t; 8829 8830 // ACAMERA_CONTROL_AWB_STATE 8831 typedef enum acamera_metadata_enum_acamera_control_awb_state { 8832 /** 8833 * <p>AWB is not in auto mode, or has not yet started metering.</p> 8834 * <p>When a camera device is opened, it starts in this 8835 * state. This is a transient state, the camera device may 8836 * skip reporting this state in capture 8837 * result.</p> 8838 */ 8839 ACAMERA_CONTROL_AWB_STATE_INACTIVE = 0, 8840 8841 /** 8842 * <p>AWB doesn't yet have a good set of control 8843 * values for the current scene.</p> 8844 * <p>This is a transient state, the camera device 8845 * may skip reporting this state in capture result.</p> 8846 */ 8847 ACAMERA_CONTROL_AWB_STATE_SEARCHING = 1, 8848 8849 /** 8850 * <p>AWB has a good set of control values for the 8851 * current scene.</p> 8852 */ 8853 ACAMERA_CONTROL_AWB_STATE_CONVERGED = 2, 8854 8855 /** 8856 * <p>AWB has been locked.</p> 8857 */ 8858 ACAMERA_CONTROL_AWB_STATE_LOCKED = 3, 8859 8860 } acamera_metadata_enum_android_control_awb_state_t; 8861 8862 // ACAMERA_CONTROL_AE_LOCK_AVAILABLE 8863 typedef enum acamera_metadata_enum_acamera_control_ae_lock_available { 8864 ACAMERA_CONTROL_AE_LOCK_AVAILABLE_FALSE = 0, 8865 8866 ACAMERA_CONTROL_AE_LOCK_AVAILABLE_TRUE = 1, 8867 8868 } acamera_metadata_enum_android_control_ae_lock_available_t; 8869 8870 // ACAMERA_CONTROL_AWB_LOCK_AVAILABLE 8871 typedef enum acamera_metadata_enum_acamera_control_awb_lock_available { 8872 ACAMERA_CONTROL_AWB_LOCK_AVAILABLE_FALSE = 0, 8873 8874 ACAMERA_CONTROL_AWB_LOCK_AVAILABLE_TRUE = 1, 8875 8876 } acamera_metadata_enum_android_control_awb_lock_available_t; 8877 8878 // ACAMERA_CONTROL_ENABLE_ZSL 8879 typedef enum acamera_metadata_enum_acamera_control_enable_zsl { 8880 /** 8881 * <p>Requests with ACAMERA_CONTROL_CAPTURE_INTENT == STILL_CAPTURE must be captured 8882 * after previous requests.</p> 8883 * 8884 * @see ACAMERA_CONTROL_CAPTURE_INTENT 8885 */ 8886 ACAMERA_CONTROL_ENABLE_ZSL_FALSE = 0, 8887 8888 /** 8889 * <p>Requests with ACAMERA_CONTROL_CAPTURE_INTENT == STILL_CAPTURE may or may not be 8890 * captured before previous requests.</p> 8891 * 8892 * @see ACAMERA_CONTROL_CAPTURE_INTENT 8893 */ 8894 ACAMERA_CONTROL_ENABLE_ZSL_TRUE = 1, 8895 8896 } acamera_metadata_enum_android_control_enable_zsl_t; 8897 8898 // ACAMERA_CONTROL_AF_SCENE_CHANGE 8899 typedef enum acamera_metadata_enum_acamera_control_af_scene_change { 8900 /** 8901 * <p>Scene change is not detected within the AF region(s).</p> 8902 */ 8903 ACAMERA_CONTROL_AF_SCENE_CHANGE_NOT_DETECTED = 0, 8904 8905 /** 8906 * <p>Scene change is detected within the AF region(s).</p> 8907 */ 8908 ACAMERA_CONTROL_AF_SCENE_CHANGE_DETECTED = 1, 8909 8910 } acamera_metadata_enum_android_control_af_scene_change_t; 8911 8912 // ACAMERA_CONTROL_EXTENDED_SCENE_MODE 8913 typedef enum acamera_metadata_enum_acamera_control_extended_scene_mode { 8914 /** 8915 * <p>Extended scene mode is disabled.</p> 8916 */ 8917 ACAMERA_CONTROL_EXTENDED_SCENE_MODE_DISABLED = 0, 8918 8919 /** 8920 * <p>High quality bokeh mode is enabled for all non-raw streams (including YUV, 8921 * JPEG, and IMPLEMENTATION_DEFINED) when capture intent is STILL_CAPTURE. Due to the 8922 * extra image processing, this mode may introduce additional stall to non-raw streams. 8923 * This mode should be used in high quality still capture use case.</p> 8924 */ 8925 ACAMERA_CONTROL_EXTENDED_SCENE_MODE_BOKEH_STILL_CAPTURE = 1, 8926 8927 /** 8928 * <p>Bokeh effect must not slow down capture rate relative to sensor raw output, 8929 * and the effect is applied to all processed streams no larger than the maximum 8930 * streaming dimension. This mode should be used if performance and power are a 8931 * priority, such as video recording.</p> 8932 */ 8933 ACAMERA_CONTROL_EXTENDED_SCENE_MODE_BOKEH_CONTINUOUS = 2, 8934 8935 } acamera_metadata_enum_android_control_extended_scene_mode_t; 8936 8937 // ACAMERA_CONTROL_SETTINGS_OVERRIDE 8938 typedef enum acamera_metadata_enum_acamera_control_settings_override { 8939 /** 8940 * <p>No keys are applied sooner than the other keys when applying CaptureRequest 8941 * settings to the camera device. This is the default value.</p> 8942 */ 8943 ACAMERA_CONTROL_SETTINGS_OVERRIDE_OFF = 0, 8944 8945 /** 8946 * <p>Zoom related keys are applied sooner than the other keys in the CaptureRequest. The 8947 * zoom related keys are:</p> 8948 * <ul> 8949 * <li>ACAMERA_CONTROL_ZOOM_RATIO</li> 8950 * <li>ACAMERA_SCALER_CROP_REGION</li> 8951 * <li>ACAMERA_CONTROL_AE_REGIONS</li> 8952 * <li>ACAMERA_CONTROL_AWB_REGIONS</li> 8953 * <li>ACAMERA_CONTROL_AF_REGIONS</li> 8954 * </ul> 8955 * <p>Even though ACAMERA_CONTROL_AE_REGIONS, ACAMERA_CONTROL_AWB_REGIONS, 8956 * and ACAMERA_CONTROL_AF_REGIONS are not directly zoom related, applications 8957 * typically scale these regions together with ACAMERA_SCALER_CROP_REGION to have a 8958 * consistent mapping within the current field of view. In this aspect, they are 8959 * related to ACAMERA_SCALER_CROP_REGION and ACAMERA_CONTROL_ZOOM_RATIO.</p> 8960 * 8961 * @see ACAMERA_CONTROL_AE_REGIONS 8962 * @see ACAMERA_CONTROL_AF_REGIONS 8963 * @see ACAMERA_CONTROL_AWB_REGIONS 8964 * @see ACAMERA_CONTROL_ZOOM_RATIO 8965 * @see ACAMERA_SCALER_CROP_REGION 8966 */ 8967 ACAMERA_CONTROL_SETTINGS_OVERRIDE_ZOOM = 1, 8968 8969 } acamera_metadata_enum_android_control_settings_override_t; 8970 8971 // ACAMERA_CONTROL_AUTOFRAMING 8972 typedef enum acamera_metadata_enum_acamera_control_autoframing { 8973 /** 8974 * <p>Disable autoframing.</p> 8975 */ 8976 ACAMERA_CONTROL_AUTOFRAMING_OFF = 0, 8977 8978 /** 8979 * <p>Enable autoframing to keep people in the frame's field of view.</p> 8980 */ 8981 ACAMERA_CONTROL_AUTOFRAMING_ON = 1, 8982 8983 } acamera_metadata_enum_android_control_autoframing_t; 8984 8985 // ACAMERA_CONTROL_AUTOFRAMING_AVAILABLE 8986 typedef enum acamera_metadata_enum_acamera_control_autoframing_available { 8987 ACAMERA_CONTROL_AUTOFRAMING_AVAILABLE_FALSE = 0, 8988 8989 ACAMERA_CONTROL_AUTOFRAMING_AVAILABLE_TRUE = 1, 8990 8991 } acamera_metadata_enum_android_control_autoframing_available_t; 8992 8993 // ACAMERA_CONTROL_AUTOFRAMING_STATE 8994 typedef enum acamera_metadata_enum_acamera_control_autoframing_state { 8995 /** 8996 * <p>Auto-framing is inactive.</p> 8997 */ 8998 ACAMERA_CONTROL_AUTOFRAMING_STATE_INACTIVE = 0, 8999 9000 /** 9001 * <p>Auto-framing is in process - either zooming in, zooming out or pan is taking place.</p> 9002 */ 9003 ACAMERA_CONTROL_AUTOFRAMING_STATE_FRAMING = 1, 9004 9005 /** 9006 * <p>Auto-framing has reached a stable state (frame/fov is not being adjusted). The state 9007 * may transition back to FRAMING if the scene changes.</p> 9008 */ 9009 ACAMERA_CONTROL_AUTOFRAMING_STATE_CONVERGED = 2, 9010 9011 } acamera_metadata_enum_android_control_autoframing_state_t; 9012 9013 9014 9015 // ACAMERA_EDGE_MODE 9016 typedef enum acamera_metadata_enum_acamera_edge_mode { 9017 /** 9018 * <p>No edge enhancement is applied.</p> 9019 */ 9020 ACAMERA_EDGE_MODE_OFF = 0, 9021 9022 /** 9023 * <p>Apply edge enhancement at a quality level that does not slow down frame rate 9024 * relative to sensor output. It may be the same as OFF if edge enhancement will 9025 * slow down frame rate relative to sensor.</p> 9026 */ 9027 ACAMERA_EDGE_MODE_FAST = 1, 9028 9029 /** 9030 * <p>Apply high-quality edge enhancement, at a cost of possibly reduced output frame rate.</p> 9031 */ 9032 ACAMERA_EDGE_MODE_HIGH_QUALITY = 2, 9033 9034 /** 9035 * <p>Edge enhancement is applied at different 9036 * levels for different output streams, based on resolution. Streams at maximum recording 9037 * resolution (see {@link ACameraDevice_createCaptureSession }) 9038 * or below have edge enhancement applied, while higher-resolution streams have no edge 9039 * enhancement applied. The level of edge enhancement for low-resolution streams is tuned 9040 * so that frame rate is not impacted, and the quality is equal to or better than FAST 9041 * (since it is only applied to lower-resolution outputs, quality may improve from FAST).</p> 9042 * <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode 9043 * with YUV or PRIVATE reprocessing, where the application continuously captures 9044 * high-resolution intermediate buffers into a circular buffer, from which a final image is 9045 * produced via reprocessing when a user takes a picture. For such a use case, the 9046 * high-resolution buffers must not have edge enhancement applied to maximize efficiency of 9047 * preview and to avoid double-applying enhancement when reprocessed, while low-resolution 9048 * buffers (used for recording or preview, generally) need edge enhancement applied for 9049 * reasonable preview quality.</p> 9050 * <p>This mode is guaranteed to be supported by devices that support either the 9051 * YUV_REPROCESSING or PRIVATE_REPROCESSING capabilities 9052 * (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES lists either of those capabilities) and it will 9053 * be the default mode for CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG template.</p> 9054 * 9055 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 9056 */ 9057 ACAMERA_EDGE_MODE_ZERO_SHUTTER_LAG = 3, 9058 9059 } acamera_metadata_enum_android_edge_mode_t; 9060 9061 9062 // ACAMERA_FLASH_MODE 9063 typedef enum acamera_metadata_enum_acamera_flash_mode { 9064 /** 9065 * <p>Do not fire the flash for this capture.</p> 9066 */ 9067 ACAMERA_FLASH_MODE_OFF = 0, 9068 9069 /** 9070 * <p>If the flash is available and charged, fire flash 9071 * for this capture.</p> 9072 */ 9073 ACAMERA_FLASH_MODE_SINGLE = 1, 9074 9075 /** 9076 * <p>Transition flash to continuously on.</p> 9077 */ 9078 ACAMERA_FLASH_MODE_TORCH = 2, 9079 9080 } acamera_metadata_enum_android_flash_mode_t; 9081 9082 // ACAMERA_FLASH_STATE 9083 typedef enum acamera_metadata_enum_acamera_flash_state { 9084 /** 9085 * <p>No flash on camera.</p> 9086 */ 9087 ACAMERA_FLASH_STATE_UNAVAILABLE = 0, 9088 9089 /** 9090 * <p>Flash is charging and cannot be fired.</p> 9091 */ 9092 ACAMERA_FLASH_STATE_CHARGING = 1, 9093 9094 /** 9095 * <p>Flash is ready to fire.</p> 9096 */ 9097 ACAMERA_FLASH_STATE_READY = 2, 9098 9099 /** 9100 * <p>Flash fired for this capture.</p> 9101 */ 9102 ACAMERA_FLASH_STATE_FIRED = 3, 9103 9104 /** 9105 * <p>Flash partially illuminated this frame.</p> 9106 * <p>This is usually due to the next or previous frame having 9107 * the flash fire, and the flash spilling into this capture 9108 * due to hardware limitations.</p> 9109 */ 9110 ACAMERA_FLASH_STATE_PARTIAL = 4, 9111 9112 } acamera_metadata_enum_android_flash_state_t; 9113 9114 9115 // ACAMERA_FLASH_INFO_AVAILABLE 9116 typedef enum acamera_metadata_enum_acamera_flash_info_available { 9117 ACAMERA_FLASH_INFO_AVAILABLE_FALSE = 0, 9118 9119 ACAMERA_FLASH_INFO_AVAILABLE_TRUE = 1, 9120 9121 } acamera_metadata_enum_android_flash_info_available_t; 9122 9123 9124 // ACAMERA_HOT_PIXEL_MODE 9125 typedef enum acamera_metadata_enum_acamera_hot_pixel_mode { 9126 /** 9127 * <p>No hot pixel correction is applied.</p> 9128 * <p>The frame rate must not be reduced relative to sensor raw output 9129 * for this option.</p> 9130 * <p>The hotpixel map may be returned in ACAMERA_STATISTICS_HOT_PIXEL_MAP.</p> 9131 * 9132 * @see ACAMERA_STATISTICS_HOT_PIXEL_MAP 9133 */ 9134 ACAMERA_HOT_PIXEL_MODE_OFF = 0, 9135 9136 /** 9137 * <p>Hot pixel correction is applied, without reducing frame 9138 * rate relative to sensor raw output.</p> 9139 * <p>The hotpixel map may be returned in ACAMERA_STATISTICS_HOT_PIXEL_MAP.</p> 9140 * 9141 * @see ACAMERA_STATISTICS_HOT_PIXEL_MAP 9142 */ 9143 ACAMERA_HOT_PIXEL_MODE_FAST = 1, 9144 9145 /** 9146 * <p>High-quality hot pixel correction is applied, at a cost 9147 * of possibly reduced frame rate relative to sensor raw output.</p> 9148 * <p>The hotpixel map may be returned in ACAMERA_STATISTICS_HOT_PIXEL_MAP.</p> 9149 * 9150 * @see ACAMERA_STATISTICS_HOT_PIXEL_MAP 9151 */ 9152 ACAMERA_HOT_PIXEL_MODE_HIGH_QUALITY = 2, 9153 9154 } acamera_metadata_enum_android_hot_pixel_mode_t; 9155 9156 9157 9158 // ACAMERA_LENS_OPTICAL_STABILIZATION_MODE 9159 typedef enum acamera_metadata_enum_acamera_lens_optical_stabilization_mode { 9160 /** 9161 * <p>Optical stabilization is unavailable.</p> 9162 */ 9163 ACAMERA_LENS_OPTICAL_STABILIZATION_MODE_OFF = 0, 9164 9165 /** 9166 * <p>Optical stabilization is enabled.</p> 9167 */ 9168 ACAMERA_LENS_OPTICAL_STABILIZATION_MODE_ON = 1, 9169 9170 } acamera_metadata_enum_android_lens_optical_stabilization_mode_t; 9171 9172 // ACAMERA_LENS_FACING 9173 typedef enum acamera_metadata_enum_acamera_lens_facing { 9174 /** 9175 * <p>The camera device faces the same direction as the device's screen.</p> 9176 */ 9177 ACAMERA_LENS_FACING_FRONT = 0, 9178 9179 /** 9180 * <p>The camera device faces the opposite direction as the device's screen.</p> 9181 */ 9182 ACAMERA_LENS_FACING_BACK = 1, 9183 9184 /** 9185 * <p>The camera device is an external camera, and has no fixed facing relative to the 9186 * device's screen.</p> 9187 */ 9188 ACAMERA_LENS_FACING_EXTERNAL = 2, 9189 9190 } acamera_metadata_enum_android_lens_facing_t; 9191 9192 // ACAMERA_LENS_STATE 9193 typedef enum acamera_metadata_enum_acamera_lens_state { 9194 /** 9195 * <p>The lens parameters (ACAMERA_LENS_FOCAL_LENGTH, ACAMERA_LENS_FOCUS_DISTANCE, 9196 * ACAMERA_LENS_FILTER_DENSITY and ACAMERA_LENS_APERTURE) are not changing.</p> 9197 * 9198 * @see ACAMERA_LENS_APERTURE 9199 * @see ACAMERA_LENS_FILTER_DENSITY 9200 * @see ACAMERA_LENS_FOCAL_LENGTH 9201 * @see ACAMERA_LENS_FOCUS_DISTANCE 9202 */ 9203 ACAMERA_LENS_STATE_STATIONARY = 0, 9204 9205 /** 9206 * <p>One or several of the lens parameters 9207 * (ACAMERA_LENS_FOCAL_LENGTH, ACAMERA_LENS_FOCUS_DISTANCE, 9208 * ACAMERA_LENS_FILTER_DENSITY or ACAMERA_LENS_APERTURE) is 9209 * currently changing.</p> 9210 * 9211 * @see ACAMERA_LENS_APERTURE 9212 * @see ACAMERA_LENS_FILTER_DENSITY 9213 * @see ACAMERA_LENS_FOCAL_LENGTH 9214 * @see ACAMERA_LENS_FOCUS_DISTANCE 9215 */ 9216 ACAMERA_LENS_STATE_MOVING = 1, 9217 9218 } acamera_metadata_enum_android_lens_state_t; 9219 9220 // ACAMERA_LENS_POSE_REFERENCE 9221 typedef enum acamera_metadata_enum_acamera_lens_pose_reference { 9222 /** 9223 * <p>The value of ACAMERA_LENS_POSE_TRANSLATION is relative to the optical center of 9224 * the largest camera device facing the same direction as this camera.</p> 9225 * <p>This is the default value for API levels before Android P.</p> 9226 * 9227 * @see ACAMERA_LENS_POSE_TRANSLATION 9228 */ 9229 ACAMERA_LENS_POSE_REFERENCE_PRIMARY_CAMERA = 0, 9230 9231 /** 9232 * <p>The value of ACAMERA_LENS_POSE_TRANSLATION is relative to the position of the 9233 * primary gyroscope of this Android device.</p> 9234 * 9235 * @see ACAMERA_LENS_POSE_TRANSLATION 9236 */ 9237 ACAMERA_LENS_POSE_REFERENCE_GYROSCOPE = 1, 9238 9239 /** 9240 * <p>The camera device cannot represent the values of ACAMERA_LENS_POSE_TRANSLATION 9241 * and ACAMERA_LENS_POSE_ROTATION accurately enough. One such example is a camera device 9242 * on the cover of a foldable phone: in order to measure the pose translation and rotation, 9243 * some kind of hinge position sensor would be needed.</p> 9244 * <p>The value of ACAMERA_LENS_POSE_TRANSLATION must be all zeros, and 9245 * ACAMERA_LENS_POSE_ROTATION must be values matching its default facing.</p> 9246 * 9247 * @see ACAMERA_LENS_POSE_ROTATION 9248 * @see ACAMERA_LENS_POSE_TRANSLATION 9249 */ 9250 ACAMERA_LENS_POSE_REFERENCE_UNDEFINED = 2, 9251 9252 /** 9253 * <p>The value of ACAMERA_LENS_POSE_TRANSLATION is relative to the origin of the 9254 * automotive sensor coordinate system, which is at the center of the rear axle.</p> 9255 * 9256 * @see ACAMERA_LENS_POSE_TRANSLATION 9257 */ 9258 ACAMERA_LENS_POSE_REFERENCE_AUTOMOTIVE = 3, 9259 9260 } acamera_metadata_enum_android_lens_pose_reference_t; 9261 9262 9263 // ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION 9264 typedef enum acamera_metadata_enum_acamera_lens_info_focus_distance_calibration { 9265 /** 9266 * <p>The lens focus distance is not accurate, and the units used for 9267 * ACAMERA_LENS_FOCUS_DISTANCE do not correspond to any physical units.</p> 9268 * <p>Setting the lens to the same focus distance on separate occasions may 9269 * result in a different real focus distance, depending on factors such 9270 * as the orientation of the device, the age of the focusing mechanism, 9271 * and the device temperature. The focus distance value will still be 9272 * in the range of <code>[0, ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE]</code>, where 0 9273 * represents the farthest focus.</p> 9274 * 9275 * @see ACAMERA_LENS_FOCUS_DISTANCE 9276 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 9277 */ 9278 ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED = 0, 9279 9280 /** 9281 * <p>The lens focus distance is measured in diopters.</p> 9282 * <p>However, setting the lens to the same focus distance 9283 * on separate occasions may result in a different real 9284 * focus distance, depending on factors such as the 9285 * orientation of the device, the age of the focusing 9286 * mechanism, and the device temperature.</p> 9287 */ 9288 ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE = 1, 9289 9290 /** 9291 * <p>The lens focus distance is measured in diopters, and 9292 * is calibrated.</p> 9293 * <p>The lens mechanism is calibrated so that setting the 9294 * same focus distance is repeatable on multiple 9295 * occasions with good accuracy, and the focus distance 9296 * corresponds to the real physical distance to the plane 9297 * of best focus.</p> 9298 */ 9299 ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED = 2, 9300 9301 } acamera_metadata_enum_android_lens_info_focus_distance_calibration_t; 9302 9303 9304 // ACAMERA_NOISE_REDUCTION_MODE 9305 typedef enum acamera_metadata_enum_acamera_noise_reduction_mode { 9306 /** 9307 * <p>No noise reduction is applied.</p> 9308 */ 9309 ACAMERA_NOISE_REDUCTION_MODE_OFF = 0, 9310 9311 /** 9312 * <p>Noise reduction is applied without reducing frame rate relative to sensor 9313 * output. It may be the same as OFF if noise reduction will reduce frame rate 9314 * relative to sensor.</p> 9315 */ 9316 ACAMERA_NOISE_REDUCTION_MODE_FAST = 1, 9317 9318 /** 9319 * <p>High-quality noise reduction is applied, at the cost of possibly reduced frame 9320 * rate relative to sensor output.</p> 9321 */ 9322 ACAMERA_NOISE_REDUCTION_MODE_HIGH_QUALITY = 2, 9323 9324 /** 9325 * <p>MINIMAL noise reduction is applied without reducing frame rate relative to 9326 * sensor output. </p> 9327 */ 9328 ACAMERA_NOISE_REDUCTION_MODE_MINIMAL = 3, 9329 9330 /** 9331 * <p>Noise reduction is applied at different levels for different output streams, 9332 * based on resolution. Streams at maximum recording resolution (see {@link ACameraDevice_createCaptureSession }) 9333 * or below have noise reduction applied, while higher-resolution streams have MINIMAL (if 9334 * supported) or no noise reduction applied (if MINIMAL is not supported.) The degree of 9335 * noise reduction for low-resolution streams is tuned so that frame rate is not impacted, 9336 * and the quality is equal to or better than FAST (since it is only applied to 9337 * lower-resolution outputs, quality may improve from FAST).</p> 9338 * <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode 9339 * with YUV or PRIVATE reprocessing, where the application continuously captures 9340 * high-resolution intermediate buffers into a circular buffer, from which a final image is 9341 * produced via reprocessing when a user takes a picture. For such a use case, the 9342 * high-resolution buffers must not have noise reduction applied to maximize efficiency of 9343 * preview and to avoid over-applying noise filtering when reprocessing, while 9344 * low-resolution buffers (used for recording or preview, generally) need noise reduction 9345 * applied for reasonable preview quality.</p> 9346 * <p>This mode is guaranteed to be supported by devices that support either the 9347 * YUV_REPROCESSING or PRIVATE_REPROCESSING capabilities 9348 * (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES lists either of those capabilities) and it will 9349 * be the default mode for CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG template.</p> 9350 * 9351 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 9352 */ 9353 ACAMERA_NOISE_REDUCTION_MODE_ZERO_SHUTTER_LAG = 4, 9354 9355 } acamera_metadata_enum_android_noise_reduction_mode_t; 9356 9357 9358 9359 // ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 9360 typedef enum acamera_metadata_enum_acamera_request_available_capabilities { 9361 /** 9362 * <p>The minimal set of capabilities that every camera 9363 * device (regardless of ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL) 9364 * supports.</p> 9365 * <p>This capability is listed by all normal devices, and 9366 * indicates that the camera device has a feature set 9367 * that's comparable to the baseline requirements for the 9368 * older android.hardware.Camera API.</p> 9369 * <p>Devices with the DEPTH_OUTPUT capability might not list this 9370 * capability, indicating that they support only depth measurement, 9371 * not standard color output.</p> 9372 * 9373 * @see ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL 9374 */ 9375 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE = 0, 9376 9377 /** 9378 * <p>The camera device can be manually controlled (3A algorithms such 9379 * as auto-exposure, and auto-focus can be bypassed). 9380 * The camera device supports basic manual control of the sensor image 9381 * acquisition related stages. This means the following controls are 9382 * guaranteed to be supported:</p> 9383 * <ul> 9384 * <li>Manual frame duration control<ul> 9385 * <li>ACAMERA_SENSOR_FRAME_DURATION</li> 9386 * <li>ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION</li> 9387 * </ul> 9388 * </li> 9389 * <li>Manual exposure control<ul> 9390 * <li>ACAMERA_SENSOR_EXPOSURE_TIME</li> 9391 * <li>ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE</li> 9392 * </ul> 9393 * </li> 9394 * <li>Manual sensitivity control<ul> 9395 * <li>ACAMERA_SENSOR_SENSITIVITY</li> 9396 * <li>ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE</li> 9397 * </ul> 9398 * </li> 9399 * <li>Manual lens control (if the lens is adjustable)<ul> 9400 * <li>ACAMERA_LENS_*</li> 9401 * </ul> 9402 * </li> 9403 * <li>Manual flash control (if a flash unit is present)<ul> 9404 * <li>ACAMERA_FLASH_*</li> 9405 * </ul> 9406 * </li> 9407 * <li>Manual black level locking<ul> 9408 * <li>ACAMERA_BLACK_LEVEL_LOCK</li> 9409 * </ul> 9410 * </li> 9411 * <li>Auto exposure lock<ul> 9412 * <li>ACAMERA_CONTROL_AE_LOCK</li> 9413 * </ul> 9414 * </li> 9415 * </ul> 9416 * <p>If any of the above 3A algorithms are enabled, then the camera 9417 * device will accurately report the values applied by 3A in the 9418 * result.</p> 9419 * <p>A given camera device may also support additional manual sensor controls, 9420 * but this capability only covers the above list of controls.</p> 9421 * <p>If this is supported, android.scaler.streamConfigurationMap will 9422 * additionally return a min frame duration that is greater than 9423 * zero for each supported size-format combination.</p> 9424 * <p>For camera devices with LOGICAL_MULTI_CAMERA capability, when the underlying active 9425 * physical camera switches, exposureTime, sensitivity, and lens properties may change 9426 * even if AE/AF is locked. However, the overall auto exposure and auto focus experience 9427 * for users will be consistent. Refer to LOGICAL_MULTI_CAMERA capability for details.</p> 9428 * 9429 * @see ACAMERA_BLACK_LEVEL_LOCK 9430 * @see ACAMERA_CONTROL_AE_LOCK 9431 * @see ACAMERA_SENSOR_EXPOSURE_TIME 9432 * @see ACAMERA_SENSOR_FRAME_DURATION 9433 * @see ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE 9434 * @see ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION 9435 * @see ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE 9436 * @see ACAMERA_SENSOR_SENSITIVITY 9437 */ 9438 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR = 1, 9439 9440 /** 9441 * <p>The camera device post-processing stages can be manually controlled. 9442 * The camera device supports basic manual control of the image post-processing 9443 * stages. This means the following controls are guaranteed to be supported:</p> 9444 * <ul> 9445 * <li> 9446 * <p>Manual tonemap control</p> 9447 * <ul> 9448 * <li>android.tonemap.curve</li> 9449 * <li>ACAMERA_TONEMAP_MODE</li> 9450 * <li>ACAMERA_TONEMAP_MAX_CURVE_POINTS</li> 9451 * <li>ACAMERA_TONEMAP_GAMMA</li> 9452 * <li>ACAMERA_TONEMAP_PRESET_CURVE</li> 9453 * </ul> 9454 * </li> 9455 * <li> 9456 * <p>Manual white balance control</p> 9457 * <ul> 9458 * <li>ACAMERA_COLOR_CORRECTION_TRANSFORM</li> 9459 * <li>ACAMERA_COLOR_CORRECTION_GAINS</li> 9460 * </ul> 9461 * </li> 9462 * <li>Manual lens shading map control<ul> 9463 * <li>ACAMERA_SHADING_MODE</li> 9464 * <li>ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE</li> 9465 * <li>ACAMERA_STATISTICS_LENS_SHADING_MAP</li> 9466 * <li>ACAMERA_LENS_INFO_SHADING_MAP_SIZE</li> 9467 * </ul> 9468 * </li> 9469 * <li>Manual aberration correction control (if aberration correction is supported)<ul> 9470 * <li>ACAMERA_COLOR_CORRECTION_ABERRATION_MODE</li> 9471 * <li>ACAMERA_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES</li> 9472 * </ul> 9473 * </li> 9474 * <li>Auto white balance lock<ul> 9475 * <li>ACAMERA_CONTROL_AWB_LOCK</li> 9476 * </ul> 9477 * </li> 9478 * </ul> 9479 * <p>If auto white balance is enabled, then the camera device 9480 * will accurately report the values applied by AWB in the result.</p> 9481 * <p>A given camera device may also support additional post-processing 9482 * controls, but this capability only covers the above list of controls.</p> 9483 * <p>For camera devices with LOGICAL_MULTI_CAMERA capability, when underlying active 9484 * physical camera switches, tonemap, white balance, and shading map may change even if 9485 * awb is locked. However, the overall post-processing experience for users will be 9486 * consistent. Refer to LOGICAL_MULTI_CAMERA capability for details.</p> 9487 * 9488 * @see ACAMERA_COLOR_CORRECTION_ABERRATION_MODE 9489 * @see ACAMERA_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES 9490 * @see ACAMERA_COLOR_CORRECTION_GAINS 9491 * @see ACAMERA_COLOR_CORRECTION_TRANSFORM 9492 * @see ACAMERA_CONTROL_AWB_LOCK 9493 * @see ACAMERA_LENS_INFO_SHADING_MAP_SIZE 9494 * @see ACAMERA_SHADING_MODE 9495 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP 9496 * @see ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE 9497 * @see ACAMERA_TONEMAP_GAMMA 9498 * @see ACAMERA_TONEMAP_MAX_CURVE_POINTS 9499 * @see ACAMERA_TONEMAP_MODE 9500 * @see ACAMERA_TONEMAP_PRESET_CURVE 9501 */ 9502 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING = 2, 9503 9504 /** 9505 * <p>The camera device supports outputting RAW buffers and 9506 * metadata for interpreting them.</p> 9507 * <p>Devices supporting the RAW capability allow both for 9508 * saving DNG files, and for direct application processing of 9509 * raw sensor images.</p> 9510 * <ul> 9511 * <li>RAW_SENSOR is supported as an output format.</li> 9512 * <li>The maximum available resolution for RAW_SENSOR streams 9513 * will match either the value in 9514 * ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE or 9515 * ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE.</li> 9516 * <li>All DNG-related optional metadata entries are provided 9517 * by the camera device.</li> 9518 * </ul> 9519 * 9520 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 9521 * @see ACAMERA_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE 9522 */ 9523 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_RAW = 3, 9524 9525 /** 9526 * <p>The camera device supports accurately reporting the sensor settings for many of 9527 * the sensor controls while the built-in 3A algorithm is running. This allows 9528 * reporting of sensor settings even when these settings cannot be manually changed.</p> 9529 * <p>The values reported for the following controls are guaranteed to be available 9530 * in the CaptureResult, including when 3A is enabled:</p> 9531 * <ul> 9532 * <li>Exposure control<ul> 9533 * <li>ACAMERA_SENSOR_EXPOSURE_TIME</li> 9534 * </ul> 9535 * </li> 9536 * <li>Sensitivity control<ul> 9537 * <li>ACAMERA_SENSOR_SENSITIVITY</li> 9538 * </ul> 9539 * </li> 9540 * <li>Lens controls (if the lens is adjustable)<ul> 9541 * <li>ACAMERA_LENS_FOCUS_DISTANCE</li> 9542 * <li>ACAMERA_LENS_APERTURE</li> 9543 * </ul> 9544 * </li> 9545 * </ul> 9546 * <p>This capability is a subset of the MANUAL_SENSOR control capability, and will 9547 * always be included if the MANUAL_SENSOR capability is available.</p> 9548 * 9549 * @see ACAMERA_LENS_APERTURE 9550 * @see ACAMERA_LENS_FOCUS_DISTANCE 9551 * @see ACAMERA_SENSOR_EXPOSURE_TIME 9552 * @see ACAMERA_SENSOR_SENSITIVITY 9553 */ 9554 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_READ_SENSOR_SETTINGS = 5, 9555 9556 /** 9557 * <p>The camera device supports capturing high-resolution images at >= 20 frames per 9558 * second, in at least the uncompressed YUV format, when post-processing settings are 9559 * set to FAST. Additionally, all image resolutions less than 24 megapixels can be 9560 * captured at >= 10 frames per second. Here, 'high resolution' means at least 8 9561 * megapixels, or the maximum resolution of the device, whichever is smaller.</p> 9562 * <p>More specifically, this means that at least one output {@link AIMAGE_FORMAT_YUV_420_888 } size listed in 9563 * {@link ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS } 9564 * is larger or equal to the 'high resolution' defined above, and can be captured at at 9565 * least 20 fps. For the largest {@link AIMAGE_FORMAT_YUV_420_888 } size listed in 9566 * {@link ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS }, 9567 * camera device can capture this size for at least 10 frames per second if the size is 9568 * less than 24 megapixels. Also the ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES entry 9569 * lists at least one FPS range where the minimum FPS is >= 1 / minimumFrameDuration 9570 * for the largest YUV_420_888 size.</p> 9571 * <p>If the device supports the {@link AIMAGE_FORMAT_RAW10 }, {@link AIMAGE_FORMAT_RAW12 }, {@link AIMAGE_FORMAT_Y8 }, then those can also be 9572 * captured at the same rate as the maximum-size YUV_420_888 resolution is.</p> 9573 * <p>In addition, the ACAMERA_SYNC_MAX_LATENCY field is guaranteed to have a value between 0 9574 * and 4, inclusive. ACAMERA_CONTROL_AE_LOCK_AVAILABLE and ACAMERA_CONTROL_AWB_LOCK_AVAILABLE 9575 * are also guaranteed to be <code>true</code> so burst capture with these two locks ON yields 9576 * consistent image output.</p> 9577 * 9578 * @see ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES 9579 * @see ACAMERA_CONTROL_AE_LOCK_AVAILABLE 9580 * @see ACAMERA_CONTROL_AWB_LOCK_AVAILABLE 9581 * @see ACAMERA_SYNC_MAX_LATENCY 9582 */ 9583 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE = 6, 9584 9585 /** 9586 * <p>The camera device can produce depth measurements from its field of view.</p> 9587 * <p>This capability requires the camera device to support the following:</p> 9588 * <ul> 9589 * <li>{@link AIMAGE_FORMAT_DEPTH16 } is supported as 9590 * an output format.</li> 9591 * <li>{@link AIMAGE_FORMAT_DEPTH_POINT_CLOUD } is 9592 * optionally supported as an output format.</li> 9593 * <li>This camera device, and all camera devices with the same ACAMERA_LENS_FACING, will 9594 * list the following calibration metadata entries in both {@link ACameraManager_getCameraCharacteristics } 9595 * and {@link ACameraCaptureSession_captureCallback_result }:<ul> 9596 * <li>ACAMERA_LENS_POSE_TRANSLATION</li> 9597 * <li>ACAMERA_LENS_POSE_ROTATION</li> 9598 * <li>ACAMERA_LENS_INTRINSIC_CALIBRATION</li> 9599 * <li>ACAMERA_LENS_DISTORTION</li> 9600 * </ul> 9601 * </li> 9602 * <li>The ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE entry is listed by this device.</li> 9603 * <li>As of Android P, the ACAMERA_LENS_POSE_REFERENCE entry is listed by this device.</li> 9604 * <li>A LIMITED camera with only the DEPTH_OUTPUT capability does not have to support 9605 * normal YUV_420_888, Y8, JPEG, and PRIV-format outputs. It only has to support the 9606 * DEPTH16 format.</li> 9607 * </ul> 9608 * <p>Generally, depth output operates at a slower frame rate than standard color capture, 9609 * so the DEPTH16 and DEPTH_POINT_CLOUD formats will commonly have a stall duration that 9610 * should be accounted for (see {@link ACAMERA_DEPTH_AVAILABLE_DEPTH_STALL_DURATIONS }). 9611 * On a device that supports both depth and color-based output, to enable smooth preview, 9612 * using a repeating burst is recommended, where a depth-output target is only included 9613 * once every N frames, where N is the ratio between preview output rate and depth output 9614 * rate, including depth stall time.</p> 9615 * 9616 * @see ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE 9617 * @see ACAMERA_LENS_DISTORTION 9618 * @see ACAMERA_LENS_FACING 9619 * @see ACAMERA_LENS_INTRINSIC_CALIBRATION 9620 * @see ACAMERA_LENS_POSE_REFERENCE 9621 * @see ACAMERA_LENS_POSE_ROTATION 9622 * @see ACAMERA_LENS_POSE_TRANSLATION 9623 */ 9624 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT = 8, 9625 9626 /** 9627 * <p>The camera device supports the MOTION_TRACKING value for 9628 * ACAMERA_CONTROL_CAPTURE_INTENT, which limits maximum exposure time to 20 ms.</p> 9629 * <p>This limits the motion blur of capture images, resulting in better image tracking 9630 * results for use cases such as image stabilization or augmented reality.</p> 9631 * 9632 * @see ACAMERA_CONTROL_CAPTURE_INTENT 9633 */ 9634 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_MOTION_TRACKING = 10, 9635 9636 /** 9637 * <p>The camera device is a logical camera backed by two or more physical cameras.</p> 9638 * <p>In API level 28, the physical cameras must also be exposed to the application via 9639 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#getCameraIdList">CameraManager#getCameraIdList</a>.</p> 9640 * <p>Starting from API level 29:</p> 9641 * <ul> 9642 * <li>Some or all physical cameras may not be independently exposed to the application, 9643 * in which case the physical camera IDs will not be available in 9644 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#getCameraIdList">CameraManager#getCameraIdList</a>. But the 9645 * application can still query the physical cameras' characteristics by calling 9646 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#getCameraCharacteristics">CameraManager#getCameraCharacteristics</a>.</li> 9647 * <li>If a physical camera is hidden from camera ID list, the mandatory stream 9648 * combinations for that physical camera must be supported through the logical camera 9649 * using physical streams. One exception is that in API level 30, a physical camera 9650 * may become unavailable via 9651 * {@link ACameraManager_PhysicalCameraAvailabilityCallback } 9652 * callback.</li> 9653 * </ul> 9654 * <p>Combinations of logical and physical streams, or physical streams from different 9655 * physical cameras are not guaranteed. However, if the camera device supports 9656 * {@link ACameraDevice_isSessionConfigurationSupported }, 9657 * application must be able to query whether a stream combination involving physical 9658 * streams is supported by calling 9659 * {@link ACameraDevice_isSessionConfigurationSupported }.</p> 9660 * <p>Camera application shouldn't assume that there are at most 1 rear camera and 1 front 9661 * camera in the system. For an application that switches between front and back cameras, 9662 * the recommendation is to switch between the first rear camera and the first front 9663 * camera in the list of supported camera devices.</p> 9664 * <p>This capability requires the camera device to support the following:</p> 9665 * <ul> 9666 * <li>The IDs of underlying physical cameras are returned via 9667 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getPhysicalCameraIds">CameraCharacteristics#getPhysicalCameraIds</a>.</li> 9668 * <li>This camera device must list static metadata 9669 * ACAMERA_LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE in 9670 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a>.</li> 9671 * <li>The underlying physical cameras' static metadata must list the following entries, 9672 * so that the application can correlate pixels from the physical streams:<ul> 9673 * <li>ACAMERA_LENS_POSE_REFERENCE</li> 9674 * <li>ACAMERA_LENS_POSE_ROTATION</li> 9675 * <li>ACAMERA_LENS_POSE_TRANSLATION</li> 9676 * <li>ACAMERA_LENS_INTRINSIC_CALIBRATION</li> 9677 * <li>ACAMERA_LENS_DISTORTION</li> 9678 * </ul> 9679 * </li> 9680 * <li>The SENSOR_INFO_TIMESTAMP_SOURCE of the logical device and physical devices must be 9681 * the same.</li> 9682 * <li>The logical camera must be LIMITED or higher device.</li> 9683 * </ul> 9684 * <p>A logical camera device's dynamic metadata may contain 9685 * ACAMERA_LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID to notify the application of the current 9686 * active physical camera Id. An active physical camera is the physical camera from which 9687 * the logical camera's main image data outputs (YUV or RAW) and metadata come from. 9688 * In addition, this serves as an indication which physical camera is used to output to 9689 * a RAW stream, or in case only physical cameras support RAW, which physical RAW stream 9690 * the application should request.</p> 9691 * <p>Logical camera's static metadata tags below describe the default active physical 9692 * camera. An active physical camera is default if it's used when application directly 9693 * uses requests built from a template. All templates will default to the same active 9694 * physical camera.</p> 9695 * <ul> 9696 * <li>ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE</li> 9697 * <li>ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT</li> 9698 * <li>ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE</li> 9699 * <li>ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION</li> 9700 * <li>ACAMERA_SENSOR_INFO_PHYSICAL_SIZE</li> 9701 * <li>ACAMERA_SENSOR_INFO_WHITE_LEVEL</li> 9702 * <li>ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED</li> 9703 * <li>ACAMERA_SENSOR_REFERENCE_ILLUMINANT1</li> 9704 * <li>ACAMERA_SENSOR_REFERENCE_ILLUMINANT2</li> 9705 * <li>ACAMERA_SENSOR_CALIBRATION_TRANSFORM1</li> 9706 * <li>ACAMERA_SENSOR_CALIBRATION_TRANSFORM2</li> 9707 * <li>ACAMERA_SENSOR_COLOR_TRANSFORM1</li> 9708 * <li>ACAMERA_SENSOR_COLOR_TRANSFORM2</li> 9709 * <li>ACAMERA_SENSOR_FORWARD_MATRIX1</li> 9710 * <li>ACAMERA_SENSOR_FORWARD_MATRIX2</li> 9711 * <li>ACAMERA_SENSOR_BLACK_LEVEL_PATTERN</li> 9712 * <li>ACAMERA_SENSOR_MAX_ANALOG_SENSITIVITY</li> 9713 * <li>ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS</li> 9714 * <li>ACAMERA_SENSOR_AVAILABLE_TEST_PATTERN_MODES</li> 9715 * <li>ACAMERA_LENS_INFO_HYPERFOCAL_DISTANCE</li> 9716 * <li>ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE</li> 9717 * <li>ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION</li> 9718 * <li>ACAMERA_LENS_POSE_ROTATION</li> 9719 * <li>ACAMERA_LENS_POSE_TRANSLATION</li> 9720 * <li>ACAMERA_LENS_INTRINSIC_CALIBRATION</li> 9721 * <li>ACAMERA_LENS_POSE_REFERENCE</li> 9722 * <li>ACAMERA_LENS_DISTORTION</li> 9723 * </ul> 9724 * <p>The field of view of non-RAW physical streams must not be smaller than that of the 9725 * non-RAW logical streams, or the maximum field-of-view of the physical camera, 9726 * whichever is smaller. The application should check the physical capture result 9727 * metadata for how the physical streams are cropped or zoomed. More specifically, given 9728 * the physical camera result metadata, the effective horizontal field-of-view of the 9729 * physical camera is:</p> 9730 * <pre><code>fov = 2 * atan2(cropW * sensorW / (2 * zoomRatio * activeArrayW), focalLength) 9731 * </code></pre> 9732 * <p>where the equation parameters are the physical camera's crop region width, physical 9733 * sensor width, zoom ratio, active array width, and focal length respectively. Typically 9734 * the physical stream of active physical camera has the same field-of-view as the 9735 * logical streams. However, the same may not be true for physical streams from 9736 * non-active physical cameras. For example, if the logical camera has a wide-ultrawide 9737 * configuration where the wide lens is the default, when the crop region is set to the 9738 * logical camera's active array size, (and the zoom ratio set to 1.0 starting from 9739 * Android 11), a physical stream for the ultrawide camera may prefer outputting images 9740 * with larger field-of-view than that of the wide camera for better stereo matching 9741 * margin or more robust motion tracking. At the same time, the physical non-RAW streams' 9742 * field of view must not be smaller than the requested crop region and zoom ratio, as 9743 * long as it's within the physical lens' capability. For example, for a logical camera 9744 * with wide-tele lens configuration where the wide lens is the default, if the logical 9745 * camera's crop region is set to maximum size, and zoom ratio set to 1.0, the physical 9746 * stream for the tele lens will be configured to its maximum size crop region (no zoom).</p> 9747 * <p><em>Deprecated:</em> Prior to Android 11, the field of view of all non-RAW physical streams 9748 * cannot be larger than that of non-RAW logical streams. If the logical camera has a 9749 * wide-ultrawide lens configuration where the wide lens is the default, when the logical 9750 * camera's crop region is set to maximum size, the FOV of the physical streams for the 9751 * ultrawide lens will be the same as the logical stream, by making the crop region 9752 * smaller than its active array size to compensate for the smaller focal length.</p> 9753 * <p>For a logical camera, typically the underlying physical cameras have different RAW 9754 * capabilities (such as resolution or CFA pattern). There are two ways for the 9755 * application to capture RAW images from the logical camera:</p> 9756 * <ul> 9757 * <li>If the logical camera has RAW capability, the application can create and use RAW 9758 * streams in the same way as before. In case a RAW stream is configured, to maintain 9759 * backward compatibility, the camera device makes sure the default active physical 9760 * camera remains active and does not switch to other physical cameras. (One exception 9761 * is that, if the logical camera consists of identical image sensors and advertises 9762 * multiple focalLength due to different lenses, the camera device may generate RAW 9763 * images from different physical cameras based on the focalLength being set by the 9764 * application.) This backward-compatible approach usually results in loss of optical 9765 * zoom, to telephoto lens or to ultrawide lens.</li> 9766 * <li>Alternatively, if supported by the device, 9767 * <a href="https://developer.android.com/reference/android/hardware/camera2/MultiResolutionImageReader.html">MultiResolutionImageReader</a> 9768 * can be used to capture RAW images from one of the underlying physical cameras ( 9769 * depending on current zoom level). Because different physical cameras may have 9770 * different RAW characteristics, the application needs to use the characteristics 9771 * and result metadata of the active physical camera for the relevant RAW metadata.</li> 9772 * </ul> 9773 * <p>The capture request and result metadata tags required for backward compatible camera 9774 * functionalities will be solely based on the logical camera capability. On the other 9775 * hand, the use of manual capture controls (sensor or post-processing) with a 9776 * logical camera may result in unexpected behavior when the HAL decides to switch 9777 * between physical cameras with different characteristics under the hood. For example, 9778 * when the application manually sets exposure time and sensitivity while zooming in, 9779 * the brightness of the camera images may suddenly change because HAL switches from one 9780 * physical camera to the other.</p> 9781 * 9782 * @see ACAMERA_LENS_DISTORTION 9783 * @see ACAMERA_LENS_INFO_FOCUS_DISTANCE_CALIBRATION 9784 * @see ACAMERA_LENS_INFO_HYPERFOCAL_DISTANCE 9785 * @see ACAMERA_LENS_INFO_MINIMUM_FOCUS_DISTANCE 9786 * @see ACAMERA_LENS_INTRINSIC_CALIBRATION 9787 * @see ACAMERA_LENS_POSE_REFERENCE 9788 * @see ACAMERA_LENS_POSE_ROTATION 9789 * @see ACAMERA_LENS_POSE_TRANSLATION 9790 * @see ACAMERA_LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID 9791 * @see ACAMERA_LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE 9792 * @see ACAMERA_SENSOR_AVAILABLE_TEST_PATTERN_MODES 9793 * @see ACAMERA_SENSOR_BLACK_LEVEL_PATTERN 9794 * @see ACAMERA_SENSOR_CALIBRATION_TRANSFORM1 9795 * @see ACAMERA_SENSOR_CALIBRATION_TRANSFORM2 9796 * @see ACAMERA_SENSOR_COLOR_TRANSFORM1 9797 * @see ACAMERA_SENSOR_COLOR_TRANSFORM2 9798 * @see ACAMERA_SENSOR_FORWARD_MATRIX1 9799 * @see ACAMERA_SENSOR_FORWARD_MATRIX2 9800 * @see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT 9801 * @see ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE 9802 * @see ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED 9803 * @see ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION 9804 * @see ACAMERA_SENSOR_INFO_PHYSICAL_SIZE 9805 * @see ACAMERA_SENSOR_INFO_SENSITIVITY_RANGE 9806 * @see ACAMERA_SENSOR_INFO_WHITE_LEVEL 9807 * @see ACAMERA_SENSOR_MAX_ANALOG_SENSITIVITY 9808 * @see ACAMERA_SENSOR_OPTICAL_BLACK_REGIONS 9809 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 9810 * @see ACAMERA_SENSOR_REFERENCE_ILLUMINANT2 9811 */ 9812 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA = 11, 9813 9814 /** 9815 * <p>The camera device is a monochrome camera that doesn't contain a color filter array, 9816 * and for YUV_420_888 stream, the pixel values on U and V planes are all 128.</p> 9817 * <p>A MONOCHROME camera must support the guaranteed stream combinations required for 9818 * its device level and capabilities. Additionally, if the monochrome camera device 9819 * supports Y8 format, all mandatory stream combination requirements related to {@link AIMAGE_FORMAT_YUV_420_888 YUV_420_888} apply 9820 * to {@link AIMAGE_FORMAT_Y8 Y8} as well. There are no 9821 * mandatory stream combination requirements with regard to 9822 * {@link AIMAGE_FORMAT_Y8 Y8} for Bayer camera devices.</p> 9823 * <p>Starting from Android Q, the SENSOR_INFO_COLOR_FILTER_ARRANGEMENT of a MONOCHROME 9824 * camera will be either MONO or NIR.</p> 9825 */ 9826 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_MONOCHROME = 12, 9827 9828 /** 9829 * <p>The camera device is capable of writing image data into a region of memory 9830 * inaccessible to Android userspace or the Android kernel, and only accessible to 9831 * trusted execution environments (TEE).</p> 9832 */ 9833 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_SECURE_IMAGE_DATA = 13, 9834 9835 /** 9836 * <p>The camera device is only accessible by Android's system components and privileged 9837 * applications. Processes need to have the android.permission.SYSTEM_CAMERA in 9838 * addition to android.permission.CAMERA in order to connect to this camera device.</p> 9839 */ 9840 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_SYSTEM_CAMERA = 14, 9841 9842 /** 9843 * <p>This camera device is capable of producing ultra high resolution images in 9844 * addition to the image sizes described in the 9845 * android.scaler.streamConfigurationMap. 9846 * It can operate in 'default' mode and 'max resolution' mode. It generally does this 9847 * by binning pixels in 'default' mode and not binning them in 'max resolution' mode. 9848 * <code>android.scaler.streamConfigurationMap</code> describes the streams supported in 'default' 9849 * mode. 9850 * The stream configurations supported in 'max resolution' mode are described by 9851 * <code>android.scaler.streamConfigurationMapMaximumResolution</code>. 9852 * The maximum resolution mode pixel array size of a camera device 9853 * (<code>ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE</code>) with this capability, 9854 * will be at least 24 megapixels.</p> 9855 * 9856 * @see ACAMERA_SENSOR_INFO_PIXEL_ARRAY_SIZE 9857 */ 9858 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR 9859 = 16, 9860 9861 /** 9862 * <p>The camera device supports selecting a per-stream use case via 9863 * <a href="https://developer.android.com/reference/android/hardware/camera2/params/OutputConfiguration.html#setStreamUseCase">OutputConfiguration#setStreamUseCase</a> 9864 * so that the device can optimize camera pipeline parameters such as tuning, sensor 9865 * mode, or ISP settings for a specific user scenario. 9866 * Some sample usages of this capability are:</p> 9867 * <ul> 9868 * <li>Distinguish high quality YUV captures from a regular YUV stream where 9869 * the image quality may not be as good as the JPEG stream, or</li> 9870 * <li>Use one stream to serve multiple purposes: viewfinder, video recording and 9871 * still capture. This is common with applications that wish to apply edits equally 9872 * to preview, saved images, and saved videos.</li> 9873 * </ul> 9874 * <p>This capability requires the camera device to support the following 9875 * stream use cases:</p> 9876 * <ul> 9877 * <li>DEFAULT for backward compatibility where the application doesn't set 9878 * a stream use case</li> 9879 * <li>PREVIEW for live viewfinder and in-app image analysis</li> 9880 * <li>STILL_CAPTURE for still photo capture</li> 9881 * <li>VIDEO_RECORD for recording video clips</li> 9882 * <li>PREVIEW_VIDEO_STILL for one single stream used for viewfinder, video 9883 * recording, and still capture.</li> 9884 * <li>VIDEO_CALL for long running video calls</li> 9885 * </ul> 9886 * <p><a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#SCALER_AVAILABLE_STREAM_USE_CASES">CameraCharacteristics#SCALER_AVAILABLE_STREAM_USE_CASES</a> 9887 * lists all of the supported stream use cases.</p> 9888 * <p>Refer to 9889 * <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#stream-use-case-capability-additional-guaranteed-configurations">CameraDevice#stream-use-case-capability-additional-guaranteed-configurations</a> 9890 * for the mandatory stream combinations involving stream use cases, which can also be 9891 * queried via <a href="https://developer.android.com/reference/android/hardware/camera2/params/MandatoryStreamCombination.html">MandatoryStreamCombination</a>.</p> 9892 */ 9893 ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE = 19, 9894 9895 } acamera_metadata_enum_android_request_available_capabilities_t; 9896 9897 // ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP 9898 typedef enum acamera_metadata_enum_acamera_request_available_dynamic_range_profiles_map { 9899 /** 9900 * <p>8-bit SDR profile which is the default for all non 10-bit output capable devices.</p> 9901 */ 9902 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_STANDARD = 0x1, 9903 9904 /** 9905 * <p>10-bit pixel samples encoded using the Hybrid log-gamma transfer function.</p> 9906 */ 9907 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HLG10 = 0x2, 9908 9909 /** 9910 * <p>10-bit pixel samples encoded using the SMPTE ST 2084 transfer function. 9911 * This profile utilizes internal static metadata to increase the quality 9912 * of the capture.</p> 9913 */ 9914 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HDR10 = 0x4, 9915 9916 /** 9917 * <p>10-bit pixel samples encoded using the SMPTE ST 2084 transfer function. 9918 * In contrast to HDR10, this profile uses internal per-frame metadata 9919 * to further enhance the quality of the capture.</p> 9920 */ 9921 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HDR10_PLUS = 0x8, 9922 9923 /** 9924 * <p>This is a camera mode for Dolby Vision capture optimized for a more scene 9925 * accurate capture. This would typically differ from what a specific device 9926 * might want to tune for a consumer optimized Dolby Vision general capture.</p> 9927 */ 9928 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_REF 9929 = 0x10, 9930 9931 /** 9932 * <p>This is the power optimized mode for 10-bit Dolby Vision HDR Reference Mode.</p> 9933 */ 9934 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_REF_PO 9935 = 0x20, 9936 9937 /** 9938 * <p>This is the camera mode for the default Dolby Vision capture mode for the 9939 * specific device. This would be tuned by each specific device for consumer 9940 * pleasing results that resonate with their particular audience. We expect 9941 * that each specific device would have a different look for their default 9942 * Dolby Vision capture.</p> 9943 */ 9944 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_OEM 9945 = 0x40, 9946 9947 /** 9948 * <p>This is the power optimized mode for 10-bit Dolby Vision HDR device specific 9949 * capture Mode.</p> 9950 */ 9951 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_OEM_PO 9952 = 0x80, 9953 9954 /** 9955 * <p>This is the 8-bit version of the Dolby Vision reference capture mode optimized 9956 * for scene accuracy.</p> 9957 */ 9958 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_REF 9959 = 0x100, 9960 9961 /** 9962 * <p>This is the power optimized mode for 8-bit Dolby Vision HDR Reference Mode.</p> 9963 */ 9964 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_REF_PO 9965 = 0x200, 9966 9967 /** 9968 * <p>This is the 8-bit version of device specific tuned and optimized Dolby Vision 9969 * capture mode.</p> 9970 */ 9971 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_OEM 9972 = 0x400, 9973 9974 /** 9975 * <p>This is the power optimized mode for 8-bit Dolby Vision HDR device specific 9976 * capture Mode.</p> 9977 */ 9978 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_OEM_PO 9979 = 0x800, 9980 9981 /** 9982 * 9983 */ 9984 ACAMERA_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_MAX = 0x1000, 9985 9986 } acamera_metadata_enum_android_request_available_dynamic_range_profiles_map_t; 9987 9988 // ACAMERA_REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP 9989 typedef enum acamera_metadata_enum_acamera_request_available_color_space_profiles_map { 9990 /** 9991 * <p>Default value, when not explicitly specified. The Camera device will choose the color 9992 * space to employ.</p> 9993 */ 9994 ACAMERA_REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_UNSPECIFIED = -1, 9995 9996 /** 9997 * <p>RGB color space sRGB standardized as IEC 61966-2.1:1999.</p> 9998 */ 9999 ACAMERA_REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_SRGB = 0, 10000 10001 /** 10002 * <p>RGB color space Display P3 based on SMPTE RP 431-2-2007 and IEC 61966-2.1:1999.</p> 10003 */ 10004 ACAMERA_REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_DISPLAY_P3 = 7, 10005 10006 /** 10007 * <p>RGB color space BT.2100 standardized as Hybrid Log Gamma encoding.</p> 10008 */ 10009 ACAMERA_REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_BT2020_HLG = 16, 10010 10011 } acamera_metadata_enum_android_request_available_color_space_profiles_map_t; 10012 10013 10014 // ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS 10015 typedef enum acamera_metadata_enum_acamera_scaler_available_stream_configurations { 10016 ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_OUTPUT = 0, 10017 10018 ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_INPUT = 1, 10019 10020 } acamera_metadata_enum_android_scaler_available_stream_configurations_t; 10021 10022 // ACAMERA_SCALER_CROPPING_TYPE 10023 typedef enum acamera_metadata_enum_acamera_scaler_cropping_type { 10024 /** 10025 * <p>The camera device only supports centered crop regions.</p> 10026 */ 10027 ACAMERA_SCALER_CROPPING_TYPE_CENTER_ONLY = 0, 10028 10029 /** 10030 * <p>The camera device supports arbitrarily chosen crop regions.</p> 10031 */ 10032 ACAMERA_SCALER_CROPPING_TYPE_FREEFORM = 1, 10033 10034 } acamera_metadata_enum_android_scaler_cropping_type_t; 10035 10036 // ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS 10037 typedef enum acamera_metadata_enum_acamera_scaler_available_recommended_stream_configurations { 10038 /** 10039 * <p>Preview must only include non-stalling processed stream configurations with 10040 * output formats like 10041 * {@link AIMAGE_FORMAT_YUV_420_888 }, 10042 * {@link AIMAGE_FORMAT_PRIVATE }, etc.</p> 10043 */ 10044 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS_PREVIEW 10045 = 0x0, 10046 10047 /** 10048 * <p>Video record must include stream configurations that match the advertised 10049 * supported media profiles <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> with 10050 * IMPLEMENTATION_DEFINED format.</p> 10051 */ 10052 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS_RECORD 10053 = 0x1, 10054 10055 /** 10056 * <p>Video snapshot must include stream configurations at least as big as 10057 * the maximum RECORD resolutions and only with 10058 * {@link AIMAGE_FORMAT_JPEG JPEG output format}. 10059 * Additionally the configurations shouldn't cause preview glitches and also be able to 10060 * run at 30 fps.</p> 10061 */ 10062 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS_VIDEO_SNAPSHOT 10063 = 0x2, 10064 10065 /** 10066 * <p>Recommended snapshot stream configurations must include at least one with 10067 * size close to ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE and 10068 * {@link AIMAGE_FORMAT_JPEG JPEG output format}. 10069 * Taking into account restrictions on aspect ratio, alignment etc. the area of the 10070 * maximum suggested size shouldn’t be less than 97% of the sensor array size area.</p> 10071 * 10072 * @see ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE 10073 */ 10074 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS_SNAPSHOT 10075 = 0x3, 10076 10077 /** 10078 * <p>If supported, recommended input stream configurations must only be advertised with 10079 * ZSL along with other processed and/or stalling output formats.</p> 10080 */ 10081 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS_ZSL = 0x4, 10082 10083 /** 10084 * <p>If supported, recommended raw stream configurations must only include RAW based 10085 * output formats.</p> 10086 */ 10087 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS_RAW = 0x5, 10088 10089 /** 10090 * <p>If supported, the recommended low latency stream configurations must have 10091 * end-to-end latency that does not exceed 200 ms. under standard operating conditions 10092 * (reasonable light levels, not loaded system) and using template 10093 * TEMPLATE_STILL_CAPTURE. This is primarily for listing configurations for the 10094 * {@link AIMAGE_FORMAT_JPEG JPEG output format} 10095 * however other supported output formats can be added as well.</p> 10096 */ 10097 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS_LOW_LATENCY_SNAPSHOT 10098 = 0x6, 10099 10100 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS_PUBLIC_END 10101 = 0x7, 10102 10103 /** 10104 * <p>If supported, the recommended 10-bit output stream configurations must include 10105 * a subset of the advertised <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YCBCR_P010">ImageFormat#YCBCR_P010</a> and 10106 * <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> outputs that are optimized for power 10107 * and performance when registered along with a supported 10-bit dynamic range profile. 10108 * see android.hardware.camera2.params.OutputConfiguration#setDynamicRangeProfile for 10109 * details.</p> 10110 */ 10111 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS_10BIT_OUTPUT 10112 = 0x8, 10113 10114 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS_PUBLIC_END_3_8 10115 = 0x9, 10116 10117 /** 10118 * <p>Vendor defined use cases. These depend on the vendor implementation.</p> 10119 */ 10120 ACAMERA_SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS_VENDOR_START 10121 = 0x18, 10122 10123 } acamera_metadata_enum_android_scaler_available_recommended_stream_configurations_t; 10124 10125 // ACAMERA_SCALER_ROTATE_AND_CROP 10126 typedef enum acamera_metadata_enum_acamera_scaler_rotate_and_crop { 10127 /** 10128 * <p>No rotate and crop is applied. Processed outputs are in the sensor orientation.</p> 10129 */ 10130 ACAMERA_SCALER_ROTATE_AND_CROP_NONE = 0, 10131 10132 /** 10133 * <p>Processed images are rotated by 90 degrees clockwise, and then cropped 10134 * to the original aspect ratio.</p> 10135 */ 10136 ACAMERA_SCALER_ROTATE_AND_CROP_90 = 1, 10137 10138 /** 10139 * <p>Processed images are rotated by 180 degrees. Since the aspect ratio does not 10140 * change, no cropping is performed.</p> 10141 */ 10142 ACAMERA_SCALER_ROTATE_AND_CROP_180 = 2, 10143 10144 /** 10145 * <p>Processed images are rotated by 270 degrees clockwise, and then cropped 10146 * to the original aspect ratio.</p> 10147 */ 10148 ACAMERA_SCALER_ROTATE_AND_CROP_270 = 3, 10149 10150 /** 10151 * <p>The camera API automatically selects the best concrete value for 10152 * rotate-and-crop based on the application's support for resizability and the current 10153 * multi-window mode.</p> 10154 * <p>If the application does not support resizing but the display mode for its main 10155 * Activity is not in a typical orientation, the camera API will set <code>ROTATE_AND_CROP_90</code> 10156 * or some other supported rotation value, depending on device configuration, 10157 * to ensure preview and captured images are correctly shown to the user. Otherwise, 10158 * <code>ROTATE_AND_CROP_NONE</code> will be selected.</p> 10159 * <p>When a value other than NONE is selected, several metadata fields will also be parsed 10160 * differently to ensure that coordinates are correctly handled for features like drawing 10161 * face detection boxes or passing in tap-to-focus coordinates. The camera API will 10162 * convert positions in the active array coordinate system to/from the cropped-and-rotated 10163 * coordinate system to make the operation transparent for applications.</p> 10164 * <p>No coordinate mapping will be done when the application selects a non-AUTO mode.</p> 10165 */ 10166 ACAMERA_SCALER_ROTATE_AND_CROP_AUTO = 4, 10167 10168 } acamera_metadata_enum_android_scaler_rotate_and_crop_t; 10169 10170 // ACAMERA_SCALER_PHYSICAL_CAMERA_MULTI_RESOLUTION_STREAM_CONFIGURATIONS 10171 typedef enum acamera_metadata_enum_acamera_scaler_physical_camera_multi_resolution_stream_configurations { 10172 ACAMERA_SCALER_PHYSICAL_CAMERA_MULTI_RESOLUTION_STREAM_CONFIGURATIONS_OUTPUT 10173 = 0, 10174 10175 ACAMERA_SCALER_PHYSICAL_CAMERA_MULTI_RESOLUTION_STREAM_CONFIGURATIONS_INPUT 10176 = 1, 10177 10178 } acamera_metadata_enum_android_scaler_physical_camera_multi_resolution_stream_configurations_t; 10179 10180 // ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION 10181 typedef enum acamera_metadata_enum_acamera_scaler_available_stream_configurations_maximum_resolution { 10182 ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION_OUTPUT 10183 = 0, 10184 10185 ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION_INPUT 10186 = 1, 10187 10188 } acamera_metadata_enum_android_scaler_available_stream_configurations_maximum_resolution_t; 10189 10190 // ACAMERA_SCALER_MULTI_RESOLUTION_STREAM_SUPPORTED 10191 typedef enum acamera_metadata_enum_acamera_scaler_multi_resolution_stream_supported { 10192 ACAMERA_SCALER_MULTI_RESOLUTION_STREAM_SUPPORTED_FALSE = 0, 10193 10194 ACAMERA_SCALER_MULTI_RESOLUTION_STREAM_SUPPORTED_TRUE = 1, 10195 10196 } acamera_metadata_enum_android_scaler_multi_resolution_stream_supported_t; 10197 10198 // ACAMERA_SCALER_AVAILABLE_STREAM_USE_CASES 10199 typedef enum acamera_metadata_enum_acamera_scaler_available_stream_use_cases { 10200 /** 10201 * <p>Default stream use case.</p> 10202 * <p>This use case is the same as when the application doesn't set any use case for 10203 * the stream. The camera device uses the properties of the output target, such as 10204 * format, dataSpace, or surface class type, to optimize the image processing pipeline.</p> 10205 */ 10206 ACAMERA_SCALER_AVAILABLE_STREAM_USE_CASES_DEFAULT = 0x0, 10207 10208 /** 10209 * <p>Live stream shown to the user.</p> 10210 * <p>Optimized for performance and usability as a viewfinder, but not necessarily for 10211 * image quality. The output is not meant to be persisted as saved images or video.</p> 10212 * <p>No stall if ACAMERA_CONTROL_* are set to FAST. There may be stall if 10213 * they are set to HIGH_QUALITY. This use case has the same behavior as the 10214 * default SurfaceView and SurfaceTexture targets. Additionally, this use case can be 10215 * used for in-app image analysis.</p> 10216 */ 10217 ACAMERA_SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW = 0x1, 10218 10219 /** 10220 * <p>Still photo capture.</p> 10221 * <p>Optimized for high-quality high-resolution capture, and not expected to maintain 10222 * preview-like frame rates.</p> 10223 * <p>The stream may have stalls regardless of whether ACAMERA_CONTROL_* is HIGH_QUALITY. 10224 * This use case has the same behavior as the default JPEG and RAW related formats.</p> 10225 */ 10226 ACAMERA_SCALER_AVAILABLE_STREAM_USE_CASES_STILL_CAPTURE = 0x2, 10227 10228 /** 10229 * <p>Recording video clips.</p> 10230 * <p>Optimized for high-quality video capture, including high-quality image stabilization 10231 * if supported by the device and enabled by the application. As a result, may produce 10232 * output frames with a substantial lag from real time, to allow for highest-quality 10233 * stabilization or other processing. As such, such an output is not suitable for drawing 10234 * to screen directly, and is expected to be persisted to disk or similar for later 10235 * playback or processing. Only streams that set the VIDEO_RECORD use case are guaranteed 10236 * to have video stabilization applied when the video stabilization control is set 10237 * to ON, as opposed to PREVIEW_STABILIZATION.</p> 10238 * <p>This use case has the same behavior as the default MediaRecorder and MediaCodec 10239 * targets.</p> 10240 */ 10241 ACAMERA_SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_RECORD = 0x3, 10242 10243 /** 10244 * <p>One single stream used for combined purposes of preview, video, and still capture.</p> 10245 * <p>For such multi-purpose streams, the camera device aims to make the best tradeoff 10246 * between the individual use cases. For example, the STILL_CAPTURE use case by itself 10247 * may have stalls for achieving best image quality. But if combined with PREVIEW and 10248 * VIDEO_RECORD, the camera device needs to trade off the additional image processing 10249 * for speed so that preview and video recording aren't slowed down.</p> 10250 * <p>Similarly, VIDEO_RECORD may produce frames with a substantial lag, but 10251 * PREVIEW_VIDEO_STILL must have minimal output delay. This means that to enable video 10252 * stabilization with this use case, the device must support and the app must select the 10253 * PREVIEW_STABILIZATION mode for video stabilization.</p> 10254 */ 10255 ACAMERA_SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW_VIDEO_STILL = 0x4, 10256 10257 /** 10258 * <p>Long-running video call optimized for both power efficiency and video quality.</p> 10259 * <p>The camera sensor may run in a lower-resolution mode to reduce power consumption 10260 * at the cost of some image and digital zoom quality. Unlike VIDEO_RECORD, VIDEO_CALL 10261 * outputs are expected to work in dark conditions, so are usually accompanied with 10262 * variable frame rate settings to allow sufficient exposure time in low light.</p> 10263 */ 10264 ACAMERA_SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_CALL = 0x5, 10265 10266 /** 10267 * <p>Cropped RAW stream when the client chooses to crop the field of view.</p> 10268 * <p>Certain types of image sensors can run in binned modes in order to improve signal to 10269 * noise ratio while capturing frames. However, at certain zoom levels and / or when 10270 * other scene conditions are deemed fit, the camera sub-system may choose to un-bin and 10271 * remosaic the sensor's output. This results in a RAW frame which is cropped in field 10272 * of view and yet has the same number of pixels as full field of view RAW, thereby 10273 * improving image detail.</p> 10274 * <p>The resultant field of view of the RAW stream will be greater than or equal to 10275 * croppable non-RAW streams. The effective crop region for this RAW stream will be 10276 * reflected in the CaptureResult key ACAMERA_SCALER_RAW_CROP_REGION.</p> 10277 * <p>If this stream use case is set on a non-RAW stream, i.e. not one of :</p> 10278 * <ul> 10279 * <li>{@link AIMAGE_FORMAT_RAW16 RAW_SENSOR}</li> 10280 * <li>{@link AIMAGE_FORMAT_RAW10 RAW10}</li> 10281 * <li>{@link AIMAGE_FORMAT_RAW12 RAW12}</li> 10282 * </ul> 10283 * <p>session configuration is not guaranteed to succeed.</p> 10284 * <p>This stream use case may not be supported on some devices.</p> 10285 * 10286 * @see ACAMERA_SCALER_RAW_CROP_REGION 10287 */ 10288 ACAMERA_SCALER_AVAILABLE_STREAM_USE_CASES_CROPPED_RAW = 0x6, 10289 10290 } acamera_metadata_enum_android_scaler_available_stream_use_cases_t; 10291 10292 10293 // ACAMERA_SENSOR_REFERENCE_ILLUMINANT1 10294 typedef enum acamera_metadata_enum_acamera_sensor_reference_illuminant1 { 10295 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT = 1, 10296 10297 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_FLUORESCENT = 2, 10298 10299 /** 10300 * <p>Incandescent light</p> 10301 */ 10302 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_TUNGSTEN = 3, 10303 10304 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_FLASH = 4, 10305 10306 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_FINE_WEATHER = 9, 10307 10308 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_CLOUDY_WEATHER = 10, 10309 10310 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_SHADE = 11, 10311 10312 /** 10313 * <p>D 5700 - 7100K</p> 10314 */ 10315 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT_FLUORESCENT = 12, 10316 10317 /** 10318 * <p>N 4600 - 5400K</p> 10319 */ 10320 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_DAY_WHITE_FLUORESCENT = 13, 10321 10322 /** 10323 * <p>W 3900 - 4500K</p> 10324 */ 10325 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_COOL_WHITE_FLUORESCENT = 14, 10326 10327 /** 10328 * <p>WW 3200 - 3700K</p> 10329 */ 10330 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_WHITE_FLUORESCENT = 15, 10331 10332 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_STANDARD_A = 17, 10333 10334 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_STANDARD_B = 18, 10335 10336 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_STANDARD_C = 19, 10337 10338 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_D55 = 20, 10339 10340 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_D65 = 21, 10341 10342 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_D75 = 22, 10343 10344 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_D50 = 23, 10345 10346 ACAMERA_SENSOR_REFERENCE_ILLUMINANT1_ISO_STUDIO_TUNGSTEN = 24, 10347 10348 } acamera_metadata_enum_android_sensor_reference_illuminant1_t; 10349 10350 // ACAMERA_SENSOR_TEST_PATTERN_MODE 10351 typedef enum acamera_metadata_enum_acamera_sensor_test_pattern_mode { 10352 /** 10353 * <p>No test pattern mode is used, and the camera 10354 * device returns captures from the image sensor.</p> 10355 * <p>This is the default if the key is not set.</p> 10356 */ 10357 ACAMERA_SENSOR_TEST_PATTERN_MODE_OFF = 0, 10358 10359 /** 10360 * <p>Each pixel in <code>[R, G_even, G_odd, B]</code> is replaced by its 10361 * respective color channel provided in 10362 * ACAMERA_SENSOR_TEST_PATTERN_DATA.</p> 10363 * <p>For example:</p> 10364 * <pre><code>ACAMERA_SENSOR_TEST_PATTERN_DATA = [0, 0xFFFFFFFF, 0xFFFFFFFF, 0] 10365 * </code></pre> 10366 * <p>All green pixels are 100% green. All red/blue pixels are black.</p> 10367 * <pre><code>ACAMERA_SENSOR_TEST_PATTERN_DATA = [0xFFFFFFFF, 0, 0xFFFFFFFF, 0] 10368 * </code></pre> 10369 * <p>All red pixels are 100% red. Only the odd green pixels 10370 * are 100% green. All blue pixels are 100% black.</p> 10371 * 10372 * @see ACAMERA_SENSOR_TEST_PATTERN_DATA 10373 */ 10374 ACAMERA_SENSOR_TEST_PATTERN_MODE_SOLID_COLOR = 1, 10375 10376 /** 10377 * <p>All pixel data is replaced with an 8-bar color pattern.</p> 10378 * <p>The vertical bars (left-to-right) are as follows:</p> 10379 * <ul> 10380 * <li>100% white</li> 10381 * <li>yellow</li> 10382 * <li>cyan</li> 10383 * <li>green</li> 10384 * <li>magenta</li> 10385 * <li>red</li> 10386 * <li>blue</li> 10387 * <li>black</li> 10388 * </ul> 10389 * <p>In general the image would look like the following:</p> 10390 * <pre><code>W Y C G M R B K 10391 * W Y C G M R B K 10392 * W Y C G M R B K 10393 * W Y C G M R B K 10394 * W Y C G M R B K 10395 * . . . . . . . . 10396 * . . . . . . . . 10397 * . . . . . . . . 10398 * 10399 * (B = Blue, K = Black) 10400 * </code></pre> 10401 * <p>Each bar should take up 1/8 of the sensor pixel array width. 10402 * When this is not possible, the bar size should be rounded 10403 * down to the nearest integer and the pattern can repeat 10404 * on the right side.</p> 10405 * <p>Each bar's height must always take up the full sensor 10406 * pixel array height.</p> 10407 * <p>Each pixel in this test pattern must be set to either 10408 * 0% intensity or 100% intensity.</p> 10409 */ 10410 ACAMERA_SENSOR_TEST_PATTERN_MODE_COLOR_BARS = 2, 10411 10412 /** 10413 * <p>The test pattern is similar to COLOR_BARS, except that 10414 * each bar should start at its specified color at the top, 10415 * and fade to gray at the bottom.</p> 10416 * <p>Furthermore each bar is further subdivided into a left and 10417 * right half. The left half should have a smooth gradient, 10418 * and the right half should have a quantized gradient.</p> 10419 * <p>In particular, the right half's should consist of blocks of the 10420 * same color for 1/16th active sensor pixel array width.</p> 10421 * <p>The least significant bits in the quantized gradient should 10422 * be copied from the most significant bits of the smooth gradient.</p> 10423 * <p>The height of each bar should always be a multiple of 128. 10424 * When this is not the case, the pattern should repeat at the bottom 10425 * of the image.</p> 10426 */ 10427 ACAMERA_SENSOR_TEST_PATTERN_MODE_COLOR_BARS_FADE_TO_GRAY = 3, 10428 10429 /** 10430 * <p>All pixel data is replaced by a pseudo-random sequence 10431 * generated from a PN9 512-bit sequence (typically implemented 10432 * in hardware with a linear feedback shift register).</p> 10433 * <p>The generator should be reset at the beginning of each frame, 10434 * and thus each subsequent raw frame with this test pattern should 10435 * be exactly the same as the last.</p> 10436 */ 10437 ACAMERA_SENSOR_TEST_PATTERN_MODE_PN9 = 4, 10438 10439 /** 10440 * <p>The first custom test pattern. All custom patterns that are 10441 * available only on this camera device are at least this numeric 10442 * value.</p> 10443 * <p>All of the custom test patterns will be static 10444 * (that is the raw image must not vary from frame to frame).</p> 10445 */ 10446 ACAMERA_SENSOR_TEST_PATTERN_MODE_CUSTOM1 = 256, 10447 10448 } acamera_metadata_enum_android_sensor_test_pattern_mode_t; 10449 10450 // ACAMERA_SENSOR_PIXEL_MODE 10451 typedef enum acamera_metadata_enum_acamera_sensor_pixel_mode { 10452 /** 10453 * <p>This is the default sensor pixel mode.</p> 10454 */ 10455 ACAMERA_SENSOR_PIXEL_MODE_DEFAULT = 0, 10456 10457 /** 10458 * <p>In this mode, sensors typically do not bin pixels, as a result can offer larger 10459 * image sizes.</p> 10460 */ 10461 ACAMERA_SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION = 1, 10462 10463 } acamera_metadata_enum_android_sensor_pixel_mode_t; 10464 10465 // ACAMERA_SENSOR_RAW_BINNING_FACTOR_USED 10466 typedef enum acamera_metadata_enum_acamera_sensor_raw_binning_factor_used { 10467 /** 10468 * <p>The <code>RAW</code> targets in this capture have ACAMERA_SENSOR_INFO_BINNING_FACTOR as the 10469 * bayer pattern.</p> 10470 * 10471 * @see ACAMERA_SENSOR_INFO_BINNING_FACTOR 10472 */ 10473 ACAMERA_SENSOR_RAW_BINNING_FACTOR_USED_TRUE = 0, 10474 10475 /** 10476 * <p>The <code>RAW</code> targets have a regular bayer pattern in this capture.</p> 10477 */ 10478 ACAMERA_SENSOR_RAW_BINNING_FACTOR_USED_FALSE = 1, 10479 10480 } acamera_metadata_enum_android_sensor_raw_binning_factor_used_t; 10481 10482 10483 // ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT 10484 typedef enum acamera_metadata_enum_acamera_sensor_info_color_filter_arrangement { 10485 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB = 0, 10486 10487 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GRBG = 1, 10488 10489 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GBRG = 2, 10490 10491 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR = 3, 10492 10493 /** 10494 * <p>Sensor is not Bayer; output has 3 16-bit 10495 * values for each pixel, instead of just 1 16-bit value 10496 * per pixel.</p> 10497 */ 10498 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGB = 4, 10499 10500 /** 10501 * <p>Sensor doesn't have any Bayer color filter. 10502 * Such sensor captures visible light in monochrome. The exact weighting and 10503 * wavelengths captured is not specified, but generally only includes the visible 10504 * frequencies. This value implies a MONOCHROME camera.</p> 10505 */ 10506 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_MONO = 5, 10507 10508 /** 10509 * <p>Sensor has a near infrared filter capturing light with wavelength between 10510 * roughly 750nm and 1400nm, and the same filter covers the whole sensor array. This 10511 * value implies a MONOCHROME camera.</p> 10512 */ 10513 ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_NIR = 6, 10514 10515 } acamera_metadata_enum_android_sensor_info_color_filter_arrangement_t; 10516 10517 // ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE 10518 typedef enum acamera_metadata_enum_acamera_sensor_info_timestamp_source { 10519 /** 10520 * <p>Timestamps from ACAMERA_SENSOR_TIMESTAMP are in nanoseconds and monotonic, but can 10521 * not be compared to timestamps from other subsystems (e.g. accelerometer, gyro etc.), 10522 * or other instances of the same or different camera devices in the same system with 10523 * accuracy. However, the timestamps are roughly in the same timebase as 10524 * <a href="https://developer.android.com/reference/android/os/SystemClock.html#uptimeMillis">SystemClock#uptimeMillis</a>. The accuracy is sufficient for tasks 10525 * like A/V synchronization for video recording, at least, and the timestamps can be 10526 * directly used together with timestamps from the audio subsystem for that task.</p> 10527 * <p>Timestamps between streams and results for a single camera instance are comparable, 10528 * and the timestamps for all buffers and the result metadata generated by a single 10529 * capture are identical.</p> 10530 * 10531 * @see ACAMERA_SENSOR_TIMESTAMP 10532 */ 10533 ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE_UNKNOWN = 0, 10534 10535 /** 10536 * <p>Timestamps from ACAMERA_SENSOR_TIMESTAMP are in the same timebase as 10537 * <a href="https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtimeNanos">SystemClock#elapsedRealtimeNanos</a>, 10538 * and they can be compared to other timestamps using that base.</p> 10539 * <p>When buffers from a REALTIME device are passed directly to a video encoder from the 10540 * camera, automatic compensation is done to account for differing timebases of the 10541 * audio and camera subsystems. If the application is receiving buffers and then later 10542 * sending them to a video encoder or other application where they are compared with 10543 * audio subsystem timestamps or similar, this compensation is not present. In those 10544 * cases, applications need to adjust the timestamps themselves. Since <a href="https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtimeNanos">SystemClock#elapsedRealtimeNanos</a> and <a href="https://developer.android.com/reference/android/os/SystemClock.html#uptimeMillis">SystemClock#uptimeMillis</a> only diverge while the device is asleep, an 10545 * offset between the two sources can be measured once per active session and applied 10546 * to timestamps for sufficient accuracy for A/V sync.</p> 10547 * 10548 * @see ACAMERA_SENSOR_TIMESTAMP 10549 */ 10550 ACAMERA_SENSOR_INFO_TIMESTAMP_SOURCE_REALTIME = 1, 10551 10552 } acamera_metadata_enum_android_sensor_info_timestamp_source_t; 10553 10554 // ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED 10555 typedef enum acamera_metadata_enum_acamera_sensor_info_lens_shading_applied { 10556 ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED_FALSE = 0, 10557 10558 ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED_TRUE = 1, 10559 10560 } acamera_metadata_enum_android_sensor_info_lens_shading_applied_t; 10561 10562 10563 // ACAMERA_SHADING_MODE 10564 typedef enum acamera_metadata_enum_acamera_shading_mode { 10565 /** 10566 * <p>No lens shading correction is applied.</p> 10567 */ 10568 ACAMERA_SHADING_MODE_OFF = 0, 10569 10570 /** 10571 * <p>Apply lens shading corrections, without slowing 10572 * frame rate relative to sensor raw output</p> 10573 */ 10574 ACAMERA_SHADING_MODE_FAST = 1, 10575 10576 /** 10577 * <p>Apply high-quality lens shading correction, at the 10578 * cost of possibly reduced frame rate.</p> 10579 */ 10580 ACAMERA_SHADING_MODE_HIGH_QUALITY = 2, 10581 10582 } acamera_metadata_enum_android_shading_mode_t; 10583 10584 10585 // ACAMERA_STATISTICS_FACE_DETECT_MODE 10586 typedef enum acamera_metadata_enum_acamera_statistics_face_detect_mode { 10587 /** 10588 * <p>Do not include face detection statistics in capture 10589 * results.</p> 10590 */ 10591 ACAMERA_STATISTICS_FACE_DETECT_MODE_OFF = 0, 10592 10593 /** 10594 * <p>Return face rectangle and confidence values only.</p> 10595 */ 10596 ACAMERA_STATISTICS_FACE_DETECT_MODE_SIMPLE = 1, 10597 10598 /** 10599 * <p>Return all face 10600 * metadata.</p> 10601 * <p>In this mode, face rectangles, scores, landmarks, and face IDs are all valid.</p> 10602 */ 10603 ACAMERA_STATISTICS_FACE_DETECT_MODE_FULL = 2, 10604 10605 } acamera_metadata_enum_android_statistics_face_detect_mode_t; 10606 10607 // ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE 10608 typedef enum acamera_metadata_enum_acamera_statistics_hot_pixel_map_mode { 10609 /** 10610 * <p>Hot pixel map production is disabled.</p> 10611 */ 10612 ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE_OFF = 0, 10613 10614 /** 10615 * <p>Hot pixel map production is enabled.</p> 10616 */ 10617 ACAMERA_STATISTICS_HOT_PIXEL_MAP_MODE_ON = 1, 10618 10619 } acamera_metadata_enum_android_statistics_hot_pixel_map_mode_t; 10620 10621 // ACAMERA_STATISTICS_SCENE_FLICKER 10622 typedef enum acamera_metadata_enum_acamera_statistics_scene_flicker { 10623 /** 10624 * <p>The camera device does not detect any flickering illumination 10625 * in the current scene.</p> 10626 */ 10627 ACAMERA_STATISTICS_SCENE_FLICKER_NONE = 0, 10628 10629 /** 10630 * <p>The camera device detects illumination flickering at 50Hz 10631 * in the current scene.</p> 10632 */ 10633 ACAMERA_STATISTICS_SCENE_FLICKER_50HZ = 1, 10634 10635 /** 10636 * <p>The camera device detects illumination flickering at 60Hz 10637 * in the current scene.</p> 10638 */ 10639 ACAMERA_STATISTICS_SCENE_FLICKER_60HZ = 2, 10640 10641 } acamera_metadata_enum_android_statistics_scene_flicker_t; 10642 10643 // ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE 10644 typedef enum acamera_metadata_enum_acamera_statistics_lens_shading_map_mode { 10645 /** 10646 * <p>Do not include a lens shading map in the capture result.</p> 10647 */ 10648 ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE_OFF = 0, 10649 10650 /** 10651 * <p>Include a lens shading map in the capture result.</p> 10652 */ 10653 ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE_ON = 1, 10654 10655 } acamera_metadata_enum_android_statistics_lens_shading_map_mode_t; 10656 10657 // ACAMERA_STATISTICS_OIS_DATA_MODE 10658 typedef enum acamera_metadata_enum_acamera_statistics_ois_data_mode { 10659 /** 10660 * <p>Do not include OIS data in the capture result.</p> 10661 */ 10662 ACAMERA_STATISTICS_OIS_DATA_MODE_OFF = 0, 10663 10664 /** 10665 * <p>Include OIS data in the capture result.</p> 10666 * <p>ACAMERA_STATISTICS_OIS_TIMESTAMPS, ACAMERA_STATISTICS_OIS_X_SHIFTS, 10667 * and ACAMERA_STATISTICS_OIS_Y_SHIFTS provide OIS data in the output result metadata.</p> 10668 * 10669 * @see ACAMERA_STATISTICS_OIS_TIMESTAMPS 10670 * @see ACAMERA_STATISTICS_OIS_X_SHIFTS 10671 * @see ACAMERA_STATISTICS_OIS_Y_SHIFTS 10672 */ 10673 ACAMERA_STATISTICS_OIS_DATA_MODE_ON = 1, 10674 10675 } acamera_metadata_enum_android_statistics_ois_data_mode_t; 10676 10677 10678 10679 // ACAMERA_TONEMAP_MODE 10680 typedef enum acamera_metadata_enum_acamera_tonemap_mode { 10681 /** 10682 * <p>Use the tone mapping curve specified in 10683 * the ACAMERA_TONEMAPCURVE_* entries.</p> 10684 * <p>All color enhancement and tonemapping must be disabled, except 10685 * for applying the tonemapping curve specified by 10686 * android.tonemap.curve.</p> 10687 * <p>Must not slow down frame rate relative to raw 10688 * sensor output.</p> 10689 */ 10690 ACAMERA_TONEMAP_MODE_CONTRAST_CURVE = 0, 10691 10692 /** 10693 * <p>Advanced gamma mapping and color enhancement may be applied, without 10694 * reducing frame rate compared to raw sensor output.</p> 10695 */ 10696 ACAMERA_TONEMAP_MODE_FAST = 1, 10697 10698 /** 10699 * <p>High-quality gamma mapping and color enhancement will be applied, at 10700 * the cost of possibly reduced frame rate compared to raw sensor output.</p> 10701 */ 10702 ACAMERA_TONEMAP_MODE_HIGH_QUALITY = 2, 10703 10704 /** 10705 * <p>Use the gamma value specified in ACAMERA_TONEMAP_GAMMA to perform 10706 * tonemapping.</p> 10707 * <p>All color enhancement and tonemapping must be disabled, except 10708 * for applying the tonemapping curve specified by ACAMERA_TONEMAP_GAMMA.</p> 10709 * <p>Must not slow down frame rate relative to raw sensor output.</p> 10710 * 10711 * @see ACAMERA_TONEMAP_GAMMA 10712 */ 10713 ACAMERA_TONEMAP_MODE_GAMMA_VALUE = 3, 10714 10715 /** 10716 * <p>Use the preset tonemapping curve specified in 10717 * ACAMERA_TONEMAP_PRESET_CURVE to perform tonemapping.</p> 10718 * <p>All color enhancement and tonemapping must be disabled, except 10719 * for applying the tonemapping curve specified by 10720 * ACAMERA_TONEMAP_PRESET_CURVE.</p> 10721 * <p>Must not slow down frame rate relative to raw sensor output.</p> 10722 * 10723 * @see ACAMERA_TONEMAP_PRESET_CURVE 10724 */ 10725 ACAMERA_TONEMAP_MODE_PRESET_CURVE = 4, 10726 10727 } acamera_metadata_enum_android_tonemap_mode_t; 10728 10729 // ACAMERA_TONEMAP_PRESET_CURVE 10730 typedef enum acamera_metadata_enum_acamera_tonemap_preset_curve { 10731 /** 10732 * <p>Tonemapping curve is defined by sRGB</p> 10733 */ 10734 ACAMERA_TONEMAP_PRESET_CURVE_SRGB = 0, 10735 10736 /** 10737 * <p>Tonemapping curve is defined by ITU-R BT.709</p> 10738 */ 10739 ACAMERA_TONEMAP_PRESET_CURVE_REC709 = 1, 10740 10741 } acamera_metadata_enum_android_tonemap_preset_curve_t; 10742 10743 10744 10745 // ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL 10746 typedef enum acamera_metadata_enum_acamera_info_supported_hardware_level { 10747 /** 10748 * <p>This camera device does not have enough capabilities to qualify as a <code>FULL</code> device or 10749 * better.</p> 10750 * <p>Only the stream configurations listed in the <code>LEGACY</code> and <code>LIMITED</code> tables in the 10751 * {@link ACameraDevice_createCaptureSession } 10752 * documentation are guaranteed to be supported.</p> 10753 * <p>All <code>LIMITED</code> devices support the <code>BACKWARDS_COMPATIBLE</code> capability, indicating basic 10754 * support for color image capture. The only exception is that the device may 10755 * alternatively support only the <code>DEPTH_OUTPUT</code> capability, if it can only output depth 10756 * measurements and not color images.</p> 10757 * <p><code>LIMITED</code> devices and above require the use of ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 10758 * to lock exposure metering (and calculate flash power, for cameras with flash) before 10759 * capturing a high-quality still image.</p> 10760 * <p>A <code>LIMITED</code> device that only lists the <code>BACKWARDS_COMPATIBLE</code> capability is only 10761 * required to support full-automatic operation and post-processing (<code>OFF</code> is not 10762 * supported for ACAMERA_CONTROL_AE_MODE, ACAMERA_CONTROL_AF_MODE, or 10763 * ACAMERA_CONTROL_AWB_MODE)</p> 10764 * <p>Additional capabilities may optionally be supported by a <code>LIMITED</code>-level device, and 10765 * can be checked for in ACAMERA_REQUEST_AVAILABLE_CAPABILITIES.</p> 10766 * 10767 * @see ACAMERA_CONTROL_AE_MODE 10768 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 10769 * @see ACAMERA_CONTROL_AF_MODE 10770 * @see ACAMERA_CONTROL_AWB_MODE 10771 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 10772 */ 10773 ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED = 0, 10774 10775 /** 10776 * <p>This camera device is capable of supporting advanced imaging applications.</p> 10777 * <p>The stream configurations listed in the <code>FULL</code>, <code>LEGACY</code> and <code>LIMITED</code> tables in the 10778 * {@link ACameraDevice_createCaptureSession } 10779 * documentation are guaranteed to be supported.</p> 10780 * <p>A <code>FULL</code> device will support below capabilities:</p> 10781 * <ul> 10782 * <li><code>BURST_CAPTURE</code> capability (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains 10783 * <code>BURST_CAPTURE</code>)</li> 10784 * <li>Per frame control (ACAMERA_SYNC_MAX_LATENCY <code>==</code> PER_FRAME_CONTROL)</li> 10785 * <li>Manual sensor control (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains <code>MANUAL_SENSOR</code>)</li> 10786 * <li>Manual post-processing control (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains 10787 * <code>MANUAL_POST_PROCESSING</code>)</li> 10788 * <li>The required exposure time range defined in ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE</li> 10789 * <li>The required maxFrameDuration defined in ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION</li> 10790 * </ul> 10791 * <p>Note: 10792 * Pre-API level 23, FULL devices also supported arbitrary cropping region 10793 * (ACAMERA_SCALER_CROPPING_TYPE <code>== FREEFORM</code>); this requirement was relaxed in API level 10794 * 23, and <code>FULL</code> devices may only support <code>CENTERED</code> cropping.</p> 10795 * 10796 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 10797 * @see ACAMERA_SCALER_CROPPING_TYPE 10798 * @see ACAMERA_SENSOR_INFO_EXPOSURE_TIME_RANGE 10799 * @see ACAMERA_SENSOR_INFO_MAX_FRAME_DURATION 10800 * @see ACAMERA_SYNC_MAX_LATENCY 10801 */ 10802 ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL_FULL = 1, 10803 10804 /** 10805 * <p>This camera device is running in backward compatibility mode.</p> 10806 * <p>Only the stream configurations listed in the <code>LEGACY</code> table in the 10807 * {@link ACameraDevice_createCaptureSession } 10808 * documentation are supported.</p> 10809 * <p>A <code>LEGACY</code> device does not support per-frame control, manual sensor control, manual 10810 * post-processing, arbitrary cropping regions, and has relaxed performance constraints. 10811 * No additional capabilities beyond <code>BACKWARD_COMPATIBLE</code> will ever be listed by a 10812 * <code>LEGACY</code> device in ACAMERA_REQUEST_AVAILABLE_CAPABILITIES.</p> 10813 * <p>In addition, the ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER is not functional on <code>LEGACY</code> 10814 * devices. Instead, every request that includes a JPEG-format output target is treated 10815 * as triggering a still capture, internally executing a precapture trigger. This may 10816 * fire the flash for flash power metering during precapture, and then fire the flash 10817 * for the final capture, if a flash is available on the device and the AE mode is set to 10818 * enable the flash.</p> 10819 * <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> 10820 * 10821 * @see ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER 10822 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 10823 */ 10824 ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY = 2, 10825 10826 /** 10827 * <p>This camera device is capable of YUV reprocessing and RAW data capture, in addition to 10828 * FULL-level capabilities.</p> 10829 * <p>The stream configurations listed in the <code>LEVEL_3</code>, <code>RAW</code>, <code>FULL</code>, <code>LEGACY</code> and 10830 * <code>LIMITED</code> tables in the 10831 * {@link ACameraDevice_createCaptureSession } 10832 * documentation are guaranteed to be supported.</p> 10833 * <p>The following additional capabilities are guaranteed to be supported:</p> 10834 * <ul> 10835 * <li><code>YUV_REPROCESSING</code> capability (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains 10836 * <code>YUV_REPROCESSING</code>)</li> 10837 * <li><code>RAW</code> capability (ACAMERA_REQUEST_AVAILABLE_CAPABILITIES contains 10838 * <code>RAW</code>)</li> 10839 * </ul> 10840 * 10841 * @see ACAMERA_REQUEST_AVAILABLE_CAPABILITIES 10842 */ 10843 ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL_3 = 3, 10844 10845 /** 10846 * <p>This camera device is backed by an external camera connected to this Android device.</p> 10847 * <p>The device has capability identical to a LIMITED level device, with the following 10848 * exceptions:</p> 10849 * <ul> 10850 * <li>The device may not report lens/sensor related information such as<ul> 10851 * <li>ACAMERA_LENS_FOCAL_LENGTH</li> 10852 * <li>ACAMERA_LENS_INFO_HYPERFOCAL_DISTANCE</li> 10853 * <li>ACAMERA_SENSOR_INFO_PHYSICAL_SIZE</li> 10854 * <li>ACAMERA_SENSOR_INFO_WHITE_LEVEL</li> 10855 * <li>ACAMERA_SENSOR_BLACK_LEVEL_PATTERN</li> 10856 * <li>ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT</li> 10857 * <li>ACAMERA_SENSOR_ROLLING_SHUTTER_SKEW</li> 10858 * </ul> 10859 * </li> 10860 * <li>The device will report 0 for ACAMERA_SENSOR_ORIENTATION</li> 10861 * <li>The device has less guarantee on stable framerate, as the framerate partly depends 10862 * on the external camera being used.</li> 10863 * </ul> 10864 * 10865 * @see ACAMERA_LENS_FOCAL_LENGTH 10866 * @see ACAMERA_LENS_INFO_HYPERFOCAL_DISTANCE 10867 * @see ACAMERA_SENSOR_BLACK_LEVEL_PATTERN 10868 * @see ACAMERA_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT 10869 * @see ACAMERA_SENSOR_INFO_PHYSICAL_SIZE 10870 * @see ACAMERA_SENSOR_INFO_WHITE_LEVEL 10871 * @see ACAMERA_SENSOR_ORIENTATION 10872 * @see ACAMERA_SENSOR_ROLLING_SHUTTER_SKEW 10873 */ 10874 ACAMERA_INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL = 4, 10875 10876 } acamera_metadata_enum_android_info_supported_hardware_level_t; 10877 10878 10879 // ACAMERA_BLACK_LEVEL_LOCK 10880 typedef enum acamera_metadata_enum_acamera_black_level_lock { 10881 ACAMERA_BLACK_LEVEL_LOCK_OFF = 0, 10882 10883 ACAMERA_BLACK_LEVEL_LOCK_ON = 1, 10884 10885 } acamera_metadata_enum_android_black_level_lock_t; 10886 10887 10888 // ACAMERA_SYNC_FRAME_NUMBER 10889 typedef enum acamera_metadata_enum_acamera_sync_frame_number { 10890 /** 10891 * <p>The current result is not yet fully synchronized to any request.</p> 10892 * <p>Synchronization is in progress, and reading metadata from this 10893 * result may include a mix of data that have taken effect since the 10894 * last synchronization time.</p> 10895 * <p>In some future result, within ACAMERA_SYNC_MAX_LATENCY frames, 10896 * this value will update to the actual frame number frame number 10897 * the result is guaranteed to be synchronized to (as long as the 10898 * request settings remain constant).</p> 10899 * 10900 * @see ACAMERA_SYNC_MAX_LATENCY 10901 */ 10902 ACAMERA_SYNC_FRAME_NUMBER_CONVERGING = -1, 10903 10904 /** 10905 * <p>The current result's synchronization status is unknown.</p> 10906 * <p>The result may have already converged, or it may be in 10907 * progress. Reading from this result may include some mix 10908 * of settings from past requests.</p> 10909 * <p>After a settings change, the new settings will eventually all 10910 * take effect for the output buffers and results. However, this 10911 * value will not change when that happens. Altering settings 10912 * rapidly may provide outcomes using mixes of settings from recent 10913 * requests.</p> 10914 * <p>This value is intended primarily for backwards compatibility with 10915 * the older camera implementations (for android.hardware.Camera).</p> 10916 */ 10917 ACAMERA_SYNC_FRAME_NUMBER_UNKNOWN = -2, 10918 10919 } acamera_metadata_enum_android_sync_frame_number_t; 10920 10921 // ACAMERA_SYNC_MAX_LATENCY 10922 typedef enum acamera_metadata_enum_acamera_sync_max_latency { 10923 /** 10924 * <p>Every frame has the requests immediately applied.</p> 10925 * <p>Changing controls over multiple requests one after another will 10926 * produce results that have those controls applied atomically 10927 * each frame.</p> 10928 * <p>All FULL capability devices will have this as their maxLatency.</p> 10929 */ 10930 ACAMERA_SYNC_MAX_LATENCY_PER_FRAME_CONTROL = 0, 10931 10932 /** 10933 * <p>Each new frame has some subset (potentially the entire set) 10934 * of the past requests applied to the camera settings.</p> 10935 * <p>By submitting a series of identical requests, the camera device 10936 * will eventually have the camera settings applied, but it is 10937 * unknown when that exact point will be.</p> 10938 * <p>All LEGACY capability devices will have this as their maxLatency.</p> 10939 */ 10940 ACAMERA_SYNC_MAX_LATENCY_UNKNOWN = -1, 10941 10942 } acamera_metadata_enum_android_sync_max_latency_t; 10943 10944 10945 10946 // ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS 10947 typedef enum acamera_metadata_enum_acamera_depth_available_depth_stream_configurations { 10948 ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_OUTPUT = 0, 10949 10950 ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_INPUT = 1, 10951 10952 } acamera_metadata_enum_android_depth_available_depth_stream_configurations_t; 10953 10954 // ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE 10955 typedef enum acamera_metadata_enum_acamera_depth_depth_is_exclusive { 10956 ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE_FALSE = 0, 10957 10958 ACAMERA_DEPTH_DEPTH_IS_EXCLUSIVE_TRUE = 1, 10959 10960 } acamera_metadata_enum_android_depth_depth_is_exclusive_t; 10961 10962 // ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS 10963 typedef enum acamera_metadata_enum_acamera_depth_available_dynamic_depth_stream_configurations { 10964 ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS_OUTPUT 10965 = 0, 10966 10967 ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS_INPUT 10968 = 1, 10969 10970 } acamera_metadata_enum_android_depth_available_dynamic_depth_stream_configurations_t; 10971 10972 // ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION 10973 typedef enum acamera_metadata_enum_acamera_depth_available_depth_stream_configurations_maximum_resolution { 10974 ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION_OUTPUT 10975 = 0, 10976 10977 ACAMERA_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION_INPUT 10978 = 1, 10979 10980 } acamera_metadata_enum_android_depth_available_depth_stream_configurations_maximum_resolution_t; 10981 10982 // ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION 10983 typedef enum acamera_metadata_enum_acamera_depth_available_dynamic_depth_stream_configurations_maximum_resolution { 10984 ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION_OUTPUT 10985 = 0, 10986 10987 ACAMERA_DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION_INPUT 10988 = 1, 10989 10990 } acamera_metadata_enum_android_depth_available_dynamic_depth_stream_configurations_maximum_resolution_t; 10991 10992 10993 // ACAMERA_LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE 10994 typedef enum acamera_metadata_enum_acamera_logical_multi_camera_sensor_sync_type { 10995 /** 10996 * <p>A software mechanism is used to synchronize between the physical cameras. As a result, 10997 * the timestamp of an image from a physical stream is only an approximation of the 10998 * image sensor start-of-exposure time.</p> 10999 */ 11000 ACAMERA_LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_APPROXIMATE = 0, 11001 11002 /** 11003 * <p>The camera device supports frame timestamp synchronization at the hardware level, 11004 * and the timestamp of a physical stream image accurately reflects its 11005 * start-of-exposure time.</p> 11006 */ 11007 ACAMERA_LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_CALIBRATED = 1, 11008 11009 } acamera_metadata_enum_android_logical_multi_camera_sensor_sync_type_t; 11010 11011 11012 // ACAMERA_DISTORTION_CORRECTION_MODE 11013 typedef enum acamera_metadata_enum_acamera_distortion_correction_mode { 11014 /** 11015 * <p>No distortion correction is applied.</p> 11016 */ 11017 ACAMERA_DISTORTION_CORRECTION_MODE_OFF = 0, 11018 11019 /** 11020 * <p>Lens distortion correction is applied without reducing frame rate 11021 * relative to sensor output. It may be the same as OFF if distortion correction would 11022 * reduce frame rate relative to sensor.</p> 11023 */ 11024 ACAMERA_DISTORTION_CORRECTION_MODE_FAST = 1, 11025 11026 /** 11027 * <p>High-quality distortion correction is applied, at the cost of 11028 * possibly reduced frame rate relative to sensor output.</p> 11029 */ 11030 ACAMERA_DISTORTION_CORRECTION_MODE_HIGH_QUALITY = 2, 11031 11032 } acamera_metadata_enum_android_distortion_correction_mode_t; 11033 11034 11035 // ACAMERA_HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS 11036 typedef enum acamera_metadata_enum_acamera_heic_available_heic_stream_configurations { 11037 ACAMERA_HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS_OUTPUT = 0, 11038 11039 ACAMERA_HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS_INPUT = 1, 11040 11041 } acamera_metadata_enum_android_heic_available_heic_stream_configurations_t; 11042 11043 // ACAMERA_HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION 11044 typedef enum acamera_metadata_enum_acamera_heic_available_heic_stream_configurations_maximum_resolution { 11045 ACAMERA_HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION_OUTPUT 11046 = 0, 11047 11048 ACAMERA_HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION_INPUT 11049 = 1, 11050 11051 } acamera_metadata_enum_android_heic_available_heic_stream_configurations_maximum_resolution_t; 11052 11053 11054 11055 // ACAMERA_AUTOMOTIVE_LOCATION 11056 typedef enum acamera_metadata_enum_acamera_automotive_location { 11057 /** 11058 * <p>The camera device exists inside of the vehicle cabin.</p> 11059 */ 11060 ACAMERA_AUTOMOTIVE_LOCATION_INTERIOR = 0, 11061 11062 /** 11063 * <p>The camera exists outside of the vehicle body frame but not exactly on one of the 11064 * exterior locations this enum defines. The applications should determine the exact 11065 * location from ACAMERA_LENS_POSE_TRANSLATION.</p> 11066 * 11067 * @see ACAMERA_LENS_POSE_TRANSLATION 11068 */ 11069 ACAMERA_AUTOMOTIVE_LOCATION_EXTERIOR_OTHER = 1, 11070 11071 /** 11072 * <p>The camera device exists outside of the vehicle body frame and on its front side.</p> 11073 */ 11074 ACAMERA_AUTOMOTIVE_LOCATION_EXTERIOR_FRONT = 2, 11075 11076 /** 11077 * <p>The camera device exists outside of the vehicle body frame and on its rear side.</p> 11078 */ 11079 ACAMERA_AUTOMOTIVE_LOCATION_EXTERIOR_REAR = 3, 11080 11081 /** 11082 * <p>The camera device exists outside and on left side of the vehicle body frame.</p> 11083 */ 11084 ACAMERA_AUTOMOTIVE_LOCATION_EXTERIOR_LEFT = 4, 11085 11086 /** 11087 * <p>The camera device exists outside and on right side of the vehicle body frame.</p> 11088 */ 11089 ACAMERA_AUTOMOTIVE_LOCATION_EXTERIOR_RIGHT = 5, 11090 11091 /** 11092 * <p>The camera device exists on an extra vehicle, such as the trailer, but not exactly 11093 * on one of front, rear, left, or right side. Applications should determine the exact 11094 * location from ACAMERA_LENS_POSE_TRANSLATION.</p> 11095 * 11096 * @see ACAMERA_LENS_POSE_TRANSLATION 11097 */ 11098 ACAMERA_AUTOMOTIVE_LOCATION_EXTRA_OTHER = 6, 11099 11100 /** 11101 * <p>The camera device exists outside of the extra vehicle's body frame and on its front 11102 * side.</p> 11103 */ 11104 ACAMERA_AUTOMOTIVE_LOCATION_EXTRA_FRONT = 7, 11105 11106 /** 11107 * <p>The camera device exists outside of the extra vehicle's body frame and on its rear 11108 * side.</p> 11109 */ 11110 ACAMERA_AUTOMOTIVE_LOCATION_EXTRA_REAR = 8, 11111 11112 /** 11113 * <p>The camera device exists outside and on left side of the extra vehicle body.</p> 11114 */ 11115 ACAMERA_AUTOMOTIVE_LOCATION_EXTRA_LEFT = 9, 11116 11117 /** 11118 * <p>The camera device exists outside and on right side of the extra vehicle body.</p> 11119 */ 11120 ACAMERA_AUTOMOTIVE_LOCATION_EXTRA_RIGHT = 10, 11121 11122 } acamera_metadata_enum_android_automotive_location_t; 11123 11124 11125 // ACAMERA_AUTOMOTIVE_LENS_FACING 11126 typedef enum acamera_metadata_enum_acamera_automotive_lens_facing { 11127 /** 11128 * <p>The camera device faces the outside of the vehicle body frame but not exactly 11129 * one of the exterior sides defined by this enum. Applications should determine 11130 * the exact facing direction from ACAMERA_LENS_POSE_ROTATION and 11131 * ACAMERA_LENS_POSE_TRANSLATION.</p> 11132 * 11133 * @see ACAMERA_LENS_POSE_ROTATION 11134 * @see ACAMERA_LENS_POSE_TRANSLATION 11135 */ 11136 ACAMERA_AUTOMOTIVE_LENS_FACING_EXTERIOR_OTHER = 0, 11137 11138 /** 11139 * <p>The camera device faces the front of the vehicle body frame.</p> 11140 */ 11141 ACAMERA_AUTOMOTIVE_LENS_FACING_EXTERIOR_FRONT = 1, 11142 11143 /** 11144 * <p>The camera device faces the rear of the vehicle body frame.</p> 11145 */ 11146 ACAMERA_AUTOMOTIVE_LENS_FACING_EXTERIOR_REAR = 2, 11147 11148 /** 11149 * <p>The camera device faces the left side of the vehicle body frame.</p> 11150 */ 11151 ACAMERA_AUTOMOTIVE_LENS_FACING_EXTERIOR_LEFT = 3, 11152 11153 /** 11154 * <p>The camera device faces the right side of the vehicle body frame.</p> 11155 */ 11156 ACAMERA_AUTOMOTIVE_LENS_FACING_EXTERIOR_RIGHT = 4, 11157 11158 /** 11159 * <p>The camera device faces the inside of the vehicle body frame but not exactly 11160 * one of seats described by this enum. Applications should determine the exact 11161 * facing direction from ACAMERA_LENS_POSE_ROTATION and ACAMERA_LENS_POSE_TRANSLATION.</p> 11162 * 11163 * @see ACAMERA_LENS_POSE_ROTATION 11164 * @see ACAMERA_LENS_POSE_TRANSLATION 11165 */ 11166 ACAMERA_AUTOMOTIVE_LENS_FACING_INTERIOR_OTHER = 5, 11167 11168 /** 11169 * <p>The camera device faces the left side seat of the first row.</p> 11170 */ 11171 ACAMERA_AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_LEFT = 6, 11172 11173 /** 11174 * <p>The camera device faces the center seat of the first row.</p> 11175 */ 11176 ACAMERA_AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_CENTER = 7, 11177 11178 /** 11179 * <p>The camera device faces the right seat of the first row.</p> 11180 */ 11181 ACAMERA_AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_RIGHT = 8, 11182 11183 /** 11184 * <p>The camera device faces the left side seat of the second row.</p> 11185 */ 11186 ACAMERA_AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_LEFT = 9, 11187 11188 /** 11189 * <p>The camera device faces the center seat of the second row.</p> 11190 */ 11191 ACAMERA_AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_CENTER = 10, 11192 11193 /** 11194 * <p>The camera device faces the right side seat of the second row.</p> 11195 */ 11196 ACAMERA_AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_RIGHT = 11, 11197 11198 /** 11199 * <p>The camera device faces the left side seat of the third row.</p> 11200 */ 11201 ACAMERA_AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_LEFT = 12, 11202 11203 /** 11204 * <p>The camera device faces the center seat of the third row.</p> 11205 */ 11206 ACAMERA_AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_CENTER = 13, 11207 11208 /** 11209 * <p>The camera device faces the right seat of the third row.</p> 11210 */ 11211 ACAMERA_AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_RIGHT = 14, 11212 11213 } acamera_metadata_enum_android_automotive_lens_facing_t; 11214 11215 11216 11217 // ACAMERA_JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS 11218 typedef enum acamera_metadata_enum_acamera_jpegr_available_jpeg_r_stream_configurations { 11219 ACAMERA_JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS_OUTPUT = 0, 11220 11221 ACAMERA_JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS_INPUT = 1, 11222 11223 } acamera_metadata_enum_android_jpegr_available_jpeg_r_stream_configurations_t; 11224 11225 // ACAMERA_JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION 11226 typedef enum acamera_metadata_enum_acamera_jpegr_available_jpeg_r_stream_configurations_maximum_resolution { 11227 ACAMERA_JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION_OUTPUT 11228 = 0, 11229 11230 ACAMERA_JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION_INPUT 11231 = 1, 11232 11233 } acamera_metadata_enum_android_jpegr_available_jpeg_r_stream_configurations_maximum_resolution_t; 11234 11235 11236 11237 __END_DECLS 11238 11239 #endif /* _NDK_CAMERA_METADATA_TAGS_H */ 11240 11241 /** @} */ 11242