Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 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 | |
Eino-Ville Talvala | 2f1a2e4 | 2013-07-25 17:12:05 -0700 | [diff] [blame] | 17 | package android.hardware.camera2; |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 18 | |
| 19 | import android.graphics.Point; |
| 20 | import android.graphics.Rect; |
| 21 | |
| 22 | /** |
| 23 | * <p>The results of a single image capture from the image sensor.</p> |
| 24 | * |
| 25 | * <p>Contains the final configuration for the capture hardware (sensor, lens, |
| 26 | * flash), the processing pipeline, the control algorithms, and the output |
| 27 | * buffers.</p> |
| 28 | * |
| 29 | * <p>CaptureResults are produced by a {@link CameraDevice} after processing a |
| 30 | * {@link CaptureRequest}. All properties listed for capture requests can also |
| 31 | * be queried on the capture result, to determine the final values used for |
| 32 | * capture. The result also includes additional metadata about the state of the |
| 33 | * camera device during the capture.</p> |
| 34 | * |
| 35 | */ |
| 36 | public final class CaptureResult extends CameraMetadata { |
Igor Murashkin | 7072550 | 2013-06-25 20:27:06 +0000 | [diff] [blame] | 37 | /** |
| 38 | * @hide |
| 39 | */ |
| 40 | public CaptureResult() { |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Describes a face detected in an image. |
| 45 | */ |
| 46 | public static class Face { |
| 47 | |
| 48 | /** |
| 49 | * <p>Bounds of the face. A rectangle relative to the sensor's |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 50 | * {@link CameraProperties#SENSOR_INFO_ACTIVE_ARRAY_SIZE}, with (0,0) |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 51 | * representing the top-left corner of the active array rectangle.</p> |
| 52 | */ |
| 53 | public Rect getBounds() { |
| 54 | return mBounds; |
| 55 | } |
| 56 | |
Benjamin Hendricks | 24eb8a3 | 2013-08-15 12:46:22 -0700 | [diff] [blame] | 57 | /** <p>The confidence level for the detection of the face. The range is 1 to |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 58 | * 100. 100 is the highest confidence.</p> |
| 59 | * |
| 60 | * <p>Depending on the device, even very low-confidence faces may be |
| 61 | * listed, so applications should filter out faces with low confidence, |
| 62 | * depending on the use case. For a typical point-and-shoot camera |
| 63 | * application that wishes to display rectangles around detected faces, |
| 64 | * filtering out faces with confidence less than 50 is recommended.</p> |
| 65 | * |
| 66 | */ |
| 67 | public int getScore() { |
| 68 | return mScore; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * An unique id per face while the face is visible to the tracker. If |
| 73 | * the face leaves the field-of-view and comes back, it will get a new |
| 74 | * id. This is an optional field, may not be supported on all devices. |
| 75 | * If not supported, id will always be set to -1. The optional fields |
| 76 | * are supported as a set. Either they are all valid, or none of them |
| 77 | * are. |
| 78 | */ |
| 79 | public int getId() { |
| 80 | return mId; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * The coordinates of the center of the left eye. The coordinates are in |
| 85 | * the same space as the ones for {@link #getBounds}. This is an |
| 86 | * optional field, may not be supported on all devices. If not |
| 87 | * supported, the value will always be set to null. The optional fields |
| 88 | * are supported as a set. Either they are all valid, or none of them |
| 89 | * are. |
| 90 | */ |
| 91 | public Point getLeftEye() { |
| 92 | return mLeftEye; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * The coordinates of the center of the right eye. The coordinates are |
| 97 | * in the same space as the ones for {@link #getBounds}.This is an |
| 98 | * optional field, may not be supported on all devices. If not |
| 99 | * supported, the value will always be set to null. The optional fields |
| 100 | * are supported as a set. Either they are all valid, or none of them |
| 101 | * are. |
| 102 | */ |
| 103 | public Point getRightEye() { |
| 104 | return mRightEye; |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * The coordinates of the center of the mouth. The coordinates are in |
| 109 | * the same space as the ones for {@link #getBounds}. This is an optional |
| 110 | * field, may not be supported on all devices. If not supported, the |
| 111 | * value will always be set to null. The optional fields are supported |
| 112 | * as a set. Either they are all valid, or none of them are. |
| 113 | */ |
| 114 | public Point getMouth() { |
| 115 | return mMouth; |
| 116 | } |
| 117 | |
| 118 | private Rect mBounds; |
| 119 | private int mScore; |
| 120 | private int mId; |
| 121 | private Point mLeftEye; |
| 122 | private Point mRightEye; |
| 123 | private Point mMouth; |
| 124 | } |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 125 | |
| 126 | /*@O~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~ |
| 127 | * The key entries below this point are generated from metadata |
| 128 | * definitions in /system/media/camera/docs. Do not modify by hand or |
| 129 | * modify the comment blocks at the start or end. |
| 130 | *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~*/ |
| 131 | |
| 132 | /** |
| 133 | * <p> |
| 134 | * A color transform matrix to use to transform |
| 135 | * from sensor RGB color space to output linear sRGB color space |
| 136 | * </p> |
| 137 | * <p> |
| 138 | * This matrix is either set by HAL when the request |
| 139 | * android.colorCorrection.mode is not TRANSFORM_MATRIX, or |
| 140 | * directly by the application in the request when the |
Igor Murashkin | d5ff06a | 2013-08-20 15:15:06 -0700 | [diff] [blame] | 141 | * android.colorCorrection.mode is TRANSFORM_MATRIX. |
| 142 | * </p><p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 143 | * In the latter case, the HAL may round the matrix to account |
| 144 | * for precision issues; the final rounded matrix should be |
| 145 | * reported back in this matrix result metadata. |
| 146 | * </p> |
| 147 | */ |
| 148 | public static final Key<Rational[]> COLOR_CORRECTION_TRANSFORM = |
| 149 | new Key<Rational[]>("android.colorCorrection.transform", Rational[].class); |
| 150 | |
| 151 | /** |
| 152 | * <p> |
| 153 | * Gains applying to Bayer color channels for |
| 154 | * white-balance |
| 155 | * </p> |
| 156 | * <p> |
| 157 | * The 4-channel white-balance gains are defined in |
| 158 | * the order of [R G_even G_odd B], where G_even is the gain |
| 159 | * for green pixels on even rows of the output, and G_odd |
| 160 | * is the gain for greenpixels on the odd rows. if a HAL |
| 161 | * does not support a separate gain for even/odd green channels, |
| 162 | * it should use the G_even value,and write G_odd equal to |
| 163 | * G_even in the output result metadata. |
| 164 | * </p><p> |
Igor Murashkin | d5ff06a | 2013-08-20 15:15:06 -0700 | [diff] [blame] | 165 | * This array is either set by HAL when the request |
| 166 | * android.colorCorrection.mode is not TRANSFORM_MATRIX, or |
| 167 | * directly by the application in the request when the |
| 168 | * android.colorCorrection.mode is TRANSFORM_MATRIX. |
| 169 | * </p><p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 170 | * The ouput should be the gains actually applied by the HAL to |
| 171 | * the current frame. |
| 172 | * </p> |
| 173 | */ |
| 174 | public static final Key<float[]> COLOR_CORRECTION_GAINS = |
| 175 | new Key<float[]>("android.colorCorrection.gains", float[].class); |
| 176 | |
| 177 | /** |
| 178 | * <p> |
| 179 | * The ID sent with the latest |
| 180 | * CAMERA2_TRIGGER_PRECAPTURE_METERING call |
| 181 | * </p> |
| 182 | * <p> |
| 183 | * Must be 0 if no |
| 184 | * CAMERA2_TRIGGER_PRECAPTURE_METERING trigger received yet |
| 185 | * by HAL. Always updated even if AE algorithm ignores the |
| 186 | * trigger |
| 187 | * </p> |
| 188 | * |
| 189 | * @hide |
| 190 | */ |
| 191 | public static final Key<Integer> CONTROL_AE_PRECAPTURE_ID = |
| 192 | new Key<Integer>("android.control.aePrecaptureId", int.class); |
| 193 | |
| 194 | /** |
| 195 | * <p> |
| 196 | * List of areas to use for |
| 197 | * metering |
| 198 | * </p> |
| 199 | * <p> |
| 200 | * Each area is a rectangle plus weight: xmin, ymin, |
Timothy Knight | 2629f27 | 2013-09-03 17:23:23 -0700 | [diff] [blame] | 201 | * xmax, ymax, weight. The rectangle is defined inclusive of the |
| 202 | * specified coordinates. |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 203 | * </p><p> |
| 204 | * The coordinate system is based on the active pixel array, |
Timothy Knight | 2629f27 | 2013-09-03 17:23:23 -0700 | [diff] [blame] | 205 | * with (0,0) being the top-left pixel in the active pixel array, and |
| 206 | * (android.sensor.info.activeArraySize.width - 1, |
| 207 | * android.sensor.info.activeArraySize.height - 1) being the |
| 208 | * bottom-right pixel in the active pixel array. The weight |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 209 | * should be nonnegative. |
| 210 | * </p><p> |
| 211 | * If all regions have 0 weight, then no specific metering area |
| 212 | * needs to be used by the HAL. If the metering region is |
| 213 | * outside the current android.scaler.cropRegion, the HAL |
| 214 | * should ignore the sections outside the region and output the |
| 215 | * used sections in the frame metadata |
| 216 | * </p> |
| 217 | */ |
| 218 | public static final Key<int[]> CONTROL_AE_REGIONS = |
| 219 | new Key<int[]>("android.control.aeRegions", int[].class); |
| 220 | |
| 221 | /** |
| 222 | * <p> |
| 223 | * Current state of AE algorithm |
| 224 | * </p> |
| 225 | * <p> |
| 226 | * Whenever the AE algorithm state changes, a |
| 227 | * MSG_AUTOEXPOSURE notification must be send if a |
| 228 | * notification callback is registered. |
| 229 | * </p> |
| 230 | * @see #CONTROL_AE_STATE_INACTIVE |
| 231 | * @see #CONTROL_AE_STATE_SEARCHING |
| 232 | * @see #CONTROL_AE_STATE_CONVERGED |
| 233 | * @see #CONTROL_AE_STATE_LOCKED |
| 234 | * @see #CONTROL_AE_STATE_FLASH_REQUIRED |
| 235 | * @see #CONTROL_AE_STATE_PRECAPTURE |
| 236 | */ |
| 237 | public static final Key<Integer> CONTROL_AE_STATE = |
| 238 | new Key<Integer>("android.control.aeState", int.class); |
| 239 | |
| 240 | /** |
| 241 | * <p> |
| 242 | * Whether AF is currently enabled, and what |
| 243 | * mode it is set to |
| 244 | * </p> |
| 245 | * @see #CONTROL_AF_MODE_OFF |
| 246 | * @see #CONTROL_AF_MODE_AUTO |
| 247 | * @see #CONTROL_AF_MODE_MACRO |
| 248 | * @see #CONTROL_AF_MODE_CONTINUOUS_VIDEO |
| 249 | * @see #CONTROL_AF_MODE_CONTINUOUS_PICTURE |
| 250 | * @see #CONTROL_AF_MODE_EDOF |
| 251 | */ |
| 252 | public static final Key<Integer> CONTROL_AF_MODE = |
| 253 | new Key<Integer>("android.control.afMode", int.class); |
| 254 | |
| 255 | /** |
| 256 | * <p> |
| 257 | * List of areas to use for focus |
| 258 | * estimation |
| 259 | * </p> |
| 260 | * <p> |
| 261 | * Each area is a rectangle plus weight: xmin, ymin, |
Timothy Knight | 2629f27 | 2013-09-03 17:23:23 -0700 | [diff] [blame] | 262 | * xmax, ymax, weight. The rectangle is defined inclusive of the |
| 263 | * specified coordinates. |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 264 | * </p><p> |
| 265 | * The coordinate system is based on the active pixel array, |
Timothy Knight | 2629f27 | 2013-09-03 17:23:23 -0700 | [diff] [blame] | 266 | * with (0,0) being the top-left pixel in the active pixel array, and |
| 267 | * (android.sensor.info.activeArraySize.width - 1, |
| 268 | * android.sensor.info.activeArraySize.height - 1) being the |
| 269 | * bottom-right pixel in the active pixel array. The weight |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 270 | * should be nonnegative. |
| 271 | * </p><p> |
| 272 | * If all regions have 0 weight, then no specific focus area |
| 273 | * needs to be used by the HAL. If the focusing region is |
| 274 | * outside the current android.scaler.cropRegion, the HAL |
| 275 | * should ignore the sections outside the region and output the |
| 276 | * used sections in the frame metadata |
| 277 | * </p> |
| 278 | */ |
| 279 | public static final Key<int[]> CONTROL_AF_REGIONS = |
| 280 | new Key<int[]>("android.control.afRegions", int[].class); |
| 281 | |
| 282 | /** |
| 283 | * <p> |
| 284 | * Current state of AF algorithm |
| 285 | * </p> |
| 286 | * <p> |
| 287 | * Whenever the AF algorithm state changes, a |
| 288 | * MSG_AUTOFOCUS notification must be send if a notification |
| 289 | * callback is registered. |
| 290 | * </p> |
| 291 | * @see #CONTROL_AF_STATE_INACTIVE |
| 292 | * @see #CONTROL_AF_STATE_PASSIVE_SCAN |
| 293 | * @see #CONTROL_AF_STATE_PASSIVE_FOCUSED |
| 294 | * @see #CONTROL_AF_STATE_ACTIVE_SCAN |
| 295 | * @see #CONTROL_AF_STATE_FOCUSED_LOCKED |
| 296 | * @see #CONTROL_AF_STATE_NOT_FOCUSED_LOCKED |
| 297 | */ |
| 298 | public static final Key<Integer> CONTROL_AF_STATE = |
| 299 | new Key<Integer>("android.control.afState", int.class); |
| 300 | |
| 301 | /** |
| 302 | * <p> |
| 303 | * The ID sent with the latest |
| 304 | * CAMERA2_TRIGGER_AUTOFOCUS call |
| 305 | * </p> |
| 306 | * <p> |
| 307 | * Must be 0 if no CAMERA2_TRIGGER_AUTOFOCUS trigger |
| 308 | * received yet by HAL. Always updated even if AF algorithm |
| 309 | * ignores the trigger |
| 310 | * </p> |
| 311 | * |
| 312 | * @hide |
| 313 | */ |
| 314 | public static final Key<Integer> CONTROL_AF_TRIGGER_ID = |
| 315 | new Key<Integer>("android.control.afTriggerId", int.class); |
| 316 | |
| 317 | /** |
| 318 | * <p> |
| 319 | * Whether AWB is currently setting the color |
| 320 | * transform fields, and what its illumination target |
| 321 | * is |
| 322 | * </p> |
| 323 | * <p> |
| 324 | * [BC - AWB lock,AWB modes] |
| 325 | * </p> |
| 326 | * @see #CONTROL_AWB_MODE_OFF |
| 327 | * @see #CONTROL_AWB_MODE_AUTO |
| 328 | * @see #CONTROL_AWB_MODE_INCANDESCENT |
| 329 | * @see #CONTROL_AWB_MODE_FLUORESCENT |
| 330 | * @see #CONTROL_AWB_MODE_WARM_FLUORESCENT |
| 331 | * @see #CONTROL_AWB_MODE_DAYLIGHT |
| 332 | * @see #CONTROL_AWB_MODE_CLOUDY_DAYLIGHT |
| 333 | * @see #CONTROL_AWB_MODE_TWILIGHT |
| 334 | * @see #CONTROL_AWB_MODE_SHADE |
| 335 | */ |
| 336 | public static final Key<Integer> CONTROL_AWB_MODE = |
| 337 | new Key<Integer>("android.control.awbMode", int.class); |
| 338 | |
| 339 | /** |
| 340 | * <p> |
| 341 | * List of areas to use for illuminant |
| 342 | * estimation |
| 343 | * </p> |
| 344 | * <p> |
| 345 | * Only used in AUTO mode. |
| 346 | * </p><p> |
Timothy Knight | 2629f27 | 2013-09-03 17:23:23 -0700 | [diff] [blame] | 347 | * Each area is a rectangle plus weight: xmin, ymin, |
| 348 | * xmax, ymax, weight. The rectangle is defined inclusive of the |
| 349 | * specified coordinates. |
| 350 | * </p><p> |
| 351 | * The coordinate system is based on the active pixel array, |
| 352 | * with (0,0) being the top-left pixel in the active pixel array, and |
| 353 | * (android.sensor.info.activeArraySize.width - 1, |
| 354 | * android.sensor.info.activeArraySize.height - 1) being the |
| 355 | * bottom-right pixel in the active pixel array. The weight |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 356 | * should be nonnegative. |
| 357 | * </p><p> |
| 358 | * If all regions have 0 weight, then no specific metering area |
| 359 | * needs to be used by the HAL. If the metering region is |
| 360 | * outside the current android.scaler.cropRegion, the HAL |
| 361 | * should ignore the sections outside the region and output the |
| 362 | * used sections in the frame metadata |
| 363 | * </p> |
| 364 | */ |
| 365 | public static final Key<int[]> CONTROL_AWB_REGIONS = |
| 366 | new Key<int[]>("android.control.awbRegions", int[].class); |
| 367 | |
| 368 | /** |
| 369 | * <p> |
| 370 | * Current state of AWB algorithm |
| 371 | * </p> |
| 372 | * <p> |
| 373 | * Whenever the AWB algorithm state changes, a |
| 374 | * MSG_AUTOWHITEBALANCE notification must be send if a |
| 375 | * notification callback is registered. |
| 376 | * </p> |
| 377 | * @see #CONTROL_AWB_STATE_INACTIVE |
| 378 | * @see #CONTROL_AWB_STATE_SEARCHING |
| 379 | * @see #CONTROL_AWB_STATE_CONVERGED |
| 380 | * @see #CONTROL_AWB_STATE_LOCKED |
| 381 | */ |
| 382 | public static final Key<Integer> CONTROL_AWB_STATE = |
| 383 | new Key<Integer>("android.control.awbState", int.class); |
| 384 | |
| 385 | /** |
| 386 | * <p> |
| 387 | * Overall mode of 3A control |
| 388 | * routines |
| 389 | * </p> |
| 390 | * @see #CONTROL_MODE_OFF |
| 391 | * @see #CONTROL_MODE_AUTO |
| 392 | * @see #CONTROL_MODE_USE_SCENE_MODE |
| 393 | */ |
| 394 | public static final Key<Integer> CONTROL_MODE = |
| 395 | new Key<Integer>("android.control.mode", int.class); |
| 396 | |
| 397 | /** |
| 398 | * <p> |
| 399 | * Operation mode for edge |
| 400 | * enhancement |
| 401 | * </p> |
| 402 | * @see #EDGE_MODE_OFF |
| 403 | * @see #EDGE_MODE_FAST |
| 404 | * @see #EDGE_MODE_HIGH_QUALITY |
| 405 | */ |
| 406 | public static final Key<Integer> EDGE_MODE = |
| 407 | new Key<Integer>("android.edge.mode", int.class); |
| 408 | |
| 409 | /** |
| 410 | * <p> |
| 411 | * Select flash operation mode |
| 412 | * </p> |
| 413 | * @see #FLASH_MODE_OFF |
| 414 | * @see #FLASH_MODE_SINGLE |
| 415 | * @see #FLASH_MODE_TORCH |
| 416 | */ |
| 417 | public static final Key<Integer> FLASH_MODE = |
| 418 | new Key<Integer>("android.flash.mode", int.class); |
| 419 | |
| 420 | /** |
| 421 | * <p> |
| 422 | * Current state of the flash |
| 423 | * unit |
| 424 | * </p> |
| 425 | * @see #FLASH_STATE_UNAVAILABLE |
| 426 | * @see #FLASH_STATE_CHARGING |
| 427 | * @see #FLASH_STATE_READY |
| 428 | * @see #FLASH_STATE_FIRED |
| 429 | */ |
| 430 | public static final Key<Integer> FLASH_STATE = |
| 431 | new Key<Integer>("android.flash.state", int.class); |
| 432 | |
| 433 | /** |
| 434 | * <p> |
| 435 | * GPS coordinates to include in output JPEG |
| 436 | * EXIF |
| 437 | * </p> |
| 438 | */ |
| 439 | public static final Key<double[]> JPEG_GPS_COORDINATES = |
| 440 | new Key<double[]>("android.jpeg.gpsCoordinates", double[].class); |
| 441 | |
| 442 | /** |
| 443 | * <p> |
| 444 | * 32 characters describing GPS algorithm to |
| 445 | * include in EXIF |
| 446 | * </p> |
| 447 | */ |
| 448 | public static final Key<String> JPEG_GPS_PROCESSING_METHOD = |
| 449 | new Key<String>("android.jpeg.gpsProcessingMethod", String.class); |
| 450 | |
| 451 | /** |
| 452 | * <p> |
| 453 | * Time GPS fix was made to include in |
| 454 | * EXIF |
| 455 | * </p> |
| 456 | */ |
| 457 | public static final Key<Long> JPEG_GPS_TIMESTAMP = |
| 458 | new Key<Long>("android.jpeg.gpsTimestamp", long.class); |
| 459 | |
| 460 | /** |
| 461 | * <p> |
| 462 | * Orientation of JPEG image to |
| 463 | * write |
| 464 | * </p> |
| 465 | */ |
| 466 | public static final Key<Integer> JPEG_ORIENTATION = |
| 467 | new Key<Integer>("android.jpeg.orientation", int.class); |
| 468 | |
| 469 | /** |
| 470 | * <p> |
| 471 | * Compression quality of the final JPEG |
| 472 | * image |
| 473 | * </p> |
| 474 | * <p> |
| 475 | * 85-95 is typical usage range |
| 476 | * </p> |
| 477 | */ |
| 478 | public static final Key<Byte> JPEG_QUALITY = |
| 479 | new Key<Byte>("android.jpeg.quality", byte.class); |
| 480 | |
| 481 | /** |
| 482 | * <p> |
| 483 | * Compression quality of JPEG |
| 484 | * thumbnail |
| 485 | * </p> |
| 486 | */ |
| 487 | public static final Key<Byte> JPEG_THUMBNAIL_QUALITY = |
| 488 | new Key<Byte>("android.jpeg.thumbnailQuality", byte.class); |
| 489 | |
| 490 | /** |
| 491 | * <p> |
| 492 | * Resolution of embedded JPEG |
| 493 | * thumbnail |
| 494 | * </p> |
| 495 | */ |
| 496 | public static final Key<android.hardware.camera2.Size> JPEG_THUMBNAIL_SIZE = |
| 497 | new Key<android.hardware.camera2.Size>("android.jpeg.thumbnailSize", android.hardware.camera2.Size.class); |
| 498 | |
| 499 | /** |
| 500 | * <p> |
| 501 | * Size of the lens aperture |
| 502 | * </p> |
| 503 | * <p> |
| 504 | * Will not be supported on most devices. Can only |
| 505 | * pick from supported list |
| 506 | * </p> |
| 507 | */ |
| 508 | public static final Key<Float> LENS_APERTURE = |
| 509 | new Key<Float>("android.lens.aperture", float.class); |
| 510 | |
| 511 | /** |
| 512 | * <p> |
| 513 | * State of lens neutral density |
| 514 | * filter(s) |
| 515 | * </p> |
| 516 | * <p> |
| 517 | * Will not be supported on most devices. Can only |
| 518 | * pick from supported list |
| 519 | * </p> |
| 520 | */ |
| 521 | public static final Key<Float> LENS_FILTER_DENSITY = |
| 522 | new Key<Float>("android.lens.filterDensity", float.class); |
| 523 | |
| 524 | /** |
| 525 | * <p> |
| 526 | * Lens optical zoom setting |
| 527 | * </p> |
| 528 | * <p> |
| 529 | * Will not be supported on most devices. |
| 530 | * </p> |
| 531 | */ |
| 532 | public static final Key<Float> LENS_FOCAL_LENGTH = |
| 533 | new Key<Float>("android.lens.focalLength", float.class); |
| 534 | |
| 535 | /** |
| 536 | * <p> |
| 537 | * Distance to plane of sharpest focus, |
| 538 | * measured from frontmost surface of the lens |
| 539 | * </p> |
| 540 | * <p> |
| 541 | * Should be zero for fixed-focus cameras |
| 542 | * </p> |
| 543 | */ |
| 544 | public static final Key<Float> LENS_FOCUS_DISTANCE = |
| 545 | new Key<Float>("android.lens.focusDistance", float.class); |
| 546 | |
| 547 | /** |
| 548 | * <p> |
| 549 | * The range of scene distances that are in |
| 550 | * sharp focus (depth of field) |
| 551 | * </p> |
| 552 | * <p> |
| 553 | * If variable focus not supported, can still report |
| 554 | * fixed depth of field range |
| 555 | * </p> |
| 556 | */ |
| 557 | public static final Key<Float> LENS_FOCUS_RANGE = |
| 558 | new Key<Float>("android.lens.focusRange", float.class); |
| 559 | |
| 560 | /** |
| 561 | * <p> |
| 562 | * Whether optical image stabilization is |
| 563 | * enabled. |
| 564 | * </p> |
| 565 | * <p> |
| 566 | * Will not be supported on most devices. |
| 567 | * </p> |
| 568 | * @see #LENS_OPTICAL_STABILIZATION_MODE_OFF |
| 569 | * @see #LENS_OPTICAL_STABILIZATION_MODE_ON |
| 570 | */ |
| 571 | public static final Key<Integer> LENS_OPTICAL_STABILIZATION_MODE = |
| 572 | new Key<Integer>("android.lens.opticalStabilizationMode", int.class); |
| 573 | |
| 574 | /** |
| 575 | * <p> |
| 576 | * Current lens status |
| 577 | * </p> |
| 578 | * @see #LENS_STATE_STATIONARY |
Igor Murashkin | 9ea4ae6 | 2013-09-11 21:40:11 -0700 | [diff] [blame^] | 579 | * @see #LENS_STATE_MOVING |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 580 | */ |
| 581 | public static final Key<Integer> LENS_STATE = |
| 582 | new Key<Integer>("android.lens.state", int.class); |
| 583 | |
| 584 | /** |
| 585 | * <p> |
| 586 | * Mode of operation for the noise reduction |
| 587 | * algorithm |
| 588 | * </p> |
| 589 | * @see #NOISE_REDUCTION_MODE_OFF |
| 590 | * @see #NOISE_REDUCTION_MODE_FAST |
| 591 | * @see #NOISE_REDUCTION_MODE_HIGH_QUALITY |
| 592 | */ |
| 593 | public static final Key<Integer> NOISE_REDUCTION_MODE = |
| 594 | new Key<Integer>("android.noiseReduction.mode", int.class); |
| 595 | |
| 596 | /** |
| 597 | * <p> |
| 598 | * Number of frames captured since |
| 599 | * open() |
| 600 | * </p> |
| 601 | * <p> |
| 602 | * Reset on release() |
| 603 | * </p> |
| 604 | */ |
| 605 | public static final Key<Integer> REQUEST_FRAME_COUNT = |
| 606 | new Key<Integer>("android.request.frameCount", int.class); |
| 607 | |
| 608 | /** |
| 609 | * <p> |
| 610 | * An application-specified ID for the current |
| 611 | * request. Must be maintained unchanged in output |
| 612 | * frame |
| 613 | * </p> |
| 614 | * |
| 615 | * @hide |
| 616 | */ |
| 617 | public static final Key<Integer> REQUEST_ID = |
| 618 | new Key<Integer>("android.request.id", int.class); |
| 619 | |
| 620 | /** |
| 621 | * <p> |
| 622 | * (x, y, width, height). |
| 623 | * </p><p> |
| 624 | * A rectangle with the top-level corner of (x,y) and size |
| 625 | * (width, height). The region of the sensor that is used for |
| 626 | * output. Each stream must use this rectangle to produce its |
| 627 | * output, cropping to a smaller region if necessary to |
| 628 | * maintain the stream's aspect ratio. |
| 629 | * </p><p> |
| 630 | * HAL2.x uses only (x, y, width) |
| 631 | * </p> |
| 632 | * <p> |
| 633 | * Any additional per-stream cropping must be done to |
| 634 | * maximize the final pixel area of the stream. |
| 635 | * </p><p> |
| 636 | * For example, if the crop region is set to a 4:3 aspect |
| 637 | * ratio, then 4:3 streams should use the exact crop |
| 638 | * region. 16:9 streams should further crop vertically |
| 639 | * (letterbox). |
| 640 | * </p><p> |
| 641 | * Conversely, if the crop region is set to a 16:9, then 4:3 |
| 642 | * outputs should crop horizontally (pillarbox), and 16:9 |
| 643 | * streams should match exactly. These additional crops must |
| 644 | * be centered within the crop region. |
| 645 | * </p><p> |
| 646 | * The output streams must maintain square pixels at all |
| 647 | * times, no matter what the relative aspect ratios of the |
| 648 | * crop region and the stream are. Negative values for |
| 649 | * corner are allowed for raw output if full pixel array is |
| 650 | * larger than active pixel array. Width and height may be |
| 651 | * rounded to nearest larger supportable width, especially |
| 652 | * for raw output, where only a few fixed scales may be |
| 653 | * possible. The width and height of the crop region cannot |
| 654 | * be set to be smaller than floor( activeArraySize.width / |
| 655 | * android.scaler.maxDigitalZoom ) and floor( |
| 656 | * activeArraySize.height / android.scaler.maxDigitalZoom), |
| 657 | * respectively. |
| 658 | * </p> |
| 659 | */ |
| 660 | public static final Key<android.graphics.Rect> SCALER_CROP_REGION = |
| 661 | new Key<android.graphics.Rect>("android.scaler.cropRegion", android.graphics.Rect.class); |
| 662 | |
| 663 | /** |
| 664 | * <p> |
| 665 | * Duration each pixel is exposed to |
Igor Murashkin | d5ff06a | 2013-08-20 15:15:06 -0700 | [diff] [blame] | 666 | * light. |
| 667 | * </p><p> |
| 668 | * If the sensor can't expose this exact duration, it should shorten the |
| 669 | * duration exposed to the nearest possible value (rather than expose longer). |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 670 | * </p> |
| 671 | * <p> |
| 672 | * 1/10000 - 30 sec range. No bulb mode |
| 673 | * </p> |
| 674 | */ |
| 675 | public static final Key<Long> SENSOR_EXPOSURE_TIME = |
| 676 | new Key<Long>("android.sensor.exposureTime", long.class); |
| 677 | |
| 678 | /** |
| 679 | * <p> |
| 680 | * Duration from start of frame exposure to |
| 681 | * start of next frame exposure |
| 682 | * </p> |
| 683 | * <p> |
| 684 | * Exposure time has priority, so duration is set to |
| 685 | * max(duration, exposure time + overhead) |
| 686 | * </p> |
| 687 | */ |
| 688 | public static final Key<Long> SENSOR_FRAME_DURATION = |
| 689 | new Key<Long>("android.sensor.frameDuration", long.class); |
| 690 | |
| 691 | /** |
| 692 | * <p> |
| 693 | * Gain applied to image data. Must be |
| 694 | * implemented through analog gain only if set to values |
| 695 | * below 'maximum analog sensitivity'. |
Igor Murashkin | d5ff06a | 2013-08-20 15:15:06 -0700 | [diff] [blame] | 696 | * </p><p> |
| 697 | * If the sensor can't apply this exact gain, it should lessen the |
| 698 | * gain to the nearest possible value (rather than gain more). |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 699 | * </p> |
| 700 | * <p> |
| 701 | * ISO 12232:2006 REI method |
| 702 | * </p> |
| 703 | */ |
| 704 | public static final Key<Integer> SENSOR_SENSITIVITY = |
| 705 | new Key<Integer>("android.sensor.sensitivity", int.class); |
| 706 | |
| 707 | /** |
| 708 | * <p> |
| 709 | * Time at start of exposure of first |
| 710 | * row |
| 711 | * </p> |
| 712 | * <p> |
| 713 | * Monotonic, should be synced to other timestamps in |
| 714 | * system |
| 715 | * </p> |
| 716 | */ |
| 717 | public static final Key<Long> SENSOR_TIMESTAMP = |
| 718 | new Key<Long>("android.sensor.timestamp", long.class); |
| 719 | |
| 720 | /** |
| 721 | * <p> |
Igor Murashkin | d5ff06a | 2013-08-20 15:15:06 -0700 | [diff] [blame] | 722 | * The temperature of the sensor, sampled at the time |
| 723 | * exposure began for this frame. |
| 724 | * </p><p> |
| 725 | * The thermal diode being queried should be inside the sensor PCB, or |
| 726 | * somewhere close to it. |
| 727 | * </p> |
| 728 | */ |
| 729 | public static final Key<Float> SENSOR_TEMPERATURE = |
| 730 | new Key<Float>("android.sensor.temperature", float.class); |
| 731 | |
| 732 | /** |
| 733 | * <p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 734 | * State of the face detector |
| 735 | * unit |
| 736 | * </p> |
| 737 | * <p> |
| 738 | * Whether face detection is enabled, and whether it |
| 739 | * should output just the basic fields or the full set of |
| 740 | * fields. Value must be one of the |
| 741 | * android.statistics.info.availableFaceDetectModes. |
| 742 | * </p> |
| 743 | * @see #STATISTICS_FACE_DETECT_MODE_OFF |
| 744 | * @see #STATISTICS_FACE_DETECT_MODE_SIMPLE |
| 745 | * @see #STATISTICS_FACE_DETECT_MODE_FULL |
| 746 | */ |
| 747 | public static final Key<Integer> STATISTICS_FACE_DETECT_MODE = |
| 748 | new Key<Integer>("android.statistics.faceDetectMode", int.class); |
| 749 | |
| 750 | /** |
| 751 | * <p> |
| 752 | * List of unique IDs for detected |
| 753 | * faces |
| 754 | * </p> |
| 755 | * <p> |
| 756 | * Only available if faceDetectMode == FULL |
| 757 | * </p> |
| 758 | */ |
| 759 | public static final Key<int[]> STATISTICS_FACE_IDS = |
| 760 | new Key<int[]>("android.statistics.faceIds", int[].class); |
| 761 | |
| 762 | /** |
| 763 | * <p> |
| 764 | * List of landmarks for detected |
| 765 | * faces |
| 766 | * </p> |
| 767 | * <p> |
| 768 | * Only available if faceDetectMode == FULL |
| 769 | * </p> |
| 770 | */ |
| 771 | public static final Key<int[]> STATISTICS_FACE_LANDMARKS = |
| 772 | new Key<int[]>("android.statistics.faceLandmarks", int[].class); |
| 773 | |
| 774 | /** |
| 775 | * <p> |
| 776 | * List of the bounding rectangles for detected |
| 777 | * faces |
| 778 | * </p> |
| 779 | * <p> |
| 780 | * Only available if faceDetectMode != OFF |
| 781 | * </p> |
| 782 | */ |
| 783 | public static final Key<android.graphics.Rect[]> STATISTICS_FACE_RECTANGLES = |
| 784 | new Key<android.graphics.Rect[]>("android.statistics.faceRectangles", android.graphics.Rect[].class); |
| 785 | |
| 786 | /** |
| 787 | * <p> |
| 788 | * List of the face confidence scores for |
| 789 | * detected faces |
| 790 | * </p> |
| 791 | * <p> |
Igor Murashkin | d5ff06a | 2013-08-20 15:15:06 -0700 | [diff] [blame] | 792 | * Only available if faceDetectMode != OFF. The value should be |
| 793 | * meaningful (for example, setting 100 at all times is illegal). |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 794 | * </p> |
| 795 | */ |
| 796 | public static final Key<byte[]> STATISTICS_FACE_SCORES = |
| 797 | new Key<byte[]>("android.statistics.faceScores", byte[].class); |
| 798 | |
| 799 | /** |
| 800 | * <p> |
| 801 | * A low-resolution map of lens shading, per |
| 802 | * color channel |
| 803 | * </p> |
| 804 | * <p> |
| 805 | * Assume bilinear interpolation of map. The least |
| 806 | * shaded section of the image should have a gain factor |
| 807 | * of 1; all other sections should have gains above 1. |
| 808 | * the map should be on the order of 30-40 rows, and |
| 809 | * must be smaller than 64x64. |
Igor Murashkin | d5ff06a | 2013-08-20 15:15:06 -0700 | [diff] [blame] | 810 | * </p><p> |
| 811 | * When android.colorCorrection.mode = TRANSFORM_MATRIX, the map |
| 812 | * must take into account the colorCorrection settings. |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 813 | * </p> |
| 814 | */ |
| 815 | public static final Key<float[]> STATISTICS_LENS_SHADING_MAP = |
| 816 | new Key<float[]>("android.statistics.lensShadingMap", float[].class); |
| 817 | |
| 818 | /** |
| 819 | * <p> |
| 820 | * The best-fit color channel gains calculated |
| 821 | * by the HAL's statistics units for the current output frame |
| 822 | * </p> |
| 823 | * <p> |
| 824 | * This may be different than the gains used for this frame, |
| 825 | * since statistics processing on data from a new frame |
| 826 | * typically completes after the transform has already been |
| 827 | * applied to that frame. |
| 828 | * </p><p> |
| 829 | * The 4 channel gains are defined in Bayer domain, |
| 830 | * see android.colorCorrection.gains for details. |
Igor Murashkin | d5ff06a | 2013-08-20 15:15:06 -0700 | [diff] [blame] | 831 | * </p><p> |
| 832 | * This value should always be calculated by the AWB block, |
| 833 | * regardless of the android.control.* current values. |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 834 | * </p> |
| 835 | */ |
| 836 | public static final Key<float[]> STATISTICS_PREDICTED_COLOR_GAINS = |
| 837 | new Key<float[]>("android.statistics.predictedColorGains", float[].class); |
| 838 | |
| 839 | /** |
| 840 | * <p> |
| 841 | * The best-fit color transform matrix estimate |
| 842 | * calculated by the HAL's statistics units for the current |
| 843 | * output frame |
| 844 | * </p> |
| 845 | * <p> |
| 846 | * The HAL must provide the estimate from its |
| 847 | * statistics unit on the white balance transforms to use |
| 848 | * for the next frame. These are the values the HAL believes |
| 849 | * are the best fit for the current output frame. This may |
| 850 | * be different than the transform used for this frame, since |
| 851 | * statistics processing on data from a new frame typically |
| 852 | * completes after the transform has already been applied to |
| 853 | * that frame. |
| 854 | * </p><p> |
| 855 | * These estimates must be provided for all frames, even if |
| 856 | * capture settings and color transforms are set by the application. |
Igor Murashkin | d5ff06a | 2013-08-20 15:15:06 -0700 | [diff] [blame] | 857 | * </p><p> |
| 858 | * This value should always be calculated by the AWB block, |
| 859 | * regardless of the android.control.* current values. |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 860 | * </p> |
| 861 | */ |
| 862 | public static final Key<Rational[]> STATISTICS_PREDICTED_COLOR_TRANSFORM = |
| 863 | new Key<Rational[]>("android.statistics.predictedColorTransform", Rational[].class); |
| 864 | |
| 865 | /** |
| 866 | * <p> |
| 867 | * The HAL estimated scene illumination lighting |
| 868 | * frequency |
| 869 | * </p> |
| 870 | * <p> |
| 871 | * Report NONE if there doesn't appear to be flickering |
| 872 | * illumination |
| 873 | * </p> |
| 874 | * @see #STATISTICS_SCENE_FLICKER_NONE |
| 875 | * @see #STATISTICS_SCENE_FLICKER_50HZ |
| 876 | * @see #STATISTICS_SCENE_FLICKER_60HZ |
| 877 | */ |
| 878 | public static final Key<Integer> STATISTICS_SCENE_FLICKER = |
| 879 | new Key<Integer>("android.statistics.sceneFlicker", int.class); |
| 880 | |
| 881 | /** |
| 882 | * <p> |
| 883 | * Table mapping blue input values to output |
| 884 | * values |
| 885 | * </p> |
Zhijun He | 3ffd705 | 2013-08-19 15:45:08 -0700 | [diff] [blame] | 886 | * <p> |
| 887 | * Tonemapping / contrast / gamma curve for the blue |
| 888 | * channel, to use when android.tonemap.mode is CONTRAST_CURVE. |
| 889 | * </p><p> |
| 890 | * See android.tonemap.curveRed for more details. |
| 891 | * </p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 892 | */ |
Zhijun He | 3ffd705 | 2013-08-19 15:45:08 -0700 | [diff] [blame] | 893 | public static final Key<float[]> TONEMAP_CURVE_BLUE = |
| 894 | new Key<float[]>("android.tonemap.curveBlue", float[].class); |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 895 | |
| 896 | /** |
| 897 | * <p> |
| 898 | * Table mapping green input values to output |
| 899 | * values |
| 900 | * </p> |
Zhijun He | 3ffd705 | 2013-08-19 15:45:08 -0700 | [diff] [blame] | 901 | * <p> |
| 902 | * Tonemapping / contrast / gamma curve for the green |
| 903 | * channel, to use when android.tonemap.mode is CONTRAST_CURVE. |
| 904 | * </p><p> |
| 905 | * See android.tonemap.curveRed for more details. |
| 906 | * </p> |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 907 | */ |
Zhijun He | 3ffd705 | 2013-08-19 15:45:08 -0700 | [diff] [blame] | 908 | public static final Key<float[]> TONEMAP_CURVE_GREEN = |
| 909 | new Key<float[]>("android.tonemap.curveGreen", float[].class); |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 910 | |
| 911 | /** |
| 912 | * <p> |
| 913 | * Table mapping red input values to output |
| 914 | * values |
| 915 | * </p> |
| 916 | * <p> |
Zhijun He | 3ffd705 | 2013-08-19 15:45:08 -0700 | [diff] [blame] | 917 | * Tonemapping / contrast / gamma curve for the red |
| 918 | * channel, to use when android.tonemap.mode is CONTRAST_CURVE. |
| 919 | * </p><p> |
| 920 | * Since the input and output ranges may vary depending on |
| 921 | * the camera pipeline, the input and output pixel values |
| 922 | * are represented by normalized floating-point values |
| 923 | * between 0 and 1, with 0 == black and 1 == white. |
| 924 | * </p><p> |
| 925 | * The curve should be linearly interpolated between the |
| 926 | * defined points. The points will be listed in increasing |
| 927 | * order of P_IN. For example, if the array is: [0.0, 0.0, |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 928 | * 0.3, 0.5, 1.0, 1.0], then the input->output mapping |
| 929 | * for a few sample points would be: 0 -> 0, 0.15 -> |
| 930 | * 0.25, 0.3 -> 0.5, 0.5 -> 0.64 |
| 931 | * </p> |
| 932 | */ |
| 933 | public static final Key<float[]> TONEMAP_CURVE_RED = |
| 934 | new Key<float[]>("android.tonemap.curveRed", float[].class); |
| 935 | |
| 936 | /** |
| 937 | * @see #TONEMAP_MODE_CONTRAST_CURVE |
| 938 | * @see #TONEMAP_MODE_FAST |
| 939 | * @see #TONEMAP_MODE_HIGH_QUALITY |
| 940 | */ |
| 941 | public static final Key<Integer> TONEMAP_MODE = |
| 942 | new Key<Integer>("android.tonemap.mode", int.class); |
| 943 | |
| 944 | /** |
| 945 | * <p> |
| 946 | * This LED is nominally used to indicate to the user |
| 947 | * that the camera is powered on and may be streaming images back to the |
| 948 | * Application Processor. In certain rare circumstances, the OS may |
| 949 | * disable this when video is processed locally and not transmitted to |
| 950 | * any untrusted applications. |
| 951 | * </p><p> |
| 952 | * In particular, the LED *must* always be on when the data could be |
| 953 | * transmitted off the device. The LED *should* always be on whenever |
| 954 | * data is stored locally on the device. |
| 955 | * </p><p> |
| 956 | * The LED *may* be off if a trusted application is using the data that |
| 957 | * doesn't violate the above rules. |
| 958 | * </p> |
| 959 | * |
| 960 | * @hide |
| 961 | */ |
| 962 | public static final Key<Boolean> LED_TRANSMIT = |
| 963 | new Key<Boolean>("android.led.transmit", boolean.class); |
| 964 | |
| 965 | /** |
| 966 | * <p> |
| 967 | * Whether black-level compensation is locked |
| 968 | * to its current values, or is free to vary |
| 969 | * </p> |
| 970 | * <p> |
| 971 | * When set to ON, the values used for black-level |
| 972 | * compensation must not change until the lock is set to |
| 973 | * OFF |
| 974 | * </p><p> |
| 975 | * Since changes to certain capture parameters (such as |
| 976 | * exposure time) may require resetting of black level |
| 977 | * compensation, the HAL must report whether setting the |
| 978 | * black level lock was successful in the output result |
| 979 | * metadata. |
Igor Murashkin | d5ff06a | 2013-08-20 15:15:06 -0700 | [diff] [blame] | 980 | * </p><p> |
| 981 | * The black level locking must happen at the sensor, and not at the ISP. |
| 982 | * If for some reason black level locking is no longer legal (for example, |
| 983 | * the analog gain has changed, which forces black levels to be |
| 984 | * recalculated), then the HAL is free to override this request (and it |
| 985 | * must report 'OFF' when this does happen) until the next time locking |
| 986 | * is legal again. |
Eino-Ville Talvala | 5a32b20c | 2013-08-08 12:38:36 -0700 | [diff] [blame] | 987 | * </p> |
| 988 | */ |
| 989 | public static final Key<Boolean> BLACK_LEVEL_LOCK = |
| 990 | new Key<Boolean>("android.blackLevel.lock", boolean.class); |
| 991 | |
| 992 | /*~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~ |
| 993 | * End generated code |
| 994 | *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~O@*/ |
Eino-Ville Talvala | b267554 | 2012-12-12 13:29:45 -0800 | [diff] [blame] | 995 | } |