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