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