blob: 543ce214712c2f27c71537a661d9446f0c949ef9 [file] [log] [blame]
Eino-Ville Talvalab2675542012-12-12 13:29:45 -08001/*
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 Talvala2f1a2e42013-07-25 17:12:05 -070017package android.hardware.camera2;
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080018
Eino-Ville Talvala70c22072013-08-27 12:09:04 -070019import android.hardware.camera2.impl.CameraMetadataNative;
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080020
21/**
22 * <p>The results of a single image capture from the image sensor.</p>
23 *
24 * <p>Contains the final configuration for the capture hardware (sensor, lens,
25 * flash), the processing pipeline, the control algorithms, and the output
26 * buffers.</p>
27 *
28 * <p>CaptureResults are produced by a {@link CameraDevice} after processing a
29 * {@link CaptureRequest}. All properties listed for capture requests can also
30 * be queried on the capture result, to determine the final values used for
31 * capture. The result also includes additional metadata about the state of the
32 * camera device during the capture.</p>
33 *
34 */
35public final class CaptureResult extends CameraMetadata {
Eino-Ville Talvala70c22072013-08-27 12:09:04 -070036
37 private final CameraMetadataNative mResults;
Igor Murashkin6bbf9dc2013-09-05 12:22:00 -070038 private final CaptureRequest mRequest;
39 private final int mSequenceId;
Eino-Ville Talvala70c22072013-08-27 12:09:04 -070040
Igor Murashkin70725502013-06-25 20:27:06 +000041 /**
Eino-Ville Talvala70c22072013-08-27 12:09:04 -070042 * Takes ownership of the passed-in properties object
Igor Murashkin70725502013-06-25 20:27:06 +000043 * @hide
44 */
Igor Murashkin6bbf9dc2013-09-05 12:22:00 -070045 public CaptureResult(CameraMetadataNative results, CaptureRequest parent, int sequenceId) {
46 if (results == null) {
47 throw new IllegalArgumentException("results was null");
48 }
49
50 if (parent == null) {
51 throw new IllegalArgumentException("parent was null");
52 }
53
Eino-Ville Talvala70c22072013-08-27 12:09:04 -070054 mResults = results;
Igor Murashkin6bbf9dc2013-09-05 12:22:00 -070055 mRequest = parent;
56 mSequenceId = sequenceId;
Eino-Ville Talvala70c22072013-08-27 12:09:04 -070057 }
58
59 @Override
60 public <T> T get(Key<T> key) {
61 return mResults.get(key);
Eino-Ville Talvalab2675542012-12-12 13:29:45 -080062 }
63
Igor Murashkin6bbf9dc2013-09-05 12:22:00 -070064 /**
65 * Get the request associated with this result.
66 *
67 * <p>Whenever a request is successfully captured, with
68 * {@link CameraDevice.CaptureListener#onCaptureCompleted},
69 * the {@code result}'s {@code getRequest()} will return that {@code request}.
70 * </p>
71 *
72 * <p>In particular,
73 * <code><pre>cameraDevice.capture(someRequest, new CaptureListener() {
74 * {@literal @}Override
75 * void onCaptureCompleted(CaptureRequest myRequest, CaptureResult myResult) {
76 * assert(myResult.getRequest.equals(myRequest) == true);
77 * }
78 * };
79 * </code></pre>
80 * </p>
81 *
82 * @return The request associated with this result. Never {@code null}.
83 */
84 public CaptureRequest getRequest() {
85 return mRequest;
86 }
87
88 /**
89 * Get the frame number associated with this result.
90 *
91 * <p>Whenever a request has been processed, regardless of failure or success,
92 * it gets a unique frame number assigned to its future result/failure.</p>
93 *
94 * <p>This value monotonically increments, starting with 0,
95 * for every new result or failure; and the scope is the lifetime of the
96 * {@link CameraDevice}.</p>
97 *
98 * @return int frame number
99 */
100 public int getFrameNumber() {
101 return get(REQUEST_FRAME_COUNT);
102 }
103
104 /**
105 * The sequence ID for this failure that was returned by the
106 * {@link CameraDevice#capture} family of functions.
107 *
108 * <p>The sequence ID is a unique monotonically increasing value starting from 0,
109 * incremented every time a new group of requests is submitted to the CameraDevice.</p>
110 *
111 * @return int The ID for the sequence of requests that this capture result is a part of
112 *
113 * @see CameraDevice.CaptureListener#onCaptureSequenceCompleted
114 */
115 public int getSequenceId() {
116 return mSequenceId;
117 }
118
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700119 /*@O~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~
120 * The key entries below this point are generated from metadata
121 * definitions in /system/media/camera/docs. Do not modify by hand or
122 * modify the comment blocks at the start or end.
123 *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~*/
124
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800125
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700126 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800127 * <p>A color transform matrix to use to transform
128 * from sensor RGB color space to output linear sRGB color space</p>
Zhijun He49a3ca92014-02-05 13:48:09 -0800129 * <p>This matrix is either set by the camera device when the request
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800130 * {@link CaptureRequest#COLOR_CORRECTION_MODE android.colorCorrection.mode} is not TRANSFORM_MATRIX, or
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700131 * directly by the application in the request when the
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800132 * {@link CaptureRequest#COLOR_CORRECTION_MODE android.colorCorrection.mode} is TRANSFORM_MATRIX.</p>
Zhijun He49a3ca92014-02-05 13:48:09 -0800133 * <p>In the latter case, the camera device may round the matrix to account
134 * for precision issues; the final rounded matrix should be reported back
135 * in this matrix result metadata. The transform should keep the magnitude
136 * of the output color values within <code>[0, 1.0]</code> (assuming input color
137 * values is within the normalized range <code>[0, 1.0]</code>), or clipping may occur.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800138 *
139 * @see CaptureRequest#COLOR_CORRECTION_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700140 */
141 public static final Key<Rational[]> COLOR_CORRECTION_TRANSFORM =
142 new Key<Rational[]>("android.colorCorrection.transform", Rational[].class);
143
144 /**
Igor Murashkin7d2a5c52014-01-17 15:07:52 -0800145 * <p>Gains applying to Bayer raw color channels for
Igor Murashkinace5bf02013-12-10 17:36:40 -0800146 * white-balance</p>
147 * <p>The 4-channel white-balance gains are defined in
Igor Murashkin7d2a5c52014-01-17 15:07:52 -0800148 * the order of <code>[R G_even G_odd B]</code>, where <code>G_even</code> is the gain
149 * for green pixels on even rows of the output, and <code>G_odd</code>
150 * is the gain for green pixels on the odd rows. if a HAL
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700151 * does not support a separate gain for even/odd green channels,
Igor Murashkin7d2a5c52014-01-17 15:07:52 -0800152 * it should use the <code>G_even</code> value, and write <code>G_odd</code> equal to
153 * <code>G_even</code> in the output result metadata.</p>
Igor Murashkinace5bf02013-12-10 17:36:40 -0800154 * <p>This array is either set by HAL when the request
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800155 * {@link CaptureRequest#COLOR_CORRECTION_MODE android.colorCorrection.mode} is not TRANSFORM_MATRIX, or
Igor Murashkind5ff06a2013-08-20 15:15:06 -0700156 * directly by the application in the request when the
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800157 * {@link CaptureRequest#COLOR_CORRECTION_MODE android.colorCorrection.mode} is TRANSFORM_MATRIX.</p>
Igor Murashkin7d2a5c52014-01-17 15:07:52 -0800158 * <p>The output should be the gains actually applied by the HAL to
Igor Murashkinace5bf02013-12-10 17:36:40 -0800159 * the current frame.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800160 *
161 * @see CaptureRequest#COLOR_CORRECTION_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700162 */
163 public static final Key<float[]> COLOR_CORRECTION_GAINS =
164 new Key<float[]>("android.colorCorrection.gains", float[].class);
165
166 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800167 * <p>The ID sent with the latest
168 * CAMERA2_TRIGGER_PRECAPTURE_METERING call</p>
169 * <p>Must be 0 if no
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700170 * CAMERA2_TRIGGER_PRECAPTURE_METERING trigger received yet
171 * by HAL. Always updated even if AE algorithm ignores the
Igor Murashkinace5bf02013-12-10 17:36:40 -0800172 * trigger</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700173 * @hide
174 */
175 public static final Key<Integer> CONTROL_AE_PRECAPTURE_ID =
176 new Key<Integer>("android.control.aePrecaptureId", int.class);
177
178 /**
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800179 * <p>The desired mode for the camera device's
180 * auto-exposure routine.</p>
181 * <p>This control is only effective if {@link CaptureRequest#CONTROL_MODE android.control.mode} is
182 * AUTO.</p>
183 * <p>When set to any of the ON modes, the camera device's
184 * auto-exposure routine is enabled, overriding the
185 * application's selected exposure time, sensor sensitivity,
186 * and frame duration ({@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime},
187 * {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}, and
188 * {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration}). If one of the FLASH modes
189 * is selected, the camera device's flash unit controls are
190 * also overridden.</p>
191 * <p>The FLASH modes are only available if the camera device
192 * has a flash unit ({@link CameraCharacteristics#FLASH_INFO_AVAILABLE android.flash.info.available} is <code>true</code>).</p>
193 * <p>If flash TORCH mode is desired, this field must be set to
194 * ON or OFF, and {@link CaptureRequest#FLASH_MODE android.flash.mode} set to TORCH.</p>
195 * <p>When set to any of the ON modes, the values chosen by the
196 * camera device auto-exposure routine for the overridden
197 * fields for a given capture will be available in its
198 * CaptureResult.</p>
199 *
Zhijun He5f2a47f2014-01-16 15:44:41 -0800200 * @see CaptureRequest#CONTROL_MODE
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -0800201 * @see CameraCharacteristics#FLASH_INFO_AVAILABLE
202 * @see CaptureRequest#FLASH_MODE
Igor Murashkinaef3b7e2014-01-15 13:20:37 -0800203 * @see CaptureRequest#SENSOR_EXPOSURE_TIME
204 * @see CaptureRequest#SENSOR_FRAME_DURATION
Zhijun He399f05d2014-01-15 11:31:30 -0800205 * @see CaptureRequest#SENSOR_SENSITIVITY
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800206 * @see #CONTROL_AE_MODE_OFF
207 * @see #CONTROL_AE_MODE_ON
208 * @see #CONTROL_AE_MODE_ON_AUTO_FLASH
209 * @see #CONTROL_AE_MODE_ON_ALWAYS_FLASH
210 * @see #CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE
211 */
212 public static final Key<Integer> CONTROL_AE_MODE =
213 new Key<Integer>("android.control.aeMode", int.class);
214
215 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800216 * <p>List of areas to use for
Ruben Brunkf59521d2014-02-03 17:14:33 -0800217 * metering.</p>
Igor Murashkinace5bf02013-12-10 17:36:40 -0800218 * <p>Each area is a rectangle plus weight: xmin, ymin,
Ruben Brunkf59521d2014-02-03 17:14:33 -0800219 * xmax, ymax, weight. The rectangle is defined to be inclusive of the
Igor Murashkinace5bf02013-12-10 17:36:40 -0800220 * specified coordinates.</p>
221 * <p>The coordinate system is based on the active pixel array,
Timothy Knight2629f272013-09-03 17:23:23 -0700222 * with (0,0) being the top-left pixel in the active pixel array, and
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800223 * ({@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}.width - 1,
224 * {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}.height - 1) being the
Timothy Knight2629f272013-09-03 17:23:23 -0700225 * bottom-right pixel in the active pixel array. The weight
Igor Murashkinace5bf02013-12-10 17:36:40 -0800226 * should be nonnegative.</p>
227 * <p>If all regions have 0 weight, then no specific metering area
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700228 * needs to be used by the HAL. If the metering region is
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800229 * outside the current {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}, the HAL
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700230 * should ignore the sections outside the region and output the
Ruben Brunkf59521d2014-02-03 17:14:33 -0800231 * used sections in the frame metadata.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800232 *
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800233 * @see CaptureRequest#SCALER_CROP_REGION
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -0800234 * @see CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700235 */
236 public static final Key<int[]> CONTROL_AE_REGIONS =
237 new Key<int[]>("android.control.aeRegions", int[].class);
238
239 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800240 * <p>Current state of AE algorithm</p>
Zhijun He228f4f92014-01-16 17:22:05 -0800241 * <p>Switching between or enabling AE modes ({@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode}) always
242 * resets the AE state to INACTIVE. Similarly, switching between {@link CaptureRequest#CONTROL_MODE android.control.mode},
243 * or {@link CaptureRequest#CONTROL_SCENE_MODE android.control.sceneMode} if <code>{@link CaptureRequest#CONTROL_MODE android.control.mode} == USE_SCENE_MODE</code> resets all
244 * the algorithm states to INACTIVE.</p>
245 * <p>The camera device can do several state transitions between two results, if it is
246 * allowed by the state transition table. For example: INACTIVE may never actually be
247 * seen in a result.</p>
248 * <p>The state in the result is the state for this image (in sync with this image): if
249 * AE state becomes CONVERGED, then the image data associated with this result should
250 * be good to use.</p>
251 * <p>Below are state transition tables for different AE modes.</p>
252 * <table>
253 * <thead>
254 * <tr>
255 * <th align="center">State</th>
256 * <th align="center">Transition Cause</th>
257 * <th align="center">New State</th>
258 * <th align="center">Notes</th>
259 * </tr>
260 * </thead>
261 * <tbody>
262 * <tr>
263 * <td align="center">INACTIVE</td>
264 * <td align="center"></td>
265 * <td align="center">INACTIVE</td>
266 * <td align="center">Camera device auto exposure algorithm is disabled</td>
267 * </tr>
268 * </tbody>
269 * </table>
270 * <p>When {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode} is AE_MODE_ON_*:</p>
271 * <table>
272 * <thead>
273 * <tr>
274 * <th align="center">State</th>
275 * <th align="center">Transition Cause</th>
276 * <th align="center">New State</th>
277 * <th align="center">Notes</th>
278 * </tr>
279 * </thead>
280 * <tbody>
281 * <tr>
282 * <td align="center">INACTIVE</td>
283 * <td align="center">Camera device initiates AE scan</td>
284 * <td align="center">SEARCHING</td>
285 * <td align="center">Values changing</td>
286 * </tr>
287 * <tr>
288 * <td align="center">INACTIVE</td>
289 * <td align="center">{@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock} is ON</td>
290 * <td align="center">LOCKED</td>
291 * <td align="center">Values locked</td>
292 * </tr>
293 * <tr>
294 * <td align="center">SEARCHING</td>
295 * <td align="center">Camera device finishes AE scan</td>
296 * <td align="center">CONVERGED</td>
297 * <td align="center">Good values, not changing</td>
298 * </tr>
299 * <tr>
300 * <td align="center">SEARCHING</td>
301 * <td align="center">Camera device finishes AE scan</td>
302 * <td align="center">FLASH_REQUIRED</td>
303 * <td align="center">Converged but too dark w/o flash</td>
304 * </tr>
305 * <tr>
306 * <td align="center">SEARCHING</td>
307 * <td align="center">{@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock} is ON</td>
308 * <td align="center">LOCKED</td>
309 * <td align="center">Values locked</td>
310 * </tr>
311 * <tr>
312 * <td align="center">CONVERGED</td>
313 * <td align="center">Camera device initiates AE scan</td>
314 * <td align="center">SEARCHING</td>
315 * <td align="center">Values changing</td>
316 * </tr>
317 * <tr>
318 * <td align="center">CONVERGED</td>
319 * <td align="center">{@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock} is ON</td>
320 * <td align="center">LOCKED</td>
321 * <td align="center">Values locked</td>
322 * </tr>
323 * <tr>
324 * <td align="center">FLASH_REQUIRED</td>
325 * <td align="center">Camera device initiates AE scan</td>
326 * <td align="center">SEARCHING</td>
327 * <td align="center">Values changing</td>
328 * </tr>
329 * <tr>
330 * <td align="center">FLASH_REQUIRED</td>
331 * <td align="center">{@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock} is ON</td>
332 * <td align="center">LOCKED</td>
333 * <td align="center">Values locked</td>
334 * </tr>
335 * <tr>
336 * <td align="center">LOCKED</td>
337 * <td align="center">{@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock} is OFF</td>
338 * <td align="center">SEARCHING</td>
339 * <td align="center">Values not good after unlock</td>
340 * </tr>
341 * <tr>
342 * <td align="center">LOCKED</td>
343 * <td align="center">{@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock} is OFF</td>
344 * <td align="center">CONVERGED</td>
345 * <td align="center">Values good after unlock</td>
346 * </tr>
347 * <tr>
348 * <td align="center">LOCKED</td>
349 * <td align="center">{@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock} is OFF</td>
350 * <td align="center">FLASH_REQUIRED</td>
351 * <td align="center">Exposure good, but too dark</td>
352 * </tr>
353 * <tr>
354 * <td align="center">PRECAPTURE</td>
355 * <td align="center">Sequence done. {@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock} is OFF</td>
356 * <td align="center">CONVERGED</td>
357 * <td align="center">Ready for high-quality capture</td>
358 * </tr>
359 * <tr>
360 * <td align="center">PRECAPTURE</td>
361 * <td align="center">Sequence done. {@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock} is ON</td>
362 * <td align="center">LOCKED</td>
363 * <td align="center">Ready for high-quality capture</td>
364 * </tr>
365 * <tr>
366 * <td align="center">Any state</td>
367 * <td align="center">{@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger} is START</td>
368 * <td align="center">PRECAPTURE</td>
369 * <td align="center">Start AE precapture metering sequence</td>
370 * </tr>
371 * </tbody>
372 * </table>
373 *
374 * @see CaptureRequest#CONTROL_AE_LOCK
375 * @see CaptureRequest#CONTROL_AE_MODE
376 * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
377 * @see CaptureRequest#CONTROL_MODE
378 * @see CaptureRequest#CONTROL_SCENE_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700379 * @see #CONTROL_AE_STATE_INACTIVE
380 * @see #CONTROL_AE_STATE_SEARCHING
381 * @see #CONTROL_AE_STATE_CONVERGED
382 * @see #CONTROL_AE_STATE_LOCKED
383 * @see #CONTROL_AE_STATE_FLASH_REQUIRED
384 * @see #CONTROL_AE_STATE_PRECAPTURE
385 */
386 public static final Key<Integer> CONTROL_AE_STATE =
387 new Key<Integer>("android.control.aeState", int.class);
388
389 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800390 * <p>Whether AF is currently enabled, and what
391 * mode it is set to</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800392 * <p>Only effective if {@link CaptureRequest#CONTROL_MODE android.control.mode} = AUTO.</p>
Zhijun He78146ec2014-01-14 18:12:13 -0800393 * <p>If the lens is controlled by the camera device auto-focus algorithm,
394 * the camera device will report the current AF status in android.control.afState
395 * in result metadata.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800396 *
397 * @see CaptureRequest#CONTROL_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700398 * @see #CONTROL_AF_MODE_OFF
399 * @see #CONTROL_AF_MODE_AUTO
400 * @see #CONTROL_AF_MODE_MACRO
401 * @see #CONTROL_AF_MODE_CONTINUOUS_VIDEO
402 * @see #CONTROL_AF_MODE_CONTINUOUS_PICTURE
403 * @see #CONTROL_AF_MODE_EDOF
404 */
405 public static final Key<Integer> CONTROL_AF_MODE =
406 new Key<Integer>("android.control.afMode", int.class);
407
408 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800409 * <p>List of areas to use for focus
Ruben Brunkf59521d2014-02-03 17:14:33 -0800410 * estimation.</p>
Igor Murashkinace5bf02013-12-10 17:36:40 -0800411 * <p>Each area is a rectangle plus weight: xmin, ymin,
Ruben Brunkf59521d2014-02-03 17:14:33 -0800412 * xmax, ymax, weight. The rectangle is defined to be inclusive of the
Igor Murashkinace5bf02013-12-10 17:36:40 -0800413 * specified coordinates.</p>
414 * <p>The coordinate system is based on the active pixel array,
Timothy Knight2629f272013-09-03 17:23:23 -0700415 * with (0,0) being the top-left pixel in the active pixel array, and
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800416 * ({@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}.width - 1,
417 * {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}.height - 1) being the
Timothy Knight2629f272013-09-03 17:23:23 -0700418 * bottom-right pixel in the active pixel array. The weight
Igor Murashkinace5bf02013-12-10 17:36:40 -0800419 * should be nonnegative.</p>
420 * <p>If all regions have 0 weight, then no specific focus area
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700421 * needs to be used by the HAL. If the focusing region is
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800422 * outside the current {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}, the HAL
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700423 * should ignore the sections outside the region and output the
Ruben Brunkf59521d2014-02-03 17:14:33 -0800424 * used sections in the frame metadata.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800425 *
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800426 * @see CaptureRequest#SCALER_CROP_REGION
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -0800427 * @see CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700428 */
429 public static final Key<int[]> CONTROL_AF_REGIONS =
430 new Key<int[]>("android.control.afRegions", int[].class);
431
432 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800433 * <p>Current state of AF algorithm</p>
Zhijun He228f4f92014-01-16 17:22:05 -0800434 * <p>Switching between or enabling AF modes ({@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}) always
435 * resets the AF state to INACTIVE. Similarly, switching between {@link CaptureRequest#CONTROL_MODE android.control.mode},
436 * or {@link CaptureRequest#CONTROL_SCENE_MODE android.control.sceneMode} if <code>{@link CaptureRequest#CONTROL_MODE android.control.mode} == USE_SCENE_MODE</code> resets all
437 * the algorithm states to INACTIVE.</p>
438 * <p>The camera device can do several state transitions between two results, if it is
439 * allowed by the state transition table. For example: INACTIVE may never actually be
440 * seen in a result.</p>
441 * <p>The state in the result is the state for this image (in sync with this image): if
442 * AF state becomes FOCUSED, then the image data associated with this result should
443 * be sharp.</p>
444 * <p>Below are state transition tables for different AF modes.</p>
445 * <p>When {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode} is AF_MODE_OFF or AF_MODE_EDOF:</p>
446 * <table>
447 * <thead>
448 * <tr>
449 * <th align="center">State</th>
450 * <th align="center">Transition Cause</th>
451 * <th align="center">New State</th>
452 * <th align="center">Notes</th>
453 * </tr>
454 * </thead>
455 * <tbody>
456 * <tr>
457 * <td align="center">INACTIVE</td>
458 * <td align="center"></td>
459 * <td align="center">INACTIVE</td>
460 * <td align="center">Never changes</td>
461 * </tr>
462 * </tbody>
463 * </table>
464 * <p>When {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode} is AF_MODE_AUTO or AF_MODE_MACRO:</p>
465 * <table>
466 * <thead>
467 * <tr>
468 * <th align="center">State</th>
469 * <th align="center">Transition Cause</th>
470 * <th align="center">New State</th>
471 * <th align="center">Notes</th>
472 * </tr>
473 * </thead>
474 * <tbody>
475 * <tr>
476 * <td align="center">INACTIVE</td>
477 * <td align="center">AF_TRIGGER</td>
478 * <td align="center">ACTIVE_SCAN</td>
479 * <td align="center">Start AF sweep, Lens now moving</td>
480 * </tr>
481 * <tr>
482 * <td align="center">ACTIVE_SCAN</td>
483 * <td align="center">AF sweep done</td>
484 * <td align="center">FOCUSED_LOCKED</td>
485 * <td align="center">Focused, Lens now locked</td>
486 * </tr>
487 * <tr>
488 * <td align="center">ACTIVE_SCAN</td>
489 * <td align="center">AF sweep done</td>
490 * <td align="center">NOT_FOCUSED_LOCKED</td>
491 * <td align="center">Not focused, Lens now locked</td>
492 * </tr>
493 * <tr>
494 * <td align="center">ACTIVE_SCAN</td>
495 * <td align="center">AF_CANCEL</td>
496 * <td align="center">INACTIVE</td>
497 * <td align="center">Cancel/reset AF, Lens now locked</td>
498 * </tr>
499 * <tr>
500 * <td align="center">FOCUSED_LOCKED</td>
501 * <td align="center">AF_CANCEL</td>
502 * <td align="center">INACTIVE</td>
503 * <td align="center">Cancel/reset AF</td>
504 * </tr>
505 * <tr>
506 * <td align="center">FOCUSED_LOCKED</td>
507 * <td align="center">AF_TRIGGER</td>
508 * <td align="center">ACTIVE_SCAN</td>
509 * <td align="center">Start new sweep, Lens now moving</td>
510 * </tr>
511 * <tr>
512 * <td align="center">NOT_FOCUSED_LOCKED</td>
513 * <td align="center">AF_CANCEL</td>
514 * <td align="center">INACTIVE</td>
515 * <td align="center">Cancel/reset AF</td>
516 * </tr>
517 * <tr>
518 * <td align="center">NOT_FOCUSED_LOCKED</td>
519 * <td align="center">AF_TRIGGER</td>
520 * <td align="center">ACTIVE_SCAN</td>
521 * <td align="center">Start new sweep, Lens now moving</td>
522 * </tr>
523 * <tr>
524 * <td align="center">Any state</td>
525 * <td align="center">Mode change</td>
526 * <td align="center">INACTIVE</td>
527 * <td align="center"></td>
528 * </tr>
529 * </tbody>
530 * </table>
531 * <p>When {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode} is AF_MODE_CONTINUOUS_VIDEO:</p>
532 * <table>
533 * <thead>
534 * <tr>
535 * <th align="center">State</th>
536 * <th align="center">Transition Cause</th>
537 * <th align="center">New State</th>
538 * <th align="center">Notes</th>
539 * </tr>
540 * </thead>
541 * <tbody>
542 * <tr>
543 * <td align="center">INACTIVE</td>
544 * <td align="center">Camera device initiates new scan</td>
545 * <td align="center">PASSIVE_SCAN</td>
546 * <td align="center">Start AF scan, Lens now moving</td>
547 * </tr>
548 * <tr>
549 * <td align="center">INACTIVE</td>
550 * <td align="center">AF_TRIGGER</td>
551 * <td align="center">NOT_FOCUSED_LOCKED</td>
552 * <td align="center">AF state query, Lens now locked</td>
553 * </tr>
554 * <tr>
555 * <td align="center">PASSIVE_SCAN</td>
556 * <td align="center">Camera device completes current scan</td>
557 * <td align="center">PASSIVE_FOCUSED</td>
558 * <td align="center">End AF scan, Lens now locked</td>
559 * </tr>
560 * <tr>
561 * <td align="center">PASSIVE_SCAN</td>
562 * <td align="center">Camera device fails current scan</td>
563 * <td align="center">PASSIVE_UNFOCUSED</td>
564 * <td align="center">End AF scan, Lens now locked</td>
565 * </tr>
566 * <tr>
567 * <td align="center">PASSIVE_SCAN</td>
568 * <td align="center">AF_TRIGGER</td>
569 * <td align="center">FOCUSED_LOCKED</td>
570 * <td align="center">Immediate trans. If focus is good, Lens now locked</td>
571 * </tr>
572 * <tr>
573 * <td align="center">PASSIVE_SCAN</td>
574 * <td align="center">AF_TRIGGER</td>
575 * <td align="center">NOT_FOCUSED_LOCKED</td>
576 * <td align="center">Immediate trans. if focus is bad, Lens now locked</td>
577 * </tr>
578 * <tr>
579 * <td align="center">PASSIVE_SCAN</td>
580 * <td align="center">AF_CANCEL</td>
581 * <td align="center">INACTIVE</td>
582 * <td align="center">Reset lens position, Lens now locked</td>
583 * </tr>
584 * <tr>
585 * <td align="center">PASSIVE_FOCUSED</td>
586 * <td align="center">Camera device initiates new scan</td>
587 * <td align="center">PASSIVE_SCAN</td>
588 * <td align="center">Start AF scan, Lens now moving</td>
589 * </tr>
590 * <tr>
591 * <td align="center">PASSIVE_UNFOCUSED</td>
592 * <td align="center">Camera device initiates new scan</td>
593 * <td align="center">PASSIVE_SCAN</td>
594 * <td align="center">Start AF scan, Lens now moving</td>
595 * </tr>
596 * <tr>
597 * <td align="center">PASSIVE_FOCUSED</td>
598 * <td align="center">AF_TRIGGER</td>
599 * <td align="center">FOCUSED_LOCKED</td>
600 * <td align="center">Immediate trans. Lens now locked</td>
601 * </tr>
602 * <tr>
603 * <td align="center">PASSIVE_UNFOCUSED</td>
604 * <td align="center">AF_TRIGGER</td>
605 * <td align="center">NOT_FOCUSED_LOCKED</td>
606 * <td align="center">Immediate trans. Lens now locked</td>
607 * </tr>
608 * <tr>
609 * <td align="center">FOCUSED_LOCKED</td>
610 * <td align="center">AF_TRIGGER</td>
611 * <td align="center">FOCUSED_LOCKED</td>
612 * <td align="center">No effect</td>
613 * </tr>
614 * <tr>
615 * <td align="center">FOCUSED_LOCKED</td>
616 * <td align="center">AF_CANCEL</td>
617 * <td align="center">INACTIVE</td>
618 * <td align="center">Restart AF scan</td>
619 * </tr>
620 * <tr>
621 * <td align="center">NOT_FOCUSED_LOCKED</td>
622 * <td align="center">AF_TRIGGER</td>
623 * <td align="center">NOT_FOCUSED_LOCKED</td>
624 * <td align="center">No effect</td>
625 * </tr>
626 * <tr>
627 * <td align="center">NOT_FOCUSED_LOCKED</td>
628 * <td align="center">AF_CANCEL</td>
629 * <td align="center">INACTIVE</td>
630 * <td align="center">Restart AF scan</td>
631 * </tr>
632 * </tbody>
633 * </table>
634 * <p>When {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode} is AF_MODE_CONTINUOUS_PICTURE:</p>
635 * <table>
636 * <thead>
637 * <tr>
638 * <th align="center">State</th>
639 * <th align="center">Transition Cause</th>
640 * <th align="center">New State</th>
641 * <th align="center">Notes</th>
642 * </tr>
643 * </thead>
644 * <tbody>
645 * <tr>
646 * <td align="center">INACTIVE</td>
647 * <td align="center">Camera device initiates new scan</td>
648 * <td align="center">PASSIVE_SCAN</td>
649 * <td align="center">Start AF scan, Lens now moving</td>
650 * </tr>
651 * <tr>
652 * <td align="center">INACTIVE</td>
653 * <td align="center">AF_TRIGGER</td>
654 * <td align="center">NOT_FOCUSED_LOCKED</td>
655 * <td align="center">AF state query, Lens now locked</td>
656 * </tr>
657 * <tr>
658 * <td align="center">PASSIVE_SCAN</td>
659 * <td align="center">Camera device completes current scan</td>
660 * <td align="center">PASSIVE_FOCUSED</td>
661 * <td align="center">End AF scan, Lens now locked</td>
662 * </tr>
663 * <tr>
664 * <td align="center">PASSIVE_SCAN</td>
665 * <td align="center">Camera device fails current scan</td>
666 * <td align="center">PASSIVE_UNFOCUSED</td>
667 * <td align="center">End AF scan, Lens now locked</td>
668 * </tr>
669 * <tr>
670 * <td align="center">PASSIVE_SCAN</td>
671 * <td align="center">AF_TRIGGER</td>
672 * <td align="center">FOCUSED_LOCKED</td>
673 * <td align="center">Eventual trans. once focus good, Lens now locked</td>
674 * </tr>
675 * <tr>
676 * <td align="center">PASSIVE_SCAN</td>
677 * <td align="center">AF_TRIGGER</td>
678 * <td align="center">NOT_FOCUSED_LOCKED</td>
679 * <td align="center">Eventual trans. if cannot focus, Lens now locked</td>
680 * </tr>
681 * <tr>
682 * <td align="center">PASSIVE_SCAN</td>
683 * <td align="center">AF_CANCEL</td>
684 * <td align="center">INACTIVE</td>
685 * <td align="center">Reset lens position, Lens now locked</td>
686 * </tr>
687 * <tr>
688 * <td align="center">PASSIVE_FOCUSED</td>
689 * <td align="center">Camera device initiates new scan</td>
690 * <td align="center">PASSIVE_SCAN</td>
691 * <td align="center">Start AF scan, Lens now moving</td>
692 * </tr>
693 * <tr>
694 * <td align="center">PASSIVE_UNFOCUSED</td>
695 * <td align="center">Camera device initiates new scan</td>
696 * <td align="center">PASSIVE_SCAN</td>
697 * <td align="center">Start AF scan, Lens now moving</td>
698 * </tr>
699 * <tr>
700 * <td align="center">PASSIVE_FOCUSED</td>
701 * <td align="center">AF_TRIGGER</td>
702 * <td align="center">FOCUSED_LOCKED</td>
703 * <td align="center">Immediate trans. Lens now locked</td>
704 * </tr>
705 * <tr>
706 * <td align="center">PASSIVE_UNFOCUSED</td>
707 * <td align="center">AF_TRIGGER</td>
708 * <td align="center">NOT_FOCUSED_LOCKED</td>
709 * <td align="center">Immediate trans. Lens now locked</td>
710 * </tr>
711 * <tr>
712 * <td align="center">FOCUSED_LOCKED</td>
713 * <td align="center">AF_TRIGGER</td>
714 * <td align="center">FOCUSED_LOCKED</td>
715 * <td align="center">No effect</td>
716 * </tr>
717 * <tr>
718 * <td align="center">FOCUSED_LOCKED</td>
719 * <td align="center">AF_CANCEL</td>
720 * <td align="center">INACTIVE</td>
721 * <td align="center">Restart AF scan</td>
722 * </tr>
723 * <tr>
724 * <td align="center">NOT_FOCUSED_LOCKED</td>
725 * <td align="center">AF_TRIGGER</td>
726 * <td align="center">NOT_FOCUSED_LOCKED</td>
727 * <td align="center">No effect</td>
728 * </tr>
729 * <tr>
730 * <td align="center">NOT_FOCUSED_LOCKED</td>
731 * <td align="center">AF_CANCEL</td>
732 * <td align="center">INACTIVE</td>
733 * <td align="center">Restart AF scan</td>
734 * </tr>
735 * </tbody>
736 * </table>
737 *
738 * @see CaptureRequest#CONTROL_AF_MODE
739 * @see CaptureRequest#CONTROL_MODE
740 * @see CaptureRequest#CONTROL_SCENE_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700741 * @see #CONTROL_AF_STATE_INACTIVE
742 * @see #CONTROL_AF_STATE_PASSIVE_SCAN
743 * @see #CONTROL_AF_STATE_PASSIVE_FOCUSED
744 * @see #CONTROL_AF_STATE_ACTIVE_SCAN
745 * @see #CONTROL_AF_STATE_FOCUSED_LOCKED
746 * @see #CONTROL_AF_STATE_NOT_FOCUSED_LOCKED
Eino-Ville Talvala9f880f72013-09-20 17:50:41 -0700747 * @see #CONTROL_AF_STATE_PASSIVE_UNFOCUSED
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700748 */
749 public static final Key<Integer> CONTROL_AF_STATE =
750 new Key<Integer>("android.control.afState", int.class);
751
752 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800753 * <p>The ID sent with the latest
754 * CAMERA2_TRIGGER_AUTOFOCUS call</p>
755 * <p>Must be 0 if no CAMERA2_TRIGGER_AUTOFOCUS trigger
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700756 * received yet by HAL. Always updated even if AF algorithm
Igor Murashkinace5bf02013-12-10 17:36:40 -0800757 * ignores the trigger</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700758 * @hide
759 */
760 public static final Key<Integer> CONTROL_AF_TRIGGER_ID =
761 new Key<Integer>("android.control.afTriggerId", int.class);
762
763 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800764 * <p>Whether AWB is currently setting the color
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700765 * transform fields, and what its illumination target
Igor Murashkinace5bf02013-12-10 17:36:40 -0800766 * is</p>
Zhijun He399f05d2014-01-15 11:31:30 -0800767 * <p>This control is only effective if {@link CaptureRequest#CONTROL_MODE android.control.mode} is AUTO.</p>
768 * <p>When set to the ON mode, the camera device's auto white balance
769 * routine is enabled, overriding the application's selected
770 * {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}, {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} and
771 * {@link CaptureRequest#COLOR_CORRECTION_MODE android.colorCorrection.mode}.</p>
772 * <p>When set to the OFF mode, the camera device's auto white balance
773 * routine is disabled. The applicantion manually controls the white
774 * balance by {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}, android.colorCorrection.gains
775 * and {@link CaptureRequest#COLOR_CORRECTION_MODE android.colorCorrection.mode}.</p>
776 * <p>When set to any other modes, the camera device's auto white balance
777 * routine is disabled. The camera device uses each particular illumination
778 * target for white balance adjustment.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800779 *
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -0800780 * @see CaptureRequest#COLOR_CORRECTION_GAINS
Zhijun He5f2a47f2014-01-16 15:44:41 -0800781 * @see CaptureRequest#COLOR_CORRECTION_MODE
782 * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -0800783 * @see CaptureRequest#CONTROL_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700784 * @see #CONTROL_AWB_MODE_OFF
785 * @see #CONTROL_AWB_MODE_AUTO
786 * @see #CONTROL_AWB_MODE_INCANDESCENT
787 * @see #CONTROL_AWB_MODE_FLUORESCENT
788 * @see #CONTROL_AWB_MODE_WARM_FLUORESCENT
789 * @see #CONTROL_AWB_MODE_DAYLIGHT
790 * @see #CONTROL_AWB_MODE_CLOUDY_DAYLIGHT
791 * @see #CONTROL_AWB_MODE_TWILIGHT
792 * @see #CONTROL_AWB_MODE_SHADE
793 */
794 public static final Key<Integer> CONTROL_AWB_MODE =
795 new Key<Integer>("android.control.awbMode", int.class);
796
797 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800798 * <p>List of areas to use for illuminant
Ruben Brunkf59521d2014-02-03 17:14:33 -0800799 * estimation.</p>
Igor Murashkinace5bf02013-12-10 17:36:40 -0800800 * <p>Only used in AUTO mode.</p>
801 * <p>Each area is a rectangle plus weight: xmin, ymin,
Ruben Brunkf59521d2014-02-03 17:14:33 -0800802 * xmax, ymax, weight. The rectangle is defined to be inclusive of the
Igor Murashkinace5bf02013-12-10 17:36:40 -0800803 * specified coordinates.</p>
804 * <p>The coordinate system is based on the active pixel array,
Timothy Knight2629f272013-09-03 17:23:23 -0700805 * with (0,0) being the top-left pixel in the active pixel array, and
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800806 * ({@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}.width - 1,
807 * {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}.height - 1) being the
Timothy Knight2629f272013-09-03 17:23:23 -0700808 * bottom-right pixel in the active pixel array. The weight
Igor Murashkinace5bf02013-12-10 17:36:40 -0800809 * should be nonnegative.</p>
810 * <p>If all regions have 0 weight, then no specific metering area
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700811 * needs to be used by the HAL. If the metering region is
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800812 * outside the current {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}, the HAL
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700813 * should ignore the sections outside the region and output the
Ruben Brunkf59521d2014-02-03 17:14:33 -0800814 * used sections in the frame metadata.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800815 *
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800816 * @see CaptureRequest#SCALER_CROP_REGION
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -0800817 * @see CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700818 */
819 public static final Key<int[]> CONTROL_AWB_REGIONS =
820 new Key<int[]>("android.control.awbRegions", int[].class);
821
822 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800823 * <p>Current state of AWB algorithm</p>
Zhijun He228f4f92014-01-16 17:22:05 -0800824 * <p>Switching between or enabling AWB modes ({@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode}) always
825 * resets the AWB state to INACTIVE. Similarly, switching between {@link CaptureRequest#CONTROL_MODE android.control.mode},
826 * or {@link CaptureRequest#CONTROL_SCENE_MODE android.control.sceneMode} if <code>{@link CaptureRequest#CONTROL_MODE android.control.mode} == USE_SCENE_MODE</code> resets all
827 * the algorithm states to INACTIVE.</p>
828 * <p>The camera device can do several state transitions between two results, if it is
829 * allowed by the state transition table. So INACTIVE may never actually be seen in
830 * a result.</p>
831 * <p>The state in the result is the state for this image (in sync with this image): if
832 * AWB state becomes CONVERGED, then the image data associated with this result should
833 * be good to use.</p>
834 * <p>Below are state transition tables for different AWB modes.</p>
835 * <p>When <code>{@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} != AWB_MODE_AUTO</code>:</p>
836 * <table>
837 * <thead>
838 * <tr>
839 * <th align="center">State</th>
840 * <th align="center">Transition Cause</th>
841 * <th align="center">New State</th>
842 * <th align="center">Notes</th>
843 * </tr>
844 * </thead>
845 * <tbody>
846 * <tr>
847 * <td align="center">INACTIVE</td>
848 * <td align="center"></td>
849 * <td align="center">INACTIVE</td>
850 * <td align="center">Camera device auto white balance algorithm is disabled</td>
851 * </tr>
852 * </tbody>
853 * </table>
854 * <p>When {@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} is AWB_MODE_AUTO:</p>
855 * <table>
856 * <thead>
857 * <tr>
858 * <th align="center">State</th>
859 * <th align="center">Transition Cause</th>
860 * <th align="center">New State</th>
861 * <th align="center">Notes</th>
862 * </tr>
863 * </thead>
864 * <tbody>
865 * <tr>
866 * <td align="center">INACTIVE</td>
867 * <td align="center">Camera device initiates AWB scan</td>
868 * <td align="center">SEARCHING</td>
869 * <td align="center">Values changing</td>
870 * </tr>
871 * <tr>
872 * <td align="center">INACTIVE</td>
873 * <td align="center">{@link CaptureRequest#CONTROL_AWB_LOCK android.control.awbLock} is ON</td>
874 * <td align="center">LOCKED</td>
875 * <td align="center">Values locked</td>
876 * </tr>
877 * <tr>
878 * <td align="center">SEARCHING</td>
879 * <td align="center">Camera device finishes AWB scan</td>
880 * <td align="center">CONVERGED</td>
881 * <td align="center">Good values, not changing</td>
882 * </tr>
883 * <tr>
884 * <td align="center">SEARCHING</td>
885 * <td align="center">{@link CaptureRequest#CONTROL_AWB_LOCK android.control.awbLock} is ON</td>
886 * <td align="center">LOCKED</td>
887 * <td align="center">Values locked</td>
888 * </tr>
889 * <tr>
890 * <td align="center">CONVERGED</td>
891 * <td align="center">Camera device initiates AWB scan</td>
892 * <td align="center">SEARCHING</td>
893 * <td align="center">Values changing</td>
894 * </tr>
895 * <tr>
896 * <td align="center">CONVERGED</td>
897 * <td align="center">{@link CaptureRequest#CONTROL_AWB_LOCK android.control.awbLock} is ON</td>
898 * <td align="center">LOCKED</td>
899 * <td align="center">Values locked</td>
900 * </tr>
901 * <tr>
902 * <td align="center">LOCKED</td>
903 * <td align="center">{@link CaptureRequest#CONTROL_AWB_LOCK android.control.awbLock} is OFF</td>
904 * <td align="center">SEARCHING</td>
905 * <td align="center">Values not good after unlock</td>
906 * </tr>
907 * <tr>
908 * <td align="center">LOCKED</td>
909 * <td align="center">{@link CaptureRequest#CONTROL_AWB_LOCK android.control.awbLock} is OFF</td>
910 * <td align="center">CONVERGED</td>
911 * <td align="center">Values good after unlock</td>
912 * </tr>
913 * </tbody>
914 * </table>
915 *
916 * @see CaptureRequest#CONTROL_AWB_LOCK
917 * @see CaptureRequest#CONTROL_AWB_MODE
918 * @see CaptureRequest#CONTROL_MODE
919 * @see CaptureRequest#CONTROL_SCENE_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700920 * @see #CONTROL_AWB_STATE_INACTIVE
921 * @see #CONTROL_AWB_STATE_SEARCHING
922 * @see #CONTROL_AWB_STATE_CONVERGED
923 * @see #CONTROL_AWB_STATE_LOCKED
924 */
925 public static final Key<Integer> CONTROL_AWB_STATE =
926 new Key<Integer>("android.control.awbState", int.class);
927
928 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800929 * <p>Overall mode of 3A control
930 * routines</p>
Zhijun Hef3537422013-12-16 16:56:35 -0800931 * <p>High-level 3A control. When set to OFF, all 3A control
Zhijun He5f2a47f2014-01-16 15:44:41 -0800932 * by the camera device is disabled. The application must set the fields for
Zhijun Hef3537422013-12-16 16:56:35 -0800933 * capture parameters itself.</p>
934 * <p>When set to AUTO, the individual algorithm controls in
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800935 * android.control.* are in effect, such as {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}.</p>
Zhijun Hef3537422013-12-16 16:56:35 -0800936 * <p>When set to USE_SCENE_MODE, the individual controls in
Zhijun He5f2a47f2014-01-16 15:44:41 -0800937 * android.control.* are mostly disabled, and the camera device implements
Zhijun Hef3537422013-12-16 16:56:35 -0800938 * one of the scene mode settings (such as ACTION, SUNSET, or PARTY)
Zhijun He5f2a47f2014-01-16 15:44:41 -0800939 * as it wishes. The camera device scene mode 3A settings are provided by
Zhijun Hef3537422013-12-16 16:56:35 -0800940 * android.control.sceneModeOverrides.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -0800941 *
942 * @see CaptureRequest#CONTROL_AF_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700943 * @see #CONTROL_MODE_OFF
944 * @see #CONTROL_MODE_AUTO
945 * @see #CONTROL_MODE_USE_SCENE_MODE
946 */
947 public static final Key<Integer> CONTROL_MODE =
948 new Key<Integer>("android.control.mode", int.class);
949
950 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800951 * <p>Operation mode for edge
952 * enhancement</p>
Zhijun He28079362013-12-17 10:35:40 -0800953 * <p>Edge/sharpness/detail enhancement. OFF means no
954 * enhancement will be applied by the HAL.</p>
Zhijun He5f2a47f2014-01-16 15:44:41 -0800955 * <p>FAST/HIGH_QUALITY both mean camera device determined enhancement
Zhijun He28079362013-12-17 10:35:40 -0800956 * will be applied. HIGH_QUALITY mode indicates that the
Zhijun He5f2a47f2014-01-16 15:44:41 -0800957 * camera device will use the highest-quality enhancement algorithms,
958 * even if it slows down capture rate. FAST means the camera device will
Zhijun He28079362013-12-17 10:35:40 -0800959 * not slow down capture rate when applying edge enhancement.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700960 * @see #EDGE_MODE_OFF
961 * @see #EDGE_MODE_FAST
962 * @see #EDGE_MODE_HIGH_QUALITY
963 */
964 public static final Key<Integer> EDGE_MODE =
965 new Key<Integer>("android.edge.mode", int.class);
966
967 /**
Zhijun He66d065a2014-01-16 18:18:50 -0800968 * <p>The desired mode for for the camera device's flash control.</p>
969 * <p>This control is only effective when flash unit is available
Zhijun He153ac102014-02-03 12:25:12 -0800970 * (<code>{@link CameraCharacteristics#FLASH_INFO_AVAILABLE android.flash.info.available} == true</code>).</p>
Zhijun He66d065a2014-01-16 18:18:50 -0800971 * <p>When this control is used, the {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode} must be set to ON or OFF.
972 * Otherwise, the camera device auto-exposure related flash control (ON_AUTO_FLASH,
973 * ON_ALWAYS_FLASH, or ON_AUTO_FLASH_REDEYE) will override this control.</p>
974 * <p>When set to OFF, the camera device will not fire flash for this capture.</p>
975 * <p>When set to SINGLE, the camera device will fire flash regardless of the camera
976 * device's auto-exposure routine's result. When used in still capture case, this
977 * control should be used along with AE precapture metering sequence
978 * ({@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger}), otherwise, the image may be incorrectly exposed.</p>
979 * <p>When set to TORCH, the flash will be on continuously. This mode can be used
980 * for use cases such as preview, auto-focus assist, still capture, or video recording.</p>
Zhijun Heca1b73a2014-02-03 12:39:53 -0800981 * <p>The flash status will be reported by {@link CaptureResult#FLASH_STATE android.flash.state} in the capture result metadata.</p>
Zhijun He66d065a2014-01-16 18:18:50 -0800982 *
983 * @see CaptureRequest#CONTROL_AE_MODE
984 * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
985 * @see CameraCharacteristics#FLASH_INFO_AVAILABLE
Zhijun Heca1b73a2014-02-03 12:39:53 -0800986 * @see CaptureResult#FLASH_STATE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -0700987 * @see #FLASH_MODE_OFF
988 * @see #FLASH_MODE_SINGLE
989 * @see #FLASH_MODE_TORCH
990 */
991 public static final Key<Integer> FLASH_MODE =
992 new Key<Integer>("android.flash.mode", int.class);
993
994 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -0800995 * <p>Current state of the flash
Zhijun Heca1b73a2014-02-03 12:39:53 -0800996 * unit.</p>
997 * <p>When the camera device doesn't have flash unit
998 * (i.e. <code>{@link CameraCharacteristics#FLASH_INFO_AVAILABLE android.flash.info.available} == false</code>), this state will always be UNAVAILABLE.
999 * Other states indicate the current flash status.</p>
1000 *
1001 * @see CameraCharacteristics#FLASH_INFO_AVAILABLE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001002 * @see #FLASH_STATE_UNAVAILABLE
1003 * @see #FLASH_STATE_CHARGING
1004 * @see #FLASH_STATE_READY
1005 * @see #FLASH_STATE_FIRED
1006 */
1007 public static final Key<Integer> FLASH_STATE =
1008 new Key<Integer>("android.flash.state", int.class);
1009
1010 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001011 * <p>GPS coordinates to include in output JPEG
1012 * EXIF</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001013 */
1014 public static final Key<double[]> JPEG_GPS_COORDINATES =
1015 new Key<double[]>("android.jpeg.gpsCoordinates", double[].class);
1016
1017 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001018 * <p>32 characters describing GPS algorithm to
1019 * include in EXIF</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001020 */
1021 public static final Key<String> JPEG_GPS_PROCESSING_METHOD =
1022 new Key<String>("android.jpeg.gpsProcessingMethod", String.class);
1023
1024 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001025 * <p>Time GPS fix was made to include in
1026 * EXIF</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001027 */
1028 public static final Key<Long> JPEG_GPS_TIMESTAMP =
1029 new Key<Long>("android.jpeg.gpsTimestamp", long.class);
1030
1031 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001032 * <p>Orientation of JPEG image to
1033 * write</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001034 */
1035 public static final Key<Integer> JPEG_ORIENTATION =
1036 new Key<Integer>("android.jpeg.orientation", int.class);
1037
1038 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001039 * <p>Compression quality of the final JPEG
1040 * image</p>
1041 * <p>85-95 is typical usage range</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001042 */
1043 public static final Key<Byte> JPEG_QUALITY =
1044 new Key<Byte>("android.jpeg.quality", byte.class);
1045
1046 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001047 * <p>Compression quality of JPEG
1048 * thumbnail</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001049 */
1050 public static final Key<Byte> JPEG_THUMBNAIL_QUALITY =
1051 new Key<Byte>("android.jpeg.thumbnailQuality", byte.class);
1052
1053 /**
Zhijun He5a9ff372013-12-26 11:49:09 -08001054 * <p>Resolution of embedded JPEG thumbnail</p>
Zhijun He5f2a47f2014-01-16 15:44:41 -08001055 * <p>When set to (0, 0) value, the JPEG EXIF will not contain thumbnail,
1056 * but the captured JPEG will still be a valid image.</p>
Zhijun He5a9ff372013-12-26 11:49:09 -08001057 * <p>When a jpeg image capture is issued, the thumbnail size selected should have
1058 * the same aspect ratio as the jpeg image.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001059 */
1060 public static final Key<android.hardware.camera2.Size> JPEG_THUMBNAIL_SIZE =
1061 new Key<android.hardware.camera2.Size>("android.jpeg.thumbnailSize", android.hardware.camera2.Size.class);
1062
1063 /**
Zhijun Hefb46c642014-01-14 17:57:23 -08001064 * <p>The ratio of lens focal length to the effective
1065 * aperture diameter.</p>
1066 * <p>This will only be supported on the camera devices that
1067 * have variable aperture lens. The aperture value can only be
1068 * one of the values listed in {@link CameraCharacteristics#LENS_INFO_AVAILABLE_APERTURES android.lens.info.availableApertures}.</p>
1069 * <p>When this is supported and {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode} is OFF,
1070 * this can be set along with {@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime},
1071 * {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}, and android.sensor.frameDuration
1072 * to achieve manual exposure control.</p>
1073 * <p>The requested aperture value may take several frames to reach the
1074 * requested value; the camera device will report the current (intermediate)
Zhijun Heca1b73a2014-02-03 12:39:53 -08001075 * aperture size in capture result metadata while the aperture is changing.
1076 * While the aperture is still changing, {@link CaptureResult#LENS_STATE android.lens.state} will be set to MOVING.</p>
Zhijun Hefb46c642014-01-14 17:57:23 -08001077 * <p>When this is supported and {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode} is one of
1078 * the ON modes, this will be overridden by the camera device
1079 * auto-exposure algorithm, the overridden values are then provided
1080 * back to the user in the corresponding result.</p>
1081 *
Zhijun He399f05d2014-01-15 11:31:30 -08001082 * @see CaptureRequest#CONTROL_AE_MODE
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -08001083 * @see CameraCharacteristics#LENS_INFO_AVAILABLE_APERTURES
Zhijun Heca1b73a2014-02-03 12:39:53 -08001084 * @see CaptureResult#LENS_STATE
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -08001085 * @see CaptureRequest#SENSOR_EXPOSURE_TIME
1086 * @see CaptureRequest#SENSOR_SENSITIVITY
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001087 */
1088 public static final Key<Float> LENS_APERTURE =
1089 new Key<Float>("android.lens.aperture", float.class);
1090
1091 /**
Ruben Brunk855bae42014-01-17 10:30:32 -08001092 * <p>State of lens neutral density filter(s).</p>
1093 * <p>This will not be supported on most camera devices. On devices
1094 * where this is supported, this may only be set to one of the
1095 * values included in {@link CameraCharacteristics#LENS_INFO_AVAILABLE_FILTER_DENSITIES android.lens.info.availableFilterDensities}.</p>
1096 * <p>Lens filters are typically used to lower the amount of light the
1097 * sensor is exposed to (measured in steps of EV). As used here, an EV
1098 * step is the standard logarithmic representation, which are
1099 * non-negative, and inversely proportional to the amount of light
1100 * hitting the sensor. For example, setting this to 0 would result
1101 * in no reduction of the incoming light, and setting this to 2 would
1102 * mean that the filter is set to reduce incoming light by two stops
1103 * (allowing 1/4 of the prior amount of light to the sensor).</p>
Zhijun Heca1b73a2014-02-03 12:39:53 -08001104 * <p>It may take several frames before the lens filter density changes
1105 * to the requested value. While the filter density is still changing,
1106 * {@link CaptureResult#LENS_STATE android.lens.state} will be set to MOVING.</p>
Ruben Brunk855bae42014-01-17 10:30:32 -08001107 *
1108 * @see CameraCharacteristics#LENS_INFO_AVAILABLE_FILTER_DENSITIES
Zhijun Heca1b73a2014-02-03 12:39:53 -08001109 * @see CaptureResult#LENS_STATE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001110 */
1111 public static final Key<Float> LENS_FILTER_DENSITY =
1112 new Key<Float>("android.lens.filterDensity", float.class);
1113
1114 /**
Ruben Brunka20f4c22014-01-17 15:21:13 -08001115 * <p>The current lens focal length; used for optical zoom.</p>
1116 * <p>This setting controls the physical focal length of the camera
1117 * device's lens. Changing the focal length changes the field of
1118 * view of the camera device, and is usually used for optical zoom.</p>
1119 * <p>Like {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance} and {@link CaptureRequest#LENS_APERTURE android.lens.aperture}, this
1120 * setting won't be applied instantaneously, and it may take several
Zhijun Heca1b73a2014-02-03 12:39:53 -08001121 * frames before the lens can change to the requested focal length.
Ruben Brunka20f4c22014-01-17 15:21:13 -08001122 * While the focal length is still changing, {@link CaptureResult#LENS_STATE android.lens.state} will
1123 * be set to MOVING.</p>
1124 * <p>This is expected not to be supported on most devices.</p>
1125 *
1126 * @see CaptureRequest#LENS_APERTURE
1127 * @see CaptureRequest#LENS_FOCUS_DISTANCE
1128 * @see CaptureResult#LENS_STATE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001129 */
1130 public static final Key<Float> LENS_FOCAL_LENGTH =
1131 new Key<Float>("android.lens.focalLength", float.class);
1132
1133 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001134 * <p>Distance to plane of sharpest focus,
1135 * measured from frontmost surface of the lens</p>
1136 * <p>Should be zero for fixed-focus cameras</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001137 */
1138 public static final Key<Float> LENS_FOCUS_DISTANCE =
1139 new Key<Float>("android.lens.focusDistance", float.class);
1140
1141 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001142 * <p>The range of scene distances that are in
1143 * sharp focus (depth of field)</p>
1144 * <p>If variable focus not supported, can still report
1145 * fixed depth of field range</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001146 */
Zhijun Hec59b0782013-09-26 10:39:36 -07001147 public static final Key<float[]> LENS_FOCUS_RANGE =
1148 new Key<float[]>("android.lens.focusRange", float[].class);
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001149
1150 /**
Ruben Brunk00849b32014-01-17 18:30:23 -08001151 * <p>Sets whether the camera device uses optical image stabilization (OIS)
1152 * when capturing images.</p>
1153 * <p>OIS is used to compensate for motion blur due to small movements of
1154 * the camera during capture. Unlike digital image stabilization, OIS makes
1155 * use of mechanical elements to stabilize the camera sensor, and thus
1156 * allows for longer exposure times before camera shake becomes
1157 * apparent.</p>
1158 * <p>This is not expected to be supported on most devices.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001159 * @see #LENS_OPTICAL_STABILIZATION_MODE_OFF
1160 * @see #LENS_OPTICAL_STABILIZATION_MODE_ON
1161 */
1162 public static final Key<Integer> LENS_OPTICAL_STABILIZATION_MODE =
1163 new Key<Integer>("android.lens.opticalStabilizationMode", int.class);
1164
1165 /**
Zhijun Heca1b73a2014-02-03 12:39:53 -08001166 * <p>Current lens status.</p>
1167 * <p>For lens parameters {@link CaptureRequest#LENS_FOCAL_LENGTH android.lens.focalLength}, {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance},
1168 * {@link CaptureRequest#LENS_FILTER_DENSITY android.lens.filterDensity} and {@link CaptureRequest#LENS_APERTURE android.lens.aperture}, when changes are requested,
1169 * they may take several frames to reach the requested values. This state indicates
1170 * the current status of the lens parameters.</p>
1171 * <p>When the state is STATIONARY, the lens parameters are not changing. This could be
1172 * either because the parameters are all fixed, or because the lens has had enough
1173 * time to reach the most recently-requested values.
1174 * If all these lens parameters are not changable for a camera device, as listed below:</p>
1175 * <ul>
1176 * <li>Fixed focus (<code>{@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance} == 0</code>), which means
1177 * {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance} parameter will always be 0.</li>
1178 * <li>Fixed focal length ({@link CameraCharacteristics#LENS_INFO_AVAILABLE_FOCAL_LENGTHS android.lens.info.availableFocalLengths} contains single value),
1179 * which means the optical zoom is not supported.</li>
1180 * <li>No ND filter ({@link CameraCharacteristics#LENS_INFO_AVAILABLE_FILTER_DENSITIES android.lens.info.availableFilterDensities} contains only 0).</li>
1181 * <li>Fixed aperture ({@link CameraCharacteristics#LENS_INFO_AVAILABLE_APERTURES android.lens.info.availableApertures} contains single value).</li>
1182 * </ul>
1183 * <p>Then this state will always be STATIONARY.</p>
1184 * <p>When the state is MOVING, it indicates that at least one of the lens parameters
1185 * is changing.</p>
1186 *
1187 * @see CaptureRequest#LENS_APERTURE
1188 * @see CaptureRequest#LENS_FILTER_DENSITY
1189 * @see CaptureRequest#LENS_FOCAL_LENGTH
1190 * @see CaptureRequest#LENS_FOCUS_DISTANCE
1191 * @see CameraCharacteristics#LENS_INFO_AVAILABLE_APERTURES
1192 * @see CameraCharacteristics#LENS_INFO_AVAILABLE_FILTER_DENSITIES
1193 * @see CameraCharacteristics#LENS_INFO_AVAILABLE_FOCAL_LENGTHS
1194 * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001195 * @see #LENS_STATE_STATIONARY
Igor Murashkin9ea4ae62013-09-11 21:40:11 -07001196 * @see #LENS_STATE_MOVING
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001197 */
1198 public static final Key<Integer> LENS_STATE =
1199 new Key<Integer>("android.lens.state", int.class);
1200
1201 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001202 * <p>Mode of operation for the noise reduction
1203 * algorithm</p>
Zhijun He28079362013-12-17 10:35:40 -08001204 * <p>Noise filtering control. OFF means no noise reduction
1205 * will be applied by the HAL.</p>
Zhijun He5f2a47f2014-01-16 15:44:41 -08001206 * <p>FAST/HIGH_QUALITY both mean camera device determined noise filtering
1207 * will be applied. HIGH_QUALITY mode indicates that the camera device
1208 * will use the highest-quality noise filtering algorithms,
1209 * even if it slows down capture rate. FAST means the camera device should not
Zhijun He28079362013-12-17 10:35:40 -08001210 * slow down capture rate when applying noise filtering.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001211 * @see #NOISE_REDUCTION_MODE_OFF
1212 * @see #NOISE_REDUCTION_MODE_FAST
1213 * @see #NOISE_REDUCTION_MODE_HIGH_QUALITY
1214 */
1215 public static final Key<Integer> NOISE_REDUCTION_MODE =
1216 new Key<Integer>("android.noiseReduction.mode", int.class);
1217
1218 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001219 * <p>Whether a result given to the framework is the
Eino-Ville Talvala7a313102013-11-07 14:45:06 -08001220 * final one for the capture, or only a partial that contains a
1221 * subset of the full set of dynamic metadata
Igor Murashkinace5bf02013-12-10 17:36:40 -08001222 * values.</p>
1223 * <p>The entries in the result metadata buffers for a
Eino-Ville Talvala7a313102013-11-07 14:45:06 -08001224 * single capture may not overlap, except for this entry. The
1225 * FINAL buffers must retain FIFO ordering relative to the
1226 * requests that generate them, so the FINAL buffer for frame 3 must
1227 * always be sent to the framework after the FINAL buffer for frame 2, and
1228 * before the FINAL buffer for frame 4. PARTIAL buffers may be returned
1229 * in any order relative to other frames, but all PARTIAL buffers for a given
1230 * capture must arrive before the FINAL buffer for that capture. This entry may
Igor Murashkinace5bf02013-12-10 17:36:40 -08001231 * only be used by the HAL if quirks.usePartialResult is set to 1.</p>
Igor Murashkin3242f4f2014-01-15 12:27:41 -08001232 * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
Eino-Ville Talvala7a313102013-11-07 14:45:06 -08001233 * @hide
1234 */
1235 public static final Key<Boolean> QUIRKS_PARTIAL_RESULT =
1236 new Key<Boolean>("android.quirks.partialResult", boolean.class);
1237
1238 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001239 * <p>A frame counter set by the framework. This value monotonically
Igor Murashkin6bbf9dc2013-09-05 12:22:00 -07001240 * increases with every new result (that is, each new result has a unique
Igor Murashkinace5bf02013-12-10 17:36:40 -08001241 * frameCount value).</p>
1242 * <p>Reset on release()</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001243 */
1244 public static final Key<Integer> REQUEST_FRAME_COUNT =
1245 new Key<Integer>("android.request.frameCount", int.class);
1246
1247 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001248 * <p>An application-specified ID for the current
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001249 * request. Must be maintained unchanged in output
Igor Murashkinace5bf02013-12-10 17:36:40 -08001250 * frame</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001251 * @hide
1252 */
1253 public static final Key<Integer> REQUEST_ID =
1254 new Key<Integer>("android.request.id", int.class);
1255
1256 /**
Igor Murashkinc127f052014-01-17 18:06:02 -08001257 * <p>Specifies the number of pipeline stages the frame went
1258 * through from when it was exposed to when the final completed result
1259 * was available to the framework.</p>
1260 * <p>Depending on what settings are used in the request, and
1261 * what streams are configured, the data may undergo less processing,
1262 * and some pipeline stages skipped.</p>
1263 * <p>See {@link CameraCharacteristics#REQUEST_PIPELINE_MAX_DEPTH android.request.pipelineMaxDepth} for more details.</p>
1264 *
1265 * @see CameraCharacteristics#REQUEST_PIPELINE_MAX_DEPTH
1266 */
1267 public static final Key<Byte> REQUEST_PIPELINE_DEPTH =
1268 new Key<Byte>("android.request.pipelineDepth", byte.class);
1269
1270 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001271 * <p>(x, y, width, height).</p>
1272 * <p>A rectangle with the top-level corner of (x,y) and size
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001273 * (width, height). The region of the sensor that is used for
1274 * output. Each stream must use this rectangle to produce its
1275 * output, cropping to a smaller region if necessary to
Igor Murashkinace5bf02013-12-10 17:36:40 -08001276 * maintain the stream's aspect ratio.</p>
1277 * <p>HAL2.x uses only (x, y, width)</p>
1278 * <p>Any additional per-stream cropping must be done to
1279 * maximize the final pixel area of the stream.</p>
1280 * <p>For example, if the crop region is set to a 4:3 aspect
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001281 * ratio, then 4:3 streams should use the exact crop
1282 * region. 16:9 streams should further crop vertically
Igor Murashkinace5bf02013-12-10 17:36:40 -08001283 * (letterbox).</p>
1284 * <p>Conversely, if the crop region is set to a 16:9, then 4:3
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001285 * outputs should crop horizontally (pillarbox), and 16:9
1286 * streams should match exactly. These additional crops must
Igor Murashkinace5bf02013-12-10 17:36:40 -08001287 * be centered within the crop region.</p>
1288 * <p>The output streams must maintain square pixels at all
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001289 * times, no matter what the relative aspect ratios of the
1290 * crop region and the stream are. Negative values for
1291 * corner are allowed for raw output if full pixel array is
1292 * larger than active pixel array. Width and height may be
1293 * rounded to nearest larger supportable width, especially
1294 * for raw output, where only a few fixed scales may be
1295 * possible. The width and height of the crop region cannot
1296 * be set to be smaller than floor( activeArraySize.width /
1297 * android.scaler.maxDigitalZoom ) and floor(
1298 * activeArraySize.height / android.scaler.maxDigitalZoom),
Igor Murashkinace5bf02013-12-10 17:36:40 -08001299 * respectively.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001300 */
1301 public static final Key<android.graphics.Rect> SCALER_CROP_REGION =
1302 new Key<android.graphics.Rect>("android.scaler.cropRegion", android.graphics.Rect.class);
1303
1304 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001305 * <p>Duration each pixel is exposed to
1306 * light.</p>
1307 * <p>If the sensor can't expose this exact duration, it should shorten the
1308 * duration exposed to the nearest possible value (rather than expose longer).</p>
1309 * <p>1/10000 - 30 sec range. No bulb mode</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001310 */
1311 public static final Key<Long> SENSOR_EXPOSURE_TIME =
1312 new Key<Long>("android.sensor.exposureTime", long.class);
1313
1314 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001315 * <p>Duration from start of frame exposure to
Igor Murashkin143aa0b2014-01-17 15:02:34 -08001316 * start of next frame exposure.</p>
1317 * <p>The maximum frame rate that can be supported by a camera subsystem is
1318 * a function of many factors:</p>
1319 * <ul>
1320 * <li>Requested resolutions of output image streams</li>
1321 * <li>Availability of binning / skipping modes on the imager</li>
1322 * <li>The bandwidth of the imager interface</li>
1323 * <li>The bandwidth of the various ISP processing blocks</li>
1324 * </ul>
1325 * <p>Since these factors can vary greatly between different ISPs and
1326 * sensors, the camera abstraction tries to represent the bandwidth
1327 * restrictions with as simple a model as possible.</p>
1328 * <p>The model presented has the following characteristics:</p>
1329 * <ul>
1330 * <li>The image sensor is always configured to output the smallest
1331 * resolution possible given the application's requested output stream
1332 * sizes. The smallest resolution is defined as being at least as large
1333 * as the largest requested output stream size; the camera pipeline must
1334 * never digitally upsample sensor data when the crop region covers the
1335 * whole sensor. In general, this means that if only small output stream
1336 * resolutions are configured, the sensor can provide a higher frame
1337 * rate.</li>
1338 * <li>Since any request may use any or all the currently configured
1339 * output streams, the sensor and ISP must be configured to support
1340 * scaling a single capture to all the streams at the same time. This
1341 * means the camera pipeline must be ready to produce the largest
1342 * requested output size without any delay. Therefore, the overall
1343 * frame rate of a given configured stream set is governed only by the
1344 * largest requested stream resolution.</li>
1345 * <li>Using more than one output stream in a request does not affect the
1346 * frame duration.</li>
1347 * <li>JPEG streams act like processed YUV streams in requests for which
1348 * they are not included; in requests in which they are directly
1349 * referenced, they act as JPEG streams. This is because supporting a
1350 * JPEG stream requires the underlying YUV data to always be ready for
1351 * use by a JPEG encoder, but the encoder will only be used (and impact
1352 * frame duration) on requests that actually reference a JPEG stream.</li>
1353 * <li>The JPEG processor can run concurrently to the rest of the camera
1354 * pipeline, but cannot process more than 1 capture at a time.</li>
1355 * </ul>
1356 * <p>The necessary information for the application, given the model above,
1357 * is provided via the android.scaler.available*MinDurations fields.
1358 * These are used to determine the maximum frame rate / minimum frame
1359 * duration that is possible for a given stream configuration.</p>
1360 * <p>Specifically, the application can use the following rules to
1361 * determine the minimum frame duration it can request from the HAL
1362 * device:</p>
1363 * <ol>
1364 * <li>Given the application's currently configured set of output
1365 * streams, <code>S</code>, divide them into three sets: streams in a JPEG format
1366 * <code>SJ</code>, streams in a raw sensor format <code>SR</code>, and the rest ('processed')
1367 * <code>SP</code>.</li>
1368 * <li>For each subset of streams, find the largest resolution (by pixel
1369 * count) in the subset. This gives (at most) three resolutions <code>RJ</code>,
1370 * <code>RR</code>, and <code>RP</code>.</li>
1371 * <li>If <code>RJ</code> is greater than <code>RP</code>, set <code>RP</code> equal to <code>RJ</code>. If there is
1372 * no exact match for <code>RP == RJ</code> (in particular there isn't an available
1373 * processed resolution at the same size as <code>RJ</code>), then set <code>RP</code> equal
1374 * to the smallest processed resolution that is larger than <code>RJ</code>. If
1375 * there are no processed resolutions larger than <code>RJ</code>, then set <code>RJ</code> to
1376 * the processed resolution closest to <code>RJ</code>.</li>
1377 * <li>If <code>RP</code> is greater than <code>RR</code>, set <code>RR</code> equal to <code>RP</code>. If there is
1378 * no exact match for <code>RR == RP</code> (in particular there isn't an available
1379 * raw resolution at the same size as <code>RP</code>), then set <code>RR</code> equal to
1380 * or to the smallest raw resolution that is larger than <code>RP</code>. If
1381 * there are no raw resolutions larger than <code>RP</code>, then set <code>RR</code> to
1382 * the raw resolution closest to <code>RP</code>.</li>
1383 * <li>Look up the matching minimum frame durations in the property lists
1384 * {@link CameraCharacteristics#SCALER_AVAILABLE_JPEG_MIN_DURATIONS android.scaler.availableJpegMinDurations},
1385 * android.scaler.availableRawMinDurations, and
1386 * {@link CameraCharacteristics#SCALER_AVAILABLE_PROCESSED_MIN_DURATIONS android.scaler.availableProcessedMinDurations}. This gives three
1387 * minimum frame durations <code>FJ</code>, <code>FR</code>, and <code>FP</code>.</li>
1388 * <li>If a stream of requests do not use a JPEG stream, then the minimum
1389 * supported frame duration for each request is <code>max(FR, FP)</code>.</li>
1390 * <li>If a stream of requests all use the JPEG stream, then the minimum
1391 * supported frame duration for each request is <code>max(FR, FP, FJ)</code>.</li>
1392 * <li>If a mix of JPEG-using and non-JPEG-using requests is submitted by
1393 * the application, then the HAL will have to delay JPEG-using requests
1394 * whenever the JPEG encoder is still busy processing an older capture.
1395 * This will happen whenever a JPEG-using request starts capture less
1396 * than <code>FJ</code> <em>ns</em> after a previous JPEG-using request. The minimum
1397 * supported frame duration will vary between the values calculated in
1398 * #6 and #7.</li>
1399 * </ol>
1400 *
1401 * @see CameraCharacteristics#SCALER_AVAILABLE_JPEG_MIN_DURATIONS
1402 * @see CameraCharacteristics#SCALER_AVAILABLE_PROCESSED_MIN_DURATIONS
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001403 */
1404 public static final Key<Long> SENSOR_FRAME_DURATION =
1405 new Key<Long>("android.sensor.frameDuration", long.class);
1406
1407 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001408 * <p>Gain applied to image data. Must be
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001409 * implemented through analog gain only if set to values
Igor Murashkinace5bf02013-12-10 17:36:40 -08001410 * below 'maximum analog sensitivity'.</p>
1411 * <p>If the sensor can't apply this exact gain, it should lessen the
1412 * gain to the nearest possible value (rather than gain more).</p>
1413 * <p>ISO 12232:2006 REI method</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001414 */
1415 public static final Key<Integer> SENSOR_SENSITIVITY =
1416 new Key<Integer>("android.sensor.sensitivity", int.class);
1417
1418 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001419 * <p>Time at start of exposure of first
1420 * row</p>
1421 * <p>Monotonic, should be synced to other timestamps in
1422 * system</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001423 */
1424 public static final Key<Long> SENSOR_TIMESTAMP =
1425 new Key<Long>("android.sensor.timestamp", long.class);
1426
1427 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001428 * <p>The temperature of the sensor, sampled at the time
1429 * exposure began for this frame.</p>
1430 * <p>The thermal diode being queried should be inside the sensor PCB, or
1431 * somewhere close to it.</p>
Igor Murashkin3242f4f2014-01-15 12:27:41 -08001432 * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
1433 * <p><b>Full capability</b> -
1434 * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the
1435 * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key</p>
1436 *
1437 * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
Igor Murashkind5ff06a2013-08-20 15:15:06 -07001438 */
1439 public static final Key<Float> SENSOR_TEMPERATURE =
1440 new Key<Float>("android.sensor.temperature", float.class);
1441
1442 /**
Ruben Brunk20c76f62014-02-07 15:47:10 -08001443 * <p>The estimated white balance at the time of capture.</p>
1444 * <p>The estimated white balance encoded as the RGB values of the
1445 * perfectly neutral color point in the linear native sensor color space.
1446 * The order of the values is R, G, B; where R is in the lowest index.</p>
1447 * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
1448 */
1449 public static final Key<Rational[]> SENSOR_NEUTRAL_COLOR_POINT =
1450 new Key<Rational[]>("android.sensor.neutralColorPoint", Rational[].class);
1451
1452 /**
Igor Murashkinc127f052014-01-17 18:06:02 -08001453 * <p>When enabled, the sensor sends a test pattern instead of
1454 * doing a real exposure from the camera.</p>
1455 * <p>When a test pattern is enabled, all manual sensor controls specified
1456 * by android.sensor.* should be ignored. All other controls should
1457 * work as normal.</p>
1458 * <p>For example, if manual flash is enabled, flash firing should still
1459 * occur (and that the test pattern remain unmodified, since the flash
1460 * would not actually affect it).</p>
1461 * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
1462 * @see #SENSOR_TEST_PATTERN_MODE_OFF
1463 * @see #SENSOR_TEST_PATTERN_MODE_SOLID_COLOR
1464 * @see #SENSOR_TEST_PATTERN_MODE_COLOR_BARS
1465 * @see #SENSOR_TEST_PATTERN_MODE_COLOR_BARS_FADE_TO_GRAY
1466 * @see #SENSOR_TEST_PATTERN_MODE_PN9
1467 * @see #SENSOR_TEST_PATTERN_MODE_CUSTOM1
1468 */
1469 public static final Key<Integer> SENSOR_TEST_PATTERN_MODE =
1470 new Key<Integer>("android.sensor.testPatternMode", int.class);
1471
1472 /**
Zhijun Heba93fe62014-01-17 16:43:05 -08001473 * <p>Quality of lens shading correction applied
1474 * to the image data.</p>
1475 * <p>When set to OFF mode, no lens shading correction will be applied by the
1476 * camera device, and an identity lens shading map data will be provided
1477 * if <code>{@link CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE android.statistics.lensShadingMapMode} == ON</code>. For example, for lens
1478 * shading map with size specified as <code>{@link CameraCharacteristics#LENS_INFO_SHADING_MAP_SIZE android.lens.info.shadingMapSize} = [ 4, 3 ]</code>,
1479 * the output {@link CaptureResult#STATISTICS_LENS_SHADING_MAP android.statistics.lensShadingMap} for this case will be an identity map
1480 * shown below:</p>
1481 * <pre><code>[ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1482 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1483 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1484 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1485 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1486 * 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ]
1487 * </code></pre>
1488 * <p>When set to other modes, lens shading correction will be applied by the
1489 * camera device. Applications can request lens shading map data by setting
1490 * {@link CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE android.statistics.lensShadingMapMode} to ON, and then the camera device will provide
1491 * lens shading map data in {@link CaptureResult#STATISTICS_LENS_SHADING_MAP android.statistics.lensShadingMap}, with size specified
1492 * by {@link CameraCharacteristics#LENS_INFO_SHADING_MAP_SIZE android.lens.info.shadingMapSize}.</p>
1493 *
1494 * @see CameraCharacteristics#LENS_INFO_SHADING_MAP_SIZE
1495 * @see CaptureResult#STATISTICS_LENS_SHADING_MAP
1496 * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
1497 * @see #SHADING_MODE_OFF
1498 * @see #SHADING_MODE_FAST
1499 * @see #SHADING_MODE_HIGH_QUALITY
1500 * @hide
1501 */
1502 public static final Key<Integer> SHADING_MODE =
1503 new Key<Integer>("android.shading.mode", int.class);
1504
1505 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001506 * <p>State of the face detector
1507 * unit</p>
1508 * <p>Whether face detection is enabled, and whether it
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001509 * should output just the basic fields or the full set of
1510 * fields. Value must be one of the
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001511 * {@link CameraCharacteristics#STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES android.statistics.info.availableFaceDetectModes}.</p>
1512 *
1513 * @see CameraCharacteristics#STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001514 * @see #STATISTICS_FACE_DETECT_MODE_OFF
1515 * @see #STATISTICS_FACE_DETECT_MODE_SIMPLE
1516 * @see #STATISTICS_FACE_DETECT_MODE_FULL
1517 */
1518 public static final Key<Integer> STATISTICS_FACE_DETECT_MODE =
1519 new Key<Integer>("android.statistics.faceDetectMode", int.class);
1520
1521 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001522 * <p>List of unique IDs for detected
1523 * faces</p>
1524 * <p>Only available if faceDetectMode == FULL</p>
Zhijun He7f80d6f2013-11-04 10:18:05 -08001525 * @hide
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001526 */
1527 public static final Key<int[]> STATISTICS_FACE_IDS =
1528 new Key<int[]>("android.statistics.faceIds", int[].class);
1529
1530 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001531 * <p>List of landmarks for detected
1532 * faces</p>
1533 * <p>Only available if faceDetectMode == FULL</p>
Zhijun He7f80d6f2013-11-04 10:18:05 -08001534 * @hide
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001535 */
1536 public static final Key<int[]> STATISTICS_FACE_LANDMARKS =
1537 new Key<int[]>("android.statistics.faceLandmarks", int[].class);
1538
1539 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001540 * <p>List of the bounding rectangles for detected
1541 * faces</p>
1542 * <p>Only available if faceDetectMode != OFF</p>
Zhijun He7f80d6f2013-11-04 10:18:05 -08001543 * @hide
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001544 */
1545 public static final Key<android.graphics.Rect[]> STATISTICS_FACE_RECTANGLES =
1546 new Key<android.graphics.Rect[]>("android.statistics.faceRectangles", android.graphics.Rect[].class);
1547
1548 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001549 * <p>List of the face confidence scores for
1550 * detected faces</p>
1551 * <p>Only available if faceDetectMode != OFF. The value should be
1552 * meaningful (for example, setting 100 at all times is illegal).</p>
Zhijun He7f80d6f2013-11-04 10:18:05 -08001553 * @hide
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001554 */
1555 public static final Key<byte[]> STATISTICS_FACE_SCORES =
1556 new Key<byte[]>("android.statistics.faceScores", byte[].class);
1557
1558 /**
Igor Murashkin7a9b30e2013-12-11 13:31:38 -08001559 * <p>The shading map is a low-resolution floating-point map
1560 * that lists the coefficients used to correct for vignetting, for each
1561 * Bayer color channel.</p>
1562 * <p>The least shaded section of the image should have a gain factor
1563 * of 1; all other sections should have gains above 1.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001564 * <p>When {@link CaptureRequest#COLOR_CORRECTION_MODE android.colorCorrection.mode} = TRANSFORM_MATRIX, the map
Igor Murashkinace5bf02013-12-10 17:36:40 -08001565 * must take into account the colorCorrection settings.</p>
Igor Murashkin7a9b30e2013-12-11 13:31:38 -08001566 * <p>The shading map is for the entire active pixel array, and is not
1567 * affected by the crop region specified in the request. Each shading map
1568 * entry is the value of the shading compensation map over a specific
1569 * pixel on the sensor. Specifically, with a (N x M) resolution shading
1570 * map, and an active pixel array size (W x H), shading map entry
1571 * (x,y) ϵ (0 ... N-1, 0 ... M-1) is the value of the shading map at
1572 * pixel ( ((W-1)/(N-1)) * x, ((H-1)/(M-1)) * y) for the four color channels.
1573 * The map is assumed to be bilinearly interpolated between the sample points.</p>
1574 * <p>The channel order is [R, Geven, Godd, B], where Geven is the green
1575 * channel for the even rows of a Bayer pattern, and Godd is the odd rows.
1576 * The shading map is stored in a fully interleaved format, and its size
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001577 * is provided in the camera static metadata by {@link CameraCharacteristics#LENS_INFO_SHADING_MAP_SIZE android.lens.info.shadingMapSize}.</p>
Igor Murashkin7a9b30e2013-12-11 13:31:38 -08001578 * <p>The shading map should have on the order of 30-40 rows and columns,
1579 * and must be smaller than 64x64.</p>
1580 * <p>As an example, given a very small map defined as:</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001581 * <pre><code>{@link CameraCharacteristics#LENS_INFO_SHADING_MAP_SIZE android.lens.info.shadingMapSize} = [ 4, 3 ]
1582 * {@link CaptureResult#STATISTICS_LENS_SHADING_MAP android.statistics.lensShadingMap} =
Igor Murashkin7a9b30e2013-12-11 13:31:38 -08001583 * [ 1.3, 1.2, 1.15, 1.2, 1.2, 1.2, 1.15, 1.2,
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001584 * 1.1, 1.2, 1.2, 1.2, 1.3, 1.2, 1.3, 1.3,
1585 * 1.2, 1.2, 1.25, 1.1, 1.1, 1.1, 1.1, 1.0,
1586 * 1.0, 1.0, 1.0, 1.0, 1.2, 1.3, 1.25, 1.2,
1587 * 1.3, 1.2, 1.2, 1.3, 1.2, 1.15, 1.1, 1.2,
1588 * 1.2, 1.1, 1.0, 1.2, 1.3, 1.15, 1.2, 1.3 ]
Igor Murashkin7a9b30e2013-12-11 13:31:38 -08001589 * </code></pre>
1590 * <p>The low-resolution scaling map images for each channel are
1591 * (displayed using nearest-neighbor interpolation):</p>
1592 * <p><img alt="Red lens shading map" src="../../../../images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png" />
1593 * <img alt="Green (even rows) lens shading map" src="../../../../images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png" />
1594 * <img alt="Green (odd rows) lens shading map" src="../../../../images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png" />
1595 * <img alt="Blue lens shading map" src="../../../../images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png" /></p>
1596 * <p>As a visualization only, inverting the full-color map to recover an
1597 * image of a gray wall (using bicubic interpolation for visual quality) as captured by the sensor gives:</p>
1598 * <p><img alt="Image of a uniform white wall (inverse shading map)" src="../../../../images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png" /></p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001599 *
Zhijun He5f2a47f2014-01-16 15:44:41 -08001600 * @see CaptureRequest#COLOR_CORRECTION_MODE
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001601 * @see CameraCharacteristics#LENS_INFO_SHADING_MAP_SIZE
Eino-Ville Talvala265b34c2014-01-16 16:18:52 -08001602 * @see CaptureResult#STATISTICS_LENS_SHADING_MAP
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001603 */
1604 public static final Key<float[]> STATISTICS_LENS_SHADING_MAP =
1605 new Key<float[]>("android.statistics.lensShadingMap", float[].class);
1606
1607 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001608 * <p>The best-fit color channel gains calculated
1609 * by the HAL's statistics units for the current output frame</p>
1610 * <p>This may be different than the gains used for this frame,
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001611 * since statistics processing on data from a new frame
1612 * typically completes after the transform has already been
Igor Murashkinace5bf02013-12-10 17:36:40 -08001613 * applied to that frame.</p>
1614 * <p>The 4 channel gains are defined in Bayer domain,
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001615 * see {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} for details.</p>
Igor Murashkinace5bf02013-12-10 17:36:40 -08001616 * <p>This value should always be calculated by the AWB block,
1617 * regardless of the android.control.* current values.</p>
Igor Murashkinaef3b7e2014-01-15 13:20:37 -08001618 * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001619 *
1620 * @see CaptureRequest#COLOR_CORRECTION_GAINS
Igor Murashkinaef3b7e2014-01-15 13:20:37 -08001621 * @hide
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001622 */
1623 public static final Key<float[]> STATISTICS_PREDICTED_COLOR_GAINS =
1624 new Key<float[]>("android.statistics.predictedColorGains", float[].class);
1625
1626 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001627 * <p>The best-fit color transform matrix estimate
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001628 * calculated by the HAL's statistics units for the current
Igor Murashkinace5bf02013-12-10 17:36:40 -08001629 * output frame</p>
1630 * <p>The HAL must provide the estimate from its
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001631 * statistics unit on the white balance transforms to use
1632 * for the next frame. These are the values the HAL believes
1633 * are the best fit for the current output frame. This may
1634 * be different than the transform used for this frame, since
1635 * statistics processing on data from a new frame typically
1636 * completes after the transform has already been applied to
Igor Murashkinace5bf02013-12-10 17:36:40 -08001637 * that frame.</p>
1638 * <p>These estimates must be provided for all frames, even if
1639 * capture settings and color transforms are set by the application.</p>
1640 * <p>This value should always be calculated by the AWB block,
1641 * regardless of the android.control.* current values.</p>
Igor Murashkinaef3b7e2014-01-15 13:20:37 -08001642 * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
1643 * @hide
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001644 */
1645 public static final Key<Rational[]> STATISTICS_PREDICTED_COLOR_TRANSFORM =
1646 new Key<Rational[]>("android.statistics.predictedColorTransform", Rational[].class);
1647
1648 /**
Zhijun He208fb6c2014-02-03 13:09:06 -08001649 * <p>The camera device estimated scene illumination lighting
1650 * frequency.</p>
1651 * <p>Many light sources, such as most fluorescent lights, flicker at a rate
1652 * that depends on the local utility power standards. This flicker must be
1653 * accounted for by auto-exposure routines to avoid artifacts in captured images.
1654 * The camera device uses this entry to tell the application what the scene
1655 * illuminant frequency is.</p>
1656 * <p>When manual exposure control is enabled
1657 * (<code>{@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode} == OFF</code> or <code>{@link CaptureRequest#CONTROL_MODE android.control.mode} == OFF</code>),
1658 * the {@link CaptureRequest#CONTROL_AE_ANTIBANDING_MODE android.control.aeAntibandingMode} doesn't do the antibanding, and the
1659 * application can ensure it selects exposure times that do not cause banding
1660 * issues by looking into this metadata field. See android.control.aeAntibandingMode
1661 * for more details.</p>
1662 * <p>Report NONE if there doesn't appear to be flickering illumination.</p>
1663 *
1664 * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
1665 * @see CaptureRequest#CONTROL_AE_MODE
1666 * @see CaptureRequest#CONTROL_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001667 * @see #STATISTICS_SCENE_FLICKER_NONE
1668 * @see #STATISTICS_SCENE_FLICKER_50HZ
1669 * @see #STATISTICS_SCENE_FLICKER_60HZ
1670 */
1671 public static final Key<Integer> STATISTICS_SCENE_FLICKER =
1672 new Key<Integer>("android.statistics.sceneFlicker", int.class);
1673
1674 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001675 * <p>Tonemapping / contrast / gamma curve for the blue
Igor Murashkine0060932014-01-17 17:24:11 -08001676 * channel, to use when {@link CaptureRequest#TONEMAP_MODE android.tonemap.mode} is
1677 * CONTRAST_CURVE.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001678 * <p>See {@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed} for more details.</p>
1679 *
Igor Murashkin3242f4f2014-01-15 12:27:41 -08001680 * @see CaptureRequest#TONEMAP_CURVE_RED
Zhijun He5f2a47f2014-01-16 15:44:41 -08001681 * @see CaptureRequest#TONEMAP_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001682 */
Zhijun He3ffd7052013-08-19 15:45:08 -07001683 public static final Key<float[]> TONEMAP_CURVE_BLUE =
1684 new Key<float[]>("android.tonemap.curveBlue", float[].class);
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001685
1686 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001687 * <p>Tonemapping / contrast / gamma curve for the green
Igor Murashkine0060932014-01-17 17:24:11 -08001688 * channel, to use when {@link CaptureRequest#TONEMAP_MODE android.tonemap.mode} is
1689 * CONTRAST_CURVE.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001690 * <p>See {@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed} for more details.</p>
1691 *
Igor Murashkin3242f4f2014-01-15 12:27:41 -08001692 * @see CaptureRequest#TONEMAP_CURVE_RED
Zhijun He5f2a47f2014-01-16 15:44:41 -08001693 * @see CaptureRequest#TONEMAP_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001694 */
Zhijun He3ffd7052013-08-19 15:45:08 -07001695 public static final Key<float[]> TONEMAP_CURVE_GREEN =
1696 new Key<float[]>("android.tonemap.curveGreen", float[].class);
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001697
1698 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001699 * <p>Tonemapping / contrast / gamma curve for the red
Igor Murashkine0060932014-01-17 17:24:11 -08001700 * channel, to use when {@link CaptureRequest#TONEMAP_MODE android.tonemap.mode} is
1701 * CONTRAST_CURVE.</p>
1702 * <p>Each channel's curve is defined by an array of control points:</p>
1703 * <pre><code>{@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed} =
1704 * [ P0in, P0out, P1in, P1out, P2in, P2out, P3in, P3out, ..., PNin, PNout ]
1705 * 2 &amp;lt;= N &amp;lt;= {@link CameraCharacteristics#TONEMAP_MAX_CURVE_POINTS android.tonemap.maxCurvePoints}</code></pre>
1706 * <p>These are sorted in order of increasing <code>Pin</code>; it is always
1707 * guaranteed that input values 0.0 and 1.0 are included in the list to
1708 * define a complete mapping. For input values between control points,
1709 * the camera device must linearly interpolate between the control
1710 * points.</p>
1711 * <p>Each curve can have an independent number of points, and the number
1712 * of points can be less than max (that is, the request doesn't have to
1713 * always provide a curve with number of points equivalent to
1714 * {@link CameraCharacteristics#TONEMAP_MAX_CURVE_POINTS android.tonemap.maxCurvePoints}).</p>
1715 * <p>A few examples, and their corresponding graphical mappings; these
1716 * only specify the red channel and the precision is limited to 4
1717 * digits, for conciseness.</p>
1718 * <p>Linear mapping:</p>
1719 * <pre><code>{@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed} = [ 0, 0, 1.0, 1.0 ]
1720 * </code></pre>
1721 * <p><img alt="Linear mapping curve" src="../../../../images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png" /></p>
1722 * <p>Invert mapping:</p>
1723 * <pre><code>{@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed} = [ 0, 1.0, 1.0, 0 ]
1724 * </code></pre>
1725 * <p><img alt="Inverting mapping curve" src="../../../../images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png" /></p>
1726 * <p>Gamma 1/2.2 mapping, with 16 control points:</p>
1727 * <pre><code>{@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed} = [
1728 * 0.0000, 0.0000, 0.0667, 0.2920, 0.1333, 0.4002, 0.2000, 0.4812,
1729 * 0.2667, 0.5484, 0.3333, 0.6069, 0.4000, 0.6594, 0.4667, 0.7072,
1730 * 0.5333, 0.7515, 0.6000, 0.7928, 0.6667, 0.8317, 0.7333, 0.8685,
1731 * 0.8000, 0.9035, 0.8667, 0.9370, 0.9333, 0.9691, 1.0000, 1.0000 ]
1732 * </code></pre>
1733 * <p><img alt="Gamma = 1/2.2 tonemapping curve" src="../../../../images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png" /></p>
1734 * <p>Standard sRGB gamma mapping, per IEC 61966-2-1:1999, with 16 control points:</p>
1735 * <pre><code>{@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed} = [
1736 * 0.0000, 0.0000, 0.0667, 0.2864, 0.1333, 0.4007, 0.2000, 0.4845,
1737 * 0.2667, 0.5532, 0.3333, 0.6125, 0.4000, 0.6652, 0.4667, 0.7130,
1738 * 0.5333, 0.7569, 0.6000, 0.7977, 0.6667, 0.8360, 0.7333, 0.8721,
1739 * 0.8000, 0.9063, 0.8667, 0.9389, 0.9333, 0.9701, 1.0000, 1.0000 ]
1740 * </code></pre>
1741 * <p><img alt="sRGB tonemapping curve" src="../../../../images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png" /></p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001742 *
Igor Murashkine0060932014-01-17 17:24:11 -08001743 * @see CaptureRequest#TONEMAP_CURVE_RED
1744 * @see CameraCharacteristics#TONEMAP_MAX_CURVE_POINTS
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001745 * @see CaptureRequest#TONEMAP_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001746 */
1747 public static final Key<float[]> TONEMAP_CURVE_RED =
1748 new Key<float[]>("android.tonemap.curveRed", float[].class);
1749
1750 /**
Igor Murashkine0060932014-01-17 17:24:11 -08001751 * <p>High-level global contrast/gamma/tonemapping control.</p>
1752 * <p>When switching to an application-defined contrast curve by setting
1753 * {@link CaptureRequest#TONEMAP_MODE android.tonemap.mode} to CONTRAST_CURVE, the curve is defined
1754 * per-channel with a set of <code>(in, out)</code> points that specify the
1755 * mapping from input high-bit-depth pixel value to the output
1756 * low-bit-depth value. Since the actual pixel ranges of both input
1757 * and output may change depending on the camera pipeline, the values
1758 * are specified by normalized floating-point numbers.</p>
1759 * <p>More-complex color mapping operations such as 3D color look-up
1760 * tables, selective chroma enhancement, or other non-linear color
1761 * transforms will be disabled when {@link CaptureRequest#TONEMAP_MODE android.tonemap.mode} is
1762 * CONTRAST_CURVE.</p>
1763 * <p>When using either FAST or HIGH_QUALITY, the camera device will
1764 * emit its own tonemap curve in {@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed},
1765 * {@link CaptureRequest#TONEMAP_CURVE_GREEN android.tonemap.curveGreen}, and {@link CaptureRequest#TONEMAP_CURVE_BLUE android.tonemap.curveBlue}.
1766 * These values are always available, and as close as possible to the
1767 * actually used nonlinear/nonglobal transforms.</p>
1768 * <p>If a request is sent with TRANSFORM_MATRIX with the camera device's
1769 * provided curve in FAST or HIGH_QUALITY, the image's tonemap will be
1770 * roughly the same.</p>
Igor Murashkin3242f4f2014-01-15 12:27:41 -08001771 *
Igor Murashkine0060932014-01-17 17:24:11 -08001772 * @see CaptureRequest#TONEMAP_CURVE_BLUE
1773 * @see CaptureRequest#TONEMAP_CURVE_GREEN
1774 * @see CaptureRequest#TONEMAP_CURVE_RED
1775 * @see CaptureRequest#TONEMAP_MODE
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001776 * @see #TONEMAP_MODE_CONTRAST_CURVE
1777 * @see #TONEMAP_MODE_FAST
1778 * @see #TONEMAP_MODE_HIGH_QUALITY
1779 */
1780 public static final Key<Integer> TONEMAP_MODE =
1781 new Key<Integer>("android.tonemap.mode", int.class);
1782
1783 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001784 * <p>This LED is nominally used to indicate to the user
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001785 * that the camera is powered on and may be streaming images back to the
1786 * Application Processor. In certain rare circumstances, the OS may
1787 * disable this when video is processed locally and not transmitted to
Igor Murashkinace5bf02013-12-10 17:36:40 -08001788 * any untrusted applications.</p>
1789 * <p>In particular, the LED <em>must</em> always be on when the data could be
1790 * transmitted off the device. The LED <em>should</em> always be on whenever
1791 * data is stored locally on the device.</p>
1792 * <p>The LED <em>may</em> be off if a trusted application is using the data that
1793 * doesn't violate the above rules.</p>
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001794 * @hide
1795 */
1796 public static final Key<Boolean> LED_TRANSMIT =
1797 new Key<Boolean>("android.led.transmit", boolean.class);
1798
1799 /**
Igor Murashkinace5bf02013-12-10 17:36:40 -08001800 * <p>Whether black-level compensation is locked
Eino-Ville Talvala0956af52013-12-26 13:19:10 -08001801 * to its current values, or is free to vary.</p>
1802 * <p>Whether the black level offset was locked for this frame. Should be
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001803 * ON if {@link CaptureRequest#BLACK_LEVEL_LOCK android.blackLevel.lock} was ON in the capture request, unless
Eino-Ville Talvala0956af52013-12-26 13:19:10 -08001804 * a change in other capture settings forced the camera device to
1805 * perform a black level reset.</p>
Eino-Ville Talvala0da8bf52014-01-08 16:18:35 -08001806 *
1807 * @see CaptureRequest#BLACK_LEVEL_LOCK
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001808 */
1809 public static final Key<Boolean> BLACK_LEVEL_LOCK =
1810 new Key<Boolean>("android.blackLevel.lock", boolean.class);
1811
Igor Murashkin3865a842014-01-17 18:18:39 -08001812 /**
1813 * <p>The frame number corresponding to the last request
1814 * with which the output result (metadata + buffers) has been fully
1815 * synchronized.</p>
1816 * <p>When a request is submitted to the camera device, there is usually a
1817 * delay of several frames before the controls get applied. A camera
1818 * device may either choose to account for this delay by implementing a
1819 * pipeline and carefully submit well-timed atomic control updates, or
1820 * it may start streaming control changes that span over several frame
1821 * boundaries.</p>
1822 * <p>In the latter case, whenever a request's settings change relative to
1823 * the previous submitted request, the full set of changes may take
1824 * multiple frame durations to fully take effect. Some settings may
1825 * take effect sooner (in less frame durations) than others.</p>
1826 * <p>While a set of control changes are being propagated, this value
1827 * will be CONVERGING.</p>
1828 * <p>Once it is fully known that a set of control changes have been
1829 * finished propagating, and the resulting updated control settings
1830 * have been read back by the camera device, this value will be set
1831 * to a non-negative frame number (corresponding to the request to
1832 * which the results have synchronized to).</p>
1833 * <p>Older camera device implementations may not have a way to detect
1834 * when all camera controls have been applied, and will always set this
1835 * value to UNKNOWN.</p>
1836 * <p>FULL capability devices will always have this value set to the
1837 * frame number of the request corresponding to this result.</p>
1838 * <p><em>Further details</em>:</p>
1839 * <ul>
1840 * <li>Whenever a request differs from the last request, any future
1841 * results not yet returned may have this value set to CONVERGING (this
1842 * could include any in-progress captures not yet returned by the camera
1843 * device, for more details see pipeline considerations below).</li>
1844 * <li>Submitting a series of multiple requests that differ from the
1845 * previous request (e.g. r1, r2, r3 s.t. r1 != r2 != r3)
1846 * moves the new synchronization frame to the last non-repeating
1847 * request (using the smallest frame number from the contiguous list of
1848 * repeating requests).</li>
1849 * <li>Submitting the same request repeatedly will not change this value
1850 * to CONVERGING, if it was already a non-negative value.</li>
1851 * <li>When this value changes to non-negative, that means that all of the
1852 * metadata controls from the request have been applied, all of the
1853 * metadata controls from the camera device have been read to the
1854 * updated values (into the result), and all of the graphics buffers
1855 * corresponding to this result are also synchronized to the request.</li>
1856 * </ul>
1857 * <p><em>Pipeline considerations</em>:</p>
1858 * <p>Submitting a request with updated controls relative to the previously
1859 * submitted requests may also invalidate the synchronization state
1860 * of all the results corresponding to currently in-flight requests.</p>
1861 * <p>In other words, results for this current request and up to
1862 * {@link CameraCharacteristics#REQUEST_PIPELINE_MAX_DEPTH android.request.pipelineMaxDepth} prior requests may have their
1863 * android.sync.frameNumber change to CONVERGING.</p>
1864 *
1865 * @see CameraCharacteristics#REQUEST_PIPELINE_MAX_DEPTH
1866 * @see #SYNC_FRAME_NUMBER_CONVERGING
1867 * @see #SYNC_FRAME_NUMBER_UNKNOWN
1868 * @hide
1869 */
1870 public static final Key<Integer> SYNC_FRAME_NUMBER =
1871 new Key<Integer>("android.sync.frameNumber", int.class);
1872
Eino-Ville Talvala5a32b20c2013-08-08 12:38:36 -07001873 /*~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~
1874 * End generated code
1875 *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~O@*/
Igor Murashkinb779ac12013-09-05 12:40:19 -07001876
1877 /**
1878 * <p>
1879 * List of the {@link Face Faces} detected through camera face detection
1880 * in this result.
1881 * </p>
1882 * <p>
1883 * Only available if {@link #STATISTICS_FACE_DETECT_MODE} {@code !=}
1884 * {@link CameraMetadata#STATISTICS_FACE_DETECT_MODE_OFF OFF}.
1885 * </p>
1886 *
1887 * @see Face
1888 */
1889 public static final Key<Face[]> STATISTICS_FACES =
1890 new Key<Face[]>("android.statistics.faces", Face[].class);
Eino-Ville Talvalab2675542012-12-12 13:29:45 -08001891}