3 <!-- Copyright (C) 2012 The Android Open Source Project
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
18 <!-- automatically generated from html.mako. do NOT edit directly -->
19 <meta charset="utf-8" />
20 <title>Android Camera HAL3.4 Properties</title>
21 <style type="text/css">
22 body { background-color: #f7f7f7; font-family: Roboto, sans-serif;}
23 h1 { color: #333333; }
24 h2 { color: #333333; }
25 a:link { color: #258aaf; text-decoration: none}
26 a:hover { color: #459aaf; text-decoration: underline }
27 a:visited { color: #154a5f; text-decoration: none}
28 .section { color: #eeeeee; font-size: 1.5em; font-weight: bold; background-color: #888888; padding: 0.5em 0em 0.5em 0.5em; border-width: thick thin thin thin; border-color: #111111 #777777 #777777 #777777}
29 .kind { color: #eeeeee; font-size: 1.2em; font-weight: bold; padding-left: 1.5em; background-color: #aaaaaa }
30 .entry { background-color: #f0f0f0 }
31 .entry_cont { background-color: #f0f0f0 }
32 .entries_header { background-color: #dddddd; text-align: center}
35 .toc_section_header { font-size:1.3em; }
36 .toc_kind_header { font-size:1.2em; }
37 .toc_deprecated { text-decoration:line-through; }
39 /* table column sizes */
40 table { border-collapse:collapse; table-layout: fixed; width: 100%; word-wrap: break-word }
41 td,th { border: 1px solid; border-color: #aaaaaa; padding-left: 0.5em; padding-right: 0.5em }
42 .th_name { width: 20% }
43 .th_units { width: 10% }
44 .th_tags { width: 5% }
45 .th_details { width: 25% }
46 .th_type { width: 20% }
47 .th_description { width: 20% }
48 .th_range { width: 10% }
49 td { font-size: 0.9em; }
51 /* hide the first thead, we need it there only to enforce column sizes */
52 .thead_dummy { visibility: hidden; }
55 .entry_name { color: #333333; padding-left:1.0em; font-size:1.1em; font-family: monospace; vertical-align:top; }
56 .entry_name_deprecated { text-decoration:line-through; }
58 /* Entry type flair */
59 .entry_type_name { font-size:1.1em; color: #669900; font-weight: bold;}
60 .entry_type_name_enum:after { color: #669900; font-weight: bold; content:" (enum)" }
61 .entry_type_visibility { font-weight: bolder; padding-left:1em}
62 .entry_type_synthetic { font-weight: bolder; color: #996600; }
63 .entry_type_hwlevel { font-weight: bolder; color: #000066; }
64 .entry_type_deprecated { font-weight: bolder; color: #4D4D4D; }
65 .entry_type_enum_name { font-family: monospace; font-weight: bolder; }
66 .entry_type_enum_notes:before { content:" - " }
67 .entry_type_enum_notes>p:first-child { display:inline; }
68 .entry_type_enum_value:before { content:" = " }
69 .entry_type_enum_value { font-family: monospace; }
70 .entry ul { margin: 0 0 0 0; list-style-position: inside; padding-left: 0.5em; }
71 .entry ul li { padding: 0 0 0 0; margin: 0 0 0 0;}
72 .entry_range_deprecated { font-weight: bolder; }
74 /* Entry tags flair */
75 .entry_tags ul { list-style-type: none; }
77 /* Entry details (full docs) flair */
78 .entry_details_header { font-weight: bold; background-color: #dddddd;
79 text-align: center; font-size: 1.1em; margin-left: 0em; margin-right: 0em; }
81 /* Entry spacer flair */
82 .entry_spacer { background-color: transparent; border-style: none; height: 0.5em; }
84 /* TODO: generate abbr element for each tag link? */
85 /* TODO for each x.y.z try to link it to the entry */
93 supposedly there is a bug in chrome that it lays out tables before
94 it knows its being printed, so the page-break-* styles are ignored
96 tr { page-break-after: always; page-break-inside: avoid; }
105 <h1>Android Camera HAL3.2 Properties</h1>
108 <h2>Table of Contents</h2>
110 <li><a href="#tag_index" class="toc_section_header">Tags</a></li>
112 <span class="toc_section_header"><a href="#section_colorCorrection">colorCorrection</a></span>
113 <ul class="toc_section">
115 <span class="toc_kind_header">controls</span>
116 <ul class="toc_section">
118 ><a href="#controls_android.colorCorrection.mode">android.colorCorrection.mode</a></li>
120 ><a href="#controls_android.colorCorrection.transform">android.colorCorrection.transform</a></li>
122 ><a href="#controls_android.colorCorrection.gains">android.colorCorrection.gains</a></li>
124 ><a href="#controls_android.colorCorrection.aberrationMode">android.colorCorrection.aberrationMode</a></li>
128 <span class="toc_kind_header">dynamic</span>
129 <ul class="toc_section">
131 ><a href="#dynamic_android.colorCorrection.mode">android.colorCorrection.mode</a></li>
133 ><a href="#dynamic_android.colorCorrection.transform">android.colorCorrection.transform</a></li>
135 ><a href="#dynamic_android.colorCorrection.gains">android.colorCorrection.gains</a></li>
137 ><a href="#dynamic_android.colorCorrection.aberrationMode">android.colorCorrection.aberrationMode</a></li>
141 <span class="toc_kind_header">static</span>
142 <ul class="toc_section">
144 ><a href="#static_android.colorCorrection.availableAberrationModes">android.colorCorrection.availableAberrationModes</a></li>
147 </ul> <!-- toc_section -->
150 <span class="toc_section_header"><a href="#section_control">control</a></span>
151 <ul class="toc_section">
153 <span class="toc_kind_header">controls</span>
154 <ul class="toc_section">
156 ><a href="#controls_android.control.aeAntibandingMode">android.control.aeAntibandingMode</a></li>
158 ><a href="#controls_android.control.aeExposureCompensation">android.control.aeExposureCompensation</a></li>
160 ><a href="#controls_android.control.aeLock">android.control.aeLock</a></li>
162 ><a href="#controls_android.control.aeMode">android.control.aeMode</a></li>
164 ><a href="#controls_android.control.aeRegions">android.control.aeRegions</a></li>
166 ><a href="#controls_android.control.aeTargetFpsRange">android.control.aeTargetFpsRange</a></li>
168 ><a href="#controls_android.control.aePrecaptureTrigger">android.control.aePrecaptureTrigger</a></li>
170 ><a href="#controls_android.control.afMode">android.control.afMode</a></li>
172 ><a href="#controls_android.control.afRegions">android.control.afRegions</a></li>
174 ><a href="#controls_android.control.afTrigger">android.control.afTrigger</a></li>
176 ><a href="#controls_android.control.awbLock">android.control.awbLock</a></li>
178 ><a href="#controls_android.control.awbMode">android.control.awbMode</a></li>
180 ><a href="#controls_android.control.awbRegions">android.control.awbRegions</a></li>
182 ><a href="#controls_android.control.captureIntent">android.control.captureIntent</a></li>
184 ><a href="#controls_android.control.effectMode">android.control.effectMode</a></li>
186 ><a href="#controls_android.control.mode">android.control.mode</a></li>
188 ><a href="#controls_android.control.sceneMode">android.control.sceneMode</a></li>
190 ><a href="#controls_android.control.videoStabilizationMode">android.control.videoStabilizationMode</a></li>
192 ><a href="#controls_android.control.postRawSensitivityBoost">android.control.postRawSensitivityBoost</a></li>
194 ><a href="#controls_android.control.enableZsl">android.control.enableZsl</a></li>
198 <span class="toc_kind_header">static</span>
199 <ul class="toc_section">
201 ><a href="#static_android.control.aeAvailableAntibandingModes">android.control.aeAvailableAntibandingModes</a></li>
203 ><a href="#static_android.control.aeAvailableModes">android.control.aeAvailableModes</a></li>
205 ><a href="#static_android.control.aeAvailableTargetFpsRanges">android.control.aeAvailableTargetFpsRanges</a></li>
207 ><a href="#static_android.control.aeCompensationRange">android.control.aeCompensationRange</a></li>
209 ><a href="#static_android.control.aeCompensationStep">android.control.aeCompensationStep</a></li>
211 ><a href="#static_android.control.afAvailableModes">android.control.afAvailableModes</a></li>
213 ><a href="#static_android.control.availableEffects">android.control.availableEffects</a></li>
215 ><a href="#static_android.control.availableSceneModes">android.control.availableSceneModes</a></li>
217 ><a href="#static_android.control.availableVideoStabilizationModes">android.control.availableVideoStabilizationModes</a></li>
219 ><a href="#static_android.control.awbAvailableModes">android.control.awbAvailableModes</a></li>
221 ><a href="#static_android.control.maxRegions">android.control.maxRegions</a></li>
223 ><a href="#static_android.control.maxRegionsAe">android.control.maxRegionsAe</a></li>
225 ><a href="#static_android.control.maxRegionsAwb">android.control.maxRegionsAwb</a></li>
227 ><a href="#static_android.control.maxRegionsAf">android.control.maxRegionsAf</a></li>
229 ><a href="#static_android.control.sceneModeOverrides">android.control.sceneModeOverrides</a></li>
231 ><a href="#static_android.control.availableHighSpeedVideoConfigurations">android.control.availableHighSpeedVideoConfigurations</a></li>
233 ><a href="#static_android.control.aeLockAvailable">android.control.aeLockAvailable</a></li>
235 ><a href="#static_android.control.awbLockAvailable">android.control.awbLockAvailable</a></li>
237 ><a href="#static_android.control.availableModes">android.control.availableModes</a></li>
239 ><a href="#static_android.control.postRawSensitivityBoostRange">android.control.postRawSensitivityBoostRange</a></li>
243 <span class="toc_kind_header">dynamic</span>
244 <ul class="toc_section">
246 class="toc_deprecated"
247 ><a href="#dynamic_android.control.aePrecaptureId">android.control.aePrecaptureId</a></li>
249 ><a href="#dynamic_android.control.aeAntibandingMode">android.control.aeAntibandingMode</a></li>
251 ><a href="#dynamic_android.control.aeExposureCompensation">android.control.aeExposureCompensation</a></li>
253 ><a href="#dynamic_android.control.aeLock">android.control.aeLock</a></li>
255 ><a href="#dynamic_android.control.aeMode">android.control.aeMode</a></li>
257 ><a href="#dynamic_android.control.aeRegions">android.control.aeRegions</a></li>
259 ><a href="#dynamic_android.control.aeTargetFpsRange">android.control.aeTargetFpsRange</a></li>
261 ><a href="#dynamic_android.control.aePrecaptureTrigger">android.control.aePrecaptureTrigger</a></li>
263 ><a href="#dynamic_android.control.aeState">android.control.aeState</a></li>
265 ><a href="#dynamic_android.control.afMode">android.control.afMode</a></li>
267 ><a href="#dynamic_android.control.afRegions">android.control.afRegions</a></li>
269 ><a href="#dynamic_android.control.afTrigger">android.control.afTrigger</a></li>
271 ><a href="#dynamic_android.control.afState">android.control.afState</a></li>
273 class="toc_deprecated"
274 ><a href="#dynamic_android.control.afTriggerId">android.control.afTriggerId</a></li>
276 ><a href="#dynamic_android.control.awbLock">android.control.awbLock</a></li>
278 ><a href="#dynamic_android.control.awbMode">android.control.awbMode</a></li>
280 ><a href="#dynamic_android.control.awbRegions">android.control.awbRegions</a></li>
282 ><a href="#dynamic_android.control.captureIntent">android.control.captureIntent</a></li>
284 ><a href="#dynamic_android.control.awbState">android.control.awbState</a></li>
286 ><a href="#dynamic_android.control.effectMode">android.control.effectMode</a></li>
288 ><a href="#dynamic_android.control.mode">android.control.mode</a></li>
290 ><a href="#dynamic_android.control.sceneMode">android.control.sceneMode</a></li>
292 ><a href="#dynamic_android.control.videoStabilizationMode">android.control.videoStabilizationMode</a></li>
294 ><a href="#dynamic_android.control.postRawSensitivityBoost">android.control.postRawSensitivityBoost</a></li>
296 ><a href="#dynamic_android.control.enableZsl">android.control.enableZsl</a></li>
299 </ul> <!-- toc_section -->
302 <span class="toc_section_header"><a href="#section_demosaic">demosaic</a></span>
303 <ul class="toc_section">
305 <span class="toc_kind_header">controls</span>
306 <ul class="toc_section">
308 ><a href="#controls_android.demosaic.mode">android.demosaic.mode</a></li>
311 </ul> <!-- toc_section -->
314 <span class="toc_section_header"><a href="#section_edge">edge</a></span>
315 <ul class="toc_section">
317 <span class="toc_kind_header">controls</span>
318 <ul class="toc_section">
320 ><a href="#controls_android.edge.mode">android.edge.mode</a></li>
322 ><a href="#controls_android.edge.strength">android.edge.strength</a></li>
326 <span class="toc_kind_header">static</span>
327 <ul class="toc_section">
329 ><a href="#static_android.edge.availableEdgeModes">android.edge.availableEdgeModes</a></li>
333 <span class="toc_kind_header">dynamic</span>
334 <ul class="toc_section">
336 ><a href="#dynamic_android.edge.mode">android.edge.mode</a></li>
339 </ul> <!-- toc_section -->
342 <span class="toc_section_header"><a href="#section_flash">flash</a></span>
343 <ul class="toc_section">
345 <span class="toc_kind_header">controls</span>
346 <ul class="toc_section">
348 ><a href="#controls_android.flash.firingPower">android.flash.firingPower</a></li>
350 ><a href="#controls_android.flash.firingTime">android.flash.firingTime</a></li>
352 ><a href="#controls_android.flash.mode">android.flash.mode</a></li>
356 <span class="toc_kind_header">static</span>
357 <ul class="toc_section">
360 ><a href="#static_android.flash.info.available">android.flash.info.available</a></li>
362 ><a href="#static_android.flash.info.chargeDuration">android.flash.info.chargeDuration</a></li>
365 ><a href="#static_android.flash.colorTemperature">android.flash.colorTemperature</a></li>
367 ><a href="#static_android.flash.maxEnergy">android.flash.maxEnergy</a></li>
371 <span class="toc_kind_header">dynamic</span>
372 <ul class="toc_section">
374 ><a href="#dynamic_android.flash.firingPower">android.flash.firingPower</a></li>
376 ><a href="#dynamic_android.flash.firingTime">android.flash.firingTime</a></li>
378 ><a href="#dynamic_android.flash.mode">android.flash.mode</a></li>
380 ><a href="#dynamic_android.flash.state">android.flash.state</a></li>
383 </ul> <!-- toc_section -->
386 <span class="toc_section_header"><a href="#section_hotPixel">hotPixel</a></span>
387 <ul class="toc_section">
389 <span class="toc_kind_header">controls</span>
390 <ul class="toc_section">
392 ><a href="#controls_android.hotPixel.mode">android.hotPixel.mode</a></li>
396 <span class="toc_kind_header">static</span>
397 <ul class="toc_section">
399 ><a href="#static_android.hotPixel.availableHotPixelModes">android.hotPixel.availableHotPixelModes</a></li>
403 <span class="toc_kind_header">dynamic</span>
404 <ul class="toc_section">
406 ><a href="#dynamic_android.hotPixel.mode">android.hotPixel.mode</a></li>
409 </ul> <!-- toc_section -->
412 <span class="toc_section_header"><a href="#section_jpeg">jpeg</a></span>
413 <ul class="toc_section">
415 <span class="toc_kind_header">controls</span>
416 <ul class="toc_section">
418 ><a href="#controls_android.jpeg.gpsLocation">android.jpeg.gpsLocation</a></li>
420 ><a href="#controls_android.jpeg.gpsCoordinates">android.jpeg.gpsCoordinates</a></li>
422 ><a href="#controls_android.jpeg.gpsProcessingMethod">android.jpeg.gpsProcessingMethod</a></li>
424 ><a href="#controls_android.jpeg.gpsTimestamp">android.jpeg.gpsTimestamp</a></li>
426 ><a href="#controls_android.jpeg.orientation">android.jpeg.orientation</a></li>
428 ><a href="#controls_android.jpeg.quality">android.jpeg.quality</a></li>
430 ><a href="#controls_android.jpeg.thumbnailQuality">android.jpeg.thumbnailQuality</a></li>
432 ><a href="#controls_android.jpeg.thumbnailSize">android.jpeg.thumbnailSize</a></li>
436 <span class="toc_kind_header">static</span>
437 <ul class="toc_section">
439 ><a href="#static_android.jpeg.availableThumbnailSizes">android.jpeg.availableThumbnailSizes</a></li>
441 ><a href="#static_android.jpeg.maxSize">android.jpeg.maxSize</a></li>
445 <span class="toc_kind_header">dynamic</span>
446 <ul class="toc_section">
448 ><a href="#dynamic_android.jpeg.gpsLocation">android.jpeg.gpsLocation</a></li>
450 ><a href="#dynamic_android.jpeg.gpsCoordinates">android.jpeg.gpsCoordinates</a></li>
452 ><a href="#dynamic_android.jpeg.gpsProcessingMethod">android.jpeg.gpsProcessingMethod</a></li>
454 ><a href="#dynamic_android.jpeg.gpsTimestamp">android.jpeg.gpsTimestamp</a></li>
456 ><a href="#dynamic_android.jpeg.orientation">android.jpeg.orientation</a></li>
458 ><a href="#dynamic_android.jpeg.quality">android.jpeg.quality</a></li>
460 ><a href="#dynamic_android.jpeg.size">android.jpeg.size</a></li>
462 ><a href="#dynamic_android.jpeg.thumbnailQuality">android.jpeg.thumbnailQuality</a></li>
464 ><a href="#dynamic_android.jpeg.thumbnailSize">android.jpeg.thumbnailSize</a></li>
467 </ul> <!-- toc_section -->
470 <span class="toc_section_header"><a href="#section_lens">lens</a></span>
471 <ul class="toc_section">
473 <span class="toc_kind_header">controls</span>
474 <ul class="toc_section">
476 ><a href="#controls_android.lens.aperture">android.lens.aperture</a></li>
478 ><a href="#controls_android.lens.filterDensity">android.lens.filterDensity</a></li>
480 ><a href="#controls_android.lens.focalLength">android.lens.focalLength</a></li>
482 ><a href="#controls_android.lens.focusDistance">android.lens.focusDistance</a></li>
484 ><a href="#controls_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a></li>
488 <span class="toc_kind_header">static</span>
489 <ul class="toc_section">
492 ><a href="#static_android.lens.info.availableApertures">android.lens.info.availableApertures</a></li>
494 ><a href="#static_android.lens.info.availableFilterDensities">android.lens.info.availableFilterDensities</a></li>
496 ><a href="#static_android.lens.info.availableFocalLengths">android.lens.info.availableFocalLengths</a></li>
498 ><a href="#static_android.lens.info.availableOpticalStabilization">android.lens.info.availableOpticalStabilization</a></li>
500 ><a href="#static_android.lens.info.hyperfocalDistance">android.lens.info.hyperfocalDistance</a></li>
502 ><a href="#static_android.lens.info.minimumFocusDistance">android.lens.info.minimumFocusDistance</a></li>
504 ><a href="#static_android.lens.info.shadingMapSize">android.lens.info.shadingMapSize</a></li>
506 ><a href="#static_android.lens.info.focusDistanceCalibration">android.lens.info.focusDistanceCalibration</a></li>
509 ><a href="#static_android.lens.facing">android.lens.facing</a></li>
511 ><a href="#static_android.lens.poseRotation">android.lens.poseRotation</a></li>
513 ><a href="#static_android.lens.poseTranslation">android.lens.poseTranslation</a></li>
515 ><a href="#static_android.lens.intrinsicCalibration">android.lens.intrinsicCalibration</a></li>
517 ><a href="#static_android.lens.radialDistortion">android.lens.radialDistortion</a></li>
521 <span class="toc_kind_header">dynamic</span>
522 <ul class="toc_section">
524 ><a href="#dynamic_android.lens.aperture">android.lens.aperture</a></li>
526 ><a href="#dynamic_android.lens.filterDensity">android.lens.filterDensity</a></li>
528 ><a href="#dynamic_android.lens.focalLength">android.lens.focalLength</a></li>
530 ><a href="#dynamic_android.lens.focusDistance">android.lens.focusDistance</a></li>
532 ><a href="#dynamic_android.lens.focusRange">android.lens.focusRange</a></li>
534 ><a href="#dynamic_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a></li>
536 ><a href="#dynamic_android.lens.state">android.lens.state</a></li>
538 ><a href="#dynamic_android.lens.poseRotation">android.lens.poseRotation</a></li>
540 ><a href="#dynamic_android.lens.poseTranslation">android.lens.poseTranslation</a></li>
542 ><a href="#dynamic_android.lens.intrinsicCalibration">android.lens.intrinsicCalibration</a></li>
544 ><a href="#dynamic_android.lens.radialDistortion">android.lens.radialDistortion</a></li>
547 </ul> <!-- toc_section -->
550 <span class="toc_section_header"><a href="#section_noiseReduction">noiseReduction</a></span>
551 <ul class="toc_section">
553 <span class="toc_kind_header">controls</span>
554 <ul class="toc_section">
556 ><a href="#controls_android.noiseReduction.mode">android.noiseReduction.mode</a></li>
558 ><a href="#controls_android.noiseReduction.strength">android.noiseReduction.strength</a></li>
562 <span class="toc_kind_header">static</span>
563 <ul class="toc_section">
565 ><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.noiseReduction.availableNoiseReductionModes</a></li>
569 <span class="toc_kind_header">dynamic</span>
570 <ul class="toc_section">
572 ><a href="#dynamic_android.noiseReduction.mode">android.noiseReduction.mode</a></li>
575 </ul> <!-- toc_section -->
578 <span class="toc_section_header"><a href="#section_quirks">quirks</a></span>
579 <ul class="toc_section">
581 <span class="toc_kind_header">static</span>
582 <ul class="toc_section">
584 class="toc_deprecated"
585 ><a href="#static_android.quirks.meteringCropRegion">android.quirks.meteringCropRegion</a></li>
587 class="toc_deprecated"
588 ><a href="#static_android.quirks.triggerAfWithAuto">android.quirks.triggerAfWithAuto</a></li>
590 class="toc_deprecated"
591 ><a href="#static_android.quirks.useZslFormat">android.quirks.useZslFormat</a></li>
593 class="toc_deprecated"
594 ><a href="#static_android.quirks.usePartialResult">android.quirks.usePartialResult</a></li>
598 <span class="toc_kind_header">dynamic</span>
599 <ul class="toc_section">
601 class="toc_deprecated"
602 ><a href="#dynamic_android.quirks.partialResult">android.quirks.partialResult</a></li>
605 </ul> <!-- toc_section -->
608 <span class="toc_section_header"><a href="#section_request">request</a></span>
609 <ul class="toc_section">
611 <span class="toc_kind_header">controls</span>
612 <ul class="toc_section">
614 class="toc_deprecated"
615 ><a href="#controls_android.request.frameCount">android.request.frameCount</a></li>
617 ><a href="#controls_android.request.id">android.request.id</a></li>
619 class="toc_deprecated"
620 ><a href="#controls_android.request.inputStreams">android.request.inputStreams</a></li>
622 ><a href="#controls_android.request.metadataMode">android.request.metadataMode</a></li>
624 class="toc_deprecated"
625 ><a href="#controls_android.request.outputStreams">android.request.outputStreams</a></li>
627 class="toc_deprecated"
628 ><a href="#controls_android.request.type">android.request.type</a></li>
632 <span class="toc_kind_header">static</span>
633 <ul class="toc_section">
635 ><a href="#static_android.request.maxNumOutputStreams">android.request.maxNumOutputStreams</a></li>
637 ><a href="#static_android.request.maxNumOutputRaw">android.request.maxNumOutputRaw</a></li>
639 ><a href="#static_android.request.maxNumOutputProc">android.request.maxNumOutputProc</a></li>
641 ><a href="#static_android.request.maxNumOutputProcStalling">android.request.maxNumOutputProcStalling</a></li>
643 class="toc_deprecated"
644 ><a href="#static_android.request.maxNumReprocessStreams">android.request.maxNumReprocessStreams</a></li>
646 ><a href="#static_android.request.maxNumInputStreams">android.request.maxNumInputStreams</a></li>
648 ><a href="#static_android.request.pipelineMaxDepth">android.request.pipelineMaxDepth</a></li>
650 ><a href="#static_android.request.partialResultCount">android.request.partialResultCount</a></li>
652 ><a href="#static_android.request.availableCapabilities">android.request.availableCapabilities</a></li>
654 ><a href="#static_android.request.availableRequestKeys">android.request.availableRequestKeys</a></li>
656 ><a href="#static_android.request.availableResultKeys">android.request.availableResultKeys</a></li>
658 ><a href="#static_android.request.availableCharacteristicsKeys">android.request.availableCharacteristicsKeys</a></li>
662 <span class="toc_kind_header">dynamic</span>
663 <ul class="toc_section">
665 class="toc_deprecated"
666 ><a href="#dynamic_android.request.frameCount">android.request.frameCount</a></li>
668 ><a href="#dynamic_android.request.id">android.request.id</a></li>
670 ><a href="#dynamic_android.request.metadataMode">android.request.metadataMode</a></li>
672 class="toc_deprecated"
673 ><a href="#dynamic_android.request.outputStreams">android.request.outputStreams</a></li>
675 ><a href="#dynamic_android.request.pipelineDepth">android.request.pipelineDepth</a></li>
678 </ul> <!-- toc_section -->
681 <span class="toc_section_header"><a href="#section_scaler">scaler</a></span>
682 <ul class="toc_section">
684 <span class="toc_kind_header">controls</span>
685 <ul class="toc_section">
687 ><a href="#controls_android.scaler.cropRegion">android.scaler.cropRegion</a></li>
691 <span class="toc_kind_header">static</span>
692 <ul class="toc_section">
694 class="toc_deprecated"
695 ><a href="#static_android.scaler.availableFormats">android.scaler.availableFormats</a></li>
697 class="toc_deprecated"
698 ><a href="#static_android.scaler.availableJpegMinDurations">android.scaler.availableJpegMinDurations</a></li>
700 class="toc_deprecated"
701 ><a href="#static_android.scaler.availableJpegSizes">android.scaler.availableJpegSizes</a></li>
703 ><a href="#static_android.scaler.availableMaxDigitalZoom">android.scaler.availableMaxDigitalZoom</a></li>
705 class="toc_deprecated"
706 ><a href="#static_android.scaler.availableProcessedMinDurations">android.scaler.availableProcessedMinDurations</a></li>
708 class="toc_deprecated"
709 ><a href="#static_android.scaler.availableProcessedSizes">android.scaler.availableProcessedSizes</a></li>
711 class="toc_deprecated"
712 ><a href="#static_android.scaler.availableRawMinDurations">android.scaler.availableRawMinDurations</a></li>
714 class="toc_deprecated"
715 ><a href="#static_android.scaler.availableRawSizes">android.scaler.availableRawSizes</a></li>
717 ><a href="#static_android.scaler.availableInputOutputFormatsMap">android.scaler.availableInputOutputFormatsMap</a></li>
719 ><a href="#static_android.scaler.availableStreamConfigurations">android.scaler.availableStreamConfigurations</a></li>
721 ><a href="#static_android.scaler.availableMinFrameDurations">android.scaler.availableMinFrameDurations</a></li>
723 ><a href="#static_android.scaler.availableStallDurations">android.scaler.availableStallDurations</a></li>
725 ><a href="#static_android.scaler.streamConfigurationMap">android.scaler.streamConfigurationMap</a></li>
727 ><a href="#static_android.scaler.croppingType">android.scaler.croppingType</a></li>
731 <span class="toc_kind_header">dynamic</span>
732 <ul class="toc_section">
734 ><a href="#dynamic_android.scaler.cropRegion">android.scaler.cropRegion</a></li>
737 </ul> <!-- toc_section -->
740 <span class="toc_section_header"><a href="#section_sensor">sensor</a></span>
741 <ul class="toc_section">
743 <span class="toc_kind_header">controls</span>
744 <ul class="toc_section">
746 ><a href="#controls_android.sensor.exposureTime">android.sensor.exposureTime</a></li>
748 ><a href="#controls_android.sensor.frameDuration">android.sensor.frameDuration</a></li>
750 ><a href="#controls_android.sensor.sensitivity">android.sensor.sensitivity</a></li>
752 ><a href="#controls_android.sensor.testPatternData">android.sensor.testPatternData</a></li>
754 ><a href="#controls_android.sensor.testPatternMode">android.sensor.testPatternMode</a></li>
758 <span class="toc_kind_header">static</span>
759 <ul class="toc_section">
762 ><a href="#static_android.sensor.info.activeArraySize">android.sensor.info.activeArraySize</a></li>
764 ><a href="#static_android.sensor.info.sensitivityRange">android.sensor.info.sensitivityRange</a></li>
766 ><a href="#static_android.sensor.info.colorFilterArrangement">android.sensor.info.colorFilterArrangement</a></li>
768 ><a href="#static_android.sensor.info.exposureTimeRange">android.sensor.info.exposureTimeRange</a></li>
770 ><a href="#static_android.sensor.info.maxFrameDuration">android.sensor.info.maxFrameDuration</a></li>
772 ><a href="#static_android.sensor.info.physicalSize">android.sensor.info.physicalSize</a></li>
774 ><a href="#static_android.sensor.info.pixelArraySize">android.sensor.info.pixelArraySize</a></li>
776 ><a href="#static_android.sensor.info.whiteLevel">android.sensor.info.whiteLevel</a></li>
778 ><a href="#static_android.sensor.info.timestampSource">android.sensor.info.timestampSource</a></li>
780 ><a href="#static_android.sensor.info.lensShadingApplied">android.sensor.info.lensShadingApplied</a></li>
782 ><a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.sensor.info.preCorrectionActiveArraySize</a></li>
785 ><a href="#static_android.sensor.referenceIlluminant1">android.sensor.referenceIlluminant1</a></li>
787 ><a href="#static_android.sensor.referenceIlluminant2">android.sensor.referenceIlluminant2</a></li>
789 ><a href="#static_android.sensor.calibrationTransform1">android.sensor.calibrationTransform1</a></li>
791 ><a href="#static_android.sensor.calibrationTransform2">android.sensor.calibrationTransform2</a></li>
793 ><a href="#static_android.sensor.colorTransform1">android.sensor.colorTransform1</a></li>
795 ><a href="#static_android.sensor.colorTransform2">android.sensor.colorTransform2</a></li>
797 ><a href="#static_android.sensor.forwardMatrix1">android.sensor.forwardMatrix1</a></li>
799 ><a href="#static_android.sensor.forwardMatrix2">android.sensor.forwardMatrix2</a></li>
801 ><a href="#static_android.sensor.baseGainFactor">android.sensor.baseGainFactor</a></li>
803 ><a href="#static_android.sensor.blackLevelPattern">android.sensor.blackLevelPattern</a></li>
805 ><a href="#static_android.sensor.maxAnalogSensitivity">android.sensor.maxAnalogSensitivity</a></li>
807 ><a href="#static_android.sensor.orientation">android.sensor.orientation</a></li>
809 ><a href="#static_android.sensor.profileHueSatMapDimensions">android.sensor.profileHueSatMapDimensions</a></li>
811 ><a href="#static_android.sensor.availableTestPatternModes">android.sensor.availableTestPatternModes</a></li>
813 ><a href="#static_android.sensor.opticalBlackRegions">android.sensor.opticalBlackRegions</a></li>
815 ><a href="#static_android.sensor.opaqueRawSize">android.sensor.opaqueRawSize</a></li>
819 <span class="toc_kind_header">dynamic</span>
820 <ul class="toc_section">
822 ><a href="#dynamic_android.sensor.exposureTime">android.sensor.exposureTime</a></li>
824 ><a href="#dynamic_android.sensor.frameDuration">android.sensor.frameDuration</a></li>
826 ><a href="#dynamic_android.sensor.sensitivity">android.sensor.sensitivity</a></li>
828 ><a href="#dynamic_android.sensor.timestamp">android.sensor.timestamp</a></li>
830 ><a href="#dynamic_android.sensor.temperature">android.sensor.temperature</a></li>
832 ><a href="#dynamic_android.sensor.neutralColorPoint">android.sensor.neutralColorPoint</a></li>
834 ><a href="#dynamic_android.sensor.noiseProfile">android.sensor.noiseProfile</a></li>
836 ><a href="#dynamic_android.sensor.profileHueSatMap">android.sensor.profileHueSatMap</a></li>
838 ><a href="#dynamic_android.sensor.profileToneCurve">android.sensor.profileToneCurve</a></li>
840 ><a href="#dynamic_android.sensor.greenSplit">android.sensor.greenSplit</a></li>
842 ><a href="#dynamic_android.sensor.testPatternData">android.sensor.testPatternData</a></li>
844 ><a href="#dynamic_android.sensor.testPatternMode">android.sensor.testPatternMode</a></li>
846 ><a href="#dynamic_android.sensor.rollingShutterSkew">android.sensor.rollingShutterSkew</a></li>
848 ><a href="#dynamic_android.sensor.dynamicBlackLevel">android.sensor.dynamicBlackLevel</a></li>
850 ><a href="#dynamic_android.sensor.dynamicWhiteLevel">android.sensor.dynamicWhiteLevel</a></li>
853 </ul> <!-- toc_section -->
856 <span class="toc_section_header"><a href="#section_shading">shading</a></span>
857 <ul class="toc_section">
859 <span class="toc_kind_header">controls</span>
860 <ul class="toc_section">
862 ><a href="#controls_android.shading.mode">android.shading.mode</a></li>
864 ><a href="#controls_android.shading.strength">android.shading.strength</a></li>
868 <span class="toc_kind_header">dynamic</span>
869 <ul class="toc_section">
871 ><a href="#dynamic_android.shading.mode">android.shading.mode</a></li>
875 <span class="toc_kind_header">static</span>
876 <ul class="toc_section">
878 ><a href="#static_android.shading.availableModes">android.shading.availableModes</a></li>
881 </ul> <!-- toc_section -->
884 <span class="toc_section_header"><a href="#section_statistics">statistics</a></span>
885 <ul class="toc_section">
887 <span class="toc_kind_header">controls</span>
888 <ul class="toc_section">
890 ><a href="#controls_android.statistics.faceDetectMode">android.statistics.faceDetectMode</a></li>
892 ><a href="#controls_android.statistics.histogramMode">android.statistics.histogramMode</a></li>
894 ><a href="#controls_android.statistics.sharpnessMapMode">android.statistics.sharpnessMapMode</a></li>
896 ><a href="#controls_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a></li>
898 ><a href="#controls_android.statistics.lensShadingMapMode">android.statistics.lensShadingMapMode</a></li>
902 <span class="toc_kind_header">static</span>
903 <ul class="toc_section">
906 ><a href="#static_android.statistics.info.availableFaceDetectModes">android.statistics.info.availableFaceDetectModes</a></li>
908 ><a href="#static_android.statistics.info.histogramBucketCount">android.statistics.info.histogramBucketCount</a></li>
910 ><a href="#static_android.statistics.info.maxFaceCount">android.statistics.info.maxFaceCount</a></li>
912 ><a href="#static_android.statistics.info.maxHistogramCount">android.statistics.info.maxHistogramCount</a></li>
914 ><a href="#static_android.statistics.info.maxSharpnessMapValue">android.statistics.info.maxSharpnessMapValue</a></li>
916 ><a href="#static_android.statistics.info.sharpnessMapSize">android.statistics.info.sharpnessMapSize</a></li>
918 ><a href="#static_android.statistics.info.availableHotPixelMapModes">android.statistics.info.availableHotPixelMapModes</a></li>
920 ><a href="#static_android.statistics.info.availableLensShadingMapModes">android.statistics.info.availableLensShadingMapModes</a></li>
925 <span class="toc_kind_header">dynamic</span>
926 <ul class="toc_section">
928 ><a href="#dynamic_android.statistics.faceDetectMode">android.statistics.faceDetectMode</a></li>
930 ><a href="#dynamic_android.statistics.faceIds">android.statistics.faceIds</a></li>
932 ><a href="#dynamic_android.statistics.faceLandmarks">android.statistics.faceLandmarks</a></li>
934 ><a href="#dynamic_android.statistics.faceRectangles">android.statistics.faceRectangles</a></li>
936 ><a href="#dynamic_android.statistics.faceScores">android.statistics.faceScores</a></li>
938 ><a href="#dynamic_android.statistics.faces">android.statistics.faces</a></li>
940 ><a href="#dynamic_android.statistics.histogram">android.statistics.histogram</a></li>
942 ><a href="#dynamic_android.statistics.histogramMode">android.statistics.histogramMode</a></li>
944 ><a href="#dynamic_android.statistics.sharpnessMap">android.statistics.sharpnessMap</a></li>
946 ><a href="#dynamic_android.statistics.sharpnessMapMode">android.statistics.sharpnessMapMode</a></li>
948 ><a href="#dynamic_android.statistics.lensShadingCorrectionMap">android.statistics.lensShadingCorrectionMap</a></li>
950 ><a href="#dynamic_android.statistics.lensShadingMap">android.statistics.lensShadingMap</a></li>
952 class="toc_deprecated"
953 ><a href="#dynamic_android.statistics.predictedColorGains">android.statistics.predictedColorGains</a></li>
955 class="toc_deprecated"
956 ><a href="#dynamic_android.statistics.predictedColorTransform">android.statistics.predictedColorTransform</a></li>
958 ><a href="#dynamic_android.statistics.sceneFlicker">android.statistics.sceneFlicker</a></li>
960 ><a href="#dynamic_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a></li>
962 ><a href="#dynamic_android.statistics.hotPixelMap">android.statistics.hotPixelMap</a></li>
964 ><a href="#dynamic_android.statistics.lensShadingMapMode">android.statistics.lensShadingMapMode</a></li>
967 </ul> <!-- toc_section -->
970 <span class="toc_section_header"><a href="#section_tonemap">tonemap</a></span>
971 <ul class="toc_section">
973 <span class="toc_kind_header">controls</span>
974 <ul class="toc_section">
976 ><a href="#controls_android.tonemap.curveBlue">android.tonemap.curveBlue</a></li>
978 ><a href="#controls_android.tonemap.curveGreen">android.tonemap.curveGreen</a></li>
980 ><a href="#controls_android.tonemap.curveRed">android.tonemap.curveRed</a></li>
982 ><a href="#controls_android.tonemap.curve">android.tonemap.curve</a></li>
984 ><a href="#controls_android.tonemap.mode">android.tonemap.mode</a></li>
986 ><a href="#controls_android.tonemap.gamma">android.tonemap.gamma</a></li>
988 ><a href="#controls_android.tonemap.presetCurve">android.tonemap.presetCurve</a></li>
992 <span class="toc_kind_header">static</span>
993 <ul class="toc_section">
995 ><a href="#static_android.tonemap.maxCurvePoints">android.tonemap.maxCurvePoints</a></li>
997 ><a href="#static_android.tonemap.availableToneMapModes">android.tonemap.availableToneMapModes</a></li>
1001 <span class="toc_kind_header">dynamic</span>
1002 <ul class="toc_section">
1004 ><a href="#dynamic_android.tonemap.curveBlue">android.tonemap.curveBlue</a></li>
1006 ><a href="#dynamic_android.tonemap.curveGreen">android.tonemap.curveGreen</a></li>
1008 ><a href="#dynamic_android.tonemap.curveRed">android.tonemap.curveRed</a></li>
1010 ><a href="#dynamic_android.tonemap.curve">android.tonemap.curve</a></li>
1012 ><a href="#dynamic_android.tonemap.mode">android.tonemap.mode</a></li>
1014 ><a href="#dynamic_android.tonemap.gamma">android.tonemap.gamma</a></li>
1016 ><a href="#dynamic_android.tonemap.presetCurve">android.tonemap.presetCurve</a></li>
1019 </ul> <!-- toc_section -->
1022 <span class="toc_section_header"><a href="#section_led">led</a></span>
1023 <ul class="toc_section">
1025 <span class="toc_kind_header">controls</span>
1026 <ul class="toc_section">
1028 ><a href="#controls_android.led.transmit">android.led.transmit</a></li>
1032 <span class="toc_kind_header">dynamic</span>
1033 <ul class="toc_section">
1035 ><a href="#dynamic_android.led.transmit">android.led.transmit</a></li>
1039 <span class="toc_kind_header">static</span>
1040 <ul class="toc_section">
1042 ><a href="#static_android.led.availableLeds">android.led.availableLeds</a></li>
1045 </ul> <!-- toc_section -->
1048 <span class="toc_section_header"><a href="#section_info">info</a></span>
1049 <ul class="toc_section">
1051 <span class="toc_kind_header">static</span>
1052 <ul class="toc_section">
1054 ><a href="#static_android.info.supportedHardwareLevel">android.info.supportedHardwareLevel</a></li>
1057 </ul> <!-- toc_section -->
1060 <span class="toc_section_header"><a href="#section_blackLevel">blackLevel</a></span>
1061 <ul class="toc_section">
1063 <span class="toc_kind_header">controls</span>
1064 <ul class="toc_section">
1066 ><a href="#controls_android.blackLevel.lock">android.blackLevel.lock</a></li>
1070 <span class="toc_kind_header">dynamic</span>
1071 <ul class="toc_section">
1073 ><a href="#dynamic_android.blackLevel.lock">android.blackLevel.lock</a></li>
1076 </ul> <!-- toc_section -->
1079 <span class="toc_section_header"><a href="#section_sync">sync</a></span>
1080 <ul class="toc_section">
1082 <span class="toc_kind_header">dynamic</span>
1083 <ul class="toc_section">
1085 ><a href="#dynamic_android.sync.frameNumber">android.sync.frameNumber</a></li>
1089 <span class="toc_kind_header">static</span>
1090 <ul class="toc_section">
1092 ><a href="#static_android.sync.maxLatency">android.sync.maxLatency</a></li>
1095 </ul> <!-- toc_section -->
1098 <span class="toc_section_header"><a href="#section_reprocess">reprocess</a></span>
1099 <ul class="toc_section">
1101 <span class="toc_kind_header">controls</span>
1102 <ul class="toc_section">
1104 ><a href="#controls_android.reprocess.effectiveExposureFactor">android.reprocess.effectiveExposureFactor</a></li>
1108 <span class="toc_kind_header">dynamic</span>
1109 <ul class="toc_section">
1111 ><a href="#dynamic_android.reprocess.effectiveExposureFactor">android.reprocess.effectiveExposureFactor</a></li>
1115 <span class="toc_kind_header">static</span>
1116 <ul class="toc_section">
1118 ><a href="#static_android.reprocess.maxCaptureStall">android.reprocess.maxCaptureStall</a></li>
1121 </ul> <!-- toc_section -->
1124 <span class="toc_section_header"><a href="#section_depth">depth</a></span>
1125 <ul class="toc_section">
1127 <span class="toc_kind_header">static</span>
1128 <ul class="toc_section">
1130 ><a href="#static_android.depth.maxDepthSamples">android.depth.maxDepthSamples</a></li>
1132 ><a href="#static_android.depth.availableDepthStreamConfigurations">android.depth.availableDepthStreamConfigurations</a></li>
1134 ><a href="#static_android.depth.availableDepthMinFrameDurations">android.depth.availableDepthMinFrameDurations</a></li>
1136 ><a href="#static_android.depth.availableDepthStallDurations">android.depth.availableDepthStallDurations</a></li>
1138 ><a href="#static_android.depth.depthIsExclusive">android.depth.depthIsExclusive</a></li>
1141 </ul> <!-- toc_section -->
1147 <table class="properties">
1149 <thead class="thead_dummy">
1151 <th class="th_name">Property Name</th>
1152 <th class="th_type">Type</th>
1153 <th class="th_description">Description</th>
1154 <th class="th_units">Units</th>
1155 <th class="th_range">Range</th>
1156 <th class="th_tags">Tags</th>
1158 </thead> <!-- so that the first occurrence of thead is not
1159 above the first occurrence of tr -->
1160 <!-- <namespace name="android"> -->
1161 <tr><td colspan="6" id="section_colorCorrection" class="section">colorCorrection</td></tr>
1164 <tr><td colspan="6" class="kind">controls</td></tr>
1166 <thead class="entries_header">
1168 <th class="th_name">Property Name</th>
1169 <th class="th_type">Type</th>
1170 <th class="th_description">Description</th>
1171 <th class="th_units">Units</th>
1172 <th class="th_range">Range</th>
1173 <th class="th_tags">Tags</th>
1188 <tr class="entry" id="controls_android.colorCorrection.mode">
1189 <td class="entry_name
1191 android.<wbr/>color<wbr/>Correction.<wbr/>mode
1193 <td class="entry_type">
1194 <span class="entry_type_name entry_type_name_enum">byte</span>
1196 <span class="entry_type_visibility"> [public]</span>
1199 <span class="entry_type_hwlevel">[full] </span>
1203 <ul class="entry_type_enum">
1205 <span class="entry_type_enum_name">TRANSFORM_MATRIX</span>
1206 <span class="entry_type_enum_notes"><p>Use the <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> matrix
1207 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> to do color conversion.<wbr/></p>
1208 <p>All advanced white balance adjustments (not specified
1209 by our white balance pipeline) must be disabled.<wbr/></p>
1210 <p>If AWB is enabled with <code><a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> != OFF</code>,<wbr/> then
1211 TRANSFORM_<wbr/>MATRIX is ignored.<wbr/> The camera device will override
1212 this value to either FAST or HIGH_<wbr/>QUALITY.<wbr/></p></span>
1215 <span class="entry_type_enum_name">FAST</span>
1216 <span class="entry_type_enum_notes"><p>Color correction processing must not slow down
1217 capture rate relative to sensor raw output.<wbr/></p>
1218 <p>Advanced white balance adjustments above and beyond
1219 the specified white balance pipeline may be applied.<wbr/></p>
1220 <p>If AWB is enabled with <code><a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> != OFF</code>,<wbr/> then
1221 the camera device uses the last frame's AWB values
1222 (or defaults if AWB has never been run).<wbr/></p></span>
1225 <span class="entry_type_enum_name">HIGH_QUALITY</span>
1226 <span class="entry_type_enum_notes"><p>Color correction processing operates at improved
1227 quality but the capture rate might be reduced (relative to sensor
1228 raw output rate)</p>
1229 <p>Advanced white balance adjustments above and beyond
1230 the specified white balance pipeline may be applied.<wbr/></p>
1231 <p>If AWB is enabled with <code><a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> != OFF</code>,<wbr/> then
1232 the camera device uses the last frame's AWB values
1233 (or defaults if AWB has never been run).<wbr/></p></span>
1237 </td> <!-- entry_type -->
1239 <td class="entry_description">
1240 <p>The mode control selects how the image data is converted from the
1241 sensor's native color into linear sRGB color.<wbr/></p>
1244 <td class="entry_units">
1247 <td class="entry_range">
1250 <td class="entry_tags">
1254 <tr class="entries_header">
1255 <th class="th_details" colspan="5">Details</th>
1257 <tr class="entry_cont">
1258 <td class="entry_details" colspan="5">
1259 <p>When auto-white balance (AWB) is enabled with <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> this
1260 control is overridden by the AWB routine.<wbr/> When AWB is disabled,<wbr/> the
1261 application controls how the color mapping is performed.<wbr/></p>
1262 <p>We define the expected processing pipeline below.<wbr/> For consistency
1263 across devices,<wbr/> this is always the case with TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1264 <p>When either FULL or HIGH_<wbr/>QUALITY is used,<wbr/> the camera device may
1265 do additional processing but <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
1266 <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> will still be provided by the
1267 camera device (in the results) and be roughly correct.<wbr/></p>
1268 <p>Switching to TRANSFORM_<wbr/>MATRIX and using the data provided from
1269 FAST or HIGH_<wbr/>QUALITY will yield a picture with the same white point
1270 as what was produced by the camera device in the earlier frame.<wbr/></p>
1271 <p>The expected processing pipeline is as follows:</p>
1272 <p><img alt="White balance processing pipeline" src="images/camera2/metadata/android.colorCorrection.mode/processing_pipeline.png"/></p>
1273 <p>The white balance is encoded by two values,<wbr/> a 4-channel white-balance
1274 gain vector (applied in the Bayer domain),<wbr/> and a 3x3 color transform
1275 matrix (applied after demosaic).<wbr/></p>
1276 <p>The 4-channel white-balance gains are defined as:</p>
1277 <pre><code><a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> = [ R G_<wbr/>even G_<wbr/>odd B ]
1279 <p>where <code>G_<wbr/>even</code> is the gain for green pixels on even rows of the
1280 output,<wbr/> and <code>G_<wbr/>odd</code> is the gain for green pixels on the odd rows.<wbr/>
1281 These may be identical for a given camera device implementation; if
1282 the camera device does not support a separate gain for even/<wbr/>odd green
1283 channels,<wbr/> it will use the <code>G_<wbr/>even</code> value,<wbr/> and write <code>G_<wbr/>odd</code> equal to
1284 <code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
1285 <p>The matrices for color transforms are defined as a 9-entry vector:</p>
1286 <pre><code><a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> = [ I0 I1 I2 I3 I4 I5 I6 I7 I8 ]
1288 <p>which define a transform from input sensor colors,<wbr/> <code>P_<wbr/>in = [ r g b ]</code>,<wbr/>
1289 to output linear sRGB,<wbr/> <code>P_<wbr/>out = [ r' g' b' ]</code>,<wbr/></p>
1290 <p>with colors as follows:</p>
1291 <pre><code>r' = I0r + I1g + I2b
1292 g' = I3r + I4g + I5b
1293 b' = I6r + I7g + I8b
1295 <p>Both the input and output value ranges must match.<wbr/> Overflow/<wbr/>underflow
1296 values are clipped to fit within the range.<wbr/></p>
1300 <tr class="entries_header">
1301 <th class="th_details" colspan="5">HAL Implementation Details</th>
1303 <tr class="entry_cont">
1304 <td class="entry_details" colspan="5">
1305 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if color correction control is available
1306 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
1307 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
1308 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY should generate the same output.<wbr/></p>
1312 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1313 <!-- end of entry -->
1316 <tr class="entry" id="controls_android.colorCorrection.transform">
1317 <td class="entry_name
1319 android.<wbr/>color<wbr/>Correction.<wbr/>transform
1321 <td class="entry_type">
1322 <span class="entry_type_name">rational</span>
1323 <span class="entry_type_container">x</span>
1325 <span class="entry_type_array">
1328 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
1331 <span class="entry_type_hwlevel">[full] </span>
1334 <div class="entry_type_notes">3x3 rational matrix in row-major order</div>
1337 </td> <!-- entry_type -->
1339 <td class="entry_description">
1340 <p>A color transform matrix to use to transform
1341 from sensor RGB color space to output linear sRGB color space.<wbr/></p>
1344 <td class="entry_units">
1345 Unitless scale factors
1348 <td class="entry_range">
1351 <td class="entry_tags">
1355 <tr class="entries_header">
1356 <th class="th_details" colspan="5">Details</th>
1358 <tr class="entry_cont">
1359 <td class="entry_details" colspan="5">
1360 <p>This matrix is either set by the camera device when the request
1361 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not TRANSFORM_<wbr/>MATRIX,<wbr/> or
1362 directly by the application in the request when the
1363 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1364 <p>In the latter case,<wbr/> the camera device may round the matrix to account
1365 for precision issues; the final rounded matrix should be reported back
1366 in this matrix result metadata.<wbr/> The transform should keep the magnitude
1367 of the output color values within <code>[0,<wbr/> 1.<wbr/>0]</code> (assuming input color
1368 values is within the normalized range <code>[0,<wbr/> 1.<wbr/>0]</code>),<wbr/> or clipping may occur.<wbr/></p>
1369 <p>The valid range of each matrix element varies on different devices,<wbr/> but
1370 values within [-1.<wbr/>5,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
1375 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1376 <!-- end of entry -->
1379 <tr class="entry" id="controls_android.colorCorrection.gains">
1380 <td class="entry_name
1382 android.<wbr/>color<wbr/>Correction.<wbr/>gains
1384 <td class="entry_type">
1385 <span class="entry_type_name">float</span>
1386 <span class="entry_type_container">x</span>
1388 <span class="entry_type_array">
1391 <span class="entry_type_visibility"> [public as rggbChannelVector]</span>
1394 <span class="entry_type_hwlevel">[full] </span>
1397 <div class="entry_type_notes">A 1D array of floats for 4 color channel gains</div>
1400 </td> <!-- entry_type -->
1402 <td class="entry_description">
1403 <p>Gains applying to Bayer raw color channels for
1404 white-balance.<wbr/></p>
1407 <td class="entry_units">
1408 Unitless gain factors
1411 <td class="entry_range">
1414 <td class="entry_tags">
1418 <tr class="entries_header">
1419 <th class="th_details" colspan="5">Details</th>
1421 <tr class="entry_cont">
1422 <td class="entry_details" colspan="5">
1423 <p>These per-channel gains are either set by the camera device
1424 when the request <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not
1425 TRANSFORM_<wbr/>MATRIX,<wbr/> or directly by the application in the
1426 request when the <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is
1427 TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1428 <p>The gains in the result metadata are the gains actually
1429 applied by the camera device to the current frame.<wbr/></p>
1430 <p>The valid range of gains varies on different devices,<wbr/> but gains
1431 between [1.<wbr/>0,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/> Even if a given
1432 device allows gains below 1.<wbr/>0,<wbr/> this is usually not recommended because
1433 this can create color artifacts.<wbr/></p>
1437 <tr class="entries_header">
1438 <th class="th_details" colspan="5">HAL Implementation Details</th>
1440 <tr class="entry_cont">
1441 <td class="entry_details" colspan="5">
1442 <p>The 4-channel white-balance gains are defined in
1443 the order of <code>[R G_<wbr/>even G_<wbr/>odd B]</code>,<wbr/> where <code>G_<wbr/>even</code> is the gain
1444 for green pixels on even rows of the output,<wbr/> and <code>G_<wbr/>odd</code>
1445 is the gain for green pixels on the odd rows.<wbr/></p>
1446 <p>If a HAL does not support a separate gain for even/<wbr/>odd green
1447 channels,<wbr/> it must use the <code>G_<wbr/>even</code> value,<wbr/> and write
1448 <code>G_<wbr/>odd</code> equal to <code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
1452 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1453 <!-- end of entry -->
1456 <tr class="entry" id="controls_android.colorCorrection.aberrationMode">
1457 <td class="entry_name
1459 android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode
1461 <td class="entry_type">
1462 <span class="entry_type_name entry_type_name_enum">byte</span>
1464 <span class="entry_type_visibility"> [public]</span>
1467 <span class="entry_type_hwlevel">[legacy] </span>
1471 <ul class="entry_type_enum">
1473 <span class="entry_type_enum_name">OFF</span>
1474 <span class="entry_type_enum_notes"><p>No aberration correction is applied.<wbr/></p></span>
1477 <span class="entry_type_enum_name">FAST</span>
1478 <span class="entry_type_enum_notes"><p>Aberration correction will not slow down capture rate
1479 relative to sensor raw output.<wbr/></p></span>
1482 <span class="entry_type_enum_name">HIGH_QUALITY</span>
1483 <span class="entry_type_enum_notes"><p>Aberration correction operates at improved quality but the capture rate might be
1484 reduced (relative to sensor raw output rate)</p></span>
1488 </td> <!-- entry_type -->
1490 <td class="entry_description">
1491 <p>Mode of operation for the chromatic aberration correction algorithm.<wbr/></p>
1494 <td class="entry_units">
1497 <td class="entry_range">
1498 <p><a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a></p>
1501 <td class="entry_tags">
1505 <tr class="entries_header">
1506 <th class="th_details" colspan="5">Details</th>
1508 <tr class="entry_cont">
1509 <td class="entry_details" colspan="5">
1510 <p>Chromatic (color) aberration is caused by the fact that different wavelengths of light
1511 can not focus on the same point after exiting from the lens.<wbr/> This metadata defines
1512 the high level control of chromatic aberration correction algorithm,<wbr/> which aims to
1513 minimize the chromatic artifacts that may occur along the object boundaries in an
1515 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean that camera device determined aberration
1516 correction will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device will
1517 use the highest-quality aberration correction algorithms,<wbr/> even if it slows down
1518 capture rate.<wbr/> FAST means the camera device will not slow down capture rate when
1519 applying aberration correction.<wbr/></p>
1520 <p>LEGACY devices will always be in FAST mode.<wbr/></p>
1525 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1526 <!-- end of entry -->
1530 <!-- end of kind -->
1532 <tr><td colspan="6" class="kind">dynamic</td></tr>
1534 <thead class="entries_header">
1536 <th class="th_name">Property Name</th>
1537 <th class="th_type">Type</th>
1538 <th class="th_description">Description</th>
1539 <th class="th_units">Units</th>
1540 <th class="th_range">Range</th>
1541 <th class="th_tags">Tags</th>
1556 <tr class="entry" id="dynamic_android.colorCorrection.mode">
1557 <td class="entry_name
1559 android.<wbr/>color<wbr/>Correction.<wbr/>mode
1561 <td class="entry_type">
1562 <span class="entry_type_name entry_type_name_enum">byte</span>
1564 <span class="entry_type_visibility"> [public]</span>
1567 <span class="entry_type_hwlevel">[full] </span>
1571 <ul class="entry_type_enum">
1573 <span class="entry_type_enum_name">TRANSFORM_MATRIX</span>
1574 <span class="entry_type_enum_notes"><p>Use the <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> matrix
1575 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> to do color conversion.<wbr/></p>
1576 <p>All advanced white balance adjustments (not specified
1577 by our white balance pipeline) must be disabled.<wbr/></p>
1578 <p>If AWB is enabled with <code><a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> != OFF</code>,<wbr/> then
1579 TRANSFORM_<wbr/>MATRIX is ignored.<wbr/> The camera device will override
1580 this value to either FAST or HIGH_<wbr/>QUALITY.<wbr/></p></span>
1583 <span class="entry_type_enum_name">FAST</span>
1584 <span class="entry_type_enum_notes"><p>Color correction processing must not slow down
1585 capture rate relative to sensor raw output.<wbr/></p>
1586 <p>Advanced white balance adjustments above and beyond
1587 the specified white balance pipeline may be applied.<wbr/></p>
1588 <p>If AWB is enabled with <code><a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> != OFF</code>,<wbr/> then
1589 the camera device uses the last frame's AWB values
1590 (or defaults if AWB has never been run).<wbr/></p></span>
1593 <span class="entry_type_enum_name">HIGH_QUALITY</span>
1594 <span class="entry_type_enum_notes"><p>Color correction processing operates at improved
1595 quality but the capture rate might be reduced (relative to sensor
1596 raw output rate)</p>
1597 <p>Advanced white balance adjustments above and beyond
1598 the specified white balance pipeline may be applied.<wbr/></p>
1599 <p>If AWB is enabled with <code><a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> != OFF</code>,<wbr/> then
1600 the camera device uses the last frame's AWB values
1601 (or defaults if AWB has never been run).<wbr/></p></span>
1605 </td> <!-- entry_type -->
1607 <td class="entry_description">
1608 <p>The mode control selects how the image data is converted from the
1609 sensor's native color into linear sRGB color.<wbr/></p>
1612 <td class="entry_units">
1615 <td class="entry_range">
1618 <td class="entry_tags">
1622 <tr class="entries_header">
1623 <th class="th_details" colspan="5">Details</th>
1625 <tr class="entry_cont">
1626 <td class="entry_details" colspan="5">
1627 <p>When auto-white balance (AWB) is enabled with <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> this
1628 control is overridden by the AWB routine.<wbr/> When AWB is disabled,<wbr/> the
1629 application controls how the color mapping is performed.<wbr/></p>
1630 <p>We define the expected processing pipeline below.<wbr/> For consistency
1631 across devices,<wbr/> this is always the case with TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1632 <p>When either FULL or HIGH_<wbr/>QUALITY is used,<wbr/> the camera device may
1633 do additional processing but <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
1634 <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> will still be provided by the
1635 camera device (in the results) and be roughly correct.<wbr/></p>
1636 <p>Switching to TRANSFORM_<wbr/>MATRIX and using the data provided from
1637 FAST or HIGH_<wbr/>QUALITY will yield a picture with the same white point
1638 as what was produced by the camera device in the earlier frame.<wbr/></p>
1639 <p>The expected processing pipeline is as follows:</p>
1640 <p><img alt="White balance processing pipeline" src="images/camera2/metadata/android.colorCorrection.mode/processing_pipeline.png"/></p>
1641 <p>The white balance is encoded by two values,<wbr/> a 4-channel white-balance
1642 gain vector (applied in the Bayer domain),<wbr/> and a 3x3 color transform
1643 matrix (applied after demosaic).<wbr/></p>
1644 <p>The 4-channel white-balance gains are defined as:</p>
1645 <pre><code><a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> = [ R G_<wbr/>even G_<wbr/>odd B ]
1647 <p>where <code>G_<wbr/>even</code> is the gain for green pixels on even rows of the
1648 output,<wbr/> and <code>G_<wbr/>odd</code> is the gain for green pixels on the odd rows.<wbr/>
1649 These may be identical for a given camera device implementation; if
1650 the camera device does not support a separate gain for even/<wbr/>odd green
1651 channels,<wbr/> it will use the <code>G_<wbr/>even</code> value,<wbr/> and write <code>G_<wbr/>odd</code> equal to
1652 <code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
1653 <p>The matrices for color transforms are defined as a 9-entry vector:</p>
1654 <pre><code><a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> = [ I0 I1 I2 I3 I4 I5 I6 I7 I8 ]
1656 <p>which define a transform from input sensor colors,<wbr/> <code>P_<wbr/>in = [ r g b ]</code>,<wbr/>
1657 to output linear sRGB,<wbr/> <code>P_<wbr/>out = [ r' g' b' ]</code>,<wbr/></p>
1658 <p>with colors as follows:</p>
1659 <pre><code>r' = I0r + I1g + I2b
1660 g' = I3r + I4g + I5b
1661 b' = I6r + I7g + I8b
1663 <p>Both the input and output value ranges must match.<wbr/> Overflow/<wbr/>underflow
1664 values are clipped to fit within the range.<wbr/></p>
1668 <tr class="entries_header">
1669 <th class="th_details" colspan="5">HAL Implementation Details</th>
1671 <tr class="entry_cont">
1672 <td class="entry_details" colspan="5">
1673 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if color correction control is available
1674 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
1675 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
1676 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY should generate the same output.<wbr/></p>
1680 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1681 <!-- end of entry -->
1684 <tr class="entry" id="dynamic_android.colorCorrection.transform">
1685 <td class="entry_name
1687 android.<wbr/>color<wbr/>Correction.<wbr/>transform
1689 <td class="entry_type">
1690 <span class="entry_type_name">rational</span>
1691 <span class="entry_type_container">x</span>
1693 <span class="entry_type_array">
1696 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
1699 <span class="entry_type_hwlevel">[full] </span>
1702 <div class="entry_type_notes">3x3 rational matrix in row-major order</div>
1705 </td> <!-- entry_type -->
1707 <td class="entry_description">
1708 <p>A color transform matrix to use to transform
1709 from sensor RGB color space to output linear sRGB color space.<wbr/></p>
1712 <td class="entry_units">
1713 Unitless scale factors
1716 <td class="entry_range">
1719 <td class="entry_tags">
1723 <tr class="entries_header">
1724 <th class="th_details" colspan="5">Details</th>
1726 <tr class="entry_cont">
1727 <td class="entry_details" colspan="5">
1728 <p>This matrix is either set by the camera device when the request
1729 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not TRANSFORM_<wbr/>MATRIX,<wbr/> or
1730 directly by the application in the request when the
1731 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1732 <p>In the latter case,<wbr/> the camera device may round the matrix to account
1733 for precision issues; the final rounded matrix should be reported back
1734 in this matrix result metadata.<wbr/> The transform should keep the magnitude
1735 of the output color values within <code>[0,<wbr/> 1.<wbr/>0]</code> (assuming input color
1736 values is within the normalized range <code>[0,<wbr/> 1.<wbr/>0]</code>),<wbr/> or clipping may occur.<wbr/></p>
1737 <p>The valid range of each matrix element varies on different devices,<wbr/> but
1738 values within [-1.<wbr/>5,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
1743 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1744 <!-- end of entry -->
1747 <tr class="entry" id="dynamic_android.colorCorrection.gains">
1748 <td class="entry_name
1750 android.<wbr/>color<wbr/>Correction.<wbr/>gains
1752 <td class="entry_type">
1753 <span class="entry_type_name">float</span>
1754 <span class="entry_type_container">x</span>
1756 <span class="entry_type_array">
1759 <span class="entry_type_visibility"> [public as rggbChannelVector]</span>
1762 <span class="entry_type_hwlevel">[full] </span>
1765 <div class="entry_type_notes">A 1D array of floats for 4 color channel gains</div>
1768 </td> <!-- entry_type -->
1770 <td class="entry_description">
1771 <p>Gains applying to Bayer raw color channels for
1772 white-balance.<wbr/></p>
1775 <td class="entry_units">
1776 Unitless gain factors
1779 <td class="entry_range">
1782 <td class="entry_tags">
1786 <tr class="entries_header">
1787 <th class="th_details" colspan="5">Details</th>
1789 <tr class="entry_cont">
1790 <td class="entry_details" colspan="5">
1791 <p>These per-channel gains are either set by the camera device
1792 when the request <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not
1793 TRANSFORM_<wbr/>MATRIX,<wbr/> or directly by the application in the
1794 request when the <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is
1795 TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1796 <p>The gains in the result metadata are the gains actually
1797 applied by the camera device to the current frame.<wbr/></p>
1798 <p>The valid range of gains varies on different devices,<wbr/> but gains
1799 between [1.<wbr/>0,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/> Even if a given
1800 device allows gains below 1.<wbr/>0,<wbr/> this is usually not recommended because
1801 this can create color artifacts.<wbr/></p>
1805 <tr class="entries_header">
1806 <th class="th_details" colspan="5">HAL Implementation Details</th>
1808 <tr class="entry_cont">
1809 <td class="entry_details" colspan="5">
1810 <p>The 4-channel white-balance gains are defined in
1811 the order of <code>[R G_<wbr/>even G_<wbr/>odd B]</code>,<wbr/> where <code>G_<wbr/>even</code> is the gain
1812 for green pixels on even rows of the output,<wbr/> and <code>G_<wbr/>odd</code>
1813 is the gain for green pixels on the odd rows.<wbr/></p>
1814 <p>If a HAL does not support a separate gain for even/<wbr/>odd green
1815 channels,<wbr/> it must use the <code>G_<wbr/>even</code> value,<wbr/> and write
1816 <code>G_<wbr/>odd</code> equal to <code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
1820 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1821 <!-- end of entry -->
1824 <tr class="entry" id="dynamic_android.colorCorrection.aberrationMode">
1825 <td class="entry_name
1827 android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode
1829 <td class="entry_type">
1830 <span class="entry_type_name entry_type_name_enum">byte</span>
1832 <span class="entry_type_visibility"> [public]</span>
1835 <span class="entry_type_hwlevel">[legacy] </span>
1839 <ul class="entry_type_enum">
1841 <span class="entry_type_enum_name">OFF</span>
1842 <span class="entry_type_enum_notes"><p>No aberration correction is applied.<wbr/></p></span>
1845 <span class="entry_type_enum_name">FAST</span>
1846 <span class="entry_type_enum_notes"><p>Aberration correction will not slow down capture rate
1847 relative to sensor raw output.<wbr/></p></span>
1850 <span class="entry_type_enum_name">HIGH_QUALITY</span>
1851 <span class="entry_type_enum_notes"><p>Aberration correction operates at improved quality but the capture rate might be
1852 reduced (relative to sensor raw output rate)</p></span>
1856 </td> <!-- entry_type -->
1858 <td class="entry_description">
1859 <p>Mode of operation for the chromatic aberration correction algorithm.<wbr/></p>
1862 <td class="entry_units">
1865 <td class="entry_range">
1866 <p><a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a></p>
1869 <td class="entry_tags">
1873 <tr class="entries_header">
1874 <th class="th_details" colspan="5">Details</th>
1876 <tr class="entry_cont">
1877 <td class="entry_details" colspan="5">
1878 <p>Chromatic (color) aberration is caused by the fact that different wavelengths of light
1879 can not focus on the same point after exiting from the lens.<wbr/> This metadata defines
1880 the high level control of chromatic aberration correction algorithm,<wbr/> which aims to
1881 minimize the chromatic artifacts that may occur along the object boundaries in an
1883 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean that camera device determined aberration
1884 correction will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device will
1885 use the highest-quality aberration correction algorithms,<wbr/> even if it slows down
1886 capture rate.<wbr/> FAST means the camera device will not slow down capture rate when
1887 applying aberration correction.<wbr/></p>
1888 <p>LEGACY devices will always be in FAST mode.<wbr/></p>
1893 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1894 <!-- end of entry -->
1898 <!-- end of kind -->
1900 <tr><td colspan="6" class="kind">static</td></tr>
1902 <thead class="entries_header">
1904 <th class="th_name">Property Name</th>
1905 <th class="th_type">Type</th>
1906 <th class="th_description">Description</th>
1907 <th class="th_units">Units</th>
1908 <th class="th_range">Range</th>
1909 <th class="th_tags">Tags</th>
1924 <tr class="entry" id="static_android.colorCorrection.availableAberrationModes">
1925 <td class="entry_name
1927 android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes
1929 <td class="entry_type">
1930 <span class="entry_type_name">byte</span>
1931 <span class="entry_type_container">x</span>
1933 <span class="entry_type_array">
1936 <span class="entry_type_visibility"> [public as enumList]</span>
1939 <span class="entry_type_hwlevel">[legacy] </span>
1942 <div class="entry_type_notes">list of enums</div>
1945 </td> <!-- entry_type -->
1947 <td class="entry_description">
1948 <p>List of aberration correction modes for <a href="#controls_android.colorCorrection.aberrationMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode</a> that are
1949 supported by this camera device.<wbr/></p>
1952 <td class="entry_units">
1955 <td class="entry_range">
1956 <p>Any value listed in <a href="#controls_android.colorCorrection.aberrationMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode</a></p>
1959 <td class="entry_tags">
1960 <ul class="entry_tags">
1961 <li><a href="#tag_V1">V1</a></li>
1966 <tr class="entries_header">
1967 <th class="th_details" colspan="5">Details</th>
1969 <tr class="entry_cont">
1970 <td class="entry_details" colspan="5">
1971 <p>This key lists the valid modes for <a href="#controls_android.colorCorrection.aberrationMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode</a>.<wbr/> If no
1972 aberration correction modes are available for a device,<wbr/> this list will solely include
1973 OFF mode.<wbr/> All camera devices will support either OFF or FAST mode.<wbr/></p>
1974 <p>Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always list
1975 OFF mode.<wbr/> This includes all FULL level devices.<wbr/></p>
1976 <p>LEGACY devices will always only support FAST mode.<wbr/></p>
1980 <tr class="entries_header">
1981 <th class="th_details" colspan="5">HAL Implementation Details</th>
1983 <tr class="entry_cont">
1984 <td class="entry_details" colspan="5">
1985 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if chromatic aberration control is available
1986 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
1987 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
1988 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
1992 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1993 <!-- end of entry -->
1997 <!-- end of kind -->
2000 <!-- end of section -->
2001 <tr><td colspan="6" id="section_control" class="section">control</td></tr>
2004 <tr><td colspan="6" class="kind">controls</td></tr>
2006 <thead class="entries_header">
2008 <th class="th_name">Property Name</th>
2009 <th class="th_type">Type</th>
2010 <th class="th_description">Description</th>
2011 <th class="th_units">Units</th>
2012 <th class="th_range">Range</th>
2013 <th class="th_tags">Tags</th>
2028 <tr class="entry" id="controls_android.control.aeAntibandingMode">
2029 <td class="entry_name
2031 android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode
2033 <td class="entry_type">
2034 <span class="entry_type_name entry_type_name_enum">byte</span>
2036 <span class="entry_type_visibility"> [public]</span>
2039 <span class="entry_type_hwlevel">[legacy] </span>
2043 <ul class="entry_type_enum">
2045 <span class="entry_type_enum_name">OFF</span>
2046 <span class="entry_type_enum_notes"><p>The camera device will not adjust exposure duration to
2047 avoid banding problems.<wbr/></p></span>
2050 <span class="entry_type_enum_name">50HZ</span>
2051 <span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
2052 avoid banding problems with 50Hz illumination sources.<wbr/></p></span>
2055 <span class="entry_type_enum_name">60HZ</span>
2056 <span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
2057 avoid banding problems with 60Hz illumination
2058 sources.<wbr/></p></span>
2061 <span class="entry_type_enum_name">AUTO</span>
2062 <span class="entry_type_enum_notes"><p>The camera device will automatically adapt its
2063 antibanding routine to the current illumination
2064 condition.<wbr/> This is the default mode if AUTO is
2065 available on given camera device.<wbr/></p></span>
2069 </td> <!-- entry_type -->
2071 <td class="entry_description">
2072 <p>The desired setting for the camera device's auto-exposure
2073 algorithm's antibanding compensation.<wbr/></p>
2076 <td class="entry_units">
2079 <td class="entry_range">
2080 <p><a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a></p>
2083 <td class="entry_tags">
2084 <ul class="entry_tags">
2085 <li><a href="#tag_BC">BC</a></li>
2090 <tr class="entries_header">
2091 <th class="th_details" colspan="5">Details</th>
2093 <tr class="entry_cont">
2094 <td class="entry_details" colspan="5">
2095 <p>Some kinds of lighting fixtures,<wbr/> such as some fluorescent
2096 lights,<wbr/> flicker at the rate of the power supply frequency
2097 (60Hz or 50Hz,<wbr/> depending on country).<wbr/> While this is
2098 typically not noticeable to a person,<wbr/> it can be visible to
2099 a camera device.<wbr/> If a camera sets its exposure time to the
2100 wrong value,<wbr/> the flicker may become visible in the
2101 viewfinder as flicker or in a final captured image,<wbr/> as a
2102 set of variable-brightness bands across the image.<wbr/></p>
2103 <p>Therefore,<wbr/> the auto-exposure routines of camera devices
2104 include antibanding routines that ensure that the chosen
2105 exposure value will not cause such banding.<wbr/> The choice of
2106 exposure time depends on the rate of flicker,<wbr/> which the
2107 camera device can detect automatically,<wbr/> or the expected
2108 rate can be selected by the application using this
2110 <p>A given camera device may not support all of the possible
2111 options for the antibanding mode.<wbr/> The
2112 <a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a> key contains
2113 the available modes for a given camera device.<wbr/></p>
2114 <p>AUTO mode is the default if it is available on given
2115 camera device.<wbr/> When AUTO mode is not available,<wbr/> the
2116 default will be either 50HZ or 60HZ,<wbr/> and both 50HZ
2117 and 60HZ will be available.<wbr/></p>
2118 <p>If manual exposure control is enabled (by setting
2119 <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> to OFF),<wbr/>
2120 then this setting has no effect,<wbr/> and the application must
2121 ensure it selects exposure times that do not cause banding
2122 issues.<wbr/> The <a href="#dynamic_android.statistics.sceneFlicker">android.<wbr/>statistics.<wbr/>scene<wbr/>Flicker</a> key can assist
2123 the application in this.<wbr/></p>
2127 <tr class="entries_header">
2128 <th class="th_details" colspan="5">HAL Implementation Details</th>
2130 <tr class="entry_cont">
2131 <td class="entry_details" colspan="5">
2132 <p>For all capture request templates,<wbr/> this field must be set
2133 to AUTO if AUTO mode is available.<wbr/> If AUTO is not available,<wbr/>
2134 the default must be either 50HZ or 60HZ,<wbr/> and both 50HZ and
2135 60HZ must be available.<wbr/></p>
2136 <p>If manual exposure control is enabled (by setting
2137 <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> to OFF),<wbr/>
2138 then the exposure values provided by the application must not be
2139 adjusted for antibanding.<wbr/></p>
2143 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2144 <!-- end of entry -->
2147 <tr class="entry" id="controls_android.control.aeExposureCompensation">
2148 <td class="entry_name
2150 android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation
2152 <td class="entry_type">
2153 <span class="entry_type_name">int32</span>
2155 <span class="entry_type_visibility"> [public]</span>
2158 <span class="entry_type_hwlevel">[legacy] </span>
2163 </td> <!-- entry_type -->
2165 <td class="entry_description">
2166 <p>Adjustment to auto-exposure (AE) target image
2167 brightness.<wbr/></p>
2170 <td class="entry_units">
2174 <td class="entry_range">
2175 <p><a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a></p>
2178 <td class="entry_tags">
2179 <ul class="entry_tags">
2180 <li><a href="#tag_BC">BC</a></li>
2185 <tr class="entries_header">
2186 <th class="th_details" colspan="5">Details</th>
2188 <tr class="entry_cont">
2189 <td class="entry_details" colspan="5">
2190 <p>The adjustment is measured as a count of steps,<wbr/> with the
2191 step size defined by <a href="#static_android.control.aeCompensationStep">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step</a> and the
2192 allowed range by <a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a>.<wbr/></p>
2193 <p>For example,<wbr/> if the exposure value (EV) step is 0.<wbr/>333,<wbr/> '6'
2194 will mean an exposure compensation of +2 EV; -3 will mean an
2195 exposure compensation of -1 EV.<wbr/> One EV represents a doubling
2196 of image brightness.<wbr/> Note that this control will only be
2197 effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>!=</code> OFF.<wbr/> This control
2198 will take effect even when <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> <code>== true</code>.<wbr/></p>
2199 <p>In the event of exposure compensation value being changed,<wbr/> camera device
2200 may take several frames to reach the newly requested exposure target.<wbr/>
2201 During that time,<wbr/> <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> field will be in the SEARCHING
2202 state.<wbr/> Once the new exposure target is reached,<wbr/> <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> will
2203 change from SEARCHING to either CONVERGED,<wbr/> LOCKED (if AE lock is enabled),<wbr/> or
2204 FLASH_<wbr/>REQUIRED (if the scene is too dark for still capture).<wbr/></p>
2209 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2210 <!-- end of entry -->
2213 <tr class="entry" id="controls_android.control.aeLock">
2214 <td class="entry_name
2216 android.<wbr/>control.<wbr/>ae<wbr/>Lock
2218 <td class="entry_type">
2219 <span class="entry_type_name entry_type_name_enum">byte</span>
2221 <span class="entry_type_visibility"> [public as boolean]</span>
2224 <span class="entry_type_hwlevel">[legacy] </span>
2228 <ul class="entry_type_enum">
2230 <span class="entry_type_enum_name">OFF</span>
2231 <span class="entry_type_enum_notes"><p>Auto-exposure lock is disabled; the AE algorithm
2232 is free to update its parameters.<wbr/></p></span>
2235 <span class="entry_type_enum_name">ON</span>
2236 <span class="entry_type_enum_notes"><p>Auto-exposure lock is enabled; the AE algorithm
2237 must not update the exposure and sensitivity parameters
2238 while the lock is active.<wbr/></p>
2239 <p><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a> setting changes
2240 will still take effect while auto-exposure is locked.<wbr/></p>
2241 <p>Some rare LEGACY devices may not support
2242 this,<wbr/> in which case the value will always be overridden to OFF.<wbr/></p></span>
2246 </td> <!-- entry_type -->
2248 <td class="entry_description">
2249 <p>Whether auto-exposure (AE) is currently locked to its latest
2250 calculated values.<wbr/></p>
2253 <td class="entry_units">
2256 <td class="entry_range">
2259 <td class="entry_tags">
2260 <ul class="entry_tags">
2261 <li><a href="#tag_BC">BC</a></li>
2266 <tr class="entries_header">
2267 <th class="th_details" colspan="5">Details</th>
2269 <tr class="entry_cont">
2270 <td class="entry_details" colspan="5">
2271 <p>When set to <code>true</code> (ON),<wbr/> the AE algorithm is locked to its latest parameters,<wbr/>
2272 and will not change exposure settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
2273 <p>Note that even when AE is locked,<wbr/> the flash may be fired if
2274 the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is ON_<wbr/>AUTO_<wbr/>FLASH /<wbr/>
2275 ON_<wbr/>ALWAYS_<wbr/>FLASH /<wbr/> ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE.<wbr/></p>
2276 <p>When <a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a> is changed,<wbr/> even if the AE lock
2277 is ON,<wbr/> the camera device will still adjust its exposure value.<wbr/></p>
2278 <p>If AE precapture is triggered (see <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>)
2279 when AE is already locked,<wbr/> the camera device will not change the exposure time
2280 (<a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>) and sensitivity (<a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>)
2281 parameters.<wbr/> The flash may be fired if the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>
2282 is ON_<wbr/>AUTO_<wbr/>FLASH/<wbr/>ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE and the scene is too dark.<wbr/> If the
2283 <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is ON_<wbr/>ALWAYS_<wbr/>FLASH,<wbr/> the scene may become overexposed.<wbr/>
2284 Similarly,<wbr/> AE precapture trigger CANCEL has no effect when AE is already locked.<wbr/></p>
2285 <p>When an AE precapture sequence is triggered,<wbr/> AE unlock will not be able to unlock
2286 the AE if AE is locked by the camera device internally during precapture metering
2287 sequence In other words,<wbr/> submitting requests with AE unlock has no effect for an
2288 ongoing precapture metering sequence.<wbr/> Otherwise,<wbr/> the precapture metering sequence
2289 will never succeed in a sequence of preview requests where AE lock is always set
2290 to <code>false</code>.<wbr/></p>
2291 <p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
2292 get locked do not necessarily correspond to the settings that were present in the
2293 latest capture result received from the camera device,<wbr/> since additional captures
2294 and AE updates may have occurred even before the result was sent out.<wbr/> If an
2295 application is switching between automatic and manual control and wishes to eliminate
2296 any flicker during the switch,<wbr/> the following procedure is recommended:</p>
2298 <li>Starting in auto-AE mode:</li>
2300 <li>Wait for the first result to be output that has the AE locked</li>
2301 <li>Copy exposure settings from that result into a request,<wbr/> set the request to manual AE</li>
2302 <li>Submit the capture request,<wbr/> proceed to run manual AE as desired.<wbr/></li>
2304 <p>See <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> for AE lock related state transition details.<wbr/></p>
2309 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2310 <!-- end of entry -->
2313 <tr class="entry" id="controls_android.control.aeMode">
2314 <td class="entry_name
2316 android.<wbr/>control.<wbr/>ae<wbr/>Mode
2318 <td class="entry_type">
2319 <span class="entry_type_name entry_type_name_enum">byte</span>
2321 <span class="entry_type_visibility"> [public]</span>
2324 <span class="entry_type_hwlevel">[legacy] </span>
2328 <ul class="entry_type_enum">
2330 <span class="entry_type_enum_name">OFF</span>
2331 <span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is disabled.<wbr/></p>
2332 <p>The application-selected <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
2333 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> and
2334 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are used by the camera
2335 device,<wbr/> along with android.<wbr/>flash.<wbr/>* fields,<wbr/> if there's
2336 a flash unit for this camera device.<wbr/></p>
2337 <p>Note that auto-white balance (AWB) and auto-focus (AF)
2338 behavior is device dependent when AE is in OFF mode.<wbr/>
2339 To have consistent behavior across different devices,<wbr/>
2340 it is recommended to either set AWB and AF to OFF mode
2341 or lock AWB and AF before setting AE to OFF.<wbr/>
2342 See <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>,<wbr/>
2343 <a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a>,<wbr/> and <a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>
2344 for more details.<wbr/></p>
2345 <p>LEGACY devices do not support the OFF mode and will
2346 override attempts to use this value to ON.<wbr/></p></span>
2349 <span class="entry_type_enum_name">ON</span>
2350 <span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is active,<wbr/>
2351 with no flash control.<wbr/></p>
2352 <p>The application's values for
2353 <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
2354 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>,<wbr/> and
2355 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are ignored.<wbr/> The
2356 application has control over the various
2357 android.<wbr/>flash.<wbr/>* fields.<wbr/></p></span>
2360 <span class="entry_type_enum_name">ON_AUTO_FLASH</span>
2361 <span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
2362 the camera's flash unit,<wbr/> firing it in low-light
2363 conditions.<wbr/></p>
2364 <p>The flash may be fired during a precapture sequence
2365 (triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
2366 may be fired for captures for which the
2367 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
2368 STILL_<wbr/>CAPTURE</p></span>
2371 <span class="entry_type_enum_name">ON_ALWAYS_FLASH</span>
2372 <span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
2373 the camera's flash unit,<wbr/> always firing it for still
2375 <p>The flash may be fired during a precapture sequence
2376 (triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
2377 will always be fired for captures for which the
2378 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
2379 STILL_<wbr/>CAPTURE</p></span>
2382 <span class="entry_type_enum_name">ON_AUTO_FLASH_REDEYE</span>
2383 <span class="entry_type_enum_notes"><p>Like ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> but with automatic red eye
2384 reduction.<wbr/></p>
2385 <p>If deemed necessary by the camera device,<wbr/> a red eye
2386 reduction flash will fire during the precapture
2387 sequence.<wbr/></p></span>
2391 </td> <!-- entry_type -->
2393 <td class="entry_description">
2394 <p>The desired mode for the camera device's
2395 auto-exposure routine.<wbr/></p>
2398 <td class="entry_units">
2401 <td class="entry_range">
2402 <p><a href="#static_android.control.aeAvailableModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Modes</a></p>
2405 <td class="entry_tags">
2406 <ul class="entry_tags">
2407 <li><a href="#tag_BC">BC</a></li>
2412 <tr class="entries_header">
2413 <th class="th_details" colspan="5">Details</th>
2415 <tr class="entry_cont">
2416 <td class="entry_details" colspan="5">
2417 <p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is
2419 <p>When set to any of the ON modes,<wbr/> the camera device's
2420 auto-exposure routine is enabled,<wbr/> overriding the
2421 application's selected exposure time,<wbr/> sensor sensitivity,<wbr/>
2422 and frame duration (<a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
2423 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>,<wbr/> and
2424 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>).<wbr/> If one of the FLASH modes
2425 is selected,<wbr/> the camera device's flash unit controls are
2426 also overridden.<wbr/></p>
2427 <p>The FLASH modes are only available if the camera device
2428 has a flash unit (<a href="#static_android.flash.info.available">android.<wbr/>flash.<wbr/>info.<wbr/>available</a> is <code>true</code>).<wbr/></p>
2429 <p>If flash TORCH mode is desired,<wbr/> this field must be set to
2430 ON or OFF,<wbr/> and <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> set to TORCH.<wbr/></p>
2431 <p>When set to any of the ON modes,<wbr/> the values chosen by the
2432 camera device auto-exposure routine for the overridden
2433 fields for a given capture will be available in its
2434 CaptureResult.<wbr/></p>
2439 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2440 <!-- end of entry -->
2443 <tr class="entry" id="controls_android.control.aeRegions">
2444 <td class="entry_name
2446 android.<wbr/>control.<wbr/>ae<wbr/>Regions
2448 <td class="entry_type">
2449 <span class="entry_type_name">int32</span>
2450 <span class="entry_type_container">x</span>
2452 <span class="entry_type_array">
2455 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
2462 </td> <!-- entry_type -->
2464 <td class="entry_description">
2465 <p>List of metering areas to use for auto-exposure adjustment.<wbr/></p>
2468 <td class="entry_units">
2469 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
2472 <td class="entry_range">
2473 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
2474 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
2477 <td class="entry_tags">
2478 <ul class="entry_tags">
2479 <li><a href="#tag_BC">BC</a></li>
2484 <tr class="entries_header">
2485 <th class="th_details" colspan="5">Details</th>
2487 <tr class="entry_cont">
2488 <td class="entry_details" colspan="5">
2489 <p>Not available if <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a> is 0.<wbr/>
2490 Otherwise will always be present.<wbr/></p>
2491 <p>The maximum number of regions supported by the device is determined by the value
2492 of <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a>.<wbr/></p>
2493 <p>The coordinate system is based on the active pixel array,<wbr/>
2494 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
2495 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
2496 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
2497 bottom-right pixel in the active pixel array.<wbr/></p>
2498 <p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
2499 for every pixel in the area.<wbr/> This means that a large metering area
2500 with the same weight as a smaller area will have more effect in
2501 the metering result.<wbr/> Metering areas can partially overlap and the
2502 camera device will add the weights in the overlap region.<wbr/></p>
2503 <p>The weights are relative to weights of other exposure metering regions,<wbr/> so if only one
2504 region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0
2505 weight is ignored.<wbr/></p>
2506 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
2507 camera device.<wbr/></p>
2508 <p>If the metering region is outside the used <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> returned in
2509 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
2510 region and output only the intersection rectangle as the metering region in the result
2511 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
2512 not reported in the result metadata.<wbr/></p>
2516 <tr class="entries_header">
2517 <th class="th_details" colspan="5">HAL Implementation Details</th>
2519 <tr class="entry_cont">
2520 <td class="entry_details" colspan="5">
2521 <p>The HAL level representation of MeteringRectangle[] is a
2522 int[5 * area_<wbr/>count].<wbr/>
2523 Every five elements represent a metering region of
2524 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
2525 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
2526 exclusive on xmax and ymax.<wbr/></p>
2530 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2531 <!-- end of entry -->
2534 <tr class="entry" id="controls_android.control.aeTargetFpsRange">
2535 <td class="entry_name
2537 android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range
2539 <td class="entry_type">
2540 <span class="entry_type_name">int32</span>
2541 <span class="entry_type_container">x</span>
2543 <span class="entry_type_array">
2546 <span class="entry_type_visibility"> [public as rangeInt]</span>
2549 <span class="entry_type_hwlevel">[legacy] </span>
2554 </td> <!-- entry_type -->
2556 <td class="entry_description">
2557 <p>Range over which the auto-exposure routine can
2558 adjust the capture frame rate to maintain good
2562 <td class="entry_units">
2563 Frames per second (FPS)
2566 <td class="entry_range">
2567 <p>Any of the entries in <a href="#static_android.control.aeAvailableTargetFpsRanges">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Target<wbr/>Fps<wbr/>Ranges</a></p>
2570 <td class="entry_tags">
2571 <ul class="entry_tags">
2572 <li><a href="#tag_BC">BC</a></li>
2577 <tr class="entries_header">
2578 <th class="th_details" colspan="5">Details</th>
2580 <tr class="entry_cont">
2581 <td class="entry_details" colspan="5">
2582 <p>Only constrains auto-exposure (AE) algorithm,<wbr/> not
2583 manual control of <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a> and
2584 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>.<wbr/></p>
2589 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2590 <!-- end of entry -->
2593 <tr class="entry" id="controls_android.control.aePrecaptureTrigger">
2594 <td class="entry_name
2596 android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger
2598 <td class="entry_type">
2599 <span class="entry_type_name entry_type_name_enum">byte</span>
2601 <span class="entry_type_visibility"> [public]</span>
2604 <span class="entry_type_hwlevel">[limited] </span>
2608 <ul class="entry_type_enum">
2610 <span class="entry_type_enum_name">IDLE</span>
2611 <span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
2614 <span class="entry_type_enum_name">START</span>
2615 <span class="entry_type_enum_notes"><p>The precapture metering sequence will be started
2616 by the camera device.<wbr/></p>
2617 <p>The exact effect of the precapture trigger depends on
2618 the current AE mode and state.<wbr/></p></span>
2621 <span class="entry_type_enum_name">CANCEL</span>
2622 <span class="entry_type_enum_notes"><p>The camera device will cancel any currently active or completed
2623 precapture metering sequence,<wbr/> the auto-exposure routine will return to its
2624 initial state.<wbr/></p></span>
2628 </td> <!-- entry_type -->
2630 <td class="entry_description">
2631 <p>Whether the camera device will trigger a precapture
2632 metering sequence when it processes this request.<wbr/></p>
2635 <td class="entry_units">
2638 <td class="entry_range">
2641 <td class="entry_tags">
2642 <ul class="entry_tags">
2643 <li><a href="#tag_BC">BC</a></li>
2648 <tr class="entries_header">
2649 <th class="th_details" colspan="5">Details</th>
2651 <tr class="entry_cont">
2652 <td class="entry_details" colspan="5">
2653 <p>This entry is normally set to IDLE,<wbr/> or is not
2654 included at all in the request settings.<wbr/> When included and
2655 set to START,<wbr/> the camera device will trigger the auto-exposure (AE)
2656 precapture metering sequence.<wbr/></p>
2657 <p>When set to CANCEL,<wbr/> the camera device will cancel any active
2658 precapture metering trigger,<wbr/> and return to its initial AE state.<wbr/>
2659 If a precapture metering sequence is already completed,<wbr/> and the camera
2660 device has implicitly locked the AE for subsequent still capture,<wbr/> the
2661 CANCEL trigger will unlock the AE and return to its initial AE state.<wbr/></p>
2662 <p>The precapture sequence should be triggered before starting a
2663 high-quality still capture for final metering decisions to
2664 be made,<wbr/> and for firing pre-capture flash pulses to estimate
2665 scene brightness and required final capture flash power,<wbr/> when
2666 the flash is enabled.<wbr/></p>
2667 <p>Normally,<wbr/> this entry should be set to START for only a
2668 single request,<wbr/> and the application should wait until the
2669 sequence completes before starting a new one.<wbr/></p>
2670 <p>When a precapture metering sequence is finished,<wbr/> the camera device
2671 may lock the auto-exposure routine internally to be able to accurately expose the
2672 subsequent still capture image (<code><a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE</code>).<wbr/>
2673 For this case,<wbr/> the AE may not resume normal scan if no subsequent still capture is
2674 submitted.<wbr/> To ensure that the AE routine restarts normal scan,<wbr/> the application should
2675 submit a request with <code><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> == true</code>,<wbr/> followed by a request
2676 with <code><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> == false</code>,<wbr/> if the application decides not to submit a
2677 still capture request after the precapture sequence completes.<wbr/> Alternatively,<wbr/> for
2678 API level 23 or newer devices,<wbr/> the CANCEL can be used to unlock the camera device
2679 internally locked AE if the application doesn't submit a still capture request after
2680 the AE precapture trigger.<wbr/> Note that,<wbr/> the CANCEL was added in API level 23,<wbr/> and must not
2681 be used in devices that have earlier API levels.<wbr/></p>
2682 <p>The exact effect of auto-exposure (AE) precapture trigger
2683 depends on the current AE mode and state; see
2684 <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> for AE precapture state transition
2686 <p>On LEGACY-level devices,<wbr/> the precapture trigger is not supported;
2687 capturing a high-resolution JPEG image will automatically trigger a
2688 precapture sequence before the high-resolution capture,<wbr/> including
2689 potentially firing a pre-capture flash.<wbr/></p>
2690 <p>Using the precapture trigger and the auto-focus trigger <a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>
2691 simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
2692 the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
2693 focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
2694 trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
2695 changes to <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> indicating the start of the precapture sequence,<wbr/> for
2697 <p>If both the precapture and the auto-focus trigger are activated on the same request,<wbr/> then
2698 the camera device will complete them in the optimal order for that device.<wbr/></p>
2702 <tr class="entries_header">
2703 <th class="th_details" colspan="5">HAL Implementation Details</th>
2705 <tr class="entry_cont">
2706 <td class="entry_details" colspan="5">
2707 <p>The HAL must support triggering the AE precapture trigger while an AF trigger is active
2708 (and vice versa),<wbr/> or at the same time as the AF trigger.<wbr/> It is acceptable for the HAL to
2709 treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
2710 AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
2711 to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
2715 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2716 <!-- end of entry -->
2719 <tr class="entry" id="controls_android.control.afMode">
2720 <td class="entry_name
2722 android.<wbr/>control.<wbr/>af<wbr/>Mode
2724 <td class="entry_type">
2725 <span class="entry_type_name entry_type_name_enum">byte</span>
2727 <span class="entry_type_visibility"> [public]</span>
2730 <span class="entry_type_hwlevel">[legacy] </span>
2734 <ul class="entry_type_enum">
2736 <span class="entry_type_enum_name">OFF</span>
2737 <span class="entry_type_enum_notes"><p>The auto-focus routine does not control the lens;
2738 <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> is controlled by the
2739 application.<wbr/></p></span>
2742 <span class="entry_type_enum_name">AUTO</span>
2743 <span class="entry_type_enum_notes"><p>Basic automatic focus mode.<wbr/></p>
2744 <p>In this mode,<wbr/> the lens does not move unless
2745 the autofocus trigger action is called.<wbr/> When that trigger
2746 is activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
2747 the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/></p>
2748 <p>Always supported if lens is not fixed focus.<wbr/></p>
2749 <p>Use <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> to determine if lens
2750 is fixed-focus.<wbr/></p>
2751 <p>Triggering AF_<wbr/>CANCEL resets the lens position to default,<wbr/>
2752 and sets the AF state to INACTIVE.<wbr/></p></span>
2755 <span class="entry_type_enum_name">MACRO</span>
2756 <span class="entry_type_enum_notes"><p>Close-up focusing mode.<wbr/></p>
2757 <p>In this mode,<wbr/> the lens does not move unless the
2758 autofocus trigger action is called.<wbr/> When that trigger is
2759 activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
2760 the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/> This
2761 mode is optimized for focusing on objects very close to
2762 the camera.<wbr/></p>
2763 <p>When that trigger is activated,<wbr/> AF will transition to
2764 ACTIVE_<wbr/>SCAN,<wbr/> then to the outcome of the scan (FOCUSED or
2765 NOT_<wbr/>FOCUSED).<wbr/> Triggering cancel AF resets the lens
2766 position to default,<wbr/> and sets the AF state to
2767 INACTIVE.<wbr/></p></span>
2770 <span class="entry_type_enum_name">CONTINUOUS_VIDEO</span>
2771 <span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
2772 position continually to attempt to provide a
2773 constantly-in-focus image stream.<wbr/></p>
2774 <p>The focusing behavior should be suitable for good quality
2775 video recording; typically this means slower focus
2776 movement and no overshoots.<wbr/> When the AF trigger is not
2777 involved,<wbr/> the AF algorithm should start in INACTIVE state,<wbr/>
2778 and then transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED
2779 states as appropriate.<wbr/> When the AF trigger is activated,<wbr/>
2780 the algorithm should immediately transition into
2781 AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
2782 lens position until a cancel AF trigger is received.<wbr/></p>
2783 <p>Once cancel is received,<wbr/> the algorithm should transition
2784 back to INACTIVE and resume passive scan.<wbr/> Note that this
2785 behavior is not identical to CONTINUOUS_<wbr/>PICTURE,<wbr/> since an
2786 ongoing PASSIVE_<wbr/>SCAN must immediately be
2787 canceled.<wbr/></p></span>
2790 <span class="entry_type_enum_name">CONTINUOUS_PICTURE</span>
2791 <span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
2792 position continually to attempt to provide a
2793 constantly-in-focus image stream.<wbr/></p>
2794 <p>The focusing behavior should be suitable for still image
2795 capture; typically this means focusing as fast as
2796 possible.<wbr/> When the AF trigger is not involved,<wbr/> the AF
2797 algorithm should start in INACTIVE state,<wbr/> and then
2798 transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED states as
2799 appropriate as it attempts to maintain focus.<wbr/> When the AF
2800 trigger is activated,<wbr/> the algorithm should finish its
2801 PASSIVE_<wbr/>SCAN if active,<wbr/> and then transition into
2802 AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
2803 lens position until a cancel AF trigger is received.<wbr/></p>
2804 <p>When the AF cancel trigger is activated,<wbr/> the algorithm
2805 should transition back to INACTIVE and then act as if it
2806 has just been started.<wbr/></p></span>
2809 <span class="entry_type_enum_name">EDOF</span>
2810 <span class="entry_type_enum_notes"><p>Extended depth of field (digital focus) mode.<wbr/></p>
2811 <p>The camera device will produce images with an extended
2812 depth of field automatically; no special focusing
2813 operations need to be done before taking a picture.<wbr/></p>
2814 <p>AF triggers are ignored,<wbr/> and the AF state will always be
2815 INACTIVE.<wbr/></p></span>
2819 </td> <!-- entry_type -->
2821 <td class="entry_description">
2822 <p>Whether auto-focus (AF) is currently enabled,<wbr/> and what
2823 mode it is set to.<wbr/></p>
2826 <td class="entry_units">
2829 <td class="entry_range">
2830 <p><a href="#static_android.control.afAvailableModes">android.<wbr/>control.<wbr/>af<wbr/>Available<wbr/>Modes</a></p>
2833 <td class="entry_tags">
2834 <ul class="entry_tags">
2835 <li><a href="#tag_BC">BC</a></li>
2840 <tr class="entries_header">
2841 <th class="th_details" colspan="5">Details</th>
2843 <tr class="entry_cont">
2844 <td class="entry_details" colspan="5">
2845 <p>Only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> = AUTO and the lens is not fixed focus
2846 (i.<wbr/>e.<wbr/> <code><a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> > 0</code>).<wbr/> Also note that
2847 when <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/> the behavior of AF is device
2848 dependent.<wbr/> It is recommended to lock AF by using <a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a> before
2849 setting <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> to OFF,<wbr/> or set AF mode to OFF when AE is OFF.<wbr/></p>
2850 <p>If the lens is controlled by the camera device auto-focus algorithm,<wbr/>
2851 the camera device will report the current AF status in <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>
2852 in result metadata.<wbr/></p>
2856 <tr class="entries_header">
2857 <th class="th_details" colspan="5">HAL Implementation Details</th>
2859 <tr class="entry_cont">
2860 <td class="entry_details" colspan="5">
2861 <p>When afMode is AUTO or MACRO,<wbr/> the lens must not move until an AF trigger is sent in a
2862 request (<a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a> <code>==</code> START).<wbr/> After an AF trigger,<wbr/> the afState will end
2863 up with either FOCUSED_<wbr/>LOCKED or NOT_<wbr/>FOCUSED_<wbr/>LOCKED state (see
2864 <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a> for detailed state transitions),<wbr/> which indicates that the lens is
2865 locked and will not move.<wbr/> If camera movement (e.<wbr/>g.<wbr/> tilting camera) causes the lens to move
2866 after the lens is locked,<wbr/> the HAL must compensate this movement appropriately such that
2867 the same focal plane remains in focus.<wbr/></p>
2868 <p>When afMode is one of the continuous auto focus modes,<wbr/> the HAL is free to start a AF
2869 scan whenever it's not locked.<wbr/> When the lens is locked after an AF trigger
2870 (see <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a> for detailed state transitions),<wbr/> the HAL should maintain the
2871 same lock behavior as above.<wbr/></p>
2872 <p>When afMode is OFF,<wbr/> the application controls focus manually.<wbr/> The accuracy of the
2873 focus distance control depends on the <a href="#static_android.lens.info.focusDistanceCalibration">android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration</a>.<wbr/>
2874 However,<wbr/> the lens must not move regardless of the camera movement for any focus distance
2875 manual control.<wbr/></p>
2876 <p>To put this in concrete terms,<wbr/> if the camera has lens elements which may move based on
2877 camera orientation or motion (e.<wbr/>g.<wbr/> due to gravity),<wbr/> then the HAL must drive the lens to
2878 remain in a fixed position invariant to the camera's orientation or motion,<wbr/> for example,<wbr/>
2879 by using accelerometer measurements in the lens control logic.<wbr/> This is a typical issue
2880 that will arise on camera modules with open-loop VCMs.<wbr/></p>
2884 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2885 <!-- end of entry -->
2888 <tr class="entry" id="controls_android.control.afRegions">
2889 <td class="entry_name
2891 android.<wbr/>control.<wbr/>af<wbr/>Regions
2893 <td class="entry_type">
2894 <span class="entry_type_name">int32</span>
2895 <span class="entry_type_container">x</span>
2897 <span class="entry_type_array">
2900 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
2907 </td> <!-- entry_type -->
2909 <td class="entry_description">
2910 <p>List of metering areas to use for auto-focus.<wbr/></p>
2913 <td class="entry_units">
2914 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
2917 <td class="entry_range">
2918 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
2919 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
2922 <td class="entry_tags">
2923 <ul class="entry_tags">
2924 <li><a href="#tag_BC">BC</a></li>
2929 <tr class="entries_header">
2930 <th class="th_details" colspan="5">Details</th>
2932 <tr class="entry_cont">
2933 <td class="entry_details" colspan="5">
2934 <p>Not available if <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a> is 0.<wbr/>
2935 Otherwise will always be present.<wbr/></p>
2936 <p>The maximum number of focus areas supported by the device is determined by the value
2937 of <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a>.<wbr/></p>
2938 <p>The coordinate system is based on the active pixel array,<wbr/>
2939 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
2940 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
2941 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
2942 bottom-right pixel in the active pixel array.<wbr/></p>
2943 <p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
2944 for every pixel in the area.<wbr/> This means that a large metering area
2945 with the same weight as a smaller area will have more effect in
2946 the metering result.<wbr/> Metering areas can partially overlap and the
2947 camera device will add the weights in the overlap region.<wbr/></p>
2948 <p>The weights are relative to weights of other metering regions,<wbr/> so if only one region
2949 is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0 weight is
2951 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
2952 camera device.<wbr/></p>
2953 <p>If the metering region is outside the used <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> returned in
2954 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
2955 region and output only the intersection rectangle as the metering region in the result
2956 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
2957 not reported in the result metadata.<wbr/></p>
2961 <tr class="entries_header">
2962 <th class="th_details" colspan="5">HAL Implementation Details</th>
2964 <tr class="entry_cont">
2965 <td class="entry_details" colspan="5">
2966 <p>The HAL level representation of MeteringRectangle[] is a
2967 int[5 * area_<wbr/>count].<wbr/>
2968 Every five elements represent a metering region of
2969 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
2970 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
2971 exclusive on xmax and ymax.<wbr/></p>
2975 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2976 <!-- end of entry -->
2979 <tr class="entry" id="controls_android.control.afTrigger">
2980 <td class="entry_name
2982 android.<wbr/>control.<wbr/>af<wbr/>Trigger
2984 <td class="entry_type">
2985 <span class="entry_type_name entry_type_name_enum">byte</span>
2987 <span class="entry_type_visibility"> [public]</span>
2990 <span class="entry_type_hwlevel">[legacy] </span>
2994 <ul class="entry_type_enum">
2996 <span class="entry_type_enum_name">IDLE</span>
2997 <span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
3000 <span class="entry_type_enum_name">START</span>
3001 <span class="entry_type_enum_notes"><p>Autofocus will trigger now.<wbr/></p></span>
3004 <span class="entry_type_enum_name">CANCEL</span>
3005 <span class="entry_type_enum_notes"><p>Autofocus will return to its initial
3006 state,<wbr/> and cancel any currently active trigger.<wbr/></p></span>
3010 </td> <!-- entry_type -->
3012 <td class="entry_description">
3013 <p>Whether the camera device will trigger autofocus for this request.<wbr/></p>
3016 <td class="entry_units">
3019 <td class="entry_range">
3022 <td class="entry_tags">
3023 <ul class="entry_tags">
3024 <li><a href="#tag_BC">BC</a></li>
3029 <tr class="entries_header">
3030 <th class="th_details" colspan="5">Details</th>
3032 <tr class="entry_cont">
3033 <td class="entry_details" colspan="5">
3034 <p>This entry is normally set to IDLE,<wbr/> or is not
3035 included at all in the request settings.<wbr/></p>
3036 <p>When included and set to START,<wbr/> the camera device will trigger the
3037 autofocus algorithm.<wbr/> If autofocus is disabled,<wbr/> this trigger has no effect.<wbr/></p>
3038 <p>When set to CANCEL,<wbr/> the camera device will cancel any active trigger,<wbr/>
3039 and return to its initial AF state.<wbr/></p>
3040 <p>Generally,<wbr/> applications should set this entry to START or CANCEL for only a
3041 single capture,<wbr/> and then return it to IDLE (or not set at all).<wbr/> Specifying
3042 START for multiple captures in a row means restarting the AF operation over
3043 and over again.<wbr/></p>
3044 <p>See <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a> for what the trigger means for each AF mode.<wbr/></p>
3045 <p>Using the autofocus trigger and the precapture trigger <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>
3046 simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
3047 the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
3048 focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
3049 trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
3050 changes to <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>,<wbr/> for example.<wbr/></p>
3054 <tr class="entries_header">
3055 <th class="th_details" colspan="5">HAL Implementation Details</th>
3057 <tr class="entry_cont">
3058 <td class="entry_details" colspan="5">
3059 <p>The HAL must support triggering the AF trigger while an AE precapture trigger is active
3060 (and vice versa),<wbr/> or at the same time as the AE trigger.<wbr/> It is acceptable for the HAL to
3061 treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
3062 AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
3063 to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
3067 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3068 <!-- end of entry -->
3071 <tr class="entry" id="controls_android.control.awbLock">
3072 <td class="entry_name
3074 android.<wbr/>control.<wbr/>awb<wbr/>Lock
3076 <td class="entry_type">
3077 <span class="entry_type_name entry_type_name_enum">byte</span>
3079 <span class="entry_type_visibility"> [public as boolean]</span>
3082 <span class="entry_type_hwlevel">[legacy] </span>
3086 <ul class="entry_type_enum">
3088 <span class="entry_type_enum_name">OFF</span>
3089 <span class="entry_type_enum_notes"><p>Auto-white balance lock is disabled; the AWB
3090 algorithm is free to update its parameters if in AUTO
3091 mode.<wbr/></p></span>
3094 <span class="entry_type_enum_name">ON</span>
3095 <span class="entry_type_enum_notes"><p>Auto-white balance lock is enabled; the AWB
3096 algorithm will not update its parameters while the lock
3097 is active.<wbr/></p></span>
3101 </td> <!-- entry_type -->
3103 <td class="entry_description">
3104 <p>Whether auto-white balance (AWB) is currently locked to its
3105 latest calculated values.<wbr/></p>
3108 <td class="entry_units">
3111 <td class="entry_range">
3114 <td class="entry_tags">
3115 <ul class="entry_tags">
3116 <li><a href="#tag_BC">BC</a></li>
3121 <tr class="entries_header">
3122 <th class="th_details" colspan="5">Details</th>
3124 <tr class="entry_cont">
3125 <td class="entry_details" colspan="5">
3126 <p>When set to <code>true</code> (ON),<wbr/> the AWB algorithm is locked to its latest parameters,<wbr/>
3127 and will not change color balance settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
3128 <p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
3129 get locked do not necessarily correspond to the settings that were present in the
3130 latest capture result received from the camera device,<wbr/> since additional captures
3131 and AWB updates may have occurred even before the result was sent out.<wbr/> If an
3132 application is switching between automatic and manual control and wishes to eliminate
3133 any flicker during the switch,<wbr/> the following procedure is recommended:</p>
3135 <li>Starting in auto-AWB mode:</li>
3137 <li>Wait for the first result to be output that has the AWB locked</li>
3138 <li>Copy AWB settings from that result into a request,<wbr/> set the request to manual AWB</li>
3139 <li>Submit the capture request,<wbr/> proceed to run manual AWB as desired.<wbr/></li>
3141 <p>Note that AWB lock is only meaningful when
3142 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> is in the AUTO mode; in other modes,<wbr/>
3143 AWB is already fixed to a specific setting.<wbr/></p>
3144 <p>Some LEGACY devices may not support ON; the value is then overridden to OFF.<wbr/></p>
3149 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3150 <!-- end of entry -->
3153 <tr class="entry" id="controls_android.control.awbMode">
3154 <td class="entry_name
3156 android.<wbr/>control.<wbr/>awb<wbr/>Mode
3158 <td class="entry_type">
3159 <span class="entry_type_name entry_type_name_enum">byte</span>
3161 <span class="entry_type_visibility"> [public]</span>
3164 <span class="entry_type_hwlevel">[legacy] </span>
3168 <ul class="entry_type_enum">
3170 <span class="entry_type_enum_name">OFF</span>
3171 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled.<wbr/></p>
3172 <p>The application-selected color transform matrix
3173 (<a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>) and gains
3174 (<a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a>) are used by the camera
3175 device for manual white balance control.<wbr/></p></span>
3178 <span class="entry_type_enum_name">AUTO</span>
3179 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is active.<wbr/></p>
3180 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3181 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3182 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3183 values used by the camera device for the transform and gains
3184 will be available in the capture result for this request.<wbr/></p></span>
3187 <span class="entry_type_enum_name">INCANDESCENT</span>
3188 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3189 the camera device uses incandescent light as the assumed scene
3190 illumination for white balance.<wbr/></p>
3191 <p>While the exact white balance transforms are up to the
3192 camera device,<wbr/> they will approximately match the CIE
3193 standard illuminant A.<wbr/></p>
3194 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3195 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3196 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3197 values used by the camera device for the transform and gains
3198 will be available in the capture result for this request.<wbr/></p></span>
3201 <span class="entry_type_enum_name">FLUORESCENT</span>
3202 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3203 the camera device uses fluorescent light as the assumed scene
3204 illumination for white balance.<wbr/></p>
3205 <p>While the exact white balance transforms are up to the
3206 camera device,<wbr/> they will approximately match the CIE
3207 standard illuminant F2.<wbr/></p>
3208 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3209 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3210 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3211 values used by the camera device for the transform and gains
3212 will be available in the capture result for this request.<wbr/></p></span>
3215 <span class="entry_type_enum_name">WARM_FLUORESCENT</span>
3216 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3217 the camera device uses warm fluorescent light as the assumed scene
3218 illumination for white balance.<wbr/></p>
3219 <p>While the exact white balance transforms are up to the
3220 camera device,<wbr/> they will approximately match the CIE
3221 standard illuminant F4.<wbr/></p>
3222 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3223 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3224 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3225 values used by the camera device for the transform and gains
3226 will be available in the capture result for this request.<wbr/></p></span>
3229 <span class="entry_type_enum_name">DAYLIGHT</span>
3230 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3231 the camera device uses daylight light as the assumed scene
3232 illumination for white balance.<wbr/></p>
3233 <p>While the exact white balance transforms are up to the
3234 camera device,<wbr/> they will approximately match the CIE
3235 standard illuminant D65.<wbr/></p>
3236 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3237 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3238 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3239 values used by the camera device for the transform and gains
3240 will be available in the capture result for this request.<wbr/></p></span>
3243 <span class="entry_type_enum_name">CLOUDY_DAYLIGHT</span>
3244 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3245 the camera device uses cloudy daylight light as the assumed scene
3246 illumination for white balance.<wbr/></p>
3247 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3248 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3249 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3250 values used by the camera device for the transform and gains
3251 will be available in the capture result for this request.<wbr/></p></span>
3254 <span class="entry_type_enum_name">TWILIGHT</span>
3255 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3256 the camera device uses twilight light as the assumed scene
3257 illumination for white balance.<wbr/></p>
3258 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3259 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3260 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3261 values used by the camera device for the transform and gains
3262 will be available in the capture result for this request.<wbr/></p></span>
3265 <span class="entry_type_enum_name">SHADE</span>
3266 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3267 the camera device uses shade light as the assumed scene
3268 illumination for white balance.<wbr/></p>
3269 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3270 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3271 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3272 values used by the camera device for the transform and gains
3273 will be available in the capture result for this request.<wbr/></p></span>
3277 </td> <!-- entry_type -->
3279 <td class="entry_description">
3280 <p>Whether auto-white balance (AWB) is currently setting the color
3281 transform fields,<wbr/> and what its illumination target
3285 <td class="entry_units">
3288 <td class="entry_range">
3289 <p><a href="#static_android.control.awbAvailableModes">android.<wbr/>control.<wbr/>awb<wbr/>Available<wbr/>Modes</a></p>
3292 <td class="entry_tags">
3293 <ul class="entry_tags">
3294 <li><a href="#tag_BC">BC</a></li>
3299 <tr class="entries_header">
3300 <th class="th_details" colspan="5">Details</th>
3302 <tr class="entry_cont">
3303 <td class="entry_details" colspan="5">
3304 <p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is AUTO.<wbr/></p>
3305 <p>When set to the ON mode,<wbr/> the camera device's auto-white balance
3306 routine is enabled,<wbr/> overriding the application's selected
3307 <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>,<wbr/> <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
3308 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a>.<wbr/> Note that when <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>
3309 is OFF,<wbr/> the behavior of AWB is device dependent.<wbr/> It is recommened to
3310 also set AWB mode to OFF or lock AWB by using <a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> before
3311 setting AE mode to OFF.<wbr/></p>
3312 <p>When set to the OFF mode,<wbr/> the camera device's auto-white balance
3313 routine is disabled.<wbr/> The application manually controls the white
3314 balance by <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>,<wbr/> <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a>
3315 and <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a>.<wbr/></p>
3316 <p>When set to any other modes,<wbr/> the camera device's auto-white
3317 balance routine is disabled.<wbr/> The camera device uses each
3318 particular illumination target for white balance
3319 adjustment.<wbr/> The application's values for
3320 <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>,<wbr/>
3321 <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
3322 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> are ignored.<wbr/></p>
3327 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3328 <!-- end of entry -->
3331 <tr class="entry" id="controls_android.control.awbRegions">
3332 <td class="entry_name
3334 android.<wbr/>control.<wbr/>awb<wbr/>Regions
3336 <td class="entry_type">
3337 <span class="entry_type_name">int32</span>
3338 <span class="entry_type_container">x</span>
3340 <span class="entry_type_array">
3343 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
3350 </td> <!-- entry_type -->
3352 <td class="entry_description">
3353 <p>List of metering areas to use for auto-white-balance illuminant
3354 estimation.<wbr/></p>
3357 <td class="entry_units">
3358 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
3361 <td class="entry_range">
3362 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
3363 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
3366 <td class="entry_tags">
3367 <ul class="entry_tags">
3368 <li><a href="#tag_BC">BC</a></li>
3373 <tr class="entries_header">
3374 <th class="th_details" colspan="5">Details</th>
3376 <tr class="entry_cont">
3377 <td class="entry_details" colspan="5">
3378 <p>Not available if <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a> is 0.<wbr/>
3379 Otherwise will always be present.<wbr/></p>
3380 <p>The maximum number of regions supported by the device is determined by the value
3381 of <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a>.<wbr/></p>
3382 <p>The coordinate system is based on the active pixel array,<wbr/>
3383 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
3384 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
3385 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
3386 bottom-right pixel in the active pixel array.<wbr/></p>
3387 <p>The weight must range from 0 to 1000,<wbr/> and represents a weight
3388 for every pixel in the area.<wbr/> This means that a large metering area
3389 with the same weight as a smaller area will have more effect in
3390 the metering result.<wbr/> Metering areas can partially overlap and the
3391 camera device will add the weights in the overlap region.<wbr/></p>
3392 <p>The weights are relative to weights of other white balance metering regions,<wbr/> so if
3393 only one region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with
3394 0 weight is ignored.<wbr/></p>
3395 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
3396 camera device.<wbr/></p>
3397 <p>If the metering region is outside the used <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> returned in
3398 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
3399 region and output only the intersection rectangle as the metering region in the result
3400 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
3401 not reported in the result metadata.<wbr/></p>
3405 <tr class="entries_header">
3406 <th class="th_details" colspan="5">HAL Implementation Details</th>
3408 <tr class="entry_cont">
3409 <td class="entry_details" colspan="5">
3410 <p>The HAL level representation of MeteringRectangle[] is a
3411 int[5 * area_<wbr/>count].<wbr/>
3412 Every five elements represent a metering region of
3413 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
3414 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
3415 exclusive on xmax and ymax.<wbr/></p>
3419 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3420 <!-- end of entry -->
3423 <tr class="entry" id="controls_android.control.captureIntent">
3424 <td class="entry_name
3426 android.<wbr/>control.<wbr/>capture<wbr/>Intent
3428 <td class="entry_type">
3429 <span class="entry_type_name entry_type_name_enum">byte</span>
3431 <span class="entry_type_visibility"> [public]</span>
3434 <span class="entry_type_hwlevel">[legacy] </span>
3438 <ul class="entry_type_enum">
3440 <span class="entry_type_enum_name">CUSTOM</span>
3441 <span class="entry_type_enum_notes"><p>The goal of this request doesn't fall into the other
3442 categories.<wbr/> The camera device will default to preview-like
3443 behavior.<wbr/></p></span>
3446 <span class="entry_type_enum_name">PREVIEW</span>
3447 <span class="entry_type_enum_notes"><p>This request is for a preview-like use case.<wbr/></p>
3448 <p>The precapture trigger may be used to start off a metering
3449 w/<wbr/>flash sequence.<wbr/></p></span>
3452 <span class="entry_type_enum_name">STILL_CAPTURE</span>
3453 <span class="entry_type_enum_notes"><p>This request is for a still capture-type
3455 <p>If the flash unit is under automatic control,<wbr/> it may fire as needed.<wbr/></p></span>
3458 <span class="entry_type_enum_name">VIDEO_RECORD</span>
3459 <span class="entry_type_enum_notes"><p>This request is for a video recording
3460 use case.<wbr/></p></span>
3463 <span class="entry_type_enum_name">VIDEO_SNAPSHOT</span>
3464 <span class="entry_type_enum_notes"><p>This request is for a video snapshot (still
3465 image while recording video) use case.<wbr/></p>
3466 <p>The camera device should take the highest-quality image
3467 possible (given the other settings) without disrupting the
3468 frame rate of video recording.<wbr/> </p></span>
3471 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
3472 <span class="entry_type_enum_notes"><p>This request is for a ZSL usecase; the
3473 application will stream full-resolution images and
3474 reprocess one or several later for a final
3475 capture.<wbr/></p></span>
3478 <span class="entry_type_enum_name">MANUAL</span>
3479 <span class="entry_type_enum_notes"><p>This request is for manual capture use case where
3480 the applications want to directly control the capture parameters.<wbr/></p>
3481 <p>For example,<wbr/> the application may wish to manually control
3482 <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>,<wbr/> etc.<wbr/></p></span>
3486 </td> <!-- entry_type -->
3488 <td class="entry_description">
3489 <p>Information to the camera device 3A (auto-exposure,<wbr/>
3490 auto-focus,<wbr/> auto-white balance) routines about the purpose
3491 of this capture,<wbr/> to help the camera device to decide optimal 3A
3495 <td class="entry_units">
3498 <td class="entry_range">
3501 <td class="entry_tags">
3502 <ul class="entry_tags">
3503 <li><a href="#tag_BC">BC</a></li>
3508 <tr class="entries_header">
3509 <th class="th_details" colspan="5">Details</th>
3511 <tr class="entry_cont">
3512 <td class="entry_details" colspan="5">
3513 <p>This control (except for MANUAL) is only effective if
3514 <code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> != OFF</code> and any 3A routine is active.<wbr/></p>
3515 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG will be supported if <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>
3516 contains PRIVATE_<wbr/>REPROCESSING or YUV_<wbr/>REPROCESSING.<wbr/> MANUAL will be supported if
3517 <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains MANUAL_<wbr/>SENSOR.<wbr/> Other intent values are
3518 always supported.<wbr/></p>
3523 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3524 <!-- end of entry -->
3527 <tr class="entry" id="controls_android.control.effectMode">
3528 <td class="entry_name
3530 android.<wbr/>control.<wbr/>effect<wbr/>Mode
3532 <td class="entry_type">
3533 <span class="entry_type_name entry_type_name_enum">byte</span>
3535 <span class="entry_type_visibility"> [public]</span>
3538 <span class="entry_type_hwlevel">[legacy] </span>
3542 <ul class="entry_type_enum">
3544 <span class="entry_type_enum_name">OFF</span>
3545 <span class="entry_type_enum_notes"><p>No color effect will be applied.<wbr/></p></span>
3548 <span class="entry_type_enum_name">MONO</span>
3549 <span class="entry_type_enum_optional">[optional]</span>
3550 <span class="entry_type_enum_notes"><p>A "monocolor" effect where the image is mapped into
3551 a single color.<wbr/></p>
3552 <p>This will typically be grayscale.<wbr/></p></span>
3555 <span class="entry_type_enum_name">NEGATIVE</span>
3556 <span class="entry_type_enum_optional">[optional]</span>
3557 <span class="entry_type_enum_notes"><p>A "photo-negative" effect where the image's colors
3558 are inverted.<wbr/></p></span>
3561 <span class="entry_type_enum_name">SOLARIZE</span>
3562 <span class="entry_type_enum_optional">[optional]</span>
3563 <span class="entry_type_enum_notes"><p>A "solarisation" effect (Sabattier effect) where the
3564 image is wholly or partially reversed in
3565 tone.<wbr/></p></span>
3568 <span class="entry_type_enum_name">SEPIA</span>
3569 <span class="entry_type_enum_optional">[optional]</span>
3570 <span class="entry_type_enum_notes"><p>A "sepia" effect where the image is mapped into warm
3571 gray,<wbr/> red,<wbr/> and brown tones.<wbr/></p></span>
3574 <span class="entry_type_enum_name">POSTERIZE</span>
3575 <span class="entry_type_enum_optional">[optional]</span>
3576 <span class="entry_type_enum_notes"><p>A "posterization" effect where the image uses
3577 discrete regions of tone rather than a continuous
3578 gradient of tones.<wbr/></p></span>
3581 <span class="entry_type_enum_name">WHITEBOARD</span>
3582 <span class="entry_type_enum_optional">[optional]</span>
3583 <span class="entry_type_enum_notes"><p>A "whiteboard" effect where the image is typically displayed
3584 as regions of white,<wbr/> with black or grey details.<wbr/></p></span>
3587 <span class="entry_type_enum_name">BLACKBOARD</span>
3588 <span class="entry_type_enum_optional">[optional]</span>
3589 <span class="entry_type_enum_notes"><p>A "blackboard" effect where the image is typically displayed
3590 as regions of black,<wbr/> with white or grey details.<wbr/></p></span>
3593 <span class="entry_type_enum_name">AQUA</span>
3594 <span class="entry_type_enum_optional">[optional]</span>
3595 <span class="entry_type_enum_notes"><p>An "aqua" effect where a blue hue is added to the image.<wbr/></p></span>
3599 </td> <!-- entry_type -->
3601 <td class="entry_description">
3602 <p>A special color effect to apply.<wbr/></p>
3605 <td class="entry_units">
3608 <td class="entry_range">
3609 <p><a href="#static_android.control.availableEffects">android.<wbr/>control.<wbr/>available<wbr/>Effects</a></p>
3612 <td class="entry_tags">
3613 <ul class="entry_tags">
3614 <li><a href="#tag_BC">BC</a></li>
3619 <tr class="entries_header">
3620 <th class="th_details" colspan="5">Details</th>
3622 <tr class="entry_cont">
3623 <td class="entry_details" colspan="5">
3624 <p>When this mode is set,<wbr/> a color effect will be applied
3625 to images produced by the camera device.<wbr/> The interpretation
3626 and implementation of these color effects is left to the
3627 implementor of the camera device,<wbr/> and should not be
3628 depended on to be consistent (or present) across all
3634 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3635 <!-- end of entry -->
3638 <tr class="entry" id="controls_android.control.mode">
3639 <td class="entry_name
3641 android.<wbr/>control.<wbr/>mode
3643 <td class="entry_type">
3644 <span class="entry_type_name entry_type_name_enum">byte</span>
3646 <span class="entry_type_visibility"> [public]</span>
3649 <span class="entry_type_hwlevel">[legacy] </span>
3653 <ul class="entry_type_enum">
3655 <span class="entry_type_enum_name">OFF</span>
3656 <span class="entry_type_enum_notes"><p>Full application control of pipeline.<wbr/></p>
3657 <p>All control by the device's metering and focusing (3A)
3658 routines is disabled,<wbr/> and no other settings in
3659 android.<wbr/>control.<wbr/>* have any effect,<wbr/> except that
3660 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> may be used by the camera
3661 device to select post-processing values for processing
3662 blocks that do not allow for manual control,<wbr/> or are not
3663 exposed by the camera API.<wbr/></p>
3664 <p>However,<wbr/> the camera device's 3A routines may continue to
3665 collect statistics and update their internal state so that
3666 when control is switched to AUTO mode,<wbr/> good control values
3667 can be immediately applied.<wbr/></p></span>
3670 <span class="entry_type_enum_name">AUTO</span>
3671 <span class="entry_type_enum_notes"><p>Use settings for each individual 3A routine.<wbr/></p>
3672 <p>Manual control of capture parameters is disabled.<wbr/> All
3673 controls in android.<wbr/>control.<wbr/>* besides sceneMode take
3674 effect.<wbr/></p></span>
3677 <span class="entry_type_enum_name">USE_SCENE_MODE</span>
3678 <span class="entry_type_enum_optional">[optional]</span>
3679 <span class="entry_type_enum_notes"><p>Use a specific scene mode.<wbr/></p>
3680 <p>Enabling this disables control.<wbr/>aeMode,<wbr/> control.<wbr/>awbMode and
3681 control.<wbr/>afMode controls; the camera device will ignore
3682 those settings while USE_<wbr/>SCENE_<wbr/>MODE is active (except for
3683 FACE_<wbr/>PRIORITY scene mode).<wbr/> Other control entries are still active.<wbr/>
3684 This setting can only be used if scene mode is supported (i.<wbr/>e.<wbr/>
3685 <a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a>
3686 contain some modes other than DISABLED).<wbr/></p></span>
3689 <span class="entry_type_enum_name">OFF_KEEP_STATE</span>
3690 <span class="entry_type_enum_optional">[optional]</span>
3691 <span class="entry_type_enum_notes"><p>Same as OFF mode,<wbr/> except that this capture will not be
3692 used by camera device background auto-exposure,<wbr/> auto-white balance and
3693 auto-focus algorithms (3A) to update their statistics.<wbr/></p>
3694 <p>Specifically,<wbr/> the 3A routines are locked to the last
3695 values set from a request with AUTO,<wbr/> OFF,<wbr/> or
3696 USE_<wbr/>SCENE_<wbr/>MODE,<wbr/> and any statistics or state updates
3697 collected from manual captures with OFF_<wbr/>KEEP_<wbr/>STATE will be
3698 discarded by the camera device.<wbr/></p></span>
3702 </td> <!-- entry_type -->
3704 <td class="entry_description">
3705 <p>Overall mode of 3A (auto-exposure,<wbr/> auto-white-balance,<wbr/> auto-focus) control
3709 <td class="entry_units">
3712 <td class="entry_range">
3713 <p><a href="#static_android.control.availableModes">android.<wbr/>control.<wbr/>available<wbr/>Modes</a></p>
3716 <td class="entry_tags">
3717 <ul class="entry_tags">
3718 <li><a href="#tag_BC">BC</a></li>
3723 <tr class="entries_header">
3724 <th class="th_details" colspan="5">Details</th>
3726 <tr class="entry_cont">
3727 <td class="entry_details" colspan="5">
3728 <p>This is a top-level 3A control switch.<wbr/> When set to OFF,<wbr/> all 3A control
3729 by the camera device is disabled.<wbr/> The application must set the fields for
3730 capture parameters itself.<wbr/></p>
3731 <p>When set to AUTO,<wbr/> the individual algorithm controls in
3732 android.<wbr/>control.<wbr/>* are in effect,<wbr/> such as <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>.<wbr/></p>
3733 <p>When set to USE_<wbr/>SCENE_<wbr/>MODE,<wbr/> the individual controls in
3734 android.<wbr/>control.<wbr/>* are mostly disabled,<wbr/> and the camera device implements
3735 one of the scene mode settings (such as ACTION,<wbr/> SUNSET,<wbr/> or PARTY)
3736 as it wishes.<wbr/> The camera device scene mode 3A settings are provided by
3737 <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">capture results</a>.<wbr/></p>
3738 <p>When set to OFF_<wbr/>KEEP_<wbr/>STATE,<wbr/> it is similar to OFF mode,<wbr/> the only difference
3739 is that this frame will not be used by camera device background 3A statistics
3740 update,<wbr/> as if this frame is never captured.<wbr/> This mode can be used in the scenario
3741 where the application doesn't want a 3A manual control capture to affect
3742 the subsequent auto 3A capture results.<wbr/></p>
3747 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3748 <!-- end of entry -->
3751 <tr class="entry" id="controls_android.control.sceneMode">
3752 <td class="entry_name
3754 android.<wbr/>control.<wbr/>scene<wbr/>Mode
3756 <td class="entry_type">
3757 <span class="entry_type_name entry_type_name_enum">byte</span>
3759 <span class="entry_type_visibility"> [public]</span>
3762 <span class="entry_type_hwlevel">[legacy] </span>
3766 <ul class="entry_type_enum">
3768 <span class="entry_type_enum_name">DISABLED</span>
3769 <span class="entry_type_enum_value">0</span>
3770 <span class="entry_type_enum_notes"><p>Indicates that no scene modes are set for a given capture request.<wbr/></p></span>
3773 <span class="entry_type_enum_name">FACE_PRIORITY</span>
3774 <span class="entry_type_enum_notes"><p>If face detection support exists,<wbr/> use face
3775 detection data for auto-focus,<wbr/> auto-white balance,<wbr/> and
3776 auto-exposure routines.<wbr/></p>
3777 <p>If face detection statistics are disabled
3778 (i.<wbr/>e.<wbr/> <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> is set to OFF),<wbr/>
3779 this should still operate correctly (but will not return
3780 face detection statistics to the framework).<wbr/></p>
3781 <p>Unlike the other scene modes,<wbr/> <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
3782 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>
3783 remain active when FACE_<wbr/>PRIORITY is set.<wbr/></p></span>
3786 <span class="entry_type_enum_name">ACTION</span>
3787 <span class="entry_type_enum_optional">[optional]</span>
3788 <span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving objects.<wbr/></p>
3789 <p>Similar to SPORTS.<wbr/></p></span>
3792 <span class="entry_type_enum_name">PORTRAIT</span>
3793 <span class="entry_type_enum_optional">[optional]</span>
3794 <span class="entry_type_enum_notes"><p>Optimized for still photos of people.<wbr/></p></span>
3797 <span class="entry_type_enum_name">LANDSCAPE</span>
3798 <span class="entry_type_enum_optional">[optional]</span>
3799 <span class="entry_type_enum_notes"><p>Optimized for photos of distant macroscopic objects.<wbr/></p></span>
3802 <span class="entry_type_enum_name">NIGHT</span>
3803 <span class="entry_type_enum_optional">[optional]</span>
3804 <span class="entry_type_enum_notes"><p>Optimized for low-light settings.<wbr/></p></span>
3807 <span class="entry_type_enum_name">NIGHT_PORTRAIT</span>
3808 <span class="entry_type_enum_optional">[optional]</span>
3809 <span class="entry_type_enum_notes"><p>Optimized for still photos of people in low-light
3810 settings.<wbr/></p></span>
3813 <span class="entry_type_enum_name">THEATRE</span>
3814 <span class="entry_type_enum_optional">[optional]</span>
3815 <span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings where flash must
3816 remain off.<wbr/></p></span>
3819 <span class="entry_type_enum_name">BEACH</span>
3820 <span class="entry_type_enum_optional">[optional]</span>
3821 <span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor beach settings.<wbr/></p></span>
3824 <span class="entry_type_enum_name">SNOW</span>
3825 <span class="entry_type_enum_optional">[optional]</span>
3826 <span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor settings containing snow.<wbr/></p></span>
3829 <span class="entry_type_enum_name">SUNSET</span>
3830 <span class="entry_type_enum_optional">[optional]</span>
3831 <span class="entry_type_enum_notes"><p>Optimized for scenes of the setting sun.<wbr/></p></span>
3834 <span class="entry_type_enum_name">STEADYPHOTO</span>
3835 <span class="entry_type_enum_optional">[optional]</span>
3836 <span class="entry_type_enum_notes"><p>Optimized to avoid blurry photos due to small amounts of
3837 device motion (for example: due to hand shake).<wbr/></p></span>
3840 <span class="entry_type_enum_name">FIREWORKS</span>
3841 <span class="entry_type_enum_optional">[optional]</span>
3842 <span class="entry_type_enum_notes"><p>Optimized for nighttime photos of fireworks.<wbr/></p></span>
3845 <span class="entry_type_enum_name">SPORTS</span>
3846 <span class="entry_type_enum_optional">[optional]</span>
3847 <span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving people.<wbr/></p>
3848 <p>Similar to ACTION.<wbr/></p></span>
3851 <span class="entry_type_enum_name">PARTY</span>
3852 <span class="entry_type_enum_optional">[optional]</span>
3853 <span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings with multiple moving
3854 people.<wbr/></p></span>
3857 <span class="entry_type_enum_name">CANDLELIGHT</span>
3858 <span class="entry_type_enum_optional">[optional]</span>
3859 <span class="entry_type_enum_notes"><p>Optimized for dim settings where the main light source
3860 is a flame.<wbr/></p></span>
3863 <span class="entry_type_enum_name">BARCODE</span>
3864 <span class="entry_type_enum_optional">[optional]</span>
3865 <span class="entry_type_enum_notes"><p>Optimized for accurately capturing a photo of barcode
3866 for use by camera applications that wish to read the
3867 barcode value.<wbr/></p></span>
3870 <span class="entry_type_enum_name">HIGH_SPEED_VIDEO</span>
3871 <span class="entry_type_enum_deprecated">[deprecated]</span>
3872 <span class="entry_type_enum_optional">[optional]</span>
3873 <span class="entry_type_enum_notes"><p>This is deprecated,<wbr/> please use <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>
3874 and <a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>
3875 for high speed video recording.<wbr/></p>
3876 <p>Optimized for high speed video recording (frame rate >=60fps) use case.<wbr/></p>
3877 <p>The supported high speed video sizes and fps ranges are specified in
3878 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/> To get desired
3879 output frame rates,<wbr/> the application is only allowed to select video size
3880 and fps range combinations listed in this static metadata.<wbr/> The fps range
3881 can be control via <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a>.<wbr/></p>
3882 <p>In this mode,<wbr/> the camera device will override aeMode,<wbr/> awbMode,<wbr/> and afMode to
3883 ON,<wbr/> ON,<wbr/> and CONTINUOUS_<wbr/>VIDEO,<wbr/> respectively.<wbr/> All post-processing block mode
3884 controls will be overridden to be FAST.<wbr/> Therefore,<wbr/> no manual control of capture
3885 and post-processing parameters is possible.<wbr/> All other controls operate the
3886 same as when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == AUTO.<wbr/> This means that all other
3887 android.<wbr/>control.<wbr/>* fields continue to work,<wbr/> such as</p>
3889 <li><a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a></li>
3890 <li><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a></li>
3891 <li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
3892 <li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
3893 <li><a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></li>
3894 <li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
3895 <li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
3896 <li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
3897 <li><a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a></li>
3898 <li><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a></li>
3900 <p>Outside of android.<wbr/>control.<wbr/>*,<wbr/> the following controls will work:</p>
3902 <li><a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> (automatic flash for still capture will not work since aeMode is ON)</li>
3903 <li><a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> (if it is supported)</li>
3904 <li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
3905 <li><a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a></li>
3907 <p>For high speed recording use case,<wbr/> the actual maximum supported frame rate may
3908 be lower than what camera can output,<wbr/> depending on the destination Surfaces for
3909 the image data.<wbr/> For example,<wbr/> if the destination surface is from video encoder,<wbr/>
3910 the application need check if the video encoder is capable of supporting the
3911 high frame rate for a given video size,<wbr/> or it will end up with lower recording
3912 frame rate.<wbr/> If the destination surface is from preview window,<wbr/> the preview frame
3913 rate will be bounded by the screen refresh rate.<wbr/></p>
3914 <p>The camera device will only support up to 2 output high speed streams
3915 (processed non-stalling format defined in <a href="#static_android.request.maxNumOutputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Streams</a>)
3916 in this mode.<wbr/> This control will be effective only if all of below conditions are true:</p>
3918 <li>The application created no more than maxNumHighSpeedStreams processed non-stalling
3919 format output streams,<wbr/> where maxNumHighSpeedStreams is calculated as
3920 min(2,<wbr/> <a href="#static_android.request.maxNumOutputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Streams</a>[Processed (but not-stalling)]).<wbr/></li>
3921 <li>The stream sizes are selected from the sizes reported by
3922 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/></li>
3923 <li>No processed non-stalling or raw streams are configured.<wbr/></li>
3925 <p>When above conditions are NOT satistied,<wbr/> the controls of this mode and
3926 <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a> will be ignored by the camera device,<wbr/>
3927 the camera device will fall back to <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> <code>==</code> AUTO,<wbr/>
3928 and the returned capture result metadata will give the fps range choosen
3929 by the camera device.<wbr/></p>
3930 <p>Switching into or out of this mode may trigger some camera ISP/<wbr/>sensor
3931 reconfigurations,<wbr/> which may introduce extra latency.<wbr/> It is recommended that
3932 the application avoids unnecessary scene mode switch as much as possible.<wbr/></p></span>
3935 <span class="entry_type_enum_name">HDR</span>
3936 <span class="entry_type_enum_optional">[optional]</span>
3937 <span class="entry_type_enum_notes"><p>Turn on a device-specific high dynamic range (HDR) mode.<wbr/></p>
3938 <p>In this scene mode,<wbr/> the camera device captures images
3939 that keep a larger range of scene illumination levels
3940 visible in the final image.<wbr/> For example,<wbr/> when taking a
3941 picture of a object in front of a bright window,<wbr/> both
3942 the object and the scene through the window may be
3943 visible when using HDR mode,<wbr/> while in normal AUTO mode,<wbr/>
3944 one or the other may be poorly exposed.<wbr/> As a tradeoff,<wbr/>
3945 HDR mode generally takes much longer to capture a single
3946 image,<wbr/> has no user control,<wbr/> and may have other artifacts
3947 depending on the HDR method used.<wbr/></p>
3948 <p>Therefore,<wbr/> HDR captures operate at a much slower rate
3949 than regular captures.<wbr/></p>
3950 <p>In this mode,<wbr/> on LIMITED or FULL devices,<wbr/> when a request
3951 is made with a <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> of
3952 STILL_<wbr/>CAPTURE,<wbr/> the camera device will capture an image
3953 using a high dynamic range capture technique.<wbr/> On LEGACY
3954 devices,<wbr/> captures that target a JPEG-format output will
3955 be captured with HDR,<wbr/> and the capture intent is not
3957 <p>The HDR capture may involve the device capturing a burst
3958 of images internally and combining them into one,<wbr/> or it
3959 may involve the device using specialized high dynamic
3960 range capture hardware.<wbr/> In all cases,<wbr/> a single image is
3961 produced in response to a capture request submitted
3962 while in HDR mode.<wbr/></p>
3963 <p>Since substantial post-processing is generally needed to
3964 produce an HDR image,<wbr/> only YUV,<wbr/> PRIVATE,<wbr/> and JPEG
3965 outputs are supported for LIMITED/<wbr/>FULL device HDR
3966 captures,<wbr/> and only JPEG outputs are supported for LEGACY
3967 HDR captures.<wbr/> Using a RAW output for HDR capture is not
3968 supported.<wbr/></p>
3969 <p>Some devices may also support always-on HDR,<wbr/> which
3970 applies HDR processing at full frame rate.<wbr/> For these
3971 devices,<wbr/> intents other than STILL_<wbr/>CAPTURE will also
3972 produce an HDR output with no frame rate impact compared
3973 to normal operation,<wbr/> though the quality may be lower
3974 than for STILL_<wbr/>CAPTURE intents.<wbr/></p>
3975 <p>If SCENE_<wbr/>MODE_<wbr/>HDR is used with unsupported output types
3976 or capture intents,<wbr/> the images captured will be as if
3977 the SCENE_<wbr/>MODE was not enabled at all.<wbr/></p></span>
3980 <span class="entry_type_enum_name">FACE_PRIORITY_LOW_LIGHT</span>
3981 <span class="entry_type_enum_optional">[optional]</span>
3982 <span class="entry_type_enum_hidden">[hidden]</span>
3983 <span class="entry_type_enum_notes"><p>Same as FACE_<wbr/>PRIORITY scene mode,<wbr/> except that the camera
3984 device will choose higher sensitivity values (<a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>)
3985 under low light conditions.<wbr/></p>
3986 <p>The camera device may be tuned to expose the images in a reduced
3987 sensitivity range to produce the best quality images.<wbr/> For example,<wbr/>
3988 if the <a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a> gives range of [100,<wbr/> 1600],<wbr/>
3989 the camera device auto-exposure routine tuning process may limit the actual
3990 exposure sensitivity range to [100,<wbr/> 1200] to ensure that the noise level isn't
3991 exessive in order to preserve the image quality.<wbr/> Under this situation,<wbr/> the image under
3992 low light may be under-exposed when the sensor max exposure time (bounded by the
3993 <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a> when <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is one of the
3994 ON_<wbr/>* modes) and effective max sensitivity are reached.<wbr/> This scene mode allows the
3995 camera device auto-exposure routine to increase the sensitivity up to the max
3996 sensitivity specified by <a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a> when the scene is too
3997 dark and the max exposure time is reached.<wbr/> The captured images may be noisier
3998 compared with the images captured in normal FACE_<wbr/>PRIORITY mode; therefore,<wbr/> it is
3999 recommended that the application only use this scene mode when it is capable of
4000 reducing the noise level of the captured images.<wbr/></p>
4001 <p>Unlike the other scene modes,<wbr/> <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
4002 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>
4003 remain active when FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT is set.<wbr/></p></span>
4006 <span class="entry_type_enum_name">DEVICE_CUSTOM_START</span>
4007 <span class="entry_type_enum_optional">[optional]</span>
4008 <span class="entry_type_enum_hidden">[hidden]</span>
4009 <span class="entry_type_enum_value">100</span>
4010 <span class="entry_type_enum_notes"><p>Scene mode values within the range of
4011 <code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
4012 customized scene modes.<wbr/></p></span>
4015 <span class="entry_type_enum_name">DEVICE_CUSTOM_END</span>
4016 <span class="entry_type_enum_optional">[optional]</span>
4017 <span class="entry_type_enum_hidden">[hidden]</span>
4018 <span class="entry_type_enum_value">127</span>
4019 <span class="entry_type_enum_notes"><p>Scene mode values within the range of
4020 <code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
4021 customized scene modes.<wbr/></p></span>
4025 </td> <!-- entry_type -->
4027 <td class="entry_description">
4028 <p>Control for which scene mode is currently active.<wbr/></p>
4031 <td class="entry_units">
4034 <td class="entry_range">
4035 <p><a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a></p>
4038 <td class="entry_tags">
4039 <ul class="entry_tags">
4040 <li><a href="#tag_BC">BC</a></li>
4045 <tr class="entries_header">
4046 <th class="th_details" colspan="5">Details</th>
4048 <tr class="entry_cont">
4049 <td class="entry_details" colspan="5">
4050 <p>Scene modes are custom camera modes optimized for a certain set of conditions and
4051 capture settings.<wbr/></p>
4052 <p>This is the mode that that is active when
4053 <code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == USE_<wbr/>SCENE_<wbr/>MODE</code>.<wbr/> Aside from FACE_<wbr/>PRIORITY,<wbr/> these modes will
4054 disable <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/> <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>
4055 while in use.<wbr/></p>
4056 <p>The interpretation and implementation of these scene modes is left
4057 to the implementor of the camera device.<wbr/> Their behavior will not be
4058 consistent across all devices,<wbr/> and any given device may only implement
4059 a subset of these modes.<wbr/></p>
4063 <tr class="entries_header">
4064 <th class="th_details" colspan="5">HAL Implementation Details</th>
4066 <tr class="entry_cont">
4067 <td class="entry_details" colspan="5">
4068 <p>HAL implementations that include scene modes are expected to provide
4069 the per-scene settings to use for <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
4070 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> in
4071 <a href="#static_android.control.sceneModeOverrides">android.<wbr/>control.<wbr/>scene<wbr/>Mode<wbr/>Overrides</a>.<wbr/></p>
4072 <p>For HIGH_<wbr/>SPEED_<wbr/>VIDEO mode,<wbr/> if it is included in <a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a>,<wbr/>
4073 the HAL must list supported video size and fps range in
4074 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/> For a given size,<wbr/> e.<wbr/>g.<wbr/>
4075 1280x720,<wbr/> if the HAL has two different sensor configurations for normal streaming
4076 mode and high speed streaming,<wbr/> when this scene mode is set/<wbr/>reset in a sequence of capture
4077 requests,<wbr/> the HAL may have to switch between different sensor modes.<wbr/>
4078 This mode is deprecated in HAL3.<wbr/>3,<wbr/> to support high speed video recording,<wbr/> please implement
4079 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a> and CONSTRAINED_<wbr/>HIGH_<wbr/>SPEED_<wbr/>VIDEO
4080 capbility defined in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
4084 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4085 <!-- end of entry -->
4088 <tr class="entry" id="controls_android.control.videoStabilizationMode">
4089 <td class="entry_name
4091 android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode
4093 <td class="entry_type">
4094 <span class="entry_type_name entry_type_name_enum">byte</span>
4096 <span class="entry_type_visibility"> [public]</span>
4099 <span class="entry_type_hwlevel">[legacy] </span>
4103 <ul class="entry_type_enum">
4105 <span class="entry_type_enum_name">OFF</span>
4106 <span class="entry_type_enum_notes"><p>Video stabilization is disabled.<wbr/></p></span>
4109 <span class="entry_type_enum_name">ON</span>
4110 <span class="entry_type_enum_notes"><p>Video stabilization is enabled.<wbr/></p></span>
4114 </td> <!-- entry_type -->
4116 <td class="entry_description">
4117 <p>Whether video stabilization is
4121 <td class="entry_units">
4124 <td class="entry_range">
4127 <td class="entry_tags">
4128 <ul class="entry_tags">
4129 <li><a href="#tag_BC">BC</a></li>
4134 <tr class="entries_header">
4135 <th class="th_details" colspan="5">Details</th>
4137 <tr class="entry_cont">
4138 <td class="entry_details" colspan="5">
4139 <p>Video stabilization automatically warps images from
4140 the camera in order to stabilize motion between consecutive frames.<wbr/></p>
4141 <p>If enabled,<wbr/> video stabilization can modify the
4142 <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to keep the video stream stabilized.<wbr/></p>
4143 <p>Switching between different video stabilization modes may take several
4144 frames to initialize,<wbr/> the camera device will report the current mode
4145 in capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/>
4146 the video stabilization modes in the first several capture results may
4147 still be "OFF",<wbr/> and it will become "ON" when the initialization is
4149 <p>In addition,<wbr/> not all recording sizes or frame rates may be supported for
4150 stabilization by a device that reports stabilization support.<wbr/> It is guaranteed
4151 that an output targeting a MediaRecorder or MediaCodec will be stabilized if
4152 the recording resolution is less than or equal to 1920 x 1080 (width less than
4153 or equal to 1920,<wbr/> height less than or equal to 1080),<wbr/> and the recording
4154 frame rate is less than or equal to 30fps.<wbr/> At other sizes,<wbr/> the CaptureResult
4155 <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a> field will return
4156 OFF if the recording output is not stabilized,<wbr/> or if there are no output
4157 Surface types that can be stabilized.<wbr/></p>
4158 <p>If a camera device supports both this mode and OIS
4159 (<a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may
4160 produce undesirable interaction,<wbr/> so it is recommended not to enable
4161 both at the same time.<wbr/></p>
4166 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4167 <!-- end of entry -->
4170 <tr class="entry" id="controls_android.control.postRawSensitivityBoost">
4171 <td class="entry_name
4173 android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost
4175 <td class="entry_type">
4176 <span class="entry_type_name">int32</span>
4178 <span class="entry_type_visibility"> [public]</span>
4185 </td> <!-- entry_type -->
4187 <td class="entry_description">
4188 <p>The amount of additional sensitivity boost applied to output images
4189 after RAW sensor data is captured.<wbr/></p>
4192 <td class="entry_units">
4193 ISO arithmetic units,<wbr/> the same as android.<wbr/>sensor.<wbr/>sensitivity
4196 <td class="entry_range">
4197 <p><a href="#static_android.control.postRawSensitivityBoostRange">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost<wbr/>Range</a></p>
4200 <td class="entry_tags">
4204 <tr class="entries_header">
4205 <th class="th_details" colspan="5">Details</th>
4207 <tr class="entry_cont">
4208 <td class="entry_details" colspan="5">
4209 <p>Some camera devices support additional digital sensitivity boosting in the
4210 camera processing pipeline after sensor RAW image is captured.<wbr/>
4211 Such a boost will be applied to YUV/<wbr/>JPEG format output images but will not
4212 have effect on RAW output formats like RAW_<wbr/>SENSOR,<wbr/> RAW10,<wbr/> RAW12 or RAW_<wbr/>OPAQUE.<wbr/></p>
4213 <p>This key will be <code>null</code> for devices that do not support any RAW format
4214 outputs.<wbr/> For devices that do support RAW format outputs,<wbr/> this key will always
4215 present,<wbr/> and if a device does not support post RAW sensitivity boost,<wbr/> it will
4216 list <code>100</code> in this key.<wbr/></p>
4217 <p>If the camera device cannot apply the exact boost requested,<wbr/> it will reduce the
4218 boost to the nearest supported value.<wbr/>
4219 The final boost value used will be available in the output capture result.<wbr/></p>
4220 <p>For devices that support post RAW sensitivity boost,<wbr/> the YUV/<wbr/>JPEG output images
4221 of such device will have the total sensitivity of
4222 <code><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> * <a href="#controls_android.control.postRawSensitivityBoost">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost</a> /<wbr/> 100</code>
4223 The sensitivity of RAW format images will always be <code><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></code></p>
4224 <p>This control is only effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is set to
4225 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
4230 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4231 <!-- end of entry -->
4234 <tr class="entry" id="controls_android.control.enableZsl">
4235 <td class="entry_name
4237 android.<wbr/>control.<wbr/>enable<wbr/>Zsl
4239 <td class="entry_type">
4240 <span class="entry_type_name entry_type_name_enum">byte</span>
4242 <span class="entry_type_visibility"> [public as boolean]</span>
4248 <ul class="entry_type_enum">
4250 <span class="entry_type_enum_name">FALSE</span>
4251 <span class="entry_type_enum_notes"><p>Requests with <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE must be captured
4252 after previous requests.<wbr/></p></span>
4255 <span class="entry_type_enum_name">TRUE</span>
4256 <span class="entry_type_enum_notes"><p>Requests with <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE may or may not be
4257 captured before previous requests.<wbr/></p></span>
4261 </td> <!-- entry_type -->
4263 <td class="entry_description">
4264 <p>Allow camera device to enable zero-shutter-lag mode for requests with
4265 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE.<wbr/></p>
4268 <td class="entry_units">
4271 <td class="entry_range">
4274 <td class="entry_tags">
4278 <tr class="entries_header">
4279 <th class="th_details" colspan="5">Details</th>
4281 <tr class="entry_cont">
4282 <td class="entry_details" colspan="5">
4283 <p>If enableZsl is <code>true</code>,<wbr/> the camera device may enable zero-shutter-lag mode for requests with
4284 STILL_<wbr/>CAPTURE capture intent.<wbr/> The camera device may use images captured in the past to
4285 produce output images for a zero-shutter-lag request.<wbr/> The result metadata including the
4286 <a href="#dynamic_android.sensor.timestamp">android.<wbr/>sensor.<wbr/>timestamp</a> reflects the source frames used to produce output images.<wbr/>
4287 Therefore,<wbr/> the contents of the output images and the result metadata may be out of order
4288 compared to previous regular requests.<wbr/> enableZsl does not affect requests with other
4289 capture intents.<wbr/></p>
4290 <p>For example,<wbr/> when requests are submitted in the following order:
4291 Request A: enableZsl is ON,<wbr/> <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> is PREVIEW
4292 Request B: enableZsl is ON,<wbr/> <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> is STILL_<wbr/>CAPTURE</p>
4293 <p>The output images for request B may have contents captured before the output images for
4294 request A,<wbr/> and the result metadata for request B may be older than the result metadata for
4295 request A.<wbr/></p>
4296 <p>Note that when enableZsl is <code>true</code>,<wbr/> it is not guaranteed to get output images captured in
4297 the past for requests with STILL_<wbr/>CAPTURE capture intent.<wbr/></p>
4298 <p>For applications targeting SDK versions O and newer,<wbr/> the value of enableZsl in
4299 TEMPLATE_<wbr/>STILL_<wbr/>CAPTURE template may be <code>true</code>.<wbr/> The value in other templates is always
4300 <code>false</code> if present.<wbr/></p>
4301 <p>For applications targeting SDK versions older than O,<wbr/> the value of enableZsl in all
4302 capture templates is always <code>false</code> if present.<wbr/></p>
4306 <tr class="entries_header">
4307 <th class="th_details" colspan="5">HAL Implementation Details</th>
4309 <tr class="entry_cont">
4310 <td class="entry_details" colspan="5">
4311 <p>It is valid for HAL to produce regular output images for requests with STILL_<wbr/>CAPTURE
4312 capture intent.<wbr/></p>
4316 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4317 <!-- end of entry -->
4321 <!-- end of kind -->
4323 <tr><td colspan="6" class="kind">static</td></tr>
4325 <thead class="entries_header">
4327 <th class="th_name">Property Name</th>
4328 <th class="th_type">Type</th>
4329 <th class="th_description">Description</th>
4330 <th class="th_units">Units</th>
4331 <th class="th_range">Range</th>
4332 <th class="th_tags">Tags</th>
4347 <tr class="entry" id="static_android.control.aeAvailableAntibandingModes">
4348 <td class="entry_name
4350 android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes
4352 <td class="entry_type">
4353 <span class="entry_type_name">byte</span>
4354 <span class="entry_type_container">x</span>
4356 <span class="entry_type_array">
4359 <span class="entry_type_visibility"> [public as enumList]</span>
4362 <span class="entry_type_hwlevel">[legacy] </span>
4365 <div class="entry_type_notes">list of enums</div>
4368 </td> <!-- entry_type -->
4370 <td class="entry_description">
4371 <p>List of auto-exposure antibanding modes for <a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a> that are
4372 supported by this camera device.<wbr/></p>
4375 <td class="entry_units">
4378 <td class="entry_range">
4379 <p>Any value listed in <a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a></p>
4382 <td class="entry_tags">
4383 <ul class="entry_tags">
4384 <li><a href="#tag_BC">BC</a></li>
4389 <tr class="entries_header">
4390 <th class="th_details" colspan="5">Details</th>
4392 <tr class="entry_cont">
4393 <td class="entry_details" colspan="5">
4394 <p>Not all of the auto-exposure anti-banding modes may be
4395 supported by a given camera device.<wbr/> This field lists the
4396 valid anti-banding modes that the application may request
4397 for this camera device with the
4398 <a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a> control.<wbr/></p>
4403 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4404 <!-- end of entry -->
4407 <tr class="entry" id="static_android.control.aeAvailableModes">
4408 <td class="entry_name
4410 android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Modes
4412 <td class="entry_type">
4413 <span class="entry_type_name">byte</span>
4414 <span class="entry_type_container">x</span>
4416 <span class="entry_type_array">
4419 <span class="entry_type_visibility"> [public as enumList]</span>
4422 <span class="entry_type_hwlevel">[legacy] </span>
4425 <div class="entry_type_notes">list of enums</div>
4428 </td> <!-- entry_type -->
4430 <td class="entry_description">
4431 <p>List of auto-exposure modes for <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> that are supported by this camera
4435 <td class="entry_units">
4438 <td class="entry_range">
4439 <p>Any value listed in <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a></p>
4442 <td class="entry_tags">
4443 <ul class="entry_tags">
4444 <li><a href="#tag_BC">BC</a></li>
4449 <tr class="entries_header">
4450 <th class="th_details" colspan="5">Details</th>
4452 <tr class="entry_cont">
4453 <td class="entry_details" colspan="5">
4454 <p>Not all the auto-exposure modes may be supported by a
4455 given camera device,<wbr/> especially if no flash unit is
4456 available.<wbr/> This entry lists the valid modes for
4457 <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> for this camera device.<wbr/></p>
4458 <p>All camera devices support ON,<wbr/> and all camera devices with flash
4459 units support ON_<wbr/>AUTO_<wbr/>FLASH and ON_<wbr/>ALWAYS_<wbr/>FLASH.<wbr/></p>
4460 <p>FULL mode camera devices always support OFF mode,<wbr/>
4461 which enables application control of camera exposure time,<wbr/>
4462 sensitivity,<wbr/> and frame duration.<wbr/></p>
4463 <p>LEGACY mode camera devices never support OFF mode.<wbr/>
4464 LIMITED mode devices support OFF if they support the MANUAL_<wbr/>SENSOR
4465 capability.<wbr/></p>
4470 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4471 <!-- end of entry -->
4474 <tr class="entry" id="static_android.control.aeAvailableTargetFpsRanges">
4475 <td class="entry_name
4477 android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Target<wbr/>Fps<wbr/>Ranges
4479 <td class="entry_type">
4480 <span class="entry_type_name">int32</span>
4481 <span class="entry_type_container">x</span>
4483 <span class="entry_type_array">
4486 <span class="entry_type_visibility"> [public as rangeInt]</span>
4489 <span class="entry_type_hwlevel">[legacy] </span>
4492 <div class="entry_type_notes">list of pairs of frame rates</div>
4495 </td> <!-- entry_type -->
4497 <td class="entry_description">
4498 <p>List of frame rate ranges for <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a> supported by
4499 this camera device.<wbr/></p>
4502 <td class="entry_units">
4503 Frames per second (FPS)
4506 <td class="entry_range">
4509 <td class="entry_tags">
4510 <ul class="entry_tags">
4511 <li><a href="#tag_BC">BC</a></li>
4516 <tr class="entries_header">
4517 <th class="th_details" colspan="5">Details</th>
4519 <tr class="entry_cont">
4520 <td class="entry_details" colspan="5">
4521 <p>For devices at the LEGACY level or above:</p>
4524 <p>For constant-framerate recording,<wbr/> for each normal
4525 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a>,<wbr/> that is,<wbr/> a
4526 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> that has
4527 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#quality">quality</a> in
4528 the range [<a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_LOW">QUALITY_<wbr/>LOW</a>,<wbr/>
4529 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_2160P">QUALITY_<wbr/>2160P</a>],<wbr/> if the profile is
4530 supported by the device and has
4531 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate">videoFrameRate</a> <code>x</code>,<wbr/> this list will
4532 always include (<code>x</code>,<wbr/><code>x</code>).<wbr/></p>
4535 <p>Also,<wbr/> a camera device must either not support any
4536 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a>,<wbr/>
4537 or support at least one
4538 normal <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> that has
4539 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate">videoFrameRate</a> <code>x</code> >= 24.<wbr/></p>
4542 <p>For devices at the LIMITED level or above:</p>
4544 <li>For YUV_<wbr/>420_<wbr/>888 burst capture use case,<wbr/> this list will always include (<code>min</code>,<wbr/> <code>max</code>)
4545 and (<code>max</code>,<wbr/> <code>max</code>) where <code>min</code> <= 15 and <code>max</code> = the maximum output frame rate of the
4546 maximum YUV_<wbr/>420_<wbr/>888 output size.<wbr/></li>
4552 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4553 <!-- end of entry -->
4556 <tr class="entry" id="static_android.control.aeCompensationRange">
4557 <td class="entry_name
4559 android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range
4561 <td class="entry_type">
4562 <span class="entry_type_name">int32</span>
4563 <span class="entry_type_container">x</span>
4565 <span class="entry_type_array">
4568 <span class="entry_type_visibility"> [public as rangeInt]</span>
4571 <span class="entry_type_hwlevel">[legacy] </span>
4576 </td> <!-- entry_type -->
4578 <td class="entry_description">
4579 <p>Maximum and minimum exposure compensation values for
4580 <a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a>,<wbr/> in counts of <a href="#static_android.control.aeCompensationStep">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step</a>,<wbr/>
4581 that are supported by this camera device.<wbr/></p>
4584 <td class="entry_units">
4587 <td class="entry_range">
4588 <p>Range [0,<wbr/>0] indicates that exposure compensation is not supported.<wbr/></p>
4589 <p>For LIMITED and FULL devices,<wbr/> range must follow below requirements if exposure
4590 compensation is supported (<code>range != [0,<wbr/> 0]</code>):</p>
4591 <p><code>Min.<wbr/>exposure compensation * <a href="#static_android.control.aeCompensationStep">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step</a> <= -2 EV</code></p>
4592 <p><code>Max.<wbr/>exposure compensation * <a href="#static_android.control.aeCompensationStep">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step</a> >= 2 EV</code></p>
4593 <p>LEGACY devices may support a smaller range than this.<wbr/></p>
4596 <td class="entry_tags">
4597 <ul class="entry_tags">
4598 <li><a href="#tag_BC">BC</a></li>
4605 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4606 <!-- end of entry -->
4609 <tr class="entry" id="static_android.control.aeCompensationStep">
4610 <td class="entry_name
4612 android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step
4614 <td class="entry_type">
4615 <span class="entry_type_name">rational</span>
4617 <span class="entry_type_visibility"> [public]</span>
4620 <span class="entry_type_hwlevel">[legacy] </span>
4625 </td> <!-- entry_type -->
4627 <td class="entry_description">
4628 <p>Smallest step by which the exposure compensation
4629 can be changed.<wbr/></p>
4632 <td class="entry_units">
4636 <td class="entry_range">
4639 <td class="entry_tags">
4640 <ul class="entry_tags">
4641 <li><a href="#tag_BC">BC</a></li>
4646 <tr class="entries_header">
4647 <th class="th_details" colspan="5">Details</th>
4649 <tr class="entry_cont">
4650 <td class="entry_details" colspan="5">
4651 <p>This is the unit for <a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a>.<wbr/> For example,<wbr/> if this key has
4652 a value of <code>1/<wbr/>2</code>,<wbr/> then a setting of <code>-2</code> for <a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a> means
4653 that the target EV offset for the auto-exposure routine is -1 EV.<wbr/></p>
4654 <p>One unit of EV compensation changes the brightness of the captured image by a factor
4655 of two.<wbr/> +1 EV doubles the image brightness,<wbr/> while -1 EV halves the image brightness.<wbr/></p>
4659 <tr class="entries_header">
4660 <th class="th_details" colspan="5">HAL Implementation Details</th>
4662 <tr class="entry_cont">
4663 <td class="entry_details" colspan="5">
4664 <p>This must be less than or equal to 1/<wbr/>2.<wbr/></p>
4668 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4669 <!-- end of entry -->
4672 <tr class="entry" id="static_android.control.afAvailableModes">
4673 <td class="entry_name
4675 android.<wbr/>control.<wbr/>af<wbr/>Available<wbr/>Modes
4677 <td class="entry_type">
4678 <span class="entry_type_name">byte</span>
4679 <span class="entry_type_container">x</span>
4681 <span class="entry_type_array">
4684 <span class="entry_type_visibility"> [public as enumList]</span>
4687 <span class="entry_type_hwlevel">[legacy] </span>
4690 <div class="entry_type_notes">List of enums</div>
4693 </td> <!-- entry_type -->
4695 <td class="entry_description">
4696 <p>List of auto-focus (AF) modes for <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> that are
4697 supported by this camera device.<wbr/></p>
4700 <td class="entry_units">
4703 <td class="entry_range">
4704 <p>Any value listed in <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a></p>
4707 <td class="entry_tags">
4708 <ul class="entry_tags">
4709 <li><a href="#tag_BC">BC</a></li>
4714 <tr class="entries_header">
4715 <th class="th_details" colspan="5">Details</th>
4717 <tr class="entry_cont">
4718 <td class="entry_details" colspan="5">
4719 <p>Not all the auto-focus modes may be supported by a
4720 given camera device.<wbr/> This entry lists the valid modes for
4721 <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> for this camera device.<wbr/></p>
4722 <p>All LIMITED and FULL mode camera devices will support OFF mode,<wbr/> and all
4723 camera devices with adjustable focuser units
4724 (<code><a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> > 0</code>) will support AUTO mode.<wbr/></p>
4725 <p>LEGACY devices will support OFF mode only if they support
4726 focusing to infinity (by also setting <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> to
4727 <code>0.<wbr/>0f</code>).<wbr/></p>
4732 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4733 <!-- end of entry -->
4736 <tr class="entry" id="static_android.control.availableEffects">
4737 <td class="entry_name
4739 android.<wbr/>control.<wbr/>available<wbr/>Effects
4741 <td class="entry_type">
4742 <span class="entry_type_name">byte</span>
4743 <span class="entry_type_container">x</span>
4745 <span class="entry_type_array">
4748 <span class="entry_type_visibility"> [public as enumList]</span>
4751 <span class="entry_type_hwlevel">[legacy] </span>
4754 <div class="entry_type_notes">List of enums (android.<wbr/>control.<wbr/>effect<wbr/>Mode).<wbr/></div>
4757 </td> <!-- entry_type -->
4759 <td class="entry_description">
4760 <p>List of color effects for <a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a> that are supported by this camera
4764 <td class="entry_units">
4767 <td class="entry_range">
4768 <p>Any value listed in <a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></p>
4771 <td class="entry_tags">
4772 <ul class="entry_tags">
4773 <li><a href="#tag_BC">BC</a></li>
4778 <tr class="entries_header">
4779 <th class="th_details" colspan="5">Details</th>
4781 <tr class="entry_cont">
4782 <td class="entry_details" colspan="5">
4783 <p>This list contains the color effect modes that can be applied to
4784 images produced by the camera device.<wbr/>
4785 Implementations are not expected to be consistent across all devices.<wbr/>
4786 If no color effect modes are available for a device,<wbr/> this will only list
4788 <p>A color effect will only be applied if
4789 <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> != OFF.<wbr/> OFF is always included in this list.<wbr/></p>
4790 <p>This control has no effect on the operation of other control routines such
4791 as auto-exposure,<wbr/> white balance,<wbr/> or focus.<wbr/></p>
4796 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4797 <!-- end of entry -->
4800 <tr class="entry" id="static_android.control.availableSceneModes">
4801 <td class="entry_name
4803 android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes
4805 <td class="entry_type">
4806 <span class="entry_type_name">byte</span>
4807 <span class="entry_type_container">x</span>
4809 <span class="entry_type_array">
4812 <span class="entry_type_visibility"> [public as enumList]</span>
4815 <span class="entry_type_hwlevel">[legacy] </span>
4818 <div class="entry_type_notes">List of enums (android.<wbr/>control.<wbr/>scene<wbr/>Mode).<wbr/></div>
4821 </td> <!-- entry_type -->
4823 <td class="entry_description">
4824 <p>List of scene modes for <a href="#controls_android.control.sceneMode">android.<wbr/>control.<wbr/>scene<wbr/>Mode</a> that are supported by this camera
4828 <td class="entry_units">
4831 <td class="entry_range">
4832 <p>Any value listed in <a href="#controls_android.control.sceneMode">android.<wbr/>control.<wbr/>scene<wbr/>Mode</a></p>
4835 <td class="entry_tags">
4836 <ul class="entry_tags">
4837 <li><a href="#tag_BC">BC</a></li>
4842 <tr class="entries_header">
4843 <th class="th_details" colspan="5">Details</th>
4845 <tr class="entry_cont">
4846 <td class="entry_details" colspan="5">
4847 <p>This list contains scene modes that can be set for the camera device.<wbr/>
4848 Only scene modes that have been fully implemented for the
4849 camera device may be included here.<wbr/> Implementations are not expected
4850 to be consistent across all devices.<wbr/></p>
4851 <p>If no scene modes are supported by the camera device,<wbr/> this
4852 will be set to DISABLED.<wbr/> Otherwise DISABLED will not be listed.<wbr/></p>
4853 <p>FACE_<wbr/>PRIORITY is always listed if face detection is
4854 supported (i.<wbr/>e.<wbr/><code><a href="#static_android.statistics.info.maxFaceCount">android.<wbr/>statistics.<wbr/>info.<wbr/>max<wbr/>Face<wbr/>Count</a> >
4855 0</code>).<wbr/></p>
4860 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4861 <!-- end of entry -->
4864 <tr class="entry" id="static_android.control.availableVideoStabilizationModes">
4865 <td class="entry_name
4867 android.<wbr/>control.<wbr/>available<wbr/>Video<wbr/>Stabilization<wbr/>Modes
4869 <td class="entry_type">
4870 <span class="entry_type_name">byte</span>
4871 <span class="entry_type_container">x</span>
4873 <span class="entry_type_array">
4876 <span class="entry_type_visibility"> [public as enumList]</span>
4879 <span class="entry_type_hwlevel">[legacy] </span>
4882 <div class="entry_type_notes">List of enums.<wbr/></div>
4885 </td> <!-- entry_type -->
4887 <td class="entry_description">
4888 <p>List of video stabilization modes for <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>
4889 that are supported by this camera device.<wbr/></p>
4892 <td class="entry_units">
4895 <td class="entry_range">
4896 <p>Any value listed in <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a></p>
4899 <td class="entry_tags">
4900 <ul class="entry_tags">
4901 <li><a href="#tag_BC">BC</a></li>
4906 <tr class="entries_header">
4907 <th class="th_details" colspan="5">Details</th>
4909 <tr class="entry_cont">
4910 <td class="entry_details" colspan="5">
4911 <p>OFF will always be listed.<wbr/></p>
4916 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4917 <!-- end of entry -->
4920 <tr class="entry" id="static_android.control.awbAvailableModes">
4921 <td class="entry_name
4923 android.<wbr/>control.<wbr/>awb<wbr/>Available<wbr/>Modes
4925 <td class="entry_type">
4926 <span class="entry_type_name">byte</span>
4927 <span class="entry_type_container">x</span>
4929 <span class="entry_type_array">
4932 <span class="entry_type_visibility"> [public as enumList]</span>
4935 <span class="entry_type_hwlevel">[legacy] </span>
4938 <div class="entry_type_notes">List of enums</div>
4941 </td> <!-- entry_type -->
4943 <td class="entry_description">
4944 <p>List of auto-white-balance modes for <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> that are supported by this
4945 camera device.<wbr/></p>
4948 <td class="entry_units">
4951 <td class="entry_range">
4952 <p>Any value listed in <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a></p>
4955 <td class="entry_tags">
4956 <ul class="entry_tags">
4957 <li><a href="#tag_BC">BC</a></li>
4962 <tr class="entries_header">
4963 <th class="th_details" colspan="5">Details</th>
4965 <tr class="entry_cont">
4966 <td class="entry_details" colspan="5">
4967 <p>Not all the auto-white-balance modes may be supported by a
4968 given camera device.<wbr/> This entry lists the valid modes for
4969 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> for this camera device.<wbr/></p>
4970 <p>All camera devices will support ON mode.<wbr/></p>
4971 <p>Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always support OFF
4972 mode,<wbr/> which enables application control of white balance,<wbr/> by using
4973 <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a>(<a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> must be set to TRANSFORM_<wbr/>MATRIX).<wbr/> This includes all FULL
4974 mode camera devices.<wbr/></p>
4979 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4980 <!-- end of entry -->
4983 <tr class="entry" id="static_android.control.maxRegions">
4984 <td class="entry_name
4986 android.<wbr/>control.<wbr/>max<wbr/>Regions
4988 <td class="entry_type">
4989 <span class="entry_type_name">int32</span>
4990 <span class="entry_type_container">x</span>
4992 <span class="entry_type_array">
4995 <span class="entry_type_visibility"> [ndk_public]</span>
4998 <span class="entry_type_hwlevel">[legacy] </span>
5003 </td> <!-- entry_type -->
5005 <td class="entry_description">
5006 <p>List of the maximum number of regions that can be used for metering in
5007 auto-exposure (AE),<wbr/> auto-white balance (AWB),<wbr/> and auto-focus (AF);
5008 this corresponds to the the maximum number of elements in
5009 <a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a>,<wbr/> <a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a>,<wbr/>
5010 and <a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a>.<wbr/></p>
5013 <td class="entry_units">
5016 <td class="entry_range">
5017 <p>Value must be >= 0 for each element.<wbr/> For full-capability devices
5018 this value must be >= 1 for AE and AF.<wbr/> The order of the elements is:
5019 <code>(AE,<wbr/> AWB,<wbr/> AF)</code>.<wbr/></p>
5022 <td class="entry_tags">
5023 <ul class="entry_tags">
5024 <li><a href="#tag_BC">BC</a></li>
5031 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5032 <!-- end of entry -->
5035 <tr class="entry" id="static_android.control.maxRegionsAe">
5036 <td class="entry_name
5038 android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae
5040 <td class="entry_type">
5041 <span class="entry_type_name">int32</span>
5043 <span class="entry_type_visibility"> [java_public]</span>
5045 <span class="entry_type_synthetic">[synthetic] </span>
5047 <span class="entry_type_hwlevel">[legacy] </span>
5052 </td> <!-- entry_type -->
5054 <td class="entry_description">
5055 <p>The maximum number of metering regions that can be used by the auto-exposure (AE)
5059 <td class="entry_units">
5062 <td class="entry_range">
5063 <p>Value will be >= 0.<wbr/> For FULL-capability devices,<wbr/> this
5064 value will be >= 1.<wbr/></p>
5067 <td class="entry_tags">
5071 <tr class="entries_header">
5072 <th class="th_details" colspan="5">Details</th>
5074 <tr class="entry_cont">
5075 <td class="entry_details" colspan="5">
5076 <p>This corresponds to the the maximum allowed number of elements in
5077 <a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a>.<wbr/></p>
5081 <tr class="entries_header">
5082 <th class="th_details" colspan="5">HAL Implementation Details</th>
5084 <tr class="entry_cont">
5085 <td class="entry_details" colspan="5">
5086 <p>This entry is private to the framework.<wbr/> Fill in
5087 maxRegions to have this entry be automatically populated.<wbr/></p>
5091 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5092 <!-- end of entry -->
5095 <tr class="entry" id="static_android.control.maxRegionsAwb">
5096 <td class="entry_name
5098 android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb
5100 <td class="entry_type">
5101 <span class="entry_type_name">int32</span>
5103 <span class="entry_type_visibility"> [java_public]</span>
5105 <span class="entry_type_synthetic">[synthetic] </span>
5107 <span class="entry_type_hwlevel">[legacy] </span>
5112 </td> <!-- entry_type -->
5114 <td class="entry_description">
5115 <p>The maximum number of metering regions that can be used by the auto-white balance (AWB)
5119 <td class="entry_units">
5122 <td class="entry_range">
5123 <p>Value will be >= 0.<wbr/></p>
5126 <td class="entry_tags">
5130 <tr class="entries_header">
5131 <th class="th_details" colspan="5">Details</th>
5133 <tr class="entry_cont">
5134 <td class="entry_details" colspan="5">
5135 <p>This corresponds to the the maximum allowed number of elements in
5136 <a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a>.<wbr/></p>
5140 <tr class="entries_header">
5141 <th class="th_details" colspan="5">HAL Implementation Details</th>
5143 <tr class="entry_cont">
5144 <td class="entry_details" colspan="5">
5145 <p>This entry is private to the framework.<wbr/> Fill in
5146 maxRegions to have this entry be automatically populated.<wbr/></p>
5150 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5151 <!-- end of entry -->
5154 <tr class="entry" id="static_android.control.maxRegionsAf">
5155 <td class="entry_name
5157 android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af
5159 <td class="entry_type">
5160 <span class="entry_type_name">int32</span>
5162 <span class="entry_type_visibility"> [java_public]</span>
5164 <span class="entry_type_synthetic">[synthetic] </span>
5166 <span class="entry_type_hwlevel">[legacy] </span>
5171 </td> <!-- entry_type -->
5173 <td class="entry_description">
5174 <p>The maximum number of metering regions that can be used by the auto-focus (AF) routine.<wbr/></p>
5177 <td class="entry_units">
5180 <td class="entry_range">
5181 <p>Value will be >= 0.<wbr/> For FULL-capability devices,<wbr/> this
5182 value will be >= 1.<wbr/></p>
5185 <td class="entry_tags">
5189 <tr class="entries_header">
5190 <th class="th_details" colspan="5">Details</th>
5192 <tr class="entry_cont">
5193 <td class="entry_details" colspan="5">
5194 <p>This corresponds to the the maximum allowed number of elements in
5195 <a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a>.<wbr/></p>
5199 <tr class="entries_header">
5200 <th class="th_details" colspan="5">HAL Implementation Details</th>
5202 <tr class="entry_cont">
5203 <td class="entry_details" colspan="5">
5204 <p>This entry is private to the framework.<wbr/> Fill in
5205 maxRegions to have this entry be automatically populated.<wbr/></p>
5209 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5210 <!-- end of entry -->
5213 <tr class="entry" id="static_android.control.sceneModeOverrides">
5214 <td class="entry_name
5216 android.<wbr/>control.<wbr/>scene<wbr/>Mode<wbr/>Overrides
5218 <td class="entry_type">
5219 <span class="entry_type_name">byte</span>
5220 <span class="entry_type_container">x</span>
5222 <span class="entry_type_array">
5223 3 x length(availableSceneModes)
5225 <span class="entry_type_visibility"> [system]</span>
5228 <span class="entry_type_hwlevel">[limited] </span>
5233 </td> <!-- entry_type -->
5235 <td class="entry_description">
5236 <p>Ordered list of auto-exposure,<wbr/> auto-white balance,<wbr/> and auto-focus
5237 settings to use with each available scene mode.<wbr/></p>
5240 <td class="entry_units">
5243 <td class="entry_range">
5244 <p>For each available scene mode,<wbr/> the list must contain three
5245 entries containing the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
5246 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> values used
5247 by the camera device.<wbr/> The entry order is <code>(aeMode,<wbr/> awbMode,<wbr/> afMode)</code>
5248 where aeMode has the lowest index position.<wbr/></p>
5251 <td class="entry_tags">
5252 <ul class="entry_tags">
5253 <li><a href="#tag_BC">BC</a></li>
5258 <tr class="entries_header">
5259 <th class="th_details" colspan="5">Details</th>
5261 <tr class="entry_cont">
5262 <td class="entry_details" colspan="5">
5263 <p>When a scene mode is enabled,<wbr/> the camera device is expected
5264 to override <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/> <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/>
5265 and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> with its preferred settings for
5266 that scene mode.<wbr/></p>
5267 <p>The order of this list matches that of availableSceneModes,<wbr/>
5268 with 3 entries for each mode.<wbr/> The overrides listed
5269 for FACE_<wbr/>PRIORITY and FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT (if supported) are ignored,<wbr/>
5270 since for that mode the application-set <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
5271 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> values are
5272 used instead,<wbr/> matching the behavior when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>
5273 is set to AUTO.<wbr/> It is recommended that the FACE_<wbr/>PRIORITY and
5274 FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT (if supported) overrides should be set to 0.<wbr/></p>
5275 <p>For example,<wbr/> if availableSceneModes contains
5276 <code>(FACE_<wbr/>PRIORITY,<wbr/> ACTION,<wbr/> NIGHT)</code>,<wbr/> then the camera framework
5277 expects sceneModeOverrides to have 9 entries formatted like:
5278 <code>(0,<wbr/> 0,<wbr/> 0,<wbr/> ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> AUTO,<wbr/> CONTINUOUS_<wbr/>PICTURE,<wbr/>
5279 ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> INCANDESCENT,<wbr/> AUTO)</code>.<wbr/></p>
5283 <tr class="entries_header">
5284 <th class="th_details" colspan="5">HAL Implementation Details</th>
5286 <tr class="entry_cont">
5287 <td class="entry_details" colspan="5">
5288 <p>To maintain backward compatibility,<wbr/> this list will be made available
5289 in the static metadata of the camera service.<wbr/> The camera service will
5290 use these values to set <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
5291 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> when using a scene
5292 mode other than FACE_<wbr/>PRIORITY and FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT (if supported).<wbr/></p>
5296 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5297 <!-- end of entry -->
5300 <tr class="entry" id="static_android.control.availableHighSpeedVideoConfigurations">
5301 <td class="entry_name
5303 android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations
5305 <td class="entry_type">
5306 <span class="entry_type_name">int32</span>
5307 <span class="entry_type_container">x</span>
5309 <span class="entry_type_array">
5312 <span class="entry_type_visibility"> [hidden as highSpeedVideoConfiguration]</span>
5315 <span class="entry_type_hwlevel">[limited] </span>
5320 </td> <!-- entry_type -->
5322 <td class="entry_description">
5323 <p>List of available high speed video size,<wbr/> fps range and max batch size configurations
5324 supported by the camera device,<wbr/> in the format of (width,<wbr/> height,<wbr/> fps_<wbr/>min,<wbr/> fps_<wbr/>max,<wbr/> batch_<wbr/>size_<wbr/>max).<wbr/></p>
5327 <td class="entry_units">
5330 <td class="entry_range">
5331 <p>For each configuration,<wbr/> the fps_<wbr/>max >= 120fps.<wbr/></p>
5334 <td class="entry_tags">
5335 <ul class="entry_tags">
5336 <li><a href="#tag_V1">V1</a></li>
5341 <tr class="entries_header">
5342 <th class="th_details" colspan="5">Details</th>
5344 <tr class="entry_cont">
5345 <td class="entry_details" colspan="5">
5346 <p>When CONSTRAINED_<wbr/>HIGH_<wbr/>SPEED_<wbr/>VIDEO is supported in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>,<wbr/>
5347 this metadata will list the supported high speed video size,<wbr/> fps range and max batch size
5348 configurations.<wbr/> All the sizes listed in this configuration will be a subset of the sizes
5349 reported by <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputSizes">StreamConfigurationMap#getOutputSizes</a>
5350 for processed non-stalling formats.<wbr/></p>
5351 <p>For the high speed video use case,<wbr/> the application must
5352 select the video size and fps range from this metadata to configure the recording and
5353 preview streams and setup the recording requests.<wbr/> For example,<wbr/> if the application intends
5354 to do high speed recording,<wbr/> it can select the maximum size reported by this metadata to
5355 configure output streams.<wbr/> Once the size is selected,<wbr/> application can filter this metadata
5356 by selected size and get the supported fps ranges,<wbr/> and use these fps ranges to setup the
5357 recording requests.<wbr/> Note that for the use case of multiple output streams,<wbr/> application
5358 must select one unique size from this metadata to use (e.<wbr/>g.,<wbr/> preview and recording streams
5359 must have the same size).<wbr/> Otherwise,<wbr/> the high speed capture session creation will fail.<wbr/></p>
5360 <p>The min and max fps will be multiple times of 30fps.<wbr/></p>
5361 <p>High speed video streaming extends significant performance pressue to camera hardware,<wbr/>
5362 to achieve efficient high speed streaming,<wbr/> the camera device may have to aggregate
5363 multiple frames together and send to camera device for processing where the request
5364 controls are same for all the frames in this batch.<wbr/> Max batch size indicates
5365 the max possible number of frames the camera device will group together for this high
5366 speed stream configuration.<wbr/> This max batch size will be used to generate a high speed
5367 recording request list by
5368 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>.<wbr/>
5369 The max batch size for each configuration will satisfy below conditions:</p>
5371 <li>Each max batch size will be a divisor of its corresponding fps_<wbr/>max /<wbr/> 30.<wbr/> For example,<wbr/>
5372 if max_<wbr/>fps is 300,<wbr/> max batch size will only be 1,<wbr/> 2,<wbr/> 5,<wbr/> or 10.<wbr/></li>
5373 <li>The camera device may choose smaller internal batch size for each configuration,<wbr/> but
5374 the actual batch size will be a divisor of max batch size.<wbr/> For example,<wbr/> if the max batch
5375 size is 8,<wbr/> the actual batch size used by camera device will only be 1,<wbr/> 2,<wbr/> 4,<wbr/> or 8.<wbr/></li>
5376 <li>The max batch size in each configuration entry must be no larger than 32.<wbr/></li>
5378 <p>The camera device doesn't have to support batch mode to achieve high speed video recording,<wbr/>
5379 in such case,<wbr/> batch_<wbr/>size_<wbr/>max will be reported as 1 in each configuration entry.<wbr/></p>
5380 <p>This fps ranges in this configuration list can only be used to create requests
5381 that are submitted to a high speed camera capture session created by
5382 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>.<wbr/>
5383 The fps ranges reported in this metadata must not be used to setup capture requests for
5384 normal capture session,<wbr/> or it will cause request error.<wbr/></p>
5388 <tr class="entries_header">
5389 <th class="th_details" colspan="5">HAL Implementation Details</th>
5391 <tr class="entry_cont">
5392 <td class="entry_details" colspan="5">
5393 <p>All the sizes listed in this configuration will be a subset of the sizes reported by
5394 <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> for processed non-stalling output formats.<wbr/>
5395 Note that for all high speed video configurations,<wbr/> HAL must be able to support a minimum
5396 of two streams,<wbr/> though the application might choose to configure just one stream.<wbr/></p>
5397 <p>The HAL may support multiple sensor modes for high speed outputs,<wbr/> for example,<wbr/> 120fps
5398 sensor mode and 120fps recording,<wbr/> 240fps sensor mode for 240fps recording.<wbr/> The application
5399 usually starts preview first,<wbr/> then starts recording.<wbr/> To avoid sensor mode switch caused
5400 stutter when starting recording as much as possible,<wbr/> the application may want to ensure
5401 the same sensor mode is used for preview and recording.<wbr/> Therefore,<wbr/> The HAL must advertise
5402 the variable fps range [30,<wbr/> fps_<wbr/>max] for each fixed fps range in this configuration list.<wbr/>
5403 For example,<wbr/> if the HAL advertises [120,<wbr/> 120] and [240,<wbr/> 240],<wbr/> the HAL must also advertise
5404 [30,<wbr/> 120] and [30,<wbr/> 240] for each configuration.<wbr/> In doing so,<wbr/> if the application intends to
5405 do 120fps recording,<wbr/> it can select [30,<wbr/> 120] to start preview,<wbr/> and [120,<wbr/> 120] to start
5406 recording.<wbr/> For these variable fps ranges,<wbr/> it's up to the HAL to decide the actual fps
5407 values that are suitable for smooth preview streaming.<wbr/> If the HAL sees different max_<wbr/>fps
5408 values that fall into different sensor modes in a sequence of requests,<wbr/> the HAL must
5409 switch the sensor mode as quick as possible to minimize the mode switch caused stutter.<wbr/></p>
5413 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5414 <!-- end of entry -->
5417 <tr class="entry" id="static_android.control.aeLockAvailable">
5418 <td class="entry_name
5420 android.<wbr/>control.<wbr/>ae<wbr/>Lock<wbr/>Available
5422 <td class="entry_type">
5423 <span class="entry_type_name entry_type_name_enum">byte</span>
5425 <span class="entry_type_visibility"> [public as boolean]</span>
5428 <span class="entry_type_hwlevel">[legacy] </span>
5432 <ul class="entry_type_enum">
5434 <span class="entry_type_enum_name">FALSE</span>
5437 <span class="entry_type_enum_name">TRUE</span>
5441 </td> <!-- entry_type -->
5443 <td class="entry_description">
5444 <p>Whether the camera device supports <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></p>
5447 <td class="entry_units">
5450 <td class="entry_range">
5453 <td class="entry_tags">
5454 <ul class="entry_tags">
5455 <li><a href="#tag_BC">BC</a></li>
5460 <tr class="entries_header">
5461 <th class="th_details" colspan="5">Details</th>
5463 <tr class="entry_cont">
5464 <td class="entry_details" colspan="5">
5465 <p>Devices with MANUAL_<wbr/>SENSOR capability or BURST_<wbr/>CAPTURE capability will always
5466 list <code>true</code>.<wbr/> This includes FULL devices.<wbr/></p>
5471 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5472 <!-- end of entry -->
5475 <tr class="entry" id="static_android.control.awbLockAvailable">
5476 <td class="entry_name
5478 android.<wbr/>control.<wbr/>awb<wbr/>Lock<wbr/>Available
5480 <td class="entry_type">
5481 <span class="entry_type_name entry_type_name_enum">byte</span>
5483 <span class="entry_type_visibility"> [public as boolean]</span>
5486 <span class="entry_type_hwlevel">[legacy] </span>
5490 <ul class="entry_type_enum">
5492 <span class="entry_type_enum_name">FALSE</span>
5495 <span class="entry_type_enum_name">TRUE</span>
5499 </td> <!-- entry_type -->
5501 <td class="entry_description">
5502 <p>Whether the camera device supports <a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></p>
5505 <td class="entry_units">
5508 <td class="entry_range">
5511 <td class="entry_tags">
5512 <ul class="entry_tags">
5513 <li><a href="#tag_BC">BC</a></li>
5518 <tr class="entries_header">
5519 <th class="th_details" colspan="5">Details</th>
5521 <tr class="entry_cont">
5522 <td class="entry_details" colspan="5">
5523 <p>Devices with MANUAL_<wbr/>POST_<wbr/>PROCESSING capability or BURST_<wbr/>CAPTURE capability will
5524 always list <code>true</code>.<wbr/> This includes FULL devices.<wbr/></p>
5529 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5530 <!-- end of entry -->
5533 <tr class="entry" id="static_android.control.availableModes">
5534 <td class="entry_name
5536 android.<wbr/>control.<wbr/>available<wbr/>Modes
5538 <td class="entry_type">
5539 <span class="entry_type_name">byte</span>
5540 <span class="entry_type_container">x</span>
5542 <span class="entry_type_array">
5545 <span class="entry_type_visibility"> [public as enumList]</span>
5548 <span class="entry_type_hwlevel">[legacy] </span>
5551 <div class="entry_type_notes">List of enums (android.<wbr/>control.<wbr/>mode).<wbr/></div>
5554 </td> <!-- entry_type -->
5556 <td class="entry_description">
5557 <p>List of control modes for <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> that are supported by this camera
5561 <td class="entry_units">
5564 <td class="entry_range">
5565 <p>Any value listed in <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a></p>
5568 <td class="entry_tags">
5572 <tr class="entries_header">
5573 <th class="th_details" colspan="5">Details</th>
5575 <tr class="entry_cont">
5576 <td class="entry_details" colspan="5">
5577 <p>This list contains control modes that can be set for the camera device.<wbr/>
5578 LEGACY mode devices will always support AUTO mode.<wbr/> LIMITED and FULL
5579 devices will always support OFF,<wbr/> AUTO modes.<wbr/></p>
5584 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5585 <!-- end of entry -->
5588 <tr class="entry" id="static_android.control.postRawSensitivityBoostRange">
5589 <td class="entry_name
5591 android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost<wbr/>Range
5593 <td class="entry_type">
5594 <span class="entry_type_name">int32</span>
5595 <span class="entry_type_container">x</span>
5597 <span class="entry_type_array">
5600 <span class="entry_type_visibility"> [public as rangeInt]</span>
5605 <div class="entry_type_notes">Range of supported post RAW sensitivitiy boosts</div>
5608 </td> <!-- entry_type -->
5610 <td class="entry_description">
5611 <p>Range of boosts for <a href="#controls_android.control.postRawSensitivityBoost">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost</a> supported
5612 by this camera device.<wbr/></p>
5615 <td class="entry_units">
5616 ISO arithmetic units,<wbr/> the same as android.<wbr/>sensor.<wbr/>sensitivity
5619 <td class="entry_range">
5622 <td class="entry_tags">
5626 <tr class="entries_header">
5627 <th class="th_details" colspan="5">Details</th>
5629 <tr class="entry_cont">
5630 <td class="entry_details" colspan="5">
5631 <p>Devices support post RAW sensitivity boost will advertise
5632 <a href="#controls_android.control.postRawSensitivityBoost">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost</a> key for controling
5633 post RAW sensitivity boost.<wbr/></p>
5634 <p>This key will be <code>null</code> for devices that do not support any RAW format
5635 outputs.<wbr/> For devices that do support RAW format outputs,<wbr/> this key will always
5636 present,<wbr/> and if a device does not support post RAW sensitivity boost,<wbr/> it will
5637 list <code>(100,<wbr/> 100)</code> in this key.<wbr/></p>
5641 <tr class="entries_header">
5642 <th class="th_details" colspan="5">HAL Implementation Details</th>
5644 <tr class="entry_cont">
5645 <td class="entry_details" colspan="5">
5646 <p>This key is added in HAL3.<wbr/>4.<wbr/> For HAL3.<wbr/>3 or earlier devices,<wbr/> camera framework will
5647 generate this key as <code>(100,<wbr/> 100)</code> if device supports any of RAW output formats.<wbr/>
5648 All HAL3.<wbr/>4 and above devices should list this key if device supports any of RAW
5649 output formats.<wbr/></p>
5653 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5654 <!-- end of entry -->
5658 <!-- end of kind -->
5660 <tr><td colspan="6" class="kind">dynamic</td></tr>
5662 <thead class="entries_header">
5664 <th class="th_name">Property Name</th>
5665 <th class="th_type">Type</th>
5666 <th class="th_description">Description</th>
5667 <th class="th_units">Units</th>
5668 <th class="th_range">Range</th>
5669 <th class="th_tags">Tags</th>
5684 <tr class="entry" id="dynamic_android.control.aePrecaptureId">
5685 <td class="entry_name
5686 entry_name_deprecated
5688 android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Id
5690 <td class="entry_type">
5691 <span class="entry_type_name">int32</span>
5693 <span class="entry_type_visibility"> [system]</span>
5697 <span class="entry_type_deprecated">[deprecated] </span>
5701 </td> <!-- entry_type -->
5703 <td class="entry_description">
5704 <p>The ID sent with the latest
5705 CAMERA2_<wbr/>TRIGGER_<wbr/>PRECAPTURE_<wbr/>METERING call</p>
5708 <td class="entry_units">
5711 <td class="entry_range">
5712 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
5715 <td class="entry_tags">
5719 <tr class="entries_header">
5720 <th class="th_details" colspan="5">Details</th>
5722 <tr class="entry_cont">
5723 <td class="entry_details" colspan="5">
5725 CAMERA2_<wbr/>TRIGGER_<wbr/>PRECAPTURE_<wbr/>METERING trigger received yet
5726 by HAL.<wbr/> Always updated even if AE algorithm ignores the
5732 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5733 <!-- end of entry -->
5736 <tr class="entry" id="dynamic_android.control.aeAntibandingMode">
5737 <td class="entry_name
5739 android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode
5741 <td class="entry_type">
5742 <span class="entry_type_name entry_type_name_enum">byte</span>
5744 <span class="entry_type_visibility"> [public]</span>
5747 <span class="entry_type_hwlevel">[legacy] </span>
5751 <ul class="entry_type_enum">
5753 <span class="entry_type_enum_name">OFF</span>
5754 <span class="entry_type_enum_notes"><p>The camera device will not adjust exposure duration to
5755 avoid banding problems.<wbr/></p></span>
5758 <span class="entry_type_enum_name">50HZ</span>
5759 <span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
5760 avoid banding problems with 50Hz illumination sources.<wbr/></p></span>
5763 <span class="entry_type_enum_name">60HZ</span>
5764 <span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
5765 avoid banding problems with 60Hz illumination
5766 sources.<wbr/></p></span>
5769 <span class="entry_type_enum_name">AUTO</span>
5770 <span class="entry_type_enum_notes"><p>The camera device will automatically adapt its
5771 antibanding routine to the current illumination
5772 condition.<wbr/> This is the default mode if AUTO is
5773 available on given camera device.<wbr/></p></span>
5777 </td> <!-- entry_type -->
5779 <td class="entry_description">
5780 <p>The desired setting for the camera device's auto-exposure
5781 algorithm's antibanding compensation.<wbr/></p>
5784 <td class="entry_units">
5787 <td class="entry_range">
5788 <p><a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a></p>
5791 <td class="entry_tags">
5792 <ul class="entry_tags">
5793 <li><a href="#tag_BC">BC</a></li>
5798 <tr class="entries_header">
5799 <th class="th_details" colspan="5">Details</th>
5801 <tr class="entry_cont">
5802 <td class="entry_details" colspan="5">
5803 <p>Some kinds of lighting fixtures,<wbr/> such as some fluorescent
5804 lights,<wbr/> flicker at the rate of the power supply frequency
5805 (60Hz or 50Hz,<wbr/> depending on country).<wbr/> While this is
5806 typically not noticeable to a person,<wbr/> it can be visible to
5807 a camera device.<wbr/> If a camera sets its exposure time to the
5808 wrong value,<wbr/> the flicker may become visible in the
5809 viewfinder as flicker or in a final captured image,<wbr/> as a
5810 set of variable-brightness bands across the image.<wbr/></p>
5811 <p>Therefore,<wbr/> the auto-exposure routines of camera devices
5812 include antibanding routines that ensure that the chosen
5813 exposure value will not cause such banding.<wbr/> The choice of
5814 exposure time depends on the rate of flicker,<wbr/> which the
5815 camera device can detect automatically,<wbr/> or the expected
5816 rate can be selected by the application using this
5818 <p>A given camera device may not support all of the possible
5819 options for the antibanding mode.<wbr/> The
5820 <a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a> key contains
5821 the available modes for a given camera device.<wbr/></p>
5822 <p>AUTO mode is the default if it is available on given
5823 camera device.<wbr/> When AUTO mode is not available,<wbr/> the
5824 default will be either 50HZ or 60HZ,<wbr/> and both 50HZ
5825 and 60HZ will be available.<wbr/></p>
5826 <p>If manual exposure control is enabled (by setting
5827 <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> to OFF),<wbr/>
5828 then this setting has no effect,<wbr/> and the application must
5829 ensure it selects exposure times that do not cause banding
5830 issues.<wbr/> The <a href="#dynamic_android.statistics.sceneFlicker">android.<wbr/>statistics.<wbr/>scene<wbr/>Flicker</a> key can assist
5831 the application in this.<wbr/></p>
5835 <tr class="entries_header">
5836 <th class="th_details" colspan="5">HAL Implementation Details</th>
5838 <tr class="entry_cont">
5839 <td class="entry_details" colspan="5">
5840 <p>For all capture request templates,<wbr/> this field must be set
5841 to AUTO if AUTO mode is available.<wbr/> If AUTO is not available,<wbr/>
5842 the default must be either 50HZ or 60HZ,<wbr/> and both 50HZ and
5843 60HZ must be available.<wbr/></p>
5844 <p>If manual exposure control is enabled (by setting
5845 <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> to OFF),<wbr/>
5846 then the exposure values provided by the application must not be
5847 adjusted for antibanding.<wbr/></p>
5851 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5852 <!-- end of entry -->
5855 <tr class="entry" id="dynamic_android.control.aeExposureCompensation">
5856 <td class="entry_name
5858 android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation
5860 <td class="entry_type">
5861 <span class="entry_type_name">int32</span>
5863 <span class="entry_type_visibility"> [public]</span>
5866 <span class="entry_type_hwlevel">[legacy] </span>
5871 </td> <!-- entry_type -->
5873 <td class="entry_description">
5874 <p>Adjustment to auto-exposure (AE) target image
5875 brightness.<wbr/></p>
5878 <td class="entry_units">
5882 <td class="entry_range">
5883 <p><a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a></p>
5886 <td class="entry_tags">
5887 <ul class="entry_tags">
5888 <li><a href="#tag_BC">BC</a></li>
5893 <tr class="entries_header">
5894 <th class="th_details" colspan="5">Details</th>
5896 <tr class="entry_cont">
5897 <td class="entry_details" colspan="5">
5898 <p>The adjustment is measured as a count of steps,<wbr/> with the
5899 step size defined by <a href="#static_android.control.aeCompensationStep">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step</a> and the
5900 allowed range by <a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a>.<wbr/></p>
5901 <p>For example,<wbr/> if the exposure value (EV) step is 0.<wbr/>333,<wbr/> '6'
5902 will mean an exposure compensation of +2 EV; -3 will mean an
5903 exposure compensation of -1 EV.<wbr/> One EV represents a doubling
5904 of image brightness.<wbr/> Note that this control will only be
5905 effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>!=</code> OFF.<wbr/> This control
5906 will take effect even when <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> <code>== true</code>.<wbr/></p>
5907 <p>In the event of exposure compensation value being changed,<wbr/> camera device
5908 may take several frames to reach the newly requested exposure target.<wbr/>
5909 During that time,<wbr/> <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> field will be in the SEARCHING
5910 state.<wbr/> Once the new exposure target is reached,<wbr/> <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> will
5911 change from SEARCHING to either CONVERGED,<wbr/> LOCKED (if AE lock is enabled),<wbr/> or
5912 FLASH_<wbr/>REQUIRED (if the scene is too dark for still capture).<wbr/></p>
5917 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5918 <!-- end of entry -->
5921 <tr class="entry" id="dynamic_android.control.aeLock">
5922 <td class="entry_name
5924 android.<wbr/>control.<wbr/>ae<wbr/>Lock
5926 <td class="entry_type">
5927 <span class="entry_type_name entry_type_name_enum">byte</span>
5929 <span class="entry_type_visibility"> [public as boolean]</span>
5932 <span class="entry_type_hwlevel">[legacy] </span>
5936 <ul class="entry_type_enum">
5938 <span class="entry_type_enum_name">OFF</span>
5939 <span class="entry_type_enum_notes"><p>Auto-exposure lock is disabled; the AE algorithm
5940 is free to update its parameters.<wbr/></p></span>
5943 <span class="entry_type_enum_name">ON</span>
5944 <span class="entry_type_enum_notes"><p>Auto-exposure lock is enabled; the AE algorithm
5945 must not update the exposure and sensitivity parameters
5946 while the lock is active.<wbr/></p>
5947 <p><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a> setting changes
5948 will still take effect while auto-exposure is locked.<wbr/></p>
5949 <p>Some rare LEGACY devices may not support
5950 this,<wbr/> in which case the value will always be overridden to OFF.<wbr/></p></span>
5954 </td> <!-- entry_type -->
5956 <td class="entry_description">
5957 <p>Whether auto-exposure (AE) is currently locked to its latest
5958 calculated values.<wbr/></p>
5961 <td class="entry_units">
5964 <td class="entry_range">
5967 <td class="entry_tags">
5968 <ul class="entry_tags">
5969 <li><a href="#tag_BC">BC</a></li>
5974 <tr class="entries_header">
5975 <th class="th_details" colspan="5">Details</th>
5977 <tr class="entry_cont">
5978 <td class="entry_details" colspan="5">
5979 <p>When set to <code>true</code> (ON),<wbr/> the AE algorithm is locked to its latest parameters,<wbr/>
5980 and will not change exposure settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
5981 <p>Note that even when AE is locked,<wbr/> the flash may be fired if
5982 the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is ON_<wbr/>AUTO_<wbr/>FLASH /<wbr/>
5983 ON_<wbr/>ALWAYS_<wbr/>FLASH /<wbr/> ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE.<wbr/></p>
5984 <p>When <a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a> is changed,<wbr/> even if the AE lock
5985 is ON,<wbr/> the camera device will still adjust its exposure value.<wbr/></p>
5986 <p>If AE precapture is triggered (see <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>)
5987 when AE is already locked,<wbr/> the camera device will not change the exposure time
5988 (<a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>) and sensitivity (<a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>)
5989 parameters.<wbr/> The flash may be fired if the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>
5990 is ON_<wbr/>AUTO_<wbr/>FLASH/<wbr/>ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE and the scene is too dark.<wbr/> If the
5991 <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is ON_<wbr/>ALWAYS_<wbr/>FLASH,<wbr/> the scene may become overexposed.<wbr/>
5992 Similarly,<wbr/> AE precapture trigger CANCEL has no effect when AE is already locked.<wbr/></p>
5993 <p>When an AE precapture sequence is triggered,<wbr/> AE unlock will not be able to unlock
5994 the AE if AE is locked by the camera device internally during precapture metering
5995 sequence In other words,<wbr/> submitting requests with AE unlock has no effect for an
5996 ongoing precapture metering sequence.<wbr/> Otherwise,<wbr/> the precapture metering sequence
5997 will never succeed in a sequence of preview requests where AE lock is always set
5998 to <code>false</code>.<wbr/></p>
5999 <p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
6000 get locked do not necessarily correspond to the settings that were present in the
6001 latest capture result received from the camera device,<wbr/> since additional captures
6002 and AE updates may have occurred even before the result was sent out.<wbr/> If an
6003 application is switching between automatic and manual control and wishes to eliminate
6004 any flicker during the switch,<wbr/> the following procedure is recommended:</p>
6006 <li>Starting in auto-AE mode:</li>
6008 <li>Wait for the first result to be output that has the AE locked</li>
6009 <li>Copy exposure settings from that result into a request,<wbr/> set the request to manual AE</li>
6010 <li>Submit the capture request,<wbr/> proceed to run manual AE as desired.<wbr/></li>
6012 <p>See <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> for AE lock related state transition details.<wbr/></p>
6017 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6018 <!-- end of entry -->
6021 <tr class="entry" id="dynamic_android.control.aeMode">
6022 <td class="entry_name
6024 android.<wbr/>control.<wbr/>ae<wbr/>Mode
6026 <td class="entry_type">
6027 <span class="entry_type_name entry_type_name_enum">byte</span>
6029 <span class="entry_type_visibility"> [public]</span>
6032 <span class="entry_type_hwlevel">[legacy] </span>
6036 <ul class="entry_type_enum">
6038 <span class="entry_type_enum_name">OFF</span>
6039 <span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is disabled.<wbr/></p>
6040 <p>The application-selected <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
6041 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> and
6042 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are used by the camera
6043 device,<wbr/> along with android.<wbr/>flash.<wbr/>* fields,<wbr/> if there's
6044 a flash unit for this camera device.<wbr/></p>
6045 <p>Note that auto-white balance (AWB) and auto-focus (AF)
6046 behavior is device dependent when AE is in OFF mode.<wbr/>
6047 To have consistent behavior across different devices,<wbr/>
6048 it is recommended to either set AWB and AF to OFF mode
6049 or lock AWB and AF before setting AE to OFF.<wbr/>
6050 See <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>,<wbr/>
6051 <a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a>,<wbr/> and <a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>
6052 for more details.<wbr/></p>
6053 <p>LEGACY devices do not support the OFF mode and will
6054 override attempts to use this value to ON.<wbr/></p></span>
6057 <span class="entry_type_enum_name">ON</span>
6058 <span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is active,<wbr/>
6059 with no flash control.<wbr/></p>
6060 <p>The application's values for
6061 <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
6062 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>,<wbr/> and
6063 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are ignored.<wbr/> The
6064 application has control over the various
6065 android.<wbr/>flash.<wbr/>* fields.<wbr/></p></span>
6068 <span class="entry_type_enum_name">ON_AUTO_FLASH</span>
6069 <span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
6070 the camera's flash unit,<wbr/> firing it in low-light
6071 conditions.<wbr/></p>
6072 <p>The flash may be fired during a precapture sequence
6073 (triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
6074 may be fired for captures for which the
6075 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
6076 STILL_<wbr/>CAPTURE</p></span>
6079 <span class="entry_type_enum_name">ON_ALWAYS_FLASH</span>
6080 <span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
6081 the camera's flash unit,<wbr/> always firing it for still
6083 <p>The flash may be fired during a precapture sequence
6084 (triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
6085 will always be fired for captures for which the
6086 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
6087 STILL_<wbr/>CAPTURE</p></span>
6090 <span class="entry_type_enum_name">ON_AUTO_FLASH_REDEYE</span>
6091 <span class="entry_type_enum_notes"><p>Like ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> but with automatic red eye
6092 reduction.<wbr/></p>
6093 <p>If deemed necessary by the camera device,<wbr/> a red eye
6094 reduction flash will fire during the precapture
6095 sequence.<wbr/></p></span>
6099 </td> <!-- entry_type -->
6101 <td class="entry_description">
6102 <p>The desired mode for the camera device's
6103 auto-exposure routine.<wbr/></p>
6106 <td class="entry_units">
6109 <td class="entry_range">
6110 <p><a href="#static_android.control.aeAvailableModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Modes</a></p>
6113 <td class="entry_tags">
6114 <ul class="entry_tags">
6115 <li><a href="#tag_BC">BC</a></li>
6120 <tr class="entries_header">
6121 <th class="th_details" colspan="5">Details</th>
6123 <tr class="entry_cont">
6124 <td class="entry_details" colspan="5">
6125 <p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is
6127 <p>When set to any of the ON modes,<wbr/> the camera device's
6128 auto-exposure routine is enabled,<wbr/> overriding the
6129 application's selected exposure time,<wbr/> sensor sensitivity,<wbr/>
6130 and frame duration (<a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
6131 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>,<wbr/> and
6132 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>).<wbr/> If one of the FLASH modes
6133 is selected,<wbr/> the camera device's flash unit controls are
6134 also overridden.<wbr/></p>
6135 <p>The FLASH modes are only available if the camera device
6136 has a flash unit (<a href="#static_android.flash.info.available">android.<wbr/>flash.<wbr/>info.<wbr/>available</a> is <code>true</code>).<wbr/></p>
6137 <p>If flash TORCH mode is desired,<wbr/> this field must be set to
6138 ON or OFF,<wbr/> and <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> set to TORCH.<wbr/></p>
6139 <p>When set to any of the ON modes,<wbr/> the values chosen by the
6140 camera device auto-exposure routine for the overridden
6141 fields for a given capture will be available in its
6142 CaptureResult.<wbr/></p>
6147 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6148 <!-- end of entry -->
6151 <tr class="entry" id="dynamic_android.control.aeRegions">
6152 <td class="entry_name
6154 android.<wbr/>control.<wbr/>ae<wbr/>Regions
6156 <td class="entry_type">
6157 <span class="entry_type_name">int32</span>
6158 <span class="entry_type_container">x</span>
6160 <span class="entry_type_array">
6163 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
6170 </td> <!-- entry_type -->
6172 <td class="entry_description">
6173 <p>List of metering areas to use for auto-exposure adjustment.<wbr/></p>
6176 <td class="entry_units">
6177 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
6180 <td class="entry_range">
6181 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
6182 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
6185 <td class="entry_tags">
6186 <ul class="entry_tags">
6187 <li><a href="#tag_BC">BC</a></li>
6192 <tr class="entries_header">
6193 <th class="th_details" colspan="5">Details</th>
6195 <tr class="entry_cont">
6196 <td class="entry_details" colspan="5">
6197 <p>Not available if <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a> is 0.<wbr/>
6198 Otherwise will always be present.<wbr/></p>
6199 <p>The maximum number of regions supported by the device is determined by the value
6200 of <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a>.<wbr/></p>
6201 <p>The coordinate system is based on the active pixel array,<wbr/>
6202 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
6203 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
6204 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
6205 bottom-right pixel in the active pixel array.<wbr/></p>
6206 <p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
6207 for every pixel in the area.<wbr/> This means that a large metering area
6208 with the same weight as a smaller area will have more effect in
6209 the metering result.<wbr/> Metering areas can partially overlap and the
6210 camera device will add the weights in the overlap region.<wbr/></p>
6211 <p>The weights are relative to weights of other exposure metering regions,<wbr/> so if only one
6212 region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0
6213 weight is ignored.<wbr/></p>
6214 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
6215 camera device.<wbr/></p>
6216 <p>If the metering region is outside the used <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> returned in
6217 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
6218 region and output only the intersection rectangle as the metering region in the result
6219 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
6220 not reported in the result metadata.<wbr/></p>
6224 <tr class="entries_header">
6225 <th class="th_details" colspan="5">HAL Implementation Details</th>
6227 <tr class="entry_cont">
6228 <td class="entry_details" colspan="5">
6229 <p>The HAL level representation of MeteringRectangle[] is a
6230 int[5 * area_<wbr/>count].<wbr/>
6231 Every five elements represent a metering region of
6232 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
6233 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
6234 exclusive on xmax and ymax.<wbr/></p>
6238 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6239 <!-- end of entry -->
6242 <tr class="entry" id="dynamic_android.control.aeTargetFpsRange">
6243 <td class="entry_name
6245 android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range
6247 <td class="entry_type">
6248 <span class="entry_type_name">int32</span>
6249 <span class="entry_type_container">x</span>
6251 <span class="entry_type_array">
6254 <span class="entry_type_visibility"> [public as rangeInt]</span>
6257 <span class="entry_type_hwlevel">[legacy] </span>
6262 </td> <!-- entry_type -->
6264 <td class="entry_description">
6265 <p>Range over which the auto-exposure routine can
6266 adjust the capture frame rate to maintain good
6270 <td class="entry_units">
6271 Frames per second (FPS)
6274 <td class="entry_range">
6275 <p>Any of the entries in <a href="#static_android.control.aeAvailableTargetFpsRanges">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Target<wbr/>Fps<wbr/>Ranges</a></p>
6278 <td class="entry_tags">
6279 <ul class="entry_tags">
6280 <li><a href="#tag_BC">BC</a></li>
6285 <tr class="entries_header">
6286 <th class="th_details" colspan="5">Details</th>
6288 <tr class="entry_cont">
6289 <td class="entry_details" colspan="5">
6290 <p>Only constrains auto-exposure (AE) algorithm,<wbr/> not
6291 manual control of <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a> and
6292 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>.<wbr/></p>
6297 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6298 <!-- end of entry -->
6301 <tr class="entry" id="dynamic_android.control.aePrecaptureTrigger">
6302 <td class="entry_name
6304 android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger
6306 <td class="entry_type">
6307 <span class="entry_type_name entry_type_name_enum">byte</span>
6309 <span class="entry_type_visibility"> [public]</span>
6312 <span class="entry_type_hwlevel">[limited] </span>
6316 <ul class="entry_type_enum">
6318 <span class="entry_type_enum_name">IDLE</span>
6319 <span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
6322 <span class="entry_type_enum_name">START</span>
6323 <span class="entry_type_enum_notes"><p>The precapture metering sequence will be started
6324 by the camera device.<wbr/></p>
6325 <p>The exact effect of the precapture trigger depends on
6326 the current AE mode and state.<wbr/></p></span>
6329 <span class="entry_type_enum_name">CANCEL</span>
6330 <span class="entry_type_enum_notes"><p>The camera device will cancel any currently active or completed
6331 precapture metering sequence,<wbr/> the auto-exposure routine will return to its
6332 initial state.<wbr/></p></span>
6336 </td> <!-- entry_type -->
6338 <td class="entry_description">
6339 <p>Whether the camera device will trigger a precapture
6340 metering sequence when it processes this request.<wbr/></p>
6343 <td class="entry_units">
6346 <td class="entry_range">
6349 <td class="entry_tags">
6350 <ul class="entry_tags">
6351 <li><a href="#tag_BC">BC</a></li>
6356 <tr class="entries_header">
6357 <th class="th_details" colspan="5">Details</th>
6359 <tr class="entry_cont">
6360 <td class="entry_details" colspan="5">
6361 <p>This entry is normally set to IDLE,<wbr/> or is not
6362 included at all in the request settings.<wbr/> When included and
6363 set to START,<wbr/> the camera device will trigger the auto-exposure (AE)
6364 precapture metering sequence.<wbr/></p>
6365 <p>When set to CANCEL,<wbr/> the camera device will cancel any active
6366 precapture metering trigger,<wbr/> and return to its initial AE state.<wbr/>
6367 If a precapture metering sequence is already completed,<wbr/> and the camera
6368 device has implicitly locked the AE for subsequent still capture,<wbr/> the
6369 CANCEL trigger will unlock the AE and return to its initial AE state.<wbr/></p>
6370 <p>The precapture sequence should be triggered before starting a
6371 high-quality still capture for final metering decisions to
6372 be made,<wbr/> and for firing pre-capture flash pulses to estimate
6373 scene brightness and required final capture flash power,<wbr/> when
6374 the flash is enabled.<wbr/></p>
6375 <p>Normally,<wbr/> this entry should be set to START for only a
6376 single request,<wbr/> and the application should wait until the
6377 sequence completes before starting a new one.<wbr/></p>
6378 <p>When a precapture metering sequence is finished,<wbr/> the camera device
6379 may lock the auto-exposure routine internally to be able to accurately expose the
6380 subsequent still capture image (<code><a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE</code>).<wbr/>
6381 For this case,<wbr/> the AE may not resume normal scan if no subsequent still capture is
6382 submitted.<wbr/> To ensure that the AE routine restarts normal scan,<wbr/> the application should
6383 submit a request with <code><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> == true</code>,<wbr/> followed by a request
6384 with <code><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> == false</code>,<wbr/> if the application decides not to submit a
6385 still capture request after the precapture sequence completes.<wbr/> Alternatively,<wbr/> for
6386 API level 23 or newer devices,<wbr/> the CANCEL can be used to unlock the camera device
6387 internally locked AE if the application doesn't submit a still capture request after
6388 the AE precapture trigger.<wbr/> Note that,<wbr/> the CANCEL was added in API level 23,<wbr/> and must not
6389 be used in devices that have earlier API levels.<wbr/></p>
6390 <p>The exact effect of auto-exposure (AE) precapture trigger
6391 depends on the current AE mode and state; see
6392 <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> for AE precapture state transition
6394 <p>On LEGACY-level devices,<wbr/> the precapture trigger is not supported;
6395 capturing a high-resolution JPEG image will automatically trigger a
6396 precapture sequence before the high-resolution capture,<wbr/> including
6397 potentially firing a pre-capture flash.<wbr/></p>
6398 <p>Using the precapture trigger and the auto-focus trigger <a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>
6399 simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
6400 the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
6401 focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
6402 trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
6403 changes to <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> indicating the start of the precapture sequence,<wbr/> for
6405 <p>If both the precapture and the auto-focus trigger are activated on the same request,<wbr/> then
6406 the camera device will complete them in the optimal order for that device.<wbr/></p>
6410 <tr class="entries_header">
6411 <th class="th_details" colspan="5">HAL Implementation Details</th>
6413 <tr class="entry_cont">
6414 <td class="entry_details" colspan="5">
6415 <p>The HAL must support triggering the AE precapture trigger while an AF trigger is active
6416 (and vice versa),<wbr/> or at the same time as the AF trigger.<wbr/> It is acceptable for the HAL to
6417 treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
6418 AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
6419 to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
6423 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6424 <!-- end of entry -->
6427 <tr class="entry" id="dynamic_android.control.aeState">
6428 <td class="entry_name
6430 android.<wbr/>control.<wbr/>ae<wbr/>State
6432 <td class="entry_type">
6433 <span class="entry_type_name entry_type_name_enum">byte</span>
6435 <span class="entry_type_visibility"> [public]</span>
6438 <span class="entry_type_hwlevel">[limited] </span>
6442 <ul class="entry_type_enum">
6444 <span class="entry_type_enum_name">INACTIVE</span>
6445 <span class="entry_type_enum_notes"><p>AE is off or recently reset.<wbr/></p>
6446 <p>When a camera device is opened,<wbr/> it starts in
6447 this state.<wbr/> This is a transient state,<wbr/> the camera device may skip reporting
6448 this state in capture result.<wbr/></p></span>
6451 <span class="entry_type_enum_name">SEARCHING</span>
6452 <span class="entry_type_enum_notes"><p>AE doesn't yet have a good set of control values
6453 for the current scene.<wbr/></p>
6454 <p>This is a transient state,<wbr/> the camera device may skip
6455 reporting this state in capture result.<wbr/></p></span>
6458 <span class="entry_type_enum_name">CONVERGED</span>
6459 <span class="entry_type_enum_notes"><p>AE has a good set of control values for the
6460 current scene.<wbr/></p></span>
6463 <span class="entry_type_enum_name">LOCKED</span>
6464 <span class="entry_type_enum_notes"><p>AE has been locked.<wbr/></p></span>
6467 <span class="entry_type_enum_name">FLASH_REQUIRED</span>
6468 <span class="entry_type_enum_notes"><p>AE has a good set of control values,<wbr/> but flash
6469 needs to be fired for good quality still
6470 capture.<wbr/></p></span>
6473 <span class="entry_type_enum_name">PRECAPTURE</span>
6474 <span class="entry_type_enum_notes"><p>AE has been asked to do a precapture sequence
6475 and is currently executing it.<wbr/></p>
6476 <p>Precapture can be triggered through setting
6477 <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> to START.<wbr/> Currently
6478 active and completed (if it causes camera device internal AE lock) precapture
6479 metering sequence can be canceled through setting
6480 <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> to CANCEL.<wbr/></p>
6481 <p>Once PRECAPTURE completes,<wbr/> AE will transition to CONVERGED
6482 or FLASH_<wbr/>REQUIRED as appropriate.<wbr/> This is a transient
6483 state,<wbr/> the camera device may skip reporting this state in
6484 capture result.<wbr/></p></span>
6488 </td> <!-- entry_type -->
6490 <td class="entry_description">
6491 <p>Current state of the auto-exposure (AE) algorithm.<wbr/></p>
6494 <td class="entry_units">
6497 <td class="entry_range">
6500 <td class="entry_tags">
6504 <tr class="entries_header">
6505 <th class="th_details" colspan="5">Details</th>
6507 <tr class="entry_cont">
6508 <td class="entry_details" colspan="5">
6509 <p>Switching between or enabling AE modes (<a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>) always
6510 resets the AE state to INACTIVE.<wbr/> Similarly,<wbr/> switching between <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>,<wbr/>
6511 or <a href="#controls_android.control.sceneMode">android.<wbr/>control.<wbr/>scene<wbr/>Mode</a> if <code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == USE_<wbr/>SCENE_<wbr/>MODE</code> resets all
6512 the algorithm states to INACTIVE.<wbr/></p>
6513 <p>The camera device can do several state transitions between two results,<wbr/> if it is
6514 allowed by the state transition table.<wbr/> For example: INACTIVE may never actually be
6515 seen in a result.<wbr/></p>
6516 <p>The state in the result is the state for this image (in sync with this image): if
6517 AE state becomes CONVERGED,<wbr/> then the image data associated with this result should
6518 be good to use.<wbr/></p>
6519 <p>Below are state transition tables for different AE modes.<wbr/></p>
6523 <th align="center">State</th>
6524 <th align="center">Transition Cause</th>
6525 <th align="center">New State</th>
6526 <th align="center">Notes</th>
6531 <td align="center">INACTIVE</td>
6532 <td align="center"></td>
6533 <td align="center">INACTIVE</td>
6534 <td align="center">Camera device auto exposure algorithm is disabled</td>
6538 <p>When <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is AE_<wbr/>MODE_<wbr/>ON_<wbr/>*:</p>
6542 <th align="center">State</th>
6543 <th align="center">Transition Cause</th>
6544 <th align="center">New State</th>
6545 <th align="center">Notes</th>
6550 <td align="center">INACTIVE</td>
6551 <td align="center">Camera device initiates AE scan</td>
6552 <td align="center">SEARCHING</td>
6553 <td align="center">Values changing</td>
6556 <td align="center">INACTIVE</td>
6557 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
6558 <td align="center">LOCKED</td>
6559 <td align="center">Values locked</td>
6562 <td align="center">SEARCHING</td>
6563 <td align="center">Camera device finishes AE scan</td>
6564 <td align="center">CONVERGED</td>
6565 <td align="center">Good values,<wbr/> not changing</td>
6568 <td align="center">SEARCHING</td>
6569 <td align="center">Camera device finishes AE scan</td>
6570 <td align="center">FLASH_<wbr/>REQUIRED</td>
6571 <td align="center">Converged but too dark w/<wbr/>o flash</td>
6574 <td align="center">SEARCHING</td>
6575 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
6576 <td align="center">LOCKED</td>
6577 <td align="center">Values locked</td>
6580 <td align="center">CONVERGED</td>
6581 <td align="center">Camera device initiates AE scan</td>
6582 <td align="center">SEARCHING</td>
6583 <td align="center">Values changing</td>
6586 <td align="center">CONVERGED</td>
6587 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
6588 <td align="center">LOCKED</td>
6589 <td align="center">Values locked</td>
6592 <td align="center">FLASH_<wbr/>REQUIRED</td>
6593 <td align="center">Camera device initiates AE scan</td>
6594 <td align="center">SEARCHING</td>
6595 <td align="center">Values changing</td>
6598 <td align="center">FLASH_<wbr/>REQUIRED</td>
6599 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
6600 <td align="center">LOCKED</td>
6601 <td align="center">Values locked</td>
6604 <td align="center">LOCKED</td>
6605 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
6606 <td align="center">SEARCHING</td>
6607 <td align="center">Values not good after unlock</td>
6610 <td align="center">LOCKED</td>
6611 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
6612 <td align="center">CONVERGED</td>
6613 <td align="center">Values good after unlock</td>
6616 <td align="center">LOCKED</td>
6617 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
6618 <td align="center">FLASH_<wbr/>REQUIRED</td>
6619 <td align="center">Exposure good,<wbr/> but too dark</td>
6622 <td align="center">PRECAPTURE</td>
6623 <td align="center">Sequence done.<wbr/> <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
6624 <td align="center">CONVERGED</td>
6625 <td align="center">Ready for high-quality capture</td>
6628 <td align="center">PRECAPTURE</td>
6629 <td align="center">Sequence done.<wbr/> <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
6630 <td align="center">LOCKED</td>
6631 <td align="center">Ready for high-quality capture</td>
6634 <td align="center">LOCKED</td>
6635 <td align="center">aeLock is ON and aePrecaptureTrigger is START</td>
6636 <td align="center">LOCKED</td>
6637 <td align="center">Precapture trigger is ignored when AE is already locked</td>
6640 <td align="center">LOCKED</td>
6641 <td align="center">aeLock is ON and aePrecaptureTrigger is CANCEL</td>
6642 <td align="center">LOCKED</td>
6643 <td align="center">Precapture trigger is ignored when AE is already locked</td>
6646 <td align="center">Any state (excluding LOCKED)</td>
6647 <td align="center"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is START</td>
6648 <td align="center">PRECAPTURE</td>
6649 <td align="center">Start AE precapture metering sequence</td>
6652 <td align="center">Any state (excluding LOCKED)</td>
6653 <td align="center"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is CANCEL</td>
6654 <td align="center">INACTIVE</td>
6655 <td align="center">Currently active precapture metering sequence is canceled</td>
6659 <p>For the above table,<wbr/> the camera device may skip reporting any state changes that happen
6660 without application intervention (i.<wbr/>e.<wbr/> mode switch,<wbr/> trigger,<wbr/> locking).<wbr/> Any state that
6661 can be skipped in that manner is called a transient state.<wbr/></p>
6662 <p>For example,<wbr/> for above AE modes (AE_<wbr/>MODE_<wbr/>ON_<wbr/>*),<wbr/> in addition to the state transitions
6663 listed in above table,<wbr/> it is also legal for the camera device to skip one or more
6664 transient states between two results.<wbr/> See below table for examples:</p>
6668 <th align="center">State</th>
6669 <th align="center">Transition Cause</th>
6670 <th align="center">New State</th>
6671 <th align="center">Notes</th>
6676 <td align="center">INACTIVE</td>
6677 <td align="center">Camera device finished AE scan</td>
6678 <td align="center">CONVERGED</td>
6679 <td align="center">Values are already good,<wbr/> transient states are skipped by camera device.<wbr/></td>
6682 <td align="center">Any state (excluding LOCKED)</td>
6683 <td align="center"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is START,<wbr/> sequence done</td>
6684 <td align="center">FLASH_<wbr/>REQUIRED</td>
6685 <td align="center">Converged but too dark w/<wbr/>o flash after a precapture sequence,<wbr/> transient states are skipped by camera device.<wbr/></td>
6688 <td align="center">Any state (excluding LOCKED)</td>
6689 <td align="center"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is START,<wbr/> sequence done</td>
6690 <td align="center">CONVERGED</td>
6691 <td align="center">Converged after a precapture sequence,<wbr/> transient states are skipped by camera device.<wbr/></td>
6694 <td align="center">Any state (excluding LOCKED)</td>
6695 <td align="center"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is CANCEL,<wbr/> converged</td>
6696 <td align="center">FLASH_<wbr/>REQUIRED</td>
6697 <td align="center">Converged but too dark w/<wbr/>o flash after a precapture sequence is canceled,<wbr/> transient states are skipped by camera device.<wbr/></td>
6700 <td align="center">Any state (excluding LOCKED)</td>
6701 <td align="center"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is CANCEL,<wbr/> converged</td>
6702 <td align="center">CONVERGED</td>
6703 <td align="center">Converged after a precapture sequenceis canceled,<wbr/> transient states are skipped by camera device.<wbr/></td>
6706 <td align="center">CONVERGED</td>
6707 <td align="center">Camera device finished AE scan</td>
6708 <td align="center">FLASH_<wbr/>REQUIRED</td>
6709 <td align="center">Converged but too dark w/<wbr/>o flash after a new scan,<wbr/> transient states are skipped by camera device.<wbr/></td>
6712 <td align="center">FLASH_<wbr/>REQUIRED</td>
6713 <td align="center">Camera device finished AE scan</td>
6714 <td align="center">CONVERGED</td>
6715 <td align="center">Converged after a new scan,<wbr/> transient states are skipped by camera device.<wbr/></td>
6723 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6724 <!-- end of entry -->
6727 <tr class="entry" id="dynamic_android.control.afMode">
6728 <td class="entry_name
6730 android.<wbr/>control.<wbr/>af<wbr/>Mode
6732 <td class="entry_type">
6733 <span class="entry_type_name entry_type_name_enum">byte</span>
6735 <span class="entry_type_visibility"> [public]</span>
6738 <span class="entry_type_hwlevel">[legacy] </span>
6742 <ul class="entry_type_enum">
6744 <span class="entry_type_enum_name">OFF</span>
6745 <span class="entry_type_enum_notes"><p>The auto-focus routine does not control the lens;
6746 <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> is controlled by the
6747 application.<wbr/></p></span>
6750 <span class="entry_type_enum_name">AUTO</span>
6751 <span class="entry_type_enum_notes"><p>Basic automatic focus mode.<wbr/></p>
6752 <p>In this mode,<wbr/> the lens does not move unless
6753 the autofocus trigger action is called.<wbr/> When that trigger
6754 is activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
6755 the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/></p>
6756 <p>Always supported if lens is not fixed focus.<wbr/></p>
6757 <p>Use <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> to determine if lens
6758 is fixed-focus.<wbr/></p>
6759 <p>Triggering AF_<wbr/>CANCEL resets the lens position to default,<wbr/>
6760 and sets the AF state to INACTIVE.<wbr/></p></span>
6763 <span class="entry_type_enum_name">MACRO</span>
6764 <span class="entry_type_enum_notes"><p>Close-up focusing mode.<wbr/></p>
6765 <p>In this mode,<wbr/> the lens does not move unless the
6766 autofocus trigger action is called.<wbr/> When that trigger is
6767 activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
6768 the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/> This
6769 mode is optimized for focusing on objects very close to
6770 the camera.<wbr/></p>
6771 <p>When that trigger is activated,<wbr/> AF will transition to
6772 ACTIVE_<wbr/>SCAN,<wbr/> then to the outcome of the scan (FOCUSED or
6773 NOT_<wbr/>FOCUSED).<wbr/> Triggering cancel AF resets the lens
6774 position to default,<wbr/> and sets the AF state to
6775 INACTIVE.<wbr/></p></span>
6778 <span class="entry_type_enum_name">CONTINUOUS_VIDEO</span>
6779 <span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
6780 position continually to attempt to provide a
6781 constantly-in-focus image stream.<wbr/></p>
6782 <p>The focusing behavior should be suitable for good quality
6783 video recording; typically this means slower focus
6784 movement and no overshoots.<wbr/> When the AF trigger is not
6785 involved,<wbr/> the AF algorithm should start in INACTIVE state,<wbr/>
6786 and then transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED
6787 states as appropriate.<wbr/> When the AF trigger is activated,<wbr/>
6788 the algorithm should immediately transition into
6789 AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
6790 lens position until a cancel AF trigger is received.<wbr/></p>
6791 <p>Once cancel is received,<wbr/> the algorithm should transition
6792 back to INACTIVE and resume passive scan.<wbr/> Note that this
6793 behavior is not identical to CONTINUOUS_<wbr/>PICTURE,<wbr/> since an
6794 ongoing PASSIVE_<wbr/>SCAN must immediately be
6795 canceled.<wbr/></p></span>
6798 <span class="entry_type_enum_name">CONTINUOUS_PICTURE</span>
6799 <span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
6800 position continually to attempt to provide a
6801 constantly-in-focus image stream.<wbr/></p>
6802 <p>The focusing behavior should be suitable for still image
6803 capture; typically this means focusing as fast as
6804 possible.<wbr/> When the AF trigger is not involved,<wbr/> the AF
6805 algorithm should start in INACTIVE state,<wbr/> and then
6806 transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED states as
6807 appropriate as it attempts to maintain focus.<wbr/> When the AF
6808 trigger is activated,<wbr/> the algorithm should finish its
6809 PASSIVE_<wbr/>SCAN if active,<wbr/> and then transition into
6810 AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
6811 lens position until a cancel AF trigger is received.<wbr/></p>
6812 <p>When the AF cancel trigger is activated,<wbr/> the algorithm
6813 should transition back to INACTIVE and then act as if it
6814 has just been started.<wbr/></p></span>
6817 <span class="entry_type_enum_name">EDOF</span>
6818 <span class="entry_type_enum_notes"><p>Extended depth of field (digital focus) mode.<wbr/></p>
6819 <p>The camera device will produce images with an extended
6820 depth of field automatically; no special focusing
6821 operations need to be done before taking a picture.<wbr/></p>
6822 <p>AF triggers are ignored,<wbr/> and the AF state will always be
6823 INACTIVE.<wbr/></p></span>
6827 </td> <!-- entry_type -->
6829 <td class="entry_description">
6830 <p>Whether auto-focus (AF) is currently enabled,<wbr/> and what
6831 mode it is set to.<wbr/></p>
6834 <td class="entry_units">
6837 <td class="entry_range">
6838 <p><a href="#static_android.control.afAvailableModes">android.<wbr/>control.<wbr/>af<wbr/>Available<wbr/>Modes</a></p>
6841 <td class="entry_tags">
6842 <ul class="entry_tags">
6843 <li><a href="#tag_BC">BC</a></li>
6848 <tr class="entries_header">
6849 <th class="th_details" colspan="5">Details</th>
6851 <tr class="entry_cont">
6852 <td class="entry_details" colspan="5">
6853 <p>Only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> = AUTO and the lens is not fixed focus
6854 (i.<wbr/>e.<wbr/> <code><a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> > 0</code>).<wbr/> Also note that
6855 when <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/> the behavior of AF is device
6856 dependent.<wbr/> It is recommended to lock AF by using <a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a> before
6857 setting <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> to OFF,<wbr/> or set AF mode to OFF when AE is OFF.<wbr/></p>
6858 <p>If the lens is controlled by the camera device auto-focus algorithm,<wbr/>
6859 the camera device will report the current AF status in <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>
6860 in result metadata.<wbr/></p>
6864 <tr class="entries_header">
6865 <th class="th_details" colspan="5">HAL Implementation Details</th>
6867 <tr class="entry_cont">
6868 <td class="entry_details" colspan="5">
6869 <p>When afMode is AUTO or MACRO,<wbr/> the lens must not move until an AF trigger is sent in a
6870 request (<a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a> <code>==</code> START).<wbr/> After an AF trigger,<wbr/> the afState will end
6871 up with either FOCUSED_<wbr/>LOCKED or NOT_<wbr/>FOCUSED_<wbr/>LOCKED state (see
6872 <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a> for detailed state transitions),<wbr/> which indicates that the lens is
6873 locked and will not move.<wbr/> If camera movement (e.<wbr/>g.<wbr/> tilting camera) causes the lens to move
6874 after the lens is locked,<wbr/> the HAL must compensate this movement appropriately such that
6875 the same focal plane remains in focus.<wbr/></p>
6876 <p>When afMode is one of the continuous auto focus modes,<wbr/> the HAL is free to start a AF
6877 scan whenever it's not locked.<wbr/> When the lens is locked after an AF trigger
6878 (see <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a> for detailed state transitions),<wbr/> the HAL should maintain the
6879 same lock behavior as above.<wbr/></p>
6880 <p>When afMode is OFF,<wbr/> the application controls focus manually.<wbr/> The accuracy of the
6881 focus distance control depends on the <a href="#static_android.lens.info.focusDistanceCalibration">android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration</a>.<wbr/>
6882 However,<wbr/> the lens must not move regardless of the camera movement for any focus distance
6883 manual control.<wbr/></p>
6884 <p>To put this in concrete terms,<wbr/> if the camera has lens elements which may move based on
6885 camera orientation or motion (e.<wbr/>g.<wbr/> due to gravity),<wbr/> then the HAL must drive the lens to
6886 remain in a fixed position invariant to the camera's orientation or motion,<wbr/> for example,<wbr/>
6887 by using accelerometer measurements in the lens control logic.<wbr/> This is a typical issue
6888 that will arise on camera modules with open-loop VCMs.<wbr/></p>
6892 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6893 <!-- end of entry -->
6896 <tr class="entry" id="dynamic_android.control.afRegions">
6897 <td class="entry_name
6899 android.<wbr/>control.<wbr/>af<wbr/>Regions
6901 <td class="entry_type">
6902 <span class="entry_type_name">int32</span>
6903 <span class="entry_type_container">x</span>
6905 <span class="entry_type_array">
6908 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
6915 </td> <!-- entry_type -->
6917 <td class="entry_description">
6918 <p>List of metering areas to use for auto-focus.<wbr/></p>
6921 <td class="entry_units">
6922 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
6925 <td class="entry_range">
6926 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
6927 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
6930 <td class="entry_tags">
6931 <ul class="entry_tags">
6932 <li><a href="#tag_BC">BC</a></li>
6937 <tr class="entries_header">
6938 <th class="th_details" colspan="5">Details</th>
6940 <tr class="entry_cont">
6941 <td class="entry_details" colspan="5">
6942 <p>Not available if <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a> is 0.<wbr/>
6943 Otherwise will always be present.<wbr/></p>
6944 <p>The maximum number of focus areas supported by the device is determined by the value
6945 of <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a>.<wbr/></p>
6946 <p>The coordinate system is based on the active pixel array,<wbr/>
6947 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
6948 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
6949 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
6950 bottom-right pixel in the active pixel array.<wbr/></p>
6951 <p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
6952 for every pixel in the area.<wbr/> This means that a large metering area
6953 with the same weight as a smaller area will have more effect in
6954 the metering result.<wbr/> Metering areas can partially overlap and the
6955 camera device will add the weights in the overlap region.<wbr/></p>
6956 <p>The weights are relative to weights of other metering regions,<wbr/> so if only one region
6957 is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0 weight is
6959 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
6960 camera device.<wbr/></p>
6961 <p>If the metering region is outside the used <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> returned in
6962 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
6963 region and output only the intersection rectangle as the metering region in the result
6964 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
6965 not reported in the result metadata.<wbr/></p>
6969 <tr class="entries_header">
6970 <th class="th_details" colspan="5">HAL Implementation Details</th>
6972 <tr class="entry_cont">
6973 <td class="entry_details" colspan="5">
6974 <p>The HAL level representation of MeteringRectangle[] is a
6975 int[5 * area_<wbr/>count].<wbr/>
6976 Every five elements represent a metering region of
6977 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
6978 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
6979 exclusive on xmax and ymax.<wbr/></p>
6983 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6984 <!-- end of entry -->
6987 <tr class="entry" id="dynamic_android.control.afTrigger">
6988 <td class="entry_name
6990 android.<wbr/>control.<wbr/>af<wbr/>Trigger
6992 <td class="entry_type">
6993 <span class="entry_type_name entry_type_name_enum">byte</span>
6995 <span class="entry_type_visibility"> [public]</span>
6998 <span class="entry_type_hwlevel">[legacy] </span>
7002 <ul class="entry_type_enum">
7004 <span class="entry_type_enum_name">IDLE</span>
7005 <span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
7008 <span class="entry_type_enum_name">START</span>
7009 <span class="entry_type_enum_notes"><p>Autofocus will trigger now.<wbr/></p></span>
7012 <span class="entry_type_enum_name">CANCEL</span>
7013 <span class="entry_type_enum_notes"><p>Autofocus will return to its initial
7014 state,<wbr/> and cancel any currently active trigger.<wbr/></p></span>
7018 </td> <!-- entry_type -->
7020 <td class="entry_description">
7021 <p>Whether the camera device will trigger autofocus for this request.<wbr/></p>
7024 <td class="entry_units">
7027 <td class="entry_range">
7030 <td class="entry_tags">
7031 <ul class="entry_tags">
7032 <li><a href="#tag_BC">BC</a></li>
7037 <tr class="entries_header">
7038 <th class="th_details" colspan="5">Details</th>
7040 <tr class="entry_cont">
7041 <td class="entry_details" colspan="5">
7042 <p>This entry is normally set to IDLE,<wbr/> or is not
7043 included at all in the request settings.<wbr/></p>
7044 <p>When included and set to START,<wbr/> the camera device will trigger the
7045 autofocus algorithm.<wbr/> If autofocus is disabled,<wbr/> this trigger has no effect.<wbr/></p>
7046 <p>When set to CANCEL,<wbr/> the camera device will cancel any active trigger,<wbr/>
7047 and return to its initial AF state.<wbr/></p>
7048 <p>Generally,<wbr/> applications should set this entry to START or CANCEL for only a
7049 single capture,<wbr/> and then return it to IDLE (or not set at all).<wbr/> Specifying
7050 START for multiple captures in a row means restarting the AF operation over
7051 and over again.<wbr/></p>
7052 <p>See <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a> for what the trigger means for each AF mode.<wbr/></p>
7053 <p>Using the autofocus trigger and the precapture trigger <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>
7054 simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
7055 the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
7056 focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
7057 trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
7058 changes to <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>,<wbr/> for example.<wbr/></p>
7062 <tr class="entries_header">
7063 <th class="th_details" colspan="5">HAL Implementation Details</th>
7065 <tr class="entry_cont">
7066 <td class="entry_details" colspan="5">
7067 <p>The HAL must support triggering the AF trigger while an AE precapture trigger is active
7068 (and vice versa),<wbr/> or at the same time as the AE trigger.<wbr/> It is acceptable for the HAL to
7069 treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
7070 AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
7071 to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
7075 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7076 <!-- end of entry -->
7079 <tr class="entry" id="dynamic_android.control.afState">
7080 <td class="entry_name
7082 android.<wbr/>control.<wbr/>af<wbr/>State
7084 <td class="entry_type">
7085 <span class="entry_type_name entry_type_name_enum">byte</span>
7087 <span class="entry_type_visibility"> [public]</span>
7090 <span class="entry_type_hwlevel">[legacy] </span>
7094 <ul class="entry_type_enum">
7096 <span class="entry_type_enum_name">INACTIVE</span>
7097 <span class="entry_type_enum_notes"><p>AF is off or has not yet tried to scan/<wbr/>been asked
7099 <p>When a camera device is opened,<wbr/> it starts in this
7100 state.<wbr/> This is a transient state,<wbr/> the camera device may
7101 skip reporting this state in capture
7102 result.<wbr/></p></span>
7105 <span class="entry_type_enum_name">PASSIVE_SCAN</span>
7106 <span class="entry_type_enum_notes"><p>AF is currently performing an AF scan initiated the
7107 camera device in a continuous autofocus mode.<wbr/></p>
7108 <p>Only used by CONTINUOUS_<wbr/>* AF modes.<wbr/> This is a transient
7109 state,<wbr/> the camera device may skip reporting this state in
7110 capture result.<wbr/></p></span>
7113 <span class="entry_type_enum_name">PASSIVE_FOCUSED</span>
7114 <span class="entry_type_enum_notes"><p>AF currently believes it is in focus,<wbr/> but may
7115 restart scanning at any time.<wbr/></p>
7116 <p>Only used by CONTINUOUS_<wbr/>* AF modes.<wbr/> This is a transient
7117 state,<wbr/> the camera device may skip reporting this state in
7118 capture result.<wbr/></p></span>
7121 <span class="entry_type_enum_name">ACTIVE_SCAN</span>
7122 <span class="entry_type_enum_notes"><p>AF is performing an AF scan because it was
7123 triggered by AF trigger.<wbr/></p>
7124 <p>Only used by AUTO or MACRO AF modes.<wbr/> This is a transient
7125 state,<wbr/> the camera device may skip reporting this state in
7126 capture result.<wbr/></p></span>
7129 <span class="entry_type_enum_name">FOCUSED_LOCKED</span>
7130 <span class="entry_type_enum_notes"><p>AF believes it is focused correctly and has locked
7132 <p>This state is reached only after an explicit START AF trigger has been
7133 sent (<a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>),<wbr/> when good focus has been obtained.<wbr/></p>
7134 <p>The lens will remain stationary until the AF mode (<a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>) is changed or
7135 a new AF trigger is sent to the camera device (<a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>).<wbr/></p></span>
7138 <span class="entry_type_enum_name">NOT_FOCUSED_LOCKED</span>
7139 <span class="entry_type_enum_notes"><p>AF has failed to focus successfully and has locked
7141 <p>This state is reached only after an explicit START AF trigger has been
7142 sent (<a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>),<wbr/> when good focus cannot be obtained.<wbr/></p>
7143 <p>The lens will remain stationary until the AF mode (<a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>) is changed or
7144 a new AF trigger is sent to the camera device (<a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>).<wbr/></p></span>
7147 <span class="entry_type_enum_name">PASSIVE_UNFOCUSED</span>
7148 <span class="entry_type_enum_notes"><p>AF finished a passive scan without finding focus,<wbr/>
7149 and may restart scanning at any time.<wbr/></p>
7150 <p>Only used by CONTINUOUS_<wbr/>* AF modes.<wbr/> This is a transient state,<wbr/> the camera
7151 device may skip reporting this state in capture result.<wbr/></p>
7152 <p>LEGACY camera devices do not support this state.<wbr/> When a passive
7153 scan has finished,<wbr/> it will always go to PASSIVE_<wbr/>FOCUSED.<wbr/></p></span>
7157 </td> <!-- entry_type -->
7159 <td class="entry_description">
7160 <p>Current state of auto-focus (AF) algorithm.<wbr/></p>
7163 <td class="entry_units">
7166 <td class="entry_range">
7169 <td class="entry_tags">
7173 <tr class="entries_header">
7174 <th class="th_details" colspan="5">Details</th>
7176 <tr class="entry_cont">
7177 <td class="entry_details" colspan="5">
7178 <p>Switching between or enabling AF modes (<a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>) always
7179 resets the AF state to INACTIVE.<wbr/> Similarly,<wbr/> switching between <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>,<wbr/>
7180 or <a href="#controls_android.control.sceneMode">android.<wbr/>control.<wbr/>scene<wbr/>Mode</a> if <code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == USE_<wbr/>SCENE_<wbr/>MODE</code> resets all
7181 the algorithm states to INACTIVE.<wbr/></p>
7182 <p>The camera device can do several state transitions between two results,<wbr/> if it is
7183 allowed by the state transition table.<wbr/> For example: INACTIVE may never actually be
7184 seen in a result.<wbr/></p>
7185 <p>The state in the result is the state for this image (in sync with this image): if
7186 AF state becomes FOCUSED,<wbr/> then the image data associated with this result should
7188 <p>Below are state transition tables for different AF modes.<wbr/></p>
7189 <p>When <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> is AF_<wbr/>MODE_<wbr/>OFF or AF_<wbr/>MODE_<wbr/>EDOF:</p>
7193 <th align="center">State</th>
7194 <th align="center">Transition Cause</th>
7195 <th align="center">New State</th>
7196 <th align="center">Notes</th>
7201 <td align="center">INACTIVE</td>
7202 <td align="center"></td>
7203 <td align="center">INACTIVE</td>
7204 <td align="center">Never changes</td>
7208 <p>When <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> is AF_<wbr/>MODE_<wbr/>AUTO or AF_<wbr/>MODE_<wbr/>MACRO:</p>
7212 <th align="center">State</th>
7213 <th align="center">Transition Cause</th>
7214 <th align="center">New State</th>
7215 <th align="center">Notes</th>
7220 <td align="center">INACTIVE</td>
7221 <td align="center">AF_<wbr/>TRIGGER</td>
7222 <td align="center">ACTIVE_<wbr/>SCAN</td>
7223 <td align="center">Start AF sweep,<wbr/> Lens now moving</td>
7226 <td align="center">ACTIVE_<wbr/>SCAN</td>
7227 <td align="center">AF sweep done</td>
7228 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7229 <td align="center">Focused,<wbr/> Lens now locked</td>
7232 <td align="center">ACTIVE_<wbr/>SCAN</td>
7233 <td align="center">AF sweep done</td>
7234 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7235 <td align="center">Not focused,<wbr/> Lens now locked</td>
7238 <td align="center">ACTIVE_<wbr/>SCAN</td>
7239 <td align="center">AF_<wbr/>CANCEL</td>
7240 <td align="center">INACTIVE</td>
7241 <td align="center">Cancel/<wbr/>reset AF,<wbr/> Lens now locked</td>
7244 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7245 <td align="center">AF_<wbr/>CANCEL</td>
7246 <td align="center">INACTIVE</td>
7247 <td align="center">Cancel/<wbr/>reset AF</td>
7250 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7251 <td align="center">AF_<wbr/>TRIGGER</td>
7252 <td align="center">ACTIVE_<wbr/>SCAN</td>
7253 <td align="center">Start new sweep,<wbr/> Lens now moving</td>
7256 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7257 <td align="center">AF_<wbr/>CANCEL</td>
7258 <td align="center">INACTIVE</td>
7259 <td align="center">Cancel/<wbr/>reset AF</td>
7262 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7263 <td align="center">AF_<wbr/>TRIGGER</td>
7264 <td align="center">ACTIVE_<wbr/>SCAN</td>
7265 <td align="center">Start new sweep,<wbr/> Lens now moving</td>
7268 <td align="center">Any state</td>
7269 <td align="center">Mode change</td>
7270 <td align="center">INACTIVE</td>
7271 <td align="center"></td>
7275 <p>For the above table,<wbr/> the camera device may skip reporting any state changes that happen
7276 without application intervention (i.<wbr/>e.<wbr/> mode switch,<wbr/> trigger,<wbr/> locking).<wbr/> Any state that
7277 can be skipped in that manner is called a transient state.<wbr/></p>
7278 <p>For example,<wbr/> for these AF modes (AF_<wbr/>MODE_<wbr/>AUTO and AF_<wbr/>MODE_<wbr/>MACRO),<wbr/> in addition to the
7279 state transitions listed in above table,<wbr/> it is also legal for the camera device to skip
7280 one or more transient states between two results.<wbr/> See below table for examples:</p>
7284 <th align="center">State</th>
7285 <th align="center">Transition Cause</th>
7286 <th align="center">New State</th>
7287 <th align="center">Notes</th>
7292 <td align="center">INACTIVE</td>
7293 <td align="center">AF_<wbr/>TRIGGER</td>
7294 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7295 <td align="center">Focus is already good or good after a scan,<wbr/> lens is now locked.<wbr/></td>
7298 <td align="center">INACTIVE</td>
7299 <td align="center">AF_<wbr/>TRIGGER</td>
7300 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7301 <td align="center">Focus failed after a scan,<wbr/> lens is now locked.<wbr/></td>
7304 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7305 <td align="center">AF_<wbr/>TRIGGER</td>
7306 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7307 <td align="center">Focus is already good or good after a scan,<wbr/> lens is now locked.<wbr/></td>
7310 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7311 <td align="center">AF_<wbr/>TRIGGER</td>
7312 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7313 <td align="center">Focus is good after a scan,<wbr/> lens is not locked.<wbr/></td>
7317 <p>When <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> is AF_<wbr/>MODE_<wbr/>CONTINUOUS_<wbr/>VIDEO:</p>
7321 <th align="center">State</th>
7322 <th align="center">Transition Cause</th>
7323 <th align="center">New State</th>
7324 <th align="center">Notes</th>
7329 <td align="center">INACTIVE</td>
7330 <td align="center">Camera device initiates new scan</td>
7331 <td align="center">PASSIVE_<wbr/>SCAN</td>
7332 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7335 <td align="center">INACTIVE</td>
7336 <td align="center">AF_<wbr/>TRIGGER</td>
7337 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7338 <td align="center">AF state query,<wbr/> Lens now locked</td>
7341 <td align="center">PASSIVE_<wbr/>SCAN</td>
7342 <td align="center">Camera device completes current scan</td>
7343 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7344 <td align="center">End AF scan,<wbr/> Lens now locked</td>
7347 <td align="center">PASSIVE_<wbr/>SCAN</td>
7348 <td align="center">Camera device fails current scan</td>
7349 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7350 <td align="center">End AF scan,<wbr/> Lens now locked</td>
7353 <td align="center">PASSIVE_<wbr/>SCAN</td>
7354 <td align="center">AF_<wbr/>TRIGGER</td>
7355 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7356 <td align="center">Immediate transition,<wbr/> if focus is good.<wbr/> Lens now locked</td>
7359 <td align="center">PASSIVE_<wbr/>SCAN</td>
7360 <td align="center">AF_<wbr/>TRIGGER</td>
7361 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7362 <td align="center">Immediate transition,<wbr/> if focus is bad.<wbr/> Lens now locked</td>
7365 <td align="center">PASSIVE_<wbr/>SCAN</td>
7366 <td align="center">AF_<wbr/>CANCEL</td>
7367 <td align="center">INACTIVE</td>
7368 <td align="center">Reset lens position,<wbr/> Lens now locked</td>
7371 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7372 <td align="center">Camera device initiates new scan</td>
7373 <td align="center">PASSIVE_<wbr/>SCAN</td>
7374 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7377 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7378 <td align="center">Camera device initiates new scan</td>
7379 <td align="center">PASSIVE_<wbr/>SCAN</td>
7380 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7383 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7384 <td align="center">AF_<wbr/>TRIGGER</td>
7385 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7386 <td align="center">Immediate transition,<wbr/> lens now locked</td>
7389 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7390 <td align="center">AF_<wbr/>TRIGGER</td>
7391 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7392 <td align="center">Immediate transition,<wbr/> lens now locked</td>
7395 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7396 <td align="center">AF_<wbr/>TRIGGER</td>
7397 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7398 <td align="center">No effect</td>
7401 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7402 <td align="center">AF_<wbr/>CANCEL</td>
7403 <td align="center">INACTIVE</td>
7404 <td align="center">Restart AF scan</td>
7407 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7408 <td align="center">AF_<wbr/>TRIGGER</td>
7409 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7410 <td align="center">No effect</td>
7413 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7414 <td align="center">AF_<wbr/>CANCEL</td>
7415 <td align="center">INACTIVE</td>
7416 <td align="center">Restart AF scan</td>
7420 <p>When <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> is AF_<wbr/>MODE_<wbr/>CONTINUOUS_<wbr/>PICTURE:</p>
7424 <th align="center">State</th>
7425 <th align="center">Transition Cause</th>
7426 <th align="center">New State</th>
7427 <th align="center">Notes</th>
7432 <td align="center">INACTIVE</td>
7433 <td align="center">Camera device initiates new scan</td>
7434 <td align="center">PASSIVE_<wbr/>SCAN</td>
7435 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7438 <td align="center">INACTIVE</td>
7439 <td align="center">AF_<wbr/>TRIGGER</td>
7440 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7441 <td align="center">AF state query,<wbr/> Lens now locked</td>
7444 <td align="center">PASSIVE_<wbr/>SCAN</td>
7445 <td align="center">Camera device completes current scan</td>
7446 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7447 <td align="center">End AF scan,<wbr/> Lens now locked</td>
7450 <td align="center">PASSIVE_<wbr/>SCAN</td>
7451 <td align="center">Camera device fails current scan</td>
7452 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7453 <td align="center">End AF scan,<wbr/> Lens now locked</td>
7456 <td align="center">PASSIVE_<wbr/>SCAN</td>
7457 <td align="center">AF_<wbr/>TRIGGER</td>
7458 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7459 <td align="center">Eventual transition once the focus is good.<wbr/> Lens now locked</td>
7462 <td align="center">PASSIVE_<wbr/>SCAN</td>
7463 <td align="center">AF_<wbr/>TRIGGER</td>
7464 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7465 <td align="center">Eventual transition if cannot find focus.<wbr/> Lens now locked</td>
7468 <td align="center">PASSIVE_<wbr/>SCAN</td>
7469 <td align="center">AF_<wbr/>CANCEL</td>
7470 <td align="center">INACTIVE</td>
7471 <td align="center">Reset lens position,<wbr/> Lens now locked</td>
7474 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7475 <td align="center">Camera device initiates new scan</td>
7476 <td align="center">PASSIVE_<wbr/>SCAN</td>
7477 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7480 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7481 <td align="center">Camera device initiates new scan</td>
7482 <td align="center">PASSIVE_<wbr/>SCAN</td>
7483 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7486 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7487 <td align="center">AF_<wbr/>TRIGGER</td>
7488 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7489 <td align="center">Immediate trans.<wbr/> Lens now locked</td>
7492 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7493 <td align="center">AF_<wbr/>TRIGGER</td>
7494 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7495 <td align="center">Immediate trans.<wbr/> Lens now locked</td>
7498 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7499 <td align="center">AF_<wbr/>TRIGGER</td>
7500 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7501 <td align="center">No effect</td>
7504 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7505 <td align="center">AF_<wbr/>CANCEL</td>
7506 <td align="center">INACTIVE</td>
7507 <td align="center">Restart AF scan</td>
7510 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7511 <td align="center">AF_<wbr/>TRIGGER</td>
7512 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7513 <td align="center">No effect</td>
7516 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7517 <td align="center">AF_<wbr/>CANCEL</td>
7518 <td align="center">INACTIVE</td>
7519 <td align="center">Restart AF scan</td>
7523 <p>When switch between AF_<wbr/>MODE_<wbr/>CONTINUOUS_<wbr/>* (CAF modes) and AF_<wbr/>MODE_<wbr/>AUTO/<wbr/>AF_<wbr/>MODE_<wbr/>MACRO
7524 (AUTO modes),<wbr/> the initial INACTIVE or PASSIVE_<wbr/>SCAN states may be skipped by the
7525 camera device.<wbr/> When a trigger is included in a mode switch request,<wbr/> the trigger
7526 will be evaluated in the context of the new mode in the request.<wbr/>
7527 See below table for examples:</p>
7531 <th align="center">State</th>
7532 <th align="center">Transition Cause</th>
7533 <th align="center">New State</th>
7534 <th align="center">Notes</th>
7539 <td align="center">any state</td>
7540 <td align="center">CAF-->AUTO mode switch</td>
7541 <td align="center">INACTIVE</td>
7542 <td align="center">Mode switch without trigger,<wbr/> initial state must be INACTIVE</td>
7545 <td align="center">any state</td>
7546 <td align="center">CAF-->AUTO mode switch with AF_<wbr/>TRIGGER</td>
7547 <td align="center">trigger-reachable states from INACTIVE</td>
7548 <td align="center">Mode switch with trigger,<wbr/> INACTIVE is skipped</td>
7551 <td align="center">any state</td>
7552 <td align="center">AUTO-->CAF mode switch</td>
7553 <td align="center">passively reachable states from INACTIVE</td>
7554 <td align="center">Mode switch without trigger,<wbr/> passive transient state is skipped</td>
7562 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7563 <!-- end of entry -->
7566 <tr class="entry" id="dynamic_android.control.afTriggerId">
7567 <td class="entry_name
7568 entry_name_deprecated
7570 android.<wbr/>control.<wbr/>af<wbr/>Trigger<wbr/>Id
7572 <td class="entry_type">
7573 <span class="entry_type_name">int32</span>
7575 <span class="entry_type_visibility"> [system]</span>
7579 <span class="entry_type_deprecated">[deprecated] </span>
7583 </td> <!-- entry_type -->
7585 <td class="entry_description">
7586 <p>The ID sent with the latest
7587 CAMERA2_<wbr/>TRIGGER_<wbr/>AUTOFOCUS call</p>
7590 <td class="entry_units">
7593 <td class="entry_range">
7594 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
7597 <td class="entry_tags">
7601 <tr class="entries_header">
7602 <th class="th_details" colspan="5">Details</th>
7604 <tr class="entry_cont">
7605 <td class="entry_details" colspan="5">
7606 <p>Must be 0 if no CAMERA2_<wbr/>TRIGGER_<wbr/>AUTOFOCUS trigger
7607 received yet by HAL.<wbr/> Always updated even if AF algorithm
7608 ignores the trigger</p>
7613 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7614 <!-- end of entry -->
7617 <tr class="entry" id="dynamic_android.control.awbLock">
7618 <td class="entry_name
7620 android.<wbr/>control.<wbr/>awb<wbr/>Lock
7622 <td class="entry_type">
7623 <span class="entry_type_name entry_type_name_enum">byte</span>
7625 <span class="entry_type_visibility"> [public as boolean]</span>
7628 <span class="entry_type_hwlevel">[legacy] </span>
7632 <ul class="entry_type_enum">
7634 <span class="entry_type_enum_name">OFF</span>
7635 <span class="entry_type_enum_notes"><p>Auto-white balance lock is disabled; the AWB
7636 algorithm is free to update its parameters if in AUTO
7637 mode.<wbr/></p></span>
7640 <span class="entry_type_enum_name">ON</span>
7641 <span class="entry_type_enum_notes"><p>Auto-white balance lock is enabled; the AWB
7642 algorithm will not update its parameters while the lock
7643 is active.<wbr/></p></span>
7647 </td> <!-- entry_type -->
7649 <td class="entry_description">
7650 <p>Whether auto-white balance (AWB) is currently locked to its
7651 latest calculated values.<wbr/></p>
7654 <td class="entry_units">
7657 <td class="entry_range">
7660 <td class="entry_tags">
7661 <ul class="entry_tags">
7662 <li><a href="#tag_BC">BC</a></li>
7667 <tr class="entries_header">
7668 <th class="th_details" colspan="5">Details</th>
7670 <tr class="entry_cont">
7671 <td class="entry_details" colspan="5">
7672 <p>When set to <code>true</code> (ON),<wbr/> the AWB algorithm is locked to its latest parameters,<wbr/>
7673 and will not change color balance settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
7674 <p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
7675 get locked do not necessarily correspond to the settings that were present in the
7676 latest capture result received from the camera device,<wbr/> since additional captures
7677 and AWB updates may have occurred even before the result was sent out.<wbr/> If an
7678 application is switching between automatic and manual control and wishes to eliminate
7679 any flicker during the switch,<wbr/> the following procedure is recommended:</p>
7681 <li>Starting in auto-AWB mode:</li>
7683 <li>Wait for the first result to be output that has the AWB locked</li>
7684 <li>Copy AWB settings from that result into a request,<wbr/> set the request to manual AWB</li>
7685 <li>Submit the capture request,<wbr/> proceed to run manual AWB as desired.<wbr/></li>
7687 <p>Note that AWB lock is only meaningful when
7688 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> is in the AUTO mode; in other modes,<wbr/>
7689 AWB is already fixed to a specific setting.<wbr/></p>
7690 <p>Some LEGACY devices may not support ON; the value is then overridden to OFF.<wbr/></p>
7695 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7696 <!-- end of entry -->
7699 <tr class="entry" id="dynamic_android.control.awbMode">
7700 <td class="entry_name
7702 android.<wbr/>control.<wbr/>awb<wbr/>Mode
7704 <td class="entry_type">
7705 <span class="entry_type_name entry_type_name_enum">byte</span>
7707 <span class="entry_type_visibility"> [public]</span>
7710 <span class="entry_type_hwlevel">[legacy] </span>
7714 <ul class="entry_type_enum">
7716 <span class="entry_type_enum_name">OFF</span>
7717 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled.<wbr/></p>
7718 <p>The application-selected color transform matrix
7719 (<a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>) and gains
7720 (<a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a>) are used by the camera
7721 device for manual white balance control.<wbr/></p></span>
7724 <span class="entry_type_enum_name">AUTO</span>
7725 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is active.<wbr/></p>
7726 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7727 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7728 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7729 values used by the camera device for the transform and gains
7730 will be available in the capture result for this request.<wbr/></p></span>
7733 <span class="entry_type_enum_name">INCANDESCENT</span>
7734 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7735 the camera device uses incandescent light as the assumed scene
7736 illumination for white balance.<wbr/></p>
7737 <p>While the exact white balance transforms are up to the
7738 camera device,<wbr/> they will approximately match the CIE
7739 standard illuminant A.<wbr/></p>
7740 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7741 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7742 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7743 values used by the camera device for the transform and gains
7744 will be available in the capture result for this request.<wbr/></p></span>
7747 <span class="entry_type_enum_name">FLUORESCENT</span>
7748 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7749 the camera device uses fluorescent light as the assumed scene
7750 illumination for white balance.<wbr/></p>
7751 <p>While the exact white balance transforms are up to the
7752 camera device,<wbr/> they will approximately match the CIE
7753 standard illuminant F2.<wbr/></p>
7754 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7755 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7756 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7757 values used by the camera device for the transform and gains
7758 will be available in the capture result for this request.<wbr/></p></span>
7761 <span class="entry_type_enum_name">WARM_FLUORESCENT</span>
7762 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7763 the camera device uses warm fluorescent light as the assumed scene
7764 illumination for white balance.<wbr/></p>
7765 <p>While the exact white balance transforms are up to the
7766 camera device,<wbr/> they will approximately match the CIE
7767 standard illuminant F4.<wbr/></p>
7768 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7769 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7770 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7771 values used by the camera device for the transform and gains
7772 will be available in the capture result for this request.<wbr/></p></span>
7775 <span class="entry_type_enum_name">DAYLIGHT</span>
7776 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7777 the camera device uses daylight light as the assumed scene
7778 illumination for white balance.<wbr/></p>
7779 <p>While the exact white balance transforms are up to the
7780 camera device,<wbr/> they will approximately match the CIE
7781 standard illuminant D65.<wbr/></p>
7782 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7783 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7784 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7785 values used by the camera device for the transform and gains
7786 will be available in the capture result for this request.<wbr/></p></span>
7789 <span class="entry_type_enum_name">CLOUDY_DAYLIGHT</span>
7790 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7791 the camera device uses cloudy daylight light as the assumed scene
7792 illumination for white balance.<wbr/></p>
7793 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7794 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7795 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7796 values used by the camera device for the transform and gains
7797 will be available in the capture result for this request.<wbr/></p></span>
7800 <span class="entry_type_enum_name">TWILIGHT</span>
7801 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7802 the camera device uses twilight light as the assumed scene
7803 illumination for white balance.<wbr/></p>
7804 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7805 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7806 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7807 values used by the camera device for the transform and gains
7808 will be available in the capture result for this request.<wbr/></p></span>
7811 <span class="entry_type_enum_name">SHADE</span>
7812 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7813 the camera device uses shade light as the assumed scene
7814 illumination for white balance.<wbr/></p>
7815 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7816 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7817 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7818 values used by the camera device for the transform and gains
7819 will be available in the capture result for this request.<wbr/></p></span>
7823 </td> <!-- entry_type -->
7825 <td class="entry_description">
7826 <p>Whether auto-white balance (AWB) is currently setting the color
7827 transform fields,<wbr/> and what its illumination target
7831 <td class="entry_units">
7834 <td class="entry_range">
7835 <p><a href="#static_android.control.awbAvailableModes">android.<wbr/>control.<wbr/>awb<wbr/>Available<wbr/>Modes</a></p>
7838 <td class="entry_tags">
7839 <ul class="entry_tags">
7840 <li><a href="#tag_BC">BC</a></li>
7845 <tr class="entries_header">
7846 <th class="th_details" colspan="5">Details</th>
7848 <tr class="entry_cont">
7849 <td class="entry_details" colspan="5">
7850 <p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is AUTO.<wbr/></p>
7851 <p>When set to the ON mode,<wbr/> the camera device's auto-white balance
7852 routine is enabled,<wbr/> overriding the application's selected
7853 <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>,<wbr/> <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
7854 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a>.<wbr/> Note that when <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>
7855 is OFF,<wbr/> the behavior of AWB is device dependent.<wbr/> It is recommened to
7856 also set AWB mode to OFF or lock AWB by using <a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> before
7857 setting AE mode to OFF.<wbr/></p>
7858 <p>When set to the OFF mode,<wbr/> the camera device's auto-white balance
7859 routine is disabled.<wbr/> The application manually controls the white
7860 balance by <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>,<wbr/> <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a>
7861 and <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a>.<wbr/></p>
7862 <p>When set to any other modes,<wbr/> the camera device's auto-white
7863 balance routine is disabled.<wbr/> The camera device uses each
7864 particular illumination target for white balance
7865 adjustment.<wbr/> The application's values for
7866 <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>,<wbr/>
7867 <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
7868 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> are ignored.<wbr/></p>
7873 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7874 <!-- end of entry -->
7877 <tr class="entry" id="dynamic_android.control.awbRegions">
7878 <td class="entry_name
7880 android.<wbr/>control.<wbr/>awb<wbr/>Regions
7882 <td class="entry_type">
7883 <span class="entry_type_name">int32</span>
7884 <span class="entry_type_container">x</span>
7886 <span class="entry_type_array">
7889 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
7896 </td> <!-- entry_type -->
7898 <td class="entry_description">
7899 <p>List of metering areas to use for auto-white-balance illuminant
7900 estimation.<wbr/></p>
7903 <td class="entry_units">
7904 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
7907 <td class="entry_range">
7908 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
7909 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
7912 <td class="entry_tags">
7913 <ul class="entry_tags">
7914 <li><a href="#tag_BC">BC</a></li>
7919 <tr class="entries_header">
7920 <th class="th_details" colspan="5">Details</th>
7922 <tr class="entry_cont">
7923 <td class="entry_details" colspan="5">
7924 <p>Not available if <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a> is 0.<wbr/>
7925 Otherwise will always be present.<wbr/></p>
7926 <p>The maximum number of regions supported by the device is determined by the value
7927 of <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a>.<wbr/></p>
7928 <p>The coordinate system is based on the active pixel array,<wbr/>
7929 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
7930 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
7931 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
7932 bottom-right pixel in the active pixel array.<wbr/></p>
7933 <p>The weight must range from 0 to 1000,<wbr/> and represents a weight
7934 for every pixel in the area.<wbr/> This means that a large metering area
7935 with the same weight as a smaller area will have more effect in
7936 the metering result.<wbr/> Metering areas can partially overlap and the
7937 camera device will add the weights in the overlap region.<wbr/></p>
7938 <p>The weights are relative to weights of other white balance metering regions,<wbr/> so if
7939 only one region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with
7940 0 weight is ignored.<wbr/></p>
7941 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
7942 camera device.<wbr/></p>
7943 <p>If the metering region is outside the used <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> returned in
7944 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
7945 region and output only the intersection rectangle as the metering region in the result
7946 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
7947 not reported in the result metadata.<wbr/></p>
7951 <tr class="entries_header">
7952 <th class="th_details" colspan="5">HAL Implementation Details</th>
7954 <tr class="entry_cont">
7955 <td class="entry_details" colspan="5">
7956 <p>The HAL level representation of MeteringRectangle[] is a
7957 int[5 * area_<wbr/>count].<wbr/>
7958 Every five elements represent a metering region of
7959 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
7960 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
7961 exclusive on xmax and ymax.<wbr/></p>
7965 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7966 <!-- end of entry -->
7969 <tr class="entry" id="dynamic_android.control.captureIntent">
7970 <td class="entry_name
7972 android.<wbr/>control.<wbr/>capture<wbr/>Intent
7974 <td class="entry_type">
7975 <span class="entry_type_name entry_type_name_enum">byte</span>
7977 <span class="entry_type_visibility"> [public]</span>
7980 <span class="entry_type_hwlevel">[legacy] </span>
7984 <ul class="entry_type_enum">
7986 <span class="entry_type_enum_name">CUSTOM</span>
7987 <span class="entry_type_enum_notes"><p>The goal of this request doesn't fall into the other
7988 categories.<wbr/> The camera device will default to preview-like
7989 behavior.<wbr/></p></span>
7992 <span class="entry_type_enum_name">PREVIEW</span>
7993 <span class="entry_type_enum_notes"><p>This request is for a preview-like use case.<wbr/></p>
7994 <p>The precapture trigger may be used to start off a metering
7995 w/<wbr/>flash sequence.<wbr/></p></span>
7998 <span class="entry_type_enum_name">STILL_CAPTURE</span>
7999 <span class="entry_type_enum_notes"><p>This request is for a still capture-type
8001 <p>If the flash unit is under automatic control,<wbr/> it may fire as needed.<wbr/></p></span>
8004 <span class="entry_type_enum_name">VIDEO_RECORD</span>
8005 <span class="entry_type_enum_notes"><p>This request is for a video recording
8006 use case.<wbr/></p></span>
8009 <span class="entry_type_enum_name">VIDEO_SNAPSHOT</span>
8010 <span class="entry_type_enum_notes"><p>This request is for a video snapshot (still
8011 image while recording video) use case.<wbr/></p>
8012 <p>The camera device should take the highest-quality image
8013 possible (given the other settings) without disrupting the
8014 frame rate of video recording.<wbr/> </p></span>
8017 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
8018 <span class="entry_type_enum_notes"><p>This request is for a ZSL usecase; the
8019 application will stream full-resolution images and
8020 reprocess one or several later for a final
8021 capture.<wbr/></p></span>
8024 <span class="entry_type_enum_name">MANUAL</span>
8025 <span class="entry_type_enum_notes"><p>This request is for manual capture use case where
8026 the applications want to directly control the capture parameters.<wbr/></p>
8027 <p>For example,<wbr/> the application may wish to manually control
8028 <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>,<wbr/> etc.<wbr/></p></span>
8032 </td> <!-- entry_type -->
8034 <td class="entry_description">
8035 <p>Information to the camera device 3A (auto-exposure,<wbr/>
8036 auto-focus,<wbr/> auto-white balance) routines about the purpose
8037 of this capture,<wbr/> to help the camera device to decide optimal 3A
8041 <td class="entry_units">
8044 <td class="entry_range">
8047 <td class="entry_tags">
8048 <ul class="entry_tags">
8049 <li><a href="#tag_BC">BC</a></li>
8054 <tr class="entries_header">
8055 <th class="th_details" colspan="5">Details</th>
8057 <tr class="entry_cont">
8058 <td class="entry_details" colspan="5">
8059 <p>This control (except for MANUAL) is only effective if
8060 <code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> != OFF</code> and any 3A routine is active.<wbr/></p>
8061 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG will be supported if <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>
8062 contains PRIVATE_<wbr/>REPROCESSING or YUV_<wbr/>REPROCESSING.<wbr/> MANUAL will be supported if
8063 <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains MANUAL_<wbr/>SENSOR.<wbr/> Other intent values are
8064 always supported.<wbr/></p>
8069 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8070 <!-- end of entry -->
8073 <tr class="entry" id="dynamic_android.control.awbState">
8074 <td class="entry_name
8076 android.<wbr/>control.<wbr/>awb<wbr/>State
8078 <td class="entry_type">
8079 <span class="entry_type_name entry_type_name_enum">byte</span>
8081 <span class="entry_type_visibility"> [public]</span>
8084 <span class="entry_type_hwlevel">[limited] </span>
8088 <ul class="entry_type_enum">
8090 <span class="entry_type_enum_name">INACTIVE</span>
8091 <span class="entry_type_enum_notes"><p>AWB is not in auto mode,<wbr/> or has not yet started metering.<wbr/></p>
8092 <p>When a camera device is opened,<wbr/> it starts in this
8093 state.<wbr/> This is a transient state,<wbr/> the camera device may
8094 skip reporting this state in capture
8095 result.<wbr/></p></span>
8098 <span class="entry_type_enum_name">SEARCHING</span>
8099 <span class="entry_type_enum_notes"><p>AWB doesn't yet have a good set of control
8100 values for the current scene.<wbr/></p>
8101 <p>This is a transient state,<wbr/> the camera device
8102 may skip reporting this state in capture result.<wbr/></p></span>
8105 <span class="entry_type_enum_name">CONVERGED</span>
8106 <span class="entry_type_enum_notes"><p>AWB has a good set of control values for the
8107 current scene.<wbr/></p></span>
8110 <span class="entry_type_enum_name">LOCKED</span>
8111 <span class="entry_type_enum_notes"><p>AWB has been locked.<wbr/></p></span>
8115 </td> <!-- entry_type -->
8117 <td class="entry_description">
8118 <p>Current state of auto-white balance (AWB) algorithm.<wbr/></p>
8121 <td class="entry_units">
8124 <td class="entry_range">
8127 <td class="entry_tags">
8131 <tr class="entries_header">
8132 <th class="th_details" colspan="5">Details</th>
8134 <tr class="entry_cont">
8135 <td class="entry_details" colspan="5">
8136 <p>Switching between or enabling AWB modes (<a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>) always
8137 resets the AWB state to INACTIVE.<wbr/> Similarly,<wbr/> switching between <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>,<wbr/>
8138 or <a href="#controls_android.control.sceneMode">android.<wbr/>control.<wbr/>scene<wbr/>Mode</a> if <code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == USE_<wbr/>SCENE_<wbr/>MODE</code> resets all
8139 the algorithm states to INACTIVE.<wbr/></p>
8140 <p>The camera device can do several state transitions between two results,<wbr/> if it is
8141 allowed by the state transition table.<wbr/> So INACTIVE may never actually be seen in
8143 <p>The state in the result is the state for this image (in sync with this image): if
8144 AWB state becomes CONVERGED,<wbr/> then the image data associated with this result should
8145 be good to use.<wbr/></p>
8146 <p>Below are state transition tables for different AWB modes.<wbr/></p>
8147 <p>When <code><a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> != AWB_<wbr/>MODE_<wbr/>AUTO</code>:</p>
8151 <th align="center">State</th>
8152 <th align="center">Transition Cause</th>
8153 <th align="center">New State</th>
8154 <th align="center">Notes</th>
8159 <td align="center">INACTIVE</td>
8160 <td align="center"></td>
8161 <td align="center">INACTIVE</td>
8162 <td align="center">Camera device auto white balance algorithm is disabled</td>
8166 <p>When <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> is AWB_<wbr/>MODE_<wbr/>AUTO:</p>
8170 <th align="center">State</th>
8171 <th align="center">Transition Cause</th>
8172 <th align="center">New State</th>
8173 <th align="center">Notes</th>
8178 <td align="center">INACTIVE</td>
8179 <td align="center">Camera device initiates AWB scan</td>
8180 <td align="center">SEARCHING</td>
8181 <td align="center">Values changing</td>
8184 <td align="center">INACTIVE</td>
8185 <td align="center"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is ON</td>
8186 <td align="center">LOCKED</td>
8187 <td align="center">Values locked</td>
8190 <td align="center">SEARCHING</td>
8191 <td align="center">Camera device finishes AWB scan</td>
8192 <td align="center">CONVERGED</td>
8193 <td align="center">Good values,<wbr/> not changing</td>
8196 <td align="center">SEARCHING</td>
8197 <td align="center"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is ON</td>
8198 <td align="center">LOCKED</td>
8199 <td align="center">Values locked</td>
8202 <td align="center">CONVERGED</td>
8203 <td align="center">Camera device initiates AWB scan</td>
8204 <td align="center">SEARCHING</td>
8205 <td align="center">Values changing</td>
8208 <td align="center">CONVERGED</td>
8209 <td align="center"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is ON</td>
8210 <td align="center">LOCKED</td>
8211 <td align="center">Values locked</td>
8214 <td align="center">LOCKED</td>
8215 <td align="center"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is OFF</td>
8216 <td align="center">SEARCHING</td>
8217 <td align="center">Values not good after unlock</td>
8221 <p>For the above table,<wbr/> the camera device may skip reporting any state changes that happen
8222 without application intervention (i.<wbr/>e.<wbr/> mode switch,<wbr/> trigger,<wbr/> locking).<wbr/> Any state that
8223 can be skipped in that manner is called a transient state.<wbr/></p>
8224 <p>For example,<wbr/> for this AWB mode (AWB_<wbr/>MODE_<wbr/>AUTO),<wbr/> in addition to the state transitions
8225 listed in above table,<wbr/> it is also legal for the camera device to skip one or more
8226 transient states between two results.<wbr/> See below table for examples:</p>
8230 <th align="center">State</th>
8231 <th align="center">Transition Cause</th>
8232 <th align="center">New State</th>
8233 <th align="center">Notes</th>
8238 <td align="center">INACTIVE</td>
8239 <td align="center">Camera device finished AWB scan</td>
8240 <td align="center">CONVERGED</td>
8241 <td align="center">Values are already good,<wbr/> transient states are skipped by camera device.<wbr/></td>
8244 <td align="center">LOCKED</td>
8245 <td align="center"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is OFF</td>
8246 <td align="center">CONVERGED</td>
8247 <td align="center">Values good after unlock,<wbr/> transient states are skipped by camera device.<wbr/></td>
8255 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8256 <!-- end of entry -->
8259 <tr class="entry" id="dynamic_android.control.effectMode">
8260 <td class="entry_name
8262 android.<wbr/>control.<wbr/>effect<wbr/>Mode
8264 <td class="entry_type">
8265 <span class="entry_type_name entry_type_name_enum">byte</span>
8267 <span class="entry_type_visibility"> [public]</span>
8270 <span class="entry_type_hwlevel">[legacy] </span>
8274 <ul class="entry_type_enum">
8276 <span class="entry_type_enum_name">OFF</span>
8277 <span class="entry_type_enum_notes"><p>No color effect will be applied.<wbr/></p></span>
8280 <span class="entry_type_enum_name">MONO</span>
8281 <span class="entry_type_enum_optional">[optional]</span>
8282 <span class="entry_type_enum_notes"><p>A "monocolor" effect where the image is mapped into
8283 a single color.<wbr/></p>
8284 <p>This will typically be grayscale.<wbr/></p></span>
8287 <span class="entry_type_enum_name">NEGATIVE</span>
8288 <span class="entry_type_enum_optional">[optional]</span>
8289 <span class="entry_type_enum_notes"><p>A "photo-negative" effect where the image's colors
8290 are inverted.<wbr/></p></span>
8293 <span class="entry_type_enum_name">SOLARIZE</span>
8294 <span class="entry_type_enum_optional">[optional]</span>
8295 <span class="entry_type_enum_notes"><p>A "solarisation" effect (Sabattier effect) where the
8296 image is wholly or partially reversed in
8297 tone.<wbr/></p></span>
8300 <span class="entry_type_enum_name">SEPIA</span>
8301 <span class="entry_type_enum_optional">[optional]</span>
8302 <span class="entry_type_enum_notes"><p>A "sepia" effect where the image is mapped into warm
8303 gray,<wbr/> red,<wbr/> and brown tones.<wbr/></p></span>
8306 <span class="entry_type_enum_name">POSTERIZE</span>
8307 <span class="entry_type_enum_optional">[optional]</span>
8308 <span class="entry_type_enum_notes"><p>A "posterization" effect where the image uses
8309 discrete regions of tone rather than a continuous
8310 gradient of tones.<wbr/></p></span>
8313 <span class="entry_type_enum_name">WHITEBOARD</span>
8314 <span class="entry_type_enum_optional">[optional]</span>
8315 <span class="entry_type_enum_notes"><p>A "whiteboard" effect where the image is typically displayed
8316 as regions of white,<wbr/> with black or grey details.<wbr/></p></span>
8319 <span class="entry_type_enum_name">BLACKBOARD</span>
8320 <span class="entry_type_enum_optional">[optional]</span>
8321 <span class="entry_type_enum_notes"><p>A "blackboard" effect where the image is typically displayed
8322 as regions of black,<wbr/> with white or grey details.<wbr/></p></span>
8325 <span class="entry_type_enum_name">AQUA</span>
8326 <span class="entry_type_enum_optional">[optional]</span>
8327 <span class="entry_type_enum_notes"><p>An "aqua" effect where a blue hue is added to the image.<wbr/></p></span>
8331 </td> <!-- entry_type -->
8333 <td class="entry_description">
8334 <p>A special color effect to apply.<wbr/></p>
8337 <td class="entry_units">
8340 <td class="entry_range">
8341 <p><a href="#static_android.control.availableEffects">android.<wbr/>control.<wbr/>available<wbr/>Effects</a></p>
8344 <td class="entry_tags">
8345 <ul class="entry_tags">
8346 <li><a href="#tag_BC">BC</a></li>
8351 <tr class="entries_header">
8352 <th class="th_details" colspan="5">Details</th>
8354 <tr class="entry_cont">
8355 <td class="entry_details" colspan="5">
8356 <p>When this mode is set,<wbr/> a color effect will be applied
8357 to images produced by the camera device.<wbr/> The interpretation
8358 and implementation of these color effects is left to the
8359 implementor of the camera device,<wbr/> and should not be
8360 depended on to be consistent (or present) across all
8366 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8367 <!-- end of entry -->
8370 <tr class="entry" id="dynamic_android.control.mode">
8371 <td class="entry_name
8373 android.<wbr/>control.<wbr/>mode
8375 <td class="entry_type">
8376 <span class="entry_type_name entry_type_name_enum">byte</span>
8378 <span class="entry_type_visibility"> [public]</span>
8381 <span class="entry_type_hwlevel">[legacy] </span>
8385 <ul class="entry_type_enum">
8387 <span class="entry_type_enum_name">OFF</span>
8388 <span class="entry_type_enum_notes"><p>Full application control of pipeline.<wbr/></p>
8389 <p>All control by the device's metering and focusing (3A)
8390 routines is disabled,<wbr/> and no other settings in
8391 android.<wbr/>control.<wbr/>* have any effect,<wbr/> except that
8392 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> may be used by the camera
8393 device to select post-processing values for processing
8394 blocks that do not allow for manual control,<wbr/> or are not
8395 exposed by the camera API.<wbr/></p>
8396 <p>However,<wbr/> the camera device's 3A routines may continue to
8397 collect statistics and update their internal state so that
8398 when control is switched to AUTO mode,<wbr/> good control values
8399 can be immediately applied.<wbr/></p></span>
8402 <span class="entry_type_enum_name">AUTO</span>
8403 <span class="entry_type_enum_notes"><p>Use settings for each individual 3A routine.<wbr/></p>
8404 <p>Manual control of capture parameters is disabled.<wbr/> All
8405 controls in android.<wbr/>control.<wbr/>* besides sceneMode take
8406 effect.<wbr/></p></span>
8409 <span class="entry_type_enum_name">USE_SCENE_MODE</span>
8410 <span class="entry_type_enum_optional">[optional]</span>
8411 <span class="entry_type_enum_notes"><p>Use a specific scene mode.<wbr/></p>
8412 <p>Enabling this disables control.<wbr/>aeMode,<wbr/> control.<wbr/>awbMode and
8413 control.<wbr/>afMode controls; the camera device will ignore
8414 those settings while USE_<wbr/>SCENE_<wbr/>MODE is active (except for
8415 FACE_<wbr/>PRIORITY scene mode).<wbr/> Other control entries are still active.<wbr/>
8416 This setting can only be used if scene mode is supported (i.<wbr/>e.<wbr/>
8417 <a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a>
8418 contain some modes other than DISABLED).<wbr/></p></span>
8421 <span class="entry_type_enum_name">OFF_KEEP_STATE</span>
8422 <span class="entry_type_enum_optional">[optional]</span>
8423 <span class="entry_type_enum_notes"><p>Same as OFF mode,<wbr/> except that this capture will not be
8424 used by camera device background auto-exposure,<wbr/> auto-white balance and
8425 auto-focus algorithms (3A) to update their statistics.<wbr/></p>
8426 <p>Specifically,<wbr/> the 3A routines are locked to the last
8427 values set from a request with AUTO,<wbr/> OFF,<wbr/> or
8428 USE_<wbr/>SCENE_<wbr/>MODE,<wbr/> and any statistics or state updates
8429 collected from manual captures with OFF_<wbr/>KEEP_<wbr/>STATE will be
8430 discarded by the camera device.<wbr/></p></span>
8434 </td> <!-- entry_type -->
8436 <td class="entry_description">
8437 <p>Overall mode of 3A (auto-exposure,<wbr/> auto-white-balance,<wbr/> auto-focus) control
8441 <td class="entry_units">
8444 <td class="entry_range">
8445 <p><a href="#static_android.control.availableModes">android.<wbr/>control.<wbr/>available<wbr/>Modes</a></p>
8448 <td class="entry_tags">
8449 <ul class="entry_tags">
8450 <li><a href="#tag_BC">BC</a></li>
8455 <tr class="entries_header">
8456 <th class="th_details" colspan="5">Details</th>
8458 <tr class="entry_cont">
8459 <td class="entry_details" colspan="5">
8460 <p>This is a top-level 3A control switch.<wbr/> When set to OFF,<wbr/> all 3A control
8461 by the camera device is disabled.<wbr/> The application must set the fields for
8462 capture parameters itself.<wbr/></p>
8463 <p>When set to AUTO,<wbr/> the individual algorithm controls in
8464 android.<wbr/>control.<wbr/>* are in effect,<wbr/> such as <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>.<wbr/></p>
8465 <p>When set to USE_<wbr/>SCENE_<wbr/>MODE,<wbr/> the individual controls in
8466 android.<wbr/>control.<wbr/>* are mostly disabled,<wbr/> and the camera device implements
8467 one of the scene mode settings (such as ACTION,<wbr/> SUNSET,<wbr/> or PARTY)
8468 as it wishes.<wbr/> The camera device scene mode 3A settings are provided by
8469 <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">capture results</a>.<wbr/></p>
8470 <p>When set to OFF_<wbr/>KEEP_<wbr/>STATE,<wbr/> it is similar to OFF mode,<wbr/> the only difference
8471 is that this frame will not be used by camera device background 3A statistics
8472 update,<wbr/> as if this frame is never captured.<wbr/> This mode can be used in the scenario
8473 where the application doesn't want a 3A manual control capture to affect
8474 the subsequent auto 3A capture results.<wbr/></p>
8479 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8480 <!-- end of entry -->
8483 <tr class="entry" id="dynamic_android.control.sceneMode">
8484 <td class="entry_name
8486 android.<wbr/>control.<wbr/>scene<wbr/>Mode
8488 <td class="entry_type">
8489 <span class="entry_type_name entry_type_name_enum">byte</span>
8491 <span class="entry_type_visibility"> [public]</span>
8494 <span class="entry_type_hwlevel">[legacy] </span>
8498 <ul class="entry_type_enum">
8500 <span class="entry_type_enum_name">DISABLED</span>
8501 <span class="entry_type_enum_value">0</span>
8502 <span class="entry_type_enum_notes"><p>Indicates that no scene modes are set for a given capture request.<wbr/></p></span>
8505 <span class="entry_type_enum_name">FACE_PRIORITY</span>
8506 <span class="entry_type_enum_notes"><p>If face detection support exists,<wbr/> use face
8507 detection data for auto-focus,<wbr/> auto-white balance,<wbr/> and
8508 auto-exposure routines.<wbr/></p>
8509 <p>If face detection statistics are disabled
8510 (i.<wbr/>e.<wbr/> <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> is set to OFF),<wbr/>
8511 this should still operate correctly (but will not return
8512 face detection statistics to the framework).<wbr/></p>
8513 <p>Unlike the other scene modes,<wbr/> <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
8514 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>
8515 remain active when FACE_<wbr/>PRIORITY is set.<wbr/></p></span>
8518 <span class="entry_type_enum_name">ACTION</span>
8519 <span class="entry_type_enum_optional">[optional]</span>
8520 <span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving objects.<wbr/></p>
8521 <p>Similar to SPORTS.<wbr/></p></span>
8524 <span class="entry_type_enum_name">PORTRAIT</span>
8525 <span class="entry_type_enum_optional">[optional]</span>
8526 <span class="entry_type_enum_notes"><p>Optimized for still photos of people.<wbr/></p></span>
8529 <span class="entry_type_enum_name">LANDSCAPE</span>
8530 <span class="entry_type_enum_optional">[optional]</span>
8531 <span class="entry_type_enum_notes"><p>Optimized for photos of distant macroscopic objects.<wbr/></p></span>
8534 <span class="entry_type_enum_name">NIGHT</span>
8535 <span class="entry_type_enum_optional">[optional]</span>
8536 <span class="entry_type_enum_notes"><p>Optimized for low-light settings.<wbr/></p></span>
8539 <span class="entry_type_enum_name">NIGHT_PORTRAIT</span>
8540 <span class="entry_type_enum_optional">[optional]</span>
8541 <span class="entry_type_enum_notes"><p>Optimized for still photos of people in low-light
8542 settings.<wbr/></p></span>
8545 <span class="entry_type_enum_name">THEATRE</span>
8546 <span class="entry_type_enum_optional">[optional]</span>
8547 <span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings where flash must
8548 remain off.<wbr/></p></span>
8551 <span class="entry_type_enum_name">BEACH</span>
8552 <span class="entry_type_enum_optional">[optional]</span>
8553 <span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor beach settings.<wbr/></p></span>
8556 <span class="entry_type_enum_name">SNOW</span>
8557 <span class="entry_type_enum_optional">[optional]</span>
8558 <span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor settings containing snow.<wbr/></p></span>
8561 <span class="entry_type_enum_name">SUNSET</span>
8562 <span class="entry_type_enum_optional">[optional]</span>
8563 <span class="entry_type_enum_notes"><p>Optimized for scenes of the setting sun.<wbr/></p></span>
8566 <span class="entry_type_enum_name">STEADYPHOTO</span>
8567 <span class="entry_type_enum_optional">[optional]</span>
8568 <span class="entry_type_enum_notes"><p>Optimized to avoid blurry photos due to small amounts of
8569 device motion (for example: due to hand shake).<wbr/></p></span>
8572 <span class="entry_type_enum_name">FIREWORKS</span>
8573 <span class="entry_type_enum_optional">[optional]</span>
8574 <span class="entry_type_enum_notes"><p>Optimized for nighttime photos of fireworks.<wbr/></p></span>
8577 <span class="entry_type_enum_name">SPORTS</span>
8578 <span class="entry_type_enum_optional">[optional]</span>
8579 <span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving people.<wbr/></p>
8580 <p>Similar to ACTION.<wbr/></p></span>
8583 <span class="entry_type_enum_name">PARTY</span>
8584 <span class="entry_type_enum_optional">[optional]</span>
8585 <span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings with multiple moving
8586 people.<wbr/></p></span>
8589 <span class="entry_type_enum_name">CANDLELIGHT</span>
8590 <span class="entry_type_enum_optional">[optional]</span>
8591 <span class="entry_type_enum_notes"><p>Optimized for dim settings where the main light source
8592 is a flame.<wbr/></p></span>
8595 <span class="entry_type_enum_name">BARCODE</span>
8596 <span class="entry_type_enum_optional">[optional]</span>
8597 <span class="entry_type_enum_notes"><p>Optimized for accurately capturing a photo of barcode
8598 for use by camera applications that wish to read the
8599 barcode value.<wbr/></p></span>
8602 <span class="entry_type_enum_name">HIGH_SPEED_VIDEO</span>
8603 <span class="entry_type_enum_deprecated">[deprecated]</span>
8604 <span class="entry_type_enum_optional">[optional]</span>
8605 <span class="entry_type_enum_notes"><p>This is deprecated,<wbr/> please use <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>
8606 and <a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>
8607 for high speed video recording.<wbr/></p>
8608 <p>Optimized for high speed video recording (frame rate >=60fps) use case.<wbr/></p>
8609 <p>The supported high speed video sizes and fps ranges are specified in
8610 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/> To get desired
8611 output frame rates,<wbr/> the application is only allowed to select video size
8612 and fps range combinations listed in this static metadata.<wbr/> The fps range
8613 can be control via <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a>.<wbr/></p>
8614 <p>In this mode,<wbr/> the camera device will override aeMode,<wbr/> awbMode,<wbr/> and afMode to
8615 ON,<wbr/> ON,<wbr/> and CONTINUOUS_<wbr/>VIDEO,<wbr/> respectively.<wbr/> All post-processing block mode
8616 controls will be overridden to be FAST.<wbr/> Therefore,<wbr/> no manual control of capture
8617 and post-processing parameters is possible.<wbr/> All other controls operate the
8618 same as when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == AUTO.<wbr/> This means that all other
8619 android.<wbr/>control.<wbr/>* fields continue to work,<wbr/> such as</p>
8621 <li><a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a></li>
8622 <li><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a></li>
8623 <li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
8624 <li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
8625 <li><a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></li>
8626 <li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
8627 <li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
8628 <li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
8629 <li><a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a></li>
8630 <li><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a></li>
8632 <p>Outside of android.<wbr/>control.<wbr/>*,<wbr/> the following controls will work:</p>
8634 <li><a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> (automatic flash for still capture will not work since aeMode is ON)</li>
8635 <li><a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> (if it is supported)</li>
8636 <li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
8637 <li><a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a></li>
8639 <p>For high speed recording use case,<wbr/> the actual maximum supported frame rate may
8640 be lower than what camera can output,<wbr/> depending on the destination Surfaces for
8641 the image data.<wbr/> For example,<wbr/> if the destination surface is from video encoder,<wbr/>
8642 the application need check if the video encoder is capable of supporting the
8643 high frame rate for a given video size,<wbr/> or it will end up with lower recording
8644 frame rate.<wbr/> If the destination surface is from preview window,<wbr/> the preview frame
8645 rate will be bounded by the screen refresh rate.<wbr/></p>
8646 <p>The camera device will only support up to 2 output high speed streams
8647 (processed non-stalling format defined in <a href="#static_android.request.maxNumOutputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Streams</a>)
8648 in this mode.<wbr/> This control will be effective only if all of below conditions are true:</p>
8650 <li>The application created no more than maxNumHighSpeedStreams processed non-stalling
8651 format output streams,<wbr/> where maxNumHighSpeedStreams is calculated as
8652 min(2,<wbr/> <a href="#static_android.request.maxNumOutputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Streams</a>[Processed (but not-stalling)]).<wbr/></li>
8653 <li>The stream sizes are selected from the sizes reported by
8654 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/></li>
8655 <li>No processed non-stalling or raw streams are configured.<wbr/></li>
8657 <p>When above conditions are NOT satistied,<wbr/> the controls of this mode and
8658 <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a> will be ignored by the camera device,<wbr/>
8659 the camera device will fall back to <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> <code>==</code> AUTO,<wbr/>
8660 and the returned capture result metadata will give the fps range choosen
8661 by the camera device.<wbr/></p>
8662 <p>Switching into or out of this mode may trigger some camera ISP/<wbr/>sensor
8663 reconfigurations,<wbr/> which may introduce extra latency.<wbr/> It is recommended that
8664 the application avoids unnecessary scene mode switch as much as possible.<wbr/></p></span>
8667 <span class="entry_type_enum_name">HDR</span>
8668 <span class="entry_type_enum_optional">[optional]</span>
8669 <span class="entry_type_enum_notes"><p>Turn on a device-specific high dynamic range (HDR) mode.<wbr/></p>
8670 <p>In this scene mode,<wbr/> the camera device captures images
8671 that keep a larger range of scene illumination levels
8672 visible in the final image.<wbr/> For example,<wbr/> when taking a
8673 picture of a object in front of a bright window,<wbr/> both
8674 the object and the scene through the window may be
8675 visible when using HDR mode,<wbr/> while in normal AUTO mode,<wbr/>
8676 one or the other may be poorly exposed.<wbr/> As a tradeoff,<wbr/>
8677 HDR mode generally takes much longer to capture a single
8678 image,<wbr/> has no user control,<wbr/> and may have other artifacts
8679 depending on the HDR method used.<wbr/></p>
8680 <p>Therefore,<wbr/> HDR captures operate at a much slower rate
8681 than regular captures.<wbr/></p>
8682 <p>In this mode,<wbr/> on LIMITED or FULL devices,<wbr/> when a request
8683 is made with a <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> of
8684 STILL_<wbr/>CAPTURE,<wbr/> the camera device will capture an image
8685 using a high dynamic range capture technique.<wbr/> On LEGACY
8686 devices,<wbr/> captures that target a JPEG-format output will
8687 be captured with HDR,<wbr/> and the capture intent is not
8689 <p>The HDR capture may involve the device capturing a burst
8690 of images internally and combining them into one,<wbr/> or it
8691 may involve the device using specialized high dynamic
8692 range capture hardware.<wbr/> In all cases,<wbr/> a single image is
8693 produced in response to a capture request submitted
8694 while in HDR mode.<wbr/></p>
8695 <p>Since substantial post-processing is generally needed to
8696 produce an HDR image,<wbr/> only YUV,<wbr/> PRIVATE,<wbr/> and JPEG
8697 outputs are supported for LIMITED/<wbr/>FULL device HDR
8698 captures,<wbr/> and only JPEG outputs are supported for LEGACY
8699 HDR captures.<wbr/> Using a RAW output for HDR capture is not
8700 supported.<wbr/></p>
8701 <p>Some devices may also support always-on HDR,<wbr/> which
8702 applies HDR processing at full frame rate.<wbr/> For these
8703 devices,<wbr/> intents other than STILL_<wbr/>CAPTURE will also
8704 produce an HDR output with no frame rate impact compared
8705 to normal operation,<wbr/> though the quality may be lower
8706 than for STILL_<wbr/>CAPTURE intents.<wbr/></p>
8707 <p>If SCENE_<wbr/>MODE_<wbr/>HDR is used with unsupported output types
8708 or capture intents,<wbr/> the images captured will be as if
8709 the SCENE_<wbr/>MODE was not enabled at all.<wbr/></p></span>
8712 <span class="entry_type_enum_name">FACE_PRIORITY_LOW_LIGHT</span>
8713 <span class="entry_type_enum_optional">[optional]</span>
8714 <span class="entry_type_enum_hidden">[hidden]</span>
8715 <span class="entry_type_enum_notes"><p>Same as FACE_<wbr/>PRIORITY scene mode,<wbr/> except that the camera
8716 device will choose higher sensitivity values (<a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>)
8717 under low light conditions.<wbr/></p>
8718 <p>The camera device may be tuned to expose the images in a reduced
8719 sensitivity range to produce the best quality images.<wbr/> For example,<wbr/>
8720 if the <a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a> gives range of [100,<wbr/> 1600],<wbr/>
8721 the camera device auto-exposure routine tuning process may limit the actual
8722 exposure sensitivity range to [100,<wbr/> 1200] to ensure that the noise level isn't
8723 exessive in order to preserve the image quality.<wbr/> Under this situation,<wbr/> the image under
8724 low light may be under-exposed when the sensor max exposure time (bounded by the
8725 <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a> when <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is one of the
8726 ON_<wbr/>* modes) and effective max sensitivity are reached.<wbr/> This scene mode allows the
8727 camera device auto-exposure routine to increase the sensitivity up to the max
8728 sensitivity specified by <a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a> when the scene is too
8729 dark and the max exposure time is reached.<wbr/> The captured images may be noisier
8730 compared with the images captured in normal FACE_<wbr/>PRIORITY mode; therefore,<wbr/> it is
8731 recommended that the application only use this scene mode when it is capable of
8732 reducing the noise level of the captured images.<wbr/></p>
8733 <p>Unlike the other scene modes,<wbr/> <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
8734 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>
8735 remain active when FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT is set.<wbr/></p></span>
8738 <span class="entry_type_enum_name">DEVICE_CUSTOM_START</span>
8739 <span class="entry_type_enum_optional">[optional]</span>
8740 <span class="entry_type_enum_hidden">[hidden]</span>
8741 <span class="entry_type_enum_value">100</span>
8742 <span class="entry_type_enum_notes"><p>Scene mode values within the range of
8743 <code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
8744 customized scene modes.<wbr/></p></span>
8747 <span class="entry_type_enum_name">DEVICE_CUSTOM_END</span>
8748 <span class="entry_type_enum_optional">[optional]</span>
8749 <span class="entry_type_enum_hidden">[hidden]</span>
8750 <span class="entry_type_enum_value">127</span>
8751 <span class="entry_type_enum_notes"><p>Scene mode values within the range of
8752 <code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
8753 customized scene modes.<wbr/></p></span>
8757 </td> <!-- entry_type -->
8759 <td class="entry_description">
8760 <p>Control for which scene mode is currently active.<wbr/></p>
8763 <td class="entry_units">
8766 <td class="entry_range">
8767 <p><a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a></p>
8770 <td class="entry_tags">
8771 <ul class="entry_tags">
8772 <li><a href="#tag_BC">BC</a></li>
8777 <tr class="entries_header">
8778 <th class="th_details" colspan="5">Details</th>
8780 <tr class="entry_cont">
8781 <td class="entry_details" colspan="5">
8782 <p>Scene modes are custom camera modes optimized for a certain set of conditions and
8783 capture settings.<wbr/></p>
8784 <p>This is the mode that that is active when
8785 <code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == USE_<wbr/>SCENE_<wbr/>MODE</code>.<wbr/> Aside from FACE_<wbr/>PRIORITY,<wbr/> these modes will
8786 disable <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/> <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>
8787 while in use.<wbr/></p>
8788 <p>The interpretation and implementation of these scene modes is left
8789 to the implementor of the camera device.<wbr/> Their behavior will not be
8790 consistent across all devices,<wbr/> and any given device may only implement
8791 a subset of these modes.<wbr/></p>
8795 <tr class="entries_header">
8796 <th class="th_details" colspan="5">HAL Implementation Details</th>
8798 <tr class="entry_cont">
8799 <td class="entry_details" colspan="5">
8800 <p>HAL implementations that include scene modes are expected to provide
8801 the per-scene settings to use for <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
8802 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>,<wbr/> and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> in
8803 <a href="#static_android.control.sceneModeOverrides">android.<wbr/>control.<wbr/>scene<wbr/>Mode<wbr/>Overrides</a>.<wbr/></p>
8804 <p>For HIGH_<wbr/>SPEED_<wbr/>VIDEO mode,<wbr/> if it is included in <a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a>,<wbr/>
8805 the HAL must list supported video size and fps range in
8806 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/> For a given size,<wbr/> e.<wbr/>g.<wbr/>
8807 1280x720,<wbr/> if the HAL has two different sensor configurations for normal streaming
8808 mode and high speed streaming,<wbr/> when this scene mode is set/<wbr/>reset in a sequence of capture
8809 requests,<wbr/> the HAL may have to switch between different sensor modes.<wbr/>
8810 This mode is deprecated in HAL3.<wbr/>3,<wbr/> to support high speed video recording,<wbr/> please implement
8811 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a> and CONSTRAINED_<wbr/>HIGH_<wbr/>SPEED_<wbr/>VIDEO
8812 capbility defined in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
8816 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8817 <!-- end of entry -->
8820 <tr class="entry" id="dynamic_android.control.videoStabilizationMode">
8821 <td class="entry_name
8823 android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode
8825 <td class="entry_type">
8826 <span class="entry_type_name entry_type_name_enum">byte</span>
8828 <span class="entry_type_visibility"> [public]</span>
8831 <span class="entry_type_hwlevel">[legacy] </span>
8835 <ul class="entry_type_enum">
8837 <span class="entry_type_enum_name">OFF</span>
8838 <span class="entry_type_enum_notes"><p>Video stabilization is disabled.<wbr/></p></span>
8841 <span class="entry_type_enum_name">ON</span>
8842 <span class="entry_type_enum_notes"><p>Video stabilization is enabled.<wbr/></p></span>
8846 </td> <!-- entry_type -->
8848 <td class="entry_description">
8849 <p>Whether video stabilization is
8853 <td class="entry_units">
8856 <td class="entry_range">
8859 <td class="entry_tags">
8860 <ul class="entry_tags">
8861 <li><a href="#tag_BC">BC</a></li>
8866 <tr class="entries_header">
8867 <th class="th_details" colspan="5">Details</th>
8869 <tr class="entry_cont">
8870 <td class="entry_details" colspan="5">
8871 <p>Video stabilization automatically warps images from
8872 the camera in order to stabilize motion between consecutive frames.<wbr/></p>
8873 <p>If enabled,<wbr/> video stabilization can modify the
8874 <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to keep the video stream stabilized.<wbr/></p>
8875 <p>Switching between different video stabilization modes may take several
8876 frames to initialize,<wbr/> the camera device will report the current mode
8877 in capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/>
8878 the video stabilization modes in the first several capture results may
8879 still be "OFF",<wbr/> and it will become "ON" when the initialization is
8881 <p>In addition,<wbr/> not all recording sizes or frame rates may be supported for
8882 stabilization by a device that reports stabilization support.<wbr/> It is guaranteed
8883 that an output targeting a MediaRecorder or MediaCodec will be stabilized if
8884 the recording resolution is less than or equal to 1920 x 1080 (width less than
8885 or equal to 1920,<wbr/> height less than or equal to 1080),<wbr/> and the recording
8886 frame rate is less than or equal to 30fps.<wbr/> At other sizes,<wbr/> the CaptureResult
8887 <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a> field will return
8888 OFF if the recording output is not stabilized,<wbr/> or if there are no output
8889 Surface types that can be stabilized.<wbr/></p>
8890 <p>If a camera device supports both this mode and OIS
8891 (<a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may
8892 produce undesirable interaction,<wbr/> so it is recommended not to enable
8893 both at the same time.<wbr/></p>
8898 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8899 <!-- end of entry -->
8902 <tr class="entry" id="dynamic_android.control.postRawSensitivityBoost">
8903 <td class="entry_name
8905 android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost
8907 <td class="entry_type">
8908 <span class="entry_type_name">int32</span>
8910 <span class="entry_type_visibility"> [public]</span>
8917 </td> <!-- entry_type -->
8919 <td class="entry_description">
8920 <p>The amount of additional sensitivity boost applied to output images
8921 after RAW sensor data is captured.<wbr/></p>
8924 <td class="entry_units">
8925 ISO arithmetic units,<wbr/> the same as android.<wbr/>sensor.<wbr/>sensitivity
8928 <td class="entry_range">
8929 <p><a href="#static_android.control.postRawSensitivityBoostRange">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost<wbr/>Range</a></p>
8932 <td class="entry_tags">
8936 <tr class="entries_header">
8937 <th class="th_details" colspan="5">Details</th>
8939 <tr class="entry_cont">
8940 <td class="entry_details" colspan="5">
8941 <p>Some camera devices support additional digital sensitivity boosting in the
8942 camera processing pipeline after sensor RAW image is captured.<wbr/>
8943 Such a boost will be applied to YUV/<wbr/>JPEG format output images but will not
8944 have effect on RAW output formats like RAW_<wbr/>SENSOR,<wbr/> RAW10,<wbr/> RAW12 or RAW_<wbr/>OPAQUE.<wbr/></p>
8945 <p>This key will be <code>null</code> for devices that do not support any RAW format
8946 outputs.<wbr/> For devices that do support RAW format outputs,<wbr/> this key will always
8947 present,<wbr/> and if a device does not support post RAW sensitivity boost,<wbr/> it will
8948 list <code>100</code> in this key.<wbr/></p>
8949 <p>If the camera device cannot apply the exact boost requested,<wbr/> it will reduce the
8950 boost to the nearest supported value.<wbr/>
8951 The final boost value used will be available in the output capture result.<wbr/></p>
8952 <p>For devices that support post RAW sensitivity boost,<wbr/> the YUV/<wbr/>JPEG output images
8953 of such device will have the total sensitivity of
8954 <code><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> * <a href="#controls_android.control.postRawSensitivityBoost">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost</a> /<wbr/> 100</code>
8955 The sensitivity of RAW format images will always be <code><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></code></p>
8956 <p>This control is only effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is set to
8957 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
8962 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8963 <!-- end of entry -->
8966 <tr class="entry" id="dynamic_android.control.enableZsl">
8967 <td class="entry_name
8969 android.<wbr/>control.<wbr/>enable<wbr/>Zsl
8971 <td class="entry_type">
8972 <span class="entry_type_name entry_type_name_enum">byte</span>
8974 <span class="entry_type_visibility"> [public as boolean]</span>
8980 <ul class="entry_type_enum">
8982 <span class="entry_type_enum_name">FALSE</span>
8983 <span class="entry_type_enum_notes"><p>Requests with <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE must be captured
8984 after previous requests.<wbr/></p></span>
8987 <span class="entry_type_enum_name">TRUE</span>
8988 <span class="entry_type_enum_notes"><p>Requests with <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE may or may not be
8989 captured before previous requests.<wbr/></p></span>
8993 </td> <!-- entry_type -->
8995 <td class="entry_description">
8996 <p>Allow camera device to enable zero-shutter-lag mode for requests with
8997 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE.<wbr/></p>
9000 <td class="entry_units">
9003 <td class="entry_range">
9006 <td class="entry_tags">
9010 <tr class="entries_header">
9011 <th class="th_details" colspan="5">Details</th>
9013 <tr class="entry_cont">
9014 <td class="entry_details" colspan="5">
9015 <p>If enableZsl is <code>true</code>,<wbr/> the camera device may enable zero-shutter-lag mode for requests with
9016 STILL_<wbr/>CAPTURE capture intent.<wbr/> The camera device may use images captured in the past to
9017 produce output images for a zero-shutter-lag request.<wbr/> The result metadata including the
9018 <a href="#dynamic_android.sensor.timestamp">android.<wbr/>sensor.<wbr/>timestamp</a> reflects the source frames used to produce output images.<wbr/>
9019 Therefore,<wbr/> the contents of the output images and the result metadata may be out of order
9020 compared to previous regular requests.<wbr/> enableZsl does not affect requests with other
9021 capture intents.<wbr/></p>
9022 <p>For example,<wbr/> when requests are submitted in the following order:
9023 Request A: enableZsl is ON,<wbr/> <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> is PREVIEW
9024 Request B: enableZsl is ON,<wbr/> <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> is STILL_<wbr/>CAPTURE</p>
9025 <p>The output images for request B may have contents captured before the output images for
9026 request A,<wbr/> and the result metadata for request B may be older than the result metadata for
9027 request A.<wbr/></p>
9028 <p>Note that when enableZsl is <code>true</code>,<wbr/> it is not guaranteed to get output images captured in
9029 the past for requests with STILL_<wbr/>CAPTURE capture intent.<wbr/></p>
9030 <p>For applications targeting SDK versions O and newer,<wbr/> the value of enableZsl in
9031 TEMPLATE_<wbr/>STILL_<wbr/>CAPTURE template may be <code>true</code>.<wbr/> The value in other templates is always
9032 <code>false</code> if present.<wbr/></p>
9033 <p>For applications targeting SDK versions older than O,<wbr/> the value of enableZsl in all
9034 capture templates is always <code>false</code> if present.<wbr/></p>
9038 <tr class="entries_header">
9039 <th class="th_details" colspan="5">HAL Implementation Details</th>
9041 <tr class="entry_cont">
9042 <td class="entry_details" colspan="5">
9043 <p>It is valid for HAL to produce regular output images for requests with STILL_<wbr/>CAPTURE
9044 capture intent.<wbr/></p>
9048 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9049 <!-- end of entry -->
9053 <!-- end of kind -->
9056 <!-- end of section -->
9057 <tr><td colspan="6" id="section_demosaic" class="section">demosaic</td></tr>
9060 <tr><td colspan="6" class="kind">controls</td></tr>
9062 <thead class="entries_header">
9064 <th class="th_name">Property Name</th>
9065 <th class="th_type">Type</th>
9066 <th class="th_description">Description</th>
9067 <th class="th_units">Units</th>
9068 <th class="th_range">Range</th>
9069 <th class="th_tags">Tags</th>
9084 <tr class="entry" id="controls_android.demosaic.mode">
9085 <td class="entry_name
9087 android.<wbr/>demosaic.<wbr/>mode
9089 <td class="entry_type">
9090 <span class="entry_type_name entry_type_name_enum">byte</span>
9092 <span class="entry_type_visibility"> [system]</span>
9098 <ul class="entry_type_enum">
9100 <span class="entry_type_enum_name">FAST</span>
9101 <span class="entry_type_enum_notes"><p>Minimal or no slowdown of frame rate compared to
9102 Bayer RAW output.<wbr/></p></span>
9105 <span class="entry_type_enum_name">HIGH_QUALITY</span>
9106 <span class="entry_type_enum_notes"><p>Improved processing quality but the frame rate might be slowed down
9107 relative to raw output.<wbr/></p></span>
9111 </td> <!-- entry_type -->
9113 <td class="entry_description">
9114 <p>Controls the quality of the demosaicing
9115 processing.<wbr/></p>
9118 <td class="entry_units">
9121 <td class="entry_range">
9124 <td class="entry_tags">
9125 <ul class="entry_tags">
9126 <li><a href="#tag_FUTURE">FUTURE</a></li>
9133 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9134 <!-- end of entry -->
9138 <!-- end of kind -->
9141 <!-- end of section -->
9142 <tr><td colspan="6" id="section_edge" class="section">edge</td></tr>
9145 <tr><td colspan="6" class="kind">controls</td></tr>
9147 <thead class="entries_header">
9149 <th class="th_name">Property Name</th>
9150 <th class="th_type">Type</th>
9151 <th class="th_description">Description</th>
9152 <th class="th_units">Units</th>
9153 <th class="th_range">Range</th>
9154 <th class="th_tags">Tags</th>
9169 <tr class="entry" id="controls_android.edge.mode">
9170 <td class="entry_name
9172 android.<wbr/>edge.<wbr/>mode
9174 <td class="entry_type">
9175 <span class="entry_type_name entry_type_name_enum">byte</span>
9177 <span class="entry_type_visibility"> [public]</span>
9180 <span class="entry_type_hwlevel">[full] </span>
9184 <ul class="entry_type_enum">
9186 <span class="entry_type_enum_name">OFF</span>
9187 <span class="entry_type_enum_notes"><p>No edge enhancement is applied.<wbr/></p></span>
9190 <span class="entry_type_enum_name">FAST</span>
9191 <span class="entry_type_enum_notes"><p>Apply edge enhancement at a quality level that does not slow down frame rate
9192 relative to sensor output.<wbr/> It may be the same as OFF if edge enhancement will
9193 slow down frame rate relative to sensor.<wbr/></p></span>
9196 <span class="entry_type_enum_name">HIGH_QUALITY</span>
9197 <span class="entry_type_enum_notes"><p>Apply high-quality edge enhancement,<wbr/> at a cost of possibly reduced output frame rate.<wbr/></p></span>
9200 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
9201 <span class="entry_type_enum_optional">[optional]</span>
9202 <span class="entry_type_enum_notes"><p>Edge enhancement is applied at different levels for different output streams,<wbr/>
9203 based on resolution.<wbr/> Streams at maximum recording resolution (see <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">CameraDevice#createCaptureSession</a>) or below have
9204 edge enhancement applied,<wbr/> while higher-resolution streams have no edge enhancement
9205 applied.<wbr/> The level of edge enhancement for low-resolution streams is tuned so that
9206 frame rate is not impacted,<wbr/> and the quality is equal to or better than FAST (since it
9207 is only applied to lower-resolution outputs,<wbr/> quality may improve from FAST).<wbr/></p>
9208 <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
9209 with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
9210 high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
9211 produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
9212 high-resolution buffers must not have edge enhancement applied to maximize efficiency of
9213 preview and to avoid double-applying enhancement when reprocessed,<wbr/> while low-resolution
9214 buffers (used for recording or preview,<wbr/> generally) need edge enhancement applied for
9215 reasonable preview quality.<wbr/></p>
9216 <p>This mode is guaranteed to be supported by devices that support either the
9217 YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
9218 (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
9219 be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
9223 </td> <!-- entry_type -->
9225 <td class="entry_description">
9226 <p>Operation mode for edge
9227 enhancement.<wbr/></p>
9230 <td class="entry_units">
9233 <td class="entry_range">
9234 <p><a href="#static_android.edge.availableEdgeModes">android.<wbr/>edge.<wbr/>available<wbr/>Edge<wbr/>Modes</a></p>
9237 <td class="entry_tags">
9238 <ul class="entry_tags">
9239 <li><a href="#tag_V1">V1</a></li>
9240 <li><a href="#tag_REPROC">REPROC</a></li>
9245 <tr class="entries_header">
9246 <th class="th_details" colspan="5">Details</th>
9248 <tr class="entry_cont">
9249 <td class="entry_details" colspan="5">
9250 <p>Edge enhancement improves sharpness and details in the captured image.<wbr/> OFF means
9251 no enhancement will be applied by the camera device.<wbr/></p>
9252 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined enhancement
9253 will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the
9254 camera device will use the highest-quality enhancement algorithms,<wbr/>
9255 even if it slows down capture rate.<wbr/> FAST means the camera device will
9256 not slow down capture rate when applying edge enhancement.<wbr/> FAST may be the same as OFF if
9257 edge enhancement will slow down capture rate.<wbr/> Every output stream will have a similar
9258 amount of enhancement applied.<wbr/></p>
9259 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
9260 buffer of high-resolution images during preview and reprocess image(s) from that buffer
9261 into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
9262 edge enhancement to low-resolution streams (below maximum recording resolution) to
9263 maximize preview quality,<wbr/> but does not apply edge enhancement to high-resolution streams,<wbr/>
9264 since those will be reprocessed later if necessary.<wbr/></p>
9265 <p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera
9266 device will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV-domain edge enhancement,<wbr/> respectively.<wbr/>
9267 The camera device may adjust its internal edge enhancement parameters for best
9268 image quality based on the <a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a>,<wbr/> if it is set.<wbr/></p>
9272 <tr class="entries_header">
9273 <th class="th_details" colspan="5">HAL Implementation Details</th>
9275 <tr class="entry_cont">
9276 <td class="entry_details" colspan="5">
9277 <p>For YUV_<wbr/>REPROCESSING The HAL can use <a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a> to
9278 adjust the internal edge enhancement reduction parameters appropriately to get the best
9279 quality images.<wbr/></p>
9283 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9284 <!-- end of entry -->
9287 <tr class="entry" id="controls_android.edge.strength">
9288 <td class="entry_name
9290 android.<wbr/>edge.<wbr/>strength
9292 <td class="entry_type">
9293 <span class="entry_type_name">byte</span>
9295 <span class="entry_type_visibility"> [system]</span>
9302 </td> <!-- entry_type -->
9304 <td class="entry_description">
9305 <p>Control the amount of edge enhancement
9306 applied to the images</p>
9309 <td class="entry_units">
9310 1-10; 10 is maximum sharpening
9313 <td class="entry_range">
9316 <td class="entry_tags">
9317 <ul class="entry_tags">
9318 <li><a href="#tag_FUTURE">FUTURE</a></li>
9325 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9326 <!-- end of entry -->
9330 <!-- end of kind -->
9332 <tr><td colspan="6" class="kind">static</td></tr>
9334 <thead class="entries_header">
9336 <th class="th_name">Property Name</th>
9337 <th class="th_type">Type</th>
9338 <th class="th_description">Description</th>
9339 <th class="th_units">Units</th>
9340 <th class="th_range">Range</th>
9341 <th class="th_tags">Tags</th>
9356 <tr class="entry" id="static_android.edge.availableEdgeModes">
9357 <td class="entry_name
9359 android.<wbr/>edge.<wbr/>available<wbr/>Edge<wbr/>Modes
9361 <td class="entry_type">
9362 <span class="entry_type_name">byte</span>
9363 <span class="entry_type_container">x</span>
9365 <span class="entry_type_array">
9368 <span class="entry_type_visibility"> [public as enumList]</span>
9371 <span class="entry_type_hwlevel">[full] </span>
9374 <div class="entry_type_notes">list of enums</div>
9377 </td> <!-- entry_type -->
9379 <td class="entry_description">
9380 <p>List of edge enhancement modes for <a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a> that are supported by this camera
9384 <td class="entry_units">
9387 <td class="entry_range">
9388 <p>Any value listed in <a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a></p>
9391 <td class="entry_tags">
9392 <ul class="entry_tags">
9393 <li><a href="#tag_V1">V1</a></li>
9394 <li><a href="#tag_REPROC">REPROC</a></li>
9399 <tr class="entries_header">
9400 <th class="th_details" colspan="5">Details</th>
9402 <tr class="entry_cont">
9403 <td class="entry_details" colspan="5">
9404 <p>Full-capability camera devices must always support OFF; camera devices that support
9405 YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING will list ZERO_<wbr/>SHUTTER_<wbr/>LAG; all devices will
9406 list FAST.<wbr/></p>
9410 <tr class="entries_header">
9411 <th class="th_details" colspan="5">HAL Implementation Details</th>
9413 <tr class="entry_cont">
9414 <td class="entry_details" colspan="5">
9415 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if edge enhancement control is available
9416 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
9417 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
9418 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
9422 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9423 <!-- end of entry -->
9427 <!-- end of kind -->
9429 <tr><td colspan="6" class="kind">dynamic</td></tr>
9431 <thead class="entries_header">
9433 <th class="th_name">Property Name</th>
9434 <th class="th_type">Type</th>
9435 <th class="th_description">Description</th>
9436 <th class="th_units">Units</th>
9437 <th class="th_range">Range</th>
9438 <th class="th_tags">Tags</th>
9453 <tr class="entry" id="dynamic_android.edge.mode">
9454 <td class="entry_name
9456 android.<wbr/>edge.<wbr/>mode
9458 <td class="entry_type">
9459 <span class="entry_type_name entry_type_name_enum">byte</span>
9461 <span class="entry_type_visibility"> [public]</span>
9464 <span class="entry_type_hwlevel">[full] </span>
9468 <ul class="entry_type_enum">
9470 <span class="entry_type_enum_name">OFF</span>
9471 <span class="entry_type_enum_notes"><p>No edge enhancement is applied.<wbr/></p></span>
9474 <span class="entry_type_enum_name">FAST</span>
9475 <span class="entry_type_enum_notes"><p>Apply edge enhancement at a quality level that does not slow down frame rate
9476 relative to sensor output.<wbr/> It may be the same as OFF if edge enhancement will
9477 slow down frame rate relative to sensor.<wbr/></p></span>
9480 <span class="entry_type_enum_name">HIGH_QUALITY</span>
9481 <span class="entry_type_enum_notes"><p>Apply high-quality edge enhancement,<wbr/> at a cost of possibly reduced output frame rate.<wbr/></p></span>
9484 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
9485 <span class="entry_type_enum_optional">[optional]</span>
9486 <span class="entry_type_enum_notes"><p>Edge enhancement is applied at different levels for different output streams,<wbr/>
9487 based on resolution.<wbr/> Streams at maximum recording resolution (see <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">CameraDevice#createCaptureSession</a>) or below have
9488 edge enhancement applied,<wbr/> while higher-resolution streams have no edge enhancement
9489 applied.<wbr/> The level of edge enhancement for low-resolution streams is tuned so that
9490 frame rate is not impacted,<wbr/> and the quality is equal to or better than FAST (since it
9491 is only applied to lower-resolution outputs,<wbr/> quality may improve from FAST).<wbr/></p>
9492 <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
9493 with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
9494 high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
9495 produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
9496 high-resolution buffers must not have edge enhancement applied to maximize efficiency of
9497 preview and to avoid double-applying enhancement when reprocessed,<wbr/> while low-resolution
9498 buffers (used for recording or preview,<wbr/> generally) need edge enhancement applied for
9499 reasonable preview quality.<wbr/></p>
9500 <p>This mode is guaranteed to be supported by devices that support either the
9501 YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
9502 (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
9503 be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
9507 </td> <!-- entry_type -->
9509 <td class="entry_description">
9510 <p>Operation mode for edge
9511 enhancement.<wbr/></p>
9514 <td class="entry_units">
9517 <td class="entry_range">
9518 <p><a href="#static_android.edge.availableEdgeModes">android.<wbr/>edge.<wbr/>available<wbr/>Edge<wbr/>Modes</a></p>
9521 <td class="entry_tags">
9522 <ul class="entry_tags">
9523 <li><a href="#tag_V1">V1</a></li>
9524 <li><a href="#tag_REPROC">REPROC</a></li>
9529 <tr class="entries_header">
9530 <th class="th_details" colspan="5">Details</th>
9532 <tr class="entry_cont">
9533 <td class="entry_details" colspan="5">
9534 <p>Edge enhancement improves sharpness and details in the captured image.<wbr/> OFF means
9535 no enhancement will be applied by the camera device.<wbr/></p>
9536 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined enhancement
9537 will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the
9538 camera device will use the highest-quality enhancement algorithms,<wbr/>
9539 even if it slows down capture rate.<wbr/> FAST means the camera device will
9540 not slow down capture rate when applying edge enhancement.<wbr/> FAST may be the same as OFF if
9541 edge enhancement will slow down capture rate.<wbr/> Every output stream will have a similar
9542 amount of enhancement applied.<wbr/></p>
9543 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
9544 buffer of high-resolution images during preview and reprocess image(s) from that buffer
9545 into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
9546 edge enhancement to low-resolution streams (below maximum recording resolution) to
9547 maximize preview quality,<wbr/> but does not apply edge enhancement to high-resolution streams,<wbr/>
9548 since those will be reprocessed later if necessary.<wbr/></p>
9549 <p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera
9550 device will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV-domain edge enhancement,<wbr/> respectively.<wbr/>
9551 The camera device may adjust its internal edge enhancement parameters for best
9552 image quality based on the <a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a>,<wbr/> if it is set.<wbr/></p>
9556 <tr class="entries_header">
9557 <th class="th_details" colspan="5">HAL Implementation Details</th>
9559 <tr class="entry_cont">
9560 <td class="entry_details" colspan="5">
9561 <p>For YUV_<wbr/>REPROCESSING The HAL can use <a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a> to
9562 adjust the internal edge enhancement reduction parameters appropriately to get the best
9563 quality images.<wbr/></p>
9567 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9568 <!-- end of entry -->
9572 <!-- end of kind -->
9575 <!-- end of section -->
9576 <tr><td colspan="6" id="section_flash" class="section">flash</td></tr>
9579 <tr><td colspan="6" class="kind">controls</td></tr>
9581 <thead class="entries_header">
9583 <th class="th_name">Property Name</th>
9584 <th class="th_type">Type</th>
9585 <th class="th_description">Description</th>
9586 <th class="th_units">Units</th>
9587 <th class="th_range">Range</th>
9588 <th class="th_tags">Tags</th>
9603 <tr class="entry" id="controls_android.flash.firingPower">
9604 <td class="entry_name
9606 android.<wbr/>flash.<wbr/>firing<wbr/>Power
9608 <td class="entry_type">
9609 <span class="entry_type_name">byte</span>
9611 <span class="entry_type_visibility"> [system]</span>
9618 </td> <!-- entry_type -->
9620 <td class="entry_description">
9621 <p>Power for flash firing/<wbr/>torch</p>
9624 <td class="entry_units">
9625 10 is max power; 0 is no flash.<wbr/> Linear
9628 <td class="entry_range">
9632 <td class="entry_tags">
9633 <ul class="entry_tags">
9634 <li><a href="#tag_FUTURE">FUTURE</a></li>
9639 <tr class="entries_header">
9640 <th class="th_details" colspan="5">Details</th>
9642 <tr class="entry_cont">
9643 <td class="entry_details" colspan="5">
9644 <p>Power for snapshot may use a different scale than
9645 for torch mode.<wbr/> Only one entry for torch mode will be
9651 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9652 <!-- end of entry -->
9655 <tr class="entry" id="controls_android.flash.firingTime">
9656 <td class="entry_name
9658 android.<wbr/>flash.<wbr/>firing<wbr/>Time
9660 <td class="entry_type">
9661 <span class="entry_type_name">int64</span>
9663 <span class="entry_type_visibility"> [system]</span>
9670 </td> <!-- entry_type -->
9672 <td class="entry_description">
9673 <p>Firing time of flash relative to start of
9677 <td class="entry_units">
9681 <td class="entry_range">
9682 <p>0-(exposure time-flash duration)</p>
9685 <td class="entry_tags">
9686 <ul class="entry_tags">
9687 <li><a href="#tag_FUTURE">FUTURE</a></li>
9692 <tr class="entries_header">
9693 <th class="th_details" colspan="5">Details</th>
9695 <tr class="entry_cont">
9696 <td class="entry_details" colspan="5">
9697 <p>Clamped to (0,<wbr/> exposure time - flash
9698 duration).<wbr/></p>
9703 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9704 <!-- end of entry -->
9707 <tr class="entry" id="controls_android.flash.mode">
9708 <td class="entry_name
9710 android.<wbr/>flash.<wbr/>mode
9712 <td class="entry_type">
9713 <span class="entry_type_name entry_type_name_enum">byte</span>
9715 <span class="entry_type_visibility"> [public]</span>
9718 <span class="entry_type_hwlevel">[legacy] </span>
9722 <ul class="entry_type_enum">
9724 <span class="entry_type_enum_name">OFF</span>
9725 <span class="entry_type_enum_notes"><p>Do not fire the flash for this capture.<wbr/></p></span>
9728 <span class="entry_type_enum_name">SINGLE</span>
9729 <span class="entry_type_enum_notes"><p>If the flash is available and charged,<wbr/> fire flash
9730 for this capture.<wbr/></p></span>
9733 <span class="entry_type_enum_name">TORCH</span>
9734 <span class="entry_type_enum_notes"><p>Transition flash to continuously on.<wbr/></p></span>
9738 </td> <!-- entry_type -->
9740 <td class="entry_description">
9741 <p>The desired mode for for the camera device's flash control.<wbr/></p>
9744 <td class="entry_units">
9747 <td class="entry_range">
9750 <td class="entry_tags">
9751 <ul class="entry_tags">
9752 <li><a href="#tag_BC">BC</a></li>
9757 <tr class="entries_header">
9758 <th class="th_details" colspan="5">Details</th>
9760 <tr class="entry_cont">
9761 <td class="entry_details" colspan="5">
9762 <p>This control is only effective when flash unit is available
9763 (<code><a href="#static_android.flash.info.available">android.<wbr/>flash.<wbr/>info.<wbr/>available</a> == true</code>).<wbr/></p>
9764 <p>When this control is used,<wbr/> the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> must be set to ON or OFF.<wbr/>
9765 Otherwise,<wbr/> the camera device auto-exposure related flash control (ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/>
9766 ON_<wbr/>ALWAYS_<wbr/>FLASH,<wbr/> or ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE) will override this control.<wbr/></p>
9767 <p>When set to OFF,<wbr/> the camera device will not fire flash for this capture.<wbr/></p>
9768 <p>When set to SINGLE,<wbr/> the camera device will fire flash regardless of the camera
9769 device's auto-exposure routine's result.<wbr/> When used in still capture case,<wbr/> this
9770 control should be used along with auto-exposure (AE) precapture metering sequence
9771 (<a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>),<wbr/> otherwise,<wbr/> the image may be incorrectly exposed.<wbr/></p>
9772 <p>When set to TORCH,<wbr/> the flash will be on continuously.<wbr/> This mode can be used
9773 for use cases such as preview,<wbr/> auto-focus assist,<wbr/> still capture,<wbr/> or video recording.<wbr/></p>
9774 <p>The flash status will be reported by <a href="#dynamic_android.flash.state">android.<wbr/>flash.<wbr/>state</a> in the capture result metadata.<wbr/></p>
9779 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9780 <!-- end of entry -->
9784 <!-- end of kind -->
9786 <tr><td colspan="6" class="kind">static</td></tr>
9788 <thead class="entries_header">
9790 <th class="th_name">Property Name</th>
9791 <th class="th_type">Type</th>
9792 <th class="th_description">Description</th>
9793 <th class="th_units">Units</th>
9794 <th class="th_range">Range</th>
9795 <th class="th_tags">Tags</th>
9812 <tr class="entry" id="static_android.flash.info.available">
9813 <td class="entry_name
9815 android.<wbr/>flash.<wbr/>info.<wbr/>available
9817 <td class="entry_type">
9818 <span class="entry_type_name entry_type_name_enum">byte</span>
9820 <span class="entry_type_visibility"> [public as boolean]</span>
9823 <span class="entry_type_hwlevel">[legacy] </span>
9827 <ul class="entry_type_enum">
9829 <span class="entry_type_enum_name">FALSE</span>
9832 <span class="entry_type_enum_name">TRUE</span>
9836 </td> <!-- entry_type -->
9838 <td class="entry_description">
9839 <p>Whether this camera device has a
9840 flash unit.<wbr/></p>
9843 <td class="entry_units">
9846 <td class="entry_range">
9849 <td class="entry_tags">
9850 <ul class="entry_tags">
9851 <li><a href="#tag_BC">BC</a></li>
9856 <tr class="entries_header">
9857 <th class="th_details" colspan="5">Details</th>
9859 <tr class="entry_cont">
9860 <td class="entry_details" colspan="5">
9861 <p>Will be <code>false</code> if no flash is available.<wbr/></p>
9862 <p>If there is no flash unit,<wbr/> none of the flash controls do
9868 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9869 <!-- end of entry -->
9872 <tr class="entry" id="static_android.flash.info.chargeDuration">
9873 <td class="entry_name
9875 android.<wbr/>flash.<wbr/>info.<wbr/>charge<wbr/>Duration
9877 <td class="entry_type">
9878 <span class="entry_type_name">int64</span>
9880 <span class="entry_type_visibility"> [system]</span>
9887 </td> <!-- entry_type -->
9889 <td class="entry_description">
9890 <p>Time taken before flash can fire
9894 <td class="entry_units">
9898 <td class="entry_range">
9902 <td class="entry_tags">
9903 <ul class="entry_tags">
9904 <li><a href="#tag_FUTURE">FUTURE</a></li>
9909 <tr class="entries_header">
9910 <th class="th_details" colspan="5">Details</th>
9912 <tr class="entry_cont">
9913 <td class="entry_details" colspan="5">
9914 <p>1 second too long/<wbr/>too short for recharge? Should
9915 this be power-dependent?</p>
9920 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9921 <!-- end of entry -->
9927 <tr class="entry" id="static_android.flash.colorTemperature">
9928 <td class="entry_name
9930 android.<wbr/>flash.<wbr/>color<wbr/>Temperature
9932 <td class="entry_type">
9933 <span class="entry_type_name">byte</span>
9935 <span class="entry_type_visibility"> [system]</span>
9942 </td> <!-- entry_type -->
9944 <td class="entry_description">
9945 <p>The x,<wbr/>y whitepoint of the
9949 <td class="entry_units">
9953 <td class="entry_range">
9957 <td class="entry_tags">
9958 <ul class="entry_tags">
9959 <li><a href="#tag_FUTURE">FUTURE</a></li>
9966 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9967 <!-- end of entry -->
9970 <tr class="entry" id="static_android.flash.maxEnergy">
9971 <td class="entry_name
9973 android.<wbr/>flash.<wbr/>max<wbr/>Energy
9975 <td class="entry_type">
9976 <span class="entry_type_name">byte</span>
9978 <span class="entry_type_visibility"> [system]</span>
9985 </td> <!-- entry_type -->
9987 <td class="entry_description">
9988 <p>Max energy output of the flash for a full
9989 power single flash</p>
9992 <td class="entry_units">
9996 <td class="entry_range">
10000 <td class="entry_tags">
10001 <ul class="entry_tags">
10002 <li><a href="#tag_FUTURE">FUTURE</a></li>
10009 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10010 <!-- end of entry -->
10014 <!-- end of kind -->
10016 <tr><td colspan="6" class="kind">dynamic</td></tr>
10018 <thead class="entries_header">
10020 <th class="th_name">Property Name</th>
10021 <th class="th_type">Type</th>
10022 <th class="th_description">Description</th>
10023 <th class="th_units">Units</th>
10024 <th class="th_range">Range</th>
10025 <th class="th_tags">Tags</th>
10040 <tr class="entry" id="dynamic_android.flash.firingPower">
10041 <td class="entry_name
10043 android.<wbr/>flash.<wbr/>firing<wbr/>Power
10045 <td class="entry_type">
10046 <span class="entry_type_name">byte</span>
10048 <span class="entry_type_visibility"> [system]</span>
10055 </td> <!-- entry_type -->
10057 <td class="entry_description">
10058 <p>Power for flash firing/<wbr/>torch</p>
10061 <td class="entry_units">
10062 10 is max power; 0 is no flash.<wbr/> Linear
10065 <td class="entry_range">
10069 <td class="entry_tags">
10070 <ul class="entry_tags">
10071 <li><a href="#tag_FUTURE">FUTURE</a></li>
10076 <tr class="entries_header">
10077 <th class="th_details" colspan="5">Details</th>
10079 <tr class="entry_cont">
10080 <td class="entry_details" colspan="5">
10081 <p>Power for snapshot may use a different scale than
10082 for torch mode.<wbr/> Only one entry for torch mode will be
10088 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10089 <!-- end of entry -->
10092 <tr class="entry" id="dynamic_android.flash.firingTime">
10093 <td class="entry_name
10095 android.<wbr/>flash.<wbr/>firing<wbr/>Time
10097 <td class="entry_type">
10098 <span class="entry_type_name">int64</span>
10100 <span class="entry_type_visibility"> [system]</span>
10107 </td> <!-- entry_type -->
10109 <td class="entry_description">
10110 <p>Firing time of flash relative to start of
10114 <td class="entry_units">
10118 <td class="entry_range">
10119 <p>0-(exposure time-flash duration)</p>
10122 <td class="entry_tags">
10123 <ul class="entry_tags">
10124 <li><a href="#tag_FUTURE">FUTURE</a></li>
10129 <tr class="entries_header">
10130 <th class="th_details" colspan="5">Details</th>
10132 <tr class="entry_cont">
10133 <td class="entry_details" colspan="5">
10134 <p>Clamped to (0,<wbr/> exposure time - flash
10135 duration).<wbr/></p>
10140 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10141 <!-- end of entry -->
10144 <tr class="entry" id="dynamic_android.flash.mode">
10145 <td class="entry_name
10147 android.<wbr/>flash.<wbr/>mode
10149 <td class="entry_type">
10150 <span class="entry_type_name entry_type_name_enum">byte</span>
10152 <span class="entry_type_visibility"> [public]</span>
10155 <span class="entry_type_hwlevel">[legacy] </span>
10159 <ul class="entry_type_enum">
10161 <span class="entry_type_enum_name">OFF</span>
10162 <span class="entry_type_enum_notes"><p>Do not fire the flash for this capture.<wbr/></p></span>
10165 <span class="entry_type_enum_name">SINGLE</span>
10166 <span class="entry_type_enum_notes"><p>If the flash is available and charged,<wbr/> fire flash
10167 for this capture.<wbr/></p></span>
10170 <span class="entry_type_enum_name">TORCH</span>
10171 <span class="entry_type_enum_notes"><p>Transition flash to continuously on.<wbr/></p></span>
10175 </td> <!-- entry_type -->
10177 <td class="entry_description">
10178 <p>The desired mode for for the camera device's flash control.<wbr/></p>
10181 <td class="entry_units">
10184 <td class="entry_range">
10187 <td class="entry_tags">
10188 <ul class="entry_tags">
10189 <li><a href="#tag_BC">BC</a></li>
10194 <tr class="entries_header">
10195 <th class="th_details" colspan="5">Details</th>
10197 <tr class="entry_cont">
10198 <td class="entry_details" colspan="5">
10199 <p>This control is only effective when flash unit is available
10200 (<code><a href="#static_android.flash.info.available">android.<wbr/>flash.<wbr/>info.<wbr/>available</a> == true</code>).<wbr/></p>
10201 <p>When this control is used,<wbr/> the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> must be set to ON or OFF.<wbr/>
10202 Otherwise,<wbr/> the camera device auto-exposure related flash control (ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/>
10203 ON_<wbr/>ALWAYS_<wbr/>FLASH,<wbr/> or ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE) will override this control.<wbr/></p>
10204 <p>When set to OFF,<wbr/> the camera device will not fire flash for this capture.<wbr/></p>
10205 <p>When set to SINGLE,<wbr/> the camera device will fire flash regardless of the camera
10206 device's auto-exposure routine's result.<wbr/> When used in still capture case,<wbr/> this
10207 control should be used along with auto-exposure (AE) precapture metering sequence
10208 (<a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>),<wbr/> otherwise,<wbr/> the image may be incorrectly exposed.<wbr/></p>
10209 <p>When set to TORCH,<wbr/> the flash will be on continuously.<wbr/> This mode can be used
10210 for use cases such as preview,<wbr/> auto-focus assist,<wbr/> still capture,<wbr/> or video recording.<wbr/></p>
10211 <p>The flash status will be reported by <a href="#dynamic_android.flash.state">android.<wbr/>flash.<wbr/>state</a> in the capture result metadata.<wbr/></p>
10216 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10217 <!-- end of entry -->
10220 <tr class="entry" id="dynamic_android.flash.state">
10221 <td class="entry_name
10223 android.<wbr/>flash.<wbr/>state
10225 <td class="entry_type">
10226 <span class="entry_type_name entry_type_name_enum">byte</span>
10228 <span class="entry_type_visibility"> [public]</span>
10231 <span class="entry_type_hwlevel">[limited] </span>
10235 <ul class="entry_type_enum">
10237 <span class="entry_type_enum_name">UNAVAILABLE</span>
10238 <span class="entry_type_enum_notes"><p>No flash on camera.<wbr/></p></span>
10241 <span class="entry_type_enum_name">CHARGING</span>
10242 <span class="entry_type_enum_notes"><p>Flash is charging and cannot be fired.<wbr/></p></span>
10245 <span class="entry_type_enum_name">READY</span>
10246 <span class="entry_type_enum_notes"><p>Flash is ready to fire.<wbr/></p></span>
10249 <span class="entry_type_enum_name">FIRED</span>
10250 <span class="entry_type_enum_notes"><p>Flash fired for this capture.<wbr/></p></span>
10253 <span class="entry_type_enum_name">PARTIAL</span>
10254 <span class="entry_type_enum_notes"><p>Flash partially illuminated this frame.<wbr/></p>
10255 <p>This is usually due to the next or previous frame having
10256 the flash fire,<wbr/> and the flash spilling into this capture
10257 due to hardware limitations.<wbr/></p></span>
10261 </td> <!-- entry_type -->
10263 <td class="entry_description">
10264 <p>Current state of the flash
10268 <td class="entry_units">
10271 <td class="entry_range">
10274 <td class="entry_tags">
10278 <tr class="entries_header">
10279 <th class="th_details" colspan="5">Details</th>
10281 <tr class="entry_cont">
10282 <td class="entry_details" colspan="5">
10283 <p>When the camera device doesn't have flash unit
10284 (i.<wbr/>e.<wbr/> <code><a href="#static_android.flash.info.available">android.<wbr/>flash.<wbr/>info.<wbr/>available</a> == false</code>),<wbr/> this state will always be UNAVAILABLE.<wbr/>
10285 Other states indicate the current flash status.<wbr/></p>
10286 <p>In certain conditions,<wbr/> this will be available on LEGACY devices:</p>
10288 <li>Flash-less cameras always return UNAVAILABLE.<wbr/></li>
10289 <li>Using <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>==</code> ON_<wbr/>ALWAYS_<wbr/>FLASH
10290 will always return FIRED.<wbr/></li>
10291 <li>Using <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> <code>==</code> TORCH
10292 will always return FIRED.<wbr/></li>
10294 <p>In all other conditions the state will not be available on
10295 LEGACY devices (i.<wbr/>e.<wbr/> it will be <code>null</code>).<wbr/></p>
10300 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10301 <!-- end of entry -->
10305 <!-- end of kind -->
10308 <!-- end of section -->
10309 <tr><td colspan="6" id="section_hotPixel" class="section">hotPixel</td></tr>
10312 <tr><td colspan="6" class="kind">controls</td></tr>
10314 <thead class="entries_header">
10316 <th class="th_name">Property Name</th>
10317 <th class="th_type">Type</th>
10318 <th class="th_description">Description</th>
10319 <th class="th_units">Units</th>
10320 <th class="th_range">Range</th>
10321 <th class="th_tags">Tags</th>
10336 <tr class="entry" id="controls_android.hotPixel.mode">
10337 <td class="entry_name
10339 android.<wbr/>hot<wbr/>Pixel.<wbr/>mode
10341 <td class="entry_type">
10342 <span class="entry_type_name entry_type_name_enum">byte</span>
10344 <span class="entry_type_visibility"> [public]</span>
10350 <ul class="entry_type_enum">
10352 <span class="entry_type_enum_name">OFF</span>
10353 <span class="entry_type_enum_notes"><p>No hot pixel correction is applied.<wbr/></p>
10354 <p>The frame rate must not be reduced relative to sensor raw output
10355 for this option.<wbr/></p>
10356 <p>The hotpixel map may be returned in <a href="#dynamic_android.statistics.hotPixelMap">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map</a>.<wbr/></p></span>
10359 <span class="entry_type_enum_name">FAST</span>
10360 <span class="entry_type_enum_notes"><p>Hot pixel correction is applied,<wbr/> without reducing frame
10361 rate relative to sensor raw output.<wbr/></p>
10362 <p>The hotpixel map may be returned in <a href="#dynamic_android.statistics.hotPixelMap">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map</a>.<wbr/></p></span>
10365 <span class="entry_type_enum_name">HIGH_QUALITY</span>
10366 <span class="entry_type_enum_notes"><p>High-quality hot pixel correction is applied,<wbr/> at a cost
10367 of possibly reduced frame rate relative to sensor raw output.<wbr/></p>
10368 <p>The hotpixel map may be returned in <a href="#dynamic_android.statistics.hotPixelMap">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map</a>.<wbr/></p></span>
10372 </td> <!-- entry_type -->
10374 <td class="entry_description">
10375 <p>Operational mode for hot pixel correction.<wbr/></p>
10378 <td class="entry_units">
10381 <td class="entry_range">
10382 <p><a href="#static_android.hotPixel.availableHotPixelModes">android.<wbr/>hot<wbr/>Pixel.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Modes</a></p>
10385 <td class="entry_tags">
10386 <ul class="entry_tags">
10387 <li><a href="#tag_V1">V1</a></li>
10388 <li><a href="#tag_RAW">RAW</a></li>
10393 <tr class="entries_header">
10394 <th class="th_details" colspan="5">Details</th>
10396 <tr class="entry_cont">
10397 <td class="entry_details" colspan="5">
10398 <p>Hotpixel correction interpolates out,<wbr/> or otherwise removes,<wbr/> pixels
10399 that do not accurately measure the incoming light (i.<wbr/>e.<wbr/> pixels that
10400 are stuck at an arbitrary value or are oversensitive).<wbr/></p>
10405 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10406 <!-- end of entry -->
10410 <!-- end of kind -->
10412 <tr><td colspan="6" class="kind">static</td></tr>
10414 <thead class="entries_header">
10416 <th class="th_name">Property Name</th>
10417 <th class="th_type">Type</th>
10418 <th class="th_description">Description</th>
10419 <th class="th_units">Units</th>
10420 <th class="th_range">Range</th>
10421 <th class="th_tags">Tags</th>
10436 <tr class="entry" id="static_android.hotPixel.availableHotPixelModes">
10437 <td class="entry_name
10439 android.<wbr/>hot<wbr/>Pixel.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Modes
10441 <td class="entry_type">
10442 <span class="entry_type_name">byte</span>
10443 <span class="entry_type_container">x</span>
10445 <span class="entry_type_array">
10448 <span class="entry_type_visibility"> [public as enumList]</span>
10453 <div class="entry_type_notes">list of enums</div>
10456 </td> <!-- entry_type -->
10458 <td class="entry_description">
10459 <p>List of hot pixel correction modes for <a href="#controls_android.hotPixel.mode">android.<wbr/>hot<wbr/>Pixel.<wbr/>mode</a> that are supported by this
10460 camera device.<wbr/></p>
10463 <td class="entry_units">
10466 <td class="entry_range">
10467 <p>Any value listed in <a href="#controls_android.hotPixel.mode">android.<wbr/>hot<wbr/>Pixel.<wbr/>mode</a></p>
10470 <td class="entry_tags">
10471 <ul class="entry_tags">
10472 <li><a href="#tag_V1">V1</a></li>
10473 <li><a href="#tag_RAW">RAW</a></li>
10478 <tr class="entries_header">
10479 <th class="th_details" colspan="5">Details</th>
10481 <tr class="entry_cont">
10482 <td class="entry_details" colspan="5">
10483 <p>FULL mode camera devices will always support FAST.<wbr/></p>
10487 <tr class="entries_header">
10488 <th class="th_details" colspan="5">HAL Implementation Details</th>
10490 <tr class="entry_cont">
10491 <td class="entry_details" colspan="5">
10492 <p>To avoid performance issues,<wbr/> there will be significantly fewer hot
10493 pixels than actual pixels on the camera sensor.<wbr/>
10494 HAL must support both FAST and HIGH_<wbr/>QUALITY if hot pixel correction control is available
10495 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
10496 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
10497 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
10501 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10502 <!-- end of entry -->
10506 <!-- end of kind -->
10508 <tr><td colspan="6" class="kind">dynamic</td></tr>
10510 <thead class="entries_header">
10512 <th class="th_name">Property Name</th>
10513 <th class="th_type">Type</th>
10514 <th class="th_description">Description</th>
10515 <th class="th_units">Units</th>
10516 <th class="th_range">Range</th>
10517 <th class="th_tags">Tags</th>
10532 <tr class="entry" id="dynamic_android.hotPixel.mode">
10533 <td class="entry_name
10535 android.<wbr/>hot<wbr/>Pixel.<wbr/>mode
10537 <td class="entry_type">
10538 <span class="entry_type_name entry_type_name_enum">byte</span>
10540 <span class="entry_type_visibility"> [public]</span>
10546 <ul class="entry_type_enum">
10548 <span class="entry_type_enum_name">OFF</span>
10549 <span class="entry_type_enum_notes"><p>No hot pixel correction is applied.<wbr/></p>
10550 <p>The frame rate must not be reduced relative to sensor raw output
10551 for this option.<wbr/></p>
10552 <p>The hotpixel map may be returned in <a href="#dynamic_android.statistics.hotPixelMap">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map</a>.<wbr/></p></span>
10555 <span class="entry_type_enum_name">FAST</span>
10556 <span class="entry_type_enum_notes"><p>Hot pixel correction is applied,<wbr/> without reducing frame
10557 rate relative to sensor raw output.<wbr/></p>
10558 <p>The hotpixel map may be returned in <a href="#dynamic_android.statistics.hotPixelMap">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map</a>.<wbr/></p></span>
10561 <span class="entry_type_enum_name">HIGH_QUALITY</span>
10562 <span class="entry_type_enum_notes"><p>High-quality hot pixel correction is applied,<wbr/> at a cost
10563 of possibly reduced frame rate relative to sensor raw output.<wbr/></p>
10564 <p>The hotpixel map may be returned in <a href="#dynamic_android.statistics.hotPixelMap">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map</a>.<wbr/></p></span>
10568 </td> <!-- entry_type -->
10570 <td class="entry_description">
10571 <p>Operational mode for hot pixel correction.<wbr/></p>
10574 <td class="entry_units">
10577 <td class="entry_range">
10578 <p><a href="#static_android.hotPixel.availableHotPixelModes">android.<wbr/>hot<wbr/>Pixel.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Modes</a></p>
10581 <td class="entry_tags">
10582 <ul class="entry_tags">
10583 <li><a href="#tag_V1">V1</a></li>
10584 <li><a href="#tag_RAW">RAW</a></li>
10589 <tr class="entries_header">
10590 <th class="th_details" colspan="5">Details</th>
10592 <tr class="entry_cont">
10593 <td class="entry_details" colspan="5">
10594 <p>Hotpixel correction interpolates out,<wbr/> or otherwise removes,<wbr/> pixels
10595 that do not accurately measure the incoming light (i.<wbr/>e.<wbr/> pixels that
10596 are stuck at an arbitrary value or are oversensitive).<wbr/></p>
10601 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10602 <!-- end of entry -->
10606 <!-- end of kind -->
10609 <!-- end of section -->
10610 <tr><td colspan="6" id="section_jpeg" class="section">jpeg</td></tr>
10613 <tr><td colspan="6" class="kind">controls</td></tr>
10615 <thead class="entries_header">
10617 <th class="th_name">Property Name</th>
10618 <th class="th_type">Type</th>
10619 <th class="th_description">Description</th>
10620 <th class="th_units">Units</th>
10621 <th class="th_range">Range</th>
10622 <th class="th_tags">Tags</th>
10637 <tr class="entry" id="controls_android.jpeg.gpsLocation">
10638 <td class="entry_name
10640 android.<wbr/>jpeg.<wbr/>gps<wbr/>Location
10642 <td class="entry_type">
10643 <span class="entry_type_name">byte</span>
10645 <span class="entry_type_visibility"> [java_public as location]</span>
10647 <span class="entry_type_synthetic">[synthetic] </span>
10649 <span class="entry_type_hwlevel">[legacy] </span>
10654 </td> <!-- entry_type -->
10656 <td class="entry_description">
10657 <p>A location object to use when generating image GPS metadata.<wbr/></p>
10660 <td class="entry_units">
10663 <td class="entry_range">
10666 <td class="entry_tags">
10670 <tr class="entries_header">
10671 <th class="th_details" colspan="5">Details</th>
10673 <tr class="entry_cont">
10674 <td class="entry_details" colspan="5">
10675 <p>Setting a location object in a request will include the GPS coordinates of the location
10676 into any JPEG images captured based on the request.<wbr/> These coordinates can then be
10677 viewed by anyone who receives the JPEG image.<wbr/></p>
10682 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10683 <!-- end of entry -->
10686 <tr class="entry" id="controls_android.jpeg.gpsCoordinates">
10687 <td class="entry_name
10689 android.<wbr/>jpeg.<wbr/>gps<wbr/>Coordinates
10691 <td class="entry_type">
10692 <span class="entry_type_name">double</span>
10693 <span class="entry_type_container">x</span>
10695 <span class="entry_type_array">
10698 <span class="entry_type_visibility"> [ndk_public]</span>
10701 <span class="entry_type_hwlevel">[legacy] </span>
10704 <div class="entry_type_notes">latitude,<wbr/> longitude,<wbr/> altitude.<wbr/> First two in degrees,<wbr/> the third in meters</div>
10707 </td> <!-- entry_type -->
10709 <td class="entry_description">
10710 <p>GPS coordinates to include in output JPEG
10714 <td class="entry_units">
10717 <td class="entry_range">
10718 <p>(-180 - 180],<wbr/> [-90,<wbr/>90],<wbr/> [-inf,<wbr/> inf]</p>
10721 <td class="entry_tags">
10722 <ul class="entry_tags">
10723 <li><a href="#tag_BC">BC</a></li>
10730 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10731 <!-- end of entry -->
10734 <tr class="entry" id="controls_android.jpeg.gpsProcessingMethod">
10735 <td class="entry_name
10737 android.<wbr/>jpeg.<wbr/>gps<wbr/>Processing<wbr/>Method
10739 <td class="entry_type">
10740 <span class="entry_type_name">byte</span>
10742 <span class="entry_type_visibility"> [ndk_public as string]</span>
10745 <span class="entry_type_hwlevel">[legacy] </span>
10750 </td> <!-- entry_type -->
10752 <td class="entry_description">
10753 <p>32 characters describing GPS algorithm to
10754 include in EXIF.<wbr/></p>
10757 <td class="entry_units">
10758 UTF-8 null-terminated string
10761 <td class="entry_range">
10764 <td class="entry_tags">
10765 <ul class="entry_tags">
10766 <li><a href="#tag_BC">BC</a></li>
10773 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10774 <!-- end of entry -->
10777 <tr class="entry" id="controls_android.jpeg.gpsTimestamp">
10778 <td class="entry_name
10780 android.<wbr/>jpeg.<wbr/>gps<wbr/>Timestamp
10782 <td class="entry_type">
10783 <span class="entry_type_name">int64</span>
10785 <span class="entry_type_visibility"> [ndk_public]</span>
10788 <span class="entry_type_hwlevel">[legacy] </span>
10793 </td> <!-- entry_type -->
10795 <td class="entry_description">
10796 <p>Time GPS fix was made to include in
10800 <td class="entry_units">
10801 UTC in seconds since January 1,<wbr/> 1970
10804 <td class="entry_range">
10807 <td class="entry_tags">
10808 <ul class="entry_tags">
10809 <li><a href="#tag_BC">BC</a></li>
10816 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10817 <!-- end of entry -->
10820 <tr class="entry" id="controls_android.jpeg.orientation">
10821 <td class="entry_name
10823 android.<wbr/>jpeg.<wbr/>orientation
10825 <td class="entry_type">
10826 <span class="entry_type_name">int32</span>
10828 <span class="entry_type_visibility"> [public]</span>
10831 <span class="entry_type_hwlevel">[legacy] </span>
10836 </td> <!-- entry_type -->
10838 <td class="entry_description">
10839 <p>The orientation for a JPEG image.<wbr/></p>
10842 <td class="entry_units">
10843 Degrees in multiples of 90
10846 <td class="entry_range">
10847 <p>0,<wbr/> 90,<wbr/> 180,<wbr/> 270</p>
10850 <td class="entry_tags">
10851 <ul class="entry_tags">
10852 <li><a href="#tag_BC">BC</a></li>
10857 <tr class="entries_header">
10858 <th class="th_details" colspan="5">Details</th>
10860 <tr class="entry_cont">
10861 <td class="entry_details" colspan="5">
10862 <p>The clockwise rotation angle in degrees,<wbr/> relative to the orientation
10863 to the camera,<wbr/> that the JPEG picture needs to be rotated by,<wbr/> to be viewed
10865 <p>Camera devices may either encode this value into the JPEG EXIF header,<wbr/> or
10866 rotate the image data to match this orientation.<wbr/> When the image data is rotated,<wbr/>
10867 the thumbnail data will also be rotated.<wbr/></p>
10868 <p>Note that this orientation is relative to the orientation of the camera sensor,<wbr/> given
10869 by <a href="#static_android.sensor.orientation">android.<wbr/>sensor.<wbr/>orientation</a>.<wbr/></p>
10870 <p>To translate from the device orientation given by the Android sensor APIs,<wbr/> the following
10871 sample code may be used:</p>
10872 <pre><code>private int getJpegOrientation(CameraCharacteristics c,<wbr/> int deviceOrientation) {
10873 if (deviceOrientation == android.<wbr/>view.<wbr/>Orientation<wbr/>Event<wbr/>Listener.<wbr/>ORIENTATION_<wbr/>UNKNOWN) return 0;
10874 int sensorOrientation = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>SENSOR_<wbr/>ORIENTATION);
10876 //<wbr/> Round device orientation to a multiple of 90
10877 deviceOrientation = (deviceOrientation + 45) /<wbr/> 90 * 90;
10879 //<wbr/> Reverse device orientation for front-facing cameras
10880 boolean facingFront = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING) == Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING_<wbr/>FRONT;
10881 if (facingFront) deviceOrientation = -deviceOrientation;
10883 //<wbr/> Calculate desired JPEG orientation relative to camera orientation to make
10884 //<wbr/> the image upright relative to the device orientation
10885 int jpegOrientation = (sensorOrientation + deviceOrientation + 360) % 360;
10887 return jpegOrientation;
10894 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10895 <!-- end of entry -->
10898 <tr class="entry" id="controls_android.jpeg.quality">
10899 <td class="entry_name
10901 android.<wbr/>jpeg.<wbr/>quality
10903 <td class="entry_type">
10904 <span class="entry_type_name">byte</span>
10906 <span class="entry_type_visibility"> [public]</span>
10909 <span class="entry_type_hwlevel">[legacy] </span>
10914 </td> <!-- entry_type -->
10916 <td class="entry_description">
10917 <p>Compression quality of the final JPEG
10921 <td class="entry_units">
10924 <td class="entry_range">
10925 <p>1-100; larger is higher quality</p>
10928 <td class="entry_tags">
10929 <ul class="entry_tags">
10930 <li><a href="#tag_BC">BC</a></li>
10935 <tr class="entries_header">
10936 <th class="th_details" colspan="5">Details</th>
10938 <tr class="entry_cont">
10939 <td class="entry_details" colspan="5">
10940 <p>85-95 is typical usage range.<wbr/></p>
10945 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10946 <!-- end of entry -->
10949 <tr class="entry" id="controls_android.jpeg.thumbnailQuality">
10950 <td class="entry_name
10952 android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Quality
10954 <td class="entry_type">
10955 <span class="entry_type_name">byte</span>
10957 <span class="entry_type_visibility"> [public]</span>
10960 <span class="entry_type_hwlevel">[legacy] </span>
10965 </td> <!-- entry_type -->
10967 <td class="entry_description">
10968 <p>Compression quality of JPEG
10969 thumbnail.<wbr/></p>
10972 <td class="entry_units">
10975 <td class="entry_range">
10976 <p>1-100; larger is higher quality</p>
10979 <td class="entry_tags">
10980 <ul class="entry_tags">
10981 <li><a href="#tag_BC">BC</a></li>
10988 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10989 <!-- end of entry -->
10992 <tr class="entry" id="controls_android.jpeg.thumbnailSize">
10993 <td class="entry_name
10995 android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Size
10997 <td class="entry_type">
10998 <span class="entry_type_name">int32</span>
10999 <span class="entry_type_container">x</span>
11001 <span class="entry_type_array">
11004 <span class="entry_type_visibility"> [public as size]</span>
11007 <span class="entry_type_hwlevel">[legacy] </span>
11012 </td> <!-- entry_type -->
11014 <td class="entry_description">
11015 <p>Resolution of embedded JPEG thumbnail.<wbr/></p>
11018 <td class="entry_units">
11021 <td class="entry_range">
11022 <p><a href="#static_android.jpeg.availableThumbnailSizes">android.<wbr/>jpeg.<wbr/>available<wbr/>Thumbnail<wbr/>Sizes</a></p>
11025 <td class="entry_tags">
11026 <ul class="entry_tags">
11027 <li><a href="#tag_BC">BC</a></li>
11032 <tr class="entries_header">
11033 <th class="th_details" colspan="5">Details</th>
11035 <tr class="entry_cont">
11036 <td class="entry_details" colspan="5">
11037 <p>When set to (0,<wbr/> 0) value,<wbr/> the JPEG EXIF will not contain thumbnail,<wbr/>
11038 but the captured JPEG will still be a valid image.<wbr/></p>
11039 <p>For best results,<wbr/> when issuing a request for a JPEG image,<wbr/> the thumbnail size selected
11040 should have the same aspect ratio as the main JPEG output.<wbr/></p>
11041 <p>If the thumbnail image aspect ratio differs from the JPEG primary image aspect
11042 ratio,<wbr/> the camera device creates the thumbnail by cropping it from the primary image.<wbr/>
11043 For example,<wbr/> if the primary image has 4:3 aspect ratio,<wbr/> the thumbnail image has
11044 16:9 aspect ratio,<wbr/> the primary image will be cropped vertically (letterbox) to
11045 generate the thumbnail image.<wbr/> The thumbnail image will always have a smaller Field
11046 Of View (FOV) than the primary image when aspect ratios differ.<wbr/></p>
11047 <p>When an <a href="#controls_android.jpeg.orientation">android.<wbr/>jpeg.<wbr/>orientation</a> of non-zero degree is requested,<wbr/>
11048 the camera device will handle thumbnail rotation in one of the following ways:</p>
11050 <li>Set the <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>
11051 and keep jpeg and thumbnail image data unrotated.<wbr/></li>
11052 <li>Rotate the jpeg and thumbnail image data and not set
11053 <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>.<wbr/> In this
11054 case,<wbr/> LIMITED or FULL hardware level devices will report rotated thumnail size in
11055 capture result,<wbr/> so the width and height will be interchanged if 90 or 270 degree
11056 orientation is requested.<wbr/> LEGACY device will always report unrotated thumbnail
11062 <tr class="entries_header">
11063 <th class="th_details" colspan="5">HAL Implementation Details</th>
11065 <tr class="entry_cont">
11066 <td class="entry_details" colspan="5">
11067 <p>The HAL must not squeeze or stretch the downscaled primary image to generate thumbnail.<wbr/>
11068 The cropping must be done on the primary jpeg image rather than the sensor active array.<wbr/>
11069 The stream cropping rule specified by "S5.<wbr/> Cropping" in camera3.<wbr/>h doesn't apply to the
11070 thumbnail image cropping.<wbr/></p>
11074 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11075 <!-- end of entry -->
11079 <!-- end of kind -->
11081 <tr><td colspan="6" class="kind">static</td></tr>
11083 <thead class="entries_header">
11085 <th class="th_name">Property Name</th>
11086 <th class="th_type">Type</th>
11087 <th class="th_description">Description</th>
11088 <th class="th_units">Units</th>
11089 <th class="th_range">Range</th>
11090 <th class="th_tags">Tags</th>
11105 <tr class="entry" id="static_android.jpeg.availableThumbnailSizes">
11106 <td class="entry_name
11108 android.<wbr/>jpeg.<wbr/>available<wbr/>Thumbnail<wbr/>Sizes
11110 <td class="entry_type">
11111 <span class="entry_type_name">int32</span>
11112 <span class="entry_type_container">x</span>
11114 <span class="entry_type_array">
11117 <span class="entry_type_visibility"> [public as size]</span>
11120 <span class="entry_type_hwlevel">[legacy] </span>
11125 </td> <!-- entry_type -->
11127 <td class="entry_description">
11128 <p>List of JPEG thumbnail sizes for <a href="#controls_android.jpeg.thumbnailSize">android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Size</a> supported by this
11129 camera device.<wbr/></p>
11132 <td class="entry_units">
11135 <td class="entry_range">
11138 <td class="entry_tags">
11139 <ul class="entry_tags">
11140 <li><a href="#tag_BC">BC</a></li>
11145 <tr class="entries_header">
11146 <th class="th_details" colspan="5">Details</th>
11148 <tr class="entry_cont">
11149 <td class="entry_details" colspan="5">
11150 <p>This list will include at least one non-zero resolution,<wbr/> plus <code>(0,<wbr/>0)</code> for indicating no
11151 thumbnail should be generated.<wbr/></p>
11152 <p>Below condiditions will be satisfied for this size list:</p>
11154 <li>The sizes will be sorted by increasing pixel area (width x height).<wbr/>
11155 If several resolutions have the same area,<wbr/> they will be sorted by increasing width.<wbr/></li>
11156 <li>The aspect ratio of the largest thumbnail size will be same as the
11157 aspect ratio of largest JPEG output size in <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a>.<wbr/>
11158 The largest size is defined as the size that has the largest pixel area
11159 in a given size list.<wbr/></li>
11160 <li>Each output JPEG size in <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> will have at least
11161 one corresponding size that has the same aspect ratio in availableThumbnailSizes,<wbr/>
11162 and vice versa.<wbr/></li>
11163 <li>All non-<code>(0,<wbr/> 0)</code> sizes will have non-zero widths and heights.<wbr/></li>
11169 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11170 <!-- end of entry -->
11173 <tr class="entry" id="static_android.jpeg.maxSize">
11174 <td class="entry_name
11176 android.<wbr/>jpeg.<wbr/>max<wbr/>Size
11178 <td class="entry_type">
11179 <span class="entry_type_name">int32</span>
11181 <span class="entry_type_visibility"> [system]</span>
11188 </td> <!-- entry_type -->
11190 <td class="entry_description">
11191 <p>Maximum size in bytes for the compressed
11195 <td class="entry_units">
11198 <td class="entry_range">
11199 <p>Must be large enough to fit any JPEG produced by
11203 <td class="entry_tags">
11207 <tr class="entries_header">
11208 <th class="th_details" colspan="5">Details</th>
11210 <tr class="entry_cont">
11211 <td class="entry_details" colspan="5">
11212 <p>This is used for sizing the gralloc buffers for
11218 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11219 <!-- end of entry -->
11223 <!-- end of kind -->
11225 <tr><td colspan="6" class="kind">dynamic</td></tr>
11227 <thead class="entries_header">
11229 <th class="th_name">Property Name</th>
11230 <th class="th_type">Type</th>
11231 <th class="th_description">Description</th>
11232 <th class="th_units">Units</th>
11233 <th class="th_range">Range</th>
11234 <th class="th_tags">Tags</th>
11249 <tr class="entry" id="dynamic_android.jpeg.gpsLocation">
11250 <td class="entry_name
11252 android.<wbr/>jpeg.<wbr/>gps<wbr/>Location
11254 <td class="entry_type">
11255 <span class="entry_type_name">byte</span>
11257 <span class="entry_type_visibility"> [java_public as location]</span>
11259 <span class="entry_type_synthetic">[synthetic] </span>
11261 <span class="entry_type_hwlevel">[legacy] </span>
11266 </td> <!-- entry_type -->
11268 <td class="entry_description">
11269 <p>A location object to use when generating image GPS metadata.<wbr/></p>
11272 <td class="entry_units">
11275 <td class="entry_range">
11278 <td class="entry_tags">
11282 <tr class="entries_header">
11283 <th class="th_details" colspan="5">Details</th>
11285 <tr class="entry_cont">
11286 <td class="entry_details" colspan="5">
11287 <p>Setting a location object in a request will include the GPS coordinates of the location
11288 into any JPEG images captured based on the request.<wbr/> These coordinates can then be
11289 viewed by anyone who receives the JPEG image.<wbr/></p>
11294 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11295 <!-- end of entry -->
11298 <tr class="entry" id="dynamic_android.jpeg.gpsCoordinates">
11299 <td class="entry_name
11301 android.<wbr/>jpeg.<wbr/>gps<wbr/>Coordinates
11303 <td class="entry_type">
11304 <span class="entry_type_name">double</span>
11305 <span class="entry_type_container">x</span>
11307 <span class="entry_type_array">
11310 <span class="entry_type_visibility"> [ndk_public]</span>
11313 <span class="entry_type_hwlevel">[legacy] </span>
11316 <div class="entry_type_notes">latitude,<wbr/> longitude,<wbr/> altitude.<wbr/> First two in degrees,<wbr/> the third in meters</div>
11319 </td> <!-- entry_type -->
11321 <td class="entry_description">
11322 <p>GPS coordinates to include in output JPEG
11326 <td class="entry_units">
11329 <td class="entry_range">
11330 <p>(-180 - 180],<wbr/> [-90,<wbr/>90],<wbr/> [-inf,<wbr/> inf]</p>
11333 <td class="entry_tags">
11334 <ul class="entry_tags">
11335 <li><a href="#tag_BC">BC</a></li>
11342 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11343 <!-- end of entry -->
11346 <tr class="entry" id="dynamic_android.jpeg.gpsProcessingMethod">
11347 <td class="entry_name
11349 android.<wbr/>jpeg.<wbr/>gps<wbr/>Processing<wbr/>Method
11351 <td class="entry_type">
11352 <span class="entry_type_name">byte</span>
11354 <span class="entry_type_visibility"> [ndk_public as string]</span>
11357 <span class="entry_type_hwlevel">[legacy] </span>
11362 </td> <!-- entry_type -->
11364 <td class="entry_description">
11365 <p>32 characters describing GPS algorithm to
11366 include in EXIF.<wbr/></p>
11369 <td class="entry_units">
11370 UTF-8 null-terminated string
11373 <td class="entry_range">
11376 <td class="entry_tags">
11377 <ul class="entry_tags">
11378 <li><a href="#tag_BC">BC</a></li>
11385 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11386 <!-- end of entry -->
11389 <tr class="entry" id="dynamic_android.jpeg.gpsTimestamp">
11390 <td class="entry_name
11392 android.<wbr/>jpeg.<wbr/>gps<wbr/>Timestamp
11394 <td class="entry_type">
11395 <span class="entry_type_name">int64</span>
11397 <span class="entry_type_visibility"> [ndk_public]</span>
11400 <span class="entry_type_hwlevel">[legacy] </span>
11405 </td> <!-- entry_type -->
11407 <td class="entry_description">
11408 <p>Time GPS fix was made to include in
11412 <td class="entry_units">
11413 UTC in seconds since January 1,<wbr/> 1970
11416 <td class="entry_range">
11419 <td class="entry_tags">
11420 <ul class="entry_tags">
11421 <li><a href="#tag_BC">BC</a></li>
11428 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11429 <!-- end of entry -->
11432 <tr class="entry" id="dynamic_android.jpeg.orientation">
11433 <td class="entry_name
11435 android.<wbr/>jpeg.<wbr/>orientation
11437 <td class="entry_type">
11438 <span class="entry_type_name">int32</span>
11440 <span class="entry_type_visibility"> [public]</span>
11443 <span class="entry_type_hwlevel">[legacy] </span>
11448 </td> <!-- entry_type -->
11450 <td class="entry_description">
11451 <p>The orientation for a JPEG image.<wbr/></p>
11454 <td class="entry_units">
11455 Degrees in multiples of 90
11458 <td class="entry_range">
11459 <p>0,<wbr/> 90,<wbr/> 180,<wbr/> 270</p>
11462 <td class="entry_tags">
11463 <ul class="entry_tags">
11464 <li><a href="#tag_BC">BC</a></li>
11469 <tr class="entries_header">
11470 <th class="th_details" colspan="5">Details</th>
11472 <tr class="entry_cont">
11473 <td class="entry_details" colspan="5">
11474 <p>The clockwise rotation angle in degrees,<wbr/> relative to the orientation
11475 to the camera,<wbr/> that the JPEG picture needs to be rotated by,<wbr/> to be viewed
11477 <p>Camera devices may either encode this value into the JPEG EXIF header,<wbr/> or
11478 rotate the image data to match this orientation.<wbr/> When the image data is rotated,<wbr/>
11479 the thumbnail data will also be rotated.<wbr/></p>
11480 <p>Note that this orientation is relative to the orientation of the camera sensor,<wbr/> given
11481 by <a href="#static_android.sensor.orientation">android.<wbr/>sensor.<wbr/>orientation</a>.<wbr/></p>
11482 <p>To translate from the device orientation given by the Android sensor APIs,<wbr/> the following
11483 sample code may be used:</p>
11484 <pre><code>private int getJpegOrientation(CameraCharacteristics c,<wbr/> int deviceOrientation) {
11485 if (deviceOrientation == android.<wbr/>view.<wbr/>Orientation<wbr/>Event<wbr/>Listener.<wbr/>ORIENTATION_<wbr/>UNKNOWN) return 0;
11486 int sensorOrientation = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>SENSOR_<wbr/>ORIENTATION);
11488 //<wbr/> Round device orientation to a multiple of 90
11489 deviceOrientation = (deviceOrientation + 45) /<wbr/> 90 * 90;
11491 //<wbr/> Reverse device orientation for front-facing cameras
11492 boolean facingFront = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING) == Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING_<wbr/>FRONT;
11493 if (facingFront) deviceOrientation = -deviceOrientation;
11495 //<wbr/> Calculate desired JPEG orientation relative to camera orientation to make
11496 //<wbr/> the image upright relative to the device orientation
11497 int jpegOrientation = (sensorOrientation + deviceOrientation + 360) % 360;
11499 return jpegOrientation;
11506 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11507 <!-- end of entry -->
11510 <tr class="entry" id="dynamic_android.jpeg.quality">
11511 <td class="entry_name
11513 android.<wbr/>jpeg.<wbr/>quality
11515 <td class="entry_type">
11516 <span class="entry_type_name">byte</span>
11518 <span class="entry_type_visibility"> [public]</span>
11521 <span class="entry_type_hwlevel">[legacy] </span>
11526 </td> <!-- entry_type -->
11528 <td class="entry_description">
11529 <p>Compression quality of the final JPEG
11533 <td class="entry_units">
11536 <td class="entry_range">
11537 <p>1-100; larger is higher quality</p>
11540 <td class="entry_tags">
11541 <ul class="entry_tags">
11542 <li><a href="#tag_BC">BC</a></li>
11547 <tr class="entries_header">
11548 <th class="th_details" colspan="5">Details</th>
11550 <tr class="entry_cont">
11551 <td class="entry_details" colspan="5">
11552 <p>85-95 is typical usage range.<wbr/></p>
11557 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11558 <!-- end of entry -->
11561 <tr class="entry" id="dynamic_android.jpeg.size">
11562 <td class="entry_name
11564 android.<wbr/>jpeg.<wbr/>size
11566 <td class="entry_type">
11567 <span class="entry_type_name">int32</span>
11569 <span class="entry_type_visibility"> [system]</span>
11576 </td> <!-- entry_type -->
11578 <td class="entry_description">
11579 <p>The size of the compressed JPEG image,<wbr/> in
11583 <td class="entry_units">
11586 <td class="entry_range">
11590 <td class="entry_tags">
11591 <ul class="entry_tags">
11592 <li><a href="#tag_FUTURE">FUTURE</a></li>
11597 <tr class="entries_header">
11598 <th class="th_details" colspan="5">Details</th>
11600 <tr class="entry_cont">
11601 <td class="entry_details" colspan="5">
11602 <p>If no JPEG output is produced for the request,<wbr/>
11603 this must be 0.<wbr/></p>
11604 <p>Otherwise,<wbr/> this describes the real size of the compressed
11605 JPEG image placed in the output stream.<wbr/> More specifically,<wbr/>
11606 if <a href="#static_android.jpeg.maxSize">android.<wbr/>jpeg.<wbr/>max<wbr/>Size</a> = 1000000,<wbr/> and a specific capture
11607 has <a href="#dynamic_android.jpeg.size">android.<wbr/>jpeg.<wbr/>size</a> = 500000,<wbr/> then the output buffer from
11608 the JPEG stream will be 1000000 bytes,<wbr/> of which the first
11609 500000 make up the real data.<wbr/></p>
11614 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11615 <!-- end of entry -->
11618 <tr class="entry" id="dynamic_android.jpeg.thumbnailQuality">
11619 <td class="entry_name
11621 android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Quality
11623 <td class="entry_type">
11624 <span class="entry_type_name">byte</span>
11626 <span class="entry_type_visibility"> [public]</span>
11629 <span class="entry_type_hwlevel">[legacy] </span>
11634 </td> <!-- entry_type -->
11636 <td class="entry_description">
11637 <p>Compression quality of JPEG
11638 thumbnail.<wbr/></p>
11641 <td class="entry_units">
11644 <td class="entry_range">
11645 <p>1-100; larger is higher quality</p>
11648 <td class="entry_tags">
11649 <ul class="entry_tags">
11650 <li><a href="#tag_BC">BC</a></li>
11657 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11658 <!-- end of entry -->
11661 <tr class="entry" id="dynamic_android.jpeg.thumbnailSize">
11662 <td class="entry_name
11664 android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Size
11666 <td class="entry_type">
11667 <span class="entry_type_name">int32</span>
11668 <span class="entry_type_container">x</span>
11670 <span class="entry_type_array">
11673 <span class="entry_type_visibility"> [public as size]</span>
11676 <span class="entry_type_hwlevel">[legacy] </span>
11681 </td> <!-- entry_type -->
11683 <td class="entry_description">
11684 <p>Resolution of embedded JPEG thumbnail.<wbr/></p>
11687 <td class="entry_units">
11690 <td class="entry_range">
11691 <p><a href="#static_android.jpeg.availableThumbnailSizes">android.<wbr/>jpeg.<wbr/>available<wbr/>Thumbnail<wbr/>Sizes</a></p>
11694 <td class="entry_tags">
11695 <ul class="entry_tags">
11696 <li><a href="#tag_BC">BC</a></li>
11701 <tr class="entries_header">
11702 <th class="th_details" colspan="5">Details</th>
11704 <tr class="entry_cont">
11705 <td class="entry_details" colspan="5">
11706 <p>When set to (0,<wbr/> 0) value,<wbr/> the JPEG EXIF will not contain thumbnail,<wbr/>
11707 but the captured JPEG will still be a valid image.<wbr/></p>
11708 <p>For best results,<wbr/> when issuing a request for a JPEG image,<wbr/> the thumbnail size selected
11709 should have the same aspect ratio as the main JPEG output.<wbr/></p>
11710 <p>If the thumbnail image aspect ratio differs from the JPEG primary image aspect
11711 ratio,<wbr/> the camera device creates the thumbnail by cropping it from the primary image.<wbr/>
11712 For example,<wbr/> if the primary image has 4:3 aspect ratio,<wbr/> the thumbnail image has
11713 16:9 aspect ratio,<wbr/> the primary image will be cropped vertically (letterbox) to
11714 generate the thumbnail image.<wbr/> The thumbnail image will always have a smaller Field
11715 Of View (FOV) than the primary image when aspect ratios differ.<wbr/></p>
11716 <p>When an <a href="#controls_android.jpeg.orientation">android.<wbr/>jpeg.<wbr/>orientation</a> of non-zero degree is requested,<wbr/>
11717 the camera device will handle thumbnail rotation in one of the following ways:</p>
11719 <li>Set the <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>
11720 and keep jpeg and thumbnail image data unrotated.<wbr/></li>
11721 <li>Rotate the jpeg and thumbnail image data and not set
11722 <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>.<wbr/> In this
11723 case,<wbr/> LIMITED or FULL hardware level devices will report rotated thumnail size in
11724 capture result,<wbr/> so the width and height will be interchanged if 90 or 270 degree
11725 orientation is requested.<wbr/> LEGACY device will always report unrotated thumbnail
11731 <tr class="entries_header">
11732 <th class="th_details" colspan="5">HAL Implementation Details</th>
11734 <tr class="entry_cont">
11735 <td class="entry_details" colspan="5">
11736 <p>The HAL must not squeeze or stretch the downscaled primary image to generate thumbnail.<wbr/>
11737 The cropping must be done on the primary jpeg image rather than the sensor active array.<wbr/>
11738 The stream cropping rule specified by "S5.<wbr/> Cropping" in camera3.<wbr/>h doesn't apply to the
11739 thumbnail image cropping.<wbr/></p>
11743 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11744 <!-- end of entry -->
11748 <!-- end of kind -->
11751 <!-- end of section -->
11752 <tr><td colspan="6" id="section_lens" class="section">lens</td></tr>
11755 <tr><td colspan="6" class="kind">controls</td></tr>
11757 <thead class="entries_header">
11759 <th class="th_name">Property Name</th>
11760 <th class="th_type">Type</th>
11761 <th class="th_description">Description</th>
11762 <th class="th_units">Units</th>
11763 <th class="th_range">Range</th>
11764 <th class="th_tags">Tags</th>
11779 <tr class="entry" id="controls_android.lens.aperture">
11780 <td class="entry_name
11782 android.<wbr/>lens.<wbr/>aperture
11784 <td class="entry_type">
11785 <span class="entry_type_name">float</span>
11787 <span class="entry_type_visibility"> [public]</span>
11790 <span class="entry_type_hwlevel">[full] </span>
11795 </td> <!-- entry_type -->
11797 <td class="entry_description">
11798 <p>The desired lens aperture size,<wbr/> as a ratio of lens focal length to the
11799 effective aperture diameter.<wbr/></p>
11802 <td class="entry_units">
11803 The f-number (f/<wbr/>N)
11806 <td class="entry_range">
11807 <p><a href="#static_android.lens.info.availableApertures">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Apertures</a></p>
11810 <td class="entry_tags">
11811 <ul class="entry_tags">
11812 <li><a href="#tag_V1">V1</a></li>
11817 <tr class="entries_header">
11818 <th class="th_details" colspan="5">Details</th>
11820 <tr class="entry_cont">
11821 <td class="entry_details" colspan="5">
11822 <p>Setting this value is only supported on the camera devices that have a variable
11823 aperture lens.<wbr/></p>
11824 <p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/>
11825 this can be set along with <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
11826 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>,<wbr/> and <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>
11827 to achieve manual exposure control.<wbr/></p>
11828 <p>The requested aperture value may take several frames to reach the
11829 requested value; the camera device will report the current (intermediate)
11830 aperture size in capture result metadata while the aperture is changing.<wbr/>
11831 While the aperture is still changing,<wbr/> <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will be set to MOVING.<wbr/></p>
11832 <p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is one of
11833 the ON modes,<wbr/> this will be overridden by the camera device
11834 auto-exposure algorithm,<wbr/> the overridden values are then provided
11835 back to the user in the corresponding result.<wbr/></p>
11840 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11841 <!-- end of entry -->
11844 <tr class="entry" id="controls_android.lens.filterDensity">
11845 <td class="entry_name
11847 android.<wbr/>lens.<wbr/>filter<wbr/>Density
11849 <td class="entry_type">
11850 <span class="entry_type_name">float</span>
11852 <span class="entry_type_visibility"> [public]</span>
11855 <span class="entry_type_hwlevel">[full] </span>
11860 </td> <!-- entry_type -->
11862 <td class="entry_description">
11863 <p>The desired setting for the lens neutral density filter(s).<wbr/></p>
11866 <td class="entry_units">
11867 Exposure Value (EV)
11870 <td class="entry_range">
11871 <p><a href="#static_android.lens.info.availableFilterDensities">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Filter<wbr/>Densities</a></p>
11874 <td class="entry_tags">
11875 <ul class="entry_tags">
11876 <li><a href="#tag_V1">V1</a></li>
11881 <tr class="entries_header">
11882 <th class="th_details" colspan="5">Details</th>
11884 <tr class="entry_cont">
11885 <td class="entry_details" colspan="5">
11886 <p>This control will not be supported on most camera devices.<wbr/></p>
11887 <p>Lens filters are typically used to lower the amount of light the
11888 sensor is exposed to (measured in steps of EV).<wbr/> As used here,<wbr/> an EV
11889 step is the standard logarithmic representation,<wbr/> which are
11890 non-negative,<wbr/> and inversely proportional to the amount of light
11891 hitting the sensor.<wbr/> For example,<wbr/> setting this to 0 would result
11892 in no reduction of the incoming light,<wbr/> and setting this to 2 would
11893 mean that the filter is set to reduce incoming light by two stops
11894 (allowing 1/<wbr/>4 of the prior amount of light to the sensor).<wbr/></p>
11895 <p>It may take several frames before the lens filter density changes
11896 to the requested value.<wbr/> While the filter density is still changing,<wbr/>
11897 <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will be set to MOVING.<wbr/></p>
11902 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11903 <!-- end of entry -->
11906 <tr class="entry" id="controls_android.lens.focalLength">
11907 <td class="entry_name
11909 android.<wbr/>lens.<wbr/>focal<wbr/>Length
11911 <td class="entry_type">
11912 <span class="entry_type_name">float</span>
11914 <span class="entry_type_visibility"> [public]</span>
11917 <span class="entry_type_hwlevel">[legacy] </span>
11922 </td> <!-- entry_type -->
11924 <td class="entry_description">
11925 <p>The desired lens focal length; used for optical zoom.<wbr/></p>
11928 <td class="entry_units">
11932 <td class="entry_range">
11933 <p><a href="#static_android.lens.info.availableFocalLengths">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Focal<wbr/>Lengths</a></p>
11936 <td class="entry_tags">
11937 <ul class="entry_tags">
11938 <li><a href="#tag_V1">V1</a></li>
11943 <tr class="entries_header">
11944 <th class="th_details" colspan="5">Details</th>
11946 <tr class="entry_cont">
11947 <td class="entry_details" colspan="5">
11948 <p>This setting controls the physical focal length of the camera
11949 device's lens.<wbr/> Changing the focal length changes the field of
11950 view of the camera device,<wbr/> and is usually used for optical zoom.<wbr/></p>
11951 <p>Like <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> and <a href="#controls_android.lens.aperture">android.<wbr/>lens.<wbr/>aperture</a>,<wbr/> this
11952 setting won't be applied instantaneously,<wbr/> and it may take several
11953 frames before the lens can change to the requested focal length.<wbr/>
11954 While the focal length is still changing,<wbr/> <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will
11955 be set to MOVING.<wbr/></p>
11956 <p>Optical zoom will not be supported on most devices.<wbr/></p>
11961 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11962 <!-- end of entry -->
11965 <tr class="entry" id="controls_android.lens.focusDistance">
11966 <td class="entry_name
11968 android.<wbr/>lens.<wbr/>focus<wbr/>Distance
11970 <td class="entry_type">
11971 <span class="entry_type_name">float</span>
11973 <span class="entry_type_visibility"> [public]</span>
11976 <span class="entry_type_hwlevel">[full] </span>
11981 </td> <!-- entry_type -->
11983 <td class="entry_description">
11984 <p>Desired distance to plane of sharpest focus,<wbr/>
11985 measured from frontmost surface of the lens.<wbr/></p>
11988 <td class="entry_units">
11989 See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
11992 <td class="entry_range">
11996 <td class="entry_tags">
11997 <ul class="entry_tags">
11998 <li><a href="#tag_BC">BC</a></li>
11999 <li><a href="#tag_V1">V1</a></li>
12004 <tr class="entries_header">
12005 <th class="th_details" colspan="5">Details</th>
12007 <tr class="entry_cont">
12008 <td class="entry_details" colspan="5">
12009 <p>This control can be used for setting manual focus,<wbr/> on devices that support
12010 the MANUAL_<wbr/>SENSOR capability and have a variable-focus lens (see
12011 <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a>).<wbr/></p>
12012 <p>A value of <code>0.<wbr/>0f</code> means infinity focus.<wbr/> The value set will be clamped to
12013 <code>[0.<wbr/>0f,<wbr/> <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a>]</code>.<wbr/></p>
12014 <p>Like <a href="#controls_android.lens.focalLength">android.<wbr/>lens.<wbr/>focal<wbr/>Length</a>,<wbr/> this setting won't be applied
12015 instantaneously,<wbr/> and it may take several frames before the lens
12016 can move to the requested focus distance.<wbr/> While the lens is still moving,<wbr/>
12017 <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will be set to MOVING.<wbr/></p>
12018 <p>LEGACY devices support at most setting this to <code>0.<wbr/>0f</code>
12019 for infinity focus.<wbr/></p>
12024 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12025 <!-- end of entry -->
12028 <tr class="entry" id="controls_android.lens.opticalStabilizationMode">
12029 <td class="entry_name
12031 android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode
12033 <td class="entry_type">
12034 <span class="entry_type_name entry_type_name_enum">byte</span>
12036 <span class="entry_type_visibility"> [public]</span>
12039 <span class="entry_type_hwlevel">[limited] </span>
12043 <ul class="entry_type_enum">
12045 <span class="entry_type_enum_name">OFF</span>
12046 <span class="entry_type_enum_notes"><p>Optical stabilization is unavailable.<wbr/></p></span>
12049 <span class="entry_type_enum_name">ON</span>
12050 <span class="entry_type_enum_optional">[optional]</span>
12051 <span class="entry_type_enum_notes"><p>Optical stabilization is enabled.<wbr/></p></span>
12055 </td> <!-- entry_type -->
12057 <td class="entry_description">
12058 <p>Sets whether the camera device uses optical image stabilization (OIS)
12059 when capturing images.<wbr/></p>
12062 <td class="entry_units">
12065 <td class="entry_range">
12066 <p><a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a></p>
12069 <td class="entry_tags">
12070 <ul class="entry_tags">
12071 <li><a href="#tag_V1">V1</a></li>
12076 <tr class="entries_header">
12077 <th class="th_details" colspan="5">Details</th>
12079 <tr class="entry_cont">
12080 <td class="entry_details" colspan="5">
12081 <p>OIS is used to compensate for motion blur due to small
12082 movements of the camera during capture.<wbr/> Unlike digital image
12083 stabilization (<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> OIS
12084 makes use of mechanical elements to stabilize the camera
12085 sensor,<wbr/> and thus allows for longer exposure times before
12086 camera shake becomes apparent.<wbr/></p>
12087 <p>Switching between different optical stabilization modes may take several
12088 frames to initialize,<wbr/> the camera device will report the current mode in
12089 capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/> the
12090 optical stabilization modes in the first several capture results may still
12091 be "OFF",<wbr/> and it will become "ON" when the initialization is done.<wbr/></p>
12092 <p>If a camera device supports both OIS and digital image stabilization
12093 (<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may produce undesirable
12094 interaction,<wbr/> so it is recommended not to enable both at the same time.<wbr/></p>
12095 <p>Not all devices will support OIS; see
12096 <a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a> for
12097 available controls.<wbr/></p>
12102 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12103 <!-- end of entry -->
12107 <!-- end of kind -->
12109 <tr><td colspan="6" class="kind">static</td></tr>
12111 <thead class="entries_header">
12113 <th class="th_name">Property Name</th>
12114 <th class="th_type">Type</th>
12115 <th class="th_description">Description</th>
12116 <th class="th_units">Units</th>
12117 <th class="th_range">Range</th>
12118 <th class="th_tags">Tags</th>
12135 <tr class="entry" id="static_android.lens.info.availableApertures">
12136 <td class="entry_name
12138 android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Apertures
12140 <td class="entry_type">
12141 <span class="entry_type_name">float</span>
12142 <span class="entry_type_container">x</span>
12144 <span class="entry_type_array">
12147 <span class="entry_type_visibility"> [public]</span>
12150 <span class="entry_type_hwlevel">[full] </span>
12155 </td> <!-- entry_type -->
12157 <td class="entry_description">
12158 <p>List of aperture size values for <a href="#controls_android.lens.aperture">android.<wbr/>lens.<wbr/>aperture</a> that are
12159 supported by this camera device.<wbr/></p>
12162 <td class="entry_units">
12163 The aperture f-number
12166 <td class="entry_range">
12169 <td class="entry_tags">
12170 <ul class="entry_tags">
12171 <li><a href="#tag_V1">V1</a></li>
12176 <tr class="entries_header">
12177 <th class="th_details" colspan="5">Details</th>
12179 <tr class="entry_cont">
12180 <td class="entry_details" colspan="5">
12181 <p>If the camera device doesn't support a variable lens aperture,<wbr/>
12182 this list will contain only one value,<wbr/> which is the fixed aperture size.<wbr/></p>
12183 <p>If the camera device supports a variable aperture,<wbr/> the aperture values
12184 in this list will be sorted in ascending order.<wbr/></p>
12189 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12190 <!-- end of entry -->
12193 <tr class="entry" id="static_android.lens.info.availableFilterDensities">
12194 <td class="entry_name
12196 android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Filter<wbr/>Densities
12198 <td class="entry_type">
12199 <span class="entry_type_name">float</span>
12200 <span class="entry_type_container">x</span>
12202 <span class="entry_type_array">
12205 <span class="entry_type_visibility"> [public]</span>
12208 <span class="entry_type_hwlevel">[full] </span>
12213 </td> <!-- entry_type -->
12215 <td class="entry_description">
12216 <p>List of neutral density filter values for
12217 <a href="#controls_android.lens.filterDensity">android.<wbr/>lens.<wbr/>filter<wbr/>Density</a> that are supported by this camera device.<wbr/></p>
12220 <td class="entry_units">
12221 Exposure value (EV)
12224 <td class="entry_range">
12225 <p>Values are >= 0</p>
12228 <td class="entry_tags">
12229 <ul class="entry_tags">
12230 <li><a href="#tag_V1">V1</a></li>
12235 <tr class="entries_header">
12236 <th class="th_details" colspan="5">Details</th>
12238 <tr class="entry_cont">
12239 <td class="entry_details" colspan="5">
12240 <p>If a neutral density filter is not supported by this camera device,<wbr/>
12241 this list will contain only 0.<wbr/> Otherwise,<wbr/> this list will include every
12242 filter density supported by the camera device,<wbr/> in ascending order.<wbr/></p>
12247 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12248 <!-- end of entry -->
12251 <tr class="entry" id="static_android.lens.info.availableFocalLengths">
12252 <td class="entry_name
12254 android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Focal<wbr/>Lengths
12256 <td class="entry_type">
12257 <span class="entry_type_name">float</span>
12258 <span class="entry_type_container">x</span>
12260 <span class="entry_type_array">
12263 <span class="entry_type_visibility"> [public]</span>
12266 <span class="entry_type_hwlevel">[legacy] </span>
12269 <div class="entry_type_notes">The list of available focal lengths</div>
12272 </td> <!-- entry_type -->
12274 <td class="entry_description">
12275 <p>List of focal lengths for <a href="#controls_android.lens.focalLength">android.<wbr/>lens.<wbr/>focal<wbr/>Length</a> that are supported by this camera
12279 <td class="entry_units">
12283 <td class="entry_range">
12284 <p>Values are > 0</p>
12287 <td class="entry_tags">
12288 <ul class="entry_tags">
12289 <li><a href="#tag_BC">BC</a></li>
12290 <li><a href="#tag_V1">V1</a></li>
12295 <tr class="entries_header">
12296 <th class="th_details" colspan="5">Details</th>
12298 <tr class="entry_cont">
12299 <td class="entry_details" colspan="5">
12300 <p>If optical zoom is not supported,<wbr/> this list will only contain
12301 a single value corresponding to the fixed focal length of the
12302 device.<wbr/> Otherwise,<wbr/> this list will include every focal length supported
12303 by the camera device,<wbr/> in ascending order.<wbr/></p>
12308 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12309 <!-- end of entry -->
12312 <tr class="entry" id="static_android.lens.info.availableOpticalStabilization">
12313 <td class="entry_name
12315 android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization
12317 <td class="entry_type">
12318 <span class="entry_type_name">byte</span>
12319 <span class="entry_type_container">x</span>
12321 <span class="entry_type_array">
12324 <span class="entry_type_visibility"> [public as enumList]</span>
12327 <span class="entry_type_hwlevel">[limited] </span>
12330 <div class="entry_type_notes">list of enums</div>
12333 </td> <!-- entry_type -->
12335 <td class="entry_description">
12336 <p>List of optical image stabilization (OIS) modes for
12337 <a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> that are supported by this camera device.<wbr/></p>
12340 <td class="entry_units">
12343 <td class="entry_range">
12344 <p>Any value listed in <a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a></p>
12347 <td class="entry_tags">
12348 <ul class="entry_tags">
12349 <li><a href="#tag_V1">V1</a></li>
12354 <tr class="entries_header">
12355 <th class="th_details" colspan="5">Details</th>
12357 <tr class="entry_cont">
12358 <td class="entry_details" colspan="5">
12359 <p>If OIS is not supported by a given camera device,<wbr/> this list will
12360 contain only OFF.<wbr/></p>
12365 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12366 <!-- end of entry -->
12369 <tr class="entry" id="static_android.lens.info.hyperfocalDistance">
12370 <td class="entry_name
12372 android.<wbr/>lens.<wbr/>info.<wbr/>hyperfocal<wbr/>Distance
12374 <td class="entry_type">
12375 <span class="entry_type_name">float</span>
12377 <span class="entry_type_visibility"> [public]</span>
12380 <span class="entry_type_hwlevel">[limited] </span>
12385 </td> <!-- entry_type -->
12387 <td class="entry_description">
12388 <p>Hyperfocal distance for this lens.<wbr/></p>
12391 <td class="entry_units">
12392 See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
12395 <td class="entry_range">
12396 <p>If lens is fixed focus,<wbr/> >= 0.<wbr/> If lens has focuser unit,<wbr/> the value is
12397 within <code>(0.<wbr/>0f,<wbr/> <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a>]</code></p>
12400 <td class="entry_tags">
12404 <tr class="entries_header">
12405 <th class="th_details" colspan="5">Details</th>
12407 <tr class="entry_cont">
12408 <td class="entry_details" colspan="5">
12409 <p>If the lens is not fixed focus,<wbr/> the camera device will report this
12410 field when <a href="#static_android.lens.info.focusDistanceCalibration">android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration</a> is APPROXIMATE or CALIBRATED.<wbr/></p>
12415 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12416 <!-- end of entry -->
12419 <tr class="entry" id="static_android.lens.info.minimumFocusDistance">
12420 <td class="entry_name
12422 android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance
12424 <td class="entry_type">
12425 <span class="entry_type_name">float</span>
12427 <span class="entry_type_visibility"> [public]</span>
12430 <span class="entry_type_hwlevel">[limited] </span>
12435 </td> <!-- entry_type -->
12437 <td class="entry_description">
12438 <p>Shortest distance from frontmost surface
12439 of the lens that can be brought into sharp focus.<wbr/></p>
12442 <td class="entry_units">
12443 See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
12446 <td class="entry_range">
12450 <td class="entry_tags">
12451 <ul class="entry_tags">
12452 <li><a href="#tag_V1">V1</a></li>
12457 <tr class="entries_header">
12458 <th class="th_details" colspan="5">Details</th>
12460 <tr class="entry_cont">
12461 <td class="entry_details" colspan="5">
12462 <p>If the lens is fixed-focus,<wbr/> this will be
12467 <tr class="entries_header">
12468 <th class="th_details" colspan="5">HAL Implementation Details</th>
12470 <tr class="entry_cont">
12471 <td class="entry_details" colspan="5">
12472 <p>Mandatory for FULL devices; LIMITED devices
12473 must always set this value to 0 for fixed-focus; and may omit
12474 the minimum focus distance otherwise.<wbr/></p>
12475 <p>This field is also mandatory for all devices advertising
12476 the MANUAL_<wbr/>SENSOR capability.<wbr/></p>
12480 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12481 <!-- end of entry -->
12484 <tr class="entry" id="static_android.lens.info.shadingMapSize">
12485 <td class="entry_name
12487 android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size
12489 <td class="entry_type">
12490 <span class="entry_type_name">int32</span>
12491 <span class="entry_type_container">x</span>
12493 <span class="entry_type_array">
12496 <span class="entry_type_visibility"> [ndk_public as size]</span>
12499 <span class="entry_type_hwlevel">[full] </span>
12502 <div class="entry_type_notes">width and height (N,<wbr/> M) of lens shading map provided by the camera device.<wbr/></div>
12505 </td> <!-- entry_type -->
12507 <td class="entry_description">
12508 <p>Dimensions of lens shading map.<wbr/></p>
12511 <td class="entry_units">
12514 <td class="entry_range">
12515 <p>Both values >= 1</p>
12518 <td class="entry_tags">
12519 <ul class="entry_tags">
12520 <li><a href="#tag_V1">V1</a></li>
12525 <tr class="entries_header">
12526 <th class="th_details" colspan="5">Details</th>
12528 <tr class="entry_cont">
12529 <td class="entry_details" colspan="5">
12530 <p>The map should be on the order of 30-40 rows and columns,<wbr/> and
12531 must be smaller than 64x64.<wbr/></p>
12536 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12537 <!-- end of entry -->
12540 <tr class="entry" id="static_android.lens.info.focusDistanceCalibration">
12541 <td class="entry_name
12543 android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration
12545 <td class="entry_type">
12546 <span class="entry_type_name entry_type_name_enum">byte</span>
12548 <span class="entry_type_visibility"> [public]</span>
12551 <span class="entry_type_hwlevel">[limited] </span>
12555 <ul class="entry_type_enum">
12557 <span class="entry_type_enum_name">UNCALIBRATED</span>
12558 <span class="entry_type_enum_notes"><p>The lens focus distance is not accurate,<wbr/> and the units used for
12559 <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> do not correspond to any physical units.<wbr/></p>
12560 <p>Setting the lens to the same focus distance on separate occasions may
12561 result in a different real focus distance,<wbr/> depending on factors such
12562 as the orientation of the device,<wbr/> the age of the focusing mechanism,<wbr/>
12563 and the device temperature.<wbr/> The focus distance value will still be
12564 in the range of <code>[0,<wbr/> <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a>]</code>,<wbr/> where 0
12565 represents the farthest focus.<wbr/></p></span>
12568 <span class="entry_type_enum_name">APPROXIMATE</span>
12569 <span class="entry_type_enum_notes"><p>The lens focus distance is measured in diopters.<wbr/></p>
12570 <p>However,<wbr/> setting the lens to the same focus distance
12571 on separate occasions may result in a different real
12572 focus distance,<wbr/> depending on factors such as the
12573 orientation of the device,<wbr/> the age of the focusing
12574 mechanism,<wbr/> and the device temperature.<wbr/></p></span>
12577 <span class="entry_type_enum_name">CALIBRATED</span>
12578 <span class="entry_type_enum_notes"><p>The lens focus distance is measured in diopters,<wbr/> and
12579 is calibrated.<wbr/></p>
12580 <p>The lens mechanism is calibrated so that setting the
12581 same focus distance is repeatable on multiple
12582 occasions with good accuracy,<wbr/> and the focus distance
12583 corresponds to the real physical distance to the plane
12584 of best focus.<wbr/></p></span>
12588 </td> <!-- entry_type -->
12590 <td class="entry_description">
12591 <p>The lens focus distance calibration quality.<wbr/></p>
12594 <td class="entry_units">
12597 <td class="entry_range">
12600 <td class="entry_tags">
12601 <ul class="entry_tags">
12602 <li><a href="#tag_V1">V1</a></li>
12607 <tr class="entries_header">
12608 <th class="th_details" colspan="5">Details</th>
12610 <tr class="entry_cont">
12611 <td class="entry_details" colspan="5">
12612 <p>The lens focus distance calibration quality determines the reliability of
12613 focus related metadata entries,<wbr/> i.<wbr/>e.<wbr/> <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a>,<wbr/>
12614 <a href="#dynamic_android.lens.focusRange">android.<wbr/>lens.<wbr/>focus<wbr/>Range</a>,<wbr/> <a href="#static_android.lens.info.hyperfocalDistance">android.<wbr/>lens.<wbr/>info.<wbr/>hyperfocal<wbr/>Distance</a>,<wbr/> and
12615 <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a>.<wbr/></p>
12616 <p>APPROXIMATE and CALIBRATED devices report the focus metadata in
12617 units of diopters (1/<wbr/>meter),<wbr/> so <code>0.<wbr/>0f</code> represents focusing at infinity,<wbr/>
12618 and increasing positive numbers represent focusing closer and closer
12619 to the camera device.<wbr/> The focus distance control also uses diopters
12620 on these devices.<wbr/></p>
12621 <p>UNCALIBRATED devices do not use units that are directly comparable
12622 to any real physical measurement,<wbr/> but <code>0.<wbr/>0f</code> still represents farthest
12623 focus,<wbr/> and <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> represents the
12624 nearest focus the device can achieve.<wbr/></p>
12628 <tr class="entries_header">
12629 <th class="th_details" colspan="5">HAL Implementation Details</th>
12631 <tr class="entry_cont">
12632 <td class="entry_details" colspan="5">
12633 <p>For devices advertise APPROXIMATE quality or higher,<wbr/> diopters 0 (infinity
12634 focus) must work.<wbr/> When autofocus is disabled (<a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> == OFF)
12635 and the lens focus distance is set to 0 diopters
12636 (<a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> == 0),<wbr/> the lens will move to focus at infinity
12637 and is stably focused at infinity even if the device tilts.<wbr/> It may take the
12638 lens some time to move; during the move the lens state should be MOVING and
12639 the output diopter value should be changing toward 0.<wbr/></p>
12643 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12644 <!-- end of entry -->
12650 <tr class="entry" id="static_android.lens.facing">
12651 <td class="entry_name
12653 android.<wbr/>lens.<wbr/>facing
12655 <td class="entry_type">
12656 <span class="entry_type_name entry_type_name_enum">byte</span>
12658 <span class="entry_type_visibility"> [public]</span>
12661 <span class="entry_type_hwlevel">[legacy] </span>
12665 <ul class="entry_type_enum">
12667 <span class="entry_type_enum_name">FRONT</span>
12668 <span class="entry_type_enum_notes"><p>The camera device faces the same direction as the device's screen.<wbr/></p></span>
12671 <span class="entry_type_enum_name">BACK</span>
12672 <span class="entry_type_enum_notes"><p>The camera device faces the opposite direction as the device's screen.<wbr/></p></span>
12675 <span class="entry_type_enum_name">EXTERNAL</span>
12676 <span class="entry_type_enum_notes"><p>The camera device is an external camera,<wbr/> and has no fixed facing relative to the
12677 device's screen.<wbr/></p></span>
12681 </td> <!-- entry_type -->
12683 <td class="entry_description">
12684 <p>Direction the camera faces relative to
12685 device screen.<wbr/></p>
12688 <td class="entry_units">
12691 <td class="entry_range">
12694 <td class="entry_tags">
12700 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12701 <!-- end of entry -->
12704 <tr class="entry" id="static_android.lens.poseRotation">
12705 <td class="entry_name
12707 android.<wbr/>lens.<wbr/>pose<wbr/>Rotation
12709 <td class="entry_type">
12710 <span class="entry_type_name">float</span>
12711 <span class="entry_type_container">x</span>
12713 <span class="entry_type_array">
12716 <span class="entry_type_visibility"> [public]</span>
12723 </td> <!-- entry_type -->
12725 <td class="entry_description">
12726 <p>The orientation of the camera relative to the sensor
12727 coordinate system.<wbr/></p>
12730 <td class="entry_units">
12732 Quaternion coefficients
12736 <td class="entry_range">
12739 <td class="entry_tags">
12740 <ul class="entry_tags">
12741 <li><a href="#tag_DEPTH">DEPTH</a></li>
12746 <tr class="entries_header">
12747 <th class="th_details" colspan="5">Details</th>
12749 <tr class="entry_cont">
12750 <td class="entry_details" colspan="5">
12751 <p>The four coefficients that describe the quaternion
12752 rotation from the Android sensor coordinate system to a
12753 camera-aligned coordinate system where the X-axis is
12754 aligned with the long side of the image sensor,<wbr/> the Y-axis
12755 is aligned with the short side of the image sensor,<wbr/> and
12756 the Z-axis is aligned with the optical axis of the sensor.<wbr/></p>
12757 <p>To convert from the quaternion coefficients <code>(x,<wbr/>y,<wbr/>z,<wbr/>w)</code>
12758 to the axis of rotation <code>(a_<wbr/>x,<wbr/> a_<wbr/>y,<wbr/> a_<wbr/>z)</code> and rotation
12759 amount <code>theta</code>,<wbr/> the following formulas can be used:</p>
12760 <pre><code> theta = 2 * acos(w)
12761 a_<wbr/>x = x /<wbr/> sin(theta/<wbr/>2)
12762 a_<wbr/>y = y /<wbr/> sin(theta/<wbr/>2)
12763 a_<wbr/>z = z /<wbr/> sin(theta/<wbr/>2)
12765 <p>To create a 3x3 rotation matrix that applies the rotation
12766 defined by this quaternion,<wbr/> the following matrix can be
12768 <pre><code>R = [ 1 - 2y^2 - 2z^2,<wbr/> 2xy - 2zw,<wbr/> 2xz + 2yw,<wbr/>
12769 2xy + 2zw,<wbr/> 1 - 2x^2 - 2z^2,<wbr/> 2yz - 2xw,<wbr/>
12770 2xz - 2yw,<wbr/> 2yz + 2xw,<wbr/> 1 - 2x^2 - 2y^2 ]
12772 <p>This matrix can then be used to apply the rotation to a
12773 column vector point with</p>
12774 <p><code>p' = Rp</code></p>
12775 <p>where <code>p</code> is in the device sensor coordinate system,<wbr/> and
12776 <code>p'</code> is in the camera-oriented coordinate system.<wbr/></p>
12781 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12782 <!-- end of entry -->
12785 <tr class="entry" id="static_android.lens.poseTranslation">
12786 <td class="entry_name
12788 android.<wbr/>lens.<wbr/>pose<wbr/>Translation
12790 <td class="entry_type">
12791 <span class="entry_type_name">float</span>
12792 <span class="entry_type_container">x</span>
12794 <span class="entry_type_array">
12797 <span class="entry_type_visibility"> [public]</span>
12804 </td> <!-- entry_type -->
12806 <td class="entry_description">
12807 <p>Position of the camera optical center.<wbr/></p>
12810 <td class="entry_units">
12814 <td class="entry_range">
12817 <td class="entry_tags">
12818 <ul class="entry_tags">
12819 <li><a href="#tag_DEPTH">DEPTH</a></li>
12824 <tr class="entries_header">
12825 <th class="th_details" colspan="5">Details</th>
12827 <tr class="entry_cont">
12828 <td class="entry_details" colspan="5">
12829 <p>The position of the camera device's lens optical center,<wbr/>
12830 as a three-dimensional vector <code>(x,<wbr/>y,<wbr/>z)</code>,<wbr/> relative to the
12831 optical center of the largest camera device facing in the
12832 same direction as this camera,<wbr/> in the <a href="https://developer.android.com/reference/android/hardware/SensorEvent.html">Android sensor coordinate
12833 axes</a>.<wbr/> Note that only the axis definitions are shared with
12834 the sensor coordinate system,<wbr/> but not the origin.<wbr/></p>
12835 <p>If this device is the largest or only camera device with a
12836 given facing,<wbr/> then this position will be <code>(0,<wbr/> 0,<wbr/> 0)</code>; a
12837 camera device with a lens optical center located 3 cm from
12838 the main sensor along the +X axis (to the right from the
12839 user's perspective) will report <code>(0.<wbr/>03,<wbr/> 0,<wbr/> 0)</code>.<wbr/></p>
12840 <p>To transform a pixel coordinates between two cameras
12841 facing the same direction,<wbr/> first the source camera
12842 <a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a> must be corrected for.<wbr/> Then
12843 the source camera <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> needs
12844 to be applied,<wbr/> followed by the <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a>
12845 of the source camera,<wbr/> the translation of the source camera
12846 relative to the destination camera,<wbr/> the
12847 <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> of the destination camera,<wbr/> and
12848 finally the inverse of <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a>
12849 of the destination camera.<wbr/> This obtains a
12850 radial-distortion-free coordinate in the destination
12851 camera pixel coordinates.<wbr/></p>
12852 <p>To compare this against a real image from the destination
12853 camera,<wbr/> the destination camera image then needs to be
12854 corrected for radial distortion before comparison or
12855 sampling.<wbr/></p>
12860 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12861 <!-- end of entry -->
12864 <tr class="entry" id="static_android.lens.intrinsicCalibration">
12865 <td class="entry_name
12867 android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration
12869 <td class="entry_type">
12870 <span class="entry_type_name">float</span>
12871 <span class="entry_type_container">x</span>
12873 <span class="entry_type_array">
12876 <span class="entry_type_visibility"> [public]</span>
12883 </td> <!-- entry_type -->
12885 <td class="entry_description">
12886 <p>The parameters for this camera device's intrinsic
12887 calibration.<wbr/></p>
12890 <td class="entry_units">
12893 android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size
12894 coordinate system.<wbr/>
12898 <td class="entry_range">
12901 <td class="entry_tags">
12902 <ul class="entry_tags">
12903 <li><a href="#tag_DEPTH">DEPTH</a></li>
12908 <tr class="entries_header">
12909 <th class="th_details" colspan="5">Details</th>
12911 <tr class="entry_cont">
12912 <td class="entry_details" colspan="5">
12913 <p>The five calibration parameters that describe the
12914 transform from camera-centric 3D coordinates to sensor
12915 pixel coordinates:</p>
12916 <pre><code>[f_<wbr/>x,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>x,<wbr/> c_<wbr/>y,<wbr/> s]
12918 <p>Where <code>f_<wbr/>x</code> and <code>f_<wbr/>y</code> are the horizontal and vertical
12919 focal lengths,<wbr/> <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code> is the position of the optical
12920 axis,<wbr/> and <code>s</code> is a skew parameter for the sensor plane not
12921 being aligned with the lens plane.<wbr/></p>
12922 <p>These are typically used within a transformation matrix K:</p>
12923 <pre><code>K = [ f_<wbr/>x,<wbr/> s,<wbr/> c_<wbr/>x,<wbr/>
12924 0,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>y,<wbr/>
12927 <p>which can then be combined with the camera pose rotation
12928 <code>R</code> and translation <code>t</code> (<a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> and
12929 <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>,<wbr/> respective) to calculate the
12930 complete transform from world coordinates to pixel
12932 <pre><code>P = [ K 0 * [ R t
12935 <p>and with <code>p_<wbr/>w</code> being a point in the world coordinate system
12936 and <code>p_<wbr/>s</code> being a point in the camera active pixel array
12937 coordinate system,<wbr/> and with the mapping including the
12938 homogeneous division by z:</p>
12939 <pre><code> p_<wbr/>h = (x_<wbr/>h,<wbr/> y_<wbr/>h,<wbr/> z_<wbr/>h) = P p_<wbr/>w
12940 p_<wbr/>s = p_<wbr/>h /<wbr/> z_<wbr/>h
12942 <p>so <code>[x_<wbr/>s,<wbr/> y_<wbr/>s]</code> is the pixel coordinates of the world
12943 point,<wbr/> <code>z_<wbr/>s = 1</code>,<wbr/> and <code>w_<wbr/>s</code> is a measurement of disparity
12944 (depth) in pixel coordinates.<wbr/></p>
12945 <p>Note that the coordinate system for this transform is the
12946 <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a> system,<wbr/>
12947 where <code>(0,<wbr/>0)</code> is the top-left of the
12948 preCorrectionActiveArraySize rectangle.<wbr/> Once the pose and
12949 intrinsic calibration transforms have been applied to a
12950 world point,<wbr/> then the <a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a>
12951 transform needs to be applied,<wbr/> and the result adjusted to
12952 be in the <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> coordinate
12953 system (where <code>(0,<wbr/> 0)</code> is the top-left of the
12954 activeArraySize rectangle),<wbr/> to determine the final pixel
12955 coordinate of the world point for processed (non-RAW)
12956 output buffers.<wbr/></p>
12961 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12962 <!-- end of entry -->
12965 <tr class="entry" id="static_android.lens.radialDistortion">
12966 <td class="entry_name
12968 android.<wbr/>lens.<wbr/>radial<wbr/>Distortion
12970 <td class="entry_type">
12971 <span class="entry_type_name">float</span>
12972 <span class="entry_type_container">x</span>
12974 <span class="entry_type_array">
12977 <span class="entry_type_visibility"> [public]</span>
12984 </td> <!-- entry_type -->
12986 <td class="entry_description">
12987 <p>The correction coefficients to correct for this camera device's
12988 radial and tangential lens distortion.<wbr/></p>
12991 <td class="entry_units">
12993 Unitless coefficients.<wbr/>
12997 <td class="entry_range">
13000 <td class="entry_tags">
13001 <ul class="entry_tags">
13002 <li><a href="#tag_DEPTH">DEPTH</a></li>
13007 <tr class="entries_header">
13008 <th class="th_details" colspan="5">Details</th>
13010 <tr class="entry_cont">
13011 <td class="entry_details" colspan="5">
13012 <p>Four radial distortion coefficients <code>[kappa_<wbr/>0,<wbr/> kappa_<wbr/>1,<wbr/> kappa_<wbr/>2,<wbr/>
13013 kappa_<wbr/>3]</code> and two tangential distortion coefficients
13014 <code>[kappa_<wbr/>4,<wbr/> kappa_<wbr/>5]</code> that can be used to correct the
13015 lens's geometric distortion with the mapping equations:</p>
13016 <pre><code> x_<wbr/>c = x_<wbr/>i * ( kappa_<wbr/>0 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
13017 kappa_<wbr/>4 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>5 * ( r^2 + 2 * x_<wbr/>i^2 )
13018 y_<wbr/>c = y_<wbr/>i * ( kappa_<wbr/>0 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
13019 kappa_<wbr/>5 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>4 * ( r^2 + 2 * y_<wbr/>i^2 )
13021 <p>Here,<wbr/> <code>[x_<wbr/>c,<wbr/> y_<wbr/>c]</code> are the coordinates to sample in the
13022 input image that correspond to the pixel values in the
13023 corrected image at the coordinate <code>[x_<wbr/>i,<wbr/> y_<wbr/>i]</code>:</p>
13024 <pre><code> correctedImage(x_<wbr/>i,<wbr/> y_<wbr/>i) = sample_<wbr/>at(x_<wbr/>c,<wbr/> y_<wbr/>c,<wbr/> inputImage)
13026 <p>The pixel coordinates are defined in a normalized
13027 coordinate system related to the
13028 <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> calibration fields.<wbr/>
13029 Both <code>[x_<wbr/>i,<wbr/> y_<wbr/>i]</code> and <code>[x_<wbr/>c,<wbr/> y_<wbr/>c]</code> have <code>(0,<wbr/>0)</code> at the
13030 lens optical center <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code>.<wbr/> The maximum magnitudes
13031 of both x and y coordinates are normalized to be 1 at the
13032 edge further from the optical center,<wbr/> so the range
13033 for both dimensions is <code>-1 <= x <= 1</code>.<wbr/></p>
13034 <p>Finally,<wbr/> <code>r</code> represents the radial distance from the
13035 optical center,<wbr/> <code>r^2 = x_<wbr/>i^2 + y_<wbr/>i^2</code>,<wbr/> and its magnitude
13036 is therefore no larger than <code>|<wbr/>r|<wbr/> <= sqrt(2)</code>.<wbr/></p>
13037 <p>The distortion model used is the Brown-Conrady model.<wbr/></p>
13042 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13043 <!-- end of entry -->
13047 <!-- end of kind -->
13049 <tr><td colspan="6" class="kind">dynamic</td></tr>
13051 <thead class="entries_header">
13053 <th class="th_name">Property Name</th>
13054 <th class="th_type">Type</th>
13055 <th class="th_description">Description</th>
13056 <th class="th_units">Units</th>
13057 <th class="th_range">Range</th>
13058 <th class="th_tags">Tags</th>
13073 <tr class="entry" id="dynamic_android.lens.aperture">
13074 <td class="entry_name
13076 android.<wbr/>lens.<wbr/>aperture
13078 <td class="entry_type">
13079 <span class="entry_type_name">float</span>
13081 <span class="entry_type_visibility"> [public]</span>
13084 <span class="entry_type_hwlevel">[full] </span>
13089 </td> <!-- entry_type -->
13091 <td class="entry_description">
13092 <p>The desired lens aperture size,<wbr/> as a ratio of lens focal length to the
13093 effective aperture diameter.<wbr/></p>
13096 <td class="entry_units">
13097 The f-number (f/<wbr/>N)
13100 <td class="entry_range">
13101 <p><a href="#static_android.lens.info.availableApertures">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Apertures</a></p>
13104 <td class="entry_tags">
13105 <ul class="entry_tags">
13106 <li><a href="#tag_V1">V1</a></li>
13111 <tr class="entries_header">
13112 <th class="th_details" colspan="5">Details</th>
13114 <tr class="entry_cont">
13115 <td class="entry_details" colspan="5">
13116 <p>Setting this value is only supported on the camera devices that have a variable
13117 aperture lens.<wbr/></p>
13118 <p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/>
13119 this can be set along with <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
13120 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>,<wbr/> and <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>
13121 to achieve manual exposure control.<wbr/></p>
13122 <p>The requested aperture value may take several frames to reach the
13123 requested value; the camera device will report the current (intermediate)
13124 aperture size in capture result metadata while the aperture is changing.<wbr/>
13125 While the aperture is still changing,<wbr/> <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will be set to MOVING.<wbr/></p>
13126 <p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is one of
13127 the ON modes,<wbr/> this will be overridden by the camera device
13128 auto-exposure algorithm,<wbr/> the overridden values are then provided
13129 back to the user in the corresponding result.<wbr/></p>
13134 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13135 <!-- end of entry -->
13138 <tr class="entry" id="dynamic_android.lens.filterDensity">
13139 <td class="entry_name
13141 android.<wbr/>lens.<wbr/>filter<wbr/>Density
13143 <td class="entry_type">
13144 <span class="entry_type_name">float</span>
13146 <span class="entry_type_visibility"> [public]</span>
13149 <span class="entry_type_hwlevel">[full] </span>
13154 </td> <!-- entry_type -->
13156 <td class="entry_description">
13157 <p>The desired setting for the lens neutral density filter(s).<wbr/></p>
13160 <td class="entry_units">
13161 Exposure Value (EV)
13164 <td class="entry_range">
13165 <p><a href="#static_android.lens.info.availableFilterDensities">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Filter<wbr/>Densities</a></p>
13168 <td class="entry_tags">
13169 <ul class="entry_tags">
13170 <li><a href="#tag_V1">V1</a></li>
13175 <tr class="entries_header">
13176 <th class="th_details" colspan="5">Details</th>
13178 <tr class="entry_cont">
13179 <td class="entry_details" colspan="5">
13180 <p>This control will not be supported on most camera devices.<wbr/></p>
13181 <p>Lens filters are typically used to lower the amount of light the
13182 sensor is exposed to (measured in steps of EV).<wbr/> As used here,<wbr/> an EV
13183 step is the standard logarithmic representation,<wbr/> which are
13184 non-negative,<wbr/> and inversely proportional to the amount of light
13185 hitting the sensor.<wbr/> For example,<wbr/> setting this to 0 would result
13186 in no reduction of the incoming light,<wbr/> and setting this to 2 would
13187 mean that the filter is set to reduce incoming light by two stops
13188 (allowing 1/<wbr/>4 of the prior amount of light to the sensor).<wbr/></p>
13189 <p>It may take several frames before the lens filter density changes
13190 to the requested value.<wbr/> While the filter density is still changing,<wbr/>
13191 <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will be set to MOVING.<wbr/></p>
13196 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13197 <!-- end of entry -->
13200 <tr class="entry" id="dynamic_android.lens.focalLength">
13201 <td class="entry_name
13203 android.<wbr/>lens.<wbr/>focal<wbr/>Length
13205 <td class="entry_type">
13206 <span class="entry_type_name">float</span>
13208 <span class="entry_type_visibility"> [public]</span>
13211 <span class="entry_type_hwlevel">[legacy] </span>
13216 </td> <!-- entry_type -->
13218 <td class="entry_description">
13219 <p>The desired lens focal length; used for optical zoom.<wbr/></p>
13222 <td class="entry_units">
13226 <td class="entry_range">
13227 <p><a href="#static_android.lens.info.availableFocalLengths">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Focal<wbr/>Lengths</a></p>
13230 <td class="entry_tags">
13231 <ul class="entry_tags">
13232 <li><a href="#tag_BC">BC</a></li>
13237 <tr class="entries_header">
13238 <th class="th_details" colspan="5">Details</th>
13240 <tr class="entry_cont">
13241 <td class="entry_details" colspan="5">
13242 <p>This setting controls the physical focal length of the camera
13243 device's lens.<wbr/> Changing the focal length changes the field of
13244 view of the camera device,<wbr/> and is usually used for optical zoom.<wbr/></p>
13245 <p>Like <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> and <a href="#controls_android.lens.aperture">android.<wbr/>lens.<wbr/>aperture</a>,<wbr/> this
13246 setting won't be applied instantaneously,<wbr/> and it may take several
13247 frames before the lens can change to the requested focal length.<wbr/>
13248 While the focal length is still changing,<wbr/> <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will
13249 be set to MOVING.<wbr/></p>
13250 <p>Optical zoom will not be supported on most devices.<wbr/></p>
13255 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13256 <!-- end of entry -->
13259 <tr class="entry" id="dynamic_android.lens.focusDistance">
13260 <td class="entry_name
13262 android.<wbr/>lens.<wbr/>focus<wbr/>Distance
13264 <td class="entry_type">
13265 <span class="entry_type_name">float</span>
13267 <span class="entry_type_visibility"> [public]</span>
13270 <span class="entry_type_hwlevel">[full] </span>
13275 </td> <!-- entry_type -->
13277 <td class="entry_description">
13278 <p>Desired distance to plane of sharpest focus,<wbr/>
13279 measured from frontmost surface of the lens.<wbr/></p>
13282 <td class="entry_units">
13283 See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
13286 <td class="entry_range">
13290 <td class="entry_tags">
13291 <ul class="entry_tags">
13292 <li><a href="#tag_BC">BC</a></li>
13297 <tr class="entries_header">
13298 <th class="th_details" colspan="5">Details</th>
13300 <tr class="entry_cont">
13301 <td class="entry_details" colspan="5">
13302 <p>Should be zero for fixed-focus cameras</p>
13307 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13308 <!-- end of entry -->
13311 <tr class="entry" id="dynamic_android.lens.focusRange">
13312 <td class="entry_name
13314 android.<wbr/>lens.<wbr/>focus<wbr/>Range
13316 <td class="entry_type">
13317 <span class="entry_type_name">float</span>
13318 <span class="entry_type_container">x</span>
13320 <span class="entry_type_array">
13323 <span class="entry_type_visibility"> [public as pairFloatFloat]</span>
13326 <span class="entry_type_hwlevel">[limited] </span>
13329 <div class="entry_type_notes">Range of scene distances that are in focus</div>
13332 </td> <!-- entry_type -->
13334 <td class="entry_description">
13335 <p>The range of scene distances that are in
13336 sharp focus (depth of field).<wbr/></p>
13339 <td class="entry_units">
13340 A pair of focus distances in diopters: (near,<wbr/>
13341 far); see android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details.<wbr/>
13344 <td class="entry_range">
13348 <td class="entry_tags">
13349 <ul class="entry_tags">
13350 <li><a href="#tag_BC">BC</a></li>
13355 <tr class="entries_header">
13356 <th class="th_details" colspan="5">Details</th>
13358 <tr class="entry_cont">
13359 <td class="entry_details" colspan="5">
13360 <p>If variable focus not supported,<wbr/> can still report
13361 fixed depth of field range</p>
13366 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13367 <!-- end of entry -->
13370 <tr class="entry" id="dynamic_android.lens.opticalStabilizationMode">
13371 <td class="entry_name
13373 android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode
13375 <td class="entry_type">
13376 <span class="entry_type_name entry_type_name_enum">byte</span>
13378 <span class="entry_type_visibility"> [public]</span>
13381 <span class="entry_type_hwlevel">[limited] </span>
13385 <ul class="entry_type_enum">
13387 <span class="entry_type_enum_name">OFF</span>
13388 <span class="entry_type_enum_notes"><p>Optical stabilization is unavailable.<wbr/></p></span>
13391 <span class="entry_type_enum_name">ON</span>
13392 <span class="entry_type_enum_optional">[optional]</span>
13393 <span class="entry_type_enum_notes"><p>Optical stabilization is enabled.<wbr/></p></span>
13397 </td> <!-- entry_type -->
13399 <td class="entry_description">
13400 <p>Sets whether the camera device uses optical image stabilization (OIS)
13401 when capturing images.<wbr/></p>
13404 <td class="entry_units">
13407 <td class="entry_range">
13408 <p><a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a></p>
13411 <td class="entry_tags">
13412 <ul class="entry_tags">
13413 <li><a href="#tag_V1">V1</a></li>
13418 <tr class="entries_header">
13419 <th class="th_details" colspan="5">Details</th>
13421 <tr class="entry_cont">
13422 <td class="entry_details" colspan="5">
13423 <p>OIS is used to compensate for motion blur due to small
13424 movements of the camera during capture.<wbr/> Unlike digital image
13425 stabilization (<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> OIS
13426 makes use of mechanical elements to stabilize the camera
13427 sensor,<wbr/> and thus allows for longer exposure times before
13428 camera shake becomes apparent.<wbr/></p>
13429 <p>Switching between different optical stabilization modes may take several
13430 frames to initialize,<wbr/> the camera device will report the current mode in
13431 capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/> the
13432 optical stabilization modes in the first several capture results may still
13433 be "OFF",<wbr/> and it will become "ON" when the initialization is done.<wbr/></p>
13434 <p>If a camera device supports both OIS and digital image stabilization
13435 (<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may produce undesirable
13436 interaction,<wbr/> so it is recommended not to enable both at the same time.<wbr/></p>
13437 <p>Not all devices will support OIS; see
13438 <a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a> for
13439 available controls.<wbr/></p>
13444 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13445 <!-- end of entry -->
13448 <tr class="entry" id="dynamic_android.lens.state">
13449 <td class="entry_name
13451 android.<wbr/>lens.<wbr/>state
13453 <td class="entry_type">
13454 <span class="entry_type_name entry_type_name_enum">byte</span>
13456 <span class="entry_type_visibility"> [public]</span>
13459 <span class="entry_type_hwlevel">[limited] </span>
13463 <ul class="entry_type_enum">
13465 <span class="entry_type_enum_name">STATIONARY</span>
13466 <span class="entry_type_enum_notes"><p>The lens parameters (<a href="#controls_android.lens.focalLength">android.<wbr/>lens.<wbr/>focal<wbr/>Length</a>,<wbr/> <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a>,<wbr/>
13467 <a href="#controls_android.lens.filterDensity">android.<wbr/>lens.<wbr/>filter<wbr/>Density</a> and <a href="#controls_android.lens.aperture">android.<wbr/>lens.<wbr/>aperture</a>) are not changing.<wbr/></p></span>
13470 <span class="entry_type_enum_name">MOVING</span>
13471 <span class="entry_type_enum_notes"><p>One or several of the lens parameters
13472 (<a href="#controls_android.lens.focalLength">android.<wbr/>lens.<wbr/>focal<wbr/>Length</a>,<wbr/> <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a>,<wbr/>
13473 <a href="#controls_android.lens.filterDensity">android.<wbr/>lens.<wbr/>filter<wbr/>Density</a> or <a href="#controls_android.lens.aperture">android.<wbr/>lens.<wbr/>aperture</a>) is
13474 currently changing.<wbr/></p></span>
13478 </td> <!-- entry_type -->
13480 <td class="entry_description">
13481 <p>Current lens status.<wbr/></p>
13484 <td class="entry_units">
13487 <td class="entry_range">
13490 <td class="entry_tags">
13491 <ul class="entry_tags">
13492 <li><a href="#tag_V1">V1</a></li>
13497 <tr class="entries_header">
13498 <th class="th_details" colspan="5">Details</th>
13500 <tr class="entry_cont">
13501 <td class="entry_details" colspan="5">
13502 <p>For lens parameters <a href="#controls_android.lens.focalLength">android.<wbr/>lens.<wbr/>focal<wbr/>Length</a>,<wbr/> <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a>,<wbr/>
13503 <a href="#controls_android.lens.filterDensity">android.<wbr/>lens.<wbr/>filter<wbr/>Density</a> and <a href="#controls_android.lens.aperture">android.<wbr/>lens.<wbr/>aperture</a>,<wbr/> when changes are requested,<wbr/>
13504 they may take several frames to reach the requested values.<wbr/> This state indicates
13505 the current status of the lens parameters.<wbr/></p>
13506 <p>When the state is STATIONARY,<wbr/> the lens parameters are not changing.<wbr/> This could be
13507 either because the parameters are all fixed,<wbr/> or because the lens has had enough
13508 time to reach the most recently-requested values.<wbr/>
13509 If all these lens parameters are not changable for a camera device,<wbr/> as listed below:</p>
13511 <li>Fixed focus (<code><a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> == 0</code>),<wbr/> which means
13512 <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> parameter will always be 0.<wbr/></li>
13513 <li>Fixed focal length (<a href="#static_android.lens.info.availableFocalLengths">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Focal<wbr/>Lengths</a> contains single value),<wbr/>
13514 which means the optical zoom is not supported.<wbr/></li>
13515 <li>No ND filter (<a href="#static_android.lens.info.availableFilterDensities">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Filter<wbr/>Densities</a> contains only 0).<wbr/></li>
13516 <li>Fixed aperture (<a href="#static_android.lens.info.availableApertures">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Apertures</a> contains single value).<wbr/></li>
13518 <p>Then this state will always be STATIONARY.<wbr/></p>
13519 <p>When the state is MOVING,<wbr/> it indicates that at least one of the lens parameters
13520 is changing.<wbr/></p>
13525 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13526 <!-- end of entry -->
13529 <tr class="entry" id="dynamic_android.lens.poseRotation">
13530 <td class="entry_name
13532 android.<wbr/>lens.<wbr/>pose<wbr/>Rotation
13534 <td class="entry_type">
13535 <span class="entry_type_name">float</span>
13536 <span class="entry_type_container">x</span>
13538 <span class="entry_type_array">
13541 <span class="entry_type_visibility"> [public]</span>
13548 </td> <!-- entry_type -->
13550 <td class="entry_description">
13551 <p>The orientation of the camera relative to the sensor
13552 coordinate system.<wbr/></p>
13555 <td class="entry_units">
13557 Quaternion coefficients
13561 <td class="entry_range">
13564 <td class="entry_tags">
13565 <ul class="entry_tags">
13566 <li><a href="#tag_DEPTH">DEPTH</a></li>
13571 <tr class="entries_header">
13572 <th class="th_details" colspan="5">Details</th>
13574 <tr class="entry_cont">
13575 <td class="entry_details" colspan="5">
13576 <p>The four coefficients that describe the quaternion
13577 rotation from the Android sensor coordinate system to a
13578 camera-aligned coordinate system where the X-axis is
13579 aligned with the long side of the image sensor,<wbr/> the Y-axis
13580 is aligned with the short side of the image sensor,<wbr/> and
13581 the Z-axis is aligned with the optical axis of the sensor.<wbr/></p>
13582 <p>To convert from the quaternion coefficients <code>(x,<wbr/>y,<wbr/>z,<wbr/>w)</code>
13583 to the axis of rotation <code>(a_<wbr/>x,<wbr/> a_<wbr/>y,<wbr/> a_<wbr/>z)</code> and rotation
13584 amount <code>theta</code>,<wbr/> the following formulas can be used:</p>
13585 <pre><code> theta = 2 * acos(w)
13586 a_<wbr/>x = x /<wbr/> sin(theta/<wbr/>2)
13587 a_<wbr/>y = y /<wbr/> sin(theta/<wbr/>2)
13588 a_<wbr/>z = z /<wbr/> sin(theta/<wbr/>2)
13590 <p>To create a 3x3 rotation matrix that applies the rotation
13591 defined by this quaternion,<wbr/> the following matrix can be
13593 <pre><code>R = [ 1 - 2y^2 - 2z^2,<wbr/> 2xy - 2zw,<wbr/> 2xz + 2yw,<wbr/>
13594 2xy + 2zw,<wbr/> 1 - 2x^2 - 2z^2,<wbr/> 2yz - 2xw,<wbr/>
13595 2xz - 2yw,<wbr/> 2yz + 2xw,<wbr/> 1 - 2x^2 - 2y^2 ]
13597 <p>This matrix can then be used to apply the rotation to a
13598 column vector point with</p>
13599 <p><code>p' = Rp</code></p>
13600 <p>where <code>p</code> is in the device sensor coordinate system,<wbr/> and
13601 <code>p'</code> is in the camera-oriented coordinate system.<wbr/></p>
13606 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13607 <!-- end of entry -->
13610 <tr class="entry" id="dynamic_android.lens.poseTranslation">
13611 <td class="entry_name
13613 android.<wbr/>lens.<wbr/>pose<wbr/>Translation
13615 <td class="entry_type">
13616 <span class="entry_type_name">float</span>
13617 <span class="entry_type_container">x</span>
13619 <span class="entry_type_array">
13622 <span class="entry_type_visibility"> [public]</span>
13629 </td> <!-- entry_type -->
13631 <td class="entry_description">
13632 <p>Position of the camera optical center.<wbr/></p>
13635 <td class="entry_units">
13639 <td class="entry_range">
13642 <td class="entry_tags">
13643 <ul class="entry_tags">
13644 <li><a href="#tag_DEPTH">DEPTH</a></li>
13649 <tr class="entries_header">
13650 <th class="th_details" colspan="5">Details</th>
13652 <tr class="entry_cont">
13653 <td class="entry_details" colspan="5">
13654 <p>The position of the camera device's lens optical center,<wbr/>
13655 as a three-dimensional vector <code>(x,<wbr/>y,<wbr/>z)</code>,<wbr/> relative to the
13656 optical center of the largest camera device facing in the
13657 same direction as this camera,<wbr/> in the <a href="https://developer.android.com/reference/android/hardware/SensorEvent.html">Android sensor coordinate
13658 axes</a>.<wbr/> Note that only the axis definitions are shared with
13659 the sensor coordinate system,<wbr/> but not the origin.<wbr/></p>
13660 <p>If this device is the largest or only camera device with a
13661 given facing,<wbr/> then this position will be <code>(0,<wbr/> 0,<wbr/> 0)</code>; a
13662 camera device with a lens optical center located 3 cm from
13663 the main sensor along the +X axis (to the right from the
13664 user's perspective) will report <code>(0.<wbr/>03,<wbr/> 0,<wbr/> 0)</code>.<wbr/></p>
13665 <p>To transform a pixel coordinates between two cameras
13666 facing the same direction,<wbr/> first the source camera
13667 <a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a> must be corrected for.<wbr/> Then
13668 the source camera <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> needs
13669 to be applied,<wbr/> followed by the <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a>
13670 of the source camera,<wbr/> the translation of the source camera
13671 relative to the destination camera,<wbr/> the
13672 <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> of the destination camera,<wbr/> and
13673 finally the inverse of <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a>
13674 of the destination camera.<wbr/> This obtains a
13675 radial-distortion-free coordinate in the destination
13676 camera pixel coordinates.<wbr/></p>
13677 <p>To compare this against a real image from the destination
13678 camera,<wbr/> the destination camera image then needs to be
13679 corrected for radial distortion before comparison or
13680 sampling.<wbr/></p>
13685 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13686 <!-- end of entry -->
13689 <tr class="entry" id="dynamic_android.lens.intrinsicCalibration">
13690 <td class="entry_name
13692 android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration
13694 <td class="entry_type">
13695 <span class="entry_type_name">float</span>
13696 <span class="entry_type_container">x</span>
13698 <span class="entry_type_array">
13701 <span class="entry_type_visibility"> [public]</span>
13708 </td> <!-- entry_type -->
13710 <td class="entry_description">
13711 <p>The parameters for this camera device's intrinsic
13712 calibration.<wbr/></p>
13715 <td class="entry_units">
13718 android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size
13719 coordinate system.<wbr/>
13723 <td class="entry_range">
13726 <td class="entry_tags">
13727 <ul class="entry_tags">
13728 <li><a href="#tag_DEPTH">DEPTH</a></li>
13733 <tr class="entries_header">
13734 <th class="th_details" colspan="5">Details</th>
13736 <tr class="entry_cont">
13737 <td class="entry_details" colspan="5">
13738 <p>The five calibration parameters that describe the
13739 transform from camera-centric 3D coordinates to sensor
13740 pixel coordinates:</p>
13741 <pre><code>[f_<wbr/>x,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>x,<wbr/> c_<wbr/>y,<wbr/> s]
13743 <p>Where <code>f_<wbr/>x</code> and <code>f_<wbr/>y</code> are the horizontal and vertical
13744 focal lengths,<wbr/> <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code> is the position of the optical
13745 axis,<wbr/> and <code>s</code> is a skew parameter for the sensor plane not
13746 being aligned with the lens plane.<wbr/></p>
13747 <p>These are typically used within a transformation matrix K:</p>
13748 <pre><code>K = [ f_<wbr/>x,<wbr/> s,<wbr/> c_<wbr/>x,<wbr/>
13749 0,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>y,<wbr/>
13752 <p>which can then be combined with the camera pose rotation
13753 <code>R</code> and translation <code>t</code> (<a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> and
13754 <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>,<wbr/> respective) to calculate the
13755 complete transform from world coordinates to pixel
13757 <pre><code>P = [ K 0 * [ R t
13760 <p>and with <code>p_<wbr/>w</code> being a point in the world coordinate system
13761 and <code>p_<wbr/>s</code> being a point in the camera active pixel array
13762 coordinate system,<wbr/> and with the mapping including the
13763 homogeneous division by z:</p>
13764 <pre><code> p_<wbr/>h = (x_<wbr/>h,<wbr/> y_<wbr/>h,<wbr/> z_<wbr/>h) = P p_<wbr/>w
13765 p_<wbr/>s = p_<wbr/>h /<wbr/> z_<wbr/>h
13767 <p>so <code>[x_<wbr/>s,<wbr/> y_<wbr/>s]</code> is the pixel coordinates of the world
13768 point,<wbr/> <code>z_<wbr/>s = 1</code>,<wbr/> and <code>w_<wbr/>s</code> is a measurement of disparity
13769 (depth) in pixel coordinates.<wbr/></p>
13770 <p>Note that the coordinate system for this transform is the
13771 <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a> system,<wbr/>
13772 where <code>(0,<wbr/>0)</code> is the top-left of the
13773 preCorrectionActiveArraySize rectangle.<wbr/> Once the pose and
13774 intrinsic calibration transforms have been applied to a
13775 world point,<wbr/> then the <a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a>
13776 transform needs to be applied,<wbr/> and the result adjusted to
13777 be in the <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> coordinate
13778 system (where <code>(0,<wbr/> 0)</code> is the top-left of the
13779 activeArraySize rectangle),<wbr/> to determine the final pixel
13780 coordinate of the world point for processed (non-RAW)
13781 output buffers.<wbr/></p>
13786 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13787 <!-- end of entry -->
13790 <tr class="entry" id="dynamic_android.lens.radialDistortion">
13791 <td class="entry_name
13793 android.<wbr/>lens.<wbr/>radial<wbr/>Distortion
13795 <td class="entry_type">
13796 <span class="entry_type_name">float</span>
13797 <span class="entry_type_container">x</span>
13799 <span class="entry_type_array">
13802 <span class="entry_type_visibility"> [public]</span>
13809 </td> <!-- entry_type -->
13811 <td class="entry_description">
13812 <p>The correction coefficients to correct for this camera device's
13813 radial and tangential lens distortion.<wbr/></p>
13816 <td class="entry_units">
13818 Unitless coefficients.<wbr/>
13822 <td class="entry_range">
13825 <td class="entry_tags">
13826 <ul class="entry_tags">
13827 <li><a href="#tag_DEPTH">DEPTH</a></li>
13832 <tr class="entries_header">
13833 <th class="th_details" colspan="5">Details</th>
13835 <tr class="entry_cont">
13836 <td class="entry_details" colspan="5">
13837 <p>Four radial distortion coefficients <code>[kappa_<wbr/>0,<wbr/> kappa_<wbr/>1,<wbr/> kappa_<wbr/>2,<wbr/>
13838 kappa_<wbr/>3]</code> and two tangential distortion coefficients
13839 <code>[kappa_<wbr/>4,<wbr/> kappa_<wbr/>5]</code> that can be used to correct the
13840 lens's geometric distortion with the mapping equations:</p>
13841 <pre><code> x_<wbr/>c = x_<wbr/>i * ( kappa_<wbr/>0 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
13842 kappa_<wbr/>4 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>5 * ( r^2 + 2 * x_<wbr/>i^2 )
13843 y_<wbr/>c = y_<wbr/>i * ( kappa_<wbr/>0 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
13844 kappa_<wbr/>5 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>4 * ( r^2 + 2 * y_<wbr/>i^2 )
13846 <p>Here,<wbr/> <code>[x_<wbr/>c,<wbr/> y_<wbr/>c]</code> are the coordinates to sample in the
13847 input image that correspond to the pixel values in the
13848 corrected image at the coordinate <code>[x_<wbr/>i,<wbr/> y_<wbr/>i]</code>:</p>
13849 <pre><code> correctedImage(x_<wbr/>i,<wbr/> y_<wbr/>i) = sample_<wbr/>at(x_<wbr/>c,<wbr/> y_<wbr/>c,<wbr/> inputImage)
13851 <p>The pixel coordinates are defined in a normalized
13852 coordinate system related to the
13853 <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> calibration fields.<wbr/>
13854 Both <code>[x_<wbr/>i,<wbr/> y_<wbr/>i]</code> and <code>[x_<wbr/>c,<wbr/> y_<wbr/>c]</code> have <code>(0,<wbr/>0)</code> at the
13855 lens optical center <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code>.<wbr/> The maximum magnitudes
13856 of both x and y coordinates are normalized to be 1 at the
13857 edge further from the optical center,<wbr/> so the range
13858 for both dimensions is <code>-1 <= x <= 1</code>.<wbr/></p>
13859 <p>Finally,<wbr/> <code>r</code> represents the radial distance from the
13860 optical center,<wbr/> <code>r^2 = x_<wbr/>i^2 + y_<wbr/>i^2</code>,<wbr/> and its magnitude
13861 is therefore no larger than <code>|<wbr/>r|<wbr/> <= sqrt(2)</code>.<wbr/></p>
13862 <p>The distortion model used is the Brown-Conrady model.<wbr/></p>
13867 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13868 <!-- end of entry -->
13872 <!-- end of kind -->
13875 <!-- end of section -->
13876 <tr><td colspan="6" id="section_noiseReduction" class="section">noiseReduction</td></tr>
13879 <tr><td colspan="6" class="kind">controls</td></tr>
13881 <thead class="entries_header">
13883 <th class="th_name">Property Name</th>
13884 <th class="th_type">Type</th>
13885 <th class="th_description">Description</th>
13886 <th class="th_units">Units</th>
13887 <th class="th_range">Range</th>
13888 <th class="th_tags">Tags</th>
13903 <tr class="entry" id="controls_android.noiseReduction.mode">
13904 <td class="entry_name
13906 android.<wbr/>noise<wbr/>Reduction.<wbr/>mode
13908 <td class="entry_type">
13909 <span class="entry_type_name entry_type_name_enum">byte</span>
13911 <span class="entry_type_visibility"> [public]</span>
13914 <span class="entry_type_hwlevel">[full] </span>
13918 <ul class="entry_type_enum">
13920 <span class="entry_type_enum_name">OFF</span>
13921 <span class="entry_type_enum_notes"><p>No noise reduction is applied.<wbr/></p></span>
13924 <span class="entry_type_enum_name">FAST</span>
13925 <span class="entry_type_enum_notes"><p>Noise reduction is applied without reducing frame rate relative to sensor
13926 output.<wbr/> It may be the same as OFF if noise reduction will reduce frame rate
13927 relative to sensor.<wbr/></p></span>
13930 <span class="entry_type_enum_name">HIGH_QUALITY</span>
13931 <span class="entry_type_enum_notes"><p>High-quality noise reduction is applied,<wbr/> at the cost of possibly reduced frame
13932 rate relative to sensor output.<wbr/></p></span>
13935 <span class="entry_type_enum_name">MINIMAL</span>
13936 <span class="entry_type_enum_optional">[optional]</span>
13937 <span class="entry_type_enum_notes"><p>MINIMAL noise reduction is applied without reducing frame rate relative to
13938 sensor output.<wbr/> </p></span>
13941 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
13942 <span class="entry_type_enum_optional">[optional]</span>
13943 <span class="entry_type_enum_notes"><p>Noise reduction is applied at different levels for different output streams,<wbr/>
13944 based on resolution.<wbr/> Streams at maximum recording resolution (see <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">CameraDevice#createCaptureSession</a>) or below have noise
13945 reduction applied,<wbr/> while higher-resolution streams have MINIMAL (if supported) or no
13946 noise reduction applied (if MINIMAL is not supported.<wbr/>) The degree of noise reduction
13947 for low-resolution streams is tuned so that frame rate is not impacted,<wbr/> and the quality
13948 is equal to or better than FAST (since it is only applied to lower-resolution outputs,<wbr/>
13949 quality may improve from FAST).<wbr/></p>
13950 <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
13951 with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
13952 high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
13953 produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
13954 high-resolution buffers must not have noise reduction applied to maximize efficiency of
13955 preview and to avoid over-applying noise filtering when reprocessing,<wbr/> while
13956 low-resolution buffers (used for recording or preview,<wbr/> generally) need noise reduction
13957 applied for reasonable preview quality.<wbr/></p>
13958 <p>This mode is guaranteed to be supported by devices that support either the
13959 YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
13960 (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
13961 be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
13965 </td> <!-- entry_type -->
13967 <td class="entry_description">
13968 <p>Mode of operation for the noise reduction algorithm.<wbr/></p>
13971 <td class="entry_units">
13974 <td class="entry_range">
13975 <p><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a></p>
13978 <td class="entry_tags">
13979 <ul class="entry_tags">
13980 <li><a href="#tag_V1">V1</a></li>
13981 <li><a href="#tag_REPROC">REPROC</a></li>
13986 <tr class="entries_header">
13987 <th class="th_details" colspan="5">Details</th>
13989 <tr class="entry_cont">
13990 <td class="entry_details" colspan="5">
13991 <p>The noise reduction algorithm attempts to improve image quality by removing
13992 excessive noise added by the capture process,<wbr/> especially in dark conditions.<wbr/></p>
13993 <p>OFF means no noise reduction will be applied by the camera device,<wbr/> for both raw and
13994 YUV domain.<wbr/></p>
13995 <p>MINIMAL means that only sensor raw domain basic noise reduction is enabled ,<wbr/>to remove
13996 demosaicing or other processing artifacts.<wbr/> For YUV_<wbr/>REPROCESSING,<wbr/> MINIMAL is same as OFF.<wbr/>
13997 This mode is optional,<wbr/> may not be support by all devices.<wbr/> The application should check
13998 <a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a> before using it.<wbr/></p>
13999 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined noise filtering
14000 will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device
14001 will use the highest-quality noise filtering algorithms,<wbr/>
14002 even if it slows down capture rate.<wbr/> FAST means the camera device will not
14003 slow down capture rate when applying noise filtering.<wbr/> FAST may be the same as MINIMAL if
14004 MINIMAL is listed,<wbr/> or the same as OFF if any noise filtering will slow down capture rate.<wbr/>
14005 Every output stream will have a similar amount of enhancement applied.<wbr/></p>
14006 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
14007 buffer of high-resolution images during preview and reprocess image(s) from that buffer
14008 into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
14009 noise reduction to low-resolution streams (below maximum recording resolution) to maximize
14010 preview quality,<wbr/> but does not apply noise reduction to high-resolution streams,<wbr/> since
14011 those will be reprocessed later if necessary.<wbr/></p>
14012 <p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera device
14013 will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV domain noise reduction,<wbr/> respectively.<wbr/> The camera device
14014 may adjust the noise reduction parameters for best image quality based on the
14015 <a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a> if it is set.<wbr/></p>
14019 <tr class="entries_header">
14020 <th class="th_details" colspan="5">HAL Implementation Details</th>
14022 <tr class="entry_cont">
14023 <td class="entry_details" colspan="5">
14024 <p>For YUV_<wbr/>REPROCESSING The HAL can use <a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a> to
14025 adjust the internal noise reduction parameters appropriately to get the best quality
14030 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14031 <!-- end of entry -->
14034 <tr class="entry" id="controls_android.noiseReduction.strength">
14035 <td class="entry_name
14037 android.<wbr/>noise<wbr/>Reduction.<wbr/>strength
14039 <td class="entry_type">
14040 <span class="entry_type_name">byte</span>
14042 <span class="entry_type_visibility"> [system]</span>
14049 </td> <!-- entry_type -->
14051 <td class="entry_description">
14052 <p>Control the amount of noise reduction
14053 applied to the images</p>
14056 <td class="entry_units">
14057 1-10; 10 is max noise reduction
14060 <td class="entry_range">
14064 <td class="entry_tags">
14065 <ul class="entry_tags">
14066 <li><a href="#tag_FUTURE">FUTURE</a></li>
14073 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14074 <!-- end of entry -->
14078 <!-- end of kind -->
14080 <tr><td colspan="6" class="kind">static</td></tr>
14082 <thead class="entries_header">
14084 <th class="th_name">Property Name</th>
14085 <th class="th_type">Type</th>
14086 <th class="th_description">Description</th>
14087 <th class="th_units">Units</th>
14088 <th class="th_range">Range</th>
14089 <th class="th_tags">Tags</th>
14104 <tr class="entry" id="static_android.noiseReduction.availableNoiseReductionModes">
14105 <td class="entry_name
14107 android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes
14109 <td class="entry_type">
14110 <span class="entry_type_name">byte</span>
14111 <span class="entry_type_container">x</span>
14113 <span class="entry_type_array">
14116 <span class="entry_type_visibility"> [public as enumList]</span>
14119 <span class="entry_type_hwlevel">[limited] </span>
14122 <div class="entry_type_notes">list of enums</div>
14125 </td> <!-- entry_type -->
14127 <td class="entry_description">
14128 <p>List of noise reduction modes for <a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a> that are supported
14129 by this camera device.<wbr/></p>
14132 <td class="entry_units">
14135 <td class="entry_range">
14136 <p>Any value listed in <a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a></p>
14139 <td class="entry_tags">
14140 <ul class="entry_tags">
14141 <li><a href="#tag_V1">V1</a></li>
14142 <li><a href="#tag_REPROC">REPROC</a></li>
14147 <tr class="entries_header">
14148 <th class="th_details" colspan="5">Details</th>
14150 <tr class="entry_cont">
14151 <td class="entry_details" colspan="5">
14152 <p>Full-capability camera devices will always support OFF and FAST.<wbr/></p>
14153 <p>Camera devices that support YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING will support
14154 ZERO_<wbr/>SHUTTER_<wbr/>LAG.<wbr/></p>
14155 <p>Legacy-capability camera devices will only support FAST mode.<wbr/></p>
14159 <tr class="entries_header">
14160 <th class="th_details" colspan="5">HAL Implementation Details</th>
14162 <tr class="entry_cont">
14163 <td class="entry_details" colspan="5">
14164 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if noise reduction control is available
14165 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
14166 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
14167 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
14171 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14172 <!-- end of entry -->
14176 <!-- end of kind -->
14178 <tr><td colspan="6" class="kind">dynamic</td></tr>
14180 <thead class="entries_header">
14182 <th class="th_name">Property Name</th>
14183 <th class="th_type">Type</th>
14184 <th class="th_description">Description</th>
14185 <th class="th_units">Units</th>
14186 <th class="th_range">Range</th>
14187 <th class="th_tags">Tags</th>
14202 <tr class="entry" id="dynamic_android.noiseReduction.mode">
14203 <td class="entry_name
14205 android.<wbr/>noise<wbr/>Reduction.<wbr/>mode
14207 <td class="entry_type">
14208 <span class="entry_type_name entry_type_name_enum">byte</span>
14210 <span class="entry_type_visibility"> [public]</span>
14213 <span class="entry_type_hwlevel">[full] </span>
14217 <ul class="entry_type_enum">
14219 <span class="entry_type_enum_name">OFF</span>
14220 <span class="entry_type_enum_notes"><p>No noise reduction is applied.<wbr/></p></span>
14223 <span class="entry_type_enum_name">FAST</span>
14224 <span class="entry_type_enum_notes"><p>Noise reduction is applied without reducing frame rate relative to sensor
14225 output.<wbr/> It may be the same as OFF if noise reduction will reduce frame rate
14226 relative to sensor.<wbr/></p></span>
14229 <span class="entry_type_enum_name">HIGH_QUALITY</span>
14230 <span class="entry_type_enum_notes"><p>High-quality noise reduction is applied,<wbr/> at the cost of possibly reduced frame
14231 rate relative to sensor output.<wbr/></p></span>
14234 <span class="entry_type_enum_name">MINIMAL</span>
14235 <span class="entry_type_enum_optional">[optional]</span>
14236 <span class="entry_type_enum_notes"><p>MINIMAL noise reduction is applied without reducing frame rate relative to
14237 sensor output.<wbr/> </p></span>
14240 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
14241 <span class="entry_type_enum_optional">[optional]</span>
14242 <span class="entry_type_enum_notes"><p>Noise reduction is applied at different levels for different output streams,<wbr/>
14243 based on resolution.<wbr/> Streams at maximum recording resolution (see <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">CameraDevice#createCaptureSession</a>) or below have noise
14244 reduction applied,<wbr/> while higher-resolution streams have MINIMAL (if supported) or no
14245 noise reduction applied (if MINIMAL is not supported.<wbr/>) The degree of noise reduction
14246 for low-resolution streams is tuned so that frame rate is not impacted,<wbr/> and the quality
14247 is equal to or better than FAST (since it is only applied to lower-resolution outputs,<wbr/>
14248 quality may improve from FAST).<wbr/></p>
14249 <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
14250 with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
14251 high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
14252 produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
14253 high-resolution buffers must not have noise reduction applied to maximize efficiency of
14254 preview and to avoid over-applying noise filtering when reprocessing,<wbr/> while
14255 low-resolution buffers (used for recording or preview,<wbr/> generally) need noise reduction
14256 applied for reasonable preview quality.<wbr/></p>
14257 <p>This mode is guaranteed to be supported by devices that support either the
14258 YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
14259 (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
14260 be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
14264 </td> <!-- entry_type -->
14266 <td class="entry_description">
14267 <p>Mode of operation for the noise reduction algorithm.<wbr/></p>
14270 <td class="entry_units">
14273 <td class="entry_range">
14274 <p><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a></p>
14277 <td class="entry_tags">
14278 <ul class="entry_tags">
14279 <li><a href="#tag_V1">V1</a></li>
14280 <li><a href="#tag_REPROC">REPROC</a></li>
14285 <tr class="entries_header">
14286 <th class="th_details" colspan="5">Details</th>
14288 <tr class="entry_cont">
14289 <td class="entry_details" colspan="5">
14290 <p>The noise reduction algorithm attempts to improve image quality by removing
14291 excessive noise added by the capture process,<wbr/> especially in dark conditions.<wbr/></p>
14292 <p>OFF means no noise reduction will be applied by the camera device,<wbr/> for both raw and
14293 YUV domain.<wbr/></p>
14294 <p>MINIMAL means that only sensor raw domain basic noise reduction is enabled ,<wbr/>to remove
14295 demosaicing or other processing artifacts.<wbr/> For YUV_<wbr/>REPROCESSING,<wbr/> MINIMAL is same as OFF.<wbr/>
14296 This mode is optional,<wbr/> may not be support by all devices.<wbr/> The application should check
14297 <a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a> before using it.<wbr/></p>
14298 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined noise filtering
14299 will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device
14300 will use the highest-quality noise filtering algorithms,<wbr/>
14301 even if it slows down capture rate.<wbr/> FAST means the camera device will not
14302 slow down capture rate when applying noise filtering.<wbr/> FAST may be the same as MINIMAL if
14303 MINIMAL is listed,<wbr/> or the same as OFF if any noise filtering will slow down capture rate.<wbr/>
14304 Every output stream will have a similar amount of enhancement applied.<wbr/></p>
14305 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
14306 buffer of high-resolution images during preview and reprocess image(s) from that buffer
14307 into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
14308 noise reduction to low-resolution streams (below maximum recording resolution) to maximize
14309 preview quality,<wbr/> but does not apply noise reduction to high-resolution streams,<wbr/> since
14310 those will be reprocessed later if necessary.<wbr/></p>
14311 <p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera device
14312 will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV domain noise reduction,<wbr/> respectively.<wbr/> The camera device
14313 may adjust the noise reduction parameters for best image quality based on the
14314 <a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a> if it is set.<wbr/></p>
14318 <tr class="entries_header">
14319 <th class="th_details" colspan="5">HAL Implementation Details</th>
14321 <tr class="entry_cont">
14322 <td class="entry_details" colspan="5">
14323 <p>For YUV_<wbr/>REPROCESSING The HAL can use <a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a> to
14324 adjust the internal noise reduction parameters appropriately to get the best quality
14329 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14330 <!-- end of entry -->
14334 <!-- end of kind -->
14337 <!-- end of section -->
14338 <tr><td colspan="6" id="section_quirks" class="section">quirks</td></tr>
14341 <tr><td colspan="6" class="kind">static</td></tr>
14343 <thead class="entries_header">
14345 <th class="th_name">Property Name</th>
14346 <th class="th_type">Type</th>
14347 <th class="th_description">Description</th>
14348 <th class="th_units">Units</th>
14349 <th class="th_range">Range</th>
14350 <th class="th_tags">Tags</th>
14365 <tr class="entry" id="static_android.quirks.meteringCropRegion">
14366 <td class="entry_name
14367 entry_name_deprecated
14369 android.<wbr/>quirks.<wbr/>metering<wbr/>Crop<wbr/>Region
14371 <td class="entry_type">
14372 <span class="entry_type_name">byte</span>
14374 <span class="entry_type_visibility"> [system]</span>
14378 <span class="entry_type_deprecated">[deprecated] </span>
14382 </td> <!-- entry_type -->
14384 <td class="entry_description">
14385 <p>If set to 1,<wbr/> the camera service does not
14386 scale 'normalized' coordinates with respect to the crop
14387 region.<wbr/> This applies to metering input (a{e,<wbr/>f,<wbr/>wb}Region
14388 and output (face rectangles).<wbr/></p>
14391 <td class="entry_units">
14394 <td class="entry_range">
14395 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14398 <td class="entry_tags">
14402 <tr class="entries_header">
14403 <th class="th_details" colspan="5">Details</th>
14405 <tr class="entry_cont">
14406 <td class="entry_details" colspan="5">
14407 <p>Normalized coordinates refer to those in the
14408 (-1000,<wbr/>1000) range mentioned in the
14409 android.<wbr/>hardware.<wbr/>Camera API.<wbr/></p>
14410 <p>HAL implementations should instead always use and emit
14411 sensor array-relative coordinates for all region data.<wbr/> Does
14412 not need to be listed in static metadata.<wbr/> Support will be
14413 removed in future versions of camera service.<wbr/></p>
14418 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14419 <!-- end of entry -->
14422 <tr class="entry" id="static_android.quirks.triggerAfWithAuto">
14423 <td class="entry_name
14424 entry_name_deprecated
14426 android.<wbr/>quirks.<wbr/>trigger<wbr/>Af<wbr/>With<wbr/>Auto
14428 <td class="entry_type">
14429 <span class="entry_type_name">byte</span>
14431 <span class="entry_type_visibility"> [system]</span>
14435 <span class="entry_type_deprecated">[deprecated] </span>
14439 </td> <!-- entry_type -->
14441 <td class="entry_description">
14442 <p>If set to 1,<wbr/> then the camera service always
14443 switches to FOCUS_<wbr/>MODE_<wbr/>AUTO before issuing a AF
14447 <td class="entry_units">
14450 <td class="entry_range">
14451 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14454 <td class="entry_tags">
14458 <tr class="entries_header">
14459 <th class="th_details" colspan="5">Details</th>
14461 <tr class="entry_cont">
14462 <td class="entry_details" colspan="5">
14463 <p>HAL implementations should implement AF trigger
14464 modes for AUTO,<wbr/> MACRO,<wbr/> CONTINUOUS_<wbr/>FOCUS,<wbr/> and
14465 CONTINUOUS_<wbr/>PICTURE modes instead of using this flag.<wbr/> Does
14466 not need to be listed in static metadata.<wbr/> Support will be
14467 removed in future versions of camera service</p>
14472 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14473 <!-- end of entry -->
14476 <tr class="entry" id="static_android.quirks.useZslFormat">
14477 <td class="entry_name
14478 entry_name_deprecated
14480 android.<wbr/>quirks.<wbr/>use<wbr/>Zsl<wbr/>Format
14482 <td class="entry_type">
14483 <span class="entry_type_name">byte</span>
14485 <span class="entry_type_visibility"> [system]</span>
14489 <span class="entry_type_deprecated">[deprecated] </span>
14493 </td> <!-- entry_type -->
14495 <td class="entry_description">
14496 <p>If set to 1,<wbr/> the camera service uses
14497 CAMERA2_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>ZSL instead of
14498 HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>IMPLEMENTATION_<wbr/>DEFINED for the zero
14499 shutter lag stream</p>
14502 <td class="entry_units">
14505 <td class="entry_range">
14506 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14509 <td class="entry_tags">
14513 <tr class="entries_header">
14514 <th class="th_details" colspan="5">Details</th>
14516 <tr class="entry_cont">
14517 <td class="entry_details" colspan="5">
14518 <p>HAL implementations should use gralloc usage flags
14519 to determine that a stream will be used for
14520 zero-shutter-lag,<wbr/> instead of relying on an explicit
14521 format setting.<wbr/> Does not need to be listed in static
14522 metadata.<wbr/> Support will be removed in future versions of
14523 camera service.<wbr/></p>
14528 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14529 <!-- end of entry -->
14532 <tr class="entry" id="static_android.quirks.usePartialResult">
14533 <td class="entry_name
14534 entry_name_deprecated
14536 android.<wbr/>quirks.<wbr/>use<wbr/>Partial<wbr/>Result
14538 <td class="entry_type">
14539 <span class="entry_type_name">byte</span>
14541 <span class="entry_type_visibility"> [hidden]</span>
14545 <span class="entry_type_deprecated">[deprecated] </span>
14549 </td> <!-- entry_type -->
14551 <td class="entry_description">
14552 <p>If set to 1,<wbr/> the HAL will always split result
14553 metadata for a single capture into multiple buffers,<wbr/>
14554 returned using multiple process_<wbr/>capture_<wbr/>result calls.<wbr/></p>
14557 <td class="entry_units">
14560 <td class="entry_range">
14561 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14564 <td class="entry_tags">
14568 <tr class="entries_header">
14569 <th class="th_details" colspan="5">Details</th>
14571 <tr class="entry_cont">
14572 <td class="entry_details" colspan="5">
14573 <p>Does not need to be listed in static
14574 metadata.<wbr/> Support for partial results will be reworked in
14575 future versions of camera service.<wbr/> This quirk will stop
14576 working at that point; DO NOT USE without careful
14577 consideration of future support.<wbr/></p>
14581 <tr class="entries_header">
14582 <th class="th_details" colspan="5">HAL Implementation Details</th>
14584 <tr class="entry_cont">
14585 <td class="entry_details" colspan="5">
14586 <p>Refer to <code>camera3_<wbr/>capture_<wbr/>result::partial_<wbr/>result</code>
14587 for information on how to implement partial results.<wbr/></p>
14591 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14592 <!-- end of entry -->
14596 <!-- end of kind -->
14598 <tr><td colspan="6" class="kind">dynamic</td></tr>
14600 <thead class="entries_header">
14602 <th class="th_name">Property Name</th>
14603 <th class="th_type">Type</th>
14604 <th class="th_description">Description</th>
14605 <th class="th_units">Units</th>
14606 <th class="th_range">Range</th>
14607 <th class="th_tags">Tags</th>
14622 <tr class="entry" id="dynamic_android.quirks.partialResult">
14623 <td class="entry_name
14624 entry_name_deprecated
14626 android.<wbr/>quirks.<wbr/>partial<wbr/>Result
14628 <td class="entry_type">
14629 <span class="entry_type_name entry_type_name_enum">byte</span>
14631 <span class="entry_type_visibility"> [hidden as boolean]</span>
14635 <span class="entry_type_deprecated">[deprecated] </span>
14638 <ul class="entry_type_enum">
14640 <span class="entry_type_enum_name">FINAL</span>
14641 <span class="entry_type_enum_notes"><p>The last or only metadata result buffer
14642 for this capture.<wbr/></p></span>
14645 <span class="entry_type_enum_name">PARTIAL</span>
14646 <span class="entry_type_enum_notes"><p>A partial buffer of result metadata for this
14647 capture.<wbr/> More result buffers for this capture will be sent
14648 by the camera device,<wbr/> the last of which will be marked
14649 FINAL.<wbr/></p></span>
14653 </td> <!-- entry_type -->
14655 <td class="entry_description">
14656 <p>Whether a result given to the framework is the
14657 final one for the capture,<wbr/> or only a partial that contains a
14658 subset of the full set of dynamic metadata
14662 <td class="entry_units">
14665 <td class="entry_range">
14666 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14667 <p>Optional.<wbr/> Default value is FINAL.<wbr/></p>
14670 <td class="entry_tags">
14674 <tr class="entries_header">
14675 <th class="th_details" colspan="5">Details</th>
14677 <tr class="entry_cont">
14678 <td class="entry_details" colspan="5">
14679 <p>The entries in the result metadata buffers for a
14680 single capture may not overlap,<wbr/> except for this entry.<wbr/> The
14681 FINAL buffers must retain FIFO ordering relative to the
14682 requests that generate them,<wbr/> so the FINAL buffer for frame 3 must
14683 always be sent to the framework after the FINAL buffer for frame 2,<wbr/> and
14684 before the FINAL buffer for frame 4.<wbr/> PARTIAL buffers may be returned
14685 in any order relative to other frames,<wbr/> but all PARTIAL buffers for a given
14686 capture must arrive before the FINAL buffer for that capture.<wbr/> This entry may
14687 only be used by the camera device if quirks.<wbr/>usePartialResult is set to 1.<wbr/></p>
14691 <tr class="entries_header">
14692 <th class="th_details" colspan="5">HAL Implementation Details</th>
14694 <tr class="entry_cont">
14695 <td class="entry_details" colspan="5">
14696 <p>Refer to <code>camera3_<wbr/>capture_<wbr/>result::partial_<wbr/>result</code>
14697 for information on how to implement partial results.<wbr/></p>
14701 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14702 <!-- end of entry -->
14706 <!-- end of kind -->
14709 <!-- end of section -->
14710 <tr><td colspan="6" id="section_request" class="section">request</td></tr>
14713 <tr><td colspan="6" class="kind">controls</td></tr>
14715 <thead class="entries_header">
14717 <th class="th_name">Property Name</th>
14718 <th class="th_type">Type</th>
14719 <th class="th_description">Description</th>
14720 <th class="th_units">Units</th>
14721 <th class="th_range">Range</th>
14722 <th class="th_tags">Tags</th>
14737 <tr class="entry" id="controls_android.request.frameCount">
14738 <td class="entry_name
14739 entry_name_deprecated
14741 android.<wbr/>request.<wbr/>frame<wbr/>Count
14743 <td class="entry_type">
14744 <span class="entry_type_name">int32</span>
14746 <span class="entry_type_visibility"> [system]</span>
14750 <span class="entry_type_deprecated">[deprecated] </span>
14754 </td> <!-- entry_type -->
14756 <td class="entry_description">
14757 <p>A frame counter set by the framework.<wbr/> Must
14758 be maintained unchanged in output frame.<wbr/> This value monotonically
14759 increases with every new result (that is,<wbr/> each new result has a unique
14760 frameCount value).<wbr/></p>
14763 <td class="entry_units">
14764 incrementing integer
14767 <td class="entry_range">
14768 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14769 <p>Any int.<wbr/></p>
14772 <td class="entry_tags">
14778 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14779 <!-- end of entry -->
14782 <tr class="entry" id="controls_android.request.id">
14783 <td class="entry_name
14785 android.<wbr/>request.<wbr/>id
14787 <td class="entry_type">
14788 <span class="entry_type_name">int32</span>
14790 <span class="entry_type_visibility"> [hidden]</span>
14797 </td> <!-- entry_type -->
14799 <td class="entry_description">
14800 <p>An application-specified ID for the current
14801 request.<wbr/> Must be maintained unchanged in output
14805 <td class="entry_units">
14806 arbitrary integer assigned by application
14809 <td class="entry_range">
14813 <td class="entry_tags">
14814 <ul class="entry_tags">
14815 <li><a href="#tag_V1">V1</a></li>
14822 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14823 <!-- end of entry -->
14826 <tr class="entry" id="controls_android.request.inputStreams">
14827 <td class="entry_name
14828 entry_name_deprecated
14830 android.<wbr/>request.<wbr/>input<wbr/>Streams
14832 <td class="entry_type">
14833 <span class="entry_type_name">int32</span>
14834 <span class="entry_type_container">x</span>
14836 <span class="entry_type_array">
14839 <span class="entry_type_visibility"> [system]</span>
14843 <span class="entry_type_deprecated">[deprecated] </span>
14847 </td> <!-- entry_type -->
14849 <td class="entry_description">
14850 <p>List which camera reprocess stream is used
14851 for the source of reprocessing data.<wbr/></p>
14854 <td class="entry_units">
14855 List of camera reprocess stream IDs
14858 <td class="entry_range">
14859 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14860 <p>Typically,<wbr/> only one entry allowed,<wbr/> must be a valid reprocess stream ID.<wbr/></p>
14863 <td class="entry_tags">
14864 <ul class="entry_tags">
14865 <li><a href="#tag_HAL2">HAL2</a></li>
14870 <tr class="entries_header">
14871 <th class="th_details" colspan="5">Details</th>
14873 <tr class="entry_cont">
14874 <td class="entry_details" colspan="5">
14875 <p>Only meaningful when <a href="#controls_android.request.type">android.<wbr/>request.<wbr/>type</a> ==
14876 REPROCESS.<wbr/> Ignored otherwise</p>
14881 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14882 <!-- end of entry -->
14885 <tr class="entry" id="controls_android.request.metadataMode">
14886 <td class="entry_name
14888 android.<wbr/>request.<wbr/>metadata<wbr/>Mode
14890 <td class="entry_type">
14891 <span class="entry_type_name entry_type_name_enum">byte</span>
14893 <span class="entry_type_visibility"> [system]</span>
14899 <ul class="entry_type_enum">
14901 <span class="entry_type_enum_name">NONE</span>
14902 <span class="entry_type_enum_notes"><p>No metadata should be produced on output,<wbr/> except
14903 for application-bound buffer data.<wbr/> If no
14904 application-bound streams exist,<wbr/> no frame should be
14905 placed in the output frame queue.<wbr/> If such streams
14906 exist,<wbr/> a frame should be placed on the output queue
14907 with null metadata but with the necessary output buffer
14908 information.<wbr/> Timestamp information should still be
14909 included with any output stream buffers</p></span>
14912 <span class="entry_type_enum_name">FULL</span>
14913 <span class="entry_type_enum_notes"><p>All metadata should be produced.<wbr/> Statistics will
14914 only be produced if they are separately
14919 </td> <!-- entry_type -->
14921 <td class="entry_description">
14922 <p>How much metadata to produce on
14926 <td class="entry_units">
14929 <td class="entry_range">
14932 <td class="entry_tags">
14933 <ul class="entry_tags">
14934 <li><a href="#tag_FUTURE">FUTURE</a></li>
14941 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14942 <!-- end of entry -->
14945 <tr class="entry" id="controls_android.request.outputStreams">
14946 <td class="entry_name
14947 entry_name_deprecated
14949 android.<wbr/>request.<wbr/>output<wbr/>Streams
14951 <td class="entry_type">
14952 <span class="entry_type_name">int32</span>
14953 <span class="entry_type_container">x</span>
14955 <span class="entry_type_array">
14958 <span class="entry_type_visibility"> [system]</span>
14962 <span class="entry_type_deprecated">[deprecated] </span>
14966 </td> <!-- entry_type -->
14968 <td class="entry_description">
14969 <p>Lists which camera output streams image data
14970 from this capture must be sent to</p>
14973 <td class="entry_units">
14974 List of camera stream IDs
14977 <td class="entry_range">
14978 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14979 <p>List must only include streams that have been
14983 <td class="entry_tags">
14984 <ul class="entry_tags">
14985 <li><a href="#tag_HAL2">HAL2</a></li>
14990 <tr class="entries_header">
14991 <th class="th_details" colspan="5">Details</th>
14993 <tr class="entry_cont">
14994 <td class="entry_details" colspan="5">
14995 <p>If no output streams are listed,<wbr/> then the image
14996 data should simply be discarded.<wbr/> The image data must
14997 still be captured for metadata and statistics production,<wbr/>
14998 and the lens and flash must operate as requested.<wbr/></p>
15003 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15004 <!-- end of entry -->
15007 <tr class="entry" id="controls_android.request.type">
15008 <td class="entry_name
15009 entry_name_deprecated
15011 android.<wbr/>request.<wbr/>type
15013 <td class="entry_type">
15014 <span class="entry_type_name entry_type_name_enum">byte</span>
15016 <span class="entry_type_visibility"> [system]</span>
15020 <span class="entry_type_deprecated">[deprecated] </span>
15023 <ul class="entry_type_enum">
15025 <span class="entry_type_enum_name">CAPTURE</span>
15026 <span class="entry_type_enum_notes"><p>Capture a new image from the imaging hardware,<wbr/>
15027 and process it according to the
15028 settings</p></span>
15031 <span class="entry_type_enum_name">REPROCESS</span>
15032 <span class="entry_type_enum_notes"><p>Process previously captured data; the
15033 <a href="#controls_android.request.inputStreams">android.<wbr/>request.<wbr/>input<wbr/>Streams</a> parameter determines the
15034 source reprocessing stream.<wbr/> TODO: Mark dynamic metadata
15035 needed for reprocessing with [RP]</p></span>
15039 </td> <!-- entry_type -->
15041 <td class="entry_description">
15042 <p>The type of the request; either CAPTURE or
15043 REPROCESS.<wbr/> For HAL3,<wbr/> this tag is redundant.<wbr/></p>
15046 <td class="entry_units">
15049 <td class="entry_range">
15050 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
15053 <td class="entry_tags">
15054 <ul class="entry_tags">
15055 <li><a href="#tag_HAL2">HAL2</a></li>
15062 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15063 <!-- end of entry -->
15067 <!-- end of kind -->
15069 <tr><td colspan="6" class="kind">static</td></tr>
15071 <thead class="entries_header">
15073 <th class="th_name">Property Name</th>
15074 <th class="th_type">Type</th>
15075 <th class="th_description">Description</th>
15076 <th class="th_units">Units</th>
15077 <th class="th_range">Range</th>
15078 <th class="th_tags">Tags</th>
15093 <tr class="entry" id="static_android.request.maxNumOutputStreams">
15094 <td class="entry_name
15096 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Streams
15098 <td class="entry_type">
15099 <span class="entry_type_name">int32</span>
15100 <span class="entry_type_container">x</span>
15102 <span class="entry_type_array">
15105 <span class="entry_type_visibility"> [ndk_public]</span>
15108 <span class="entry_type_hwlevel">[legacy] </span>
15113 </td> <!-- entry_type -->
15115 <td class="entry_description">
15116 <p>The maximum numbers of different types of output streams
15117 that can be configured and used simultaneously by a camera device.<wbr/></p>
15120 <td class="entry_units">
15123 <td class="entry_range">
15124 <p>For processed (and stalling) format streams,<wbr/> >= 1.<wbr/></p>
15125 <p>For Raw format (either stalling or non-stalling) streams,<wbr/> >= 0.<wbr/></p>
15126 <p>For processed (but not stalling) format streams,<wbr/> >= 3
15127 for FULL mode devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL</code>);
15128 >= 2 for LIMITED mode devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == LIMITED</code>).<wbr/></p>
15131 <td class="entry_tags">
15132 <ul class="entry_tags">
15133 <li><a href="#tag_BC">BC</a></li>
15138 <tr class="entries_header">
15139 <th class="th_details" colspan="5">Details</th>
15141 <tr class="entry_cont">
15142 <td class="entry_details" colspan="5">
15143 <p>This is a 3 element tuple that contains the max number of output simultaneous
15144 streams for raw sensor,<wbr/> processed (but not stalling),<wbr/> and processed (and stalling)
15145 formats respectively.<wbr/> For example,<wbr/> assuming that JPEG is typically a processed and
15146 stalling stream,<wbr/> if max raw sensor format output stream number is 1,<wbr/> max YUV streams
15147 number is 3,<wbr/> and max JPEG stream number is 2,<wbr/> then this tuple should be <code>(1,<wbr/> 3,<wbr/> 2)</code>.<wbr/></p>
15148 <p>This lists the upper bound of the number of output streams supported by
15149 the camera device.<wbr/> Using more streams simultaneously may require more hardware and
15150 CPU resources that will consume more power.<wbr/> The image format for an output stream can
15151 be any supported format provided by <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a>.<wbr/>
15152 The formats defined in <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> can be catergorized
15153 into the 3 stream types as below:</p>
15155 <li>Processed (but stalling): any non-RAW format with a stallDurations > 0.<wbr/>
15156 Typically <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">JPEG format</a>.<wbr/></li>
15157 <li>Raw formats: <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">RAW_<wbr/>SENSOR</a>,<wbr/> <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW10">RAW10</a>,<wbr/> or <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW12">RAW12</a>.<wbr/></li>
15158 <li>Processed (but not-stalling): any non-RAW format without a stall duration.<wbr/>
15159 Typically <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">YUV_<wbr/>420_<wbr/>888</a>,<wbr/>
15160 <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#NV21">NV21</a>,<wbr/> or
15161 <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YV12">YV12</a>.<wbr/></li>
15167 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15168 <!-- end of entry -->
15171 <tr class="entry" id="static_android.request.maxNumOutputRaw">
15172 <td class="entry_name
15174 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Raw
15176 <td class="entry_type">
15177 <span class="entry_type_name">int32</span>
15179 <span class="entry_type_visibility"> [java_public]</span>
15181 <span class="entry_type_synthetic">[synthetic] </span>
15183 <span class="entry_type_hwlevel">[legacy] </span>
15188 </td> <!-- entry_type -->
15190 <td class="entry_description">
15191 <p>The maximum numbers of different types of output streams
15192 that can be configured and used simultaneously by a camera device
15193 for any <code>RAW</code> formats.<wbr/></p>
15196 <td class="entry_units">
15199 <td class="entry_range">
15203 <td class="entry_tags">
15207 <tr class="entries_header">
15208 <th class="th_details" colspan="5">Details</th>
15210 <tr class="entry_cont">
15211 <td class="entry_details" colspan="5">
15212 <p>This value contains the max number of output simultaneous
15213 streams from the raw sensor.<wbr/></p>
15214 <p>This lists the upper bound of the number of output streams supported by
15215 the camera device.<wbr/> Using more streams simultaneously may require more hardware and
15216 CPU resources that will consume more power.<wbr/> The image format for this kind of an output stream can
15217 be any <code>RAW</code> and supported format provided by <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a>.<wbr/></p>
15218 <p>In particular,<wbr/> a <code>RAW</code> format is typically one of:</p>
15220 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">RAW_<wbr/>SENSOR</a></li>
15221 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW10">RAW10</a></li>
15222 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW12">RAW12</a></li>
15224 <p>LEGACY mode devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> <code>==</code> LEGACY)
15225 never support raw streams.<wbr/></p>
15230 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15231 <!-- end of entry -->
15234 <tr class="entry" id="static_android.request.maxNumOutputProc">
15235 <td class="entry_name
15237 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Proc
15239 <td class="entry_type">
15240 <span class="entry_type_name">int32</span>
15242 <span class="entry_type_visibility"> [java_public]</span>
15244 <span class="entry_type_synthetic">[synthetic] </span>
15246 <span class="entry_type_hwlevel">[legacy] </span>
15251 </td> <!-- entry_type -->
15253 <td class="entry_description">
15254 <p>The maximum numbers of different types of output streams
15255 that can be configured and used simultaneously by a camera device
15256 for any processed (but not-stalling) formats.<wbr/></p>
15259 <td class="entry_units">
15262 <td class="entry_range">
15264 for FULL mode devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL</code>);
15265 >= 2 for LIMITED mode devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == LIMITED</code>).<wbr/></p>
15268 <td class="entry_tags">
15272 <tr class="entries_header">
15273 <th class="th_details" colspan="5">Details</th>
15275 <tr class="entry_cont">
15276 <td class="entry_details" colspan="5">
15277 <p>This value contains the max number of output simultaneous
15278 streams for any processed (but not-stalling) formats.<wbr/></p>
15279 <p>This lists the upper bound of the number of output streams supported by
15280 the camera device.<wbr/> Using more streams simultaneously may require more hardware and
15281 CPU resources that will consume more power.<wbr/> The image format for this kind of an output stream can
15282 be any non-<code>RAW</code> and supported format provided by <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a>.<wbr/></p>
15283 <p>Processed (but not-stalling) is defined as any non-RAW format without a stall duration.<wbr/>
15286 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">YUV_<wbr/>420_<wbr/>888</a></li>
15287 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#NV21">NV21</a></li>
15288 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YV12">YV12</a></li>
15289 <li>Implementation-defined formats,<wbr/> i.<wbr/>e.<wbr/> <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#isOutputSupportedFor(Class)">StreamConfigurationMap#isOutputSupportedFor(Class)</a></li>
15291 <p>For full guarantees,<wbr/> query <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a> with a
15292 processed format -- it will return 0 for a non-stalling stream.<wbr/></p>
15293 <p>LEGACY devices will support at least 2 processing/<wbr/>non-stalling streams.<wbr/></p>
15298 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15299 <!-- end of entry -->
15302 <tr class="entry" id="static_android.request.maxNumOutputProcStalling">
15303 <td class="entry_name
15305 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Proc<wbr/>Stalling
15307 <td class="entry_type">
15308 <span class="entry_type_name">int32</span>
15310 <span class="entry_type_visibility"> [java_public]</span>
15312 <span class="entry_type_synthetic">[synthetic] </span>
15314 <span class="entry_type_hwlevel">[legacy] </span>
15319 </td> <!-- entry_type -->
15321 <td class="entry_description">
15322 <p>The maximum numbers of different types of output streams
15323 that can be configured and used simultaneously by a camera device
15324 for any processed (and stalling) formats.<wbr/></p>
15327 <td class="entry_units">
15330 <td class="entry_range">
15334 <td class="entry_tags">
15338 <tr class="entries_header">
15339 <th class="th_details" colspan="5">Details</th>
15341 <tr class="entry_cont">
15342 <td class="entry_details" colspan="5">
15343 <p>This value contains the max number of output simultaneous
15344 streams for any processed (but not-stalling) formats.<wbr/></p>
15345 <p>This lists the upper bound of the number of output streams supported by
15346 the camera device.<wbr/> Using more streams simultaneously may require more hardware and
15347 CPU resources that will consume more power.<wbr/> The image format for this kind of an output stream can
15348 be any non-<code>RAW</code> and supported format provided by <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a>.<wbr/></p>
15349 <p>A processed and stalling format is defined as any non-RAW format with a stallDurations
15350 > 0.<wbr/> Typically only the <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">JPEG format</a> is a
15351 stalling format.<wbr/></p>
15352 <p>For full guarantees,<wbr/> query <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a> with a
15353 processed format -- it will return a non-0 value for a stalling stream.<wbr/></p>
15354 <p>LEGACY devices will support up to 1 processing/<wbr/>stalling stream.<wbr/></p>
15359 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15360 <!-- end of entry -->
15363 <tr class="entry" id="static_android.request.maxNumReprocessStreams">
15364 <td class="entry_name
15365 entry_name_deprecated
15367 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Reprocess<wbr/>Streams
15369 <td class="entry_type">
15370 <span class="entry_type_name">int32</span>
15371 <span class="entry_type_container">x</span>
15373 <span class="entry_type_array">
15376 <span class="entry_type_visibility"> [system]</span>
15380 <span class="entry_type_deprecated">[deprecated] </span>
15384 </td> <!-- entry_type -->
15386 <td class="entry_description">
15387 <p>How many reprocessing streams of any type
15388 can be allocated at the same time.<wbr/></p>
15391 <td class="entry_units">
15394 <td class="entry_range">
15395 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
15399 <td class="entry_tags">
15400 <ul class="entry_tags">
15401 <li><a href="#tag_HAL2">HAL2</a></li>
15406 <tr class="entries_header">
15407 <th class="th_details" colspan="5">Details</th>
15409 <tr class="entry_cont">
15410 <td class="entry_details" colspan="5">
15411 <p>Only used by HAL2.<wbr/>x.<wbr/></p>
15412 <p>When set to 0,<wbr/> it means no reprocess stream is supported.<wbr/></p>
15417 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15418 <!-- end of entry -->
15421 <tr class="entry" id="static_android.request.maxNumInputStreams">
15422 <td class="entry_name
15424 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Input<wbr/>Streams
15426 <td class="entry_type">
15427 <span class="entry_type_name">int32</span>
15429 <span class="entry_type_visibility"> [public]</span>
15432 <span class="entry_type_hwlevel">[full] </span>
15437 </td> <!-- entry_type -->
15439 <td class="entry_description">
15440 <p>The maximum numbers of any type of input streams
15441 that can be configured and used simultaneously by a camera device.<wbr/></p>
15444 <td class="entry_units">
15447 <td class="entry_range">
15448 <p>0 or 1.<wbr/></p>
15451 <td class="entry_tags">
15452 <ul class="entry_tags">
15453 <li><a href="#tag_REPROC">REPROC</a></li>
15458 <tr class="entries_header">
15459 <th class="th_details" colspan="5">Details</th>
15461 <tr class="entry_cont">
15462 <td class="entry_details" colspan="5">
15463 <p>When set to 0,<wbr/> it means no input stream is supported.<wbr/></p>
15464 <p>The image format for a input stream can be any supported format returned by <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getInputFormats">StreamConfigurationMap#getInputFormats</a>.<wbr/> When using an
15465 input stream,<wbr/> there must be at least one output stream configured to to receive the
15466 reprocessed images.<wbr/></p>
15467 <p>When an input stream and some output streams are used in a reprocessing request,<wbr/>
15468 only the input buffer will be used to produce these output stream buffers,<wbr/> and a
15469 new sensor image will not be captured.<wbr/></p>
15470 <p>For example,<wbr/> for Zero Shutter Lag (ZSL) still capture use case,<wbr/> the input
15471 stream image format will be PRIVATE,<wbr/> the associated output stream image format
15472 should be JPEG.<wbr/></p>
15476 <tr class="entries_header">
15477 <th class="th_details" colspan="5">HAL Implementation Details</th>
15479 <tr class="entry_cont">
15480 <td class="entry_details" colspan="5">
15481 <p>For the reprocessing flow and controls,<wbr/> see
15482 hardware/<wbr/>libhardware/<wbr/>include/<wbr/>hardware/<wbr/>camera3.<wbr/>h Section 10 for more details.<wbr/></p>
15486 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15487 <!-- end of entry -->
15490 <tr class="entry" id="static_android.request.pipelineMaxDepth">
15491 <td class="entry_name
15493 android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth
15495 <td class="entry_type">
15496 <span class="entry_type_name">byte</span>
15498 <span class="entry_type_visibility"> [public]</span>
15501 <span class="entry_type_hwlevel">[legacy] </span>
15506 </td> <!-- entry_type -->
15508 <td class="entry_description">
15509 <p>Specifies the number of maximum pipeline stages a frame
15510 has to go through from when it's exposed to when it's available
15511 to the framework.<wbr/></p>
15514 <td class="entry_units">
15517 <td class="entry_range">
15520 <td class="entry_tags">
15524 <tr class="entries_header">
15525 <th class="th_details" colspan="5">Details</th>
15527 <tr class="entry_cont">
15528 <td class="entry_details" colspan="5">
15529 <p>A typical minimum value for this is 2 (one stage to expose,<wbr/>
15530 one stage to readout) from the sensor.<wbr/> The ISP then usually adds
15531 its own stages to do custom HW processing.<wbr/> Further stages may be
15532 added by SW processing.<wbr/></p>
15533 <p>Depending on what settings are used (e.<wbr/>g.<wbr/> YUV,<wbr/> JPEG) and what
15534 processing is enabled (e.<wbr/>g.<wbr/> face detection),<wbr/> the actual pipeline
15535 depth (specified by <a href="#dynamic_android.request.pipelineDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Depth</a>) may be less than
15536 the max pipeline depth.<wbr/></p>
15537 <p>A pipeline depth of X stages is equivalent to a pipeline latency of
15538 X frame intervals.<wbr/></p>
15539 <p>This value will normally be 8 or less,<wbr/> however,<wbr/> for high speed capture session,<wbr/>
15540 the max pipeline depth will be up to 8 x size of high speed capture request list.<wbr/></p>
15544 <tr class="entries_header">
15545 <th class="th_details" colspan="5">HAL Implementation Details</th>
15547 <tr class="entry_cont">
15548 <td class="entry_details" colspan="5">
15549 <p>This value should be 4 or less,<wbr/> expect for the high speed recording session,<wbr/> where the
15550 max batch sizes may be larger than 1.<wbr/></p>
15554 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15555 <!-- end of entry -->
15558 <tr class="entry" id="static_android.request.partialResultCount">
15559 <td class="entry_name
15561 android.<wbr/>request.<wbr/>partial<wbr/>Result<wbr/>Count
15563 <td class="entry_type">
15564 <span class="entry_type_name">int32</span>
15566 <span class="entry_type_visibility"> [public]</span>
15573 </td> <!-- entry_type -->
15575 <td class="entry_description">
15576 <p>Defines how many sub-components
15577 a result will be composed of.<wbr/></p>
15580 <td class="entry_units">
15583 <td class="entry_range">
15587 <td class="entry_tags">
15591 <tr class="entries_header">
15592 <th class="th_details" colspan="5">Details</th>
15594 <tr class="entry_cont">
15595 <td class="entry_details" colspan="5">
15596 <p>In order to combat the pipeline latency,<wbr/> partial results
15597 may be delivered to the application layer from the camera device as
15598 soon as they are available.<wbr/></p>
15599 <p>Optional; defaults to 1.<wbr/> A value of 1 means that partial
15600 results are not supported,<wbr/> and only the final TotalCaptureResult will
15601 be produced by the camera device.<wbr/></p>
15602 <p>A typical use case for this might be: after requesting an
15603 auto-focus (AF) lock the new AF state might be available 50%
15604 of the way through the pipeline.<wbr/> The camera device could
15605 then immediately dispatch this state via a partial result to
15606 the application,<wbr/> and the rest of the metadata via later
15607 partial results.<wbr/></p>
15612 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15613 <!-- end of entry -->
15616 <tr class="entry" id="static_android.request.availableCapabilities">
15617 <td class="entry_name
15619 android.<wbr/>request.<wbr/>available<wbr/>Capabilities
15621 <td class="entry_type">
15622 <span class="entry_type_name entry_type_name_enum">byte</span>
15623 <span class="entry_type_container">x</span>
15625 <span class="entry_type_array">
15628 <span class="entry_type_visibility"> [public]</span>
15631 <span class="entry_type_hwlevel">[legacy] </span>
15635 <ul class="entry_type_enum">
15637 <span class="entry_type_enum_name">BACKWARD_COMPATIBLE</span>
15638 <span class="entry_type_enum_notes"><p>The minimal set of capabilities that every camera
15639 device (regardless of <a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a>)
15640 supports.<wbr/></p>
15641 <p>This capability is listed by all normal devices,<wbr/> and
15642 indicates that the camera device has a feature set
15643 that's comparable to the baseline requirements for the
15644 older android.<wbr/>hardware.<wbr/>Camera API.<wbr/></p>
15645 <p>Devices with the DEPTH_<wbr/>OUTPUT capability might not list this
15646 capability,<wbr/> indicating that they support only depth measurement,<wbr/>
15647 not standard color output.<wbr/></p></span>
15650 <span class="entry_type_enum_name">MANUAL_SENSOR</span>
15651 <span class="entry_type_enum_optional">[optional]</span>
15652 <span class="entry_type_enum_notes"><p>The camera device can be manually controlled (3A algorithms such
15653 as auto-exposure,<wbr/> and auto-focus can be bypassed).<wbr/>
15654 The camera device supports basic manual control of the sensor image
15655 acquisition related stages.<wbr/> This means the following controls are
15656 guaranteed to be supported:</p>
15658 <li>Manual frame duration control<ul>
15659 <li><a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a></li>
15660 <li><a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a></li>
15663 <li>Manual exposure control<ul>
15664 <li><a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a></li>
15665 <li><a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a></li>
15668 <li>Manual sensitivity control<ul>
15669 <li><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></li>
15670 <li><a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a></li>
15673 <li>Manual lens control (if the lens is adjustable)<ul>
15674 <li>android.<wbr/>lens.<wbr/>*</li>
15677 <li>Manual flash control (if a flash unit is present)<ul>
15678 <li>android.<wbr/>flash.<wbr/>*</li>
15681 <li>Manual black level locking<ul>
15682 <li><a href="#controls_android.blackLevel.lock">android.<wbr/>black<wbr/>Level.<wbr/>lock</a></li>
15685 <li>Auto exposure lock<ul>
15686 <li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
15690 <p>If any of the above 3A algorithms are enabled,<wbr/> then the camera
15691 device will accurately report the values applied by 3A in the
15693 <p>A given camera device may also support additional manual sensor controls,<wbr/>
15694 but this capability only covers the above list of controls.<wbr/></p>
15695 <p>If this is supported,<wbr/> <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> will
15696 additionally return a min frame duration that is greater than
15697 zero for each supported size-format combination.<wbr/></p></span>
15700 <span class="entry_type_enum_name">MANUAL_POST_PROCESSING</span>
15701 <span class="entry_type_enum_optional">[optional]</span>
15702 <span class="entry_type_enum_notes"><p>The camera device post-processing stages can be manually controlled.<wbr/>
15703 The camera device supports basic manual control of the image post-processing
15704 stages.<wbr/> This means the following controls are guaranteed to be supported:</p>
15707 <p>Manual tonemap control</p>
15709 <li><a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a></li>
15710 <li><a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a></li>
15711 <li><a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></li>
15712 <li><a href="#controls_android.tonemap.gamma">android.<wbr/>tonemap.<wbr/>gamma</a></li>
15713 <li><a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a></li>
15717 <p>Manual white balance control</p>
15719 <li><a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a></li>
15720 <li><a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a></li>
15723 <li>Manual lens shading map control<ul>
15724 <li><a href="#controls_android.shading.mode">android.<wbr/>shading.<wbr/>mode</a></li>
15725 <li><a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a></li>
15726 <li><a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a></li>
15727 <li><a href="#static_android.lens.info.shadingMapSize">android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size</a></li>
15730 <li>Manual aberration correction control (if aberration correction is supported)<ul>
15731 <li><a href="#controls_android.colorCorrection.aberrationMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode</a></li>
15732 <li><a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a></li>
15735 <li>Auto white balance lock<ul>
15736 <li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
15740 <p>If auto white balance is enabled,<wbr/> then the camera device
15741 will accurately report the values applied by AWB in the result.<wbr/></p>
15742 <p>A given camera device may also support additional post-processing
15743 controls,<wbr/> but this capability only covers the above list of controls.<wbr/></p></span>
15746 <span class="entry_type_enum_name">RAW</span>
15747 <span class="entry_type_enum_optional">[optional]</span>
15748 <span class="entry_type_enum_notes"><p>The camera device supports outputting RAW buffers and
15749 metadata for interpreting them.<wbr/></p>
15750 <p>Devices supporting the RAW capability allow both for
15751 saving DNG files,<wbr/> and for direct application processing of
15752 raw sensor images.<wbr/></p>
15754 <li>RAW_<wbr/>SENSOR is supported as an output format.<wbr/></li>
15755 <li>The maximum available resolution for RAW_<wbr/>SENSOR streams
15756 will match either the value in
15757 <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a> or
15758 <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/></li>
15759 <li>All DNG-related optional metadata entries are provided
15760 by the camera device.<wbr/></li>
15764 <span class="entry_type_enum_name">PRIVATE_REPROCESSING</span>
15765 <span class="entry_type_enum_optional">[optional]</span>
15766 <span class="entry_type_enum_notes"><p>The camera device supports the Zero Shutter Lag reprocessing use case.<wbr/></p>
15768 <li>One input stream is supported,<wbr/> that is,<wbr/> <code><a href="#static_android.request.maxNumInputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Input<wbr/>Streams</a> == 1</code>.<wbr/></li>
15769 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> is supported as an output/<wbr/>input format,<wbr/>
15770 that is,<wbr/> <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> is included in the lists of
15771 formats returned by <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getInputFormats">StreamConfigurationMap#getInputFormats</a> and <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputFormats">StreamConfigurationMap#getOutputFormats</a>.<wbr/></li>
15772 <li><a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getValidOutputFormatsForInput">StreamConfigurationMap#getValidOutputFormatsForInput</a>
15773 returns non empty int[] for each supported input format returned by <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getInputFormats">StreamConfigurationMap#getInputFormats</a>.<wbr/></li>
15774 <li>Each size returned by <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getInputSizes">getInputSizes(ImageFormat.<wbr/>PRIVATE)</a> is also included in <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputSizes">getOutputSizes(ImageFormat.<wbr/>PRIVATE)</a></li>
15775 <li>Using <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> does not cause a frame rate drop
15776 relative to the sensor's maximum capture rate (at that resolution).<wbr/></li>
15777 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> will be reprocessable into both
15778 <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a> and
15779 <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a> formats.<wbr/></li>
15780 <li>The maximum available resolution for PRIVATE streams
15781 (both input/<wbr/>output) will match the maximum available
15782 resolution of JPEG streams.<wbr/></li>
15783 <li>Static metadata <a href="#static_android.reprocess.maxCaptureStall">android.<wbr/>reprocess.<wbr/>max<wbr/>Capture<wbr/>Stall</a>.<wbr/></li>
15784 <li>Only below controls are effective for reprocessing requests and
15785 will be present in capture results,<wbr/> other controls in reprocess
15786 requests will be ignored by the camera device.<wbr/><ul>
15787 <li>android.<wbr/>jpeg.<wbr/>*</li>
15788 <li><a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a></li>
15789 <li><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a></li>
15792 <li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a> and
15793 <a href="#static_android.edge.availableEdgeModes">android.<wbr/>edge.<wbr/>available<wbr/>Edge<wbr/>Modes</a> will both list ZERO_<wbr/>SHUTTER_<wbr/>LAG as a supported mode.<wbr/></li>
15797 <span class="entry_type_enum_name">READ_SENSOR_SETTINGS</span>
15798 <span class="entry_type_enum_optional">[optional]</span>
15799 <span class="entry_type_enum_notes"><p>The camera device supports accurately reporting the sensor settings for many of
15800 the sensor controls while the built-in 3A algorithm is running.<wbr/> This allows
15801 reporting of sensor settings even when these settings cannot be manually changed.<wbr/></p>
15802 <p>The values reported for the following controls are guaranteed to be available
15803 in the CaptureResult,<wbr/> including when 3A is enabled:</p>
15805 <li>Exposure control<ul>
15806 <li><a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a></li>
15809 <li>Sensitivity control<ul>
15810 <li><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></li>
15813 <li>Lens controls (if the lens is adjustable)<ul>
15814 <li><a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a></li>
15815 <li><a href="#controls_android.lens.aperture">android.<wbr/>lens.<wbr/>aperture</a></li>
15819 <p>This capability is a subset of the MANUAL_<wbr/>SENSOR control capability,<wbr/> and will
15820 always be included if the MANUAL_<wbr/>SENSOR capability is available.<wbr/></p></span>
15823 <span class="entry_type_enum_name">BURST_CAPTURE</span>
15824 <span class="entry_type_enum_optional">[optional]</span>
15825 <span class="entry_type_enum_notes"><p>The camera device supports capturing high-resolution images at >= 20 frames per
15826 second,<wbr/> in at least the uncompressed YUV format,<wbr/> when post-processing settings are set
15827 to FAST.<wbr/> Additionally,<wbr/> maximum-resolution images can be captured at >= 10 frames
15828 per second.<wbr/> Here,<wbr/> 'high resolution' means at least 8 megapixels,<wbr/> or the maximum
15829 resolution of the device,<wbr/> whichever is smaller.<wbr/></p>
15830 <p>More specifically,<wbr/> this means that a size matching the camera device's active array
15831 size is listed as a supported size for the <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a> format in either <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputSizes">StreamConfigurationMap#getOutputSizes</a> or <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighResolutionOutputSizes">StreamConfigurationMap#getHighResolutionOutputSizes</a>,<wbr/>
15832 with a minimum frame duration for that format and size of either <= 1/<wbr/>20 s,<wbr/> or
15833 <= 1/<wbr/>10 s,<wbr/> respectively; and the <a href="#static_android.control.aeAvailableTargetFpsRanges">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Target<wbr/>Fps<wbr/>Ranges</a> entry
15834 lists at least one FPS range where the minimum FPS is >= 1 /<wbr/> minimumFrameDuration
15835 for the maximum-size YUV_<wbr/>420_<wbr/>888 format.<wbr/> If that maximum size is listed in <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighResolutionOutputSizes">StreamConfigurationMap#getHighResolutionOutputSizes</a>,<wbr/>
15836 then the list of resolutions for YUV_<wbr/>420_<wbr/>888 from <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputSizes">StreamConfigurationMap#getOutputSizes</a> contains at
15837 least one resolution >= 8 megapixels,<wbr/> with a minimum frame duration of <= 1/<wbr/>20
15839 <p>If the device supports the <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW10">ImageFormat#RAW10</a>,<wbr/> <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW12">ImageFormat#RAW12</a>,<wbr/> then those can also be captured at the same rate
15840 as the maximum-size YUV_<wbr/>420_<wbr/>888 resolution is.<wbr/></p>
15841 <p>If the device supports the PRIVATE_<wbr/>REPROCESSING capability,<wbr/> then the same guarantees
15842 as for the YUV_<wbr/>420_<wbr/>888 format also apply to the <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> format.<wbr/></p>
15843 <p>In addition,<wbr/> the <a href="#static_android.sync.maxLatency">android.<wbr/>sync.<wbr/>max<wbr/>Latency</a> field is guaranted to have a value between 0
15844 and 4,<wbr/> inclusive.<wbr/> <a href="#static_android.control.aeLockAvailable">android.<wbr/>control.<wbr/>ae<wbr/>Lock<wbr/>Available</a> and <a href="#static_android.control.awbLockAvailable">android.<wbr/>control.<wbr/>awb<wbr/>Lock<wbr/>Available</a>
15845 are also guaranteed to be <code>true</code> so burst capture with these two locks ON yields
15846 consistent image output.<wbr/></p></span>
15849 <span class="entry_type_enum_name">YUV_REPROCESSING</span>
15850 <span class="entry_type_enum_optional">[optional]</span>
15851 <span class="entry_type_enum_notes"><p>The camera device supports the YUV_<wbr/>420_<wbr/>888 reprocessing use case,<wbr/> similar as
15852 PRIVATE_<wbr/>REPROCESSING,<wbr/> This capability requires the camera device to support the
15855 <li>One input stream is supported,<wbr/> that is,<wbr/> <code><a href="#static_android.request.maxNumInputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Input<wbr/>Streams</a> == 1</code>.<wbr/></li>
15856 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a> is supported as an output/<wbr/>input format,<wbr/> that is,<wbr/>
15857 YUV_<wbr/>420_<wbr/>888 is included in the lists of formats returned by
15858 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getInputFormats">StreamConfigurationMap#getInputFormats</a> and
15859 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputFormats">StreamConfigurationMap#getOutputFormats</a>.<wbr/></li>
15860 <li><a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getValidOutputFormatsForInput">StreamConfigurationMap#getValidOutputFormatsForInput</a>
15861 returns non-empty int[] for each supported input format returned by <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getInputFormats">StreamConfigurationMap#getInputFormats</a>.<wbr/></li>
15862 <li>Each size returned by <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getInputSizes">get<wbr/>Input<wbr/>Sizes(YUV_<wbr/>420_<wbr/>888)</a> is also included in <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputSizes">get<wbr/>Output<wbr/>Sizes(YUV_<wbr/>420_<wbr/>888)</a></li>
15863 <li>Using <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a> does not cause a frame rate drop
15864 relative to the sensor's maximum capture rate (at that resolution).<wbr/></li>
15865 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a> will be reprocessable into both
15866 <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a> and <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a> formats.<wbr/></li>
15867 <li>The maximum available resolution for <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a> streams (both input/<wbr/>output) will match the
15868 maximum available resolution of <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a> streams.<wbr/></li>
15869 <li>Static metadata <a href="#static_android.reprocess.maxCaptureStall">android.<wbr/>reprocess.<wbr/>max<wbr/>Capture<wbr/>Stall</a>.<wbr/></li>
15870 <li>Only the below controls are effective for reprocessing requests and will be present
15871 in capture results.<wbr/> The reprocess requests are from the original capture results that
15872 are associated with the intermediate <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a>
15873 output buffers.<wbr/> All other controls in the reprocess requests will be ignored by the
15874 camera device.<wbr/><ul>
15875 <li>android.<wbr/>jpeg.<wbr/>*</li>
15876 <li><a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a></li>
15877 <li><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a></li>
15878 <li><a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a></li>
15881 <li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a> and
15882 <a href="#static_android.edge.availableEdgeModes">android.<wbr/>edge.<wbr/>available<wbr/>Edge<wbr/>Modes</a> will both list ZERO_<wbr/>SHUTTER_<wbr/>LAG as a supported mode.<wbr/></li>
15886 <span class="entry_type_enum_name">DEPTH_OUTPUT</span>
15887 <span class="entry_type_enum_optional">[optional]</span>
15888 <span class="entry_type_enum_notes"><p>The camera device can produce depth measurements from its field of view.<wbr/></p>
15889 <p>This capability requires the camera device to support the following:</p>
15891 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#DEPTH16">ImageFormat#DEPTH16</a> is supported as an output format.<wbr/></li>
15892 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#DEPTH_POINT_CLOUD">Image<wbr/>Format#DEPTH_<wbr/>POINT_<wbr/>CLOUD</a> is optionally supported as an
15893 output format.<wbr/></li>
15894 <li>This camera device,<wbr/> and all camera devices with the same <a href="#static_android.lens.facing">android.<wbr/>lens.<wbr/>facing</a>,<wbr/>
15895 will list the following calibration entries in both
15896 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a> and
15897 <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">CaptureResult</a>:<ul>
15898 <li><a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a></li>
15899 <li><a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a></li>
15900 <li><a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a></li>
15901 <li><a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a></li>
15904 <li>The <a href="#static_android.depth.depthIsExclusive">android.<wbr/>depth.<wbr/>depth<wbr/>Is<wbr/>Exclusive</a> entry is listed by this device.<wbr/></li>
15905 <li>A LIMITED camera with only the DEPTH_<wbr/>OUTPUT capability does not have to support
15906 normal YUV_<wbr/>420_<wbr/>888,<wbr/> JPEG,<wbr/> and PRIV-format outputs.<wbr/> It only has to support the DEPTH16
15909 <p>Generally,<wbr/> depth output operates at a slower frame rate than standard color capture,<wbr/>
15910 so the DEPTH16 and DEPTH_<wbr/>POINT_<wbr/>CLOUD formats will commonly have a stall duration that
15911 should be accounted for (see
15912 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a>).<wbr/>
15913 On a device that supports both depth and color-based output,<wbr/> to enable smooth preview,<wbr/>
15914 using a repeating burst is recommended,<wbr/> where a depth-output target is only included
15915 once every N frames,<wbr/> where N is the ratio between preview output rate and depth output
15916 rate,<wbr/> including depth stall time.<wbr/></p></span>
15919 <span class="entry_type_enum_name">CONSTRAINED_HIGH_SPEED_VIDEO</span>
15920 <span class="entry_type_enum_optional">[optional]</span>
15921 <span class="entry_type_enum_notes"><p>The device supports constrained high speed video recording (frame rate >=120fps)
15922 use case.<wbr/> The camera device will support high speed capture session created by
15923 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>,<wbr/> which
15924 only accepts high speed request lists created by
15925 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>.<wbr/></p>
15926 <p>A camera device can still support high speed video streaming by advertising the high speed
15927 FPS ranges in <a href="#static_android.control.aeAvailableTargetFpsRanges">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Target<wbr/>Fps<wbr/>Ranges</a>.<wbr/> For this case,<wbr/> all normal
15928 capture request per frame control and synchronization requirements will apply to
15929 the high speed fps ranges,<wbr/> the same as all other fps ranges.<wbr/> This capability describes
15930 the capability of a specialized operating mode with many limitations (see below),<wbr/> which
15931 is only targeted at high speed video recording.<wbr/></p>
15932 <p>The supported high speed video sizes and fps ranges are specified in
15933 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoFpsRanges">StreamConfigurationMap#getHighSpeedVideoFpsRanges</a>.<wbr/>
15934 To get desired output frame rates,<wbr/> the application is only allowed to select video size
15935 and FPS range combinations provided by
15936 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoSizes">StreamConfigurationMap#getHighSpeedVideoSizes</a>.<wbr/>
15937 The fps range can be controlled via <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a>.<wbr/></p>
15938 <p>In this capability,<wbr/> the camera device will override aeMode,<wbr/> awbMode,<wbr/> and afMode to
15939 ON,<wbr/> AUTO,<wbr/> and CONTINUOUS_<wbr/>VIDEO,<wbr/> respectively.<wbr/> All post-processing block mode
15940 controls will be overridden to be FAST.<wbr/> Therefore,<wbr/> no manual control of capture
15941 and post-processing parameters is possible.<wbr/> All other controls operate the
15942 same as when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == AUTO.<wbr/> This means that all other
15943 android.<wbr/>control.<wbr/>* fields continue to work,<wbr/> such as</p>
15945 <li><a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a></li>
15946 <li><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a></li>
15947 <li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
15948 <li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
15949 <li><a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></li>
15950 <li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
15951 <li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
15952 <li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
15953 <li><a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a></li>
15954 <li><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a></li>
15956 <p>Outside of android.<wbr/>control.<wbr/>*,<wbr/> the following controls will work:</p>
15958 <li><a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> (TORCH mode only,<wbr/> automatic flash for still capture will not
15959 work since aeMode is ON)</li>
15960 <li><a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> (if it is supported)</li>
15961 <li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
15962 <li><a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> (if it is supported)</li>
15964 <p>For high speed recording use case,<wbr/> the actual maximum supported frame rate may
15965 be lower than what camera can output,<wbr/> depending on the destination Surfaces for
15966 the image data.<wbr/> For example,<wbr/> if the destination surface is from video encoder,<wbr/>
15967 the application need check if the video encoder is capable of supporting the
15968 high frame rate for a given video size,<wbr/> or it will end up with lower recording
15969 frame rate.<wbr/> If the destination surface is from preview window,<wbr/> the actual preview frame
15970 rate will be bounded by the screen refresh rate.<wbr/></p>
15971 <p>The camera device will only support up to 2 high speed simultaneous output surfaces
15972 (preview and recording surfaces)
15973 in this mode.<wbr/> Above controls will be effective only if all of below conditions are true:</p>
15975 <li>The application creates a camera capture session with no more than 2 surfaces via
15976 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>.<wbr/> The
15977 targeted surfaces must be preview surface (either from
15978 <a href="https://developer.android.com/reference/android/view/SurfaceView.html">SurfaceView</a> or <a href="https://developer.android.com/reference/android/graphics/SurfaceTexture.html">SurfaceTexture</a>) or
15979 recording surface(either from <a href="https://developer.android.com/reference/android/media/MediaRecorder.html#getSurface">MediaRecorder#getSurface</a> or
15980 <a href="https://developer.android.com/reference/android/media/MediaCodec.html#createInputSurface">MediaCodec#createInputSurface</a>).<wbr/></li>
15981 <li>The stream sizes are selected from the sizes reported by
15982 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoSizes">StreamConfigurationMap#getHighSpeedVideoSizes</a>.<wbr/></li>
15983 <li>The FPS ranges are selected from
15984 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoFpsRanges">StreamConfigurationMap#getHighSpeedVideoFpsRanges</a>.<wbr/></li>
15986 <p>When above conditions are NOT satistied,<wbr/>
15987 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>
15988 will fail.<wbr/></p>
15989 <p>Switching to a FPS range that has different maximum FPS may trigger some camera device
15990 reconfigurations,<wbr/> which may introduce extra latency.<wbr/> It is recommended that
15991 the application avoids unnecessary maximum target FPS changes as much as possible
15992 during high speed streaming.<wbr/></p></span>
15996 </td> <!-- entry_type -->
15998 <td class="entry_description">
15999 <p>List of capabilities that this camera device
16000 advertises as fully supporting.<wbr/></p>
16003 <td class="entry_units">
16006 <td class="entry_range">
16009 <td class="entry_tags">
16013 <tr class="entries_header">
16014 <th class="th_details" colspan="5">Details</th>
16016 <tr class="entry_cont">
16017 <td class="entry_details" colspan="5">
16018 <p>A capability is a contract that the camera device makes in order
16019 to be able to satisfy one or more use cases.<wbr/></p>
16020 <p>Listing a capability guarantees that the whole set of features
16021 required to support a common use will all be available.<wbr/></p>
16022 <p>Using a subset of the functionality provided by an unsupported
16023 capability may be possible on a specific camera device implementation;
16024 to do this query each of <a href="#static_android.request.availableRequestKeys">android.<wbr/>request.<wbr/>available<wbr/>Request<wbr/>Keys</a>,<wbr/>
16025 <a href="#static_android.request.availableResultKeys">android.<wbr/>request.<wbr/>available<wbr/>Result<wbr/>Keys</a>,<wbr/>
16026 <a href="#static_android.request.availableCharacteristicsKeys">android.<wbr/>request.<wbr/>available<wbr/>Characteristics<wbr/>Keys</a>.<wbr/></p>
16027 <p>The following capabilities are guaranteed to be available on
16028 <a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> <code>==</code> FULL devices:</p>
16030 <li>MANUAL_<wbr/>SENSOR</li>
16031 <li>MANUAL_<wbr/>POST_<wbr/>PROCESSING</li>
16033 <p>Other capabilities may be available on either FULL or LIMITED
16034 devices,<wbr/> but the application should query this key to be sure.<wbr/></p>
16038 <tr class="entries_header">
16039 <th class="th_details" colspan="5">HAL Implementation Details</th>
16041 <tr class="entry_cont">
16042 <td class="entry_details" colspan="5">
16043 <p>Additional constraint details per-capability will be available
16044 in the Compatibility Test Suite.<wbr/></p>
16045 <p>Minimum baseline requirements required for the
16046 BACKWARD_<wbr/>COMPATIBLE capability are not explicitly listed.<wbr/>
16047 Instead refer to "BC" tags and the camera CTS tests in the
16048 android.<wbr/>hardware.<wbr/>camera2.<wbr/>cts package.<wbr/></p>
16049 <p>Listed controls that can be either request or result (e.<wbr/>g.<wbr/>
16050 <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>) must be available both in the
16051 request and the result in order to be considered to be
16052 capability-compliant.<wbr/></p>
16053 <p>For example,<wbr/> if the HAL claims to support MANUAL control,<wbr/>
16054 then exposure time must be configurable via the request <em>and</em>
16055 the actual exposure applied must be available via
16056 the result.<wbr/></p>
16057 <p>If MANUAL_<wbr/>SENSOR is omitted,<wbr/> the HAL may choose to omit the
16058 <a href="#static_android.scaler.availableMinFrameDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Min<wbr/>Frame<wbr/>Durations</a> static property entirely.<wbr/></p>
16059 <p>For PRIVATE_<wbr/>REPROCESSING and YUV_<wbr/>REPROCESSING capabilities,<wbr/> see
16060 hardware/<wbr/>libhardware/<wbr/>include/<wbr/>hardware/<wbr/>camera3.<wbr/>h Section 10 for more information.<wbr/></p>
16061 <p>Devices that support the MANUAL_<wbr/>SENSOR capability must support the
16062 CAMERA3_<wbr/>TEMPLATE_<wbr/>MANUAL template defined in camera3.<wbr/>h.<wbr/></p>
16063 <p>Devices that support the PRIVATE_<wbr/>REPROCESSING capability or the
16064 YUV_<wbr/>REPROCESSING capability must support the
16065 CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template defined in camera3.<wbr/>h.<wbr/></p>
16066 <p>For DEPTH_<wbr/>OUTPUT,<wbr/> the depth-format keys
16067 <a href="#static_android.depth.availableDepthStreamConfigurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stream<wbr/>Configurations</a>,<wbr/>
16068 <a href="#static_android.depth.availableDepthMinFrameDurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Min<wbr/>Frame<wbr/>Durations</a>,<wbr/>
16069 <a href="#static_android.depth.availableDepthStallDurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stall<wbr/>Durations</a> must be available,<wbr/> in
16070 addition to the other keys explicitly mentioned in the DEPTH_<wbr/>OUTPUT
16071 enum notes.<wbr/> The entry <a href="#static_android.depth.maxDepthSamples">android.<wbr/>depth.<wbr/>max<wbr/>Depth<wbr/>Samples</a> must be available
16072 if the DEPTH_<wbr/>POINT_<wbr/>CLOUD format is supported (HAL pixel format BLOB,<wbr/> dataspace
16077 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16078 <!-- end of entry -->
16081 <tr class="entry" id="static_android.request.availableRequestKeys">
16082 <td class="entry_name
16084 android.<wbr/>request.<wbr/>available<wbr/>Request<wbr/>Keys
16086 <td class="entry_type">
16087 <span class="entry_type_name">int32</span>
16088 <span class="entry_type_container">x</span>
16090 <span class="entry_type_array">
16093 <span class="entry_type_visibility"> [ndk_public]</span>
16096 <span class="entry_type_hwlevel">[legacy] </span>
16101 </td> <!-- entry_type -->
16103 <td class="entry_description">
16104 <p>A list of all keys that the camera device has available
16105 to use with <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.html">CaptureRequest</a>.<wbr/></p>
16108 <td class="entry_units">
16111 <td class="entry_range">
16114 <td class="entry_tags">
16118 <tr class="entries_header">
16119 <th class="th_details" colspan="5">Details</th>
16121 <tr class="entry_cont">
16122 <td class="entry_details" colspan="5">
16123 <p>Attempting to set a key into a CaptureRequest that is not
16124 listed here will result in an invalid request and will be rejected
16125 by the camera device.<wbr/></p>
16126 <p>This field can be used to query the feature set of a camera device
16127 at a more granular level than capabilities.<wbr/> This is especially
16128 important for optional keys that are not listed under any capability
16129 in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
16133 <tr class="entries_header">
16134 <th class="th_details" colspan="5">HAL Implementation Details</th>
16136 <tr class="entry_cont">
16137 <td class="entry_details" colspan="5">
16138 <p>Vendor tags must not be listed here.<wbr/> Use the vendor tag metadata
16139 extensions C api instead (refer to camera3.<wbr/>h for more details).<wbr/></p>
16140 <p>Setting/<wbr/>getting vendor tags will be checked against the metadata
16141 vendor extensions API and not against this field.<wbr/></p>
16142 <p>The HAL must not consume any request tags that are not listed either
16143 here or in the vendor tag list.<wbr/></p>
16144 <p>The public camera2 API will always make the vendor tags visible
16146 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>.<wbr/></p>
16150 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16151 <!-- end of entry -->
16154 <tr class="entry" id="static_android.request.availableResultKeys">
16155 <td class="entry_name
16157 android.<wbr/>request.<wbr/>available<wbr/>Result<wbr/>Keys
16159 <td class="entry_type">
16160 <span class="entry_type_name">int32</span>
16161 <span class="entry_type_container">x</span>
16163 <span class="entry_type_array">
16166 <span class="entry_type_visibility"> [ndk_public]</span>
16169 <span class="entry_type_hwlevel">[legacy] </span>
16174 </td> <!-- entry_type -->
16176 <td class="entry_description">
16177 <p>A list of all keys that the camera device has available
16178 to use with <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">CaptureResult</a>.<wbr/></p>
16181 <td class="entry_units">
16184 <td class="entry_range">
16187 <td class="entry_tags">
16191 <tr class="entries_header">
16192 <th class="th_details" colspan="5">Details</th>
16194 <tr class="entry_cont">
16195 <td class="entry_details" colspan="5">
16196 <p>Attempting to get a key from a CaptureResult that is not
16197 listed here will always return a <code>null</code> value.<wbr/> Getting a key from
16198 a CaptureResult that is listed here will generally never return a <code>null</code>
16200 <p>The following keys may return <code>null</code> unless they are enabled:</p>
16202 <li><a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> (non-null iff <a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a> == ON)</li>
16204 <p>(Those sometimes-null keys will nevertheless be listed here
16205 if they are available.<wbr/>)</p>
16206 <p>This field can be used to query the feature set of a camera device
16207 at a more granular level than capabilities.<wbr/> This is especially
16208 important for optional keys that are not listed under any capability
16209 in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
16213 <tr class="entries_header">
16214 <th class="th_details" colspan="5">HAL Implementation Details</th>
16216 <tr class="entry_cont">
16217 <td class="entry_details" colspan="5">
16218 <p>Tags listed here must always have an entry in the result metadata,<wbr/>
16219 even if that size is 0 elements.<wbr/> Only array-type tags (e.<wbr/>g.<wbr/> lists,<wbr/>
16220 matrices,<wbr/> strings) are allowed to have 0 elements.<wbr/></p>
16221 <p>Vendor tags must not be listed here.<wbr/> Use the vendor tag metadata
16222 extensions C api instead (refer to camera3.<wbr/>h for more details).<wbr/></p>
16223 <p>Setting/<wbr/>getting vendor tags will be checked against the metadata
16224 vendor extensions API and not against this field.<wbr/></p>
16225 <p>The HAL must not produce any result tags that are not listed either
16226 here or in the vendor tag list.<wbr/></p>
16227 <p>The public camera2 API will always make the vendor tags visible via <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureResultKeys">CameraCharacteristics#getAvailableCaptureResultKeys</a>.<wbr/></p>
16231 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16232 <!-- end of entry -->
16235 <tr class="entry" id="static_android.request.availableCharacteristicsKeys">
16236 <td class="entry_name
16238 android.<wbr/>request.<wbr/>available<wbr/>Characteristics<wbr/>Keys
16240 <td class="entry_type">
16241 <span class="entry_type_name">int32</span>
16242 <span class="entry_type_container">x</span>
16244 <span class="entry_type_array">
16247 <span class="entry_type_visibility"> [ndk_public]</span>
16250 <span class="entry_type_hwlevel">[legacy] </span>
16255 </td> <!-- entry_type -->
16257 <td class="entry_description">
16258 <p>A list of all keys that the camera device has available
16259 to use with <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a>.<wbr/></p>
16262 <td class="entry_units">
16265 <td class="entry_range">
16268 <td class="entry_tags">
16272 <tr class="entries_header">
16273 <th class="th_details" colspan="5">Details</th>
16275 <tr class="entry_cont">
16276 <td class="entry_details" colspan="5">
16277 <p>This entry follows the same rules as
16278 <a href="#static_android.request.availableResultKeys">android.<wbr/>request.<wbr/>available<wbr/>Result<wbr/>Keys</a> (except that it applies for
16279 CameraCharacteristics instead of CaptureResult).<wbr/> See above for more
16284 <tr class="entries_header">
16285 <th class="th_details" colspan="5">HAL Implementation Details</th>
16287 <tr class="entry_cont">
16288 <td class="entry_details" colspan="5">
16289 <p>Keys listed here must always have an entry in the static info metadata,<wbr/>
16290 even if that size is 0 elements.<wbr/> Only array-type tags (e.<wbr/>g.<wbr/> lists,<wbr/>
16291 matrices,<wbr/> strings) are allowed to have 0 elements.<wbr/></p>
16292 <p>Vendor tags must not be listed here.<wbr/> Use the vendor tag metadata
16293 extensions C api instead (refer to camera3.<wbr/>h for more details).<wbr/></p>
16294 <p>Setting/<wbr/>getting vendor tags will be checked against the metadata
16295 vendor extensions API and not against this field.<wbr/></p>
16296 <p>The HAL must not have any tags in its static info that are not listed
16297 either here or in the vendor tag list.<wbr/></p>
16298 <p>The public camera2 API will always make the vendor tags visible
16299 via <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getKeys">CameraCharacteristics#getKeys</a>.<wbr/></p>
16303 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16304 <!-- end of entry -->
16308 <!-- end of kind -->
16310 <tr><td colspan="6" class="kind">dynamic</td></tr>
16312 <thead class="entries_header">
16314 <th class="th_name">Property Name</th>
16315 <th class="th_type">Type</th>
16316 <th class="th_description">Description</th>
16317 <th class="th_units">Units</th>
16318 <th class="th_range">Range</th>
16319 <th class="th_tags">Tags</th>
16334 <tr class="entry" id="dynamic_android.request.frameCount">
16335 <td class="entry_name
16336 entry_name_deprecated
16338 android.<wbr/>request.<wbr/>frame<wbr/>Count
16340 <td class="entry_type">
16341 <span class="entry_type_name">int32</span>
16343 <span class="entry_type_visibility"> [hidden]</span>
16347 <span class="entry_type_deprecated">[deprecated] </span>
16351 </td> <!-- entry_type -->
16353 <td class="entry_description">
16354 <p>A frame counter set by the framework.<wbr/> This value monotonically
16355 increases with every new result (that is,<wbr/> each new result has a unique
16356 frameCount value).<wbr/></p>
16359 <td class="entry_units">
16363 <td class="entry_range">
16364 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
16368 <td class="entry_tags">
16372 <tr class="entries_header">
16373 <th class="th_details" colspan="5">Details</th>
16375 <tr class="entry_cont">
16376 <td class="entry_details" colspan="5">
16377 <p>Reset on release()</p>
16382 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16383 <!-- end of entry -->
16386 <tr class="entry" id="dynamic_android.request.id">
16387 <td class="entry_name
16389 android.<wbr/>request.<wbr/>id
16391 <td class="entry_type">
16392 <span class="entry_type_name">int32</span>
16394 <span class="entry_type_visibility"> [hidden]</span>
16401 </td> <!-- entry_type -->
16403 <td class="entry_description">
16404 <p>An application-specified ID for the current
16405 request.<wbr/> Must be maintained unchanged in output
16409 <td class="entry_units">
16410 arbitrary integer assigned by application
16413 <td class="entry_range">
16417 <td class="entry_tags">
16418 <ul class="entry_tags">
16419 <li><a href="#tag_V1">V1</a></li>
16426 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16427 <!-- end of entry -->
16430 <tr class="entry" id="dynamic_android.request.metadataMode">
16431 <td class="entry_name
16433 android.<wbr/>request.<wbr/>metadata<wbr/>Mode
16435 <td class="entry_type">
16436 <span class="entry_type_name entry_type_name_enum">byte</span>
16438 <span class="entry_type_visibility"> [system]</span>
16444 <ul class="entry_type_enum">
16446 <span class="entry_type_enum_name">NONE</span>
16447 <span class="entry_type_enum_notes"><p>No metadata should be produced on output,<wbr/> except
16448 for application-bound buffer data.<wbr/> If no
16449 application-bound streams exist,<wbr/> no frame should be
16450 placed in the output frame queue.<wbr/> If such streams
16451 exist,<wbr/> a frame should be placed on the output queue
16452 with null metadata but with the necessary output buffer
16453 information.<wbr/> Timestamp information should still be
16454 included with any output stream buffers</p></span>
16457 <span class="entry_type_enum_name">FULL</span>
16458 <span class="entry_type_enum_notes"><p>All metadata should be produced.<wbr/> Statistics will
16459 only be produced if they are separately
16464 </td> <!-- entry_type -->
16466 <td class="entry_description">
16467 <p>How much metadata to produce on
16471 <td class="entry_units">
16474 <td class="entry_range">
16477 <td class="entry_tags">
16478 <ul class="entry_tags">
16479 <li><a href="#tag_FUTURE">FUTURE</a></li>
16486 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16487 <!-- end of entry -->
16490 <tr class="entry" id="dynamic_android.request.outputStreams">
16491 <td class="entry_name
16492 entry_name_deprecated
16494 android.<wbr/>request.<wbr/>output<wbr/>Streams
16496 <td class="entry_type">
16497 <span class="entry_type_name">int32</span>
16498 <span class="entry_type_container">x</span>
16500 <span class="entry_type_array">
16503 <span class="entry_type_visibility"> [system]</span>
16507 <span class="entry_type_deprecated">[deprecated] </span>
16511 </td> <!-- entry_type -->
16513 <td class="entry_description">
16514 <p>Lists which camera output streams image data
16515 from this capture must be sent to</p>
16518 <td class="entry_units">
16519 List of camera stream IDs
16522 <td class="entry_range">
16523 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
16524 <p>List must only include streams that have been
16528 <td class="entry_tags">
16529 <ul class="entry_tags">
16530 <li><a href="#tag_HAL2">HAL2</a></li>
16535 <tr class="entries_header">
16536 <th class="th_details" colspan="5">Details</th>
16538 <tr class="entry_cont">
16539 <td class="entry_details" colspan="5">
16540 <p>If no output streams are listed,<wbr/> then the image
16541 data should simply be discarded.<wbr/> The image data must
16542 still be captured for metadata and statistics production,<wbr/>
16543 and the lens and flash must operate as requested.<wbr/></p>
16548 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16549 <!-- end of entry -->
16552 <tr class="entry" id="dynamic_android.request.pipelineDepth">
16553 <td class="entry_name
16555 android.<wbr/>request.<wbr/>pipeline<wbr/>Depth
16557 <td class="entry_type">
16558 <span class="entry_type_name">byte</span>
16560 <span class="entry_type_visibility"> [public]</span>
16563 <span class="entry_type_hwlevel">[legacy] </span>
16568 </td> <!-- entry_type -->
16570 <td class="entry_description">
16571 <p>Specifies the number of pipeline stages the frame went
16572 through from when it was exposed to when the final completed result
16573 was available to the framework.<wbr/></p>
16576 <td class="entry_units">
16579 <td class="entry_range">
16580 <p><= <a href="#static_android.request.pipelineMaxDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth</a></p>
16583 <td class="entry_tags">
16587 <tr class="entries_header">
16588 <th class="th_details" colspan="5">Details</th>
16590 <tr class="entry_cont">
16591 <td class="entry_details" colspan="5">
16592 <p>Depending on what settings are used in the request,<wbr/> and
16593 what streams are configured,<wbr/> the data may undergo less processing,<wbr/>
16594 and some pipeline stages skipped.<wbr/></p>
16595 <p>See <a href="#static_android.request.pipelineMaxDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth</a> for more details.<wbr/></p>
16599 <tr class="entries_header">
16600 <th class="th_details" colspan="5">HAL Implementation Details</th>
16602 <tr class="entry_cont">
16603 <td class="entry_details" colspan="5">
16604 <p>This value must always represent the accurate count of how many
16605 pipeline stages were actually used.<wbr/></p>
16609 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16610 <!-- end of entry -->
16614 <!-- end of kind -->
16617 <!-- end of section -->
16618 <tr><td colspan="6" id="section_scaler" class="section">scaler</td></tr>
16621 <tr><td colspan="6" class="kind">controls</td></tr>
16623 <thead class="entries_header">
16625 <th class="th_name">Property Name</th>
16626 <th class="th_type">Type</th>
16627 <th class="th_description">Description</th>
16628 <th class="th_units">Units</th>
16629 <th class="th_range">Range</th>
16630 <th class="th_tags">Tags</th>
16645 <tr class="entry" id="controls_android.scaler.cropRegion">
16646 <td class="entry_name
16648 android.<wbr/>scaler.<wbr/>crop<wbr/>Region
16650 <td class="entry_type">
16651 <span class="entry_type_name">int32</span>
16652 <span class="entry_type_container">x</span>
16654 <span class="entry_type_array">
16657 <span class="entry_type_visibility"> [public as rectangle]</span>
16660 <span class="entry_type_hwlevel">[legacy] </span>
16665 </td> <!-- entry_type -->
16667 <td class="entry_description">
16668 <p>The desired region of the sensor to read out for this capture.<wbr/></p>
16671 <td class="entry_units">
16672 Pixel coordinates relative to
16673 android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
16676 <td class="entry_range">
16679 <td class="entry_tags">
16680 <ul class="entry_tags">
16681 <li><a href="#tag_BC">BC</a></li>
16686 <tr class="entries_header">
16687 <th class="th_details" colspan="5">Details</th>
16689 <tr class="entry_cont">
16690 <td class="entry_details" colspan="5">
16691 <p>This control can be used to implement digital zoom.<wbr/></p>
16692 <p>The crop region coordinate system is based off
16693 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> with <code>(0,<wbr/> 0)</code> being the
16694 top-left corner of the sensor active array.<wbr/></p>
16695 <p>Output streams use this rectangle to produce their output,<wbr/>
16696 cropping to a smaller region if necessary to maintain the
16697 stream's aspect ratio,<wbr/> then scaling the sensor input to
16698 match the output's configured resolution.<wbr/></p>
16699 <p>The crop region is applied after the RAW to other color
16700 space (e.<wbr/>g.<wbr/> YUV) conversion.<wbr/> Since raw streams
16701 (e.<wbr/>g.<wbr/> RAW16) don't have the conversion stage,<wbr/> they are not
16702 croppable.<wbr/> The crop region will be ignored by raw streams.<wbr/></p>
16703 <p>For non-raw streams,<wbr/> any additional per-stream cropping will
16704 be done to maximize the final pixel area of the stream.<wbr/></p>
16705 <p>For example,<wbr/> if the crop region is set to a 4:3 aspect
16706 ratio,<wbr/> then 4:3 streams will use the exact crop
16707 region.<wbr/> 16:9 streams will further crop vertically
16708 (letterbox).<wbr/></p>
16709 <p>Conversely,<wbr/> if the crop region is set to a 16:9,<wbr/> then 4:3
16710 outputs will crop horizontally (pillarbox),<wbr/> and 16:9
16711 streams will match exactly.<wbr/> These additional crops will
16712 be centered within the crop region.<wbr/></p>
16713 <p>The width and height of the crop region cannot
16714 be set to be smaller than
16715 <code>floor( activeArraySize.<wbr/>width /<wbr/> <a href="#static_android.scaler.availableMaxDigitalZoom">android.<wbr/>scaler.<wbr/>available<wbr/>Max<wbr/>Digital<wbr/>Zoom</a> )</code> and
16716 <code>floor( activeArraySize.<wbr/>height /<wbr/> <a href="#static_android.scaler.availableMaxDigitalZoom">android.<wbr/>scaler.<wbr/>available<wbr/>Max<wbr/>Digital<wbr/>Zoom</a> )</code>,<wbr/> respectively.<wbr/></p>
16717 <p>The camera device may adjust the crop region to account
16718 for rounding and other hardware requirements; the final
16719 crop region used will be included in the output capture
16724 <tr class="entries_header">
16725 <th class="th_details" colspan="5">HAL Implementation Details</th>
16727 <tr class="entry_cont">
16728 <td class="entry_details" colspan="5">
16729 <p>The output streams must maintain square pixels at all
16730 times,<wbr/> no matter what the relative aspect ratios of the
16731 crop region and the stream are.<wbr/> Negative values for
16732 corner are allowed for raw output if full pixel array is
16733 larger than active pixel array.<wbr/> Width and height may be
16734 rounded to nearest larger supportable width,<wbr/> especially
16735 for raw output,<wbr/> where only a few fixed scales may be
16736 possible.<wbr/></p>
16737 <p>For a set of output streams configured,<wbr/> if the sensor output is cropped to a smaller
16738 size than active array size,<wbr/> the HAL need follow below cropping rules:</p>
16741 <p>The HAL need handle the cropRegion as if the sensor crop size is the effective active
16742 array size.<wbr/>More specifically,<wbr/> the HAL must transform the request cropRegion from
16743 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> to the sensor cropped pixel area size in this way:</p>
16745 <li>Translate the requested cropRegion w.<wbr/>r.<wbr/>t.,<wbr/> the left top corner of the sensor
16746 cropped pixel area by (tx,<wbr/> ty),<wbr/>
16747 where <code>tx = sensorCrop.<wbr/>top * (sensorCrop.<wbr/>height /<wbr/> activeArraySize.<wbr/>height)</code>
16748 and <code>tx = sensorCrop.<wbr/>left * (sensorCrop.<wbr/>width /<wbr/> activeArraySize.<wbr/>width)</code>.<wbr/> The
16749 (sensorCrop.<wbr/>top,<wbr/> sensorCrop.<wbr/>left) is the coordinate based off the
16750 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></li>
16751 <li>Scale the width and height of requested cropRegion with scaling factor of
16752 sensor<wbr/>Crop.<wbr/>width/<wbr/>active<wbr/>Array<wbr/>Size.<wbr/>width and sensor<wbr/>Crop.<wbr/>height/<wbr/>active<wbr/>Array<wbr/>Size.<wbr/>height
16753 respectively.<wbr/>
16754 Once this new cropRegion is calculated,<wbr/> the HAL must use this region to crop the image
16755 with regard to the sensor crop size (effective active array size).<wbr/> The HAL still need
16756 follow the general cropping rule for this new cropRegion and effective active
16757 array size.<wbr/></li>
16761 <p>The HAL must report the cropRegion with regard to <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>
16762 The HAL need convert the new cropRegion generated above w.<wbr/>r.<wbr/>t.,<wbr/> full active array size.<wbr/>
16763 The reported cropRegion may be slightly different with the requested cropRegion since
16764 the HAL may adjust the crop region to account for rounding,<wbr/> conversion error,<wbr/> or other
16765 hardware limitations.<wbr/></p>
16768 <p>HAL2.<wbr/>x uses only (x,<wbr/> y,<wbr/> width)</p>
16772 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16773 <!-- end of entry -->
16777 <!-- end of kind -->
16779 <tr><td colspan="6" class="kind">static</td></tr>
16781 <thead class="entries_header">
16783 <th class="th_name">Property Name</th>
16784 <th class="th_type">Type</th>
16785 <th class="th_description">Description</th>
16786 <th class="th_units">Units</th>
16787 <th class="th_range">Range</th>
16788 <th class="th_tags">Tags</th>
16803 <tr class="entry" id="static_android.scaler.availableFormats">
16804 <td class="entry_name
16805 entry_name_deprecated
16807 android.<wbr/>scaler.<wbr/>available<wbr/>Formats
16809 <td class="entry_type">
16810 <span class="entry_type_name entry_type_name_enum">int32</span>
16811 <span class="entry_type_container">x</span>
16813 <span class="entry_type_array">
16816 <span class="entry_type_visibility"> [hidden as imageFormat]</span>
16820 <span class="entry_type_deprecated">[deprecated] </span>
16823 <ul class="entry_type_enum">
16825 <span class="entry_type_enum_name">RAW16</span>
16826 <span class="entry_type_enum_optional">[optional]</span>
16827 <span class="entry_type_enum_value">0x20</span>
16828 <span class="entry_type_enum_notes"><p>RAW16 is a standard,<wbr/> cross-platform format for raw image
16829 buffers with 16-bit pixels.<wbr/></p>
16830 <p>Buffers of this format are typically expected to have a
16831 Bayer Color Filter Array (CFA) layout,<wbr/> which is given in
16832 <a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a>.<wbr/> Sensors with
16833 CFAs that are not representable by a format in
16834 <a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a> should not
16835 use this format.<wbr/></p>
16836 <p>Buffers of this format will also follow the constraints given for
16837 RAW_<wbr/>OPAQUE buffers,<wbr/> but with relaxed performance constraints.<wbr/></p>
16838 <p>This format is intended to give users access to the full contents
16839 of the buffers coming directly from the image sensor prior to any
16840 cropping or scaling operations,<wbr/> and all coordinate systems for
16841 metadata used for this format are relative to the size of the
16842 active region of the image sensor before any geometric distortion
16843 correction has been applied (i.<wbr/>e.<wbr/>
16844 <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>).<wbr/> Supported
16845 dimensions for this format are limited to the full dimensions of
16846 the sensor (e.<wbr/>g.<wbr/> either <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a> or
16847 <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a> will be the
16848 only supported output size).<wbr/></p>
16849 <p>See <a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a> for
16850 the full set of performance guarantees.<wbr/></p></span>
16853 <span class="entry_type_enum_name">RAW_OPAQUE</span>
16854 <span class="entry_type_enum_optional">[optional]</span>
16855 <span class="entry_type_enum_value">0x24</span>
16856 <span class="entry_type_enum_notes"><p>RAW_<wbr/>OPAQUE (or
16857 <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_PRIVATE">RAW_<wbr/>PRIVATE</a>
16858 as referred in public API) is a format for raw image buffers
16859 coming from an image sensor.<wbr/></p>
16860 <p>The actual structure of buffers of this format is
16861 platform-specific,<wbr/> but must follow several constraints:</p>
16863 <li>No image post-processing operations may have been applied to
16864 buffers of this type.<wbr/> These buffers contain raw image data coming
16865 directly from the image sensor.<wbr/></li>
16866 <li>If a buffer of this format is passed to the camera device for
16867 reprocessing,<wbr/> the resulting images will be identical to the images
16868 produced if the buffer had come directly from the sensor and was
16869 processed with the same settings.<wbr/></li>
16871 <p>The intended use for this format is to allow access to the native
16872 raw format buffers coming directly from the camera sensor without
16873 any additional conversions or decrease in framerate.<wbr/></p>
16874 <p>See <a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a> for the full set of
16875 performance guarantees.<wbr/></p></span>
16878 <span class="entry_type_enum_name">YV12</span>
16879 <span class="entry_type_enum_optional">[optional]</span>
16880 <span class="entry_type_enum_value">0x32315659</span>
16881 <span class="entry_type_enum_notes"><p>YCrCb 4:2:0 Planar</p></span>
16884 <span class="entry_type_enum_name">YCrCb_420_SP</span>
16885 <span class="entry_type_enum_optional">[optional]</span>
16886 <span class="entry_type_enum_value">0x11</span>
16887 <span class="entry_type_enum_notes"><p>NV21</p></span>
16890 <span class="entry_type_enum_name">IMPLEMENTATION_DEFINED</span>
16891 <span class="entry_type_enum_value">0x22</span>
16892 <span class="entry_type_enum_notes"><p>System internal format,<wbr/> not application-accessible</p></span>
16895 <span class="entry_type_enum_name">YCbCr_420_888</span>
16896 <span class="entry_type_enum_value">0x23</span>
16897 <span class="entry_type_enum_notes"><p>Flexible YUV420 Format</p></span>
16900 <span class="entry_type_enum_name">BLOB</span>
16901 <span class="entry_type_enum_value">0x21</span>
16902 <span class="entry_type_enum_notes"><p>JPEG format</p></span>
16906 </td> <!-- entry_type -->
16908 <td class="entry_description">
16909 <p>The list of image formats that are supported by this
16910 camera device for output streams.<wbr/></p>
16913 <td class="entry_units">
16916 <td class="entry_range">
16917 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
16920 <td class="entry_tags">
16921 <ul class="entry_tags">
16922 <li><a href="#tag_BC">BC</a></li>
16927 <tr class="entries_header">
16928 <th class="th_details" colspan="5">Details</th>
16930 <tr class="entry_cont">
16931 <td class="entry_details" colspan="5">
16932 <p>All camera devices will support JPEG and YUV_<wbr/>420_<wbr/>888 formats.<wbr/></p>
16933 <p>When set to YUV_<wbr/>420_<wbr/>888,<wbr/> application can access the YUV420 data directly.<wbr/></p>
16937 <tr class="entries_header">
16938 <th class="th_details" colspan="5">HAL Implementation Details</th>
16940 <tr class="entry_cont">
16941 <td class="entry_details" colspan="5">
16942 <p>These format values are from HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>* in
16943 system/<wbr/>core/<wbr/>include/<wbr/>system/<wbr/>graphics.<wbr/>h.<wbr/></p>
16944 <p>When IMPLEMENTATION_<wbr/>DEFINED is used,<wbr/> the platform
16945 gralloc module will select a format based on the usage flags provided
16946 by the camera HAL device and the other endpoint of the stream.<wbr/> It is
16947 usually used by preview and recording streams,<wbr/> where the application doesn't
16948 need access the image data.<wbr/></p>
16949 <p>YCb<wbr/>Cr_<wbr/>420_<wbr/>888 format must be supported by the HAL.<wbr/> When an image stream
16950 needs CPU/<wbr/>application direct access,<wbr/> this format will be used.<wbr/></p>
16951 <p>The BLOB format must be supported by the HAL.<wbr/> This is used for the JPEG stream.<wbr/></p>
16952 <p>A RAW_<wbr/>OPAQUE buffer should contain only pixel data.<wbr/> It is strongly
16953 recommended that any information used by the camera device when
16954 processing images is fully expressed by the result metadata
16955 for that image buffer.<wbr/></p>
16959 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16960 <!-- end of entry -->
16963 <tr class="entry" id="static_android.scaler.availableJpegMinDurations">
16964 <td class="entry_name
16965 entry_name_deprecated
16967 android.<wbr/>scaler.<wbr/>available<wbr/>Jpeg<wbr/>Min<wbr/>Durations
16969 <td class="entry_type">
16970 <span class="entry_type_name">int64</span>
16971 <span class="entry_type_container">x</span>
16973 <span class="entry_type_array">
16976 <span class="entry_type_visibility"> [hidden]</span>
16980 <span class="entry_type_deprecated">[deprecated] </span>
16984 </td> <!-- entry_type -->
16986 <td class="entry_description">
16987 <p>The minimum frame duration that is supported
16988 for each resolution in <a href="#static_android.scaler.availableJpegSizes">android.<wbr/>scaler.<wbr/>available<wbr/>Jpeg<wbr/>Sizes</a>.<wbr/></p>
16991 <td class="entry_units">
16995 <td class="entry_range">
16996 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
16997 <p>TODO: Remove property.<wbr/></p>
17000 <td class="entry_tags">
17001 <ul class="entry_tags">
17002 <li><a href="#tag_BC">BC</a></li>
17007 <tr class="entries_header">
17008 <th class="th_details" colspan="5">Details</th>
17010 <tr class="entry_cont">
17011 <td class="entry_details" colspan="5">
17012 <p>This corresponds to the minimum steady-state frame duration when only
17013 that JPEG stream is active and captured in a burst,<wbr/> with all
17014 processing (typically in android.<wbr/>*.<wbr/>mode) set to FAST.<wbr/></p>
17015 <p>When multiple streams are configured,<wbr/> the minimum
17016 frame duration will be >= max(individual stream min
17022 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17023 <!-- end of entry -->
17026 <tr class="entry" id="static_android.scaler.availableJpegSizes">
17027 <td class="entry_name
17028 entry_name_deprecated
17030 android.<wbr/>scaler.<wbr/>available<wbr/>Jpeg<wbr/>Sizes
17032 <td class="entry_type">
17033 <span class="entry_type_name">int32</span>
17034 <span class="entry_type_container">x</span>
17036 <span class="entry_type_array">
17039 <span class="entry_type_visibility"> [hidden as size]</span>
17043 <span class="entry_type_deprecated">[deprecated] </span>
17047 </td> <!-- entry_type -->
17049 <td class="entry_description">
17050 <p>The JPEG resolutions that are supported by this camera device.<wbr/></p>
17053 <td class="entry_units">
17056 <td class="entry_range">
17057 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
17058 <p>TODO: Remove property.<wbr/></p>
17061 <td class="entry_tags">
17062 <ul class="entry_tags">
17063 <li><a href="#tag_BC">BC</a></li>
17068 <tr class="entries_header">
17069 <th class="th_details" colspan="5">Details</th>
17071 <tr class="entry_cont">
17072 <td class="entry_details" colspan="5">
17073 <p>The resolutions are listed as <code>(width,<wbr/> height)</code> pairs.<wbr/> All camera devices will support
17074 sensor maximum resolution (defined by <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>).<wbr/></p>
17078 <tr class="entries_header">
17079 <th class="th_details" colspan="5">HAL Implementation Details</th>
17081 <tr class="entry_cont">
17082 <td class="entry_details" colspan="5">
17083 <p>The HAL must include sensor maximum resolution
17084 (defined by <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>),<wbr/>
17085 and should include half/<wbr/>quarter of sensor maximum resolution.<wbr/></p>
17089 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17090 <!-- end of entry -->
17093 <tr class="entry" id="static_android.scaler.availableMaxDigitalZoom">
17094 <td class="entry_name
17096 android.<wbr/>scaler.<wbr/>available<wbr/>Max<wbr/>Digital<wbr/>Zoom
17098 <td class="entry_type">
17099 <span class="entry_type_name">float</span>
17101 <span class="entry_type_visibility"> [public]</span>
17104 <span class="entry_type_hwlevel">[legacy] </span>
17109 </td> <!-- entry_type -->
17111 <td class="entry_description">
17112 <p>The maximum ratio between both active area width
17113 and crop region width,<wbr/> and active area height and
17114 crop region height,<wbr/> for <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></p>
17117 <td class="entry_units">
17121 <td class="entry_range">
17125 <td class="entry_tags">
17126 <ul class="entry_tags">
17127 <li><a href="#tag_BC">BC</a></li>
17132 <tr class="entries_header">
17133 <th class="th_details" colspan="5">Details</th>
17135 <tr class="entry_cont">
17136 <td class="entry_details" colspan="5">
17137 <p>This represents the maximum amount of zooming possible by
17138 the camera device,<wbr/> or equivalently,<wbr/> the minimum cropping
17139 window size.<wbr/></p>
17140 <p>Crop regions that have a width or height that is smaller
17141 than this ratio allows will be rounded up to the minimum
17142 allowed size by the camera device.<wbr/></p>
17147 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17148 <!-- end of entry -->
17151 <tr class="entry" id="static_android.scaler.availableProcessedMinDurations">
17152 <td class="entry_name
17153 entry_name_deprecated
17155 android.<wbr/>scaler.<wbr/>available<wbr/>Processed<wbr/>Min<wbr/>Durations
17157 <td class="entry_type">
17158 <span class="entry_type_name">int64</span>
17159 <span class="entry_type_container">x</span>
17161 <span class="entry_type_array">
17164 <span class="entry_type_visibility"> [hidden]</span>
17168 <span class="entry_type_deprecated">[deprecated] </span>
17172 </td> <!-- entry_type -->
17174 <td class="entry_description">
17175 <p>For each available processed output size (defined in
17176 <a href="#static_android.scaler.availableProcessedSizes">android.<wbr/>scaler.<wbr/>available<wbr/>Processed<wbr/>Sizes</a>),<wbr/> this property lists the
17177 minimum supportable frame duration for that size.<wbr/></p>
17180 <td class="entry_units">
17184 <td class="entry_range">
17185 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
17188 <td class="entry_tags">
17189 <ul class="entry_tags">
17190 <li><a href="#tag_BC">BC</a></li>
17195 <tr class="entries_header">
17196 <th class="th_details" colspan="5">Details</th>
17198 <tr class="entry_cont">
17199 <td class="entry_details" colspan="5">
17200 <p>This should correspond to the frame duration when only that processed
17201 stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
17202 set to FAST.<wbr/></p>
17203 <p>When multiple streams are configured,<wbr/> the minimum frame duration will
17204 be >= max(individual stream min durations).<wbr/></p>
17209 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17210 <!-- end of entry -->
17213 <tr class="entry" id="static_android.scaler.availableProcessedSizes">
17214 <td class="entry_name
17215 entry_name_deprecated
17217 android.<wbr/>scaler.<wbr/>available<wbr/>Processed<wbr/>Sizes
17219 <td class="entry_type">
17220 <span class="entry_type_name">int32</span>
17221 <span class="entry_type_container">x</span>
17223 <span class="entry_type_array">
17226 <span class="entry_type_visibility"> [hidden as size]</span>
17230 <span class="entry_type_deprecated">[deprecated] </span>
17234 </td> <!-- entry_type -->
17236 <td class="entry_description">
17237 <p>The resolutions available for use with
17238 processed output streams,<wbr/> such as YV12,<wbr/> NV12,<wbr/> and
17239 platform opaque YUV/<wbr/>RGB streams to the GPU or video
17240 encoders.<wbr/></p>
17243 <td class="entry_units">
17246 <td class="entry_range">
17247 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
17250 <td class="entry_tags">
17251 <ul class="entry_tags">
17252 <li><a href="#tag_BC">BC</a></li>
17257 <tr class="entries_header">
17258 <th class="th_details" colspan="5">Details</th>
17260 <tr class="entry_cont">
17261 <td class="entry_details" colspan="5">
17262 <p>The resolutions are listed as <code>(width,<wbr/> height)</code> pairs.<wbr/></p>
17263 <p>For a given use case,<wbr/> the actual maximum supported resolution
17264 may be lower than what is listed here,<wbr/> depending on the destination
17265 Surface for the image data.<wbr/> For example,<wbr/> for recording video,<wbr/>
17266 the video encoder chosen may have a maximum size limit (e.<wbr/>g.<wbr/> 1080p)
17267 smaller than what the camera (e.<wbr/>g.<wbr/> maximum resolution is 3264x2448)
17268 can provide.<wbr/></p>
17269 <p>Please reference the documentation for the image data destination to
17270 check if it limits the maximum size for image data.<wbr/></p>
17274 <tr class="entries_header">
17275 <th class="th_details" colspan="5">HAL Implementation Details</th>
17277 <tr class="entry_cont">
17278 <td class="entry_details" colspan="5">
17279 <p>For FULL capability devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL</code>),<wbr/>
17280 the HAL must include all JPEG sizes listed in <a href="#static_android.scaler.availableJpegSizes">android.<wbr/>scaler.<wbr/>available<wbr/>Jpeg<wbr/>Sizes</a>
17281 and each below resolution if it is smaller than or equal to the sensor
17282 maximum resolution (if they are not listed in JPEG sizes already):</p>
17284 <li>240p (320 x 240)</li>
17285 <li>480p (640 x 480)</li>
17286 <li>720p (1280 x 720)</li>
17287 <li>1080p (1920 x 1080)</li>
17289 <p>For LIMITED capability devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == LIMITED</code>),<wbr/>
17290 the HAL only has to list up to the maximum video size supported by the devices.<wbr/></p>
17294 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17295 <!-- end of entry -->
17298 <tr class="entry" id="static_android.scaler.availableRawMinDurations">
17299 <td class="entry_name
17300 entry_name_deprecated
17302 android.<wbr/>scaler.<wbr/>available<wbr/>Raw<wbr/>Min<wbr/>Durations
17304 <td class="entry_type">
17305 <span class="entry_type_name">int64</span>
17306 <span class="entry_type_container">x</span>
17308 <span class="entry_type_array">
17311 <span class="entry_type_visibility"> [system]</span>
17315 <span class="entry_type_deprecated">[deprecated] </span>
17319 </td> <!-- entry_type -->
17321 <td class="entry_description">
17322 <p>For each available raw output size (defined in
17323 <a href="#static_android.scaler.availableRawSizes">android.<wbr/>scaler.<wbr/>available<wbr/>Raw<wbr/>Sizes</a>),<wbr/> this property lists the minimum
17324 supportable frame duration for that size.<wbr/></p>
17327 <td class="entry_units">
17331 <td class="entry_range">
17332 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
17335 <td class="entry_tags">
17336 <ul class="entry_tags">
17337 <li><a href="#tag_BC">BC</a></li>
17342 <tr class="entries_header">
17343 <th class="th_details" colspan="5">Details</th>
17345 <tr class="entry_cont">
17346 <td class="entry_details" colspan="5">
17347 <p>Should correspond to the frame duration when only the raw stream is
17349 <p>When multiple streams are configured,<wbr/> the minimum
17350 frame duration will be >= max(individual stream min
17356 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17357 <!-- end of entry -->
17360 <tr class="entry" id="static_android.scaler.availableRawSizes">
17361 <td class="entry_name
17362 entry_name_deprecated
17364 android.<wbr/>scaler.<wbr/>available<wbr/>Raw<wbr/>Sizes
17366 <td class="entry_type">
17367 <span class="entry_type_name">int32</span>
17368 <span class="entry_type_container">x</span>
17370 <span class="entry_type_array">
17373 <span class="entry_type_visibility"> [system as size]</span>
17377 <span class="entry_type_deprecated">[deprecated] </span>
17381 </td> <!-- entry_type -->
17383 <td class="entry_description">
17384 <p>The resolutions available for use with raw
17385 sensor output streams,<wbr/> listed as width,<wbr/>
17389 <td class="entry_units">
17392 <td class="entry_range">
17393 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
17396 <td class="entry_tags">
17402 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17403 <!-- end of entry -->
17406 <tr class="entry" id="static_android.scaler.availableInputOutputFormatsMap">
17407 <td class="entry_name
17409 android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map
17411 <td class="entry_type">
17412 <span class="entry_type_name">int32</span>
17414 <span class="entry_type_visibility"> [hidden as reprocessFormatsMap]</span>
17421 </td> <!-- entry_type -->
17423 <td class="entry_description">
17424 <p>The mapping of image formats that are supported by this
17425 camera device for input streams,<wbr/> to their corresponding output formats.<wbr/></p>
17428 <td class="entry_units">
17431 <td class="entry_range">
17434 <td class="entry_tags">
17435 <ul class="entry_tags">
17436 <li><a href="#tag_REPROC">REPROC</a></li>
17441 <tr class="entries_header">
17442 <th class="th_details" colspan="5">Details</th>
17444 <tr class="entry_cont">
17445 <td class="entry_details" colspan="5">
17446 <p>All camera devices with at least 1
17447 <a href="#static_android.request.maxNumInputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Input<wbr/>Streams</a> will have at least one
17448 available input format.<wbr/></p>
17449 <p>The camera device will support the following map of formats,<wbr/>
17450 if its dependent capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>) is supported:</p>
17454 <th align="left">Input Format</th>
17455 <th align="left">Output Format</th>
17456 <th align="left">Capability</th>
17461 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a></td>
17462 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17463 <td align="left">PRIVATE_<wbr/>REPROCESSING</td>
17466 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a></td>
17467 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a></td>
17468 <td align="left">PRIVATE_<wbr/>REPROCESSING</td>
17471 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a></td>
17472 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17473 <td align="left">YUV_<wbr/>REPROCESSING</td>
17476 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a></td>
17477 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a></td>
17478 <td align="left">YUV_<wbr/>REPROCESSING</td>
17482 <p>PRIVATE refers to a device-internal format that is not directly application-visible.<wbr/> A
17483 PRIVATE input surface can be acquired by <a href="https://developer.android.com/reference/android/media/ImageReader.html#newInstance">ImageReader#newInstance</a>
17484 with <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> as the format.<wbr/></p>
17485 <p>For a PRIVATE_<wbr/>REPROCESSING-capable camera device,<wbr/> using the PRIVATE format as either input
17486 or output will never hurt maximum frame rate (i.<wbr/>e.<wbr/> <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">getOutputStallDuration(ImageFormat.<wbr/>PRIVATE,<wbr/> size)</a> is always 0),<wbr/></p>
17487 <p>Attempting to configure an input stream with output streams not
17488 listed as available in this map is not valid.<wbr/></p>
17492 <tr class="entries_header">
17493 <th class="th_details" colspan="5">HAL Implementation Details</th>
17495 <tr class="entry_cont">
17496 <td class="entry_details" colspan="5">
17497 <p>For the formats,<wbr/> see <code>system/<wbr/>core/<wbr/>include/<wbr/>system/<wbr/>graphics.<wbr/>h</code> for a definition
17498 of the image format enumerations.<wbr/> The PRIVATE format refers to the
17499 HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>IMPLEMENTATION_<wbr/>DEFINED format.<wbr/> The HAL could determine
17500 the actual format by using the gralloc usage flags.<wbr/>
17501 For ZSL use case in particular,<wbr/> the HAL could choose appropriate format (partially
17502 processed YUV or RAW based format) by checking the format and GRALLOC_<wbr/>USAGE_<wbr/>HW_<wbr/>CAMERA_<wbr/>ZSL.<wbr/>
17503 See camera3.<wbr/>h for more details.<wbr/></p>
17504 <p>This value is encoded as a variable-size array-of-arrays.<wbr/>
17505 The inner array always contains <code>[format,<wbr/> length,<wbr/> ...<wbr/>]</code> where
17506 <code>...<wbr/></code> has <code>length</code> elements.<wbr/> An inner array is followed by another
17507 inner array if the total metadata entry size hasn't yet been exceeded.<wbr/></p>
17508 <p>A code sample to read/<wbr/>write this encoding (with a device that
17509 supports reprocessing IMPLEMENTATION_<wbr/>DEFINED to YUV_<wbr/>420_<wbr/>888,<wbr/> and JPEG,<wbr/>
17510 and reprocessing YUV_<wbr/>420_<wbr/>888 to YUV_<wbr/>420_<wbr/>888 and JPEG):</p>
17511 <pre><code>//<wbr/> reading
17512 int32_<wbr/>t* contents = &entry.<wbr/>i32[0];
17513 for (size_<wbr/>t i = 0; i < entry.<wbr/>count; ) {
17514 int32_<wbr/>t format = contents[i++];
17515 int32_<wbr/>t length = contents[i++];
17516 int32_<wbr/>t output_<wbr/>formats[length];
17517 memcpy(&output_<wbr/>formats[0],<wbr/> &contents[i],<wbr/>
17518 length * sizeof(int32_<wbr/>t));
17522 //<wbr/> writing (static example,<wbr/> PRIVATE_<wbr/>REPROCESSING + YUV_<wbr/>REPROCESSING)
17523 int32_<wbr/>t[] contents = {
17524 IMPLEMENTATION_<wbr/>DEFINED,<wbr/> 2,<wbr/> YUV_<wbr/>420_<wbr/>888,<wbr/> BLOB,<wbr/>
17525 YUV_<wbr/>420_<wbr/>888,<wbr/> 2,<wbr/> YUV_<wbr/>420_<wbr/>888,<wbr/> BLOB,<wbr/>
17527 update_<wbr/>camera_<wbr/>metadata_<wbr/>entry(metadata,<wbr/> index,<wbr/> &contents[0],<wbr/>
17528 sizeof(contents)/<wbr/>sizeof(contents[0]),<wbr/> &updated_<wbr/>entry);
17530 <p>If the HAL claims to support any of the capabilities listed in the
17531 above details,<wbr/> then it must also support all the input-output
17532 combinations listed for that capability.<wbr/> It can optionally support
17533 additional formats if it so chooses.<wbr/></p>
17537 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17538 <!-- end of entry -->
17541 <tr class="entry" id="static_android.scaler.availableStreamConfigurations">
17542 <td class="entry_name
17544 android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations
17546 <td class="entry_type">
17547 <span class="entry_type_name entry_type_name_enum">int32</span>
17548 <span class="entry_type_container">x</span>
17550 <span class="entry_type_array">
17553 <span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
17556 <span class="entry_type_hwlevel">[legacy] </span>
17560 <ul class="entry_type_enum">
17562 <span class="entry_type_enum_name">OUTPUT</span>
17565 <span class="entry_type_enum_name">INPUT</span>
17569 </td> <!-- entry_type -->
17571 <td class="entry_description">
17572 <p>The available stream configurations that this
17573 camera device supports
17574 (i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
17577 <td class="entry_units">
17580 <td class="entry_range">
17583 <td class="entry_tags">
17587 <tr class="entries_header">
17588 <th class="th_details" colspan="5">Details</th>
17590 <tr class="entry_cont">
17591 <td class="entry_details" colspan="5">
17592 <p>The configurations are listed as <code>(format,<wbr/> width,<wbr/> height,<wbr/> input?)</code>
17594 <p>For a given use case,<wbr/> the actual maximum supported resolution
17595 may be lower than what is listed here,<wbr/> depending on the destination
17596 Surface for the image data.<wbr/> For example,<wbr/> for recording video,<wbr/>
17597 the video encoder chosen may have a maximum size limit (e.<wbr/>g.<wbr/> 1080p)
17598 smaller than what the camera (e.<wbr/>g.<wbr/> maximum resolution is 3264x2448)
17599 can provide.<wbr/></p>
17600 <p>Please reference the documentation for the image data destination to
17601 check if it limits the maximum size for image data.<wbr/></p>
17602 <p>Not all output formats may be supported in a configuration with
17603 an input stream of a particular format.<wbr/> For more details,<wbr/> see
17604 <a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a>.<wbr/></p>
17605 <p>The following table describes the minimum required output stream
17606 configurations based on the hardware level
17607 (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a>):</p>
17611 <th align="center">Format</th>
17612 <th align="center">Size</th>
17613 <th align="center">Hardware Level</th>
17614 <th align="center">Notes</th>
17619 <td align="center">JPEG</td>
17620 <td align="center"><a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></td>
17621 <td align="center">Any</td>
17622 <td align="center"></td>
17625 <td align="center">JPEG</td>
17626 <td align="center">1920x1080 (1080p)</td>
17627 <td align="center">Any</td>
17628 <td align="center">if 1080p <= activeArraySize</td>
17631 <td align="center">JPEG</td>
17632 <td align="center">1280x720 (720)</td>
17633 <td align="center">Any</td>
17634 <td align="center">if 720p <= activeArraySize</td>
17637 <td align="center">JPEG</td>
17638 <td align="center">640x480 (480p)</td>
17639 <td align="center">Any</td>
17640 <td align="center">if 480p <= activeArraySize</td>
17643 <td align="center">JPEG</td>
17644 <td align="center">320x240 (240p)</td>
17645 <td align="center">Any</td>
17646 <td align="center">if 240p <= activeArraySize</td>
17649 <td align="center">YUV_<wbr/>420_<wbr/>888</td>
17650 <td align="center">all output sizes available for JPEG</td>
17651 <td align="center">FULL</td>
17652 <td align="center"></td>
17655 <td align="center">YUV_<wbr/>420_<wbr/>888</td>
17656 <td align="center">all output sizes available for JPEG,<wbr/> up to the maximum video size</td>
17657 <td align="center">LIMITED</td>
17658 <td align="center"></td>
17661 <td align="center">IMPLEMENTATION_<wbr/>DEFINED</td>
17662 <td align="center">same as YUV_<wbr/>420_<wbr/>888</td>
17663 <td align="center">Any</td>
17664 <td align="center"></td>
17668 <p>Refer to <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> for additional
17669 mandatory stream configurations on a per-capability basis.<wbr/></p>
17673 <tr class="entries_header">
17674 <th class="th_details" colspan="5">HAL Implementation Details</th>
17676 <tr class="entry_cont">
17677 <td class="entry_details" colspan="5">
17678 <p>It is recommended (but not mandatory) to also include half/<wbr/>quarter
17679 of sensor maximum resolution for JPEG formats (regardless of hardware
17681 <p>(The following is a rewording of the above required table):</p>
17682 <p>For JPEG format,<wbr/> the sizes may be restricted by below conditions:</p>
17684 <li>The HAL may choose the aspect ratio of each Jpeg size to be one of well known ones
17685 (e.<wbr/>g.<wbr/> 4:3,<wbr/> 16:9,<wbr/> 3:2 etc.<wbr/>).<wbr/> If the sensor maximum resolution
17686 (defined by <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>) has an aspect ratio other than these,<wbr/>
17687 it does not have to be included in the supported JPEG sizes.<wbr/></li>
17688 <li>Some hardware JPEG encoders may have pixel boundary alignment requirements,<wbr/> such as
17689 the dimensions being a multiple of 16.<wbr/></li>
17691 <p>Therefore,<wbr/> the maximum JPEG size may be smaller than sensor maximum resolution.<wbr/>
17692 However,<wbr/> the largest JPEG size must be as close as possible to the sensor maximum
17693 resolution given above constraints.<wbr/> It is required that after aspect ratio adjustments,<wbr/>
17694 additional size reduction due to other issues must be less than 3% in area.<wbr/> For example,<wbr/>
17695 if the sensor maximum resolution is 3280x2464,<wbr/> if the maximum JPEG size has aspect
17696 ratio 4:3,<wbr/> the JPEG encoder alignment requirement is 16,<wbr/> the maximum JPEG size will be
17697 3264x2448.<wbr/></p>
17698 <p>For FULL capability devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL</code>),<wbr/>
17699 the HAL must include all YUV_<wbr/>420_<wbr/>888 sizes that have JPEG sizes listed
17700 here as output streams.<wbr/></p>
17701 <p>It must also include each below resolution if it is smaller than or
17702 equal to the sensor maximum resolution (for both YUV_<wbr/>420_<wbr/>888 and JPEG
17703 formats),<wbr/> as output streams:</p>
17705 <li>240p (320 x 240)</li>
17706 <li>480p (640 x 480)</li>
17707 <li>720p (1280 x 720)</li>
17708 <li>1080p (1920 x 1080)</li>
17710 <p>For LIMITED capability devices
17711 (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == LIMITED</code>),<wbr/>
17712 the HAL only has to list up to the maximum video size
17713 supported by the device.<wbr/></p>
17714 <p>Regardless of hardware level,<wbr/> every output resolution available for
17715 YUV_<wbr/>420_<wbr/>888 must also be available for IMPLEMENTATION_<wbr/>DEFINED.<wbr/></p>
17716 <p>This supercedes the following fields,<wbr/> which are now deprecated:</p>
17718 <li>availableFormats</li>
17719 <li>available[Processed,<wbr/>Raw,<wbr/>Jpeg]Sizes</li>
17724 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17725 <!-- end of entry -->
17728 <tr class="entry" id="static_android.scaler.availableMinFrameDurations">
17729 <td class="entry_name
17731 android.<wbr/>scaler.<wbr/>available<wbr/>Min<wbr/>Frame<wbr/>Durations
17733 <td class="entry_type">
17734 <span class="entry_type_name">int64</span>
17735 <span class="entry_type_container">x</span>
17737 <span class="entry_type_array">
17740 <span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
17743 <span class="entry_type_hwlevel">[legacy] </span>
17748 </td> <!-- entry_type -->
17750 <td class="entry_description">
17751 <p>This lists the minimum frame duration for each
17752 format/<wbr/>size combination.<wbr/></p>
17755 <td class="entry_units">
17756 (format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
17759 <td class="entry_range">
17762 <td class="entry_tags">
17763 <ul class="entry_tags">
17764 <li><a href="#tag_V1">V1</a></li>
17769 <tr class="entries_header">
17770 <th class="th_details" colspan="5">Details</th>
17772 <tr class="entry_cont">
17773 <td class="entry_details" colspan="5">
17774 <p>This should correspond to the frame duration when only that
17775 stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
17776 set to either OFF or FAST.<wbr/></p>
17777 <p>When multiple streams are used in a request,<wbr/> the minimum frame
17778 duration will be max(individual stream min durations).<wbr/></p>
17779 <p>The minimum frame duration of a stream (of a particular format,<wbr/> size)
17780 is the same regardless of whether the stream is input or output.<wbr/></p>
17781 <p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> and
17782 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for more details about
17783 calculating the max frame rate.<wbr/></p>
17784 <p>(Keep in sync with
17785 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>)</p>
17790 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17791 <!-- end of entry -->
17794 <tr class="entry" id="static_android.scaler.availableStallDurations">
17795 <td class="entry_name
17797 android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations
17799 <td class="entry_type">
17800 <span class="entry_type_name">int64</span>
17801 <span class="entry_type_container">x</span>
17803 <span class="entry_type_array">
17806 <span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
17809 <span class="entry_type_hwlevel">[legacy] </span>
17814 </td> <!-- entry_type -->
17816 <td class="entry_description">
17817 <p>This lists the maximum stall duration for each
17818 output format/<wbr/>size combination.<wbr/></p>
17821 <td class="entry_units">
17822 (format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
17825 <td class="entry_range">
17828 <td class="entry_tags">
17829 <ul class="entry_tags">
17830 <li><a href="#tag_V1">V1</a></li>
17835 <tr class="entries_header">
17836 <th class="th_details" colspan="5">Details</th>
17838 <tr class="entry_cont">
17839 <td class="entry_details" colspan="5">
17840 <p>A stall duration is how much extra time would get added
17841 to the normal minimum frame duration for a repeating request
17842 that has streams with non-zero stall.<wbr/></p>
17843 <p>For example,<wbr/> consider JPEG captures which have the following
17844 characteristics:</p>
17846 <li>JPEG streams act like processed YUV streams in requests for which
17847 they are not included; in requests in which they are directly
17848 referenced,<wbr/> they act as JPEG streams.<wbr/> This is because supporting a
17849 JPEG stream requires the underlying YUV data to always be ready for
17850 use by a JPEG encoder,<wbr/> but the encoder will only be used (and impact
17851 frame duration) on requests that actually reference a JPEG stream.<wbr/></li>
17852 <li>The JPEG processor can run concurrently to the rest of the camera
17853 pipeline,<wbr/> but cannot process more than 1 capture at a time.<wbr/></li>
17855 <p>In other words,<wbr/> using a repeating YUV request would result
17856 in a steady frame rate (let's say it's 30 FPS).<wbr/> If a single
17857 JPEG request is submitted periodically,<wbr/> the frame rate will stay
17858 at 30 FPS (as long as we wait for the previous JPEG to return each
17859 time).<wbr/> If we try to submit a repeating YUV + JPEG request,<wbr/> then
17860 the frame rate will drop from 30 FPS.<wbr/></p>
17861 <p>In general,<wbr/> submitting a new request with a non-0 stall time
17862 stream will <em>not</em> cause a frame rate drop unless there are still
17863 outstanding buffers for that stream from previous requests.<wbr/></p>
17864 <p>Submitting a repeating request with streams (call this <code>S</code>)
17865 is the same as setting the minimum frame duration from
17866 the normal minimum frame duration corresponding to <code>S</code>,<wbr/> added with
17867 the maximum stall duration for <code>S</code>.<wbr/></p>
17868 <p>If interleaving requests with and without a stall duration,<wbr/>
17869 a request will stall by the maximum of the remaining times
17870 for each can-stall stream with outstanding buffers.<wbr/></p>
17871 <p>This means that a stalling request will not have an exposure start
17872 until the stall has completed.<wbr/></p>
17873 <p>This should correspond to the stall duration when only that stream is
17874 active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode) set to FAST
17875 or OFF.<wbr/> Setting any of the processing modes to HIGH_<wbr/>QUALITY
17876 effectively results in an indeterminate stall duration for all
17877 streams in a request (the regular stall calculation rules are
17878 ignored).<wbr/></p>
17879 <p>The following formats may always have a stall duration:</p>
17881 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></li>
17882 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">ImageFormat#RAW_<wbr/>SENSOR</a></li>
17884 <p>The following formats will never have a stall duration:</p>
17886 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a></li>
17887 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW10">ImageFormat#RAW10</a></li>
17889 <p>All other formats may or may not have an allowed stall duration on
17890 a per-capability basis; refer to <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>
17891 for more details.<wbr/></p>
17892 <p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> for more information about
17893 calculating the max frame rate (absent stalls).<wbr/></p>
17894 <p>(Keep up to date with
17895 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a> )</p>
17899 <tr class="entries_header">
17900 <th class="th_details" colspan="5">HAL Implementation Details</th>
17902 <tr class="entry_cont">
17903 <td class="entry_details" colspan="5">
17904 <p>If possible,<wbr/> it is recommended that all non-JPEG formats
17905 (such as RAW16) should not have a stall duration.<wbr/> RAW10,<wbr/> RAW12,<wbr/> RAW_<wbr/>OPAQUE
17906 and IMPLEMENTATION_<wbr/>DEFINED must not have stall durations.<wbr/></p>
17910 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17911 <!-- end of entry -->
17914 <tr class="entry" id="static_android.scaler.streamConfigurationMap">
17915 <td class="entry_name
17917 android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map
17919 <td class="entry_type">
17920 <span class="entry_type_name">int32</span>
17922 <span class="entry_type_visibility"> [java_public as streamConfigurationMap]</span>
17924 <span class="entry_type_synthetic">[synthetic] </span>
17926 <span class="entry_type_hwlevel">[legacy] </span>
17931 </td> <!-- entry_type -->
17933 <td class="entry_description">
17934 <p>The available stream configurations that this
17935 camera device supports; also includes the minimum frame durations
17936 and the stall durations for each format/<wbr/>size combination.<wbr/></p>
17939 <td class="entry_units">
17942 <td class="entry_range">
17945 <td class="entry_tags">
17949 <tr class="entries_header">
17950 <th class="th_details" colspan="5">Details</th>
17952 <tr class="entry_cont">
17953 <td class="entry_details" colspan="5">
17954 <p>All camera devices will support sensor maximum resolution (defined by
17955 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>) for the JPEG format.<wbr/></p>
17956 <p>For a given use case,<wbr/> the actual maximum supported resolution
17957 may be lower than what is listed here,<wbr/> depending on the destination
17958 Surface for the image data.<wbr/> For example,<wbr/> for recording video,<wbr/>
17959 the video encoder chosen may have a maximum size limit (e.<wbr/>g.<wbr/> 1080p)
17960 smaller than what the camera (e.<wbr/>g.<wbr/> maximum resolution is 3264x2448)
17961 can provide.<wbr/></p>
17962 <p>Please reference the documentation for the image data destination to
17963 check if it limits the maximum size for image data.<wbr/></p>
17964 <p>The following table describes the minimum required output stream
17965 configurations based on the hardware level
17966 (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a>):</p>
17970 <th align="center">Format</th>
17971 <th align="center">Size</th>
17972 <th align="center">Hardware Level</th>
17973 <th align="center">Notes</th>
17978 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17979 <td align="center"><a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> (*1)</td>
17980 <td align="center">Any</td>
17981 <td align="center"></td>
17984 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17985 <td align="center">1920x1080 (1080p)</td>
17986 <td align="center">Any</td>
17987 <td align="center">if 1080p <= activeArraySize</td>
17990 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17991 <td align="center">1280x720 (720p)</td>
17992 <td align="center">Any</td>
17993 <td align="center">if 720p <= activeArraySize</td>
17996 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17997 <td align="center">640x480 (480p)</td>
17998 <td align="center">Any</td>
17999 <td align="center">if 480p <= activeArraySize</td>
18002 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
18003 <td align="center">320x240 (240p)</td>
18004 <td align="center">Any</td>
18005 <td align="center">if 240p <= activeArraySize</td>
18008 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a></td>
18009 <td align="center">all output sizes available for JPEG</td>
18010 <td align="center">FULL</td>
18011 <td align="center"></td>
18014 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a></td>
18015 <td align="center">all output sizes available for JPEG,<wbr/> up to the maximum video size</td>
18016 <td align="center">LIMITED</td>
18017 <td align="center"></td>
18020 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a></td>
18021 <td align="center">same as YUV_<wbr/>420_<wbr/>888</td>
18022 <td align="center">Any</td>
18023 <td align="center"></td>
18027 <p>Refer to <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> and <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">CameraDevice#createCaptureSession</a> for additional mandatory
18028 stream configurations on a per-capability basis.<wbr/></p>
18029 <p>*1: For JPEG format,<wbr/> the sizes may be restricted by below conditions:</p>
18031 <li>The HAL may choose the aspect ratio of each Jpeg size to be one of well known ones
18032 (e.<wbr/>g.<wbr/> 4:3,<wbr/> 16:9,<wbr/> 3:2 etc.<wbr/>).<wbr/> If the sensor maximum resolution
18033 (defined by <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>) has an aspect ratio other than these,<wbr/>
18034 it does not have to be included in the supported JPEG sizes.<wbr/></li>
18035 <li>Some hardware JPEG encoders may have pixel boundary alignment requirements,<wbr/> such as
18036 the dimensions being a multiple of 16.<wbr/>
18037 Therefore,<wbr/> the maximum JPEG size may be smaller than sensor maximum resolution.<wbr/>
18038 However,<wbr/> the largest JPEG size will be as close as possible to the sensor maximum
18039 resolution given above constraints.<wbr/> It is required that after aspect ratio adjustments,<wbr/>
18040 additional size reduction due to other issues must be less than 3% in area.<wbr/> For example,<wbr/>
18041 if the sensor maximum resolution is 3280x2464,<wbr/> if the maximum JPEG size has aspect
18042 ratio 4:3,<wbr/> and the JPEG encoder alignment requirement is 16,<wbr/> the maximum JPEG size will be
18043 3264x2448.<wbr/></li>
18048 <tr class="entries_header">
18049 <th class="th_details" colspan="5">HAL Implementation Details</th>
18051 <tr class="entry_cont">
18052 <td class="entry_details" colspan="5">
18053 <p>Do not set this property directly
18054 (it is synthetic and will not be available at the HAL layer);
18055 set the <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> instead.<wbr/></p>
18056 <p>Not all output formats may be supported in a configuration with
18057 an input stream of a particular format.<wbr/> For more details,<wbr/> see
18058 <a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a>.<wbr/></p>
18059 <p>It is recommended (but not mandatory) to also include half/<wbr/>quarter
18060 of sensor maximum resolution for JPEG formats (regardless of hardware
18062 <p>(The following is a rewording of the above required table):</p>
18063 <p>The HAL must include sensor maximum resolution (defined by
18064 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>).<wbr/></p>
18065 <p>For FULL capability devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL</code>),<wbr/>
18066 the HAL must include all YUV_<wbr/>420_<wbr/>888 sizes that have JPEG sizes listed
18067 here as output streams.<wbr/></p>
18068 <p>It must also include each below resolution if it is smaller than or
18069 equal to the sensor maximum resolution (for both YUV_<wbr/>420_<wbr/>888 and JPEG
18070 formats),<wbr/> as output streams:</p>
18072 <li>240p (320 x 240)</li>
18073 <li>480p (640 x 480)</li>
18074 <li>720p (1280 x 720)</li>
18075 <li>1080p (1920 x 1080)</li>
18077 <p>For LIMITED capability devices
18078 (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == LIMITED</code>),<wbr/>
18079 the HAL only has to list up to the maximum video size
18080 supported by the device.<wbr/></p>
18081 <p>Regardless of hardware level,<wbr/> every output resolution available for
18082 YUV_<wbr/>420_<wbr/>888 must also be available for IMPLEMENTATION_<wbr/>DEFINED.<wbr/></p>
18083 <p>This supercedes the following fields,<wbr/> which are now deprecated:</p>
18085 <li>availableFormats</li>
18086 <li>available[Processed,<wbr/>Raw,<wbr/>Jpeg]Sizes</li>
18091 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18092 <!-- end of entry -->
18095 <tr class="entry" id="static_android.scaler.croppingType">
18096 <td class="entry_name
18098 android.<wbr/>scaler.<wbr/>cropping<wbr/>Type
18100 <td class="entry_type">
18101 <span class="entry_type_name entry_type_name_enum">byte</span>
18103 <span class="entry_type_visibility"> [public]</span>
18106 <span class="entry_type_hwlevel">[legacy] </span>
18110 <ul class="entry_type_enum">
18112 <span class="entry_type_enum_name">CENTER_ONLY</span>
18113 <span class="entry_type_enum_notes"><p>The camera device only supports centered crop regions.<wbr/></p></span>
18116 <span class="entry_type_enum_name">FREEFORM</span>
18117 <span class="entry_type_enum_notes"><p>The camera device supports arbitrarily chosen crop regions.<wbr/></p></span>
18121 </td> <!-- entry_type -->
18123 <td class="entry_description">
18124 <p>The crop type that this camera device supports.<wbr/></p>
18127 <td class="entry_units">
18130 <td class="entry_range">
18133 <td class="entry_tags">
18137 <tr class="entries_header">
18138 <th class="th_details" colspan="5">Details</th>
18140 <tr class="entry_cont">
18141 <td class="entry_details" colspan="5">
18142 <p>When passing a non-centered crop region (<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>) to a camera
18143 device that only supports CENTER_<wbr/>ONLY cropping,<wbr/> the camera device will move the
18144 crop region to the center of the sensor active array (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>)
18145 and keep the crop region width and height unchanged.<wbr/> The camera device will return the
18146 final used crop region in metadata result <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></p>
18147 <p>Camera devices that support FREEFORM cropping will support any crop region that
18148 is inside of the active array.<wbr/> The camera device will apply the same crop region and
18149 return the final used crop region in capture result metadata <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></p>
18150 <p>LEGACY capability devices will only support CENTER_<wbr/>ONLY cropping.<wbr/></p>
18155 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18156 <!-- end of entry -->
18160 <!-- end of kind -->
18162 <tr><td colspan="6" class="kind">dynamic</td></tr>
18164 <thead class="entries_header">
18166 <th class="th_name">Property Name</th>
18167 <th class="th_type">Type</th>
18168 <th class="th_description">Description</th>
18169 <th class="th_units">Units</th>
18170 <th class="th_range">Range</th>
18171 <th class="th_tags">Tags</th>
18186 <tr class="entry" id="dynamic_android.scaler.cropRegion">
18187 <td class="entry_name
18189 android.<wbr/>scaler.<wbr/>crop<wbr/>Region
18191 <td class="entry_type">
18192 <span class="entry_type_name">int32</span>
18193 <span class="entry_type_container">x</span>
18195 <span class="entry_type_array">
18198 <span class="entry_type_visibility"> [public as rectangle]</span>
18201 <span class="entry_type_hwlevel">[legacy] </span>
18206 </td> <!-- entry_type -->
18208 <td class="entry_description">
18209 <p>The desired region of the sensor to read out for this capture.<wbr/></p>
18212 <td class="entry_units">
18213 Pixel coordinates relative to
18214 android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
18217 <td class="entry_range">
18220 <td class="entry_tags">
18221 <ul class="entry_tags">
18222 <li><a href="#tag_BC">BC</a></li>
18227 <tr class="entries_header">
18228 <th class="th_details" colspan="5">Details</th>
18230 <tr class="entry_cont">
18231 <td class="entry_details" colspan="5">
18232 <p>This control can be used to implement digital zoom.<wbr/></p>
18233 <p>The crop region coordinate system is based off
18234 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> with <code>(0,<wbr/> 0)</code> being the
18235 top-left corner of the sensor active array.<wbr/></p>
18236 <p>Output streams use this rectangle to produce their output,<wbr/>
18237 cropping to a smaller region if necessary to maintain the
18238 stream's aspect ratio,<wbr/> then scaling the sensor input to
18239 match the output's configured resolution.<wbr/></p>
18240 <p>The crop region is applied after the RAW to other color
18241 space (e.<wbr/>g.<wbr/> YUV) conversion.<wbr/> Since raw streams
18242 (e.<wbr/>g.<wbr/> RAW16) don't have the conversion stage,<wbr/> they are not
18243 croppable.<wbr/> The crop region will be ignored by raw streams.<wbr/></p>
18244 <p>For non-raw streams,<wbr/> any additional per-stream cropping will
18245 be done to maximize the final pixel area of the stream.<wbr/></p>
18246 <p>For example,<wbr/> if the crop region is set to a 4:3 aspect
18247 ratio,<wbr/> then 4:3 streams will use the exact crop
18248 region.<wbr/> 16:9 streams will further crop vertically
18249 (letterbox).<wbr/></p>
18250 <p>Conversely,<wbr/> if the crop region is set to a 16:9,<wbr/> then 4:3
18251 outputs will crop horizontally (pillarbox),<wbr/> and 16:9
18252 streams will match exactly.<wbr/> These additional crops will
18253 be centered within the crop region.<wbr/></p>
18254 <p>The width and height of the crop region cannot
18255 be set to be smaller than
18256 <code>floor( activeArraySize.<wbr/>width /<wbr/> <a href="#static_android.scaler.availableMaxDigitalZoom">android.<wbr/>scaler.<wbr/>available<wbr/>Max<wbr/>Digital<wbr/>Zoom</a> )</code> and
18257 <code>floor( activeArraySize.<wbr/>height /<wbr/> <a href="#static_android.scaler.availableMaxDigitalZoom">android.<wbr/>scaler.<wbr/>available<wbr/>Max<wbr/>Digital<wbr/>Zoom</a> )</code>,<wbr/> respectively.<wbr/></p>
18258 <p>The camera device may adjust the crop region to account
18259 for rounding and other hardware requirements; the final
18260 crop region used will be included in the output capture
18265 <tr class="entries_header">
18266 <th class="th_details" colspan="5">HAL Implementation Details</th>
18268 <tr class="entry_cont">
18269 <td class="entry_details" colspan="5">
18270 <p>The output streams must maintain square pixels at all
18271 times,<wbr/> no matter what the relative aspect ratios of the
18272 crop region and the stream are.<wbr/> Negative values for
18273 corner are allowed for raw output if full pixel array is
18274 larger than active pixel array.<wbr/> Width and height may be
18275 rounded to nearest larger supportable width,<wbr/> especially
18276 for raw output,<wbr/> where only a few fixed scales may be
18277 possible.<wbr/></p>
18278 <p>For a set of output streams configured,<wbr/> if the sensor output is cropped to a smaller
18279 size than active array size,<wbr/> the HAL need follow below cropping rules:</p>
18282 <p>The HAL need handle the cropRegion as if the sensor crop size is the effective active
18283 array size.<wbr/>More specifically,<wbr/> the HAL must transform the request cropRegion from
18284 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> to the sensor cropped pixel area size in this way:</p>
18286 <li>Translate the requested cropRegion w.<wbr/>r.<wbr/>t.,<wbr/> the left top corner of the sensor
18287 cropped pixel area by (tx,<wbr/> ty),<wbr/>
18288 where <code>tx = sensorCrop.<wbr/>top * (sensorCrop.<wbr/>height /<wbr/> activeArraySize.<wbr/>height)</code>
18289 and <code>tx = sensorCrop.<wbr/>left * (sensorCrop.<wbr/>width /<wbr/> activeArraySize.<wbr/>width)</code>.<wbr/> The
18290 (sensorCrop.<wbr/>top,<wbr/> sensorCrop.<wbr/>left) is the coordinate based off the
18291 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></li>
18292 <li>Scale the width and height of requested cropRegion with scaling factor of
18293 sensor<wbr/>Crop.<wbr/>width/<wbr/>active<wbr/>Array<wbr/>Size.<wbr/>width and sensor<wbr/>Crop.<wbr/>height/<wbr/>active<wbr/>Array<wbr/>Size.<wbr/>height
18294 respectively.<wbr/>
18295 Once this new cropRegion is calculated,<wbr/> the HAL must use this region to crop the image
18296 with regard to the sensor crop size (effective active array size).<wbr/> The HAL still need
18297 follow the general cropping rule for this new cropRegion and effective active
18298 array size.<wbr/></li>
18302 <p>The HAL must report the cropRegion with regard to <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>
18303 The HAL need convert the new cropRegion generated above w.<wbr/>r.<wbr/>t.,<wbr/> full active array size.<wbr/>
18304 The reported cropRegion may be slightly different with the requested cropRegion since
18305 the HAL may adjust the crop region to account for rounding,<wbr/> conversion error,<wbr/> or other
18306 hardware limitations.<wbr/></p>
18309 <p>HAL2.<wbr/>x uses only (x,<wbr/> y,<wbr/> width)</p>
18313 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18314 <!-- end of entry -->
18318 <!-- end of kind -->
18321 <!-- end of section -->
18322 <tr><td colspan="6" id="section_sensor" class="section">sensor</td></tr>
18325 <tr><td colspan="6" class="kind">controls</td></tr>
18327 <thead class="entries_header">
18329 <th class="th_name">Property Name</th>
18330 <th class="th_type">Type</th>
18331 <th class="th_description">Description</th>
18332 <th class="th_units">Units</th>
18333 <th class="th_range">Range</th>
18334 <th class="th_tags">Tags</th>
18349 <tr class="entry" id="controls_android.sensor.exposureTime">
18350 <td class="entry_name
18352 android.<wbr/>sensor.<wbr/>exposure<wbr/>Time
18354 <td class="entry_type">
18355 <span class="entry_type_name">int64</span>
18357 <span class="entry_type_visibility"> [public]</span>
18360 <span class="entry_type_hwlevel">[full] </span>
18365 </td> <!-- entry_type -->
18367 <td class="entry_description">
18368 <p>Duration each pixel is exposed to
18372 <td class="entry_units">
18376 <td class="entry_range">
18377 <p><a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a></p>
18380 <td class="entry_tags">
18381 <ul class="entry_tags">
18382 <li><a href="#tag_V1">V1</a></li>
18387 <tr class="entries_header">
18388 <th class="th_details" colspan="5">Details</th>
18390 <tr class="entry_cont">
18391 <td class="entry_details" colspan="5">
18392 <p>If the sensor can't expose this exact duration,<wbr/> it will shorten the
18393 duration exposed to the nearest possible value (rather than expose longer).<wbr/>
18394 The final exposure time used will be available in the output capture result.<wbr/></p>
18395 <p>This control is only effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is set to
18396 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
18401 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18402 <!-- end of entry -->
18405 <tr class="entry" id="controls_android.sensor.frameDuration">
18406 <td class="entry_name
18408 android.<wbr/>sensor.<wbr/>frame<wbr/>Duration
18410 <td class="entry_type">
18411 <span class="entry_type_name">int64</span>
18413 <span class="entry_type_visibility"> [public]</span>
18416 <span class="entry_type_hwlevel">[full] </span>
18421 </td> <!-- entry_type -->
18423 <td class="entry_description">
18424 <p>Duration from start of frame exposure to
18425 start of next frame exposure.<wbr/></p>
18428 <td class="entry_units">
18432 <td class="entry_range">
18433 <p>See <a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a>,<wbr/>
18434 <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a>.<wbr/> The duration
18435 is capped to <code>max(duration,<wbr/> exposureTime + overhead)</code>.<wbr/></p>
18438 <td class="entry_tags">
18439 <ul class="entry_tags">
18440 <li><a href="#tag_V1">V1</a></li>
18445 <tr class="entries_header">
18446 <th class="th_details" colspan="5">Details</th>
18448 <tr class="entry_cont">
18449 <td class="entry_details" colspan="5">
18450 <p>The maximum frame rate that can be supported by a camera subsystem is
18451 a function of many factors:</p>
18453 <li>Requested resolutions of output image streams</li>
18454 <li>Availability of binning /<wbr/> skipping modes on the imager</li>
18455 <li>The bandwidth of the imager interface</li>
18456 <li>The bandwidth of the various ISP processing blocks</li>
18458 <p>Since these factors can vary greatly between different ISPs and
18459 sensors,<wbr/> the camera abstraction tries to represent the bandwidth
18460 restrictions with as simple a model as possible.<wbr/></p>
18461 <p>The model presented has the following characteristics:</p>
18463 <li>The image sensor is always configured to output the smallest
18464 resolution possible given the application's requested output stream
18465 sizes.<wbr/> The smallest resolution is defined as being at least as large
18466 as the largest requested output stream size; the camera pipeline must
18467 never digitally upsample sensor data when the crop region covers the
18468 whole sensor.<wbr/> In general,<wbr/> this means that if only small output stream
18469 resolutions are configured,<wbr/> the sensor can provide a higher frame
18471 <li>Since any request may use any or all the currently configured
18472 output streams,<wbr/> the sensor and ISP must be configured to support
18473 scaling a single capture to all the streams at the same time.<wbr/> This
18474 means the camera pipeline must be ready to produce the largest
18475 requested output size without any delay.<wbr/> Therefore,<wbr/> the overall
18476 frame rate of a given configured stream set is governed only by the
18477 largest requested stream resolution.<wbr/></li>
18478 <li>Using more than one output stream in a request does not affect the
18479 frame duration.<wbr/></li>
18480 <li>Certain format-streams may need to do additional background processing
18481 before data is consumed/<wbr/>produced by that stream.<wbr/> These processors
18482 can run concurrently to the rest of the camera pipeline,<wbr/> but
18483 cannot process more than 1 capture at a time.<wbr/></li>
18485 <p>The necessary information for the application,<wbr/> given the model above,<wbr/>
18486 is provided via the <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> field using
18487 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>.<wbr/>
18488 These are used to determine the maximum frame rate /<wbr/> minimum frame
18489 duration that is possible for a given stream configuration.<wbr/></p>
18490 <p>Specifically,<wbr/> the application can use the following rules to
18491 determine the minimum frame duration it can request from the camera
18494 <li>Let the set of currently configured input/<wbr/>output streams
18495 be called <code>S</code>.<wbr/></li>
18496 <li>Find the minimum frame durations for each stream in <code>S</code>,<wbr/> by looking
18497 it up in <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> using <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>
18498 (with its respective size/<wbr/>format).<wbr/> Let this set of frame durations be
18499 called <code>F</code>.<wbr/></li>
18500 <li>For any given request <code>R</code>,<wbr/> the minimum frame duration allowed
18501 for <code>R</code> is the maximum out of all values in <code>F</code>.<wbr/> Let the streams
18502 used in <code>R</code> be called <code>S_<wbr/>r</code>.<wbr/></li>
18504 <p>If none of the streams in <code>S_<wbr/>r</code> have a stall time (listed in <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a>
18505 using its respective size/<wbr/>format),<wbr/> then the frame duration in <code>F</code>
18506 determines the steady state frame rate that the application will get
18507 if it uses <code>R</code> as a repeating request.<wbr/> Let this special kind of
18508 request be called <code>Rsimple</code>.<wbr/></p>
18509 <p>A repeating request <code>Rsimple</code> can be <em>occasionally</em> interleaved
18510 by a single capture of a new request <code>Rstall</code> (which has at least
18511 one in-use stream with a non-0 stall time) and if <code>Rstall</code> has the
18512 same minimum frame duration this will not cause a frame rate loss
18513 if all buffers from the previous <code>Rstall</code> have already been
18514 delivered.<wbr/></p>
18515 <p>For more details about stalling,<wbr/> see
18516 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a>.<wbr/></p>
18517 <p>This control is only effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is set to
18518 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
18522 <tr class="entries_header">
18523 <th class="th_details" colspan="5">HAL Implementation Details</th>
18525 <tr class="entry_cont">
18526 <td class="entry_details" colspan="5">
18527 <p>For more details about stalling,<wbr/> see
18528 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a>.<wbr/></p>
18532 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18533 <!-- end of entry -->
18536 <tr class="entry" id="controls_android.sensor.sensitivity">
18537 <td class="entry_name
18539 android.<wbr/>sensor.<wbr/>sensitivity
18541 <td class="entry_type">
18542 <span class="entry_type_name">int32</span>
18544 <span class="entry_type_visibility"> [public]</span>
18547 <span class="entry_type_hwlevel">[full] </span>
18552 </td> <!-- entry_type -->
18554 <td class="entry_description">
18555 <p>The amount of gain applied to sensor data
18556 before processing.<wbr/></p>
18559 <td class="entry_units">
18560 ISO arithmetic units
18563 <td class="entry_range">
18564 <p><a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a></p>
18567 <td class="entry_tags">
18568 <ul class="entry_tags">
18569 <li><a href="#tag_V1">V1</a></li>
18574 <tr class="entries_header">
18575 <th class="th_details" colspan="5">Details</th>
18577 <tr class="entry_cont">
18578 <td class="entry_details" colspan="5">
18579 <p>The sensitivity is the standard ISO sensitivity value,<wbr/>
18580 as defined in ISO 12232:2006.<wbr/></p>
18581 <p>The sensitivity must be within <a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a>,<wbr/> and
18582 if if it less than <a href="#static_android.sensor.maxAnalogSensitivity">android.<wbr/>sensor.<wbr/>max<wbr/>Analog<wbr/>Sensitivity</a>,<wbr/> the camera device
18583 is guaranteed to use only analog amplification for applying the gain.<wbr/></p>
18584 <p>If the camera device cannot apply the exact sensitivity
18585 requested,<wbr/> it will reduce the gain to the nearest supported
18586 value.<wbr/> The final sensitivity used will be available in the
18587 output capture result.<wbr/></p>
18588 <p>This control is only effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is set to
18589 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
18593 <tr class="entries_header">
18594 <th class="th_details" colspan="5">HAL Implementation Details</th>
18596 <tr class="entry_cont">
18597 <td class="entry_details" colspan="5">
18598 <p>ISO 12232:2006 REI method is acceptable.<wbr/></p>
18602 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18603 <!-- end of entry -->
18606 <tr class="entry" id="controls_android.sensor.testPatternData">
18607 <td class="entry_name
18609 android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data
18611 <td class="entry_type">
18612 <span class="entry_type_name">int32</span>
18613 <span class="entry_type_container">x</span>
18615 <span class="entry_type_array">
18618 <span class="entry_type_visibility"> [public]</span>
18625 </td> <!-- entry_type -->
18627 <td class="entry_description">
18628 <p>A pixel <code>[R,<wbr/> G_<wbr/>even,<wbr/> G_<wbr/>odd,<wbr/> B]</code> that supplies the test pattern
18629 when <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a> is SOLID_<wbr/>COLOR.<wbr/></p>
18632 <td class="entry_units">
18635 <td class="entry_range">
18638 <td class="entry_tags">
18642 <tr class="entries_header">
18643 <th class="th_details" colspan="5">Details</th>
18645 <tr class="entry_cont">
18646 <td class="entry_details" colspan="5">
18647 <p>Each color channel is treated as an unsigned 32-bit integer.<wbr/>
18648 The camera device then uses the most significant X bits
18649 that correspond to how many bits are in its Bayer raw sensor
18651 <p>For example,<wbr/> a sensor with RAW10 Bayer output would use the
18652 10 most significant bits from each color channel.<wbr/></p>
18656 <tr class="entries_header">
18657 <th class="th_details" colspan="5">HAL Implementation Details</th>
18659 <tr class="entry_cont">
18660 <td class="entry_details" colspan="5">
18665 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18666 <!-- end of entry -->
18669 <tr class="entry" id="controls_android.sensor.testPatternMode">
18670 <td class="entry_name
18672 android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode
18674 <td class="entry_type">
18675 <span class="entry_type_name entry_type_name_enum">int32</span>
18677 <span class="entry_type_visibility"> [public]</span>
18683 <ul class="entry_type_enum">
18685 <span class="entry_type_enum_name">OFF</span>
18686 <span class="entry_type_enum_notes"><p>No test pattern mode is used,<wbr/> and the camera
18687 device returns captures from the image sensor.<wbr/></p>
18688 <p>This is the default if the key is not set.<wbr/></p></span>
18691 <span class="entry_type_enum_name">SOLID_COLOR</span>
18692 <span class="entry_type_enum_notes"><p>Each pixel in <code>[R,<wbr/> G_<wbr/>even,<wbr/> G_<wbr/>odd,<wbr/> B]</code> is replaced by its
18693 respective color channel provided in
18694 <a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a>.<wbr/></p>
18695 <p>For example:</p>
18696 <pre><code>android.<wbr/>testPatternData = [0,<wbr/> 0xFFFFFFFF,<wbr/> 0xFFFFFFFF,<wbr/> 0]
18698 <p>All green pixels are 100% green.<wbr/> All red/<wbr/>blue pixels are black.<wbr/></p>
18699 <pre><code>android.<wbr/>testPatternData = [0xFFFFFFFF,<wbr/> 0,<wbr/> 0xFFFFFFFF,<wbr/> 0]
18701 <p>All red pixels are 100% red.<wbr/> Only the odd green pixels
18702 are 100% green.<wbr/> All blue pixels are 100% black.<wbr/></p></span>
18705 <span class="entry_type_enum_name">COLOR_BARS</span>
18706 <span class="entry_type_enum_notes"><p>All pixel data is replaced with an 8-bar color pattern.<wbr/></p>
18707 <p>The vertical bars (left-to-right) are as follows:</p>
18709 <li>100% white</li>
18718 <p>In general the image would look like the following:</p>
18719 <pre><code>W Y C G M R B K
18724 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
18725 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
18726 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
18728 (B = Blue,<wbr/> K = Black)
18730 <p>Each bar should take up 1/<wbr/>8 of the sensor pixel array width.<wbr/>
18731 When this is not possible,<wbr/> the bar size should be rounded
18732 down to the nearest integer and the pattern can repeat
18733 on the right side.<wbr/></p>
18734 <p>Each bar's height must always take up the full sensor
18735 pixel array height.<wbr/></p>
18736 <p>Each pixel in this test pattern must be set to either
18737 0% intensity or 100% intensity.<wbr/></p></span>
18740 <span class="entry_type_enum_name">COLOR_BARS_FADE_TO_GRAY</span>
18741 <span class="entry_type_enum_notes"><p>The test pattern is similar to COLOR_<wbr/>BARS,<wbr/> except that
18742 each bar should start at its specified color at the top,<wbr/>
18743 and fade to gray at the bottom.<wbr/></p>
18744 <p>Furthermore each bar is further subdivided into a left and
18745 right half.<wbr/> The left half should have a smooth gradient,<wbr/>
18746 and the right half should have a quantized gradient.<wbr/></p>
18747 <p>In particular,<wbr/> the right half's should consist of blocks of the
18748 same color for 1/<wbr/>16th active sensor pixel array width.<wbr/></p>
18749 <p>The least significant bits in the quantized gradient should
18750 be copied from the most significant bits of the smooth gradient.<wbr/></p>
18751 <p>The height of each bar should always be a multiple of 128.<wbr/>
18752 When this is not the case,<wbr/> the pattern should repeat at the bottom
18753 of the image.<wbr/></p></span>
18756 <span class="entry_type_enum_name">PN9</span>
18757 <span class="entry_type_enum_notes"><p>All pixel data is replaced by a pseudo-random sequence
18758 generated from a PN9 512-bit sequence (typically implemented
18759 in hardware with a linear feedback shift register).<wbr/></p>
18760 <p>The generator should be reset at the beginning of each frame,<wbr/>
18761 and thus each subsequent raw frame with this test pattern should
18762 be exactly the same as the last.<wbr/></p></span>
18765 <span class="entry_type_enum_name">CUSTOM1</span>
18766 <span class="entry_type_enum_value">256</span>
18767 <span class="entry_type_enum_notes"><p>The first custom test pattern.<wbr/> All custom patterns that are
18768 available only on this camera device are at least this numeric
18770 <p>All of the custom test patterns will be static
18771 (that is the raw image must not vary from frame to frame).<wbr/></p></span>
18775 </td> <!-- entry_type -->
18777 <td class="entry_description">
18778 <p>When enabled,<wbr/> the sensor sends a test pattern instead of
18779 doing a real exposure from the camera.<wbr/></p>
18782 <td class="entry_units">
18785 <td class="entry_range">
18786 <p><a href="#static_android.sensor.availableTestPatternModes">android.<wbr/>sensor.<wbr/>available<wbr/>Test<wbr/>Pattern<wbr/>Modes</a></p>
18789 <td class="entry_tags">
18793 <tr class="entries_header">
18794 <th class="th_details" colspan="5">Details</th>
18796 <tr class="entry_cont">
18797 <td class="entry_details" colspan="5">
18798 <p>When a test pattern is enabled,<wbr/> all manual sensor controls specified
18799 by android.<wbr/>sensor.<wbr/>* will be ignored.<wbr/> All other controls should
18800 work as normal.<wbr/></p>
18801 <p>For example,<wbr/> if manual flash is enabled,<wbr/> flash firing should still
18802 occur (and that the test pattern remain unmodified,<wbr/> since the flash
18803 would not actually affect it).<wbr/></p>
18804 <p>Defaults to OFF.<wbr/></p>
18808 <tr class="entries_header">
18809 <th class="th_details" colspan="5">HAL Implementation Details</th>
18811 <tr class="entry_cont">
18812 <td class="entry_details" colspan="5">
18813 <p>All test patterns are specified in the Bayer domain.<wbr/></p>
18814 <p>The HAL may choose to substitute test patterns from the sensor
18815 with test patterns from on-device memory.<wbr/> In that case,<wbr/> it should be
18816 indistinguishable to the ISP whether the data came from the
18817 sensor interconnect bus (such as CSI2) or memory.<wbr/></p>
18821 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18822 <!-- end of entry -->
18826 <!-- end of kind -->
18828 <tr><td colspan="6" class="kind">static</td></tr>
18830 <thead class="entries_header">
18832 <th class="th_name">Property Name</th>
18833 <th class="th_type">Type</th>
18834 <th class="th_description">Description</th>
18835 <th class="th_units">Units</th>
18836 <th class="th_range">Range</th>
18837 <th class="th_tags">Tags</th>
18854 <tr class="entry" id="static_android.sensor.info.activeArraySize">
18855 <td class="entry_name
18857 android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
18859 <td class="entry_type">
18860 <span class="entry_type_name">int32</span>
18861 <span class="entry_type_container">x</span>
18863 <span class="entry_type_array">
18866 <span class="entry_type_visibility"> [public as rectangle]</span>
18869 <span class="entry_type_hwlevel">[legacy] </span>
18872 <div class="entry_type_notes">Four ints defining the active pixel rectangle</div>
18875 </td> <!-- entry_type -->
18877 <td class="entry_description">
18878 <p>The area of the image sensor which corresponds to active pixels after any geometric
18879 distortion correction has been applied.<wbr/></p>
18882 <td class="entry_units">
18883 Pixel coordinates on the image sensor
18886 <td class="entry_range">
18889 <td class="entry_tags">
18890 <ul class="entry_tags">
18891 <li><a href="#tag_RAW">RAW</a></li>
18896 <tr class="entries_header">
18897 <th class="th_details" colspan="5">Details</th>
18899 <tr class="entry_cont">
18900 <td class="entry_details" colspan="5">
18901 <p>This is the rectangle representing the size of the active region of the sensor (i.<wbr/>e.<wbr/>
18902 the region that actually receives light from the scene) after any geometric correction
18903 has been applied,<wbr/> and should be treated as the maximum size in pixels of any of the
18904 image output formats aside from the raw formats.<wbr/></p>
18905 <p>This rectangle is defined relative to the full pixel array; (0,<wbr/>0) is the top-left of
18906 the full pixel array,<wbr/> and the size of the full pixel array is given by
18907 <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
18908 <p>The coordinate system for most other keys that list pixel coordinates,<wbr/> including
18909 <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>,<wbr/> is defined relative to the active array rectangle given in
18910 this field,<wbr/> with <code>(0,<wbr/> 0)</code> being the top-left of this rectangle.<wbr/></p>
18911 <p>The active array may be smaller than the full pixel array,<wbr/> since the full array may
18912 include black calibration pixels or other inactive regions,<wbr/> and geometric correction
18913 resulting in scaling or cropping may have been applied.<wbr/></p>
18917 <tr class="entries_header">
18918 <th class="th_details" colspan="5">HAL Implementation Details</th>
18920 <tr class="entry_cont">
18921 <td class="entry_details" colspan="5">
18922 <p>This array contains <code>(xmin,<wbr/> ymin,<wbr/> width,<wbr/> height)</code>.<wbr/> The <code>(xmin,<wbr/> ymin)</code> must be
18923 >= <code>(0,<wbr/>0)</code>.<wbr/>
18924 The <code>(width,<wbr/> height)</code> must be <= <code><a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a></code>.<wbr/></p>
18928 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18929 <!-- end of entry -->
18932 <tr class="entry" id="static_android.sensor.info.sensitivityRange">
18933 <td class="entry_name
18935 android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range
18937 <td class="entry_type">
18938 <span class="entry_type_name">int32</span>
18939 <span class="entry_type_container">x</span>
18941 <span class="entry_type_array">
18944 <span class="entry_type_visibility"> [public as rangeInt]</span>
18947 <span class="entry_type_hwlevel">[full] </span>
18950 <div class="entry_type_notes">Range of supported sensitivities</div>
18953 </td> <!-- entry_type -->
18955 <td class="entry_description">
18956 <p>Range of sensitivities for <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> supported by this
18957 camera device.<wbr/></p>
18960 <td class="entry_units">
18963 <td class="entry_range">
18964 <p>Min <= 100,<wbr/> Max >= 800</p>
18967 <td class="entry_tags">
18968 <ul class="entry_tags">
18969 <li><a href="#tag_BC">BC</a></li>
18970 <li><a href="#tag_V1">V1</a></li>
18975 <tr class="entries_header">
18976 <th class="th_details" colspan="5">Details</th>
18978 <tr class="entry_cont">
18979 <td class="entry_details" colspan="5">
18980 <p>The values are the standard ISO sensitivity values,<wbr/>
18981 as defined in ISO 12232:2006.<wbr/></p>
18986 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18987 <!-- end of entry -->
18990 <tr class="entry" id="static_android.sensor.info.colorFilterArrangement">
18991 <td class="entry_name
18993 android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement
18995 <td class="entry_type">
18996 <span class="entry_type_name entry_type_name_enum">byte</span>
18998 <span class="entry_type_visibility"> [public]</span>
19001 <span class="entry_type_hwlevel">[full] </span>
19005 <ul class="entry_type_enum">
19007 <span class="entry_type_enum_name">RGGB</span>
19010 <span class="entry_type_enum_name">GRBG</span>
19013 <span class="entry_type_enum_name">GBRG</span>
19016 <span class="entry_type_enum_name">BGGR</span>
19019 <span class="entry_type_enum_name">RGB</span>
19020 <span class="entry_type_enum_notes"><p>Sensor is not Bayer; output has 3 16-bit
19021 values for each pixel,<wbr/> instead of just 1 16-bit value
19022 per pixel.<wbr/></p></span>
19026 </td> <!-- entry_type -->
19028 <td class="entry_description">
19029 <p>The arrangement of color filters on sensor;
19030 represents the colors in the top-left 2x2 section of
19031 the sensor,<wbr/> in reading order.<wbr/></p>
19034 <td class="entry_units">
19037 <td class="entry_range">
19040 <td class="entry_tags">
19041 <ul class="entry_tags">
19042 <li><a href="#tag_RAW">RAW</a></li>
19049 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19050 <!-- end of entry -->
19053 <tr class="entry" id="static_android.sensor.info.exposureTimeRange">
19054 <td class="entry_name
19056 android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range
19058 <td class="entry_type">
19059 <span class="entry_type_name">int64</span>
19060 <span class="entry_type_container">x</span>
19062 <span class="entry_type_array">
19065 <span class="entry_type_visibility"> [public as rangeLong]</span>
19068 <span class="entry_type_hwlevel">[full] </span>
19071 <div class="entry_type_notes">nanoseconds</div>
19074 </td> <!-- entry_type -->
19076 <td class="entry_description">
19077 <p>The range of image exposure times for <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a> supported
19078 by this camera device.<wbr/></p>
19081 <td class="entry_units">
19085 <td class="entry_range">
19086 <p>The minimum exposure time will be less than 100 us.<wbr/> For FULL
19087 capability devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/>
19088 the maximum exposure time will be greater than 100ms.<wbr/></p>
19091 <td class="entry_tags">
19092 <ul class="entry_tags">
19093 <li><a href="#tag_V1">V1</a></li>
19099 <tr class="entries_header">
19100 <th class="th_details" colspan="5">HAL Implementation Details</th>
19102 <tr class="entry_cont">
19103 <td class="entry_details" colspan="5">
19104 <p>For FULL capability devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/>
19105 The maximum of the range SHOULD be at least 1 second (1e9),<wbr/> MUST be at least
19110 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19111 <!-- end of entry -->
19114 <tr class="entry" id="static_android.sensor.info.maxFrameDuration">
19115 <td class="entry_name
19117 android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration
19119 <td class="entry_type">
19120 <span class="entry_type_name">int64</span>
19122 <span class="entry_type_visibility"> [public]</span>
19125 <span class="entry_type_hwlevel">[full] </span>
19130 </td> <!-- entry_type -->
19132 <td class="entry_description">
19133 <p>The maximum possible frame duration (minimum frame rate) for
19134 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> that is supported this camera device.<wbr/></p>
19137 <td class="entry_units">
19141 <td class="entry_range">
19142 <p>For FULL capability devices
19143 (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/> at least 100ms.<wbr/></p>
19146 <td class="entry_tags">
19147 <ul class="entry_tags">
19148 <li><a href="#tag_V1">V1</a></li>
19153 <tr class="entries_header">
19154 <th class="th_details" colspan="5">Details</th>
19156 <tr class="entry_cont">
19157 <td class="entry_details" colspan="5">
19158 <p>Attempting to use frame durations beyond the maximum will result in the frame
19159 duration being clipped to the maximum.<wbr/> See that control for a full definition of frame
19160 durations.<wbr/></p>
19161 <p>Refer to <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>
19162 for the minimum frame duration values.<wbr/></p>
19166 <tr class="entries_header">
19167 <th class="th_details" colspan="5">HAL Implementation Details</th>
19169 <tr class="entry_cont">
19170 <td class="entry_details" colspan="5">
19171 <p>For FULL capability devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/>
19172 The maximum of the range SHOULD be at least
19173 1 second (1e9),<wbr/> MUST be at least 100ms (100e6).<wbr/></p>
19174 <p><a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a> must be greater or
19175 equal to the <a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a> max
19176 value (since exposure time overrides frame duration).<wbr/></p>
19177 <p>Available minimum frame durations for JPEG must be no greater
19178 than that of the YUV_<wbr/>420_<wbr/>888/<wbr/>IMPLEMENTATION_<wbr/>DEFINED
19179 minimum frame durations (for that respective size).<wbr/></p>
19180 <p>Since JPEG processing is considered offline and can take longer than
19181 a single uncompressed capture,<wbr/> refer to
19182 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a>
19183 for details about encoding this scenario.<wbr/></p>
19187 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19188 <!-- end of entry -->
19191 <tr class="entry" id="static_android.sensor.info.physicalSize">
19192 <td class="entry_name
19194 android.<wbr/>sensor.<wbr/>info.<wbr/>physical<wbr/>Size
19196 <td class="entry_type">
19197 <span class="entry_type_name">float</span>
19198 <span class="entry_type_container">x</span>
19200 <span class="entry_type_array">
19203 <span class="entry_type_visibility"> [public as sizeF]</span>
19206 <span class="entry_type_hwlevel">[legacy] </span>
19209 <div class="entry_type_notes">width x height</div>
19212 </td> <!-- entry_type -->
19214 <td class="entry_description">
19215 <p>The physical dimensions of the full pixel
19219 <td class="entry_units">
19223 <td class="entry_range">
19226 <td class="entry_tags">
19227 <ul class="entry_tags">
19228 <li><a href="#tag_V1">V1</a></li>
19229 <li><a href="#tag_BC">BC</a></li>
19234 <tr class="entries_header">
19235 <th class="th_details" colspan="5">Details</th>
19237 <tr class="entry_cont">
19238 <td class="entry_details" colspan="5">
19239 <p>This is the physical size of the sensor pixel
19240 array defined by <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
19244 <tr class="entries_header">
19245 <th class="th_details" colspan="5">HAL Implementation Details</th>
19247 <tr class="entry_cont">
19248 <td class="entry_details" colspan="5">
19249 <p>Needed for FOV calculation for old API</p>
19253 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19254 <!-- end of entry -->
19257 <tr class="entry" id="static_android.sensor.info.pixelArraySize">
19258 <td class="entry_name
19260 android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size
19262 <td class="entry_type">
19263 <span class="entry_type_name">int32</span>
19264 <span class="entry_type_container">x</span>
19266 <span class="entry_type_array">
19269 <span class="entry_type_visibility"> [public as size]</span>
19272 <span class="entry_type_hwlevel">[legacy] </span>
19277 </td> <!-- entry_type -->
19279 <td class="entry_description">
19280 <p>Dimensions of the full pixel array,<wbr/> possibly
19281 including black calibration pixels.<wbr/></p>
19284 <td class="entry_units">
19288 <td class="entry_range">
19291 <td class="entry_tags">
19292 <ul class="entry_tags">
19293 <li><a href="#tag_RAW">RAW</a></li>
19294 <li><a href="#tag_BC">BC</a></li>
19299 <tr class="entries_header">
19300 <th class="th_details" colspan="5">Details</th>
19302 <tr class="entry_cont">
19303 <td class="entry_details" colspan="5">
19304 <p>The pixel count of the full pixel array of the image sensor,<wbr/> which covers
19305 <a href="#static_android.sensor.info.physicalSize">android.<wbr/>sensor.<wbr/>info.<wbr/>physical<wbr/>Size</a> area.<wbr/> This represents the full pixel dimensions of
19306 the raw buffers produced by this sensor.<wbr/></p>
19307 <p>If a camera device supports raw sensor formats,<wbr/> either this or
19308 <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a> is the maximum dimensions for the raw
19309 output formats listed in <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> (this depends on
19310 whether or not the image sensor returns buffers containing pixels that are not
19311 part of the active array region for blacklevel calibration or other purposes).<wbr/></p>
19312 <p>Some parts of the full pixel array may not receive light from the scene,<wbr/>
19313 or be otherwise inactive.<wbr/> The <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a> key
19314 defines the rectangle of active pixels that will be included in processed image
19320 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19321 <!-- end of entry -->
19324 <tr class="entry" id="static_android.sensor.info.whiteLevel">
19325 <td class="entry_name
19327 android.<wbr/>sensor.<wbr/>info.<wbr/>white<wbr/>Level
19329 <td class="entry_type">
19330 <span class="entry_type_name">int32</span>
19332 <span class="entry_type_visibility"> [public]</span>
19339 </td> <!-- entry_type -->
19341 <td class="entry_description">
19342 <p>Maximum raw value output by sensor.<wbr/></p>
19345 <td class="entry_units">
19348 <td class="entry_range">
19349 <p>> 255 (8-bit output)</p>
19352 <td class="entry_tags">
19353 <ul class="entry_tags">
19354 <li><a href="#tag_RAW">RAW</a></li>
19359 <tr class="entries_header">
19360 <th class="th_details" colspan="5">Details</th>
19362 <tr class="entry_cont">
19363 <td class="entry_details" colspan="5">
19364 <p>This specifies the fully-saturated encoding level for the raw
19365 sample values from the sensor.<wbr/> This is typically caused by the
19366 sensor becoming highly non-linear or clipping.<wbr/> The minimum for
19367 each channel is specified by the offset in the
19368 <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> key.<wbr/></p>
19369 <p>The white level is typically determined either by sensor bit depth
19370 (8-14 bits is expected),<wbr/> or by the point where the sensor response
19371 becomes too non-linear to be useful.<wbr/> The default value for this is
19372 maximum representable value for a 16-bit raw sample (2^16 - 1).<wbr/></p>
19373 <p>The white level values of captured images may vary for different
19374 capture settings (e.<wbr/>g.,<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>).<wbr/> This key
19375 represents a coarse approximation for such case.<wbr/> It is recommended
19376 to use <a href="#dynamic_android.sensor.dynamicWhiteLevel">android.<wbr/>sensor.<wbr/>dynamic<wbr/>White<wbr/>Level</a> for captures when supported
19377 by the camera device,<wbr/> which provides more accurate white level values.<wbr/></p>
19381 <tr class="entries_header">
19382 <th class="th_details" colspan="5">HAL Implementation Details</th>
19384 <tr class="entry_cont">
19385 <td class="entry_details" colspan="5">
19386 <p>The full bit depth of the sensor must be available in the raw data,<wbr/>
19387 so the value for linear sensors should not be significantly lower
19388 than maximum raw value supported,<wbr/> i.<wbr/>e.<wbr/> 2^(sensor bits per pixel).<wbr/></p>
19392 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19393 <!-- end of entry -->
19396 <tr class="entry" id="static_android.sensor.info.timestampSource">
19397 <td class="entry_name
19399 android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source
19401 <td class="entry_type">
19402 <span class="entry_type_name entry_type_name_enum">byte</span>
19404 <span class="entry_type_visibility"> [public]</span>
19407 <span class="entry_type_hwlevel">[legacy] </span>
19411 <ul class="entry_type_enum">
19413 <span class="entry_type_enum_name">UNKNOWN</span>
19414 <span class="entry_type_enum_notes"><p>Timestamps from <a href="#dynamic_android.sensor.timestamp">android.<wbr/>sensor.<wbr/>timestamp</a> are in nanoseconds and monotonic,<wbr/>
19415 but can not be compared to timestamps from other subsystems
19416 (e.<wbr/>g.<wbr/> accelerometer,<wbr/> gyro etc.<wbr/>),<wbr/> or other instances of the same or different
19417 camera devices in the same system.<wbr/> Timestamps between streams and results for
19418 a single camera instance are comparable,<wbr/> and the timestamps for all buffers
19419 and the result metadata generated by a single capture are identical.<wbr/></p></span>
19422 <span class="entry_type_enum_name">REALTIME</span>
19423 <span class="entry_type_enum_notes"><p>Timestamps from <a href="#dynamic_android.sensor.timestamp">android.<wbr/>sensor.<wbr/>timestamp</a> are in the same timebase as
19424 <a href="https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtimeNanos">SystemClock#elapsedRealtimeNanos</a>,<wbr/>
19425 and they can be compared to other timestamps using that base.<wbr/></p></span>
19429 </td> <!-- entry_type -->
19431 <td class="entry_description">
19432 <p>The time base source for sensor capture start timestamps.<wbr/></p>
19435 <td class="entry_units">
19438 <td class="entry_range">
19441 <td class="entry_tags">
19442 <ul class="entry_tags">
19443 <li><a href="#tag_V1">V1</a></li>
19448 <tr class="entries_header">
19449 <th class="th_details" colspan="5">Details</th>
19451 <tr class="entry_cont">
19452 <td class="entry_details" colspan="5">
19453 <p>The timestamps provided for captures are always in nanoseconds and monotonic,<wbr/> but
19454 may not based on a time source that can be compared to other system time sources.<wbr/></p>
19455 <p>This characteristic defines the source for the timestamps,<wbr/> and therefore whether they
19456 can be compared against other system time sources/<wbr/>timestamps.<wbr/></p>
19460 <tr class="entries_header">
19461 <th class="th_details" colspan="5">HAL Implementation Details</th>
19463 <tr class="entry_cont">
19464 <td class="entry_details" colspan="5">
19465 <p>For camera devices implement UNKNOWN,<wbr/> the camera framework expects that the timestamp
19466 source to be SYSTEM_<wbr/>TIME_<wbr/>MONOTONIC.<wbr/> For camera devices implement REALTIME,<wbr/> the camera
19467 framework expects that the timestamp source to be SYSTEM_<wbr/>TIME_<wbr/>BOOTTIME.<wbr/> See
19468 system/<wbr/>core/<wbr/>include/<wbr/>utils/<wbr/>Timers.<wbr/>h for the definition of SYSTEM_<wbr/>TIME_<wbr/>MONOTONIC and
19469 SYSTEM_<wbr/>TIME_<wbr/>BOOTTIME.<wbr/> Note that HAL must follow above expectation; otherwise video
19470 recording might suffer unexpected behavior.<wbr/></p>
19471 <p>Also,<wbr/> camera devices implements REALTIME must pass the ITS sensor fusion test which
19472 tests the alignment between camera timestamps and gyro sensor timestamps.<wbr/></p>
19476 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19477 <!-- end of entry -->
19480 <tr class="entry" id="static_android.sensor.info.lensShadingApplied">
19481 <td class="entry_name
19483 android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied
19485 <td class="entry_type">
19486 <span class="entry_type_name entry_type_name_enum">byte</span>
19488 <span class="entry_type_visibility"> [public as boolean]</span>
19494 <ul class="entry_type_enum">
19496 <span class="entry_type_enum_name">FALSE</span>
19499 <span class="entry_type_enum_name">TRUE</span>
19503 </td> <!-- entry_type -->
19505 <td class="entry_description">
19506 <p>Whether the RAW images output from this camera device are subject to
19507 lens shading correction.<wbr/></p>
19510 <td class="entry_units">
19513 <td class="entry_range">
19516 <td class="entry_tags">
19520 <tr class="entries_header">
19521 <th class="th_details" colspan="5">Details</th>
19523 <tr class="entry_cont">
19524 <td class="entry_details" colspan="5">
19525 <p>If TRUE,<wbr/> all images produced by the camera device in the RAW image formats will
19526 have lens shading correction already applied to it.<wbr/> If FALSE,<wbr/> the images will
19527 not be adjusted for lens shading correction.<wbr/>
19528 See <a href="#static_android.request.maxNumOutputRaw">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Raw</a> for a list of RAW image formats.<wbr/></p>
19529 <p>This key will be <code>null</code> for all devices do not report this information.<wbr/>
19530 Devices with RAW capability will always report this information in this key.<wbr/></p>
19535 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19536 <!-- end of entry -->
19539 <tr class="entry" id="static_android.sensor.info.preCorrectionActiveArraySize">
19540 <td class="entry_name
19542 android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size
19544 <td class="entry_type">
19545 <span class="entry_type_name">int32</span>
19546 <span class="entry_type_container">x</span>
19548 <span class="entry_type_array">
19551 <span class="entry_type_visibility"> [public as rectangle]</span>
19554 <span class="entry_type_hwlevel">[legacy] </span>
19557 <div class="entry_type_notes">Four ints defining the active pixel rectangle</div>
19560 </td> <!-- entry_type -->
19562 <td class="entry_description">
19563 <p>The area of the image sensor which corresponds to active pixels prior to the
19564 application of any geometric distortion correction.<wbr/></p>
19567 <td class="entry_units">
19568 Pixel coordinates on the image sensor
19571 <td class="entry_range">
19574 <td class="entry_tags">
19575 <ul class="entry_tags">
19576 <li><a href="#tag_RAW">RAW</a></li>
19581 <tr class="entries_header">
19582 <th class="th_details" colspan="5">Details</th>
19584 <tr class="entry_cont">
19585 <td class="entry_details" colspan="5">
19586 <p>This is the rectangle representing the size of the active region of the sensor (i.<wbr/>e.<wbr/>
19587 the region that actually receives light from the scene) before any geometric correction
19588 has been applied,<wbr/> and should be treated as the active region rectangle for any of the
19589 raw formats.<wbr/> All metadata associated with raw processing (e.<wbr/>g.<wbr/> the lens shading
19590 correction map,<wbr/> and radial distortion fields) treats the top,<wbr/> left of this rectangle as
19591 the origin,<wbr/> (0,<wbr/>0).<wbr/></p>
19592 <p>The size of this region determines the maximum field of view and the maximum number of
19593 pixels that an image from this sensor can contain,<wbr/> prior to the application of
19594 geometric distortion correction.<wbr/> The effective maximum pixel dimensions of a
19595 post-distortion-corrected image is given by the <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>
19596 field,<wbr/> and the effective maximum field of view for a post-distortion-corrected image
19597 can be calculated by applying the geometric distortion correction fields to this
19598 rectangle,<wbr/> and cropping to the rectangle given in <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
19599 <p>E.<wbr/>g.<wbr/> to calculate position of a pixel,<wbr/> (x,<wbr/>y),<wbr/> in a processed YUV output image with the
19600 dimensions in <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> given the position of a pixel,<wbr/>
19601 (x',<wbr/> y'),<wbr/> in the raw pixel array with dimensions give in
19602 <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>:</p>
19604 <li>Choose a pixel (x',<wbr/> y') within the active array region of the raw buffer given in
19605 <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> otherwise this pixel is considered
19606 to be outside of the FOV,<wbr/> and will not be shown in the processed output image.<wbr/></li>
19607 <li>Apply geometric distortion correction to get the post-distortion pixel coordinate,<wbr/>
19608 (x_<wbr/>i,<wbr/> y_<wbr/>i).<wbr/> When applying geometric correction metadata,<wbr/> note that metadata for raw
19609 buffers is defined relative to the top,<wbr/> left of the
19610 <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a> rectangle.<wbr/></li>
19611 <li>If the resulting corrected pixel coordinate is within the region given in
19612 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> then the position of this pixel in the
19613 processed output image buffer is <code>(x_<wbr/>i - activeArray.<wbr/>left,<wbr/> y_<wbr/>i - activeArray.<wbr/>top)</code>,<wbr/>
19614 when the top,<wbr/> left coordinate of that buffer is treated as (0,<wbr/> 0).<wbr/></li>
19616 <p>Thus,<wbr/> for pixel x',<wbr/>y' = (25,<wbr/> 25) on a sensor where <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>
19617 is (100,<wbr/>100),<wbr/> <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a> is (10,<wbr/> 10,<wbr/> 100,<wbr/> 100),<wbr/>
19618 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> is (20,<wbr/> 20,<wbr/> 80,<wbr/> 80),<wbr/> and the geometric distortion
19619 correction doesn't change the pixel coordinate,<wbr/> the resulting pixel selected in
19620 pixel coordinates would be x,<wbr/>y = (25,<wbr/> 25) relative to the top,<wbr/>left of the raw buffer
19621 with dimensions given in <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>,<wbr/> and would be (5,<wbr/> 5)
19622 relative to the top,<wbr/>left of post-processed YUV output buffer with dimensions given in
19623 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
19624 <p>The currently supported fields that correct for geometric distortion are:</p>
19626 <li><a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a>.<wbr/></li>
19628 <p>If all of the geometric distortion fields are no-ops,<wbr/> this rectangle will be the same
19629 as the post-distortion-corrected rectangle given in
19630 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
19631 <p>This rectangle is defined relative to the full pixel array; (0,<wbr/>0) is the top-left of
19632 the full pixel array,<wbr/> and the size of the full pixel array is given by
19633 <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
19634 <p>The pre-correction active array may be smaller than the full pixel array,<wbr/> since the
19635 full array may include black calibration pixels or other inactive regions.<wbr/></p>
19639 <tr class="entries_header">
19640 <th class="th_details" colspan="5">HAL Implementation Details</th>
19642 <tr class="entry_cont">
19643 <td class="entry_details" colspan="5">
19644 <p>This array contains <code>(xmin,<wbr/> ymin,<wbr/> width,<wbr/> height)</code>.<wbr/> The <code>(xmin,<wbr/> ymin)</code> must be
19645 >= <code>(0,<wbr/>0)</code>.<wbr/>
19646 The <code>(width,<wbr/> height)</code> must be <= <code><a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a></code>.<wbr/></p>
19647 <p>If omitted by the HAL implementation,<wbr/> the camera framework will assume that this is
19648 the same as the post-correction active array region given in
19649 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
19653 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19654 <!-- end of entry -->
19660 <tr class="entry" id="static_android.sensor.referenceIlluminant1">
19661 <td class="entry_name
19663 android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1
19665 <td class="entry_type">
19666 <span class="entry_type_name entry_type_name_enum">byte</span>
19668 <span class="entry_type_visibility"> [public]</span>
19674 <ul class="entry_type_enum">
19676 <span class="entry_type_enum_name">DAYLIGHT</span>
19677 <span class="entry_type_enum_value">1</span>
19680 <span class="entry_type_enum_name">FLUORESCENT</span>
19681 <span class="entry_type_enum_value">2</span>
19684 <span class="entry_type_enum_name">TUNGSTEN</span>
19685 <span class="entry_type_enum_value">3</span>
19686 <span class="entry_type_enum_notes"><p>Incandescent light</p></span>
19689 <span class="entry_type_enum_name">FLASH</span>
19690 <span class="entry_type_enum_value">4</span>
19693 <span class="entry_type_enum_name">FINE_WEATHER</span>
19694 <span class="entry_type_enum_value">9</span>
19697 <span class="entry_type_enum_name">CLOUDY_WEATHER</span>
19698 <span class="entry_type_enum_value">10</span>
19701 <span class="entry_type_enum_name">SHADE</span>
19702 <span class="entry_type_enum_value">11</span>
19705 <span class="entry_type_enum_name">DAYLIGHT_FLUORESCENT</span>
19706 <span class="entry_type_enum_value">12</span>
19707 <span class="entry_type_enum_notes"><p>D 5700 - 7100K</p></span>
19710 <span class="entry_type_enum_name">DAY_WHITE_FLUORESCENT</span>
19711 <span class="entry_type_enum_value">13</span>
19712 <span class="entry_type_enum_notes"><p>N 4600 - 5400K</p></span>
19715 <span class="entry_type_enum_name">COOL_WHITE_FLUORESCENT</span>
19716 <span class="entry_type_enum_value">14</span>
19717 <span class="entry_type_enum_notes"><p>W 3900 - 4500K</p></span>
19720 <span class="entry_type_enum_name">WHITE_FLUORESCENT</span>
19721 <span class="entry_type_enum_value">15</span>
19722 <span class="entry_type_enum_notes"><p>WW 3200 - 3700K</p></span>
19725 <span class="entry_type_enum_name">STANDARD_A</span>
19726 <span class="entry_type_enum_value">17</span>
19729 <span class="entry_type_enum_name">STANDARD_B</span>
19730 <span class="entry_type_enum_value">18</span>
19733 <span class="entry_type_enum_name">STANDARD_C</span>
19734 <span class="entry_type_enum_value">19</span>
19737 <span class="entry_type_enum_name">D55</span>
19738 <span class="entry_type_enum_value">20</span>
19741 <span class="entry_type_enum_name">D65</span>
19742 <span class="entry_type_enum_value">21</span>
19745 <span class="entry_type_enum_name">D75</span>
19746 <span class="entry_type_enum_value">22</span>
19749 <span class="entry_type_enum_name">D50</span>
19750 <span class="entry_type_enum_value">23</span>
19753 <span class="entry_type_enum_name">ISO_STUDIO_TUNGSTEN</span>
19754 <span class="entry_type_enum_value">24</span>
19758 </td> <!-- entry_type -->
19760 <td class="entry_description">
19761 <p>The standard reference illuminant used as the scene light source when
19762 calculating the <a href="#static_android.sensor.colorTransform1">android.<wbr/>sensor.<wbr/>color<wbr/>Transform1</a>,<wbr/>
19763 <a href="#static_android.sensor.calibrationTransform1">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform1</a>,<wbr/> and
19764 <a href="#static_android.sensor.forwardMatrix1">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix1</a> matrices.<wbr/></p>
19767 <td class="entry_units">
19770 <td class="entry_range">
19773 <td class="entry_tags">
19774 <ul class="entry_tags">
19775 <li><a href="#tag_RAW">RAW</a></li>
19780 <tr class="entries_header">
19781 <th class="th_details" colspan="5">Details</th>
19783 <tr class="entry_cont">
19784 <td class="entry_details" colspan="5">
19785 <p>The values in this key correspond to the values defined for the
19786 EXIF LightSource tag.<wbr/> These illuminants are standard light sources
19787 that are often used calibrating camera devices.<wbr/></p>
19788 <p>If this key is present,<wbr/> then <a href="#static_android.sensor.colorTransform1">android.<wbr/>sensor.<wbr/>color<wbr/>Transform1</a>,<wbr/>
19789 <a href="#static_android.sensor.calibrationTransform1">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform1</a>,<wbr/> and
19790 <a href="#static_android.sensor.forwardMatrix1">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix1</a> will also be present.<wbr/></p>
19791 <p>Some devices may choose to provide a second set of calibration
19792 information for improved quality,<wbr/> including
19793 <a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a> and its corresponding matrices.<wbr/></p>
19797 <tr class="entries_header">
19798 <th class="th_details" colspan="5">HAL Implementation Details</th>
19800 <tr class="entry_cont">
19801 <td class="entry_details" colspan="5">
19802 <p>The first reference illuminant (<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>)
19803 and corresponding matrices must be present to support the RAW capability
19804 and DNG output.<wbr/></p>
19805 <p>When producing raw images with a color profile that has only been
19806 calibrated against a single light source,<wbr/> it is valid to omit
19807 <a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a> along with the
19808 <a href="#static_android.sensor.colorTransform2">android.<wbr/>sensor.<wbr/>color<wbr/>Transform2</a>,<wbr/> <a href="#static_android.sensor.calibrationTransform2">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform2</a>,<wbr/>
19809 and <a href="#static_android.sensor.forwardMatrix2">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2</a> matrices.<wbr/></p>
19810 <p>If only <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a> is included,<wbr/> it should be
19811 chosen so that it is representative of typical scene lighting.<wbr/> In
19812 general,<wbr/> D50 or DAYLIGHT will be chosen for this case.<wbr/></p>
19813 <p>If both <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a> and
19814 <a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a> are included,<wbr/> they should be
19815 chosen to represent the typical range of scene lighting conditions.<wbr/>
19816 In general,<wbr/> low color temperature illuminant such as Standard-A will
19817 be chosen for the first reference illuminant and a higher color
19818 temperature illuminant such as D65 will be chosen for the second
19819 reference illuminant.<wbr/></p>
19823 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19824 <!-- end of entry -->
19827 <tr class="entry" id="static_android.sensor.referenceIlluminant2">
19828 <td class="entry_name
19830 android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2
19832 <td class="entry_type">
19833 <span class="entry_type_name">byte</span>
19835 <span class="entry_type_visibility"> [public]</span>
19842 </td> <!-- entry_type -->
19844 <td class="entry_description">
19845 <p>The standard reference illuminant used as the scene light source when
19846 calculating the <a href="#static_android.sensor.colorTransform2">android.<wbr/>sensor.<wbr/>color<wbr/>Transform2</a>,<wbr/>
19847 <a href="#static_android.sensor.calibrationTransform2">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform2</a>,<wbr/> and
19848 <a href="#static_android.sensor.forwardMatrix2">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2</a> matrices.<wbr/></p>
19851 <td class="entry_units">
19854 <td class="entry_range">
19855 <p>Any value listed in <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a></p>
19858 <td class="entry_tags">
19859 <ul class="entry_tags">
19860 <li><a href="#tag_RAW">RAW</a></li>
19865 <tr class="entries_header">
19866 <th class="th_details" colspan="5">Details</th>
19868 <tr class="entry_cont">
19869 <td class="entry_details" colspan="5">
19870 <p>See <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a> for more details.<wbr/></p>
19871 <p>If this key is present,<wbr/> then <a href="#static_android.sensor.colorTransform2">android.<wbr/>sensor.<wbr/>color<wbr/>Transform2</a>,<wbr/>
19872 <a href="#static_android.sensor.calibrationTransform2">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform2</a>,<wbr/> and
19873 <a href="#static_android.sensor.forwardMatrix2">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2</a> will also be present.<wbr/></p>
19878 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19879 <!-- end of entry -->
19882 <tr class="entry" id="static_android.sensor.calibrationTransform1">
19883 <td class="entry_name
19885 android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform1
19887 <td class="entry_type">
19888 <span class="entry_type_name">rational</span>
19889 <span class="entry_type_container">x</span>
19891 <span class="entry_type_array">
19894 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
19899 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
19902 </td> <!-- entry_type -->
19904 <td class="entry_description">
19905 <p>A per-device calibration transform matrix that maps from the
19906 reference sensor colorspace to the actual device sensor colorspace.<wbr/></p>
19909 <td class="entry_units">
19912 <td class="entry_range">
19915 <td class="entry_tags">
19916 <ul class="entry_tags">
19917 <li><a href="#tag_RAW">RAW</a></li>
19922 <tr class="entries_header">
19923 <th class="th_details" colspan="5">Details</th>
19925 <tr class="entry_cont">
19926 <td class="entry_details" colspan="5">
19927 <p>This matrix is used to correct for per-device variations in the
19928 sensor colorspace,<wbr/> and is used for processing raw buffer data.<wbr/></p>
19929 <p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
19930 contains a per-device calibration transform that maps colors
19931 from reference sensor color space (i.<wbr/>e.<wbr/> the "golden module"
19932 colorspace) into this camera device's native sensor color
19933 space under the first reference illuminant
19934 (<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>).<wbr/></p>
19939 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19940 <!-- end of entry -->
19943 <tr class="entry" id="static_android.sensor.calibrationTransform2">
19944 <td class="entry_name
19946 android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform2
19948 <td class="entry_type">
19949 <span class="entry_type_name">rational</span>
19950 <span class="entry_type_container">x</span>
19952 <span class="entry_type_array">
19955 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
19960 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
19963 </td> <!-- entry_type -->
19965 <td class="entry_description">
19966 <p>A per-device calibration transform matrix that maps from the
19967 reference sensor colorspace to the actual device sensor colorspace
19968 (this is the colorspace of the raw buffer data).<wbr/></p>
19971 <td class="entry_units">
19974 <td class="entry_range">
19977 <td class="entry_tags">
19978 <ul class="entry_tags">
19979 <li><a href="#tag_RAW">RAW</a></li>
19984 <tr class="entries_header">
19985 <th class="th_details" colspan="5">Details</th>
19987 <tr class="entry_cont">
19988 <td class="entry_details" colspan="5">
19989 <p>This matrix is used to correct for per-device variations in the
19990 sensor colorspace,<wbr/> and is used for processing raw buffer data.<wbr/></p>
19991 <p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
19992 contains a per-device calibration transform that maps colors
19993 from reference sensor color space (i.<wbr/>e.<wbr/> the "golden module"
19994 colorspace) into this camera device's native sensor color
19995 space under the second reference illuminant
19996 (<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a>).<wbr/></p>
19997 <p>This matrix will only be present if the second reference
19998 illuminant is present.<wbr/></p>
20003 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20004 <!-- end of entry -->
20007 <tr class="entry" id="static_android.sensor.colorTransform1">
20008 <td class="entry_name
20010 android.<wbr/>sensor.<wbr/>color<wbr/>Transform1
20012 <td class="entry_type">
20013 <span class="entry_type_name">rational</span>
20014 <span class="entry_type_container">x</span>
20016 <span class="entry_type_array">
20019 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
20024 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
20027 </td> <!-- entry_type -->
20029 <td class="entry_description">
20030 <p>A matrix that transforms color values from CIE XYZ color space to
20031 reference sensor color space.<wbr/></p>
20034 <td class="entry_units">
20037 <td class="entry_range">
20040 <td class="entry_tags">
20041 <ul class="entry_tags">
20042 <li><a href="#tag_RAW">RAW</a></li>
20047 <tr class="entries_header">
20048 <th class="th_details" colspan="5">Details</th>
20050 <tr class="entry_cont">
20051 <td class="entry_details" colspan="5">
20052 <p>This matrix is used to convert from the standard CIE XYZ color
20053 space to the reference sensor colorspace,<wbr/> and is used when processing
20054 raw buffer data.<wbr/></p>
20055 <p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
20056 contains a color transform matrix that maps colors from the CIE
20057 XYZ color space to the reference sensor color space (i.<wbr/>e.<wbr/> the
20058 "golden module" colorspace) under the first reference illuminant
20059 (<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>).<wbr/></p>
20060 <p>The white points chosen in both the reference sensor color space
20061 and the CIE XYZ colorspace when calculating this transform will
20062 match the standard white point for the first reference illuminant
20063 (i.<wbr/>e.<wbr/> no chromatic adaptation will be applied by this transform).<wbr/></p>
20068 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20069 <!-- end of entry -->
20072 <tr class="entry" id="static_android.sensor.colorTransform2">
20073 <td class="entry_name
20075 android.<wbr/>sensor.<wbr/>color<wbr/>Transform2
20077 <td class="entry_type">
20078 <span class="entry_type_name">rational</span>
20079 <span class="entry_type_container">x</span>
20081 <span class="entry_type_array">
20084 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
20089 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
20092 </td> <!-- entry_type -->
20094 <td class="entry_description">
20095 <p>A matrix that transforms color values from CIE XYZ color space to
20096 reference sensor color space.<wbr/></p>
20099 <td class="entry_units">
20102 <td class="entry_range">
20105 <td class="entry_tags">
20106 <ul class="entry_tags">
20107 <li><a href="#tag_RAW">RAW</a></li>
20112 <tr class="entries_header">
20113 <th class="th_details" colspan="5">Details</th>
20115 <tr class="entry_cont">
20116 <td class="entry_details" colspan="5">
20117 <p>This matrix is used to convert from the standard CIE XYZ color
20118 space to the reference sensor colorspace,<wbr/> and is used when processing
20119 raw buffer data.<wbr/></p>
20120 <p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
20121 contains a color transform matrix that maps colors from the CIE
20122 XYZ color space to the reference sensor color space (i.<wbr/>e.<wbr/> the
20123 "golden module" colorspace) under the second reference illuminant
20124 (<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a>).<wbr/></p>
20125 <p>The white points chosen in both the reference sensor color space
20126 and the CIE XYZ colorspace when calculating this transform will
20127 match the standard white point for the second reference illuminant
20128 (i.<wbr/>e.<wbr/> no chromatic adaptation will be applied by this transform).<wbr/></p>
20129 <p>This matrix will only be present if the second reference
20130 illuminant is present.<wbr/></p>
20135 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20136 <!-- end of entry -->
20139 <tr class="entry" id="static_android.sensor.forwardMatrix1">
20140 <td class="entry_name
20142 android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix1
20144 <td class="entry_type">
20145 <span class="entry_type_name">rational</span>
20146 <span class="entry_type_container">x</span>
20148 <span class="entry_type_array">
20151 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
20156 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
20159 </td> <!-- entry_type -->
20161 <td class="entry_description">
20162 <p>A matrix that transforms white balanced camera colors from the reference
20163 sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.<wbr/></p>
20166 <td class="entry_units">
20169 <td class="entry_range">
20172 <td class="entry_tags">
20173 <ul class="entry_tags">
20174 <li><a href="#tag_RAW">RAW</a></li>
20179 <tr class="entries_header">
20180 <th class="th_details" colspan="5">Details</th>
20182 <tr class="entry_cont">
20183 <td class="entry_details" colspan="5">
20184 <p>This matrix is used to convert to the standard CIE XYZ colorspace,<wbr/> and
20185 is used when processing raw buffer data.<wbr/></p>
20186 <p>This matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and contains
20187 a color transform matrix that maps white balanced colors from the
20188 reference sensor color space to the CIE XYZ color space with a D50 white
20190 <p>Under the first reference illuminant (<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>)
20191 this matrix is chosen so that the standard white point for this reference
20192 illuminant in the reference sensor colorspace is mapped to D50 in the
20193 CIE XYZ colorspace.<wbr/></p>
20198 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20199 <!-- end of entry -->
20202 <tr class="entry" id="static_android.sensor.forwardMatrix2">
20203 <td class="entry_name
20205 android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2
20207 <td class="entry_type">
20208 <span class="entry_type_name">rational</span>
20209 <span class="entry_type_container">x</span>
20211 <span class="entry_type_array">
20214 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
20219 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
20222 </td> <!-- entry_type -->
20224 <td class="entry_description">
20225 <p>A matrix that transforms white balanced camera colors from the reference
20226 sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.<wbr/></p>
20229 <td class="entry_units">
20232 <td class="entry_range">
20235 <td class="entry_tags">
20236 <ul class="entry_tags">
20237 <li><a href="#tag_RAW">RAW</a></li>
20242 <tr class="entries_header">
20243 <th class="th_details" colspan="5">Details</th>
20245 <tr class="entry_cont">
20246 <td class="entry_details" colspan="5">
20247 <p>This matrix is used to convert to the standard CIE XYZ colorspace,<wbr/> and
20248 is used when processing raw buffer data.<wbr/></p>
20249 <p>This matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and contains
20250 a color transform matrix that maps white balanced colors from the
20251 reference sensor color space to the CIE XYZ color space with a D50 white
20253 <p>Under the second reference illuminant (<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a>)
20254 this matrix is chosen so that the standard white point for this reference
20255 illuminant in the reference sensor colorspace is mapped to D50 in the
20256 CIE XYZ colorspace.<wbr/></p>
20257 <p>This matrix will only be present if the second reference
20258 illuminant is present.<wbr/></p>
20263 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20264 <!-- end of entry -->
20267 <tr class="entry" id="static_android.sensor.baseGainFactor">
20268 <td class="entry_name
20270 android.<wbr/>sensor.<wbr/>base<wbr/>Gain<wbr/>Factor
20272 <td class="entry_type">
20273 <span class="entry_type_name">rational</span>
20275 <span class="entry_type_visibility"> [system]</span>
20282 </td> <!-- entry_type -->
20284 <td class="entry_description">
20285 <p>Gain factor from electrons to raw units when
20289 <td class="entry_units">
20292 <td class="entry_range">
20295 <td class="entry_tags">
20296 <ul class="entry_tags">
20297 <li><a href="#tag_FUTURE">FUTURE</a></li>
20304 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20305 <!-- end of entry -->
20308 <tr class="entry" id="static_android.sensor.blackLevelPattern">
20309 <td class="entry_name
20311 android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern
20313 <td class="entry_type">
20314 <span class="entry_type_name">int32</span>
20315 <span class="entry_type_container">x</span>
20317 <span class="entry_type_array">
20320 <span class="entry_type_visibility"> [public as blackLevelPattern]</span>
20325 <div class="entry_type_notes">2x2 raw count block</div>
20328 </td> <!-- entry_type -->
20330 <td class="entry_description">
20331 <p>A fixed black level offset for each of the color filter arrangement
20332 (CFA) mosaic channels.<wbr/></p>
20335 <td class="entry_units">
20338 <td class="entry_range">
20339 <p>>= 0 for each.<wbr/></p>
20342 <td class="entry_tags">
20343 <ul class="entry_tags">
20344 <li><a href="#tag_RAW">RAW</a></li>
20349 <tr class="entries_header">
20350 <th class="th_details" colspan="5">Details</th>
20352 <tr class="entry_cont">
20353 <td class="entry_details" colspan="5">
20354 <p>This key specifies the zero light value for each of the CFA mosaic
20355 channels in the camera sensor.<wbr/> The maximal value output by the
20356 sensor is represented by the value in <a href="#static_android.sensor.info.whiteLevel">android.<wbr/>sensor.<wbr/>info.<wbr/>white<wbr/>Level</a>.<wbr/></p>
20357 <p>The values are given in the same order as channels listed for the CFA
20358 layout key (see <a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a>),<wbr/> i.<wbr/>e.<wbr/> the
20359 nth value given corresponds to the black level offset for the nth
20360 color channel listed in the CFA.<wbr/></p>
20361 <p>The black level values of captured images may vary for different
20362 capture settings (e.<wbr/>g.,<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>).<wbr/> This key
20363 represents a coarse approximation for such case.<wbr/> It is recommended to
20364 use <a href="#dynamic_android.sensor.dynamicBlackLevel">android.<wbr/>sensor.<wbr/>dynamic<wbr/>Black<wbr/>Level</a> or use pixels from
20365 <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> directly for captures when
20366 supported by the camera device,<wbr/> which provides more accurate black
20367 level values.<wbr/> For raw capture in particular,<wbr/> it is recommended to use
20368 pixels from <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> to calculate black
20369 level values for each frame.<wbr/></p>
20373 <tr class="entries_header">
20374 <th class="th_details" colspan="5">HAL Implementation Details</th>
20376 <tr class="entry_cont">
20377 <td class="entry_details" colspan="5">
20378 <p>The values are given in row-column scan order,<wbr/> with the first value
20379 corresponding to the element of the CFA in row=0,<wbr/> column=0.<wbr/></p>
20383 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20384 <!-- end of entry -->
20387 <tr class="entry" id="static_android.sensor.maxAnalogSensitivity">
20388 <td class="entry_name
20390 android.<wbr/>sensor.<wbr/>max<wbr/>Analog<wbr/>Sensitivity
20392 <td class="entry_type">
20393 <span class="entry_type_name">int32</span>
20395 <span class="entry_type_visibility"> [public]</span>
20398 <span class="entry_type_hwlevel">[full] </span>
20403 </td> <!-- entry_type -->
20405 <td class="entry_description">
20406 <p>Maximum sensitivity that is implemented
20407 purely through analog gain.<wbr/></p>
20410 <td class="entry_units">
20413 <td class="entry_range">
20416 <td class="entry_tags">
20417 <ul class="entry_tags">
20418 <li><a href="#tag_V1">V1</a></li>
20419 <li><a href="#tag_FULL">FULL</a></li>
20424 <tr class="entries_header">
20425 <th class="th_details" colspan="5">Details</th>
20427 <tr class="entry_cont">
20428 <td class="entry_details" colspan="5">
20429 <p>For <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> values less than or
20430 equal to this,<wbr/> all applied gain must be analog.<wbr/> For
20431 values above this,<wbr/> the gain applied can be a mix of analog and
20437 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20438 <!-- end of entry -->
20441 <tr class="entry" id="static_android.sensor.orientation">
20442 <td class="entry_name
20444 android.<wbr/>sensor.<wbr/>orientation
20446 <td class="entry_type">
20447 <span class="entry_type_name">int32</span>
20449 <span class="entry_type_visibility"> [public]</span>
20452 <span class="entry_type_hwlevel">[legacy] </span>
20457 </td> <!-- entry_type -->
20459 <td class="entry_description">
20460 <p>Clockwise angle through which the output image needs to be rotated to be
20461 upright on the device screen in its native orientation.<wbr/></p>
20464 <td class="entry_units">
20465 Degrees of clockwise rotation; always a multiple of
20469 <td class="entry_range">
20470 <p>0,<wbr/> 90,<wbr/> 180,<wbr/> 270</p>
20473 <td class="entry_tags">
20474 <ul class="entry_tags">
20475 <li><a href="#tag_BC">BC</a></li>
20480 <tr class="entries_header">
20481 <th class="th_details" colspan="5">Details</th>
20483 <tr class="entry_cont">
20484 <td class="entry_details" colspan="5">
20485 <p>Also defines the direction of rolling shutter readout,<wbr/> which is from top to bottom in
20486 the sensor's coordinate system.<wbr/></p>
20491 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20492 <!-- end of entry -->
20495 <tr class="entry" id="static_android.sensor.profileHueSatMapDimensions">
20496 <td class="entry_name
20498 android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map<wbr/>Dimensions
20500 <td class="entry_type">
20501 <span class="entry_type_name">int32</span>
20502 <span class="entry_type_container">x</span>
20504 <span class="entry_type_array">
20507 <span class="entry_type_visibility"> [system]</span>
20512 <div class="entry_type_notes">Number of samples for hue,<wbr/> saturation,<wbr/> and value</div>
20515 </td> <!-- entry_type -->
20517 <td class="entry_description">
20518 <p>The number of input samples for each dimension of
20519 <a href="#dynamic_android.sensor.profileHueSatMap">android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map</a>.<wbr/></p>
20522 <td class="entry_units">
20525 <td class="entry_range">
20526 <p>Hue >= 1,<wbr/>
20527 Saturation >= 2,<wbr/>
20531 <td class="entry_tags">
20532 <ul class="entry_tags">
20533 <li><a href="#tag_RAW">RAW</a></li>
20538 <tr class="entries_header">
20539 <th class="th_details" colspan="5">Details</th>
20541 <tr class="entry_cont">
20542 <td class="entry_details" colspan="5">
20543 <p>The number of input samples for the hue,<wbr/> saturation,<wbr/> and value
20544 dimension of <a href="#dynamic_android.sensor.profileHueSatMap">android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map</a>.<wbr/> The order of the
20545 dimensions given is hue,<wbr/> saturation,<wbr/> value; where hue is the 0th
20551 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20552 <!-- end of entry -->
20555 <tr class="entry" id="static_android.sensor.availableTestPatternModes">
20556 <td class="entry_name
20558 android.<wbr/>sensor.<wbr/>available<wbr/>Test<wbr/>Pattern<wbr/>Modes
20560 <td class="entry_type">
20561 <span class="entry_type_name">int32</span>
20562 <span class="entry_type_container">x</span>
20564 <span class="entry_type_array">
20567 <span class="entry_type_visibility"> [public]</span>
20572 <div class="entry_type_notes">list of enums</div>
20575 </td> <!-- entry_type -->
20577 <td class="entry_description">
20578 <p>List of sensor test pattern modes for <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a>
20579 supported by this camera device.<wbr/></p>
20582 <td class="entry_units">
20585 <td class="entry_range">
20586 <p>Any value listed in <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a></p>
20589 <td class="entry_tags">
20593 <tr class="entries_header">
20594 <th class="th_details" colspan="5">Details</th>
20596 <tr class="entry_cont">
20597 <td class="entry_details" colspan="5">
20598 <p>Defaults to OFF,<wbr/> and always includes OFF if defined.<wbr/></p>
20602 <tr class="entries_header">
20603 <th class="th_details" colspan="5">HAL Implementation Details</th>
20605 <tr class="entry_cont">
20606 <td class="entry_details" colspan="5">
20607 <p>All custom modes must be >= CUSTOM1.<wbr/></p>
20611 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20612 <!-- end of entry -->
20615 <tr class="entry" id="static_android.sensor.opticalBlackRegions">
20616 <td class="entry_name
20618 android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions
20620 <td class="entry_type">
20621 <span class="entry_type_name">int32</span>
20622 <span class="entry_type_container">x</span>
20624 <span class="entry_type_array">
20627 <span class="entry_type_visibility"> [public as rectangle]</span>
20634 </td> <!-- entry_type -->
20636 <td class="entry_description">
20637 <p>List of disjoint rectangles indicating the sensor
20638 optically shielded black pixel regions.<wbr/></p>
20641 <td class="entry_units">
20644 <td class="entry_range">
20647 <td class="entry_tags">
20651 <tr class="entries_header">
20652 <th class="th_details" colspan="5">Details</th>
20654 <tr class="entry_cont">
20655 <td class="entry_details" colspan="5">
20656 <p>In most camera sensors,<wbr/> the active array is surrounded by some
20657 optically shielded pixel areas.<wbr/> By blocking light,<wbr/> these pixels
20658 provides a reliable black reference for black level compensation
20659 in active array region.<wbr/></p>
20660 <p>This key provides a list of disjoint rectangles specifying the
20661 regions of optically shielded (with metal shield) black pixel
20662 regions if the camera device is capable of reading out these black
20663 pixels in the output raw images.<wbr/> In comparison to the fixed black
20664 level values reported by <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a>,<wbr/> this key
20665 may provide a more accurate way for the application to calculate
20666 black level of each captured raw images.<wbr/></p>
20667 <p>When this key is reported,<wbr/> the <a href="#dynamic_android.sensor.dynamicBlackLevel">android.<wbr/>sensor.<wbr/>dynamic<wbr/>Black<wbr/>Level</a> and
20668 <a href="#dynamic_android.sensor.dynamicWhiteLevel">android.<wbr/>sensor.<wbr/>dynamic<wbr/>White<wbr/>Level</a> will also be reported.<wbr/></p>
20672 <tr class="entries_header">
20673 <th class="th_details" colspan="5">HAL Implementation Details</th>
20675 <tr class="entry_cont">
20676 <td class="entry_details" colspan="5">
20677 <p>This array contains (xmin,<wbr/> ymin,<wbr/> width,<wbr/> height).<wbr/> The (xmin,<wbr/> ymin)
20678 must be >= (0,<wbr/>0) and <=
20679 <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/> The (width,<wbr/> height) must be
20680 <= <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/> Each region must be
20681 outside the region reported by
20682 <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
20683 <p>The HAL must report minimal number of disjoint regions for the
20684 optically shielded back pixel regions.<wbr/> For example,<wbr/> if a region can
20685 be covered by one rectangle,<wbr/> the HAL must not split this region into
20686 multiple rectangles.<wbr/></p>
20690 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20691 <!-- end of entry -->
20694 <tr class="entry" id="static_android.sensor.opaqueRawSize">
20695 <td class="entry_name
20697 android.<wbr/>sensor.<wbr/>opaque<wbr/>Raw<wbr/>Size
20699 <td class="entry_type">
20700 <span class="entry_type_name">int32</span>
20701 <span class="entry_type_container">x</span>
20703 <span class="entry_type_array">
20706 <span class="entry_type_visibility"> [system]</span>
20713 </td> <!-- entry_type -->
20715 <td class="entry_description">
20716 <p>Size in bytes for all the listed opaque RAW buffer sizes</p>
20719 <td class="entry_units">
20722 <td class="entry_range">
20723 <p>Must be large enough to fit the opaque RAW of corresponding size produced by
20727 <td class="entry_tags">
20731 <tr class="entries_header">
20732 <th class="th_details" colspan="5">Details</th>
20734 <tr class="entry_cont">
20735 <td class="entry_details" colspan="5">
20736 <p>This configurations are listed as <code>(width,<wbr/> height,<wbr/> size_<wbr/>in_<wbr/>bytes)</code> tuples.<wbr/>
20737 This is used for sizing the gralloc buffers for opaque RAW buffers.<wbr/>
20738 All RAW_<wbr/>OPAQUE output stream configuration listed in
20739 <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> will have a corresponding tuple in
20740 this key.<wbr/></p>
20744 <tr class="entries_header">
20745 <th class="th_details" colspan="5">HAL Implementation Details</th>
20747 <tr class="entry_cont">
20748 <td class="entry_details" colspan="5">
20749 <p>This key is added in HAL3.<wbr/>4.<wbr/>
20750 For HAL3.<wbr/>4 or above: devices advertising RAW_<wbr/>OPAQUE format output must list this key.<wbr/>
20751 For HAL3.<wbr/>3 or earlier devices: if RAW_<wbr/>OPAQUE ouput is advertised,<wbr/> camera framework
20752 will derive this key by assuming each pixel takes two bytes and no padding bytes
20753 between rows.<wbr/></p>
20757 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20758 <!-- end of entry -->
20762 <!-- end of kind -->
20764 <tr><td colspan="6" class="kind">dynamic</td></tr>
20766 <thead class="entries_header">
20768 <th class="th_name">Property Name</th>
20769 <th class="th_type">Type</th>
20770 <th class="th_description">Description</th>
20771 <th class="th_units">Units</th>
20772 <th class="th_range">Range</th>
20773 <th class="th_tags">Tags</th>
20788 <tr class="entry" id="dynamic_android.sensor.exposureTime">
20789 <td class="entry_name
20791 android.<wbr/>sensor.<wbr/>exposure<wbr/>Time
20793 <td class="entry_type">
20794 <span class="entry_type_name">int64</span>
20796 <span class="entry_type_visibility"> [public]</span>
20799 <span class="entry_type_hwlevel">[full] </span>
20804 </td> <!-- entry_type -->
20806 <td class="entry_description">
20807 <p>Duration each pixel is exposed to
20811 <td class="entry_units">
20815 <td class="entry_range">
20816 <p><a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a></p>
20819 <td class="entry_tags">
20820 <ul class="entry_tags">
20821 <li><a href="#tag_V1">V1</a></li>
20826 <tr class="entries_header">
20827 <th class="th_details" colspan="5">Details</th>
20829 <tr class="entry_cont">
20830 <td class="entry_details" colspan="5">
20831 <p>If the sensor can't expose this exact duration,<wbr/> it will shorten the
20832 duration exposed to the nearest possible value (rather than expose longer).<wbr/>
20833 The final exposure time used will be available in the output capture result.<wbr/></p>
20834 <p>This control is only effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is set to
20835 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
20840 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20841 <!-- end of entry -->
20844 <tr class="entry" id="dynamic_android.sensor.frameDuration">
20845 <td class="entry_name
20847 android.<wbr/>sensor.<wbr/>frame<wbr/>Duration
20849 <td class="entry_type">
20850 <span class="entry_type_name">int64</span>
20852 <span class="entry_type_visibility"> [public]</span>
20855 <span class="entry_type_hwlevel">[full] </span>
20860 </td> <!-- entry_type -->
20862 <td class="entry_description">
20863 <p>Duration from start of frame exposure to
20864 start of next frame exposure.<wbr/></p>
20867 <td class="entry_units">
20871 <td class="entry_range">
20872 <p>See <a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a>,<wbr/>
20873 <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a>.<wbr/> The duration
20874 is capped to <code>max(duration,<wbr/> exposureTime + overhead)</code>.<wbr/></p>
20877 <td class="entry_tags">
20878 <ul class="entry_tags">
20879 <li><a href="#tag_V1">V1</a></li>
20884 <tr class="entries_header">
20885 <th class="th_details" colspan="5">Details</th>
20887 <tr class="entry_cont">
20888 <td class="entry_details" colspan="5">
20889 <p>The maximum frame rate that can be supported by a camera subsystem is
20890 a function of many factors:</p>
20892 <li>Requested resolutions of output image streams</li>
20893 <li>Availability of binning /<wbr/> skipping modes on the imager</li>
20894 <li>The bandwidth of the imager interface</li>
20895 <li>The bandwidth of the various ISP processing blocks</li>
20897 <p>Since these factors can vary greatly between different ISPs and
20898 sensors,<wbr/> the camera abstraction tries to represent the bandwidth
20899 restrictions with as simple a model as possible.<wbr/></p>
20900 <p>The model presented has the following characteristics:</p>
20902 <li>The image sensor is always configured to output the smallest
20903 resolution possible given the application's requested output stream
20904 sizes.<wbr/> The smallest resolution is defined as being at least as large
20905 as the largest requested output stream size; the camera pipeline must
20906 never digitally upsample sensor data when the crop region covers the
20907 whole sensor.<wbr/> In general,<wbr/> this means that if only small output stream
20908 resolutions are configured,<wbr/> the sensor can provide a higher frame
20910 <li>Since any request may use any or all the currently configured
20911 output streams,<wbr/> the sensor and ISP must be configured to support
20912 scaling a single capture to all the streams at the same time.<wbr/> This
20913 means the camera pipeline must be ready to produce the largest
20914 requested output size without any delay.<wbr/> Therefore,<wbr/> the overall
20915 frame rate of a given configured stream set is governed only by the
20916 largest requested stream resolution.<wbr/></li>
20917 <li>Using more than one output stream in a request does not affect the
20918 frame duration.<wbr/></li>
20919 <li>Certain format-streams may need to do additional background processing
20920 before data is consumed/<wbr/>produced by that stream.<wbr/> These processors
20921 can run concurrently to the rest of the camera pipeline,<wbr/> but
20922 cannot process more than 1 capture at a time.<wbr/></li>
20924 <p>The necessary information for the application,<wbr/> given the model above,<wbr/>
20925 is provided via the <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> field using
20926 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>.<wbr/>
20927 These are used to determine the maximum frame rate /<wbr/> minimum frame
20928 duration that is possible for a given stream configuration.<wbr/></p>
20929 <p>Specifically,<wbr/> the application can use the following rules to
20930 determine the minimum frame duration it can request from the camera
20933 <li>Let the set of currently configured input/<wbr/>output streams
20934 be called <code>S</code>.<wbr/></li>
20935 <li>Find the minimum frame durations for each stream in <code>S</code>,<wbr/> by looking
20936 it up in <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> using <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>
20937 (with its respective size/<wbr/>format).<wbr/> Let this set of frame durations be
20938 called <code>F</code>.<wbr/></li>
20939 <li>For any given request <code>R</code>,<wbr/> the minimum frame duration allowed
20940 for <code>R</code> is the maximum out of all values in <code>F</code>.<wbr/> Let the streams
20941 used in <code>R</code> be called <code>S_<wbr/>r</code>.<wbr/></li>
20943 <p>If none of the streams in <code>S_<wbr/>r</code> have a stall time (listed in <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a>
20944 using its respective size/<wbr/>format),<wbr/> then the frame duration in <code>F</code>
20945 determines the steady state frame rate that the application will get
20946 if it uses <code>R</code> as a repeating request.<wbr/> Let this special kind of
20947 request be called <code>Rsimple</code>.<wbr/></p>
20948 <p>A repeating request <code>Rsimple</code> can be <em>occasionally</em> interleaved
20949 by a single capture of a new request <code>Rstall</code> (which has at least
20950 one in-use stream with a non-0 stall time) and if <code>Rstall</code> has the
20951 same minimum frame duration this will not cause a frame rate loss
20952 if all buffers from the previous <code>Rstall</code> have already been
20953 delivered.<wbr/></p>
20954 <p>For more details about stalling,<wbr/> see
20955 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a>.<wbr/></p>
20956 <p>This control is only effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is set to
20957 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
20961 <tr class="entries_header">
20962 <th class="th_details" colspan="5">HAL Implementation Details</th>
20964 <tr class="entry_cont">
20965 <td class="entry_details" colspan="5">
20966 <p>For more details about stalling,<wbr/> see
20967 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a>.<wbr/></p>
20971 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20972 <!-- end of entry -->
20975 <tr class="entry" id="dynamic_android.sensor.sensitivity">
20976 <td class="entry_name
20978 android.<wbr/>sensor.<wbr/>sensitivity
20980 <td class="entry_type">
20981 <span class="entry_type_name">int32</span>
20983 <span class="entry_type_visibility"> [public]</span>
20986 <span class="entry_type_hwlevel">[full] </span>
20991 </td> <!-- entry_type -->
20993 <td class="entry_description">
20994 <p>The amount of gain applied to sensor data
20995 before processing.<wbr/></p>
20998 <td class="entry_units">
20999 ISO arithmetic units
21002 <td class="entry_range">
21003 <p><a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a></p>
21006 <td class="entry_tags">
21007 <ul class="entry_tags">
21008 <li><a href="#tag_V1">V1</a></li>
21013 <tr class="entries_header">
21014 <th class="th_details" colspan="5">Details</th>
21016 <tr class="entry_cont">
21017 <td class="entry_details" colspan="5">
21018 <p>The sensitivity is the standard ISO sensitivity value,<wbr/>
21019 as defined in ISO 12232:2006.<wbr/></p>
21020 <p>The sensitivity must be within <a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a>,<wbr/> and
21021 if if it less than <a href="#static_android.sensor.maxAnalogSensitivity">android.<wbr/>sensor.<wbr/>max<wbr/>Analog<wbr/>Sensitivity</a>,<wbr/> the camera device
21022 is guaranteed to use only analog amplification for applying the gain.<wbr/></p>
21023 <p>If the camera device cannot apply the exact sensitivity
21024 requested,<wbr/> it will reduce the gain to the nearest supported
21025 value.<wbr/> The final sensitivity used will be available in the
21026 output capture result.<wbr/></p>
21027 <p>This control is only effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> or <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is set to
21028 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
21032 <tr class="entries_header">
21033 <th class="th_details" colspan="5">HAL Implementation Details</th>
21035 <tr class="entry_cont">
21036 <td class="entry_details" colspan="5">
21037 <p>ISO 12232:2006 REI method is acceptable.<wbr/></p>
21041 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21042 <!-- end of entry -->
21045 <tr class="entry" id="dynamic_android.sensor.timestamp">
21046 <td class="entry_name
21048 android.<wbr/>sensor.<wbr/>timestamp
21050 <td class="entry_type">
21051 <span class="entry_type_name">int64</span>
21053 <span class="entry_type_visibility"> [public]</span>
21056 <span class="entry_type_hwlevel">[legacy] </span>
21061 </td> <!-- entry_type -->
21063 <td class="entry_description">
21064 <p>Time at start of exposure of first
21065 row of the image sensor active array,<wbr/> in nanoseconds.<wbr/></p>
21068 <td class="entry_units">
21072 <td class="entry_range">
21076 <td class="entry_tags">
21077 <ul class="entry_tags">
21078 <li><a href="#tag_BC">BC</a></li>
21083 <tr class="entries_header">
21084 <th class="th_details" colspan="5">Details</th>
21086 <tr class="entry_cont">
21087 <td class="entry_details" colspan="5">
21088 <p>The timestamps are also included in all image
21089 buffers produced for the same capture,<wbr/> and will be identical
21090 on all the outputs.<wbr/></p>
21091 <p>When <a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> UNKNOWN,<wbr/>
21092 the timestamps measure time since an unspecified starting point,<wbr/>
21093 and are monotonically increasing.<wbr/> They can be compared with the
21094 timestamps for other captures from the same camera device,<wbr/> but are
21095 not guaranteed to be comparable to any other time source.<wbr/></p>
21096 <p>When <a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> REALTIME,<wbr/> the
21097 timestamps measure time in the same timebase as <a href="https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtimeNanos">SystemClock#elapsedRealtimeNanos</a>,<wbr/> and they can
21098 be compared to other timestamps from other subsystems that
21099 are using that base.<wbr/></p>
21100 <p>For reprocessing,<wbr/> the timestamp will match the start of exposure of
21101 the input image,<wbr/> i.<wbr/>e.<wbr/> <a href="https://developer.android.com/reference/CaptureResult.html#SENSOR_TIMESTAMP">the
21102 timestamp</a> in the TotalCaptureResult that was used to create the
21103 reprocess capture request.<wbr/></p>
21107 <tr class="entries_header">
21108 <th class="th_details" colspan="5">HAL Implementation Details</th>
21110 <tr class="entry_cont">
21111 <td class="entry_details" colspan="5">
21112 <p>All timestamps must be in reference to the kernel's
21113 CLOCK_<wbr/>BOOTTIME monotonic clock,<wbr/> which properly accounts for
21114 time spent asleep.<wbr/> This allows for synchronization with
21115 sensors that continue to operate while the system is
21116 otherwise asleep.<wbr/></p>
21117 <p>If <a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> REALTIME,<wbr/>
21118 The timestamp must be synchronized with the timestamps from other
21119 sensor subsystems that are using the same timebase.<wbr/></p>
21120 <p>For reprocessing,<wbr/> the input image's start of exposure can be looked up
21121 with <a href="#dynamic_android.sensor.timestamp">android.<wbr/>sensor.<wbr/>timestamp</a> from the metadata included in the
21122 capture request.<wbr/></p>
21126 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21127 <!-- end of entry -->
21130 <tr class="entry" id="dynamic_android.sensor.temperature">
21131 <td class="entry_name
21133 android.<wbr/>sensor.<wbr/>temperature
21135 <td class="entry_type">
21136 <span class="entry_type_name">float</span>
21138 <span class="entry_type_visibility"> [system]</span>
21145 </td> <!-- entry_type -->
21147 <td class="entry_description">
21148 <p>The temperature of the sensor,<wbr/> sampled at the time
21149 exposure began for this frame.<wbr/></p>
21150 <p>The thermal diode being queried should be inside the sensor PCB,<wbr/> or
21151 somewhere close to it.<wbr/></p>
21154 <td class="entry_units">
21158 <td class="entry_range">
21159 <p>Optional.<wbr/> This value is missing if no temperature is available.<wbr/></p>
21162 <td class="entry_tags">
21163 <ul class="entry_tags">
21164 <li><a href="#tag_FUTURE">FUTURE</a></li>
21171 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21172 <!-- end of entry -->
21175 <tr class="entry" id="dynamic_android.sensor.neutralColorPoint">
21176 <td class="entry_name
21178 android.<wbr/>sensor.<wbr/>neutral<wbr/>Color<wbr/>Point
21180 <td class="entry_type">
21181 <span class="entry_type_name">rational</span>
21182 <span class="entry_type_container">x</span>
21184 <span class="entry_type_array">
21187 <span class="entry_type_visibility"> [public]</span>
21194 </td> <!-- entry_type -->
21196 <td class="entry_description">
21197 <p>The estimated camera neutral color in the native sensor colorspace at
21198 the time of capture.<wbr/></p>
21201 <td class="entry_units">
21204 <td class="entry_range">
21207 <td class="entry_tags">
21208 <ul class="entry_tags">
21209 <li><a href="#tag_RAW">RAW</a></li>
21214 <tr class="entries_header">
21215 <th class="th_details" colspan="5">Details</th>
21217 <tr class="entry_cont">
21218 <td class="entry_details" colspan="5">
21219 <p>This value gives the neutral color point encoded as an RGB value in the
21220 native sensor color space.<wbr/> The neutral color point indicates the
21221 currently estimated white point of the scene illumination.<wbr/> It can be
21222 used to interpolate between the provided color transforms when
21223 processing raw sensor data.<wbr/></p>
21224 <p>The order of the values is R,<wbr/> G,<wbr/> B; where R is in the lowest index.<wbr/></p>
21229 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21230 <!-- end of entry -->
21233 <tr class="entry" id="dynamic_android.sensor.noiseProfile">
21234 <td class="entry_name
21236 android.<wbr/>sensor.<wbr/>noise<wbr/>Profile
21238 <td class="entry_type">
21239 <span class="entry_type_name">double</span>
21240 <span class="entry_type_container">x</span>
21242 <span class="entry_type_array">
21245 <span class="entry_type_visibility"> [public as pairDoubleDouble]</span>
21250 <div class="entry_type_notes">Pairs of noise model coefficients</div>
21253 </td> <!-- entry_type -->
21255 <td class="entry_description">
21256 <p>Noise model coefficients for each CFA mosaic channel.<wbr/></p>
21259 <td class="entry_units">
21262 <td class="entry_range">
21265 <td class="entry_tags">
21266 <ul class="entry_tags">
21267 <li><a href="#tag_RAW">RAW</a></li>
21272 <tr class="entries_header">
21273 <th class="th_details" colspan="5">Details</th>
21275 <tr class="entry_cont">
21276 <td class="entry_details" colspan="5">
21277 <p>This key contains two noise model coefficients for each CFA channel
21278 corresponding to the sensor amplification (S) and sensor readout
21279 noise (O).<wbr/> These are given as pairs of coefficients for each channel
21280 in the same order as channels listed for the CFA layout key
21281 (see <a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a>).<wbr/> This is
21282 represented as an array of Pair<Double,<wbr/> Double>,<wbr/> where
21283 the first member of the Pair at index n is the S coefficient and the
21284 second member is the O coefficient for the nth color channel in the CFA.<wbr/></p>
21285 <p>These coefficients are used in a two parameter noise model to describe
21286 the amount of noise present in the image for each CFA channel.<wbr/> The
21287 noise model used here is:</p>
21288 <p>N(x) = sqrt(Sx + O)</p>
21289 <p>Where x represents the recorded signal of a CFA channel normalized to
21290 the range [0,<wbr/> 1],<wbr/> and S and O are the noise model coeffiecients for
21291 that channel.<wbr/></p>
21292 <p>A more detailed description of the noise model can be found in the
21293 Adobe DNG specification for the NoiseProfile tag.<wbr/></p>
21297 <tr class="entries_header">
21298 <th class="th_details" colspan="5">HAL Implementation Details</th>
21300 <tr class="entry_cont">
21301 <td class="entry_details" colspan="5">
21302 <p>For a CFA layout of RGGB,<wbr/> the list of coefficients would be given as
21303 an array of doubles S0,<wbr/>O0,<wbr/>S1,<wbr/>O1,...,<wbr/> where S0 and O0 are the coefficients
21304 for the red channel,<wbr/> S1 and O1 are the coefficients for the first green
21305 channel,<wbr/> etc.<wbr/></p>
21309 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21310 <!-- end of entry -->
21313 <tr class="entry" id="dynamic_android.sensor.profileHueSatMap">
21314 <td class="entry_name
21316 android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map
21318 <td class="entry_type">
21319 <span class="entry_type_name">float</span>
21320 <span class="entry_type_container">x</span>
21322 <span class="entry_type_array">
21323 hue_samples x saturation_samples x value_samples x 3
21325 <span class="entry_type_visibility"> [system]</span>
21330 <div class="entry_type_notes">Mapping for hue,<wbr/> saturation,<wbr/> and value</div>
21333 </td> <!-- entry_type -->
21335 <td class="entry_description">
21336 <p>A mapping containing a hue shift,<wbr/> saturation scale,<wbr/> and value scale
21337 for each pixel.<wbr/></p>
21340 <td class="entry_units">
21342 The hue shift is given in degrees; saturation and value scale factors are
21343 unitless and are between 0 and 1 inclusive
21347 <td class="entry_range">
21350 <td class="entry_tags">
21351 <ul class="entry_tags">
21352 <li><a href="#tag_RAW">RAW</a></li>
21357 <tr class="entries_header">
21358 <th class="th_details" colspan="5">Details</th>
21360 <tr class="entry_cont">
21361 <td class="entry_details" colspan="5">
21362 <p>hue_<wbr/>samples,<wbr/> saturation_<wbr/>samples,<wbr/> and value_<wbr/>samples are given in
21363 <a href="#static_android.sensor.profileHueSatMapDimensions">android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map<wbr/>Dimensions</a>.<wbr/></p>
21364 <p>Each entry of this map contains three floats corresponding to the
21365 hue shift,<wbr/> saturation scale,<wbr/> and value scale,<wbr/> respectively; where the
21366 hue shift has the lowest index.<wbr/> The map entries are stored in the key
21367 in nested loop order,<wbr/> with the value divisions in the outer loop,<wbr/> the
21368 hue divisions in the middle loop,<wbr/> and the saturation divisions in the
21369 inner loop.<wbr/> All zero input saturation entries are required to have a
21370 value scale factor of 1.<wbr/>0.<wbr/></p>
21375 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21376 <!-- end of entry -->
21379 <tr class="entry" id="dynamic_android.sensor.profileToneCurve">
21380 <td class="entry_name
21382 android.<wbr/>sensor.<wbr/>profile<wbr/>Tone<wbr/>Curve
21384 <td class="entry_type">
21385 <span class="entry_type_name">float</span>
21386 <span class="entry_type_container">x</span>
21388 <span class="entry_type_array">
21391 <span class="entry_type_visibility"> [system]</span>
21396 <div class="entry_type_notes">Samples defining a spline for a tone-mapping curve</div>
21399 </td> <!-- entry_type -->
21401 <td class="entry_description">
21402 <p>A list of x,<wbr/>y samples defining a tone-mapping curve for gamma adjustment.<wbr/></p>
21405 <td class="entry_units">
21408 <td class="entry_range">
21409 <p>Each sample has an input range of <code>[0,<wbr/> 1]</code> and an output range of
21410 <code>[0,<wbr/> 1]</code>.<wbr/> The first sample is required to be <code>(0,<wbr/> 0)</code>,<wbr/> and the last
21411 sample is required to be <code>(1,<wbr/> 1)</code>.<wbr/></p>
21414 <td class="entry_tags">
21415 <ul class="entry_tags">
21416 <li><a href="#tag_RAW">RAW</a></li>
21421 <tr class="entries_header">
21422 <th class="th_details" colspan="5">Details</th>
21424 <tr class="entry_cont">
21425 <td class="entry_details" colspan="5">
21426 <p>This key contains a default tone curve that can be applied while
21427 processing the image as a starting point for user adjustments.<wbr/>
21428 The curve is specified as a list of value pairs in linear gamma.<wbr/>
21429 The curve is interpolated using a cubic spline.<wbr/></p>
21434 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21435 <!-- end of entry -->
21438 <tr class="entry" id="dynamic_android.sensor.greenSplit">
21439 <td class="entry_name
21441 android.<wbr/>sensor.<wbr/>green<wbr/>Split
21443 <td class="entry_type">
21444 <span class="entry_type_name">float</span>
21446 <span class="entry_type_visibility"> [public]</span>
21453 </td> <!-- entry_type -->
21455 <td class="entry_description">
21456 <p>The worst-case divergence between Bayer green channels.<wbr/></p>
21459 <td class="entry_units">
21462 <td class="entry_range">
21466 <td class="entry_tags">
21467 <ul class="entry_tags">
21468 <li><a href="#tag_RAW">RAW</a></li>
21473 <tr class="entries_header">
21474 <th class="th_details" colspan="5">Details</th>
21476 <tr class="entry_cont">
21477 <td class="entry_details" colspan="5">
21478 <p>This value is an estimate of the worst case split between the
21479 Bayer green channels in the red and blue rows in the sensor color
21480 filter array.<wbr/></p>
21481 <p>The green split is calculated as follows:</p>
21483 <li>A 5x5 pixel (or larger) window W within the active sensor array is
21484 chosen.<wbr/> The term 'pixel' here is taken to mean a group of 4 Bayer
21485 mosaic channels (R,<wbr/> Gr,<wbr/> Gb,<wbr/> B).<wbr/> The location and size of the window
21486 chosen is implementation defined,<wbr/> and should be chosen to provide a
21487 green split estimate that is both representative of the entire image
21488 for this camera sensor,<wbr/> and can be calculated quickly.<wbr/></li>
21489 <li>The arithmetic mean of the green channels from the red
21490 rows (mean_<wbr/>Gr) within W is computed.<wbr/></li>
21491 <li>The arithmetic mean of the green channels from the blue
21492 rows (mean_<wbr/>Gb) within W is computed.<wbr/></li>
21493 <li>The maximum ratio R of the two means is computed as follows:
21494 <code>R = max((mean_<wbr/>Gr + 1)/<wbr/>(mean_<wbr/>Gb + 1),<wbr/> (mean_<wbr/>Gb + 1)/<wbr/>(mean_<wbr/>Gr + 1))</code></li>
21496 <p>The ratio R is the green split divergence reported for this property,<wbr/>
21497 which represents how much the green channels differ in the mosaic
21498 pattern.<wbr/> This value is typically used to determine the treatment of
21499 the green mosaic channels when demosaicing.<wbr/></p>
21500 <p>The green split value can be roughly interpreted as follows:</p>
21502 <li>R < 1.<wbr/>03 is a negligible split (<3% divergence).<wbr/></li>
21503 <li>1.<wbr/>20 <= R >= 1.<wbr/>03 will require some software
21504 correction to avoid demosaic errors (3-20% divergence).<wbr/></li>
21505 <li>R > 1.<wbr/>20 will require strong software correction to produce
21506 a usuable image (>20% divergence).<wbr/></li>
21511 <tr class="entries_header">
21512 <th class="th_details" colspan="5">HAL Implementation Details</th>
21514 <tr class="entry_cont">
21515 <td class="entry_details" colspan="5">
21516 <p>The green split given may be a static value based on prior
21517 characterization of the camera sensor using the green split
21518 calculation method given here over a large,<wbr/> representative,<wbr/> sample
21519 set of images.<wbr/> Other methods of calculation that produce equivalent
21520 results,<wbr/> and can be interpreted in the same manner,<wbr/> may be used.<wbr/></p>
21524 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21525 <!-- end of entry -->
21528 <tr class="entry" id="dynamic_android.sensor.testPatternData">
21529 <td class="entry_name
21531 android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data
21533 <td class="entry_type">
21534 <span class="entry_type_name">int32</span>
21535 <span class="entry_type_container">x</span>
21537 <span class="entry_type_array">
21540 <span class="entry_type_visibility"> [public]</span>
21547 </td> <!-- entry_type -->
21549 <td class="entry_description">
21550 <p>A pixel <code>[R,<wbr/> G_<wbr/>even,<wbr/> G_<wbr/>odd,<wbr/> B]</code> that supplies the test pattern
21551 when <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a> is SOLID_<wbr/>COLOR.<wbr/></p>
21554 <td class="entry_units">
21557 <td class="entry_range">
21560 <td class="entry_tags">
21564 <tr class="entries_header">
21565 <th class="th_details" colspan="5">Details</th>
21567 <tr class="entry_cont">
21568 <td class="entry_details" colspan="5">
21569 <p>Each color channel is treated as an unsigned 32-bit integer.<wbr/>
21570 The camera device then uses the most significant X bits
21571 that correspond to how many bits are in its Bayer raw sensor
21573 <p>For example,<wbr/> a sensor with RAW10 Bayer output would use the
21574 10 most significant bits from each color channel.<wbr/></p>
21578 <tr class="entries_header">
21579 <th class="th_details" colspan="5">HAL Implementation Details</th>
21581 <tr class="entry_cont">
21582 <td class="entry_details" colspan="5">
21587 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21588 <!-- end of entry -->
21591 <tr class="entry" id="dynamic_android.sensor.testPatternMode">
21592 <td class="entry_name
21594 android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode
21596 <td class="entry_type">
21597 <span class="entry_type_name entry_type_name_enum">int32</span>
21599 <span class="entry_type_visibility"> [public]</span>
21605 <ul class="entry_type_enum">
21607 <span class="entry_type_enum_name">OFF</span>
21608 <span class="entry_type_enum_notes"><p>No test pattern mode is used,<wbr/> and the camera
21609 device returns captures from the image sensor.<wbr/></p>
21610 <p>This is the default if the key is not set.<wbr/></p></span>
21613 <span class="entry_type_enum_name">SOLID_COLOR</span>
21614 <span class="entry_type_enum_notes"><p>Each pixel in <code>[R,<wbr/> G_<wbr/>even,<wbr/> G_<wbr/>odd,<wbr/> B]</code> is replaced by its
21615 respective color channel provided in
21616 <a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a>.<wbr/></p>
21617 <p>For example:</p>
21618 <pre><code>android.<wbr/>testPatternData = [0,<wbr/> 0xFFFFFFFF,<wbr/> 0xFFFFFFFF,<wbr/> 0]
21620 <p>All green pixels are 100% green.<wbr/> All red/<wbr/>blue pixels are black.<wbr/></p>
21621 <pre><code>android.<wbr/>testPatternData = [0xFFFFFFFF,<wbr/> 0,<wbr/> 0xFFFFFFFF,<wbr/> 0]
21623 <p>All red pixels are 100% red.<wbr/> Only the odd green pixels
21624 are 100% green.<wbr/> All blue pixels are 100% black.<wbr/></p></span>
21627 <span class="entry_type_enum_name">COLOR_BARS</span>
21628 <span class="entry_type_enum_notes"><p>All pixel data is replaced with an 8-bar color pattern.<wbr/></p>
21629 <p>The vertical bars (left-to-right) are as follows:</p>
21631 <li>100% white</li>
21640 <p>In general the image would look like the following:</p>
21641 <pre><code>W Y C G M R B K
21646 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
21647 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
21648 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
21650 (B = Blue,<wbr/> K = Black)
21652 <p>Each bar should take up 1/<wbr/>8 of the sensor pixel array width.<wbr/>
21653 When this is not possible,<wbr/> the bar size should be rounded
21654 down to the nearest integer and the pattern can repeat
21655 on the right side.<wbr/></p>
21656 <p>Each bar's height must always take up the full sensor
21657 pixel array height.<wbr/></p>
21658 <p>Each pixel in this test pattern must be set to either
21659 0% intensity or 100% intensity.<wbr/></p></span>
21662 <span class="entry_type_enum_name">COLOR_BARS_FADE_TO_GRAY</span>
21663 <span class="entry_type_enum_notes"><p>The test pattern is similar to COLOR_<wbr/>BARS,<wbr/> except that
21664 each bar should start at its specified color at the top,<wbr/>
21665 and fade to gray at the bottom.<wbr/></p>
21666 <p>Furthermore each bar is further subdivided into a left and
21667 right half.<wbr/> The left half should have a smooth gradient,<wbr/>
21668 and the right half should have a quantized gradient.<wbr/></p>
21669 <p>In particular,<wbr/> the right half's should consist of blocks of the
21670 same color for 1/<wbr/>16th active sensor pixel array width.<wbr/></p>
21671 <p>The least significant bits in the quantized gradient should
21672 be copied from the most significant bits of the smooth gradient.<wbr/></p>
21673 <p>The height of each bar should always be a multiple of 128.<wbr/>
21674 When this is not the case,<wbr/> the pattern should repeat at the bottom
21675 of the image.<wbr/></p></span>
21678 <span class="entry_type_enum_name">PN9</span>
21679 <span class="entry_type_enum_notes"><p>All pixel data is replaced by a pseudo-random sequence
21680 generated from a PN9 512-bit sequence (typically implemented
21681 in hardware with a linear feedback shift register).<wbr/></p>
21682 <p>The generator should be reset at the beginning of each frame,<wbr/>
21683 and thus each subsequent raw frame with this test pattern should
21684 be exactly the same as the last.<wbr/></p></span>
21687 <span class="entry_type_enum_name">CUSTOM1</span>
21688 <span class="entry_type_enum_value">256</span>
21689 <span class="entry_type_enum_notes"><p>The first custom test pattern.<wbr/> All custom patterns that are
21690 available only on this camera device are at least this numeric
21692 <p>All of the custom test patterns will be static
21693 (that is the raw image must not vary from frame to frame).<wbr/></p></span>
21697 </td> <!-- entry_type -->
21699 <td class="entry_description">
21700 <p>When enabled,<wbr/> the sensor sends a test pattern instead of
21701 doing a real exposure from the camera.<wbr/></p>
21704 <td class="entry_units">
21707 <td class="entry_range">
21708 <p><a href="#static_android.sensor.availableTestPatternModes">android.<wbr/>sensor.<wbr/>available<wbr/>Test<wbr/>Pattern<wbr/>Modes</a></p>
21711 <td class="entry_tags">
21715 <tr class="entries_header">
21716 <th class="th_details" colspan="5">Details</th>
21718 <tr class="entry_cont">
21719 <td class="entry_details" colspan="5">
21720 <p>When a test pattern is enabled,<wbr/> all manual sensor controls specified
21721 by android.<wbr/>sensor.<wbr/>* will be ignored.<wbr/> All other controls should
21722 work as normal.<wbr/></p>
21723 <p>For example,<wbr/> if manual flash is enabled,<wbr/> flash firing should still
21724 occur (and that the test pattern remain unmodified,<wbr/> since the flash
21725 would not actually affect it).<wbr/></p>
21726 <p>Defaults to OFF.<wbr/></p>
21730 <tr class="entries_header">
21731 <th class="th_details" colspan="5">HAL Implementation Details</th>
21733 <tr class="entry_cont">
21734 <td class="entry_details" colspan="5">
21735 <p>All test patterns are specified in the Bayer domain.<wbr/></p>
21736 <p>The HAL may choose to substitute test patterns from the sensor
21737 with test patterns from on-device memory.<wbr/> In that case,<wbr/> it should be
21738 indistinguishable to the ISP whether the data came from the
21739 sensor interconnect bus (such as CSI2) or memory.<wbr/></p>
21743 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21744 <!-- end of entry -->
21747 <tr class="entry" id="dynamic_android.sensor.rollingShutterSkew">
21748 <td class="entry_name
21750 android.<wbr/>sensor.<wbr/>rolling<wbr/>Shutter<wbr/>Skew
21752 <td class="entry_type">
21753 <span class="entry_type_name">int64</span>
21755 <span class="entry_type_visibility"> [public]</span>
21758 <span class="entry_type_hwlevel">[limited] </span>
21763 </td> <!-- entry_type -->
21765 <td class="entry_description">
21766 <p>Duration between the start of first row exposure
21767 and the start of last row exposure.<wbr/></p>
21770 <td class="entry_units">
21774 <td class="entry_range">
21775 <p>>= 0 and <
21776 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>.<wbr/></p>
21779 <td class="entry_tags">
21780 <ul class="entry_tags">
21781 <li><a href="#tag_V1">V1</a></li>
21786 <tr class="entries_header">
21787 <th class="th_details" colspan="5">Details</th>
21789 <tr class="entry_cont">
21790 <td class="entry_details" colspan="5">
21791 <p>This is the exposure time skew between the first and last
21792 row exposure start times.<wbr/> The first row and the last row are
21793 the first and last rows inside of the
21794 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
21795 <p>For typical camera sensors that use rolling shutters,<wbr/> this is also equivalent
21796 to the frame readout time.<wbr/></p>
21800 <tr class="entries_header">
21801 <th class="th_details" colspan="5">HAL Implementation Details</th>
21803 <tr class="entry_cont">
21804 <td class="entry_details" colspan="5">
21805 <p>The HAL must report <code>0</code> if the sensor is using global shutter,<wbr/> where all pixels begin
21806 exposure at the same time.<wbr/></p>
21810 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21811 <!-- end of entry -->
21814 <tr class="entry" id="dynamic_android.sensor.dynamicBlackLevel">
21815 <td class="entry_name
21817 android.<wbr/>sensor.<wbr/>dynamic<wbr/>Black<wbr/>Level
21819 <td class="entry_type">
21820 <span class="entry_type_name">float</span>
21821 <span class="entry_type_container">x</span>
21823 <span class="entry_type_array">
21826 <span class="entry_type_visibility"> [public]</span>
21831 <div class="entry_type_notes">2x2 raw count block</div>
21834 </td> <!-- entry_type -->
21836 <td class="entry_description">
21837 <p>A per-frame dynamic black level offset for each of the color filter
21838 arrangement (CFA) mosaic channels.<wbr/></p>
21841 <td class="entry_units">
21844 <td class="entry_range">
21845 <p>>= 0 for each.<wbr/></p>
21848 <td class="entry_tags">
21849 <ul class="entry_tags">
21850 <li><a href="#tag_RAW">RAW</a></li>
21855 <tr class="entries_header">
21856 <th class="th_details" colspan="5">Details</th>
21858 <tr class="entry_cont">
21859 <td class="entry_details" colspan="5">
21860 <p>Camera sensor black levels may vary dramatically for different
21861 capture settings (e.<wbr/>g.<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>).<wbr/> The fixed black
21862 level reported by <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> may be too
21863 inaccurate to represent the actual value on a per-frame basis.<wbr/> The
21864 camera device internal pipeline relies on reliable black level values
21865 to process the raw images appropriately.<wbr/> To get the best image
21866 quality,<wbr/> the camera device may choose to estimate the per frame black
21867 level values either based on optically shielded black regions
21868 (<a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a>) or its internal model.<wbr/></p>
21869 <p>This key reports the camera device estimated per-frame zero light
21870 value for each of the CFA mosaic channels in the camera sensor.<wbr/> The
21871 <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> may only represent a coarse
21872 approximation of the actual black level values.<wbr/> This value is the
21873 black level used in camera device internal image processing pipeline
21874 and generally more accurate than the fixed black level values.<wbr/>
21875 However,<wbr/> since they are estimated values by the camera device,<wbr/> they
21876 may not be as accurate as the black level values calculated from the
21877 optical black pixels reported by <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a>.<wbr/></p>
21878 <p>The values are given in the same order as channels listed for the CFA
21879 layout key (see <a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a>),<wbr/> i.<wbr/>e.<wbr/> the
21880 nth value given corresponds to the black level offset for the nth
21881 color channel listed in the CFA.<wbr/></p>
21882 <p>This key will be available if <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> is
21883 available or the camera device advertises this key via
21884 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureResultKeys">CameraCharacteristics#getAvailableCaptureResultKeys</a>.<wbr/></p>
21888 <tr class="entries_header">
21889 <th class="th_details" colspan="5">HAL Implementation Details</th>
21891 <tr class="entry_cont">
21892 <td class="entry_details" colspan="5">
21893 <p>The values are given in row-column scan order,<wbr/> with the first value
21894 corresponding to the element of the CFA in row=0,<wbr/> column=0.<wbr/></p>
21898 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21899 <!-- end of entry -->
21902 <tr class="entry" id="dynamic_android.sensor.dynamicWhiteLevel">
21903 <td class="entry_name
21905 android.<wbr/>sensor.<wbr/>dynamic<wbr/>White<wbr/>Level
21907 <td class="entry_type">
21908 <span class="entry_type_name">int32</span>
21910 <span class="entry_type_visibility"> [public]</span>
21917 </td> <!-- entry_type -->
21919 <td class="entry_description">
21920 <p>Maximum raw value output by sensor for this frame.<wbr/></p>
21923 <td class="entry_units">
21926 <td class="entry_range">
21930 <td class="entry_tags">
21931 <ul class="entry_tags">
21932 <li><a href="#tag_RAW">RAW</a></li>
21937 <tr class="entries_header">
21938 <th class="th_details" colspan="5">Details</th>
21940 <tr class="entry_cont">
21941 <td class="entry_details" colspan="5">
21942 <p>Since the <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> may change for different
21943 capture settings (e.<wbr/>g.,<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>),<wbr/> the white
21944 level will change accordingly.<wbr/> This key is similar to
21945 <a href="#static_android.sensor.info.whiteLevel">android.<wbr/>sensor.<wbr/>info.<wbr/>white<wbr/>Level</a>,<wbr/> but specifies the camera device
21946 estimated white level for each frame.<wbr/></p>
21947 <p>This key will be available if <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> is
21948 available or the camera device advertises this key via
21949 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>.<wbr/></p>
21953 <tr class="entries_header">
21954 <th class="th_details" colspan="5">HAL Implementation Details</th>
21956 <tr class="entry_cont">
21957 <td class="entry_details" colspan="5">
21958 <p>The full bit depth of the sensor must be available in the raw data,<wbr/>
21959 so the value for linear sensors should not be significantly lower
21960 than maximum raw value supported,<wbr/> i.<wbr/>e.<wbr/> 2^(sensor bits per pixel).<wbr/></p>
21964 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21965 <!-- end of entry -->
21969 <!-- end of kind -->
21972 <!-- end of section -->
21973 <tr><td colspan="6" id="section_shading" class="section">shading</td></tr>
21976 <tr><td colspan="6" class="kind">controls</td></tr>
21978 <thead class="entries_header">
21980 <th class="th_name">Property Name</th>
21981 <th class="th_type">Type</th>
21982 <th class="th_description">Description</th>
21983 <th class="th_units">Units</th>
21984 <th class="th_range">Range</th>
21985 <th class="th_tags">Tags</th>
22000 <tr class="entry" id="controls_android.shading.mode">
22001 <td class="entry_name
22003 android.<wbr/>shading.<wbr/>mode
22005 <td class="entry_type">
22006 <span class="entry_type_name entry_type_name_enum">byte</span>
22008 <span class="entry_type_visibility"> [public]</span>
22011 <span class="entry_type_hwlevel">[full] </span>
22015 <ul class="entry_type_enum">
22017 <span class="entry_type_enum_name">OFF</span>
22018 <span class="entry_type_enum_notes"><p>No lens shading correction is applied.<wbr/></p></span>
22021 <span class="entry_type_enum_name">FAST</span>
22022 <span class="entry_type_enum_notes"><p>Apply lens shading corrections,<wbr/> without slowing
22023 frame rate relative to sensor raw output</p></span>
22026 <span class="entry_type_enum_name">HIGH_QUALITY</span>
22027 <span class="entry_type_enum_notes"><p>Apply high-quality lens shading correction,<wbr/> at the
22028 cost of possibly reduced frame rate.<wbr/></p></span>
22032 </td> <!-- entry_type -->
22034 <td class="entry_description">
22035 <p>Quality of lens shading correction applied
22036 to the image data.<wbr/></p>
22039 <td class="entry_units">
22042 <td class="entry_range">
22043 <p><a href="#static_android.shading.availableModes">android.<wbr/>shading.<wbr/>available<wbr/>Modes</a></p>
22046 <td class="entry_tags">
22050 <tr class="entries_header">
22051 <th class="th_details" colspan="5">Details</th>
22053 <tr class="entry_cont">
22054 <td class="entry_details" colspan="5">
22055 <p>When set to OFF mode,<wbr/> no lens shading correction will be applied by the
22056 camera device,<wbr/> and an identity lens shading map data will be provided
22057 if <code><a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a> == ON</code>.<wbr/> For example,<wbr/> for lens
22058 shading map with size of <code>[ 4,<wbr/> 3 ]</code>,<wbr/>
22059 the output <a href="#dynamic_android.statistics.lensShadingCorrectionMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Correction<wbr/>Map</a> for this case will be an identity
22060 map shown below:</p>
22061 <pre><code>[ 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/>
22062 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/>
22063 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/>
22064 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/>
22065 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/>
22066 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0 ]
22068 <p>When set to other modes,<wbr/> lens shading correction will be applied by the camera
22069 device.<wbr/> Applications can request lens shading map data by setting
22070 <a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a> to ON,<wbr/> and then the camera device will provide lens
22071 shading map data in <a href="#dynamic_android.statistics.lensShadingCorrectionMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Correction<wbr/>Map</a>; the returned shading map
22072 data will be the one applied by the camera device for this capture request.<wbr/></p>
22073 <p>The shading map data may depend on the auto-exposure (AE) and AWB statistics,<wbr/> therefore
22074 the reliability of the map data may be affected by the AE and AWB algorithms.<wbr/> When AE and
22075 AWB are in AUTO modes(<a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>!=</code> OFF and <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> <code>!=</code>
22076 OFF),<wbr/> to get best results,<wbr/> it is recommended that the applications wait for the AE and AWB
22077 to be converged before using the returned shading map data.<wbr/></p>
22082 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22083 <!-- end of entry -->
22086 <tr class="entry" id="controls_android.shading.strength">
22087 <td class="entry_name
22089 android.<wbr/>shading.<wbr/>strength
22091 <td class="entry_type">
22092 <span class="entry_type_name">byte</span>
22094 <span class="entry_type_visibility"> [system]</span>
22101 </td> <!-- entry_type -->
22103 <td class="entry_description">
22104 <p>Control the amount of shading correction
22105 applied to the images</p>
22108 <td class="entry_units">
22109 unitless: 1-10; 10 is full shading
22113 <td class="entry_range">
22116 <td class="entry_tags">
22117 <ul class="entry_tags">
22118 <li><a href="#tag_FUTURE">FUTURE</a></li>
22125 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22126 <!-- end of entry -->
22130 <!-- end of kind -->
22132 <tr><td colspan="6" class="kind">dynamic</td></tr>
22134 <thead class="entries_header">
22136 <th class="th_name">Property Name</th>
22137 <th class="th_type">Type</th>
22138 <th class="th_description">Description</th>
22139 <th class="th_units">Units</th>
22140 <th class="th_range">Range</th>
22141 <th class="th_tags">Tags</th>
22156 <tr class="entry" id="dynamic_android.shading.mode">
22157 <td class="entry_name
22159 android.<wbr/>shading.<wbr/>mode
22161 <td class="entry_type">
22162 <span class="entry_type_name entry_type_name_enum">byte</span>
22164 <span class="entry_type_visibility"> [public]</span>
22167 <span class="entry_type_hwlevel">[full] </span>
22171 <ul class="entry_type_enum">
22173 <span class="entry_type_enum_name">OFF</span>
22174 <span class="entry_type_enum_notes"><p>No lens shading correction is applied.<wbr/></p></span>
22177 <span class="entry_type_enum_name">FAST</span>
22178 <span class="entry_type_enum_notes"><p>Apply lens shading corrections,<wbr/> without slowing
22179 frame rate relative to sensor raw output</p></span>
22182 <span class="entry_type_enum_name">HIGH_QUALITY</span>
22183 <span class="entry_type_enum_notes"><p>Apply high-quality lens shading correction,<wbr/> at the
22184 cost of possibly reduced frame rate.<wbr/></p></span>
22188 </td> <!-- entry_type -->
22190 <td class="entry_description">
22191 <p>Quality of lens shading correction applied
22192 to the image data.<wbr/></p>
22195 <td class="entry_units">
22198 <td class="entry_range">
22199 <p><a href="#static_android.shading.availableModes">android.<wbr/>shading.<wbr/>available<wbr/>Modes</a></p>
22202 <td class="entry_tags">
22206 <tr class="entries_header">
22207 <th class="th_details" colspan="5">Details</th>
22209 <tr class="entry_cont">
22210 <td class="entry_details" colspan="5">
22211 <p>When set to OFF mode,<wbr/> no lens shading correction will be applied by the
22212 camera device,<wbr/> and an identity lens shading map data will be provided
22213 if <code><a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a> == ON</code>.<wbr/> For example,<wbr/> for lens
22214 shading map with size of <code>[ 4,<wbr/> 3 ]</code>,<wbr/>
22215 the output <a href="#dynamic_android.statistics.lensShadingCorrectionMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Correction<wbr/>Map</a> for this case will be an identity
22216 map shown below:</p>
22217 <pre><code>[ 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/>
22218 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/>
22219 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/>
22220 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/>
22221 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/>
22222 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0 ]
22224 <p>When set to other modes,<wbr/> lens shading correction will be applied by the camera
22225 device.<wbr/> Applications can request lens shading map data by setting
22226 <a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a> to ON,<wbr/> and then the camera device will provide lens
22227 shading map data in <a href="#dynamic_android.statistics.lensShadingCorrectionMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Correction<wbr/>Map</a>; the returned shading map
22228 data will be the one applied by the camera device for this capture request.<wbr/></p>
22229 <p>The shading map data may depend on the auto-exposure (AE) and AWB statistics,<wbr/> therefore
22230 the reliability of the map data may be affected by the AE and AWB algorithms.<wbr/> When AE and
22231 AWB are in AUTO modes(<a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>!=</code> OFF and <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> <code>!=</code>
22232 OFF),<wbr/> to get best results,<wbr/> it is recommended that the applications wait for the AE and AWB
22233 to be converged before using the returned shading map data.<wbr/></p>
22238 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22239 <!-- end of entry -->
22243 <!-- end of kind -->
22245 <tr><td colspan="6" class="kind">static</td></tr>
22247 <thead class="entries_header">
22249 <th class="th_name">Property Name</th>
22250 <th class="th_type">Type</th>
22251 <th class="th_description">Description</th>
22252 <th class="th_units">Units</th>
22253 <th class="th_range">Range</th>
22254 <th class="th_tags">Tags</th>
22269 <tr class="entry" id="static_android.shading.availableModes">
22270 <td class="entry_name
22272 android.<wbr/>shading.<wbr/>available<wbr/>Modes
22274 <td class="entry_type">
22275 <span class="entry_type_name">byte</span>
22276 <span class="entry_type_container">x</span>
22278 <span class="entry_type_array">
22281 <span class="entry_type_visibility"> [public as enumList]</span>
22284 <span class="entry_type_hwlevel">[legacy] </span>
22287 <div class="entry_type_notes">List of enums (android.<wbr/>shading.<wbr/>mode).<wbr/></div>
22290 </td> <!-- entry_type -->
22292 <td class="entry_description">
22293 <p>List of lens shading modes for <a href="#controls_android.shading.mode">android.<wbr/>shading.<wbr/>mode</a> that are supported by this camera device.<wbr/></p>
22296 <td class="entry_units">
22299 <td class="entry_range">
22300 <p>Any value listed in <a href="#controls_android.shading.mode">android.<wbr/>shading.<wbr/>mode</a></p>
22303 <td class="entry_tags">
22307 <tr class="entries_header">
22308 <th class="th_details" colspan="5">Details</th>
22310 <tr class="entry_cont">
22311 <td class="entry_details" colspan="5">
22312 <p>This list contains lens shading modes that can be set for the camera device.<wbr/>
22313 Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always
22314 list OFF and FAST mode.<wbr/> This includes all FULL level devices.<wbr/>
22315 LEGACY devices will always only support FAST mode.<wbr/></p>
22319 <tr class="entries_header">
22320 <th class="th_details" colspan="5">HAL Implementation Details</th>
22322 <tr class="entry_cont">
22323 <td class="entry_details" colspan="5">
22324 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if lens shading correction control is
22325 available on the camera device,<wbr/> but the underlying implementation can be the same for
22326 both modes.<wbr/> That is,<wbr/> if the highest quality implementation on the camera device does not
22327 slow down capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
22331 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22332 <!-- end of entry -->
22336 <!-- end of kind -->
22339 <!-- end of section -->
22340 <tr><td colspan="6" id="section_statistics" class="section">statistics</td></tr>
22343 <tr><td colspan="6" class="kind">controls</td></tr>
22345 <thead class="entries_header">
22347 <th class="th_name">Property Name</th>
22348 <th class="th_type">Type</th>
22349 <th class="th_description">Description</th>
22350 <th class="th_units">Units</th>
22351 <th class="th_range">Range</th>
22352 <th class="th_tags">Tags</th>
22367 <tr class="entry" id="controls_android.statistics.faceDetectMode">
22368 <td class="entry_name
22370 android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode
22372 <td class="entry_type">
22373 <span class="entry_type_name entry_type_name_enum">byte</span>
22375 <span class="entry_type_visibility"> [public]</span>
22378 <span class="entry_type_hwlevel">[legacy] </span>
22382 <ul class="entry_type_enum">
22384 <span class="entry_type_enum_name">OFF</span>
22385 <span class="entry_type_enum_notes"><p>Do not include face detection statistics in capture
22386 results.<wbr/></p></span>
22389 <span class="entry_type_enum_name">SIMPLE</span>
22390 <span class="entry_type_enum_optional">[optional]</span>
22391 <span class="entry_type_enum_notes"><p>Return face rectangle and confidence values only.<wbr/></p></span>
22394 <span class="entry_type_enum_name">FULL</span>
22395 <span class="entry_type_enum_optional">[optional]</span>
22396 <span class="entry_type_enum_notes"><p>Return all face
22397 metadata.<wbr/></p>
22398 <p>In this mode,<wbr/> face rectangles,<wbr/> scores,<wbr/> landmarks,<wbr/> and face IDs are all valid.<wbr/></p></span>
22402 </td> <!-- entry_type -->
22404 <td class="entry_description">
22405 <p>Operating mode for the face detector
22409 <td class="entry_units">
22412 <td class="entry_range">
22413 <p><a href="#static_android.statistics.info.availableFaceDetectModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Face<wbr/>Detect<wbr/>Modes</a></p>
22416 <td class="entry_tags">
22417 <ul class="entry_tags">
22418 <li><a href="#tag_BC">BC</a></li>
22423 <tr class="entries_header">
22424 <th class="th_details" colspan="5">Details</th>
22426 <tr class="entry_cont">
22427 <td class="entry_details" colspan="5">
22428 <p>Whether face detection is enabled,<wbr/> and whether it
22429 should output just the basic fields or the full set of
22434 <tr class="entries_header">
22435 <th class="th_details" colspan="5">HAL Implementation Details</th>
22437 <tr class="entry_cont">
22438 <td class="entry_details" colspan="5">
22439 <p>SIMPLE mode must fill in <a href="#dynamic_android.statistics.faceRectangles">android.<wbr/>statistics.<wbr/>face<wbr/>Rectangles</a> and
22440 <a href="#dynamic_android.statistics.faceScores">android.<wbr/>statistics.<wbr/>face<wbr/>Scores</a>.<wbr/>
22441 FULL mode must also fill in <a href="#dynamic_android.statistics.faceIds">android.<wbr/>statistics.<wbr/>face<wbr/>Ids</a>,<wbr/> and
22442 <a href="#dynamic_android.statistics.faceLandmarks">android.<wbr/>statistics.<wbr/>face<wbr/>Landmarks</a>.<wbr/></p>
22446 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22447 <!-- end of entry -->
22450 <tr class="entry" id="controls_android.statistics.histogramMode">
22451 <td class="entry_name
22453 android.<wbr/>statistics.<wbr/>histogram<wbr/>Mode
22455 <td class="entry_type">
22456 <span class="entry_type_name entry_type_name_enum">byte</span>
22458 <span class="entry_type_visibility"> [system as boolean]</span>
22464 <ul class="entry_type_enum">
22466 <span class="entry_type_enum_name">OFF</span>
22469 <span class="entry_type_enum_name">ON</span>
22473 </td> <!-- entry_type -->
22475 <td class="entry_description">
22476 <p>Operating mode for histogram
22480 <td class="entry_units">
22483 <td class="entry_range">
22486 <td class="entry_tags">
22487 <ul class="entry_tags">
22488 <li><a href="#tag_FUTURE">FUTURE</a></li>
22495 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22496 <!-- end of entry -->
22499 <tr class="entry" id="controls_android.statistics.sharpnessMapMode">
22500 <td class="entry_name
22502 android.<wbr/>statistics.<wbr/>sharpness<wbr/>Map<wbr/>Mode
22504 <td class="entry_type">
22505 <span class="entry_type_name entry_type_name_enum">byte</span>
22507 <span class="entry_type_visibility"> [system as boolean]</span>
22513 <ul class="entry_type_enum">
22515 <span class="entry_type_enum_name">OFF</span>
22518 <span class="entry_type_enum_name">ON</span>
22522 </td> <!-- entry_type -->
22524 <td class="entry_description">
22525 <p>Operating mode for sharpness map
22529 <td class="entry_units">
22532 <td class="entry_range">
22535 <td class="entry_tags">
22536 <ul class="entry_tags">
22537 <li><a href="#tag_FUTURE">FUTURE</a></li>
22544 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22545 <!-- end of entry -->
22548 <tr class="entry" id="controls_android.statistics.hotPixelMapMode">
22549 <td class="entry_name
22551 android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map<wbr/>Mode
22553 <td class="entry_type">
22554 <span class="entry_type_name entry_type_name_enum">byte</span>
22556 <span class="entry_type_visibility"> [public as boolean]</span>
22562 <ul class="entry_type_enum">
22564 <span class="entry_type_enum_name">OFF</span>
22565 <span class="entry_type_enum_notes"><p>Hot pixel map production is disabled.<wbr/></p></span>
22568 <span class="entry_type_enum_name">ON</span>
22569 <span class="entry_type_enum_notes"><p>Hot pixel map production is enabled.<wbr/></p></span>
22573 </td> <!-- entry_type -->
22575 <td class="entry_description">
22576 <p>Operating mode for hot pixel map generation.<wbr/></p>
22579 <td class="entry_units">
22582 <td class="entry_range">
22583 <p><a href="#static_android.statistics.info.availableHotPixelMapModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Map<wbr/>Modes</a></p>
22586 <td class="entry_tags">
22587 <ul class="entry_tags">
22588 <li><a href="#tag_V1">V1</a></li>
22589 <li><a href="#tag_RAW">RAW</a></li>
22594 <tr class="entries_header">
22595 <th class="th_details" colspan="5">Details</th>
22597 <tr class="entry_cont">
22598 <td class="entry_details" colspan="5">
22599 <p>If set to <code>true</code>,<wbr/> a hot pixel map is returned in <a href="#dynamic_android.statistics.hotPixelMap">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map</a>.<wbr/>
22600 If set to <code>false</code>,<wbr/> no hot pixel map will be returned.<wbr/></p>
22605 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22606 <!-- end of entry -->
22609 <tr class="entry" id="controls_android.statistics.lensShadingMapMode">
22610 <td class="entry_name
22612 android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode
22614 <td class="entry_type">
22615 <span class="entry_type_name entry_type_name_enum">byte</span>
22617 <span class="entry_type_visibility"> [public]</span>
22620 <span class="entry_type_hwlevel">[full] </span>
22624 <ul class="entry_type_enum">
22626 <span class="entry_type_enum_name">OFF</span>
22627 <span class="entry_type_enum_notes"><p>Do not include a lens shading map in the capture result.<wbr/></p></span>
22630 <span class="entry_type_enum_name">ON</span>
22631 <span class="entry_type_enum_notes"><p>Include a lens shading map in the capture result.<wbr/></p></span>
22635 </td> <!-- entry_type -->
22637 <td class="entry_description">
22638 <p>Whether the camera device will output the lens
22639 shading map in output result metadata.<wbr/></p>
22642 <td class="entry_units">
22645 <td class="entry_range">
22646 <p><a href="#static_android.statistics.info.availableLensShadingMapModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Lens<wbr/>Shading<wbr/>Map<wbr/>Modes</a></p>
22649 <td class="entry_tags">
22650 <ul class="entry_tags">
22651 <li><a href="#tag_RAW">RAW</a></li>
22656 <tr class="entries_header">
22657 <th class="th_details" colspan="5">Details</th>
22659 <tr class="entry_cont">
22660 <td class="entry_details" colspan="5">
22661 <p>When set to ON,<wbr/>
22662 <a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> will be provided in
22663 the output result metadata.<wbr/></p>
22664 <p>ON is always supported on devices with the RAW capability.<wbr/></p>
22669 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22670 <!-- end of entry -->
22674 <!-- end of kind -->
22676 <tr><td colspan="6" class="kind">static</td></tr>
22678 <thead class="entries_header">
22680 <th class="th_name">Property Name</th>
22681 <th class="th_type">Type</th>
22682 <th class="th_description">Description</th>
22683 <th class="th_units">Units</th>
22684 <th class="th_range">Range</th>
22685 <th class="th_tags">Tags</th>
22702 <tr class="entry" id="static_android.statistics.info.availableFaceDetectModes">
22703 <td class="entry_name
22705 android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Face<wbr/>Detect<wbr/>Modes
22707 <td class="entry_type">
22708 <span class="entry_type_name">byte</span>
22709 <span class="entry_type_container">x</span>
22711 <span class="entry_type_array">
22714 <span class="entry_type_visibility"> [public as enumList]</span>
22717 <span class="entry_type_hwlevel">[legacy] </span>
22720 <div class="entry_type_notes">List of enums from android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</div>
22723 </td> <!-- entry_type -->
22725 <td class="entry_description">
22726 <p>List of face detection modes for <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> that are
22727 supported by this camera device.<wbr/></p>
22730 <td class="entry_units">
22733 <td class="entry_range">
22734 <p>Any value listed in <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a></p>
22737 <td class="entry_tags">
22741 <tr class="entries_header">
22742 <th class="th_details" colspan="5">Details</th>
22744 <tr class="entry_cont">
22745 <td class="entry_details" colspan="5">
22746 <p>OFF is always supported.<wbr/></p>
22751 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22752 <!-- end of entry -->
22755 <tr class="entry" id="static_android.statistics.info.histogramBucketCount">
22756 <td class="entry_name
22758 android.<wbr/>statistics.<wbr/>info.<wbr/>histogram<wbr/>Bucket<wbr/>Count
22760 <td class="entry_type">
22761 <span class="entry_type_name">int32</span>
22763 <span class="entry_type_visibility"> [system]</span>
22770 </td> <!-- entry_type -->
22772 <td class="entry_description">
22773 <p>Number of histogram buckets
22777 <td class="entry_units">
22780 <td class="entry_range">
22784 <td class="entry_tags">
22785 <ul class="entry_tags">
22786 <li><a href="#tag_FUTURE">FUTURE</a></li>
22793 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22794 <!-- end of entry -->
22797 <tr class="entry" id="static_android.statistics.info.maxFaceCount">
22798 <td class="entry_name
22800 android.<wbr/>statistics.<wbr/>info.<wbr/>max<wbr/>Face<wbr/>Count
22802 <td class="entry_type">
22803 <span class="entry_type_name">int32</span>
22805 <span class="entry_type_visibility"> [public]</span>
22808 <span class="entry_type_hwlevel">[legacy] </span>
22813 </td> <!-- entry_type -->
22815 <td class="entry_description">
22816 <p>The maximum number of simultaneously detectable
22820 <td class="entry_units">
22823 <td class="entry_range">
22824 <p>0 for cameras without available face detection; otherwise:
22825 <code>>=4</code> for LIMITED or FULL hwlevel devices or
22826 <code>>0</code> for LEGACY devices.<wbr/></p>
22829 <td class="entry_tags">
22830 <ul class="entry_tags">
22831 <li><a href="#tag_BC">BC</a></li>
22838 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22839 <!-- end of entry -->
22842 <tr class="entry" id="static_android.statistics.info.maxHistogramCount">
22843 <td class="entry_name
22845 android.<wbr/>statistics.<wbr/>info.<wbr/>max<wbr/>Histogram<wbr/>Count
22847 <td class="entry_type">
22848 <span class="entry_type_name">int32</span>
22850 <span class="entry_type_visibility"> [system]</span>
22857 </td> <!-- entry_type -->
22859 <td class="entry_description">
22860 <p>Maximum value possible for a histogram
22864 <td class="entry_units">
22867 <td class="entry_range">
22870 <td class="entry_tags">
22871 <ul class="entry_tags">
22872 <li><a href="#tag_FUTURE">FUTURE</a></li>
22879 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22880 <!-- end of entry -->
22883 <tr class="entry" id="static_android.statistics.info.maxSharpnessMapValue">
22884 <td class="entry_name
22886 android.<wbr/>statistics.<wbr/>info.<wbr/>max<wbr/>Sharpness<wbr/>Map<wbr/>Value
22888 <td class="entry_type">
22889 <span class="entry_type_name">int32</span>
22891 <span class="entry_type_visibility"> [system]</span>
22898 </td> <!-- entry_type -->
22900 <td class="entry_description">
22901 <p>Maximum value possible for a sharpness map
22905 <td class="entry_units">
22908 <td class="entry_range">
22911 <td class="entry_tags">
22912 <ul class="entry_tags">
22913 <li><a href="#tag_FUTURE">FUTURE</a></li>
22920 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22921 <!-- end of entry -->
22924 <tr class="entry" id="static_android.statistics.info.sharpnessMapSize">
22925 <td class="entry_name
22927 android.<wbr/>statistics.<wbr/>info.<wbr/>sharpness<wbr/>Map<wbr/>Size
22929 <td class="entry_type">
22930 <span class="entry_type_name">int32</span>
22931 <span class="entry_type_container">x</span>
22933 <span class="entry_type_array">
22936 <span class="entry_type_visibility"> [system as size]</span>
22941 <div class="entry_type_notes">width x height</div>
22944 </td> <!-- entry_type -->
22946 <td class="entry_description">
22947 <p>Dimensions of the sharpness
22951 <td class="entry_units">
22954 <td class="entry_range">
22955 <p>Must be at least 32 x 32</p>
22958 <td class="entry_tags">
22959 <ul class="entry_tags">
22960 <li><a href="#tag_FUTURE">FUTURE</a></li>
22967 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22968 <!-- end of entry -->
22971 <tr class="entry" id="static_android.statistics.info.availableHotPixelMapModes">
22972 <td class="entry_name
22974 android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Map<wbr/>Modes
22976 <td class="entry_type">
22977 <span class="entry_type_name">byte</span>
22978 <span class="entry_type_container">x</span>
22980 <span class="entry_type_array">
22983 <span class="entry_type_visibility"> [public as boolean]</span>
22988 <div class="entry_type_notes">list of enums</div>
22991 </td> <!-- entry_type -->
22993 <td class="entry_description">
22994 <p>List of hot pixel map output modes for <a href="#controls_android.statistics.hotPixelMapMode">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map<wbr/>Mode</a> that are
22995 supported by this camera device.<wbr/></p>
22998 <td class="entry_units">
23001 <td class="entry_range">
23002 <p>Any value listed in <a href="#controls_android.statistics.hotPixelMapMode">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map<wbr/>Mode</a></p>
23005 <td class="entry_tags">
23006 <ul class="entry_tags">
23007 <li><a href="#tag_V1">V1</a></li>
23008 <li><a href="#tag_RAW">RAW</a></li>
23013 <tr class="entries_header">
23014 <th class="th_details" colspan="5">Details</th>
23016 <tr class="entry_cont">
23017 <td class="entry_details" colspan="5">
23018 <p>If no hotpixel map output is available for this camera device,<wbr/> this will contain only
23019 <code>false</code>.<wbr/></p>
23020 <p>ON is always supported on devices with the RAW capability.<wbr/></p>
23025 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23026 <!-- end of entry -->
23029 <tr class="entry" id="static_android.statistics.info.availableLensShadingMapModes">
23030 <td class="entry_name
23032 android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Lens<wbr/>Shading<wbr/>Map<wbr/>Modes
23034 <td class="entry_type">
23035 <span class="entry_type_name">byte</span>
23036 <span class="entry_type_container">x</span>
23038 <span class="entry_type_array">
23041 <span class="entry_type_visibility"> [public as enumList]</span>
23046 <div class="entry_type_notes">list of enums</div>
23049 </td> <!-- entry_type -->
23051 <td class="entry_description">
23052 <p>List of lens shading map output modes for <a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a> that
23053 are supported by this camera device.<wbr/></p>
23056 <td class="entry_units">
23059 <td class="entry_range">
23060 <p>Any value listed in <a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a></p>
23063 <td class="entry_tags">
23067 <tr class="entries_header">
23068 <th class="th_details" colspan="5">Details</th>
23070 <tr class="entry_cont">
23071 <td class="entry_details" colspan="5">
23072 <p>If no lens shading map output is available for this camera device,<wbr/> this key will
23073 contain only OFF.<wbr/></p>
23074 <p>ON is always supported on devices with the RAW capability.<wbr/>
23075 LEGACY mode devices will always only support OFF.<wbr/></p>
23080 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23081 <!-- end of entry -->
23088 <!-- end of kind -->
23090 <tr><td colspan="6" class="kind">dynamic</td></tr>
23092 <thead class="entries_header">
23094 <th class="th_name">Property Name</th>
23095 <th class="th_type">Type</th>
23096 <th class="th_description">Description</th>
23097 <th class="th_units">Units</th>
23098 <th class="th_range">Range</th>
23099 <th class="th_tags">Tags</th>
23114 <tr class="entry" id="dynamic_android.statistics.faceDetectMode">
23115 <td class="entry_name
23117 android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode
23119 <td class="entry_type">
23120 <span class="entry_type_name entry_type_name_enum">byte</span>
23122 <span class="entry_type_visibility"> [public]</span>
23125 <span class="entry_type_hwlevel">[legacy] </span>
23129 <ul class="entry_type_enum">
23131 <span class="entry_type_enum_name">OFF</span>
23132 <span class="entry_type_enum_notes"><p>Do not include face detection statistics in capture
23133 results.<wbr/></p></span>
23136 <span class="entry_type_enum_name">SIMPLE</span>
23137 <span class="entry_type_enum_optional">[optional]</span>
23138 <span class="entry_type_enum_notes"><p>Return face rectangle and confidence values only.<wbr/></p></span>
23141 <span class="entry_type_enum_name">FULL</span>
23142 <span class="entry_type_enum_optional">[optional]</span>
23143 <span class="entry_type_enum_notes"><p>Return all face
23144 metadata.<wbr/></p>
23145 <p>In this mode,<wbr/> face rectangles,<wbr/> scores,<wbr/> landmarks,<wbr/> and face IDs are all valid.<wbr/></p></span>
23149 </td> <!-- entry_type -->
23151 <td class="entry_description">
23152 <p>Operating mode for the face detector
23156 <td class="entry_units">
23159 <td class="entry_range">
23160 <p><a href="#static_android.statistics.info.availableFaceDetectModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Face<wbr/>Detect<wbr/>Modes</a></p>
23163 <td class="entry_tags">
23164 <ul class="entry_tags">
23165 <li><a href="#tag_BC">BC</a></li>
23170 <tr class="entries_header">
23171 <th class="th_details" colspan="5">Details</th>
23173 <tr class="entry_cont">
23174 <td class="entry_details" colspan="5">
23175 <p>Whether face detection is enabled,<wbr/> and whether it
23176 should output just the basic fields or the full set of
23181 <tr class="entries_header">
23182 <th class="th_details" colspan="5">HAL Implementation Details</th>
23184 <tr class="entry_cont">
23185 <td class="entry_details" colspan="5">
23186 <p>SIMPLE mode must fill in <a href="#dynamic_android.statistics.faceRectangles">android.<wbr/>statistics.<wbr/>face<wbr/>Rectangles</a> and
23187 <a href="#dynamic_android.statistics.faceScores">android.<wbr/>statistics.<wbr/>face<wbr/>Scores</a>.<wbr/>
23188 FULL mode must also fill in <a href="#dynamic_android.statistics.faceIds">android.<wbr/>statistics.<wbr/>face<wbr/>Ids</a>,<wbr/> and
23189 <a href="#dynamic_android.statistics.faceLandmarks">android.<wbr/>statistics.<wbr/>face<wbr/>Landmarks</a>.<wbr/></p>
23193 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23194 <!-- end of entry -->
23197 <tr class="entry" id="dynamic_android.statistics.faceIds">
23198 <td class="entry_name
23200 android.<wbr/>statistics.<wbr/>face<wbr/>Ids
23202 <td class="entry_type">
23203 <span class="entry_type_name">int32</span>
23204 <span class="entry_type_container">x</span>
23206 <span class="entry_type_array">
23209 <span class="entry_type_visibility"> [ndk_public]</span>
23212 <span class="entry_type_hwlevel">[legacy] </span>
23217 </td> <!-- entry_type -->
23219 <td class="entry_description">
23220 <p>List of unique IDs for detected faces.<wbr/></p>
23223 <td class="entry_units">
23226 <td class="entry_range">
23229 <td class="entry_tags">
23230 <ul class="entry_tags">
23231 <li><a href="#tag_BC">BC</a></li>
23236 <tr class="entries_header">
23237 <th class="th_details" colspan="5">Details</th>
23239 <tr class="entry_cont">
23240 <td class="entry_details" colspan="5">
23241 <p>Each detected face is given a unique ID that is valid for as long as the face is visible
23242 to the camera device.<wbr/> A face that leaves the field of view and later returns may be
23243 assigned a new ID.<wbr/></p>
23244 <p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> == FULL</p>
23249 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23250 <!-- end of entry -->
23253 <tr class="entry" id="dynamic_android.statistics.faceLandmarks">
23254 <td class="entry_name
23256 android.<wbr/>statistics.<wbr/>face<wbr/>Landmarks
23258 <td class="entry_type">
23259 <span class="entry_type_name">int32</span>
23260 <span class="entry_type_container">x</span>
23262 <span class="entry_type_array">
23265 <span class="entry_type_visibility"> [ndk_public]</span>
23268 <span class="entry_type_hwlevel">[legacy] </span>
23271 <div class="entry_type_notes">(leftEyeX,<wbr/> leftEyeY,<wbr/> rightEyeX,<wbr/> rightEyeY,<wbr/> mouthX,<wbr/> mouthY)</div>
23274 </td> <!-- entry_type -->
23276 <td class="entry_description">
23277 <p>List of landmarks for detected
23281 <td class="entry_units">
23284 <td class="entry_range">
23287 <td class="entry_tags">
23288 <ul class="entry_tags">
23289 <li><a href="#tag_BC">BC</a></li>
23294 <tr class="entries_header">
23295 <th class="th_details" colspan="5">Details</th>
23297 <tr class="entry_cont">
23298 <td class="entry_details" colspan="5">
23299 <p>The coordinate system is that of <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> with
23300 <code>(0,<wbr/> 0)</code> being the top-left pixel of the active array.<wbr/></p>
23301 <p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> == FULL</p>
23306 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23307 <!-- end of entry -->
23310 <tr class="entry" id="dynamic_android.statistics.faceRectangles">
23311 <td class="entry_name
23313 android.<wbr/>statistics.<wbr/>face<wbr/>Rectangles
23315 <td class="entry_type">
23316 <span class="entry_type_name">int32</span>
23317 <span class="entry_type_container">x</span>
23319 <span class="entry_type_array">
23322 <span class="entry_type_visibility"> [ndk_public as rectangle]</span>
23325 <span class="entry_type_hwlevel">[legacy] </span>
23328 <div class="entry_type_notes">(xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax).<wbr/> (0,<wbr/>0) is top-left of active pixel area</div>
23331 </td> <!-- entry_type -->
23333 <td class="entry_description">
23334 <p>List of the bounding rectangles for detected
23338 <td class="entry_units">
23341 <td class="entry_range">
23344 <td class="entry_tags">
23345 <ul class="entry_tags">
23346 <li><a href="#tag_BC">BC</a></li>
23351 <tr class="entries_header">
23352 <th class="th_details" colspan="5">Details</th>
23354 <tr class="entry_cont">
23355 <td class="entry_details" colspan="5">
23356 <p>The coordinate system is that of <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> with
23357 <code>(0,<wbr/> 0)</code> being the top-left pixel of the active array.<wbr/></p>
23358 <p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> != OFF</p>
23363 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23364 <!-- end of entry -->
23367 <tr class="entry" id="dynamic_android.statistics.faceScores">
23368 <td class="entry_name
23370 android.<wbr/>statistics.<wbr/>face<wbr/>Scores
23372 <td class="entry_type">
23373 <span class="entry_type_name">byte</span>
23374 <span class="entry_type_container">x</span>
23376 <span class="entry_type_array">
23379 <span class="entry_type_visibility"> [ndk_public]</span>
23382 <span class="entry_type_hwlevel">[legacy] </span>
23387 </td> <!-- entry_type -->
23389 <td class="entry_description">
23390 <p>List of the face confidence scores for
23394 <td class="entry_units">
23397 <td class="entry_range">
23401 <td class="entry_tags">
23402 <ul class="entry_tags">
23403 <li><a href="#tag_BC">BC</a></li>
23408 <tr class="entries_header">
23409 <th class="th_details" colspan="5">Details</th>
23411 <tr class="entry_cont">
23412 <td class="entry_details" colspan="5">
23413 <p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> != OFF.<wbr/></p>
23417 <tr class="entries_header">
23418 <th class="th_details" colspan="5">HAL Implementation Details</th>
23420 <tr class="entry_cont">
23421 <td class="entry_details" colspan="5">
23422 <p>The value should be meaningful (for example,<wbr/> setting 100 at
23423 all times is illegal).<wbr/></p>
23427 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23428 <!-- end of entry -->
23431 <tr class="entry" id="dynamic_android.statistics.faces">
23432 <td class="entry_name
23434 android.<wbr/>statistics.<wbr/>faces
23436 <td class="entry_type">
23437 <span class="entry_type_name">int32</span>
23438 <span class="entry_type_container">x</span>
23440 <span class="entry_type_array">
23443 <span class="entry_type_visibility"> [java_public as face]</span>
23445 <span class="entry_type_synthetic">[synthetic] </span>
23447 <span class="entry_type_hwlevel">[legacy] </span>
23452 </td> <!-- entry_type -->
23454 <td class="entry_description">
23455 <p>List of the faces detected through camera face detection
23456 in this capture.<wbr/></p>
23459 <td class="entry_units">
23462 <td class="entry_range">
23465 <td class="entry_tags">
23469 <tr class="entries_header">
23470 <th class="th_details" colspan="5">Details</th>
23472 <tr class="entry_cont">
23473 <td class="entry_details" colspan="5">
23474 <p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> <code>!=</code> OFF.<wbr/></p>
23479 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23480 <!-- end of entry -->
23483 <tr class="entry" id="dynamic_android.statistics.histogram">
23484 <td class="entry_name
23486 android.<wbr/>statistics.<wbr/>histogram
23488 <td class="entry_type">
23489 <span class="entry_type_name">int32</span>
23490 <span class="entry_type_container">x</span>
23492 <span class="entry_type_array">
23495 <span class="entry_type_visibility"> [system]</span>
23500 <div class="entry_type_notes">count of pixels for each color channel that fall into each histogram bucket,<wbr/> scaled to be between 0 and maxHistogramCount</div>
23503 </td> <!-- entry_type -->
23505 <td class="entry_description">
23506 <p>A 3-channel histogram based on the raw
23510 <td class="entry_units">
23513 <td class="entry_range">
23516 <td class="entry_tags">
23517 <ul class="entry_tags">
23518 <li><a href="#tag_FUTURE">FUTURE</a></li>
23523 <tr class="entries_header">
23524 <th class="th_details" colspan="5">Details</th>
23526 <tr class="entry_cont">
23527 <td class="entry_details" colspan="5">
23528 <p>The k'th bucket (0-based) covers the input range
23529 (with w = <a href="#static_android.sensor.info.whiteLevel">android.<wbr/>sensor.<wbr/>info.<wbr/>white<wbr/>Level</a>) of [ k * w/<wbr/>N,<wbr/>
23530 (k + 1) * w /<wbr/> N ).<wbr/> If only a monochrome sharpness map is
23531 supported,<wbr/> all channels should have the same data</p>
23536 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23537 <!-- end of entry -->
23540 <tr class="entry" id="dynamic_android.statistics.histogramMode">
23541 <td class="entry_name
23543 android.<wbr/>statistics.<wbr/>histogram<wbr/>Mode
23545 <td class="entry_type">
23546 <span class="entry_type_name entry_type_name_enum">byte</span>
23548 <span class="entry_type_visibility"> [system as boolean]</span>
23554 <ul class="entry_type_enum">
23556 <span class="entry_type_enum_name">OFF</span>
23559 <span class="entry_type_enum_name">ON</span>
23563 </td> <!-- entry_type -->
23565 <td class="entry_description">
23566 <p>Operating mode for histogram
23570 <td class="entry_units">
23573 <td class="entry_range">
23576 <td class="entry_tags">
23577 <ul class="entry_tags">
23578 <li><a href="#tag_FUTURE">FUTURE</a></li>
23585 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23586 <!-- end of entry -->
23589 <tr class="entry" id="dynamic_android.statistics.sharpnessMap">
23590 <td class="entry_name
23592 android.<wbr/>statistics.<wbr/>sharpness<wbr/>Map
23594 <td class="entry_type">
23595 <span class="entry_type_name">int32</span>
23596 <span class="entry_type_container">x</span>
23598 <span class="entry_type_array">
23601 <span class="entry_type_visibility"> [system]</span>
23606 <div class="entry_type_notes">estimated sharpness for each region of the input image.<wbr/> Normalized to be between 0 and maxSharpnessMapValue.<wbr/> Higher values mean sharper (better focused)</div>
23609 </td> <!-- entry_type -->
23611 <td class="entry_description">
23612 <p>A 3-channel sharpness map,<wbr/> based on the raw
23616 <td class="entry_units">
23619 <td class="entry_range">
23622 <td class="entry_tags">
23623 <ul class="entry_tags">
23624 <li><a href="#tag_FUTURE">FUTURE</a></li>
23629 <tr class="entries_header">
23630 <th class="th_details" colspan="5">Details</th>
23632 <tr class="entry_cont">
23633 <td class="entry_details" colspan="5">
23634 <p>If only a monochrome sharpness map is supported,<wbr/>
23635 all channels should have the same data</p>
23640 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23641 <!-- end of entry -->
23644 <tr class="entry" id="dynamic_android.statistics.sharpnessMapMode">
23645 <td class="entry_name
23647 android.<wbr/>statistics.<wbr/>sharpness<wbr/>Map<wbr/>Mode
23649 <td class="entry_type">
23650 <span class="entry_type_name entry_type_name_enum">byte</span>
23652 <span class="entry_type_visibility"> [system as boolean]</span>
23658 <ul class="entry_type_enum">
23660 <span class="entry_type_enum_name">OFF</span>
23663 <span class="entry_type_enum_name">ON</span>
23667 </td> <!-- entry_type -->
23669 <td class="entry_description">
23670 <p>Operating mode for sharpness map
23674 <td class="entry_units">
23677 <td class="entry_range">
23680 <td class="entry_tags">
23681 <ul class="entry_tags">
23682 <li><a href="#tag_FUTURE">FUTURE</a></li>
23689 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23690 <!-- end of entry -->
23693 <tr class="entry" id="dynamic_android.statistics.lensShadingCorrectionMap">
23694 <td class="entry_name
23696 android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Correction<wbr/>Map
23698 <td class="entry_type">
23699 <span class="entry_type_name">byte</span>
23701 <span class="entry_type_visibility"> [java_public as lensShadingMap]</span>
23704 <span class="entry_type_hwlevel">[full] </span>
23709 </td> <!-- entry_type -->
23711 <td class="entry_description">
23712 <p>The shading map is a low-resolution floating-point map
23713 that lists the coefficients used to correct for vignetting,<wbr/> for each
23714 Bayer color channel.<wbr/></p>
23717 <td class="entry_units">
23720 <td class="entry_range">
23721 <p>Each gain factor is >= 1</p>
23724 <td class="entry_tags">
23728 <tr class="entries_header">
23729 <th class="th_details" colspan="5">Details</th>
23731 <tr class="entry_cont">
23732 <td class="entry_details" colspan="5">
23733 <p>The map provided here is the same map that is used by the camera device to
23734 correct both color shading and vignetting for output non-RAW images.<wbr/></p>
23735 <p>When there is no lens shading correction applied to RAW
23736 output images (<a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a> <code>==</code>
23737 false),<wbr/> this map is the complete lens shading correction
23738 map; when there is some lens shading correction applied to
23739 the RAW output image (<a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a><code>==</code> true),<wbr/> this map reports the remaining lens shading
23740 correction map that needs to be applied to get shading
23741 corrected images that match the camera device's output for
23742 non-RAW formats.<wbr/></p>
23743 <p>For a complete shading correction map,<wbr/> the least shaded
23744 section of the image will have a gain factor of 1; all
23745 other sections will have gains above 1.<wbr/></p>
23746 <p>When <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> = TRANSFORM_<wbr/>MATRIX,<wbr/> the map
23747 will take into account the colorCorrection settings.<wbr/></p>
23748 <p>The shading map is for the entire active pixel array,<wbr/> and is not
23749 affected by the crop region specified in the request.<wbr/> Each shading map
23750 entry is the value of the shading compensation map over a specific
23751 pixel on the sensor.<wbr/> Specifically,<wbr/> with a (N x M) resolution shading
23752 map,<wbr/> and an active pixel array size (W x H),<wbr/> shading map entry
23753 (x,<wbr/>y) ϵ (0 ...<wbr/> N-1,<wbr/> 0 ...<wbr/> M-1) is the value of the shading map at
23754 pixel ( ((W-1)/<wbr/>(N-1)) * x,<wbr/> ((H-1)/<wbr/>(M-1)) * y) for the four color channels.<wbr/>
23755 The map is assumed to be bilinearly interpolated between the sample points.<wbr/></p>
23756 <p>The channel order is [R,<wbr/> Geven,<wbr/> Godd,<wbr/> B],<wbr/> where Geven is the green
23757 channel for the even rows of a Bayer pattern,<wbr/> and Godd is the odd rows.<wbr/>
23758 The shading map is stored in a fully interleaved format.<wbr/></p>
23759 <p>The shading map will generally have on the order of 30-40 rows and columns,<wbr/>
23760 and will be smaller than 64x64.<wbr/></p>
23761 <p>As an example,<wbr/> given a very small map defined as:</p>
23762 <pre><code>width,<wbr/>height = [ 4,<wbr/> 3 ]
23764 [ 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>15,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>15,<wbr/> 1.<wbr/>2,<wbr/>
23765 1.<wbr/>1,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/>
23766 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>25,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>0,<wbr/>
23767 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>25,<wbr/> 1.<wbr/>2,<wbr/>
23768 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>15,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>2,<wbr/>
23769 1.<wbr/>2,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>15,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3 ]
23771 <p>The low-resolution scaling map images for each channel are
23772 (displayed using nearest-neighbor interpolation):</p>
23773 <p><img alt="Red lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png"/>
23774 <img alt="Green (even rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png"/>
23775 <img alt="Green (odd rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png"/>
23776 <img alt="Blue lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png"/></p>
23777 <p>As a visualization only,<wbr/> inverting the full-color map to recover an
23778 image of a gray wall (using bicubic interpolation for visual quality) as captured by the sensor gives:</p>
23779 <p><img alt="Image of a uniform white wall (inverse shading map)" src="images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png"/></p>
23784 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23785 <!-- end of entry -->
23788 <tr class="entry" id="dynamic_android.statistics.lensShadingMap">
23789 <td class="entry_name
23791 android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map
23793 <td class="entry_type">
23794 <span class="entry_type_name">float</span>
23795 <span class="entry_type_container">x</span>
23797 <span class="entry_type_array">
23800 <span class="entry_type_visibility"> [ndk_public]</span>
23803 <span class="entry_type_hwlevel">[full] </span>
23806 <div class="entry_type_notes">2D array of float gain factors per channel to correct lens shading</div>
23809 </td> <!-- entry_type -->
23811 <td class="entry_description">
23812 <p>The shading map is a low-resolution floating-point map
23813 that lists the coefficients used to correct for vignetting and color shading,<wbr/>
23814 for each Bayer color channel of RAW image data.<wbr/></p>
23817 <td class="entry_units">
23820 <td class="entry_range">
23821 <p>Each gain factor is >= 1</p>
23824 <td class="entry_tags">
23828 <tr class="entries_header">
23829 <th class="th_details" colspan="5">Details</th>
23831 <tr class="entry_cont">
23832 <td class="entry_details" colspan="5">
23833 <p>The map provided here is the same map that is used by the camera device to
23834 correct both color shading and vignetting for output non-RAW images.<wbr/></p>
23835 <p>When there is no lens shading correction applied to RAW
23836 output images (<a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a> <code>==</code>
23837 false),<wbr/> this map is the complete lens shading correction
23838 map; when there is some lens shading correction applied to
23839 the RAW output image (<a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a><code>==</code> true),<wbr/> this map reports the remaining lens shading
23840 correction map that needs to be applied to get shading
23841 corrected images that match the camera device's output for
23842 non-RAW formats.<wbr/></p>
23843 <p>For a complete shading correction map,<wbr/> the least shaded
23844 section of the image will have a gain factor of 1; all
23845 other sections will have gains above 1.<wbr/></p>
23846 <p>When <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> = TRANSFORM_<wbr/>MATRIX,<wbr/> the map
23847 will take into account the colorCorrection settings.<wbr/></p>
23848 <p>The shading map is for the entire active pixel array,<wbr/> and is not
23849 affected by the crop region specified in the request.<wbr/> Each shading map
23850 entry is the value of the shading compensation map over a specific
23851 pixel on the sensor.<wbr/> Specifically,<wbr/> with a (N x M) resolution shading
23852 map,<wbr/> and an active pixel array size (W x H),<wbr/> shading map entry
23853 (x,<wbr/>y) ϵ (0 ...<wbr/> N-1,<wbr/> 0 ...<wbr/> M-1) is the value of the shading map at
23854 pixel ( ((W-1)/<wbr/>(N-1)) * x,<wbr/> ((H-1)/<wbr/>(M-1)) * y) for the four color channels.<wbr/>
23855 The map is assumed to be bilinearly interpolated between the sample points.<wbr/></p>
23856 <p>The channel order is [R,<wbr/> Geven,<wbr/> Godd,<wbr/> B],<wbr/> where Geven is the green
23857 channel for the even rows of a Bayer pattern,<wbr/> and Godd is the odd rows.<wbr/>
23858 The shading map is stored in a fully interleaved format,<wbr/> and its size
23859 is provided in the camera static metadata by <a href="#static_android.lens.info.shadingMapSize">android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size</a>.<wbr/></p>
23860 <p>The shading map will generally have on the order of 30-40 rows and columns,<wbr/>
23861 and will be smaller than 64x64.<wbr/></p>
23862 <p>As an example,<wbr/> given a very small map defined as:</p>
23863 <pre><code><a href="#static_android.lens.info.shadingMapSize">android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size</a> = [ 4,<wbr/> 3 ]
23864 <a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> =
23865 [ 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>15,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>15,<wbr/> 1.<wbr/>2,<wbr/>
23866 1.<wbr/>1,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/>
23867 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>25,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>0,<wbr/>
23868 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>25,<wbr/> 1.<wbr/>2,<wbr/>
23869 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>15,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>2,<wbr/>
23870 1.<wbr/>2,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>15,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3 ]
23872 <p>The low-resolution scaling map images for each channel are
23873 (displayed using nearest-neighbor interpolation):</p>
23874 <p><img alt="Red lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png"/>
23875 <img alt="Green (even rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png"/>
23876 <img alt="Green (odd rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png"/>
23877 <img alt="Blue lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png"/></p>
23878 <p>As a visualization only,<wbr/> inverting the full-color map to recover an
23879 image of a gray wall (using bicubic interpolation for visual quality)
23880 as captured by the sensor gives:</p>
23881 <p><img alt="Image of a uniform white wall (inverse shading map)" src="images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png"/></p>
23882 <p>Note that the RAW image data might be subject to lens shading
23883 correction not reported on this map.<wbr/> Query
23884 <a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a> to see if RAW image data has subject
23885 to lens shading correction.<wbr/> If <a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a>
23886 is TRUE,<wbr/> the RAW image data is subject to partial or full lens shading
23887 correction.<wbr/> In the case full lens shading correction is applied to RAW
23888 images,<wbr/> the gain factor map reported in this key will contain all 1.<wbr/>0 gains.<wbr/>
23889 In other words,<wbr/> the map reported in this key is the remaining lens shading
23890 that needs to be applied on the RAW image to get images without lens shading
23891 artifacts.<wbr/> See <a href="#static_android.request.maxNumOutputRaw">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Raw</a> for a list of RAW image
23896 <tr class="entries_header">
23897 <th class="th_details" colspan="5">HAL Implementation Details</th>
23899 <tr class="entry_cont">
23900 <td class="entry_details" colspan="5">
23901 <p>The lens shading map calculation may depend on exposure and white balance statistics.<wbr/>
23902 When AE and AWB are in AUTO modes
23903 (<a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>!=</code> OFF and <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> <code>!=</code> OFF),<wbr/> the HAL
23904 may have all the information it need to generate most accurate lens shading map.<wbr/> When
23905 AE or AWB are in manual mode
23906 (<a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>==</code> OFF or <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> <code>==</code> OFF),<wbr/> the shading map
23907 may be adversely impacted by manual exposure or white balance parameters.<wbr/> To avoid
23908 generating unreliable shading map data,<wbr/> the HAL may choose to lock the shading map with
23909 the latest known good map generated when the AE and AWB are in AUTO modes.<wbr/></p>
23913 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23914 <!-- end of entry -->
23917 <tr class="entry" id="dynamic_android.statistics.predictedColorGains">
23918 <td class="entry_name
23919 entry_name_deprecated
23921 android.<wbr/>statistics.<wbr/>predicted<wbr/>Color<wbr/>Gains
23923 <td class="entry_type">
23924 <span class="entry_type_name">float</span>
23925 <span class="entry_type_container">x</span>
23927 <span class="entry_type_array">
23930 <span class="entry_type_visibility"> [hidden]</span>
23934 <span class="entry_type_deprecated">[deprecated] </span>
23936 <div class="entry_type_notes">A 1D array of floats for 4 color channel gains</div>
23939 </td> <!-- entry_type -->
23941 <td class="entry_description">
23942 <p>The best-fit color channel gains calculated
23943 by the camera device's statistics units for the current output frame.<wbr/></p>
23946 <td class="entry_units">
23949 <td class="entry_range">
23950 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
23953 <td class="entry_tags">
23957 <tr class="entries_header">
23958 <th class="th_details" colspan="5">Details</th>
23960 <tr class="entry_cont">
23961 <td class="entry_details" colspan="5">
23962 <p>This may be different than the gains used for this frame,<wbr/>
23963 since statistics processing on data from a new frame
23964 typically completes after the transform has already been
23965 applied to that frame.<wbr/></p>
23966 <p>The 4 channel gains are defined in Bayer domain,<wbr/>
23967 see <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> for details.<wbr/></p>
23968 <p>This value should always be calculated by the auto-white balance (AWB) block,<wbr/>
23969 regardless of the android.<wbr/>control.<wbr/>* current values.<wbr/></p>
23974 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23975 <!-- end of entry -->
23978 <tr class="entry" id="dynamic_android.statistics.predictedColorTransform">
23979 <td class="entry_name
23980 entry_name_deprecated
23982 android.<wbr/>statistics.<wbr/>predicted<wbr/>Color<wbr/>Transform
23984 <td class="entry_type">
23985 <span class="entry_type_name">rational</span>
23986 <span class="entry_type_container">x</span>
23988 <span class="entry_type_array">
23991 <span class="entry_type_visibility"> [hidden]</span>
23995 <span class="entry_type_deprecated">[deprecated] </span>
23997 <div class="entry_type_notes">3x3 rational matrix in row-major order</div>
24000 </td> <!-- entry_type -->
24002 <td class="entry_description">
24003 <p>The best-fit color transform matrix estimate
24004 calculated by the camera device's statistics units for the current
24005 output frame.<wbr/></p>
24008 <td class="entry_units">
24011 <td class="entry_range">
24012 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
24015 <td class="entry_tags">
24019 <tr class="entries_header">
24020 <th class="th_details" colspan="5">Details</th>
24022 <tr class="entry_cont">
24023 <td class="entry_details" colspan="5">
24024 <p>The camera device will provide the estimate from its
24025 statistics unit on the white balance transforms to use
24026 for the next frame.<wbr/> These are the values the camera device believes
24027 are the best fit for the current output frame.<wbr/> This may
24028 be different than the transform used for this frame,<wbr/> since
24029 statistics processing on data from a new frame typically
24030 completes after the transform has already been applied to
24031 that frame.<wbr/></p>
24032 <p>These estimates must be provided for all frames,<wbr/> even if
24033 capture settings and color transforms are set by the application.<wbr/></p>
24034 <p>This value should always be calculated by the auto-white balance (AWB) block,<wbr/>
24035 regardless of the android.<wbr/>control.<wbr/>* current values.<wbr/></p>
24040 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24041 <!-- end of entry -->
24044 <tr class="entry" id="dynamic_android.statistics.sceneFlicker">
24045 <td class="entry_name
24047 android.<wbr/>statistics.<wbr/>scene<wbr/>Flicker
24049 <td class="entry_type">
24050 <span class="entry_type_name entry_type_name_enum">byte</span>
24052 <span class="entry_type_visibility"> [public]</span>
24055 <span class="entry_type_hwlevel">[full] </span>
24059 <ul class="entry_type_enum">
24061 <span class="entry_type_enum_name">NONE</span>
24062 <span class="entry_type_enum_notes"><p>The camera device does not detect any flickering illumination
24063 in the current scene.<wbr/></p></span>
24066 <span class="entry_type_enum_name">50HZ</span>
24067 <span class="entry_type_enum_notes"><p>The camera device detects illumination flickering at 50Hz
24068 in the current scene.<wbr/></p></span>
24071 <span class="entry_type_enum_name">60HZ</span>
24072 <span class="entry_type_enum_notes"><p>The camera device detects illumination flickering at 60Hz
24073 in the current scene.<wbr/></p></span>
24077 </td> <!-- entry_type -->
24079 <td class="entry_description">
24080 <p>The camera device estimated scene illumination lighting
24081 frequency.<wbr/></p>
24084 <td class="entry_units">
24087 <td class="entry_range">
24090 <td class="entry_tags">
24094 <tr class="entries_header">
24095 <th class="th_details" colspan="5">Details</th>
24097 <tr class="entry_cont">
24098 <td class="entry_details" colspan="5">
24099 <p>Many light sources,<wbr/> such as most fluorescent lights,<wbr/> flicker at a rate
24100 that depends on the local utility power standards.<wbr/> This flicker must be
24101 accounted for by auto-exposure routines to avoid artifacts in captured images.<wbr/>
24102 The camera device uses this entry to tell the application what the scene
24103 illuminant frequency is.<wbr/></p>
24104 <p>When manual exposure control is enabled
24105 (<code><a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> == OFF</code> or <code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> ==
24106 OFF</code>),<wbr/> the <a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a> doesn't perform
24107 antibanding,<wbr/> and the application can ensure it selects
24108 exposure times that do not cause banding issues by looking
24109 into this metadata field.<wbr/> See
24110 <a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a> for more details.<wbr/></p>
24111 <p>Reports NONE if there doesn't appear to be flickering illumination.<wbr/></p>
24116 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24117 <!-- end of entry -->
24120 <tr class="entry" id="dynamic_android.statistics.hotPixelMapMode">
24121 <td class="entry_name
24123 android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map<wbr/>Mode
24125 <td class="entry_type">
24126 <span class="entry_type_name entry_type_name_enum">byte</span>
24128 <span class="entry_type_visibility"> [public as boolean]</span>
24134 <ul class="entry_type_enum">
24136 <span class="entry_type_enum_name">OFF</span>
24137 <span class="entry_type_enum_notes"><p>Hot pixel map production is disabled.<wbr/></p></span>
24140 <span class="entry_type_enum_name">ON</span>
24141 <span class="entry_type_enum_notes"><p>Hot pixel map production is enabled.<wbr/></p></span>
24145 </td> <!-- entry_type -->
24147 <td class="entry_description">
24148 <p>Operating mode for hot pixel map generation.<wbr/></p>
24151 <td class="entry_units">
24154 <td class="entry_range">
24155 <p><a href="#static_android.statistics.info.availableHotPixelMapModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Map<wbr/>Modes</a></p>
24158 <td class="entry_tags">
24159 <ul class="entry_tags">
24160 <li><a href="#tag_V1">V1</a></li>
24161 <li><a href="#tag_RAW">RAW</a></li>
24166 <tr class="entries_header">
24167 <th class="th_details" colspan="5">Details</th>
24169 <tr class="entry_cont">
24170 <td class="entry_details" colspan="5">
24171 <p>If set to <code>true</code>,<wbr/> a hot pixel map is returned in <a href="#dynamic_android.statistics.hotPixelMap">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map</a>.<wbr/>
24172 If set to <code>false</code>,<wbr/> no hot pixel map will be returned.<wbr/></p>
24177 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24178 <!-- end of entry -->
24181 <tr class="entry" id="dynamic_android.statistics.hotPixelMap">
24182 <td class="entry_name
24184 android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map
24186 <td class="entry_type">
24187 <span class="entry_type_name">int32</span>
24188 <span class="entry_type_container">x</span>
24190 <span class="entry_type_array">
24193 <span class="entry_type_visibility"> [public as point]</span>
24198 <div class="entry_type_notes">list of coordinates based on android.<wbr/>sensor.<wbr/>pixel<wbr/>Array<wbr/>Size</div>
24201 </td> <!-- entry_type -->
24203 <td class="entry_description">
24204 <p>List of <code>(x,<wbr/> y)</code> coordinates of hot/<wbr/>defective pixels on the sensor.<wbr/></p>
24207 <td class="entry_units">
24210 <td class="entry_range">
24211 <p>n <= number of pixels on the sensor.<wbr/>
24212 The <code>(x,<wbr/> y)</code> coordinates must be bounded by
24213 <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
24216 <td class="entry_tags">
24217 <ul class="entry_tags">
24218 <li><a href="#tag_V1">V1</a></li>
24219 <li><a href="#tag_RAW">RAW</a></li>
24224 <tr class="entries_header">
24225 <th class="th_details" colspan="5">Details</th>
24227 <tr class="entry_cont">
24228 <td class="entry_details" colspan="5">
24229 <p>A coordinate <code>(x,<wbr/> y)</code> must lie between <code>(0,<wbr/> 0)</code>,<wbr/> and
24230 <code>(width - 1,<wbr/> height - 1)</code> (inclusive),<wbr/> which are the top-left and
24231 bottom-right of the pixel array,<wbr/> respectively.<wbr/> The width and
24232 height dimensions are given in <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/>
24233 This may include hot pixels that lie outside of the active array
24234 bounds given by <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
24238 <tr class="entries_header">
24239 <th class="th_details" colspan="5">HAL Implementation Details</th>
24241 <tr class="entry_cont">
24242 <td class="entry_details" colspan="5">
24243 <p>A hotpixel map contains the coordinates of pixels on the camera
24244 sensor that do report valid values (usually due to defects in
24245 the camera sensor).<wbr/> This includes pixels that are stuck at certain
24246 values,<wbr/> or have a response that does not accuractly encode the
24247 incoming light from the scene.<wbr/></p>
24248 <p>To avoid performance issues,<wbr/> there should be significantly fewer hot
24249 pixels than actual pixels on the camera sensor.<wbr/></p>
24253 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24254 <!-- end of entry -->
24257 <tr class="entry" id="dynamic_android.statistics.lensShadingMapMode">
24258 <td class="entry_name
24260 android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode
24262 <td class="entry_type">
24263 <span class="entry_type_name entry_type_name_enum">byte</span>
24265 <span class="entry_type_visibility"> [public]</span>
24268 <span class="entry_type_hwlevel">[full] </span>
24272 <ul class="entry_type_enum">
24274 <span class="entry_type_enum_name">OFF</span>
24275 <span class="entry_type_enum_notes"><p>Do not include a lens shading map in the capture result.<wbr/></p></span>
24278 <span class="entry_type_enum_name">ON</span>
24279 <span class="entry_type_enum_notes"><p>Include a lens shading map in the capture result.<wbr/></p></span>
24283 </td> <!-- entry_type -->
24285 <td class="entry_description">
24286 <p>Whether the camera device will output the lens
24287 shading map in output result metadata.<wbr/></p>
24290 <td class="entry_units">
24293 <td class="entry_range">
24294 <p><a href="#static_android.statistics.info.availableLensShadingMapModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Lens<wbr/>Shading<wbr/>Map<wbr/>Modes</a></p>
24297 <td class="entry_tags">
24298 <ul class="entry_tags">
24299 <li><a href="#tag_RAW">RAW</a></li>
24304 <tr class="entries_header">
24305 <th class="th_details" colspan="5">Details</th>
24307 <tr class="entry_cont">
24308 <td class="entry_details" colspan="5">
24309 <p>When set to ON,<wbr/>
24310 <a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> will be provided in
24311 the output result metadata.<wbr/></p>
24312 <p>ON is always supported on devices with the RAW capability.<wbr/></p>
24317 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24318 <!-- end of entry -->
24322 <!-- end of kind -->
24325 <!-- end of section -->
24326 <tr><td colspan="6" id="section_tonemap" class="section">tonemap</td></tr>
24329 <tr><td colspan="6" class="kind">controls</td></tr>
24331 <thead class="entries_header">
24333 <th class="th_name">Property Name</th>
24334 <th class="th_type">Type</th>
24335 <th class="th_description">Description</th>
24336 <th class="th_units">Units</th>
24337 <th class="th_range">Range</th>
24338 <th class="th_tags">Tags</th>
24353 <tr class="entry" id="controls_android.tonemap.curveBlue">
24354 <td class="entry_name
24356 android.<wbr/>tonemap.<wbr/>curve<wbr/>Blue
24358 <td class="entry_type">
24359 <span class="entry_type_name">float</span>
24360 <span class="entry_type_container">x</span>
24362 <span class="entry_type_array">
24365 <span class="entry_type_visibility"> [ndk_public]</span>
24368 <span class="entry_type_hwlevel">[full] </span>
24371 <div class="entry_type_notes">1D array of float pairs (P_<wbr/>IN,<wbr/> P_<wbr/>OUT).<wbr/> The maximum number of pairs is specified by android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points.<wbr/></div>
24374 </td> <!-- entry_type -->
24376 <td class="entry_description">
24377 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the blue
24378 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24379 CONTRAST_<wbr/>CURVE.<wbr/></p>
24382 <td class="entry_units">
24385 <td class="entry_range">
24388 <td class="entry_tags">
24392 <tr class="entries_header">
24393 <th class="th_details" colspan="5">Details</th>
24395 <tr class="entry_cont">
24396 <td class="entry_details" colspan="5">
24397 <p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
24402 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24403 <!-- end of entry -->
24406 <tr class="entry" id="controls_android.tonemap.curveGreen">
24407 <td class="entry_name
24409 android.<wbr/>tonemap.<wbr/>curve<wbr/>Green
24411 <td class="entry_type">
24412 <span class="entry_type_name">float</span>
24413 <span class="entry_type_container">x</span>
24415 <span class="entry_type_array">
24418 <span class="entry_type_visibility"> [ndk_public]</span>
24421 <span class="entry_type_hwlevel">[full] </span>
24424 <div class="entry_type_notes">1D array of float pairs (P_<wbr/>IN,<wbr/> P_<wbr/>OUT).<wbr/> The maximum number of pairs is specified by android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points.<wbr/></div>
24427 </td> <!-- entry_type -->
24429 <td class="entry_description">
24430 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the green
24431 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24432 CONTRAST_<wbr/>CURVE.<wbr/></p>
24435 <td class="entry_units">
24438 <td class="entry_range">
24441 <td class="entry_tags">
24445 <tr class="entries_header">
24446 <th class="th_details" colspan="5">Details</th>
24448 <tr class="entry_cont">
24449 <td class="entry_details" colspan="5">
24450 <p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
24455 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24456 <!-- end of entry -->
24459 <tr class="entry" id="controls_android.tonemap.curveRed">
24460 <td class="entry_name
24462 android.<wbr/>tonemap.<wbr/>curve<wbr/>Red
24464 <td class="entry_type">
24465 <span class="entry_type_name">float</span>
24466 <span class="entry_type_container">x</span>
24468 <span class="entry_type_array">
24471 <span class="entry_type_visibility"> [ndk_public]</span>
24474 <span class="entry_type_hwlevel">[full] </span>
24477 <div class="entry_type_notes">1D array of float pairs (P_<wbr/>IN,<wbr/> P_<wbr/>OUT).<wbr/> The maximum number of pairs is specified by android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points.<wbr/></div>
24480 </td> <!-- entry_type -->
24482 <td class="entry_description">
24483 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the red
24484 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24485 CONTRAST_<wbr/>CURVE.<wbr/></p>
24488 <td class="entry_units">
24491 <td class="entry_range">
24492 <p>0-1 on both input and output coordinates,<wbr/> normalized
24493 as a floating-point value such that 0 == black and 1 == white.<wbr/></p>
24496 <td class="entry_tags">
24500 <tr class="entries_header">
24501 <th class="th_details" colspan="5">Details</th>
24503 <tr class="entry_cont">
24504 <td class="entry_details" colspan="5">
24505 <p>Each channel's curve is defined by an array of control points:</p>
24506 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> =
24507 [ P0in,<wbr/> P0out,<wbr/> P1in,<wbr/> P1out,<wbr/> P2in,<wbr/> P2out,<wbr/> P3in,<wbr/> P3out,<wbr/> ...,<wbr/> PNin,<wbr/> PNout ]
24508 2 <= N <= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
24509 <p>These are sorted in order of increasing <code>Pin</code>; it is
24510 required that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
24511 define a complete mapping.<wbr/> For input values between control points,<wbr/>
24512 the camera device must linearly interpolate between the control
24514 <p>Each curve can have an independent number of points,<wbr/> and the number
24515 of points can be less than max (that is,<wbr/> the request doesn't have to
24516 always provide a curve with number of points equivalent to
24517 <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
24518 <p>A few examples,<wbr/> and their corresponding graphical mappings; these
24519 only specify the red channel and the precision is limited to 4
24520 digits,<wbr/> for conciseness.<wbr/></p>
24521 <p>Linear mapping:</p>
24522 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [ 0,<wbr/> 0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0 ]
24524 <p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
24525 <p>Invert mapping:</p>
24526 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [ 0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 0 ]
24528 <p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
24529 <p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
24530 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
24531 0.<wbr/>0000,<wbr/> 0.<wbr/>0000,<wbr/> 0.<wbr/>0667,<wbr/> 0.<wbr/>2920,<wbr/> 0.<wbr/>1333,<wbr/> 0.<wbr/>4002,<wbr/> 0.<wbr/>2000,<wbr/> 0.<wbr/>4812,<wbr/>
24532 0.<wbr/>2667,<wbr/> 0.<wbr/>5484,<wbr/> 0.<wbr/>3333,<wbr/> 0.<wbr/>6069,<wbr/> 0.<wbr/>4000,<wbr/> 0.<wbr/>6594,<wbr/> 0.<wbr/>4667,<wbr/> 0.<wbr/>7072,<wbr/>
24533 0.<wbr/>5333,<wbr/> 0.<wbr/>7515,<wbr/> 0.<wbr/>6000,<wbr/> 0.<wbr/>7928,<wbr/> 0.<wbr/>6667,<wbr/> 0.<wbr/>8317,<wbr/> 0.<wbr/>7333,<wbr/> 0.<wbr/>8685,<wbr/>
24534 0.<wbr/>8000,<wbr/> 0.<wbr/>9035,<wbr/> 0.<wbr/>8667,<wbr/> 0.<wbr/>9370,<wbr/> 0.<wbr/>9333,<wbr/> 0.<wbr/>9691,<wbr/> 1.<wbr/>0000,<wbr/> 1.<wbr/>0000 ]
24536 <p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
24537 <p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
24538 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
24539 0.<wbr/>0000,<wbr/> 0.<wbr/>0000,<wbr/> 0.<wbr/>0667,<wbr/> 0.<wbr/>2864,<wbr/> 0.<wbr/>1333,<wbr/> 0.<wbr/>4007,<wbr/> 0.<wbr/>2000,<wbr/> 0.<wbr/>4845,<wbr/>
24540 0.<wbr/>2667,<wbr/> 0.<wbr/>5532,<wbr/> 0.<wbr/>3333,<wbr/> 0.<wbr/>6125,<wbr/> 0.<wbr/>4000,<wbr/> 0.<wbr/>6652,<wbr/> 0.<wbr/>4667,<wbr/> 0.<wbr/>7130,<wbr/>
24541 0.<wbr/>5333,<wbr/> 0.<wbr/>7569,<wbr/> 0.<wbr/>6000,<wbr/> 0.<wbr/>7977,<wbr/> 0.<wbr/>6667,<wbr/> 0.<wbr/>8360,<wbr/> 0.<wbr/>7333,<wbr/> 0.<wbr/>8721,<wbr/>
24542 0.<wbr/>8000,<wbr/> 0.<wbr/>9063,<wbr/> 0.<wbr/>8667,<wbr/> 0.<wbr/>9389,<wbr/> 0.<wbr/>9333,<wbr/> 0.<wbr/>9701,<wbr/> 1.<wbr/>0000,<wbr/> 1.<wbr/>0000 ]
24544 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
24548 <tr class="entries_header">
24549 <th class="th_details" colspan="5">HAL Implementation Details</th>
24551 <tr class="entry_cont">
24552 <td class="entry_details" colspan="5">
24553 <p>For good quality of mapping,<wbr/> at least 128 control points are
24554 preferred.<wbr/></p>
24555 <p>A typical use case of this would be a gamma-1/<wbr/>2.<wbr/>2 curve,<wbr/> with as many
24556 control points used as are available.<wbr/></p>
24560 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24561 <!-- end of entry -->
24564 <tr class="entry" id="controls_android.tonemap.curve">
24565 <td class="entry_name
24567 android.<wbr/>tonemap.<wbr/>curve
24569 <td class="entry_type">
24570 <span class="entry_type_name">float</span>
24572 <span class="entry_type_visibility"> [java_public as tonemapCurve]</span>
24574 <span class="entry_type_synthetic">[synthetic] </span>
24576 <span class="entry_type_hwlevel">[full] </span>
24581 </td> <!-- entry_type -->
24583 <td class="entry_description">
24584 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a>
24585 is CONTRAST_<wbr/>CURVE.<wbr/></p>
24588 <td class="entry_units">
24591 <td class="entry_range">
24594 <td class="entry_tags">
24598 <tr class="entries_header">
24599 <th class="th_details" colspan="5">Details</th>
24601 <tr class="entry_cont">
24602 <td class="entry_details" colspan="5">
24603 <p>The tonemapCurve consist of three curves for each of red,<wbr/> green,<wbr/> and blue
24604 channels respectively.<wbr/> The following example uses the red channel as an
24605 example.<wbr/> The same logic applies to green and blue channel.<wbr/>
24606 Each channel's curve is defined by an array of control points:</p>
24607 <pre><code>curveRed =
24608 [ P0(in,<wbr/> out),<wbr/> P1(in,<wbr/> out),<wbr/> P2(in,<wbr/> out),<wbr/> P3(in,<wbr/> out),<wbr/> ...,<wbr/> PN(in,<wbr/> out) ]
24609 2 <= N <= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
24610 <p>These are sorted in order of increasing <code>Pin</code>; it is always
24611 guaranteed that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
24612 define a complete mapping.<wbr/> For input values between control points,<wbr/>
24613 the camera device must linearly interpolate between the control
24615 <p>Each curve can have an independent number of points,<wbr/> and the number
24616 of points can be less than max (that is,<wbr/> the request doesn't have to
24617 always provide a curve with number of points equivalent to
24618 <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
24619 <p>A few examples,<wbr/> and their corresponding graphical mappings; these
24620 only specify the red channel and the precision is limited to 4
24621 digits,<wbr/> for conciseness.<wbr/></p>
24622 <p>Linear mapping:</p>
24623 <pre><code>curveRed = [ (0,<wbr/> 0),<wbr/> (1.<wbr/>0,<wbr/> 1.<wbr/>0) ]
24625 <p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
24626 <p>Invert mapping:</p>
24627 <pre><code>curveRed = [ (0,<wbr/> 1.<wbr/>0),<wbr/> (1.<wbr/>0,<wbr/> 0) ]
24629 <p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
24630 <p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
24631 <pre><code>curveRed = [
24632 (0.<wbr/>0000,<wbr/> 0.<wbr/>0000),<wbr/> (0.<wbr/>0667,<wbr/> 0.<wbr/>2920),<wbr/> (0.<wbr/>1333,<wbr/> 0.<wbr/>4002),<wbr/> (0.<wbr/>2000,<wbr/> 0.<wbr/>4812),<wbr/>
24633 (0.<wbr/>2667,<wbr/> 0.<wbr/>5484),<wbr/> (0.<wbr/>3333,<wbr/> 0.<wbr/>6069),<wbr/> (0.<wbr/>4000,<wbr/> 0.<wbr/>6594),<wbr/> (0.<wbr/>4667,<wbr/> 0.<wbr/>7072),<wbr/>
24634 (0.<wbr/>5333,<wbr/> 0.<wbr/>7515),<wbr/> (0.<wbr/>6000,<wbr/> 0.<wbr/>7928),<wbr/> (0.<wbr/>6667,<wbr/> 0.<wbr/>8317),<wbr/> (0.<wbr/>7333,<wbr/> 0.<wbr/>8685),<wbr/>
24635 (0.<wbr/>8000,<wbr/> 0.<wbr/>9035),<wbr/> (0.<wbr/>8667,<wbr/> 0.<wbr/>9370),<wbr/> (0.<wbr/>9333,<wbr/> 0.<wbr/>9691),<wbr/> (1.<wbr/>0000,<wbr/> 1.<wbr/>0000) ]
24637 <p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
24638 <p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
24639 <pre><code>curveRed = [
24640 (0.<wbr/>0000,<wbr/> 0.<wbr/>0000),<wbr/> (0.<wbr/>0667,<wbr/> 0.<wbr/>2864),<wbr/> (0.<wbr/>1333,<wbr/> 0.<wbr/>4007),<wbr/> (0.<wbr/>2000,<wbr/> 0.<wbr/>4845),<wbr/>
24641 (0.<wbr/>2667,<wbr/> 0.<wbr/>5532),<wbr/> (0.<wbr/>3333,<wbr/> 0.<wbr/>6125),<wbr/> (0.<wbr/>4000,<wbr/> 0.<wbr/>6652),<wbr/> (0.<wbr/>4667,<wbr/> 0.<wbr/>7130),<wbr/>
24642 (0.<wbr/>5333,<wbr/> 0.<wbr/>7569),<wbr/> (0.<wbr/>6000,<wbr/> 0.<wbr/>7977),<wbr/> (0.<wbr/>6667,<wbr/> 0.<wbr/>8360),<wbr/> (0.<wbr/>7333,<wbr/> 0.<wbr/>8721),<wbr/>
24643 (0.<wbr/>8000,<wbr/> 0.<wbr/>9063),<wbr/> (0.<wbr/>8667,<wbr/> 0.<wbr/>9389),<wbr/> (0.<wbr/>9333,<wbr/> 0.<wbr/>9701),<wbr/> (1.<wbr/>0000,<wbr/> 1.<wbr/>0000) ]
24645 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
24649 <tr class="entries_header">
24650 <th class="th_details" colspan="5">HAL Implementation Details</th>
24652 <tr class="entry_cont">
24653 <td class="entry_details" colspan="5">
24654 <p>This entry is created by the framework from the curveRed,<wbr/> curveGreen and
24655 curveBlue entries.<wbr/></p>
24659 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24660 <!-- end of entry -->
24663 <tr class="entry" id="controls_android.tonemap.mode">
24664 <td class="entry_name
24666 android.<wbr/>tonemap.<wbr/>mode
24668 <td class="entry_type">
24669 <span class="entry_type_name entry_type_name_enum">byte</span>
24671 <span class="entry_type_visibility"> [public]</span>
24674 <span class="entry_type_hwlevel">[full] </span>
24678 <ul class="entry_type_enum">
24680 <span class="entry_type_enum_name">CONTRAST_CURVE</span>
24681 <span class="entry_type_enum_notes"><p>Use the tone mapping curve specified in
24682 the <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>* entries.<wbr/></p>
24683 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
24684 for applying the tonemapping curve specified by
24685 <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/></p>
24686 <p>Must not slow down frame rate relative to raw
24687 sensor output.<wbr/></p></span>
24690 <span class="entry_type_enum_name">FAST</span>
24691 <span class="entry_type_enum_notes"><p>Advanced gamma mapping and color enhancement may be applied,<wbr/> without
24692 reducing frame rate compared to raw sensor output.<wbr/></p></span>
24695 <span class="entry_type_enum_name">HIGH_QUALITY</span>
24696 <span class="entry_type_enum_notes"><p>High-quality gamma mapping and color enhancement will be applied,<wbr/> at
24697 the cost of possibly reduced frame rate compared to raw sensor output.<wbr/></p></span>
24700 <span class="entry_type_enum_name">GAMMA_VALUE</span>
24701 <span class="entry_type_enum_notes"><p>Use the gamma value specified in <a href="#controls_android.tonemap.gamma">android.<wbr/>tonemap.<wbr/>gamma</a> to peform
24702 tonemapping.<wbr/></p>
24703 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
24704 for applying the tonemapping curve specified by <a href="#controls_android.tonemap.gamma">android.<wbr/>tonemap.<wbr/>gamma</a>.<wbr/></p>
24705 <p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
24708 <span class="entry_type_enum_name">PRESET_CURVE</span>
24709 <span class="entry_type_enum_notes"><p>Use the preset tonemapping curve specified in
24710 <a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a> to peform tonemapping.<wbr/></p>
24711 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
24712 for applying the tonemapping curve specified by
24713 <a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a>.<wbr/></p>
24714 <p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
24718 </td> <!-- entry_type -->
24720 <td class="entry_description">
24721 <p>High-level global contrast/<wbr/>gamma/<wbr/>tonemapping control.<wbr/></p>
24724 <td class="entry_units">
24727 <td class="entry_range">
24728 <p><a href="#static_android.tonemap.availableToneMapModes">android.<wbr/>tonemap.<wbr/>available<wbr/>Tone<wbr/>Map<wbr/>Modes</a></p>
24731 <td class="entry_tags">
24735 <tr class="entries_header">
24736 <th class="th_details" colspan="5">Details</th>
24738 <tr class="entry_cont">
24739 <td class="entry_details" colspan="5">
24740 <p>When switching to an application-defined contrast curve by setting
24741 <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> to CONTRAST_<wbr/>CURVE,<wbr/> the curve is defined
24742 per-channel with a set of <code>(in,<wbr/> out)</code> points that specify the
24743 mapping from input high-bit-depth pixel value to the output
24744 low-bit-depth value.<wbr/> Since the actual pixel ranges of both input
24745 and output may change depending on the camera pipeline,<wbr/> the values
24746 are specified by normalized floating-point numbers.<wbr/></p>
24747 <p>More-complex color mapping operations such as 3D color look-up
24748 tables,<wbr/> selective chroma enhancement,<wbr/> or other non-linear color
24749 transforms will be disabled when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24750 CONTRAST_<wbr/>CURVE.<wbr/></p>
24751 <p>When using either FAST or HIGH_<wbr/>QUALITY,<wbr/> the camera device will
24752 emit its own tonemap curve in <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/>
24753 These values are always available,<wbr/> and as close as possible to the
24754 actually used nonlinear/<wbr/>nonglobal transforms.<wbr/></p>
24755 <p>If a request is sent with CONTRAST_<wbr/>CURVE with the camera device's
24756 provided curve in FAST or HIGH_<wbr/>QUALITY,<wbr/> the image's tonemap will be
24757 roughly the same.<wbr/></p>
24762 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24763 <!-- end of entry -->
24766 <tr class="entry" id="controls_android.tonemap.gamma">
24767 <td class="entry_name
24769 android.<wbr/>tonemap.<wbr/>gamma
24771 <td class="entry_type">
24772 <span class="entry_type_name">float</span>
24774 <span class="entry_type_visibility"> [public]</span>
24781 </td> <!-- entry_type -->
24783 <td class="entry_description">
24784 <p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24785 GAMMA_<wbr/>VALUE</p>
24788 <td class="entry_units">
24791 <td class="entry_range">
24794 <td class="entry_tags">
24798 <tr class="entries_header">
24799 <th class="th_details" colspan="5">Details</th>
24801 <tr class="entry_cont">
24802 <td class="entry_details" colspan="5">
24803 <p>The tonemap curve will be defined the following formula:
24804 * OUT = pow(IN,<wbr/> 1.<wbr/>0 /<wbr/> gamma)
24805 where IN and OUT is the input pixel value scaled to range [0.<wbr/>0,<wbr/> 1.<wbr/>0],<wbr/>
24806 pow is the power function and gamma is the gamma value specified by this
24808 <p>The same curve will be applied to all color channels.<wbr/> The camera device
24809 may clip the input gamma value to its supported range.<wbr/> The actual applied
24810 value will be returned in capture result.<wbr/></p>
24811 <p>The valid range of gamma value varies on different devices,<wbr/> but values
24812 within [1.<wbr/>0,<wbr/> 5.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
24817 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24818 <!-- end of entry -->
24821 <tr class="entry" id="controls_android.tonemap.presetCurve">
24822 <td class="entry_name
24824 android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve
24826 <td class="entry_type">
24827 <span class="entry_type_name entry_type_name_enum">byte</span>
24829 <span class="entry_type_visibility"> [public]</span>
24835 <ul class="entry_type_enum">
24837 <span class="entry_type_enum_name">SRGB</span>
24838 <span class="entry_type_enum_notes"><p>Tonemapping curve is defined by sRGB</p></span>
24841 <span class="entry_type_enum_name">REC709</span>
24842 <span class="entry_type_enum_notes"><p>Tonemapping curve is defined by ITU-R BT.<wbr/>709</p></span>
24846 </td> <!-- entry_type -->
24848 <td class="entry_description">
24849 <p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24850 PRESET_<wbr/>CURVE</p>
24853 <td class="entry_units">
24856 <td class="entry_range">
24859 <td class="entry_tags">
24863 <tr class="entries_header">
24864 <th class="th_details" colspan="5">Details</th>
24866 <tr class="entry_cont">
24867 <td class="entry_details" colspan="5">
24868 <p>The tonemap curve will be defined by specified standard.<wbr/></p>
24869 <p>sRGB (approximated by 16 control points):</p>
24870 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
24871 <p>Rec.<wbr/> 709 (approximated by 16 control points):</p>
24872 <p><img alt="Rec. 709 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/rec709_tonemap.png"/></p>
24873 <p>Note that above figures show a 16 control points approximation of preset
24874 curves.<wbr/> Camera devices may apply a different approximation to the curve.<wbr/></p>
24879 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24880 <!-- end of entry -->
24884 <!-- end of kind -->
24886 <tr><td colspan="6" class="kind">static</td></tr>
24888 <thead class="entries_header">
24890 <th class="th_name">Property Name</th>
24891 <th class="th_type">Type</th>
24892 <th class="th_description">Description</th>
24893 <th class="th_units">Units</th>
24894 <th class="th_range">Range</th>
24895 <th class="th_tags">Tags</th>
24910 <tr class="entry" id="static_android.tonemap.maxCurvePoints">
24911 <td class="entry_name
24913 android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points
24915 <td class="entry_type">
24916 <span class="entry_type_name">int32</span>
24918 <span class="entry_type_visibility"> [public]</span>
24921 <span class="entry_type_hwlevel">[full] </span>
24926 </td> <!-- entry_type -->
24928 <td class="entry_description">
24929 <p>Maximum number of supported points in the
24930 tonemap curve that can be used for <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/></p>
24933 <td class="entry_units">
24936 <td class="entry_range">
24939 <td class="entry_tags">
24943 <tr class="entries_header">
24944 <th class="th_details" colspan="5">Details</th>
24946 <tr class="entry_cont">
24947 <td class="entry_details" colspan="5">
24948 <p>If the actual number of points provided by the application (in <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>*) is
24949 less than this maximum,<wbr/> the camera device will resample the curve to its internal
24950 representation,<wbr/> using linear interpolation.<wbr/></p>
24951 <p>The output curves in the result metadata may have a different number
24952 of points than the input curves,<wbr/> and will represent the actual
24953 hardware curves used as closely as possible when linearly interpolated.<wbr/></p>
24957 <tr class="entries_header">
24958 <th class="th_details" colspan="5">HAL Implementation Details</th>
24960 <tr class="entry_cont">
24961 <td class="entry_details" colspan="5">
24962 <p>This value must be at least 64.<wbr/> This should be at least 128.<wbr/></p>
24966 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24967 <!-- end of entry -->
24970 <tr class="entry" id="static_android.tonemap.availableToneMapModes">
24971 <td class="entry_name
24973 android.<wbr/>tonemap.<wbr/>available<wbr/>Tone<wbr/>Map<wbr/>Modes
24975 <td class="entry_type">
24976 <span class="entry_type_name">byte</span>
24977 <span class="entry_type_container">x</span>
24979 <span class="entry_type_array">
24982 <span class="entry_type_visibility"> [public as enumList]</span>
24985 <span class="entry_type_hwlevel">[full] </span>
24988 <div class="entry_type_notes">list of enums</div>
24991 </td> <!-- entry_type -->
24993 <td class="entry_description">
24994 <p>List of tonemapping modes for <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> that are supported by this camera
24998 <td class="entry_units">
25001 <td class="entry_range">
25002 <p>Any value listed in <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a></p>
25005 <td class="entry_tags">
25009 <tr class="entries_header">
25010 <th class="th_details" colspan="5">Details</th>
25012 <tr class="entry_cont">
25013 <td class="entry_details" colspan="5">
25014 <p>Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always contain
25015 at least one of below mode combinations:</p>
25017 <li>CONTRAST_<wbr/>CURVE,<wbr/> FAST and HIGH_<wbr/>QUALITY</li>
25018 <li>GAMMA_<wbr/>VALUE,<wbr/> PRESET_<wbr/>CURVE,<wbr/> FAST and HIGH_<wbr/>QUALITY</li>
25020 <p>This includes all FULL level devices.<wbr/></p>
25024 <tr class="entries_header">
25025 <th class="th_details" colspan="5">HAL Implementation Details</th>
25027 <tr class="entry_cont">
25028 <td class="entry_details" colspan="5">
25029 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if automatic tonemap control is available
25030 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
25031 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
25032 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
25036 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25037 <!-- end of entry -->
25041 <!-- end of kind -->
25043 <tr><td colspan="6" class="kind">dynamic</td></tr>
25045 <thead class="entries_header">
25047 <th class="th_name">Property Name</th>
25048 <th class="th_type">Type</th>
25049 <th class="th_description">Description</th>
25050 <th class="th_units">Units</th>
25051 <th class="th_range">Range</th>
25052 <th class="th_tags">Tags</th>
25067 <tr class="entry" id="dynamic_android.tonemap.curveBlue">
25068 <td class="entry_name
25070 android.<wbr/>tonemap.<wbr/>curve<wbr/>Blue
25072 <td class="entry_type">
25073 <span class="entry_type_name">float</span>
25074 <span class="entry_type_container">x</span>
25076 <span class="entry_type_array">
25079 <span class="entry_type_visibility"> [ndk_public]</span>
25082 <span class="entry_type_hwlevel">[full] </span>
25085 <div class="entry_type_notes">1D array of float pairs (P_<wbr/>IN,<wbr/> P_<wbr/>OUT).<wbr/> The maximum number of pairs is specified by android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points.<wbr/></div>
25088 </td> <!-- entry_type -->
25090 <td class="entry_description">
25091 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the blue
25092 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
25093 CONTRAST_<wbr/>CURVE.<wbr/></p>
25096 <td class="entry_units">
25099 <td class="entry_range">
25102 <td class="entry_tags">
25106 <tr class="entries_header">
25107 <th class="th_details" colspan="5">Details</th>
25109 <tr class="entry_cont">
25110 <td class="entry_details" colspan="5">
25111 <p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
25116 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25117 <!-- end of entry -->
25120 <tr class="entry" id="dynamic_android.tonemap.curveGreen">
25121 <td class="entry_name
25123 android.<wbr/>tonemap.<wbr/>curve<wbr/>Green
25125 <td class="entry_type">
25126 <span class="entry_type_name">float</span>
25127 <span class="entry_type_container">x</span>
25129 <span class="entry_type_array">
25132 <span class="entry_type_visibility"> [ndk_public]</span>
25135 <span class="entry_type_hwlevel">[full] </span>
25138 <div class="entry_type_notes">1D array of float pairs (P_<wbr/>IN,<wbr/> P_<wbr/>OUT).<wbr/> The maximum number of pairs is specified by android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points.<wbr/></div>
25141 </td> <!-- entry_type -->
25143 <td class="entry_description">
25144 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the green
25145 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
25146 CONTRAST_<wbr/>CURVE.<wbr/></p>
25149 <td class="entry_units">
25152 <td class="entry_range">
25155 <td class="entry_tags">
25159 <tr class="entries_header">
25160 <th class="th_details" colspan="5">Details</th>
25162 <tr class="entry_cont">
25163 <td class="entry_details" colspan="5">
25164 <p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
25169 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25170 <!-- end of entry -->
25173 <tr class="entry" id="dynamic_android.tonemap.curveRed">
25174 <td class="entry_name
25176 android.<wbr/>tonemap.<wbr/>curve<wbr/>Red
25178 <td class="entry_type">
25179 <span class="entry_type_name">float</span>
25180 <span class="entry_type_container">x</span>
25182 <span class="entry_type_array">
25185 <span class="entry_type_visibility"> [ndk_public]</span>
25188 <span class="entry_type_hwlevel">[full] </span>
25191 <div class="entry_type_notes">1D array of float pairs (P_<wbr/>IN,<wbr/> P_<wbr/>OUT).<wbr/> The maximum number of pairs is specified by android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points.<wbr/></div>
25194 </td> <!-- entry_type -->
25196 <td class="entry_description">
25197 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the red
25198 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
25199 CONTRAST_<wbr/>CURVE.<wbr/></p>
25202 <td class="entry_units">
25205 <td class="entry_range">
25206 <p>0-1 on both input and output coordinates,<wbr/> normalized
25207 as a floating-point value such that 0 == black and 1 == white.<wbr/></p>
25210 <td class="entry_tags">
25214 <tr class="entries_header">
25215 <th class="th_details" colspan="5">Details</th>
25217 <tr class="entry_cont">
25218 <td class="entry_details" colspan="5">
25219 <p>Each channel's curve is defined by an array of control points:</p>
25220 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> =
25221 [ P0in,<wbr/> P0out,<wbr/> P1in,<wbr/> P1out,<wbr/> P2in,<wbr/> P2out,<wbr/> P3in,<wbr/> P3out,<wbr/> ...,<wbr/> PNin,<wbr/> PNout ]
25222 2 <= N <= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
25223 <p>These are sorted in order of increasing <code>Pin</code>; it is
25224 required that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
25225 define a complete mapping.<wbr/> For input values between control points,<wbr/>
25226 the camera device must linearly interpolate between the control
25228 <p>Each curve can have an independent number of points,<wbr/> and the number
25229 of points can be less than max (that is,<wbr/> the request doesn't have to
25230 always provide a curve with number of points equivalent to
25231 <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
25232 <p>A few examples,<wbr/> and their corresponding graphical mappings; these
25233 only specify the red channel and the precision is limited to 4
25234 digits,<wbr/> for conciseness.<wbr/></p>
25235 <p>Linear mapping:</p>
25236 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [ 0,<wbr/> 0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0 ]
25238 <p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
25239 <p>Invert mapping:</p>
25240 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [ 0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 0 ]
25242 <p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
25243 <p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
25244 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
25245 0.<wbr/>0000,<wbr/> 0.<wbr/>0000,<wbr/> 0.<wbr/>0667,<wbr/> 0.<wbr/>2920,<wbr/> 0.<wbr/>1333,<wbr/> 0.<wbr/>4002,<wbr/> 0.<wbr/>2000,<wbr/> 0.<wbr/>4812,<wbr/>
25246 0.<wbr/>2667,<wbr/> 0.<wbr/>5484,<wbr/> 0.<wbr/>3333,<wbr/> 0.<wbr/>6069,<wbr/> 0.<wbr/>4000,<wbr/> 0.<wbr/>6594,<wbr/> 0.<wbr/>4667,<wbr/> 0.<wbr/>7072,<wbr/>
25247 0.<wbr/>5333,<wbr/> 0.<wbr/>7515,<wbr/> 0.<wbr/>6000,<wbr/> 0.<wbr/>7928,<wbr/> 0.<wbr/>6667,<wbr/> 0.<wbr/>8317,<wbr/> 0.<wbr/>7333,<wbr/> 0.<wbr/>8685,<wbr/>
25248 0.<wbr/>8000,<wbr/> 0.<wbr/>9035,<wbr/> 0.<wbr/>8667,<wbr/> 0.<wbr/>9370,<wbr/> 0.<wbr/>9333,<wbr/> 0.<wbr/>9691,<wbr/> 1.<wbr/>0000,<wbr/> 1.<wbr/>0000 ]
25250 <p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
25251 <p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
25252 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
25253 0.<wbr/>0000,<wbr/> 0.<wbr/>0000,<wbr/> 0.<wbr/>0667,<wbr/> 0.<wbr/>2864,<wbr/> 0.<wbr/>1333,<wbr/> 0.<wbr/>4007,<wbr/> 0.<wbr/>2000,<wbr/> 0.<wbr/>4845,<wbr/>
25254 0.<wbr/>2667,<wbr/> 0.<wbr/>5532,<wbr/> 0.<wbr/>3333,<wbr/> 0.<wbr/>6125,<wbr/> 0.<wbr/>4000,<wbr/> 0.<wbr/>6652,<wbr/> 0.<wbr/>4667,<wbr/> 0.<wbr/>7130,<wbr/>
25255 0.<wbr/>5333,<wbr/> 0.<wbr/>7569,<wbr/> 0.<wbr/>6000,<wbr/> 0.<wbr/>7977,<wbr/> 0.<wbr/>6667,<wbr/> 0.<wbr/>8360,<wbr/> 0.<wbr/>7333,<wbr/> 0.<wbr/>8721,<wbr/>
25256 0.<wbr/>8000,<wbr/> 0.<wbr/>9063,<wbr/> 0.<wbr/>8667,<wbr/> 0.<wbr/>9389,<wbr/> 0.<wbr/>9333,<wbr/> 0.<wbr/>9701,<wbr/> 1.<wbr/>0000,<wbr/> 1.<wbr/>0000 ]
25258 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
25262 <tr class="entries_header">
25263 <th class="th_details" colspan="5">HAL Implementation Details</th>
25265 <tr class="entry_cont">
25266 <td class="entry_details" colspan="5">
25267 <p>For good quality of mapping,<wbr/> at least 128 control points are
25268 preferred.<wbr/></p>
25269 <p>A typical use case of this would be a gamma-1/<wbr/>2.<wbr/>2 curve,<wbr/> with as many
25270 control points used as are available.<wbr/></p>
25274 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25275 <!-- end of entry -->
25278 <tr class="entry" id="dynamic_android.tonemap.curve">
25279 <td class="entry_name
25281 android.<wbr/>tonemap.<wbr/>curve
25283 <td class="entry_type">
25284 <span class="entry_type_name">float</span>
25286 <span class="entry_type_visibility"> [java_public as tonemapCurve]</span>
25288 <span class="entry_type_synthetic">[synthetic] </span>
25290 <span class="entry_type_hwlevel">[full] </span>
25295 </td> <!-- entry_type -->
25297 <td class="entry_description">
25298 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a>
25299 is CONTRAST_<wbr/>CURVE.<wbr/></p>
25302 <td class="entry_units">
25305 <td class="entry_range">
25308 <td class="entry_tags">
25312 <tr class="entries_header">
25313 <th class="th_details" colspan="5">Details</th>
25315 <tr class="entry_cont">
25316 <td class="entry_details" colspan="5">
25317 <p>The tonemapCurve consist of three curves for each of red,<wbr/> green,<wbr/> and blue
25318 channels respectively.<wbr/> The following example uses the red channel as an
25319 example.<wbr/> The same logic applies to green and blue channel.<wbr/>
25320 Each channel's curve is defined by an array of control points:</p>
25321 <pre><code>curveRed =
25322 [ P0(in,<wbr/> out),<wbr/> P1(in,<wbr/> out),<wbr/> P2(in,<wbr/> out),<wbr/> P3(in,<wbr/> out),<wbr/> ...,<wbr/> PN(in,<wbr/> out) ]
25323 2 <= N <= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
25324 <p>These are sorted in order of increasing <code>Pin</code>; it is always
25325 guaranteed that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
25326 define a complete mapping.<wbr/> For input values between control points,<wbr/>
25327 the camera device must linearly interpolate between the control
25329 <p>Each curve can have an independent number of points,<wbr/> and the number
25330 of points can be less than max (that is,<wbr/> the request doesn't have to
25331 always provide a curve with number of points equivalent to
25332 <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
25333 <p>A few examples,<wbr/> and their corresponding graphical mappings; these
25334 only specify the red channel and the precision is limited to 4
25335 digits,<wbr/> for conciseness.<wbr/></p>
25336 <p>Linear mapping:</p>
25337 <pre><code>curveRed = [ (0,<wbr/> 0),<wbr/> (1.<wbr/>0,<wbr/> 1.<wbr/>0) ]
25339 <p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
25340 <p>Invert mapping:</p>
25341 <pre><code>curveRed = [ (0,<wbr/> 1.<wbr/>0),<wbr/> (1.<wbr/>0,<wbr/> 0) ]
25343 <p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
25344 <p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
25345 <pre><code>curveRed = [
25346 (0.<wbr/>0000,<wbr/> 0.<wbr/>0000),<wbr/> (0.<wbr/>0667,<wbr/> 0.<wbr/>2920),<wbr/> (0.<wbr/>1333,<wbr/> 0.<wbr/>4002),<wbr/> (0.<wbr/>2000,<wbr/> 0.<wbr/>4812),<wbr/>
25347 (0.<wbr/>2667,<wbr/> 0.<wbr/>5484),<wbr/> (0.<wbr/>3333,<wbr/> 0.<wbr/>6069),<wbr/> (0.<wbr/>4000,<wbr/> 0.<wbr/>6594),<wbr/> (0.<wbr/>4667,<wbr/> 0.<wbr/>7072),<wbr/>
25348 (0.<wbr/>5333,<wbr/> 0.<wbr/>7515),<wbr/> (0.<wbr/>6000,<wbr/> 0.<wbr/>7928),<wbr/> (0.<wbr/>6667,<wbr/> 0.<wbr/>8317),<wbr/> (0.<wbr/>7333,<wbr/> 0.<wbr/>8685),<wbr/>
25349 (0.<wbr/>8000,<wbr/> 0.<wbr/>9035),<wbr/> (0.<wbr/>8667,<wbr/> 0.<wbr/>9370),<wbr/> (0.<wbr/>9333,<wbr/> 0.<wbr/>9691),<wbr/> (1.<wbr/>0000,<wbr/> 1.<wbr/>0000) ]
25351 <p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
25352 <p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
25353 <pre><code>curveRed = [
25354 (0.<wbr/>0000,<wbr/> 0.<wbr/>0000),<wbr/> (0.<wbr/>0667,<wbr/> 0.<wbr/>2864),<wbr/> (0.<wbr/>1333,<wbr/> 0.<wbr/>4007),<wbr/> (0.<wbr/>2000,<wbr/> 0.<wbr/>4845),<wbr/>
25355 (0.<wbr/>2667,<wbr/> 0.<wbr/>5532),<wbr/> (0.<wbr/>3333,<wbr/> 0.<wbr/>6125),<wbr/> (0.<wbr/>4000,<wbr/> 0.<wbr/>6652),<wbr/> (0.<wbr/>4667,<wbr/> 0.<wbr/>7130),<wbr/>
25356 (0.<wbr/>5333,<wbr/> 0.<wbr/>7569),<wbr/> (0.<wbr/>6000,<wbr/> 0.<wbr/>7977),<wbr/> (0.<wbr/>6667,<wbr/> 0.<wbr/>8360),<wbr/> (0.<wbr/>7333,<wbr/> 0.<wbr/>8721),<wbr/>
25357 (0.<wbr/>8000,<wbr/> 0.<wbr/>9063),<wbr/> (0.<wbr/>8667,<wbr/> 0.<wbr/>9389),<wbr/> (0.<wbr/>9333,<wbr/> 0.<wbr/>9701),<wbr/> (1.<wbr/>0000,<wbr/> 1.<wbr/>0000) ]
25359 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
25363 <tr class="entries_header">
25364 <th class="th_details" colspan="5">HAL Implementation Details</th>
25366 <tr class="entry_cont">
25367 <td class="entry_details" colspan="5">
25368 <p>This entry is created by the framework from the curveRed,<wbr/> curveGreen and
25369 curveBlue entries.<wbr/></p>
25373 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25374 <!-- end of entry -->
25377 <tr class="entry" id="dynamic_android.tonemap.mode">
25378 <td class="entry_name
25380 android.<wbr/>tonemap.<wbr/>mode
25382 <td class="entry_type">
25383 <span class="entry_type_name entry_type_name_enum">byte</span>
25385 <span class="entry_type_visibility"> [public]</span>
25388 <span class="entry_type_hwlevel">[full] </span>
25392 <ul class="entry_type_enum">
25394 <span class="entry_type_enum_name">CONTRAST_CURVE</span>
25395 <span class="entry_type_enum_notes"><p>Use the tone mapping curve specified in
25396 the <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>* entries.<wbr/></p>
25397 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
25398 for applying the tonemapping curve specified by
25399 <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/></p>
25400 <p>Must not slow down frame rate relative to raw
25401 sensor output.<wbr/></p></span>
25404 <span class="entry_type_enum_name">FAST</span>
25405 <span class="entry_type_enum_notes"><p>Advanced gamma mapping and color enhancement may be applied,<wbr/> without
25406 reducing frame rate compared to raw sensor output.<wbr/></p></span>
25409 <span class="entry_type_enum_name">HIGH_QUALITY</span>
25410 <span class="entry_type_enum_notes"><p>High-quality gamma mapping and color enhancement will be applied,<wbr/> at
25411 the cost of possibly reduced frame rate compared to raw sensor output.<wbr/></p></span>
25414 <span class="entry_type_enum_name">GAMMA_VALUE</span>
25415 <span class="entry_type_enum_notes"><p>Use the gamma value specified in <a href="#controls_android.tonemap.gamma">android.<wbr/>tonemap.<wbr/>gamma</a> to peform
25416 tonemapping.<wbr/></p>
25417 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
25418 for applying the tonemapping curve specified by <a href="#controls_android.tonemap.gamma">android.<wbr/>tonemap.<wbr/>gamma</a>.<wbr/></p>
25419 <p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
25422 <span class="entry_type_enum_name">PRESET_CURVE</span>
25423 <span class="entry_type_enum_notes"><p>Use the preset tonemapping curve specified in
25424 <a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a> to peform tonemapping.<wbr/></p>
25425 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
25426 for applying the tonemapping curve specified by
25427 <a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a>.<wbr/></p>
25428 <p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
25432 </td> <!-- entry_type -->
25434 <td class="entry_description">
25435 <p>High-level global contrast/<wbr/>gamma/<wbr/>tonemapping control.<wbr/></p>
25438 <td class="entry_units">
25441 <td class="entry_range">
25442 <p><a href="#static_android.tonemap.availableToneMapModes">android.<wbr/>tonemap.<wbr/>available<wbr/>Tone<wbr/>Map<wbr/>Modes</a></p>
25445 <td class="entry_tags">
25449 <tr class="entries_header">
25450 <th class="th_details" colspan="5">Details</th>
25452 <tr class="entry_cont">
25453 <td class="entry_details" colspan="5">
25454 <p>When switching to an application-defined contrast curve by setting
25455 <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> to CONTRAST_<wbr/>CURVE,<wbr/> the curve is defined
25456 per-channel with a set of <code>(in,<wbr/> out)</code> points that specify the
25457 mapping from input high-bit-depth pixel value to the output
25458 low-bit-depth value.<wbr/> Since the actual pixel ranges of both input
25459 and output may change depending on the camera pipeline,<wbr/> the values
25460 are specified by normalized floating-point numbers.<wbr/></p>
25461 <p>More-complex color mapping operations such as 3D color look-up
25462 tables,<wbr/> selective chroma enhancement,<wbr/> or other non-linear color
25463 transforms will be disabled when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
25464 CONTRAST_<wbr/>CURVE.<wbr/></p>
25465 <p>When using either FAST or HIGH_<wbr/>QUALITY,<wbr/> the camera device will
25466 emit its own tonemap curve in <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/>
25467 These values are always available,<wbr/> and as close as possible to the
25468 actually used nonlinear/<wbr/>nonglobal transforms.<wbr/></p>
25469 <p>If a request is sent with CONTRAST_<wbr/>CURVE with the camera device's
25470 provided curve in FAST or HIGH_<wbr/>QUALITY,<wbr/> the image's tonemap will be
25471 roughly the same.<wbr/></p>
25476 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25477 <!-- end of entry -->
25480 <tr class="entry" id="dynamic_android.tonemap.gamma">
25481 <td class="entry_name
25483 android.<wbr/>tonemap.<wbr/>gamma
25485 <td class="entry_type">
25486 <span class="entry_type_name">float</span>
25488 <span class="entry_type_visibility"> [public]</span>
25495 </td> <!-- entry_type -->
25497 <td class="entry_description">
25498 <p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
25499 GAMMA_<wbr/>VALUE</p>
25502 <td class="entry_units">
25505 <td class="entry_range">
25508 <td class="entry_tags">
25512 <tr class="entries_header">
25513 <th class="th_details" colspan="5">Details</th>
25515 <tr class="entry_cont">
25516 <td class="entry_details" colspan="5">
25517 <p>The tonemap curve will be defined the following formula:
25518 * OUT = pow(IN,<wbr/> 1.<wbr/>0 /<wbr/> gamma)
25519 where IN and OUT is the input pixel value scaled to range [0.<wbr/>0,<wbr/> 1.<wbr/>0],<wbr/>
25520 pow is the power function and gamma is the gamma value specified by this
25522 <p>The same curve will be applied to all color channels.<wbr/> The camera device
25523 may clip the input gamma value to its supported range.<wbr/> The actual applied
25524 value will be returned in capture result.<wbr/></p>
25525 <p>The valid range of gamma value varies on different devices,<wbr/> but values
25526 within [1.<wbr/>0,<wbr/> 5.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
25531 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25532 <!-- end of entry -->
25535 <tr class="entry" id="dynamic_android.tonemap.presetCurve">
25536 <td class="entry_name
25538 android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve
25540 <td class="entry_type">
25541 <span class="entry_type_name entry_type_name_enum">byte</span>
25543 <span class="entry_type_visibility"> [public]</span>
25549 <ul class="entry_type_enum">
25551 <span class="entry_type_enum_name">SRGB</span>
25552 <span class="entry_type_enum_notes"><p>Tonemapping curve is defined by sRGB</p></span>
25555 <span class="entry_type_enum_name">REC709</span>
25556 <span class="entry_type_enum_notes"><p>Tonemapping curve is defined by ITU-R BT.<wbr/>709</p></span>
25560 </td> <!-- entry_type -->
25562 <td class="entry_description">
25563 <p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
25564 PRESET_<wbr/>CURVE</p>
25567 <td class="entry_units">
25570 <td class="entry_range">
25573 <td class="entry_tags">
25577 <tr class="entries_header">
25578 <th class="th_details" colspan="5">Details</th>
25580 <tr class="entry_cont">
25581 <td class="entry_details" colspan="5">
25582 <p>The tonemap curve will be defined by specified standard.<wbr/></p>
25583 <p>sRGB (approximated by 16 control points):</p>
25584 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
25585 <p>Rec.<wbr/> 709 (approximated by 16 control points):</p>
25586 <p><img alt="Rec. 709 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/rec709_tonemap.png"/></p>
25587 <p>Note that above figures show a 16 control points approximation of preset
25588 curves.<wbr/> Camera devices may apply a different approximation to the curve.<wbr/></p>
25593 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25594 <!-- end of entry -->
25598 <!-- end of kind -->
25601 <!-- end of section -->
25602 <tr><td colspan="6" id="section_led" class="section">led</td></tr>
25605 <tr><td colspan="6" class="kind">controls</td></tr>
25607 <thead class="entries_header">
25609 <th class="th_name">Property Name</th>
25610 <th class="th_type">Type</th>
25611 <th class="th_description">Description</th>
25612 <th class="th_units">Units</th>
25613 <th class="th_range">Range</th>
25614 <th class="th_tags">Tags</th>
25629 <tr class="entry" id="controls_android.led.transmit">
25630 <td class="entry_name
25632 android.<wbr/>led.<wbr/>transmit
25634 <td class="entry_type">
25635 <span class="entry_type_name entry_type_name_enum">byte</span>
25637 <span class="entry_type_visibility"> [hidden as boolean]</span>
25643 <ul class="entry_type_enum">
25645 <span class="entry_type_enum_name">OFF</span>
25648 <span class="entry_type_enum_name">ON</span>
25652 </td> <!-- entry_type -->
25654 <td class="entry_description">
25655 <p>This LED is nominally used to indicate to the user
25656 that the camera is powered on and may be streaming images back to the
25657 Application Processor.<wbr/> In certain rare circumstances,<wbr/> the OS may
25658 disable this when video is processed locally and not transmitted to
25659 any untrusted applications.<wbr/></p>
25660 <p>In particular,<wbr/> the LED <em>must</em> always be on when the data could be
25661 transmitted off the device.<wbr/> The LED <em>should</em> always be on whenever
25662 data is stored locally on the device.<wbr/></p>
25663 <p>The LED <em>may</em> be off if a trusted application is using the data that
25664 doesn't violate the above rules.<wbr/></p>
25667 <td class="entry_units">
25670 <td class="entry_range">
25673 <td class="entry_tags">
25679 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25680 <!-- end of entry -->
25684 <!-- end of kind -->
25686 <tr><td colspan="6" class="kind">dynamic</td></tr>
25688 <thead class="entries_header">
25690 <th class="th_name">Property Name</th>
25691 <th class="th_type">Type</th>
25692 <th class="th_description">Description</th>
25693 <th class="th_units">Units</th>
25694 <th class="th_range">Range</th>
25695 <th class="th_tags">Tags</th>
25710 <tr class="entry" id="dynamic_android.led.transmit">
25711 <td class="entry_name
25713 android.<wbr/>led.<wbr/>transmit
25715 <td class="entry_type">
25716 <span class="entry_type_name entry_type_name_enum">byte</span>
25718 <span class="entry_type_visibility"> [hidden as boolean]</span>
25724 <ul class="entry_type_enum">
25726 <span class="entry_type_enum_name">OFF</span>
25729 <span class="entry_type_enum_name">ON</span>
25733 </td> <!-- entry_type -->
25735 <td class="entry_description">
25736 <p>This LED is nominally used to indicate to the user
25737 that the camera is powered on and may be streaming images back to the
25738 Application Processor.<wbr/> In certain rare circumstances,<wbr/> the OS may
25739 disable this when video is processed locally and not transmitted to
25740 any untrusted applications.<wbr/></p>
25741 <p>In particular,<wbr/> the LED <em>must</em> always be on when the data could be
25742 transmitted off the device.<wbr/> The LED <em>should</em> always be on whenever
25743 data is stored locally on the device.<wbr/></p>
25744 <p>The LED <em>may</em> be off if a trusted application is using the data that
25745 doesn't violate the above rules.<wbr/></p>
25748 <td class="entry_units">
25751 <td class="entry_range">
25754 <td class="entry_tags">
25760 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25761 <!-- end of entry -->
25765 <!-- end of kind -->
25767 <tr><td colspan="6" class="kind">static</td></tr>
25769 <thead class="entries_header">
25771 <th class="th_name">Property Name</th>
25772 <th class="th_type">Type</th>
25773 <th class="th_description">Description</th>
25774 <th class="th_units">Units</th>
25775 <th class="th_range">Range</th>
25776 <th class="th_tags">Tags</th>
25791 <tr class="entry" id="static_android.led.availableLeds">
25792 <td class="entry_name
25794 android.<wbr/>led.<wbr/>available<wbr/>Leds
25796 <td class="entry_type">
25797 <span class="entry_type_name entry_type_name_enum">byte</span>
25798 <span class="entry_type_container">x</span>
25800 <span class="entry_type_array">
25803 <span class="entry_type_visibility"> [hidden]</span>
25809 <ul class="entry_type_enum">
25811 <span class="entry_type_enum_name">TRANSMIT</span>
25812 <span class="entry_type_enum_notes"><p><a href="#controls_android.led.transmit">android.<wbr/>led.<wbr/>transmit</a> control is used.<wbr/></p></span>
25816 </td> <!-- entry_type -->
25818 <td class="entry_description">
25819 <p>A list of camera LEDs that are available on this system.<wbr/></p>
25822 <td class="entry_units">
25825 <td class="entry_range">
25828 <td class="entry_tags">
25834 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25835 <!-- end of entry -->
25839 <!-- end of kind -->
25842 <!-- end of section -->
25843 <tr><td colspan="6" id="section_info" class="section">info</td></tr>
25846 <tr><td colspan="6" class="kind">static</td></tr>
25848 <thead class="entries_header">
25850 <th class="th_name">Property Name</th>
25851 <th class="th_type">Type</th>
25852 <th class="th_description">Description</th>
25853 <th class="th_units">Units</th>
25854 <th class="th_range">Range</th>
25855 <th class="th_tags">Tags</th>
25870 <tr class="entry" id="static_android.info.supportedHardwareLevel">
25871 <td class="entry_name
25873 android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level
25875 <td class="entry_type">
25876 <span class="entry_type_name entry_type_name_enum">byte</span>
25878 <span class="entry_type_visibility"> [public]</span>
25881 <span class="entry_type_hwlevel">[legacy] </span>
25885 <ul class="entry_type_enum">
25887 <span class="entry_type_enum_name">LIMITED</span>
25888 <span class="entry_type_enum_notes"><p>This camera device does not have enough capabilities to qualify as a <code>FULL</code> device or
25890 <p>Only the stream configurations listed in the <code>LEGACY</code> and <code>LIMITED</code> tables in the
25891 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">createCaptureSession</a> documentation are guaranteed to be supported.<wbr/></p>
25892 <p>All <code>LIMITED</code> devices support the <code>BACKWARDS_<wbr/>COMPATIBLE</code> capability,<wbr/> indicating basic
25893 support for color image capture.<wbr/> The only exception is that the device may
25894 alternatively support only the <code>DEPTH_<wbr/>OUTPUT</code> capability,<wbr/> if it can only output depth
25895 measurements and not color images.<wbr/></p>
25896 <p><code>LIMITED</code> devices and above require the use of <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>
25897 to lock exposure metering (and calculate flash power,<wbr/> for cameras with flash) before
25898 capturing a high-quality still image.<wbr/></p>
25899 <p>A <code>LIMITED</code> device that only lists the <code>BACKWARDS_<wbr/>COMPATIBLE</code> capability is only
25900 required to support full-automatic operation and post-processing (<code>OFF</code> is not
25901 supported for <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/> <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>,<wbr/> or
25902 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>)</p>
25903 <p>Additional capabilities may optionally be supported by a <code>LIMITED</code>-level device,<wbr/> and
25904 can be checked for in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p></span>
25907 <span class="entry_type_enum_name">FULL</span>
25908 <span class="entry_type_enum_notes"><p>This camera device is capable of supporting advanced imaging applications.<wbr/></p>
25909 <p>The stream configurations listed in the <code>FULL</code>,<wbr/> <code>LEGACY</code> and <code>LIMITED</code> tables in the
25910 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">createCaptureSession</a> documentation are guaranteed to be supported.<wbr/></p>
25911 <p>A <code>FULL</code> device will support below capabilities:</p>
25913 <li><code>BURST_<wbr/>CAPTURE</code> capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
25914 <code>BURST_<wbr/>CAPTURE</code>)</li>
25915 <li>Per frame control (<a href="#static_android.sync.maxLatency">android.<wbr/>sync.<wbr/>max<wbr/>Latency</a> <code>==</code> PER_<wbr/>FRAME_<wbr/>CONTROL)</li>
25916 <li>Manual sensor control (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains <code>MANUAL_<wbr/>SENSOR</code>)</li>
25917 <li>Manual post-processing control (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
25918 <code>MANUAL_<wbr/>POST_<wbr/>PROCESSING</code>)</li>
25919 <li>The required exposure time range defined in <a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a></li>
25920 <li>The required maxFrameDuration defined in <a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a></li>
25923 Pre-API level 23,<wbr/> FULL devices also supported arbitrary cropping region
25924 (<a href="#static_android.scaler.croppingType">android.<wbr/>scaler.<wbr/>cropping<wbr/>Type</a> <code>== FREEFORM</code>); this requirement was relaxed in API level
25925 23,<wbr/> and <code>FULL</code> devices may only support <code>CENTERED</code> cropping.<wbr/></p></span>
25928 <span class="entry_type_enum_name">LEGACY</span>
25929 <span class="entry_type_enum_notes"><p>This camera device is running in backward compatibility mode.<wbr/></p>
25930 <p>Only the stream configurations listed in the <code>LEGACY</code> table in the <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">createCaptureSession</a>
25931 documentation are supported.<wbr/></p>
25932 <p>A <code>LEGACY</code> device does not support per-frame control,<wbr/> manual sensor control,<wbr/> manual
25933 post-processing,<wbr/> arbitrary cropping regions,<wbr/> and has relaxed performance constraints.<wbr/>
25934 No additional capabilities beyond <code>BACKWARD_<wbr/>COMPATIBLE</code> will ever be listed by a
25935 <code>LEGACY</code> device in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
25936 <p>In addition,<wbr/> the <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is not functional on <code>LEGACY</code>
25937 devices.<wbr/> Instead,<wbr/> every request that includes a JPEG-format output target is treated
25938 as triggering a still capture,<wbr/> internally executing a precapture trigger.<wbr/> This may
25939 fire the flash for flash power metering during precapture,<wbr/> and then fire the flash
25940 for the final capture,<wbr/> if a flash is available on the device and the AE mode is set to
25941 enable the flash.<wbr/></p></span>
25944 <span class="entry_type_enum_name">3</span>
25945 <span class="entry_type_enum_notes"><p>This camera device is capable of YUV reprocessing and RAW data capture,<wbr/> in addition to
25946 FULL-level capabilities.<wbr/></p>
25947 <p>The stream configurations listed in the <code>LEVEL_<wbr/>3</code>,<wbr/> <code>RAW</code>,<wbr/> <code>FULL</code>,<wbr/> <code>LEGACY</code> and
25948 <code>LIMITED</code> tables in the <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">createCaptureSession</a>
25949 documentation are guaranteed to be supported.<wbr/></p>
25950 <p>The following additional capabilities are guaranteed to be supported:</p>
25952 <li><code>YUV_<wbr/>REPROCESSING</code> capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
25953 <code>YUV_<wbr/>REPROCESSING</code>)</li>
25954 <li><code>RAW</code> capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
25955 <code>RAW</code>)</li>
25960 </td> <!-- entry_type -->
25962 <td class="entry_description">
25963 <p>Generally classifies the overall set of the camera device functionality.<wbr/></p>
25966 <td class="entry_units">
25969 <td class="entry_range">
25972 <td class="entry_tags">
25976 <tr class="entries_header">
25977 <th class="th_details" colspan="5">Details</th>
25979 <tr class="entry_cont">
25980 <td class="entry_details" colspan="5">
25981 <p>The supported hardware level is a high-level description of the camera device's
25982 capabilities,<wbr/> summarizing several capabilities into one field.<wbr/> Each level adds additional
25983 features to the previous one,<wbr/> and is always a strict superset of the previous level.<wbr/>
25984 The ordering is <code>LEGACY < LIMITED < FULL < LEVEL_<wbr/>3</code>.<wbr/></p>
25985 <p>Starting from <code>LEVEL_<wbr/>3</code>,<wbr/> the level enumerations are guaranteed to be in increasing
25986 numerical value as well.<wbr/> To check if a given device is at least at a given hardware level,<wbr/>
25987 the following code snippet can be used:</p>
25988 <pre><code>//<wbr/> Returns true if the device supports the required hardware level,<wbr/> or better.<wbr/>
25989 boolean isHardwareLevelSupported(CameraCharacteristics c,<wbr/> int requiredLevel) {
25990 int deviceLevel = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>INFO_<wbr/>SUPPORTED_<wbr/>HARDWARE_<wbr/>LEVEL);
25991 if (deviceLevel == Camera<wbr/>Characteristics.<wbr/>INFO_<wbr/>SUPPORTED_<wbr/>HARDWARE_<wbr/>LEVEL_<wbr/>LEGACY) {
25992 return requiredLevel == deviceLevel;
25994 //<wbr/> deviceLevel is not LEGACY,<wbr/> can use numerical sort
25995 return requiredLevel <= deviceLevel;
25998 <p>At a high level,<wbr/> the levels are:</p>
26000 <li><code>LEGACY</code> devices operate in a backwards-compatibility mode for older
26001 Android devices,<wbr/> and have very limited capabilities.<wbr/></li>
26002 <li><code>LIMITED</code> devices represent the
26003 baseline feature set,<wbr/> and may also include additional capabilities that are
26004 subsets of <code>FULL</code>.<wbr/></li>
26005 <li><code>FULL</code> devices additionally support per-frame manual control of sensor,<wbr/> flash,<wbr/> lens and
26006 post-processing settings,<wbr/> and image capture at a high rate.<wbr/></li>
26007 <li><code>LEVEL_<wbr/>3</code> devices additionally support YUV reprocessing and RAW image capture,<wbr/> along
26008 with additional output stream configurations.<wbr/></li>
26010 <p>See the individual level enums for full descriptions of the supported capabilities.<wbr/> The
26011 <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> entry describes the device's capabilities at a
26012 finer-grain level,<wbr/> if needed.<wbr/> In addition,<wbr/> many controls have their available settings or
26013 ranges defined in individual <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a> entries.<wbr/></p>
26014 <p>Some features are not part of any particular hardware level or capability and must be
26015 queried separately.<wbr/> These include:</p>
26017 <li>Calibrated timestamps (<a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> REALTIME)</li>
26018 <li>Precision lens control (<a href="#static_android.lens.info.focusDistanceCalibration">android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration</a> <code>==</code> CALIBRATED)</li>
26019 <li>Face detection (<a href="#static_android.statistics.info.availableFaceDetectModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Face<wbr/>Detect<wbr/>Modes</a>)</li>
26020 <li>Optical or electrical image stabilization
26021 (<a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a>,<wbr/>
26022 <a href="#static_android.control.availableVideoStabilizationModes">android.<wbr/>control.<wbr/>available<wbr/>Video<wbr/>Stabilization<wbr/>Modes</a>)</li>
26027 <tr class="entries_header">
26028 <th class="th_details" colspan="5">HAL Implementation Details</th>
26030 <tr class="entry_cont">
26031 <td class="entry_details" colspan="5">
26032 <p>The camera 3 HAL device can implement one of three possible operational modes; LIMITED,<wbr/>
26033 FULL,<wbr/> and LEVEL_<wbr/>3.<wbr/></p>
26034 <p>FULL support or better is expected from new higher-end devices.<wbr/> Limited
26035 mode has hardware requirements roughly in line with those for a camera HAL device v1
26036 implementation,<wbr/> and is expected from older or inexpensive devices.<wbr/> Each level is a strict
26037 superset of the previous level,<wbr/> and they share the same essential operational flow.<wbr/></p>
26038 <p>For full details refer to "S3.<wbr/> Operational Modes" in camera3.<wbr/>h</p>
26039 <p>Camera HAL3+ must not implement LEGACY mode.<wbr/> It is there for backwards compatibility in
26040 the <code>android.<wbr/>hardware.<wbr/>camera2</code> user-facing API only on HALv1 devices,<wbr/> and is implemented
26041 by the camera framework code.<wbr/></p>
26045 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26046 <!-- end of entry -->
26050 <!-- end of kind -->
26053 <!-- end of section -->
26054 <tr><td colspan="6" id="section_blackLevel" class="section">blackLevel</td></tr>
26057 <tr><td colspan="6" class="kind">controls</td></tr>
26059 <thead class="entries_header">
26061 <th class="th_name">Property Name</th>
26062 <th class="th_type">Type</th>
26063 <th class="th_description">Description</th>
26064 <th class="th_units">Units</th>
26065 <th class="th_range">Range</th>
26066 <th class="th_tags">Tags</th>
26081 <tr class="entry" id="controls_android.blackLevel.lock">
26082 <td class="entry_name
26084 android.<wbr/>black<wbr/>Level.<wbr/>lock
26086 <td class="entry_type">
26087 <span class="entry_type_name entry_type_name_enum">byte</span>
26089 <span class="entry_type_visibility"> [public as boolean]</span>
26092 <span class="entry_type_hwlevel">[full] </span>
26096 <ul class="entry_type_enum">
26098 <span class="entry_type_enum_name">OFF</span>
26101 <span class="entry_type_enum_name">ON</span>
26105 </td> <!-- entry_type -->
26107 <td class="entry_description">
26108 <p>Whether black-level compensation is locked
26109 to its current values,<wbr/> or is free to vary.<wbr/></p>
26112 <td class="entry_units">
26115 <td class="entry_range">
26118 <td class="entry_tags">
26119 <ul class="entry_tags">
26120 <li><a href="#tag_HAL2">HAL2</a></li>
26125 <tr class="entries_header">
26126 <th class="th_details" colspan="5">Details</th>
26128 <tr class="entry_cont">
26129 <td class="entry_details" colspan="5">
26130 <p>When set to <code>true</code> (ON),<wbr/> the values used for black-level
26131 compensation will not change until the lock is set to
26132 <code>false</code> (OFF).<wbr/></p>
26133 <p>Since changes to certain capture parameters (such as
26134 exposure time) may require resetting of black level
26135 compensation,<wbr/> the camera device must report whether setting
26136 the black level lock was successful in the output result
26137 metadata.<wbr/></p>
26138 <p>For example,<wbr/> if a sequence of requests is as follows:</p>
26140 <li>Request 1: Exposure = 10ms,<wbr/> Black level lock = OFF</li>
26141 <li>Request 2: Exposure = 10ms,<wbr/> Black level lock = ON</li>
26142 <li>Request 3: Exposure = 10ms,<wbr/> Black level lock = ON</li>
26143 <li>Request 4: Exposure = 20ms,<wbr/> Black level lock = ON</li>
26144 <li>Request 5: Exposure = 20ms,<wbr/> Black level lock = ON</li>
26145 <li>Request 6: Exposure = 20ms,<wbr/> Black level lock = ON</li>
26147 <p>And the exposure change in Request 4 requires the camera
26148 device to reset the black level offsets,<wbr/> then the output
26149 result metadata is expected to be:</p>
26151 <li>Result 1: Exposure = 10ms,<wbr/> Black level lock = OFF</li>
26152 <li>Result 2: Exposure = 10ms,<wbr/> Black level lock = ON</li>
26153 <li>Result 3: Exposure = 10ms,<wbr/> Black level lock = ON</li>
26154 <li>Result 4: Exposure = 20ms,<wbr/> Black level lock = OFF</li>
26155 <li>Result 5: Exposure = 20ms,<wbr/> Black level lock = ON</li>
26156 <li>Result 6: Exposure = 20ms,<wbr/> Black level lock = ON</li>
26158 <p>This indicates to the application that on frame 4,<wbr/> black
26159 levels were reset due to exposure value changes,<wbr/> and pixel
26160 values may not be consistent across captures.<wbr/></p>
26161 <p>The camera device will maintain the lock to the extent
26162 possible,<wbr/> only overriding the lock to OFF when changes to
26163 other request parameters require a black level recalculation
26164 or reset.<wbr/></p>
26168 <tr class="entries_header">
26169 <th class="th_details" colspan="5">HAL Implementation Details</th>
26171 <tr class="entry_cont">
26172 <td class="entry_details" colspan="5">
26173 <p>If for some reason black level locking is no longer possible
26174 (for example,<wbr/> the analog gain has changed,<wbr/> which forces
26175 black level offsets to be recalculated),<wbr/> then the HAL must
26176 override this request (and it must report 'OFF' when this
26177 does happen) until the next capture for which locking is
26178 possible again.<wbr/></p>
26182 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26183 <!-- end of entry -->
26187 <!-- end of kind -->
26189 <tr><td colspan="6" class="kind">dynamic</td></tr>
26191 <thead class="entries_header">
26193 <th class="th_name">Property Name</th>
26194 <th class="th_type">Type</th>
26195 <th class="th_description">Description</th>
26196 <th class="th_units">Units</th>
26197 <th class="th_range">Range</th>
26198 <th class="th_tags">Tags</th>
26213 <tr class="entry" id="dynamic_android.blackLevel.lock">
26214 <td class="entry_name
26216 android.<wbr/>black<wbr/>Level.<wbr/>lock
26218 <td class="entry_type">
26219 <span class="entry_type_name entry_type_name_enum">byte</span>
26221 <span class="entry_type_visibility"> [public as boolean]</span>
26224 <span class="entry_type_hwlevel">[full] </span>
26228 <ul class="entry_type_enum">
26230 <span class="entry_type_enum_name">OFF</span>
26233 <span class="entry_type_enum_name">ON</span>
26237 </td> <!-- entry_type -->
26239 <td class="entry_description">
26240 <p>Whether black-level compensation is locked
26241 to its current values,<wbr/> or is free to vary.<wbr/></p>
26244 <td class="entry_units">
26247 <td class="entry_range">
26250 <td class="entry_tags">
26251 <ul class="entry_tags">
26252 <li><a href="#tag_HAL2">HAL2</a></li>
26257 <tr class="entries_header">
26258 <th class="th_details" colspan="5">Details</th>
26260 <tr class="entry_cont">
26261 <td class="entry_details" colspan="5">
26262 <p>Whether the black level offset was locked for this frame.<wbr/> Should be
26263 ON if <a href="#controls_android.blackLevel.lock">android.<wbr/>black<wbr/>Level.<wbr/>lock</a> was ON in the capture request,<wbr/> unless
26264 a change in other capture settings forced the camera device to
26265 perform a black level reset.<wbr/></p>
26269 <tr class="entries_header">
26270 <th class="th_details" colspan="5">HAL Implementation Details</th>
26272 <tr class="entry_cont">
26273 <td class="entry_details" colspan="5">
26274 <p>If for some reason black level locking is no longer possible
26275 (for example,<wbr/> the analog gain has changed,<wbr/> which forces
26276 black level offsets to be recalculated),<wbr/> then the HAL must
26277 override this request (and it must report 'OFF' when this
26278 does happen) until the next capture for which locking is
26279 possible again.<wbr/></p>
26283 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26284 <!-- end of entry -->
26288 <!-- end of kind -->
26291 <!-- end of section -->
26292 <tr><td colspan="6" id="section_sync" class="section">sync</td></tr>
26295 <tr><td colspan="6" class="kind">dynamic</td></tr>
26297 <thead class="entries_header">
26299 <th class="th_name">Property Name</th>
26300 <th class="th_type">Type</th>
26301 <th class="th_description">Description</th>
26302 <th class="th_units">Units</th>
26303 <th class="th_range">Range</th>
26304 <th class="th_tags">Tags</th>
26319 <tr class="entry" id="dynamic_android.sync.frameNumber">
26320 <td class="entry_name
26322 android.<wbr/>sync.<wbr/>frame<wbr/>Number
26324 <td class="entry_type">
26325 <span class="entry_type_name entry_type_name_enum">int64</span>
26327 <span class="entry_type_visibility"> [ndk_public]</span>
26330 <span class="entry_type_hwlevel">[legacy] </span>
26334 <ul class="entry_type_enum">
26336 <span class="entry_type_enum_name">CONVERGING</span>
26337 <span class="entry_type_enum_value">-1</span>
26338 <span class="entry_type_enum_notes"><p>The current result is not yet fully synchronized to any request.<wbr/></p>
26339 <p>Synchronization is in progress,<wbr/> and reading metadata from this
26340 result may include a mix of data that have taken effect since the
26341 last synchronization time.<wbr/></p>
26342 <p>In some future result,<wbr/> within <a href="#static_android.sync.maxLatency">android.<wbr/>sync.<wbr/>max<wbr/>Latency</a> frames,<wbr/>
26343 this value will update to the actual frame number frame number
26344 the result is guaranteed to be synchronized to (as long as the
26345 request settings remain constant).<wbr/></p></span>
26348 <span class="entry_type_enum_name">UNKNOWN</span>
26349 <span class="entry_type_enum_value">-2</span>
26350 <span class="entry_type_enum_notes"><p>The current result's synchronization status is unknown.<wbr/></p>
26351 <p>The result may have already converged,<wbr/> or it may be in
26352 progress.<wbr/> Reading from this result may include some mix
26353 of settings from past requests.<wbr/></p>
26354 <p>After a settings change,<wbr/> the new settings will eventually all
26355 take effect for the output buffers and results.<wbr/> However,<wbr/> this
26356 value will not change when that happens.<wbr/> Altering settings
26357 rapidly may provide outcomes using mixes of settings from recent
26358 requests.<wbr/></p>
26359 <p>This value is intended primarily for backwards compatibility with
26360 the older camera implementations (for android.<wbr/>hardware.<wbr/>Camera).<wbr/></p></span>
26364 </td> <!-- entry_type -->
26366 <td class="entry_description">
26367 <p>The frame number corresponding to the last request
26368 with which the output result (metadata + buffers) has been fully
26369 synchronized.<wbr/></p>
26372 <td class="entry_units">
26375 <td class="entry_range">
26376 <p>Either a non-negative value corresponding to a
26377 <code>frame_<wbr/>number</code>,<wbr/> or one of the two enums (CONVERGING /<wbr/> UNKNOWN).<wbr/></p>
26380 <td class="entry_tags">
26381 <ul class="entry_tags">
26382 <li><a href="#tag_V1">V1</a></li>
26387 <tr class="entries_header">
26388 <th class="th_details" colspan="5">Details</th>
26390 <tr class="entry_cont">
26391 <td class="entry_details" colspan="5">
26392 <p>When a request is submitted to the camera device,<wbr/> there is usually a
26393 delay of several frames before the controls get applied.<wbr/> A camera
26394 device may either choose to account for this delay by implementing a
26395 pipeline and carefully submit well-timed atomic control updates,<wbr/> or
26396 it may start streaming control changes that span over several frame
26397 boundaries.<wbr/></p>
26398 <p>In the latter case,<wbr/> whenever a request's settings change relative to
26399 the previous submitted request,<wbr/> the full set of changes may take
26400 multiple frame durations to fully take effect.<wbr/> Some settings may
26401 take effect sooner (in less frame durations) than others.<wbr/></p>
26402 <p>While a set of control changes are being propagated,<wbr/> this value
26403 will be CONVERGING.<wbr/></p>
26404 <p>Once it is fully known that a set of control changes have been
26405 finished propagating,<wbr/> and the resulting updated control settings
26406 have been read back by the camera device,<wbr/> this value will be set
26407 to a non-negative frame number (corresponding to the request to
26408 which the results have synchronized to).<wbr/></p>
26409 <p>Older camera device implementations may not have a way to detect
26410 when all camera controls have been applied,<wbr/> and will always set this
26411 value to UNKNOWN.<wbr/></p>
26412 <p>FULL capability devices will always have this value set to the
26413 frame number of the request corresponding to this result.<wbr/></p>
26414 <p><em>Further details</em>:</p>
26416 <li>Whenever a request differs from the last request,<wbr/> any future
26417 results not yet returned may have this value set to CONVERGING (this
26418 could include any in-progress captures not yet returned by the camera
26419 device,<wbr/> for more details see pipeline considerations below).<wbr/></li>
26420 <li>Submitting a series of multiple requests that differ from the
26421 previous request (e.<wbr/>g.<wbr/> r1,<wbr/> r2,<wbr/> r3 s.<wbr/>t.<wbr/> r1 != r2 != r3)
26422 moves the new synchronization frame to the last non-repeating
26423 request (using the smallest frame number from the contiguous list of
26424 repeating requests).<wbr/></li>
26425 <li>Submitting the same request repeatedly will not change this value
26426 to CONVERGING,<wbr/> if it was already a non-negative value.<wbr/></li>
26427 <li>When this value changes to non-negative,<wbr/> that means that all of the
26428 metadata controls from the request have been applied,<wbr/> all of the
26429 metadata controls from the camera device have been read to the
26430 updated values (into the result),<wbr/> and all of the graphics buffers
26431 corresponding to this result are also synchronized to the request.<wbr/></li>
26433 <p><em>Pipeline considerations</em>:</p>
26434 <p>Submitting a request with updated controls relative to the previously
26435 submitted requests may also invalidate the synchronization state
26436 of all the results corresponding to currently in-flight requests.<wbr/></p>
26437 <p>In other words,<wbr/> results for this current request and up to
26438 <a href="#static_android.request.pipelineMaxDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth</a> prior requests may have their
26439 <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> change to CONVERGING.<wbr/></p>
26443 <tr class="entries_header">
26444 <th class="th_details" colspan="5">HAL Implementation Details</th>
26446 <tr class="entry_cont">
26447 <td class="entry_details" colspan="5">
26448 <p>Using UNKNOWN here is illegal unless <a href="#static_android.sync.maxLatency">android.<wbr/>sync.<wbr/>max<wbr/>Latency</a>
26449 is also UNKNOWN.<wbr/></p>
26450 <p>FULL capability devices should simply set this value to the
26451 <code>frame_<wbr/>number</code> of the request this result corresponds to.<wbr/></p>
26455 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26456 <!-- end of entry -->
26460 <!-- end of kind -->
26462 <tr><td colspan="6" class="kind">static</td></tr>
26464 <thead class="entries_header">
26466 <th class="th_name">Property Name</th>
26467 <th class="th_type">Type</th>
26468 <th class="th_description">Description</th>
26469 <th class="th_units">Units</th>
26470 <th class="th_range">Range</th>
26471 <th class="th_tags">Tags</th>
26486 <tr class="entry" id="static_android.sync.maxLatency">
26487 <td class="entry_name
26489 android.<wbr/>sync.<wbr/>max<wbr/>Latency
26491 <td class="entry_type">
26492 <span class="entry_type_name entry_type_name_enum">int32</span>
26494 <span class="entry_type_visibility"> [public]</span>
26497 <span class="entry_type_hwlevel">[legacy] </span>
26501 <ul class="entry_type_enum">
26503 <span class="entry_type_enum_name">PER_FRAME_CONTROL</span>
26504 <span class="entry_type_enum_value">0</span>
26505 <span class="entry_type_enum_notes"><p>Every frame has the requests immediately applied.<wbr/></p>
26506 <p>Changing controls over multiple requests one after another will
26507 produce results that have those controls applied atomically
26508 each frame.<wbr/></p>
26509 <p>All FULL capability devices will have this as their maxLatency.<wbr/></p></span>
26512 <span class="entry_type_enum_name">UNKNOWN</span>
26513 <span class="entry_type_enum_value">-1</span>
26514 <span class="entry_type_enum_notes"><p>Each new frame has some subset (potentially the entire set)
26515 of the past requests applied to the camera settings.<wbr/></p>
26516 <p>By submitting a series of identical requests,<wbr/> the camera device
26517 will eventually have the camera settings applied,<wbr/> but it is
26518 unknown when that exact point will be.<wbr/></p>
26519 <p>All LEGACY capability devices will have this as their maxLatency.<wbr/></p></span>
26523 </td> <!-- entry_type -->
26525 <td class="entry_description">
26526 <p>The maximum number of frames that can occur after a request
26527 (different than the previous) has been submitted,<wbr/> and before the
26528 result's state becomes synchronized.<wbr/></p>
26531 <td class="entry_units">
26535 <td class="entry_range">
26536 <p>A positive value,<wbr/> PER_<wbr/>FRAME_<wbr/>CONTROL,<wbr/> or UNKNOWN.<wbr/></p>
26539 <td class="entry_tags">
26540 <ul class="entry_tags">
26541 <li><a href="#tag_V1">V1</a></li>
26546 <tr class="entries_header">
26547 <th class="th_details" colspan="5">Details</th>
26549 <tr class="entry_cont">
26550 <td class="entry_details" colspan="5">
26551 <p>This defines the maximum distance (in number of metadata results),<wbr/>
26552 between the frame number of the request that has new controls to apply
26553 and the frame number of the result that has all the controls applied.<wbr/></p>
26554 <p>In other words this acts as an upper boundary for how many frames
26555 must occur before the camera device knows for a fact that the new
26556 submitted camera settings have been applied in outgoing frames.<wbr/></p>
26560 <tr class="entries_header">
26561 <th class="th_details" colspan="5">HAL Implementation Details</th>
26563 <tr class="entry_cont">
26564 <td class="entry_details" colspan="5">
26565 <p>For example if maxLatency was 2,<wbr/></p>
26566 <pre><code>initial request = X (repeating)
26572 where requestN has frameNumber N,<wbr/> and the first of the repeating
26573 initial request's has frameNumber F (and F < 1).<wbr/>
26575 initial result = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == F }
26576 result1 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == F }
26577 result2 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == CONVERGING }
26578 result3 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == CONVERGING }
26579 result4 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == 2 }
26581 where resultN has frameNumber N.<wbr/>
26583 <p>Since <code>result4</code> has a <code>frameNumber == 4</code> and
26584 <code><a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == 2</code>,<wbr/> the distance is clearly
26585 <code>4 - 2 = 2</code>.<wbr/></p>
26586 <p>Use <code>frame_<wbr/>count</code> from camera3_<wbr/>request_<wbr/>t instead of
26587 <a href="#controls_android.request.frameCount">android.<wbr/>request.<wbr/>frame<wbr/>Count</a> or
26588 <code><a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html#getFrameNumber">CaptureResult#getFrameNumber</a></code>.<wbr/></p>
26589 <p>LIMITED devices are strongly encouraged to use a non-negative
26590 value.<wbr/> If UNKNOWN is used here then app developers do not have a way
26591 to know when sensor settings have been applied.<wbr/></p>
26595 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26596 <!-- end of entry -->
26600 <!-- end of kind -->
26603 <!-- end of section -->
26604 <tr><td colspan="6" id="section_reprocess" class="section">reprocess</td></tr>
26607 <tr><td colspan="6" class="kind">controls</td></tr>
26609 <thead class="entries_header">
26611 <th class="th_name">Property Name</th>
26612 <th class="th_type">Type</th>
26613 <th class="th_description">Description</th>
26614 <th class="th_units">Units</th>
26615 <th class="th_range">Range</th>
26616 <th class="th_tags">Tags</th>
26631 <tr class="entry" id="controls_android.reprocess.effectiveExposureFactor">
26632 <td class="entry_name
26634 android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor
26636 <td class="entry_type">
26637 <span class="entry_type_name">float</span>
26639 <span class="entry_type_visibility"> [java_public]</span>
26642 <span class="entry_type_hwlevel">[limited] </span>
26647 </td> <!-- entry_type -->
26649 <td class="entry_description">
26650 <p>The amount of exposure time increase factor applied to the original output
26651 frame by the application processing before sending for reprocessing.<wbr/></p>
26654 <td class="entry_units">
26655 Relative exposure time increase factor.<wbr/>
26658 <td class="entry_range">
26659 <p>>= 1.<wbr/>0</p>
26662 <td class="entry_tags">
26663 <ul class="entry_tags">
26664 <li><a href="#tag_REPROC">REPROC</a></li>
26669 <tr class="entries_header">
26670 <th class="th_details" colspan="5">Details</th>
26672 <tr class="entry_cont">
26673 <td class="entry_details" colspan="5">
26674 <p>This is optional,<wbr/> and will be supported if the camera device supports YUV_<wbr/>REPROCESSING
26675 capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains YUV_<wbr/>REPROCESSING).<wbr/></p>
26676 <p>For some YUV reprocessing use cases,<wbr/> the application may choose to filter the original
26677 output frames to effectively reduce the noise to the same level as a frame that was
26678 captured with longer exposure time.<wbr/> To be more specific,<wbr/> assuming the original captured
26679 images were captured with a sensitivity of S and an exposure time of T,<wbr/> the model in
26680 the camera device is that the amount of noise in the image would be approximately what
26681 would be expected if the original capture parameters had been a sensitivity of
26682 S/<wbr/>effectiveExposureFactor and an exposure time of T*effectiveExposureFactor,<wbr/> rather
26683 than S and T respectively.<wbr/> If the captured images were processed by the application
26684 before being sent for reprocessing,<wbr/> then the application may have used image processing
26685 algorithms and/<wbr/>or multi-frame image fusion to reduce the noise in the
26686 application-processed images (input images).<wbr/> By using the effectiveExposureFactor
26687 control,<wbr/> the application can communicate to the camera device the actual noise level
26688 improvement in the application-processed image.<wbr/> With this information,<wbr/> the camera
26689 device can select appropriate noise reduction and edge enhancement parameters to avoid
26690 excessive noise reduction (<a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a>) and insufficient edge
26691 enhancement (<a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a>) being applied to the reprocessed frames.<wbr/></p>
26692 <p>For example,<wbr/> for multi-frame image fusion use case,<wbr/> the application may fuse
26693 multiple output frames together to a final frame for reprocessing.<wbr/> When N image are
26694 fused into 1 image for reprocessing,<wbr/> the exposure time increase factor could be up to
26695 square root of N (based on a simple photon shot noise model).<wbr/> The camera device will
26696 adjust the reprocessing noise reduction and edge enhancement parameters accordingly to
26697 produce the best quality images.<wbr/></p>
26698 <p>This is relative factor,<wbr/> 1.<wbr/>0 indicates the application hasn't processed the input
26699 buffer in a way that affects its effective exposure time.<wbr/></p>
26700 <p>This control is only effective for YUV reprocessing capture request.<wbr/> For noise
26701 reduction reprocessing,<wbr/> it is only effective when <code><a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a> != OFF</code>.<wbr/>
26702 Similarly,<wbr/> for edge enhancement reprocessing,<wbr/> it is only effective when
26703 <code><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a> != OFF</code>.<wbr/></p>
26708 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26709 <!-- end of entry -->
26713 <!-- end of kind -->
26715 <tr><td colspan="6" class="kind">dynamic</td></tr>
26717 <thead class="entries_header">
26719 <th class="th_name">Property Name</th>
26720 <th class="th_type">Type</th>
26721 <th class="th_description">Description</th>
26722 <th class="th_units">Units</th>
26723 <th class="th_range">Range</th>
26724 <th class="th_tags">Tags</th>
26739 <tr class="entry" id="dynamic_android.reprocess.effectiveExposureFactor">
26740 <td class="entry_name
26742 android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor
26744 <td class="entry_type">
26745 <span class="entry_type_name">float</span>
26747 <span class="entry_type_visibility"> [java_public]</span>
26750 <span class="entry_type_hwlevel">[limited] </span>
26755 </td> <!-- entry_type -->
26757 <td class="entry_description">
26758 <p>The amount of exposure time increase factor applied to the original output
26759 frame by the application processing before sending for reprocessing.<wbr/></p>
26762 <td class="entry_units">
26763 Relative exposure time increase factor.<wbr/>
26766 <td class="entry_range">
26767 <p>>= 1.<wbr/>0</p>
26770 <td class="entry_tags">
26771 <ul class="entry_tags">
26772 <li><a href="#tag_REPROC">REPROC</a></li>
26777 <tr class="entries_header">
26778 <th class="th_details" colspan="5">Details</th>
26780 <tr class="entry_cont">
26781 <td class="entry_details" colspan="5">
26782 <p>This is optional,<wbr/> and will be supported if the camera device supports YUV_<wbr/>REPROCESSING
26783 capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains YUV_<wbr/>REPROCESSING).<wbr/></p>
26784 <p>For some YUV reprocessing use cases,<wbr/> the application may choose to filter the original
26785 output frames to effectively reduce the noise to the same level as a frame that was
26786 captured with longer exposure time.<wbr/> To be more specific,<wbr/> assuming the original captured
26787 images were captured with a sensitivity of S and an exposure time of T,<wbr/> the model in
26788 the camera device is that the amount of noise in the image would be approximately what
26789 would be expected if the original capture parameters had been a sensitivity of
26790 S/<wbr/>effectiveExposureFactor and an exposure time of T*effectiveExposureFactor,<wbr/> rather
26791 than S and T respectively.<wbr/> If the captured images were processed by the application
26792 before being sent for reprocessing,<wbr/> then the application may have used image processing
26793 algorithms and/<wbr/>or multi-frame image fusion to reduce the noise in the
26794 application-processed images (input images).<wbr/> By using the effectiveExposureFactor
26795 control,<wbr/> the application can communicate to the camera device the actual noise level
26796 improvement in the application-processed image.<wbr/> With this information,<wbr/> the camera
26797 device can select appropriate noise reduction and edge enhancement parameters to avoid
26798 excessive noise reduction (<a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a>) and insufficient edge
26799 enhancement (<a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a>) being applied to the reprocessed frames.<wbr/></p>
26800 <p>For example,<wbr/> for multi-frame image fusion use case,<wbr/> the application may fuse
26801 multiple output frames together to a final frame for reprocessing.<wbr/> When N image are
26802 fused into 1 image for reprocessing,<wbr/> the exposure time increase factor could be up to
26803 square root of N (based on a simple photon shot noise model).<wbr/> The camera device will
26804 adjust the reprocessing noise reduction and edge enhancement parameters accordingly to
26805 produce the best quality images.<wbr/></p>
26806 <p>This is relative factor,<wbr/> 1.<wbr/>0 indicates the application hasn't processed the input
26807 buffer in a way that affects its effective exposure time.<wbr/></p>
26808 <p>This control is only effective for YUV reprocessing capture request.<wbr/> For noise
26809 reduction reprocessing,<wbr/> it is only effective when <code><a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a> != OFF</code>.<wbr/>
26810 Similarly,<wbr/> for edge enhancement reprocessing,<wbr/> it is only effective when
26811 <code><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a> != OFF</code>.<wbr/></p>
26816 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26817 <!-- end of entry -->
26821 <!-- end of kind -->
26823 <tr><td colspan="6" class="kind">static</td></tr>
26825 <thead class="entries_header">
26827 <th class="th_name">Property Name</th>
26828 <th class="th_type">Type</th>
26829 <th class="th_description">Description</th>
26830 <th class="th_units">Units</th>
26831 <th class="th_range">Range</th>
26832 <th class="th_tags">Tags</th>
26847 <tr class="entry" id="static_android.reprocess.maxCaptureStall">
26848 <td class="entry_name
26850 android.<wbr/>reprocess.<wbr/>max<wbr/>Capture<wbr/>Stall
26852 <td class="entry_type">
26853 <span class="entry_type_name">int32</span>
26855 <span class="entry_type_visibility"> [java_public]</span>
26858 <span class="entry_type_hwlevel">[limited] </span>
26863 </td> <!-- entry_type -->
26865 <td class="entry_description">
26866 <p>The maximal camera capture pipeline stall (in unit of frame count) introduced by a
26867 reprocess capture request.<wbr/></p>
26870 <td class="entry_units">
26871 Number of frames.<wbr/>
26874 <td class="entry_range">
26878 <td class="entry_tags">
26879 <ul class="entry_tags">
26880 <li><a href="#tag_REPROC">REPROC</a></li>
26885 <tr class="entries_header">
26886 <th class="th_details" colspan="5">Details</th>
26888 <tr class="entry_cont">
26889 <td class="entry_details" colspan="5">
26890 <p>The key describes the maximal interference that one reprocess (input) request
26891 can introduce to the camera simultaneous streaming of regular (output) capture
26892 requests,<wbr/> including repeating requests.<wbr/></p>
26893 <p>When a reprocessing capture request is submitted while a camera output repeating request
26894 (e.<wbr/>g.<wbr/> preview) is being served by the camera device,<wbr/> it may preempt the camera capture
26895 pipeline for at least one frame duration so that the camera device is unable to process
26896 the following capture request in time for the next sensor start of exposure boundary.<wbr/>
26897 When this happens,<wbr/> the application may observe a capture time gap (longer than one frame
26898 duration) between adjacent capture output frames,<wbr/> which usually exhibits as preview
26899 glitch if the repeating request output targets include a preview surface.<wbr/> This key gives
26900 the worst-case number of frame stall introduced by one reprocess request with any kind of
26901 formats/<wbr/>sizes combination.<wbr/></p>
26902 <p>If this key reports 0,<wbr/> it means a reprocess request doesn't introduce any glitch to the
26903 ongoing camera repeating request outputs,<wbr/> as if this reprocess request is never issued.<wbr/></p>
26904 <p>This key is supported if the camera device supports PRIVATE or YUV reprocessing (
26905 i.<wbr/>e.<wbr/> <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains PRIVATE_<wbr/>REPROCESSING or
26906 YUV_<wbr/>REPROCESSING).<wbr/></p>
26911 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26912 <!-- end of entry -->
26916 <!-- end of kind -->
26919 <!-- end of section -->
26920 <tr><td colspan="6" id="section_depth" class="section">depth</td></tr>
26923 <tr><td colspan="6" class="kind">static</td></tr>
26925 <thead class="entries_header">
26927 <th class="th_name">Property Name</th>
26928 <th class="th_type">Type</th>
26929 <th class="th_description">Description</th>
26930 <th class="th_units">Units</th>
26931 <th class="th_range">Range</th>
26932 <th class="th_tags">Tags</th>
26947 <tr class="entry" id="static_android.depth.maxDepthSamples">
26948 <td class="entry_name
26950 android.<wbr/>depth.<wbr/>max<wbr/>Depth<wbr/>Samples
26952 <td class="entry_type">
26953 <span class="entry_type_name">int32</span>
26955 <span class="entry_type_visibility"> [system]</span>
26958 <span class="entry_type_hwlevel">[limited] </span>
26963 </td> <!-- entry_type -->
26965 <td class="entry_description">
26966 <p>Maximum number of points that a depth point cloud may contain.<wbr/></p>
26969 <td class="entry_units">
26972 <td class="entry_range">
26975 <td class="entry_tags">
26976 <ul class="entry_tags">
26977 <li><a href="#tag_DEPTH">DEPTH</a></li>
26982 <tr class="entries_header">
26983 <th class="th_details" colspan="5">Details</th>
26985 <tr class="entry_cont">
26986 <td class="entry_details" colspan="5">
26987 <p>If a camera device supports outputting depth range data in the form of a depth point
26988 cloud (<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#DEPTH_POINT_CLOUD">Image<wbr/>Format#DEPTH_<wbr/>POINT_<wbr/>CLOUD</a>),<wbr/> this is the maximum
26989 number of points an output buffer may contain.<wbr/></p>
26990 <p>Any given buffer may contain between 0 and maxDepthSamples points,<wbr/> inclusive.<wbr/>
26991 If output in the depth point cloud format is not supported,<wbr/> this entry will
26992 not be defined.<wbr/></p>
26997 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26998 <!-- end of entry -->
27001 <tr class="entry" id="static_android.depth.availableDepthStreamConfigurations">
27002 <td class="entry_name
27004 android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stream<wbr/>Configurations
27006 <td class="entry_type">
27007 <span class="entry_type_name entry_type_name_enum">int32</span>
27008 <span class="entry_type_container">x</span>
27010 <span class="entry_type_array">
27013 <span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
27016 <span class="entry_type_hwlevel">[limited] </span>
27020 <ul class="entry_type_enum">
27022 <span class="entry_type_enum_name">OUTPUT</span>
27025 <span class="entry_type_enum_name">INPUT</span>
27029 </td> <!-- entry_type -->
27031 <td class="entry_description">
27032 <p>The available depth dataspace stream
27033 configurations that this camera device supports
27034 (i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
27037 <td class="entry_units">
27040 <td class="entry_range">
27043 <td class="entry_tags">
27044 <ul class="entry_tags">
27045 <li><a href="#tag_DEPTH">DEPTH</a></li>
27050 <tr class="entries_header">
27051 <th class="th_details" colspan="5">Details</th>
27053 <tr class="entry_cont">
27054 <td class="entry_details" colspan="5">
27055 <p>These are output stream configurations for use with
27056 dataSpace HAL_<wbr/>DATASPACE_<wbr/>DEPTH.<wbr/> The configurations are
27057 listed as <code>(format,<wbr/> width,<wbr/> height,<wbr/> input?)</code> tuples.<wbr/></p>
27058 <p>Only devices that support depth output for at least
27059 the HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>Y16 dense depth map may include
27060 this entry.<wbr/></p>
27061 <p>A device that also supports the HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>BLOB
27062 sparse depth point cloud must report a single entry for
27063 the format in this list as <code>(HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>BLOB,<wbr/>
27064 <a href="#static_android.depth.maxDepthSamples">android.<wbr/>depth.<wbr/>max<wbr/>Depth<wbr/>Samples</a>,<wbr/> 1,<wbr/> OUTPUT)</code> in addition to
27065 the entries for HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>Y16.<wbr/></p>
27070 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
27071 <!-- end of entry -->
27074 <tr class="entry" id="static_android.depth.availableDepthMinFrameDurations">
27075 <td class="entry_name
27077 android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Min<wbr/>Frame<wbr/>Durations
27079 <td class="entry_type">
27080 <span class="entry_type_name">int64</span>
27081 <span class="entry_type_container">x</span>
27083 <span class="entry_type_array">
27086 <span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
27089 <span class="entry_type_hwlevel">[limited] </span>
27094 </td> <!-- entry_type -->
27096 <td class="entry_description">
27097 <p>This lists the minimum frame duration for each
27098 format/<wbr/>size combination for depth output formats.<wbr/></p>
27101 <td class="entry_units">
27102 (format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
27105 <td class="entry_range">
27108 <td class="entry_tags">
27109 <ul class="entry_tags">
27110 <li><a href="#tag_DEPTH">DEPTH</a></li>
27115 <tr class="entries_header">
27116 <th class="th_details" colspan="5">Details</th>
27118 <tr class="entry_cont">
27119 <td class="entry_details" colspan="5">
27120 <p>This should correspond to the frame duration when only that
27121 stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
27122 set to either OFF or FAST.<wbr/></p>
27123 <p>When multiple streams are used in a request,<wbr/> the minimum frame
27124 duration will be max(individual stream min durations).<wbr/></p>
27125 <p>The minimum frame duration of a stream (of a particular format,<wbr/> size)
27126 is the same regardless of whether the stream is input or output.<wbr/></p>
27127 <p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> and
27128 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for more details about
27129 calculating the max frame rate.<wbr/></p>
27130 <p>(Keep in sync with <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>)</p>
27135 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
27136 <!-- end of entry -->
27139 <tr class="entry" id="static_android.depth.availableDepthStallDurations">
27140 <td class="entry_name
27142 android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stall<wbr/>Durations
27144 <td class="entry_type">
27145 <span class="entry_type_name">int64</span>
27146 <span class="entry_type_container">x</span>
27148 <span class="entry_type_array">
27151 <span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
27154 <span class="entry_type_hwlevel">[limited] </span>
27159 </td> <!-- entry_type -->
27161 <td class="entry_description">
27162 <p>This lists the maximum stall duration for each
27163 output format/<wbr/>size combination for depth streams.<wbr/></p>
27166 <td class="entry_units">
27167 (format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
27170 <td class="entry_range">
27173 <td class="entry_tags">
27174 <ul class="entry_tags">
27175 <li><a href="#tag_DEPTH">DEPTH</a></li>
27180 <tr class="entries_header">
27181 <th class="th_details" colspan="5">Details</th>
27183 <tr class="entry_cont">
27184 <td class="entry_details" colspan="5">
27185 <p>A stall duration is how much extra time would get added
27186 to the normal minimum frame duration for a repeating request
27187 that has streams with non-zero stall.<wbr/></p>
27188 <p>This functions similarly to
27189 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for depth
27191 <p>All depth output stream formats may have a nonzero stall
27192 duration.<wbr/></p>
27197 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
27198 <!-- end of entry -->
27201 <tr class="entry" id="static_android.depth.depthIsExclusive">
27202 <td class="entry_name
27204 android.<wbr/>depth.<wbr/>depth<wbr/>Is<wbr/>Exclusive
27206 <td class="entry_type">
27207 <span class="entry_type_name entry_type_name_enum">byte</span>
27209 <span class="entry_type_visibility"> [public as boolean]</span>
27212 <span class="entry_type_hwlevel">[limited] </span>
27216 <ul class="entry_type_enum">
27218 <span class="entry_type_enum_name">FALSE</span>
27221 <span class="entry_type_enum_name">TRUE</span>
27225 </td> <!-- entry_type -->
27227 <td class="entry_description">
27228 <p>Indicates whether a capture request may target both a
27229 DEPTH16 /<wbr/> DEPTH_<wbr/>POINT_<wbr/>CLOUD output,<wbr/> and normal color outputs (such as
27230 YUV_<wbr/>420_<wbr/>888,<wbr/> JPEG,<wbr/> or RAW) simultaneously.<wbr/></p>
27233 <td class="entry_units">
27236 <td class="entry_range">
27239 <td class="entry_tags">
27243 <tr class="entries_header">
27244 <th class="th_details" colspan="5">Details</th>
27246 <tr class="entry_cont">
27247 <td class="entry_details" colspan="5">
27248 <p>If TRUE,<wbr/> including both depth and color outputs in a single
27249 capture request is not supported.<wbr/> An application must interleave color
27250 and depth requests.<wbr/> If FALSE,<wbr/> a single request can target both types
27251 of output.<wbr/></p>
27252 <p>Typically,<wbr/> this restriction exists on camera devices that
27253 need to emit a specific pattern or wavelength of light to
27254 measure depth values,<wbr/> which causes the color image to be
27255 corrupted during depth measurement.<wbr/></p>
27260 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
27261 <!-- end of entry -->
27265 <!-- end of kind -->
27268 <!-- end of section -->
27269 <!-- </namespace> -->
27272 <div class="tags" id="tag_index">
27275 <li id="tag_BC">BC -
27276 Needed for backwards compatibility with old Java API
27278 <ul class="tags_entries">
27279 <li><a href="#controls_android.control.aeAntibandingMode">android.control.aeAntibandingMode</a> (controls)</li>
27280 <li><a href="#controls_android.control.aeExposureCompensation">android.control.aeExposureCompensation</a> (controls)</li>
27281 <li><a href="#controls_android.control.aeLock">android.control.aeLock</a> (controls)</li>
27282 <li><a href="#controls_android.control.aeMode">android.control.aeMode</a> (controls)</li>
27283 <li><a href="#controls_android.control.aeRegions">android.control.aeRegions</a> (controls)</li>
27284 <li><a href="#controls_android.control.aeTargetFpsRange">android.control.aeTargetFpsRange</a> (controls)</li>
27285 <li><a href="#controls_android.control.aePrecaptureTrigger">android.control.aePrecaptureTrigger</a> (controls)</li>
27286 <li><a href="#controls_android.control.afMode">android.control.afMode</a> (controls)</li>
27287 <li><a href="#controls_android.control.afRegions">android.control.afRegions</a> (controls)</li>
27288 <li><a href="#controls_android.control.afTrigger">android.control.afTrigger</a> (controls)</li>
27289 <li><a href="#controls_android.control.awbLock">android.control.awbLock</a> (controls)</li>
27290 <li><a href="#controls_android.control.awbMode">android.control.awbMode</a> (controls)</li>
27291 <li><a href="#controls_android.control.awbRegions">android.control.awbRegions</a> (controls)</li>
27292 <li><a href="#controls_android.control.captureIntent">android.control.captureIntent</a> (controls)</li>
27293 <li><a href="#controls_android.control.effectMode">android.control.effectMode</a> (controls)</li>
27294 <li><a href="#controls_android.control.mode">android.control.mode</a> (controls)</li>
27295 <li><a href="#controls_android.control.sceneMode">android.control.sceneMode</a> (controls)</li>
27296 <li><a href="#controls_android.control.videoStabilizationMode">android.control.videoStabilizationMode</a> (controls)</li>
27297 <li><a href="#static_android.control.aeAvailableAntibandingModes">android.control.aeAvailableAntibandingModes</a> (static)</li>
27298 <li><a href="#static_android.control.aeAvailableModes">android.control.aeAvailableModes</a> (static)</li>
27299 <li><a href="#static_android.control.aeAvailableTargetFpsRanges">android.control.aeAvailableTargetFpsRanges</a> (static)</li>
27300 <li><a href="#static_android.control.aeCompensationRange">android.control.aeCompensationRange</a> (static)</li>
27301 <li><a href="#static_android.control.aeCompensationStep">android.control.aeCompensationStep</a> (static)</li>
27302 <li><a href="#static_android.control.afAvailableModes">android.control.afAvailableModes</a> (static)</li>
27303 <li><a href="#static_android.control.availableEffects">android.control.availableEffects</a> (static)</li>
27304 <li><a href="#static_android.control.availableSceneModes">android.control.availableSceneModes</a> (static)</li>
27305 <li><a href="#static_android.control.availableVideoStabilizationModes">android.control.availableVideoStabilizationModes</a> (static)</li>
27306 <li><a href="#static_android.control.awbAvailableModes">android.control.awbAvailableModes</a> (static)</li>
27307 <li><a href="#static_android.control.maxRegions">android.control.maxRegions</a> (static)</li>
27308 <li><a href="#static_android.control.sceneModeOverrides">android.control.sceneModeOverrides</a> (static)</li>
27309 <li><a href="#static_android.control.aeLockAvailable">android.control.aeLockAvailable</a> (static)</li>
27310 <li><a href="#static_android.control.awbLockAvailable">android.control.awbLockAvailable</a> (static)</li>
27311 <li><a href="#controls_android.flash.mode">android.flash.mode</a> (controls)</li>
27312 <li><a href="#static_android.flash.info.available">android.flash.info.available</a> (static)</li>
27313 <li><a href="#controls_android.jpeg.gpsCoordinates">android.jpeg.gpsCoordinates</a> (controls)</li>
27314 <li><a href="#controls_android.jpeg.gpsProcessingMethod">android.jpeg.gpsProcessingMethod</a> (controls)</li>
27315 <li><a href="#controls_android.jpeg.gpsTimestamp">android.jpeg.gpsTimestamp</a> (controls)</li>
27316 <li><a href="#controls_android.jpeg.orientation">android.jpeg.orientation</a> (controls)</li>
27317 <li><a href="#controls_android.jpeg.quality">android.jpeg.quality</a> (controls)</li>
27318 <li><a href="#controls_android.jpeg.thumbnailQuality">android.jpeg.thumbnailQuality</a> (controls)</li>
27319 <li><a href="#controls_android.jpeg.thumbnailSize">android.jpeg.thumbnailSize</a> (controls)</li>
27320 <li><a href="#static_android.jpeg.availableThumbnailSizes">android.jpeg.availableThumbnailSizes</a> (static)</li>
27321 <li><a href="#controls_android.lens.focusDistance">android.lens.focusDistance</a> (controls)</li>
27322 <li><a href="#static_android.lens.info.availableFocalLengths">android.lens.info.availableFocalLengths</a> (static)</li>
27323 <li><a href="#dynamic_android.lens.focusRange">android.lens.focusRange</a> (dynamic)</li>
27324 <li><a href="#static_android.request.maxNumOutputStreams">android.request.maxNumOutputStreams</a> (static)</li>
27325 <li><a href="#controls_android.scaler.cropRegion">android.scaler.cropRegion</a> (controls)</li>
27326 <li><a href="#static_android.scaler.availableFormats">android.scaler.availableFormats</a> (static)</li>
27327 <li><a href="#static_android.scaler.availableJpegMinDurations">android.scaler.availableJpegMinDurations</a> (static)</li>
27328 <li><a href="#static_android.scaler.availableJpegSizes">android.scaler.availableJpegSizes</a> (static)</li>
27329 <li><a href="#static_android.scaler.availableMaxDigitalZoom">android.scaler.availableMaxDigitalZoom</a> (static)</li>
27330 <li><a href="#static_android.scaler.availableProcessedMinDurations">android.scaler.availableProcessedMinDurations</a> (static)</li>
27331 <li><a href="#static_android.scaler.availableProcessedSizes">android.scaler.availableProcessedSizes</a> (static)</li>
27332 <li><a href="#static_android.scaler.availableRawMinDurations">android.scaler.availableRawMinDurations</a> (static)</li>
27333 <li><a href="#static_android.sensor.info.sensitivityRange">android.sensor.info.sensitivityRange</a> (static)</li>
27334 <li><a href="#static_android.sensor.info.physicalSize">android.sensor.info.physicalSize</a> (static)</li>
27335 <li><a href="#static_android.sensor.info.pixelArraySize">android.sensor.info.pixelArraySize</a> (static)</li>
27336 <li><a href="#static_android.sensor.orientation">android.sensor.orientation</a> (static)</li>
27337 <li><a href="#dynamic_android.sensor.timestamp">android.sensor.timestamp</a> (dynamic)</li>
27338 <li><a href="#controls_android.statistics.faceDetectMode">android.statistics.faceDetectMode</a> (controls)</li>
27339 <li><a href="#static_android.statistics.info.maxFaceCount">android.statistics.info.maxFaceCount</a> (static)</li>
27340 <li><a href="#dynamic_android.statistics.faceIds">android.statistics.faceIds</a> (dynamic)</li>
27341 <li><a href="#dynamic_android.statistics.faceLandmarks">android.statistics.faceLandmarks</a> (dynamic)</li>
27342 <li><a href="#dynamic_android.statistics.faceRectangles">android.statistics.faceRectangles</a> (dynamic)</li>
27343 <li><a href="#dynamic_android.statistics.faceScores">android.statistics.faceScores</a> (dynamic)</li>
27344 <li><a href="#dynamic_android.lens.focalLength">android.lens.focalLength</a> (dynamic)</li>
27345 <li><a href="#dynamic_android.lens.focusDistance">android.lens.focusDistance</a> (dynamic)</li>
27347 </li> <!-- tag_BC -->
27348 <li id="tag_V1">V1 -
27349 New features for first camera 2 release (API1)
27351 <ul class="tags_entries">
27352 <li><a href="#static_android.colorCorrection.availableAberrationModes">android.colorCorrection.availableAberrationModes</a> (static)</li>
27353 <li><a href="#static_android.control.availableHighSpeedVideoConfigurations">android.control.availableHighSpeedVideoConfigurations</a> (static)</li>
27354 <li><a href="#controls_android.edge.mode">android.edge.mode</a> (controls)</li>
27355 <li><a href="#static_android.edge.availableEdgeModes">android.edge.availableEdgeModes</a> (static)</li>
27356 <li><a href="#controls_android.hotPixel.mode">android.hotPixel.mode</a> (controls)</li>
27357 <li><a href="#static_android.hotPixel.availableHotPixelModes">android.hotPixel.availableHotPixelModes</a> (static)</li>
27358 <li><a href="#controls_android.lens.aperture">android.lens.aperture</a> (controls)</li>
27359 <li><a href="#controls_android.lens.filterDensity">android.lens.filterDensity</a> (controls)</li>
27360 <li><a href="#controls_android.lens.focalLength">android.lens.focalLength</a> (controls)</li>
27361 <li><a href="#controls_android.lens.focusDistance">android.lens.focusDistance</a> (controls)</li>
27362 <li><a href="#controls_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a> (controls)</li>
27363 <li><a href="#static_android.lens.info.availableApertures">android.lens.info.availableApertures</a> (static)</li>
27364 <li><a href="#static_android.lens.info.availableFilterDensities">android.lens.info.availableFilterDensities</a> (static)</li>
27365 <li><a href="#static_android.lens.info.availableFocalLengths">android.lens.info.availableFocalLengths</a> (static)</li>
27366 <li><a href="#static_android.lens.info.availableOpticalStabilization">android.lens.info.availableOpticalStabilization</a> (static)</li>
27367 <li><a href="#static_android.lens.info.minimumFocusDistance">android.lens.info.minimumFocusDistance</a> (static)</li>
27368 <li><a href="#static_android.lens.info.shadingMapSize">android.lens.info.shadingMapSize</a> (static)</li>
27369 <li><a href="#static_android.lens.info.focusDistanceCalibration">android.lens.info.focusDistanceCalibration</a> (static)</li>
27370 <li><a href="#dynamic_android.lens.state">android.lens.state</a> (dynamic)</li>
27371 <li><a href="#controls_android.noiseReduction.mode">android.noiseReduction.mode</a> (controls)</li>
27372 <li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.noiseReduction.availableNoiseReductionModes</a> (static)</li>
27373 <li><a href="#controls_android.request.id">android.request.id</a> (controls)</li>
27374 <li><a href="#static_android.scaler.availableMinFrameDurations">android.scaler.availableMinFrameDurations</a> (static)</li>
27375 <li><a href="#static_android.scaler.availableStallDurations">android.scaler.availableStallDurations</a> (static)</li>
27376 <li><a href="#controls_android.sensor.exposureTime">android.sensor.exposureTime</a> (controls)</li>
27377 <li><a href="#controls_android.sensor.frameDuration">android.sensor.frameDuration</a> (controls)</li>
27378 <li><a href="#controls_android.sensor.sensitivity">android.sensor.sensitivity</a> (controls)</li>
27379 <li><a href="#static_android.sensor.info.sensitivityRange">android.sensor.info.sensitivityRange</a> (static)</li>
27380 <li><a href="#static_android.sensor.info.exposureTimeRange">android.sensor.info.exposureTimeRange</a> (static)</li>
27381 <li><a href="#static_android.sensor.info.maxFrameDuration">android.sensor.info.maxFrameDuration</a> (static)</li>
27382 <li><a href="#static_android.sensor.info.physicalSize">android.sensor.info.physicalSize</a> (static)</li>
27383 <li><a href="#static_android.sensor.info.timestampSource">android.sensor.info.timestampSource</a> (static)</li>
27384 <li><a href="#static_android.sensor.maxAnalogSensitivity">android.sensor.maxAnalogSensitivity</a> (static)</li>
27385 <li><a href="#dynamic_android.sensor.rollingShutterSkew">android.sensor.rollingShutterSkew</a> (dynamic)</li>
27386 <li><a href="#controls_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a> (controls)</li>
27387 <li><a href="#static_android.statistics.info.availableHotPixelMapModes">android.statistics.info.availableHotPixelMapModes</a> (static)</li>
27388 <li><a href="#dynamic_android.statistics.hotPixelMap">android.statistics.hotPixelMap</a> (dynamic)</li>
27389 <li><a href="#dynamic_android.sync.frameNumber">android.sync.frameNumber</a> (dynamic)</li>
27390 <li><a href="#static_android.sync.maxLatency">android.sync.maxLatency</a> (static)</li>
27391 <li><a href="#dynamic_android.edge.mode">android.edge.mode</a> (dynamic)</li>
27392 <li><a href="#dynamic_android.hotPixel.mode">android.hotPixel.mode</a> (dynamic)</li>
27393 <li><a href="#dynamic_android.lens.aperture">android.lens.aperture</a> (dynamic)</li>
27394 <li><a href="#dynamic_android.lens.filterDensity">android.lens.filterDensity</a> (dynamic)</li>
27395 <li><a href="#dynamic_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a> (dynamic)</li>
27396 <li><a href="#dynamic_android.noiseReduction.mode">android.noiseReduction.mode</a> (dynamic)</li>
27398 </li> <!-- tag_V1 -->
27399 <li id="tag_RAW">RAW -
27400 Needed for useful RAW image processing and DNG file support
27402 <ul class="tags_entries">
27403 <li><a href="#controls_android.hotPixel.mode">android.hotPixel.mode</a> (controls)</li>
27404 <li><a href="#static_android.hotPixel.availableHotPixelModes">android.hotPixel.availableHotPixelModes</a> (static)</li>
27405 <li><a href="#static_android.sensor.info.activeArraySize">android.sensor.info.activeArraySize</a> (static)</li>
27406 <li><a href="#static_android.sensor.info.colorFilterArrangement">android.sensor.info.colorFilterArrangement</a> (static)</li>
27407 <li><a href="#static_android.sensor.info.pixelArraySize">android.sensor.info.pixelArraySize</a> (static)</li>
27408 <li><a href="#static_android.sensor.info.whiteLevel">android.sensor.info.whiteLevel</a> (static)</li>
27409 <li><a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.sensor.info.preCorrectionActiveArraySize</a> (static)</li>
27410 <li><a href="#static_android.sensor.referenceIlluminant1">android.sensor.referenceIlluminant1</a> (static)</li>
27411 <li><a href="#static_android.sensor.referenceIlluminant2">android.sensor.referenceIlluminant2</a> (static)</li>
27412 <li><a href="#static_android.sensor.calibrationTransform1">android.sensor.calibrationTransform1</a> (static)</li>
27413 <li><a href="#static_android.sensor.calibrationTransform2">android.sensor.calibrationTransform2</a> (static)</li>
27414 <li><a href="#static_android.sensor.colorTransform1">android.sensor.colorTransform1</a> (static)</li>
27415 <li><a href="#static_android.sensor.colorTransform2">android.sensor.colorTransform2</a> (static)</li>
27416 <li><a href="#static_android.sensor.forwardMatrix1">android.sensor.forwardMatrix1</a> (static)</li>
27417 <li><a href="#static_android.sensor.forwardMatrix2">android.sensor.forwardMatrix2</a> (static)</li>
27418 <li><a href="#static_android.sensor.blackLevelPattern">android.sensor.blackLevelPattern</a> (static)</li>
27419 <li><a href="#static_android.sensor.profileHueSatMapDimensions">android.sensor.profileHueSatMapDimensions</a> (static)</li>
27420 <li><a href="#dynamic_android.sensor.neutralColorPoint">android.sensor.neutralColorPoint</a> (dynamic)</li>
27421 <li><a href="#dynamic_android.sensor.noiseProfile">android.sensor.noiseProfile</a> (dynamic)</li>
27422 <li><a href="#dynamic_android.sensor.profileHueSatMap">android.sensor.profileHueSatMap</a> (dynamic)</li>
27423 <li><a href="#dynamic_android.sensor.profileToneCurve">android.sensor.profileToneCurve</a> (dynamic)</li>
27424 <li><a href="#dynamic_android.sensor.greenSplit">android.sensor.greenSplit</a> (dynamic)</li>
27425 <li><a href="#dynamic_android.sensor.dynamicBlackLevel">android.sensor.dynamicBlackLevel</a> (dynamic)</li>
27426 <li><a href="#dynamic_android.sensor.dynamicWhiteLevel">android.sensor.dynamicWhiteLevel</a> (dynamic)</li>
27427 <li><a href="#controls_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a> (controls)</li>
27428 <li><a href="#static_android.statistics.info.availableHotPixelMapModes">android.statistics.info.availableHotPixelMapModes</a> (static)</li>
27429 <li><a href="#dynamic_android.statistics.hotPixelMap">android.statistics.hotPixelMap</a> (dynamic)</li>
27430 <li><a href="#controls_android.statistics.lensShadingMapMode">android.statistics.lensShadingMapMode</a> (controls)</li>
27431 <li><a href="#dynamic_android.hotPixel.mode">android.hotPixel.mode</a> (dynamic)</li>
27433 </li> <!-- tag_RAW -->
27434 <li id="tag_HAL2">HAL2 -
27435 Entry is only used by camera device HAL 2.x
27437 <ul class="tags_entries">
27438 <li><a href="#controls_android.request.inputStreams">android.request.inputStreams</a> (controls)</li>
27439 <li><a href="#controls_android.request.outputStreams">android.request.outputStreams</a> (controls)</li>
27440 <li><a href="#controls_android.request.type">android.request.type</a> (controls)</li>
27441 <li><a href="#static_android.request.maxNumReprocessStreams">android.request.maxNumReprocessStreams</a> (static)</li>
27442 <li><a href="#controls_android.blackLevel.lock">android.blackLevel.lock</a> (controls)</li>
27444 </li> <!-- tag_HAL2 -->
27445 <li id="tag_FULL">FULL -
27446 Entry is required for full hardware level devices, and optional for other hardware levels
27448 <ul class="tags_entries">
27449 <li><a href="#static_android.sensor.maxAnalogSensitivity">android.sensor.maxAnalogSensitivity</a> (static)</li>
27451 </li> <!-- tag_FULL -->
27452 <li id="tag_DEPTH">DEPTH -
27453 Entry is required for the depth capability.
27455 <ul class="tags_entries">
27456 <li><a href="#static_android.lens.poseRotation">android.lens.poseRotation</a> (static)</li>
27457 <li><a href="#static_android.lens.poseTranslation">android.lens.poseTranslation</a> (static)</li>
27458 <li><a href="#static_android.lens.intrinsicCalibration">android.lens.intrinsicCalibration</a> (static)</li>
27459 <li><a href="#static_android.lens.radialDistortion">android.lens.radialDistortion</a> (static)</li>
27460 <li><a href="#static_android.depth.maxDepthSamples">android.depth.maxDepthSamples</a> (static)</li>
27461 <li><a href="#static_android.depth.availableDepthStreamConfigurations">android.depth.availableDepthStreamConfigurations</a> (static)</li>
27462 <li><a href="#static_android.depth.availableDepthMinFrameDurations">android.depth.availableDepthMinFrameDurations</a> (static)</li>
27463 <li><a href="#static_android.depth.availableDepthStallDurations">android.depth.availableDepthStallDurations</a> (static)</li>
27465 </li> <!-- tag_DEPTH -->
27466 <li id="tag_REPROC">REPROC -
27467 Entry is required for the YUV or PRIVATE reprocessing capability.
27469 <ul class="tags_entries">
27470 <li><a href="#controls_android.edge.mode">android.edge.mode</a> (controls)</li>
27471 <li><a href="#static_android.edge.availableEdgeModes">android.edge.availableEdgeModes</a> (static)</li>
27472 <li><a href="#controls_android.noiseReduction.mode">android.noiseReduction.mode</a> (controls)</li>
27473 <li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.noiseReduction.availableNoiseReductionModes</a> (static)</li>
27474 <li><a href="#static_android.request.maxNumInputStreams">android.request.maxNumInputStreams</a> (static)</li>
27475 <li><a href="#static_android.scaler.availableInputOutputFormatsMap">android.scaler.availableInputOutputFormatsMap</a> (static)</li>
27476 <li><a href="#controls_android.reprocess.effectiveExposureFactor">android.reprocess.effectiveExposureFactor</a> (controls)</li>
27477 <li><a href="#static_android.reprocess.maxCaptureStall">android.reprocess.maxCaptureStall</a> (static)</li>
27478 <li><a href="#dynamic_android.edge.mode">android.edge.mode</a> (dynamic)</li>
27479 <li><a href="#dynamic_android.noiseReduction.mode">android.noiseReduction.mode</a> (dynamic)</li>
27481 </li> <!-- tag_REPROC -->
27482 <li id="tag_FUTURE">FUTURE -
27483 Entry is under-specified and is not required for now. This is for book-keeping purpose,
27484 do not implement or use it, it may be revised for future.
27486 <ul class="tags_entries">
27487 <li><a href="#controls_android.demosaic.mode">android.demosaic.mode</a> (controls)</li>
27488 <li><a href="#controls_android.edge.strength">android.edge.strength</a> (controls)</li>
27489 <li><a href="#controls_android.flash.firingPower">android.flash.firingPower</a> (controls)</li>
27490 <li><a href="#controls_android.flash.firingTime">android.flash.firingTime</a> (controls)</li>
27491 <li><a href="#static_android.flash.info.chargeDuration">android.flash.info.chargeDuration</a> (static)</li>
27492 <li><a href="#static_android.flash.colorTemperature">android.flash.colorTemperature</a> (static)</li>
27493 <li><a href="#static_android.flash.maxEnergy">android.flash.maxEnergy</a> (static)</li>
27494 <li><a href="#dynamic_android.jpeg.size">android.jpeg.size</a> (dynamic)</li>
27495 <li><a href="#controls_android.noiseReduction.strength">android.noiseReduction.strength</a> (controls)</li>
27496 <li><a href="#controls_android.request.metadataMode">android.request.metadataMode</a> (controls)</li>
27497 <li><a href="#static_android.sensor.baseGainFactor">android.sensor.baseGainFactor</a> (static)</li>
27498 <li><a href="#dynamic_android.sensor.temperature">android.sensor.temperature</a> (dynamic)</li>
27499 <li><a href="#controls_android.shading.strength">android.shading.strength</a> (controls)</li>
27500 <li><a href="#controls_android.statistics.histogramMode">android.statistics.histogramMode</a> (controls)</li>
27501 <li><a href="#controls_android.statistics.sharpnessMapMode">android.statistics.sharpnessMapMode</a> (controls)</li>
27502 <li><a href="#static_android.statistics.info.histogramBucketCount">android.statistics.info.histogramBucketCount</a> (static)</li>
27503 <li><a href="#static_android.statistics.info.maxHistogramCount">android.statistics.info.maxHistogramCount</a> (static)</li>
27504 <li><a href="#static_android.statistics.info.maxSharpnessMapValue">android.statistics.info.maxSharpnessMapValue</a> (static)</li>
27505 <li><a href="#static_android.statistics.info.sharpnessMapSize">android.statistics.info.sharpnessMapSize</a> (static)</li>
27506 <li><a href="#dynamic_android.statistics.histogram">android.statistics.histogram</a> (dynamic)</li>
27507 <li><a href="#dynamic_android.statistics.sharpnessMap">android.statistics.sharpnessMap</a> (dynamic)</li>
27509 </li> <!-- tag_FUTURE -->
27513 [ <a href="#">top</a> ]