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>
196 <span class="toc_kind_header">static</span>
197 <ul class="toc_section">
199 ><a href="#static_android.control.aeAvailableAntibandingModes">android.control.aeAvailableAntibandingModes</a></li>
201 ><a href="#static_android.control.aeAvailableModes">android.control.aeAvailableModes</a></li>
203 ><a href="#static_android.control.aeAvailableTargetFpsRanges">android.control.aeAvailableTargetFpsRanges</a></li>
205 ><a href="#static_android.control.aeCompensationRange">android.control.aeCompensationRange</a></li>
207 ><a href="#static_android.control.aeCompensationStep">android.control.aeCompensationStep</a></li>
209 ><a href="#static_android.control.afAvailableModes">android.control.afAvailableModes</a></li>
211 ><a href="#static_android.control.availableEffects">android.control.availableEffects</a></li>
213 ><a href="#static_android.control.availableSceneModes">android.control.availableSceneModes</a></li>
215 ><a href="#static_android.control.availableVideoStabilizationModes">android.control.availableVideoStabilizationModes</a></li>
217 ><a href="#static_android.control.awbAvailableModes">android.control.awbAvailableModes</a></li>
219 ><a href="#static_android.control.maxRegions">android.control.maxRegions</a></li>
221 ><a href="#static_android.control.maxRegionsAe">android.control.maxRegionsAe</a></li>
223 ><a href="#static_android.control.maxRegionsAwb">android.control.maxRegionsAwb</a></li>
225 ><a href="#static_android.control.maxRegionsAf">android.control.maxRegionsAf</a></li>
227 ><a href="#static_android.control.sceneModeOverrides">android.control.sceneModeOverrides</a></li>
229 ><a href="#static_android.control.availableHighSpeedVideoConfigurations">android.control.availableHighSpeedVideoConfigurations</a></li>
231 ><a href="#static_android.control.aeLockAvailable">android.control.aeLockAvailable</a></li>
233 ><a href="#static_android.control.awbLockAvailable">android.control.awbLockAvailable</a></li>
235 ><a href="#static_android.control.availableModes">android.control.availableModes</a></li>
237 ><a href="#static_android.control.postRawSensitivityBoostRange">android.control.postRawSensitivityBoostRange</a></li>
241 <span class="toc_kind_header">dynamic</span>
242 <ul class="toc_section">
244 class="toc_deprecated"
245 ><a href="#dynamic_android.control.aePrecaptureId">android.control.aePrecaptureId</a></li>
247 ><a href="#dynamic_android.control.aeAntibandingMode">android.control.aeAntibandingMode</a></li>
249 ><a href="#dynamic_android.control.aeExposureCompensation">android.control.aeExposureCompensation</a></li>
251 ><a href="#dynamic_android.control.aeLock">android.control.aeLock</a></li>
253 ><a href="#dynamic_android.control.aeMode">android.control.aeMode</a></li>
255 ><a href="#dynamic_android.control.aeRegions">android.control.aeRegions</a></li>
257 ><a href="#dynamic_android.control.aeTargetFpsRange">android.control.aeTargetFpsRange</a></li>
259 ><a href="#dynamic_android.control.aePrecaptureTrigger">android.control.aePrecaptureTrigger</a></li>
261 ><a href="#dynamic_android.control.aeState">android.control.aeState</a></li>
263 ><a href="#dynamic_android.control.afMode">android.control.afMode</a></li>
265 ><a href="#dynamic_android.control.afRegions">android.control.afRegions</a></li>
267 ><a href="#dynamic_android.control.afTrigger">android.control.afTrigger</a></li>
269 ><a href="#dynamic_android.control.afState">android.control.afState</a></li>
271 class="toc_deprecated"
272 ><a href="#dynamic_android.control.afTriggerId">android.control.afTriggerId</a></li>
274 ><a href="#dynamic_android.control.awbLock">android.control.awbLock</a></li>
276 ><a href="#dynamic_android.control.awbMode">android.control.awbMode</a></li>
278 ><a href="#dynamic_android.control.awbRegions">android.control.awbRegions</a></li>
280 ><a href="#dynamic_android.control.captureIntent">android.control.captureIntent</a></li>
282 ><a href="#dynamic_android.control.awbState">android.control.awbState</a></li>
284 ><a href="#dynamic_android.control.effectMode">android.control.effectMode</a></li>
286 ><a href="#dynamic_android.control.mode">android.control.mode</a></li>
288 ><a href="#dynamic_android.control.sceneMode">android.control.sceneMode</a></li>
290 ><a href="#dynamic_android.control.videoStabilizationMode">android.control.videoStabilizationMode</a></li>
292 ><a href="#dynamic_android.control.postRawSensitivityBoost">android.control.postRawSensitivityBoost</a></li>
295 </ul> <!-- toc_section -->
298 <span class="toc_section_header"><a href="#section_demosaic">demosaic</a></span>
299 <ul class="toc_section">
301 <span class="toc_kind_header">controls</span>
302 <ul class="toc_section">
304 ><a href="#controls_android.demosaic.mode">android.demosaic.mode</a></li>
307 </ul> <!-- toc_section -->
310 <span class="toc_section_header"><a href="#section_edge">edge</a></span>
311 <ul class="toc_section">
313 <span class="toc_kind_header">controls</span>
314 <ul class="toc_section">
316 ><a href="#controls_android.edge.mode">android.edge.mode</a></li>
318 ><a href="#controls_android.edge.strength">android.edge.strength</a></li>
322 <span class="toc_kind_header">static</span>
323 <ul class="toc_section">
325 ><a href="#static_android.edge.availableEdgeModes">android.edge.availableEdgeModes</a></li>
329 <span class="toc_kind_header">dynamic</span>
330 <ul class="toc_section">
332 ><a href="#dynamic_android.edge.mode">android.edge.mode</a></li>
335 </ul> <!-- toc_section -->
338 <span class="toc_section_header"><a href="#section_flash">flash</a></span>
339 <ul class="toc_section">
341 <span class="toc_kind_header">controls</span>
342 <ul class="toc_section">
344 ><a href="#controls_android.flash.firingPower">android.flash.firingPower</a></li>
346 ><a href="#controls_android.flash.firingTime">android.flash.firingTime</a></li>
348 ><a href="#controls_android.flash.mode">android.flash.mode</a></li>
352 <span class="toc_kind_header">static</span>
353 <ul class="toc_section">
356 ><a href="#static_android.flash.info.available">android.flash.info.available</a></li>
358 ><a href="#static_android.flash.info.chargeDuration">android.flash.info.chargeDuration</a></li>
361 ><a href="#static_android.flash.colorTemperature">android.flash.colorTemperature</a></li>
363 ><a href="#static_android.flash.maxEnergy">android.flash.maxEnergy</a></li>
367 <span class="toc_kind_header">dynamic</span>
368 <ul class="toc_section">
370 ><a href="#dynamic_android.flash.firingPower">android.flash.firingPower</a></li>
372 ><a href="#dynamic_android.flash.firingTime">android.flash.firingTime</a></li>
374 ><a href="#dynamic_android.flash.mode">android.flash.mode</a></li>
376 ><a href="#dynamic_android.flash.state">android.flash.state</a></li>
379 </ul> <!-- toc_section -->
382 <span class="toc_section_header"><a href="#section_hotPixel">hotPixel</a></span>
383 <ul class="toc_section">
385 <span class="toc_kind_header">controls</span>
386 <ul class="toc_section">
388 ><a href="#controls_android.hotPixel.mode">android.hotPixel.mode</a></li>
392 <span class="toc_kind_header">static</span>
393 <ul class="toc_section">
395 ><a href="#static_android.hotPixel.availableHotPixelModes">android.hotPixel.availableHotPixelModes</a></li>
399 <span class="toc_kind_header">dynamic</span>
400 <ul class="toc_section">
402 ><a href="#dynamic_android.hotPixel.mode">android.hotPixel.mode</a></li>
405 </ul> <!-- toc_section -->
408 <span class="toc_section_header"><a href="#section_jpeg">jpeg</a></span>
409 <ul class="toc_section">
411 <span class="toc_kind_header">controls</span>
412 <ul class="toc_section">
414 ><a href="#controls_android.jpeg.gpsLocation">android.jpeg.gpsLocation</a></li>
416 ><a href="#controls_android.jpeg.gpsCoordinates">android.jpeg.gpsCoordinates</a></li>
418 ><a href="#controls_android.jpeg.gpsProcessingMethod">android.jpeg.gpsProcessingMethod</a></li>
420 ><a href="#controls_android.jpeg.gpsTimestamp">android.jpeg.gpsTimestamp</a></li>
422 ><a href="#controls_android.jpeg.orientation">android.jpeg.orientation</a></li>
424 ><a href="#controls_android.jpeg.quality">android.jpeg.quality</a></li>
426 ><a href="#controls_android.jpeg.thumbnailQuality">android.jpeg.thumbnailQuality</a></li>
428 ><a href="#controls_android.jpeg.thumbnailSize">android.jpeg.thumbnailSize</a></li>
432 <span class="toc_kind_header">static</span>
433 <ul class="toc_section">
435 ><a href="#static_android.jpeg.availableThumbnailSizes">android.jpeg.availableThumbnailSizes</a></li>
437 ><a href="#static_android.jpeg.maxSize">android.jpeg.maxSize</a></li>
441 <span class="toc_kind_header">dynamic</span>
442 <ul class="toc_section">
444 ><a href="#dynamic_android.jpeg.gpsLocation">android.jpeg.gpsLocation</a></li>
446 ><a href="#dynamic_android.jpeg.gpsCoordinates">android.jpeg.gpsCoordinates</a></li>
448 ><a href="#dynamic_android.jpeg.gpsProcessingMethod">android.jpeg.gpsProcessingMethod</a></li>
450 ><a href="#dynamic_android.jpeg.gpsTimestamp">android.jpeg.gpsTimestamp</a></li>
452 ><a href="#dynamic_android.jpeg.orientation">android.jpeg.orientation</a></li>
454 ><a href="#dynamic_android.jpeg.quality">android.jpeg.quality</a></li>
456 ><a href="#dynamic_android.jpeg.size">android.jpeg.size</a></li>
458 ><a href="#dynamic_android.jpeg.thumbnailQuality">android.jpeg.thumbnailQuality</a></li>
460 ><a href="#dynamic_android.jpeg.thumbnailSize">android.jpeg.thumbnailSize</a></li>
463 </ul> <!-- toc_section -->
466 <span class="toc_section_header"><a href="#section_lens">lens</a></span>
467 <ul class="toc_section">
469 <span class="toc_kind_header">controls</span>
470 <ul class="toc_section">
472 ><a href="#controls_android.lens.aperture">android.lens.aperture</a></li>
474 ><a href="#controls_android.lens.filterDensity">android.lens.filterDensity</a></li>
476 ><a href="#controls_android.lens.focalLength">android.lens.focalLength</a></li>
478 ><a href="#controls_android.lens.focusDistance">android.lens.focusDistance</a></li>
480 ><a href="#controls_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a></li>
484 <span class="toc_kind_header">static</span>
485 <ul class="toc_section">
488 ><a href="#static_android.lens.info.availableApertures">android.lens.info.availableApertures</a></li>
490 ><a href="#static_android.lens.info.availableFilterDensities">android.lens.info.availableFilterDensities</a></li>
492 ><a href="#static_android.lens.info.availableFocalLengths">android.lens.info.availableFocalLengths</a></li>
494 ><a href="#static_android.lens.info.availableOpticalStabilization">android.lens.info.availableOpticalStabilization</a></li>
496 ><a href="#static_android.lens.info.hyperfocalDistance">android.lens.info.hyperfocalDistance</a></li>
498 ><a href="#static_android.lens.info.minimumFocusDistance">android.lens.info.minimumFocusDistance</a></li>
500 ><a href="#static_android.lens.info.shadingMapSize">android.lens.info.shadingMapSize</a></li>
502 ><a href="#static_android.lens.info.focusDistanceCalibration">android.lens.info.focusDistanceCalibration</a></li>
505 ><a href="#static_android.lens.facing">android.lens.facing</a></li>
507 ><a href="#static_android.lens.poseRotation">android.lens.poseRotation</a></li>
509 ><a href="#static_android.lens.poseTranslation">android.lens.poseTranslation</a></li>
511 ><a href="#static_android.lens.intrinsicCalibration">android.lens.intrinsicCalibration</a></li>
513 ><a href="#static_android.lens.radialDistortion">android.lens.radialDistortion</a></li>
517 <span class="toc_kind_header">dynamic</span>
518 <ul class="toc_section">
520 ><a href="#dynamic_android.lens.aperture">android.lens.aperture</a></li>
522 ><a href="#dynamic_android.lens.filterDensity">android.lens.filterDensity</a></li>
524 ><a href="#dynamic_android.lens.focalLength">android.lens.focalLength</a></li>
526 ><a href="#dynamic_android.lens.focusDistance">android.lens.focusDistance</a></li>
528 ><a href="#dynamic_android.lens.focusRange">android.lens.focusRange</a></li>
530 ><a href="#dynamic_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a></li>
532 ><a href="#dynamic_android.lens.state">android.lens.state</a></li>
534 ><a href="#dynamic_android.lens.poseRotation">android.lens.poseRotation</a></li>
536 ><a href="#dynamic_android.lens.poseTranslation">android.lens.poseTranslation</a></li>
538 ><a href="#dynamic_android.lens.intrinsicCalibration">android.lens.intrinsicCalibration</a></li>
540 ><a href="#dynamic_android.lens.radialDistortion">android.lens.radialDistortion</a></li>
543 </ul> <!-- toc_section -->
546 <span class="toc_section_header"><a href="#section_noiseReduction">noiseReduction</a></span>
547 <ul class="toc_section">
549 <span class="toc_kind_header">controls</span>
550 <ul class="toc_section">
552 ><a href="#controls_android.noiseReduction.mode">android.noiseReduction.mode</a></li>
554 ><a href="#controls_android.noiseReduction.strength">android.noiseReduction.strength</a></li>
558 <span class="toc_kind_header">static</span>
559 <ul class="toc_section">
561 ><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.noiseReduction.availableNoiseReductionModes</a></li>
565 <span class="toc_kind_header">dynamic</span>
566 <ul class="toc_section">
568 ><a href="#dynamic_android.noiseReduction.mode">android.noiseReduction.mode</a></li>
571 </ul> <!-- toc_section -->
574 <span class="toc_section_header"><a href="#section_quirks">quirks</a></span>
575 <ul class="toc_section">
577 <span class="toc_kind_header">static</span>
578 <ul class="toc_section">
580 class="toc_deprecated"
581 ><a href="#static_android.quirks.meteringCropRegion">android.quirks.meteringCropRegion</a></li>
583 class="toc_deprecated"
584 ><a href="#static_android.quirks.triggerAfWithAuto">android.quirks.triggerAfWithAuto</a></li>
586 class="toc_deprecated"
587 ><a href="#static_android.quirks.useZslFormat">android.quirks.useZslFormat</a></li>
589 class="toc_deprecated"
590 ><a href="#static_android.quirks.usePartialResult">android.quirks.usePartialResult</a></li>
594 <span class="toc_kind_header">dynamic</span>
595 <ul class="toc_section">
597 class="toc_deprecated"
598 ><a href="#dynamic_android.quirks.partialResult">android.quirks.partialResult</a></li>
601 </ul> <!-- toc_section -->
604 <span class="toc_section_header"><a href="#section_request">request</a></span>
605 <ul class="toc_section">
607 <span class="toc_kind_header">controls</span>
608 <ul class="toc_section">
610 class="toc_deprecated"
611 ><a href="#controls_android.request.frameCount">android.request.frameCount</a></li>
613 ><a href="#controls_android.request.id">android.request.id</a></li>
615 class="toc_deprecated"
616 ><a href="#controls_android.request.inputStreams">android.request.inputStreams</a></li>
618 ><a href="#controls_android.request.metadataMode">android.request.metadataMode</a></li>
620 class="toc_deprecated"
621 ><a href="#controls_android.request.outputStreams">android.request.outputStreams</a></li>
623 class="toc_deprecated"
624 ><a href="#controls_android.request.type">android.request.type</a></li>
628 <span class="toc_kind_header">static</span>
629 <ul class="toc_section">
631 ><a href="#static_android.request.maxNumOutputStreams">android.request.maxNumOutputStreams</a></li>
633 ><a href="#static_android.request.maxNumOutputRaw">android.request.maxNumOutputRaw</a></li>
635 ><a href="#static_android.request.maxNumOutputProc">android.request.maxNumOutputProc</a></li>
637 ><a href="#static_android.request.maxNumOutputProcStalling">android.request.maxNumOutputProcStalling</a></li>
639 class="toc_deprecated"
640 ><a href="#static_android.request.maxNumReprocessStreams">android.request.maxNumReprocessStreams</a></li>
642 ><a href="#static_android.request.maxNumInputStreams">android.request.maxNumInputStreams</a></li>
644 ><a href="#static_android.request.pipelineMaxDepth">android.request.pipelineMaxDepth</a></li>
646 ><a href="#static_android.request.partialResultCount">android.request.partialResultCount</a></li>
648 ><a href="#static_android.request.availableCapabilities">android.request.availableCapabilities</a></li>
650 ><a href="#static_android.request.availableRequestKeys">android.request.availableRequestKeys</a></li>
652 ><a href="#static_android.request.availableResultKeys">android.request.availableResultKeys</a></li>
654 ><a href="#static_android.request.availableCharacteristicsKeys">android.request.availableCharacteristicsKeys</a></li>
658 <span class="toc_kind_header">dynamic</span>
659 <ul class="toc_section">
661 class="toc_deprecated"
662 ><a href="#dynamic_android.request.frameCount">android.request.frameCount</a></li>
664 ><a href="#dynamic_android.request.id">android.request.id</a></li>
666 ><a href="#dynamic_android.request.metadataMode">android.request.metadataMode</a></li>
668 class="toc_deprecated"
669 ><a href="#dynamic_android.request.outputStreams">android.request.outputStreams</a></li>
671 ><a href="#dynamic_android.request.pipelineDepth">android.request.pipelineDepth</a></li>
674 </ul> <!-- toc_section -->
677 <span class="toc_section_header"><a href="#section_scaler">scaler</a></span>
678 <ul class="toc_section">
680 <span class="toc_kind_header">controls</span>
681 <ul class="toc_section">
683 ><a href="#controls_android.scaler.cropRegion">android.scaler.cropRegion</a></li>
687 <span class="toc_kind_header">static</span>
688 <ul class="toc_section">
690 class="toc_deprecated"
691 ><a href="#static_android.scaler.availableFormats">android.scaler.availableFormats</a></li>
693 class="toc_deprecated"
694 ><a href="#static_android.scaler.availableJpegMinDurations">android.scaler.availableJpegMinDurations</a></li>
696 class="toc_deprecated"
697 ><a href="#static_android.scaler.availableJpegSizes">android.scaler.availableJpegSizes</a></li>
699 ><a href="#static_android.scaler.availableMaxDigitalZoom">android.scaler.availableMaxDigitalZoom</a></li>
701 class="toc_deprecated"
702 ><a href="#static_android.scaler.availableProcessedMinDurations">android.scaler.availableProcessedMinDurations</a></li>
704 class="toc_deprecated"
705 ><a href="#static_android.scaler.availableProcessedSizes">android.scaler.availableProcessedSizes</a></li>
707 class="toc_deprecated"
708 ><a href="#static_android.scaler.availableRawMinDurations">android.scaler.availableRawMinDurations</a></li>
710 class="toc_deprecated"
711 ><a href="#static_android.scaler.availableRawSizes">android.scaler.availableRawSizes</a></li>
713 ><a href="#static_android.scaler.availableInputOutputFormatsMap">android.scaler.availableInputOutputFormatsMap</a></li>
715 ><a href="#static_android.scaler.availableStreamConfigurations">android.scaler.availableStreamConfigurations</a></li>
717 ><a href="#static_android.scaler.availableMinFrameDurations">android.scaler.availableMinFrameDurations</a></li>
719 ><a href="#static_android.scaler.availableStallDurations">android.scaler.availableStallDurations</a></li>
721 ><a href="#static_android.scaler.streamConfigurationMap">android.scaler.streamConfigurationMap</a></li>
723 ><a href="#static_android.scaler.croppingType">android.scaler.croppingType</a></li>
727 <span class="toc_kind_header">dynamic</span>
728 <ul class="toc_section">
730 ><a href="#dynamic_android.scaler.cropRegion">android.scaler.cropRegion</a></li>
733 </ul> <!-- toc_section -->
736 <span class="toc_section_header"><a href="#section_sensor">sensor</a></span>
737 <ul class="toc_section">
739 <span class="toc_kind_header">controls</span>
740 <ul class="toc_section">
742 ><a href="#controls_android.sensor.exposureTime">android.sensor.exposureTime</a></li>
744 ><a href="#controls_android.sensor.frameDuration">android.sensor.frameDuration</a></li>
746 ><a href="#controls_android.sensor.sensitivity">android.sensor.sensitivity</a></li>
748 ><a href="#controls_android.sensor.testPatternData">android.sensor.testPatternData</a></li>
750 ><a href="#controls_android.sensor.testPatternMode">android.sensor.testPatternMode</a></li>
754 <span class="toc_kind_header">static</span>
755 <ul class="toc_section">
758 ><a href="#static_android.sensor.info.activeArraySize">android.sensor.info.activeArraySize</a></li>
760 ><a href="#static_android.sensor.info.sensitivityRange">android.sensor.info.sensitivityRange</a></li>
762 ><a href="#static_android.sensor.info.colorFilterArrangement">android.sensor.info.colorFilterArrangement</a></li>
764 ><a href="#static_android.sensor.info.exposureTimeRange">android.sensor.info.exposureTimeRange</a></li>
766 ><a href="#static_android.sensor.info.maxFrameDuration">android.sensor.info.maxFrameDuration</a></li>
768 ><a href="#static_android.sensor.info.physicalSize">android.sensor.info.physicalSize</a></li>
770 ><a href="#static_android.sensor.info.pixelArraySize">android.sensor.info.pixelArraySize</a></li>
772 ><a href="#static_android.sensor.info.whiteLevel">android.sensor.info.whiteLevel</a></li>
774 ><a href="#static_android.sensor.info.timestampSource">android.sensor.info.timestampSource</a></li>
776 ><a href="#static_android.sensor.info.lensShadingApplied">android.sensor.info.lensShadingApplied</a></li>
778 ><a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.sensor.info.preCorrectionActiveArraySize</a></li>
781 ><a href="#static_android.sensor.referenceIlluminant1">android.sensor.referenceIlluminant1</a></li>
783 ><a href="#static_android.sensor.referenceIlluminant2">android.sensor.referenceIlluminant2</a></li>
785 ><a href="#static_android.sensor.calibrationTransform1">android.sensor.calibrationTransform1</a></li>
787 ><a href="#static_android.sensor.calibrationTransform2">android.sensor.calibrationTransform2</a></li>
789 ><a href="#static_android.sensor.colorTransform1">android.sensor.colorTransform1</a></li>
791 ><a href="#static_android.sensor.colorTransform2">android.sensor.colorTransform2</a></li>
793 ><a href="#static_android.sensor.forwardMatrix1">android.sensor.forwardMatrix1</a></li>
795 ><a href="#static_android.sensor.forwardMatrix2">android.sensor.forwardMatrix2</a></li>
797 ><a href="#static_android.sensor.baseGainFactor">android.sensor.baseGainFactor</a></li>
799 ><a href="#static_android.sensor.blackLevelPattern">android.sensor.blackLevelPattern</a></li>
801 ><a href="#static_android.sensor.maxAnalogSensitivity">android.sensor.maxAnalogSensitivity</a></li>
803 ><a href="#static_android.sensor.orientation">android.sensor.orientation</a></li>
805 ><a href="#static_android.sensor.profileHueSatMapDimensions">android.sensor.profileHueSatMapDimensions</a></li>
807 ><a href="#static_android.sensor.availableTestPatternModes">android.sensor.availableTestPatternModes</a></li>
809 ><a href="#static_android.sensor.opticalBlackRegions">android.sensor.opticalBlackRegions</a></li>
811 ><a href="#static_android.sensor.opaqueRawSize">android.sensor.opaqueRawSize</a></li>
815 <span class="toc_kind_header">dynamic</span>
816 <ul class="toc_section">
818 ><a href="#dynamic_android.sensor.exposureTime">android.sensor.exposureTime</a></li>
820 ><a href="#dynamic_android.sensor.frameDuration">android.sensor.frameDuration</a></li>
822 ><a href="#dynamic_android.sensor.sensitivity">android.sensor.sensitivity</a></li>
824 ><a href="#dynamic_android.sensor.timestamp">android.sensor.timestamp</a></li>
826 ><a href="#dynamic_android.sensor.temperature">android.sensor.temperature</a></li>
828 ><a href="#dynamic_android.sensor.neutralColorPoint">android.sensor.neutralColorPoint</a></li>
830 ><a href="#dynamic_android.sensor.noiseProfile">android.sensor.noiseProfile</a></li>
832 ><a href="#dynamic_android.sensor.profileHueSatMap">android.sensor.profileHueSatMap</a></li>
834 ><a href="#dynamic_android.sensor.profileToneCurve">android.sensor.profileToneCurve</a></li>
836 ><a href="#dynamic_android.sensor.greenSplit">android.sensor.greenSplit</a></li>
838 ><a href="#dynamic_android.sensor.testPatternData">android.sensor.testPatternData</a></li>
840 ><a href="#dynamic_android.sensor.testPatternMode">android.sensor.testPatternMode</a></li>
842 ><a href="#dynamic_android.sensor.rollingShutterSkew">android.sensor.rollingShutterSkew</a></li>
844 ><a href="#dynamic_android.sensor.dynamicBlackLevel">android.sensor.dynamicBlackLevel</a></li>
846 ><a href="#dynamic_android.sensor.dynamicWhiteLevel">android.sensor.dynamicWhiteLevel</a></li>
849 </ul> <!-- toc_section -->
852 <span class="toc_section_header"><a href="#section_shading">shading</a></span>
853 <ul class="toc_section">
855 <span class="toc_kind_header">controls</span>
856 <ul class="toc_section">
858 ><a href="#controls_android.shading.mode">android.shading.mode</a></li>
860 ><a href="#controls_android.shading.strength">android.shading.strength</a></li>
864 <span class="toc_kind_header">dynamic</span>
865 <ul class="toc_section">
867 ><a href="#dynamic_android.shading.mode">android.shading.mode</a></li>
871 <span class="toc_kind_header">static</span>
872 <ul class="toc_section">
874 ><a href="#static_android.shading.availableModes">android.shading.availableModes</a></li>
877 </ul> <!-- toc_section -->
880 <span class="toc_section_header"><a href="#section_statistics">statistics</a></span>
881 <ul class="toc_section">
883 <span class="toc_kind_header">controls</span>
884 <ul class="toc_section">
886 ><a href="#controls_android.statistics.faceDetectMode">android.statistics.faceDetectMode</a></li>
888 ><a href="#controls_android.statistics.histogramMode">android.statistics.histogramMode</a></li>
890 ><a href="#controls_android.statistics.sharpnessMapMode">android.statistics.sharpnessMapMode</a></li>
892 ><a href="#controls_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a></li>
894 ><a href="#controls_android.statistics.lensShadingMapMode">android.statistics.lensShadingMapMode</a></li>
898 <span class="toc_kind_header">static</span>
899 <ul class="toc_section">
902 ><a href="#static_android.statistics.info.availableFaceDetectModes">android.statistics.info.availableFaceDetectModes</a></li>
904 ><a href="#static_android.statistics.info.histogramBucketCount">android.statistics.info.histogramBucketCount</a></li>
906 ><a href="#static_android.statistics.info.maxFaceCount">android.statistics.info.maxFaceCount</a></li>
908 ><a href="#static_android.statistics.info.maxHistogramCount">android.statistics.info.maxHistogramCount</a></li>
910 ><a href="#static_android.statistics.info.maxSharpnessMapValue">android.statistics.info.maxSharpnessMapValue</a></li>
912 ><a href="#static_android.statistics.info.sharpnessMapSize">android.statistics.info.sharpnessMapSize</a></li>
914 ><a href="#static_android.statistics.info.availableHotPixelMapModes">android.statistics.info.availableHotPixelMapModes</a></li>
916 ><a href="#static_android.statistics.info.availableLensShadingMapModes">android.statistics.info.availableLensShadingMapModes</a></li>
921 <span class="toc_kind_header">dynamic</span>
922 <ul class="toc_section">
924 ><a href="#dynamic_android.statistics.faceDetectMode">android.statistics.faceDetectMode</a></li>
926 ><a href="#dynamic_android.statistics.faceIds">android.statistics.faceIds</a></li>
928 ><a href="#dynamic_android.statistics.faceLandmarks">android.statistics.faceLandmarks</a></li>
930 ><a href="#dynamic_android.statistics.faceRectangles">android.statistics.faceRectangles</a></li>
932 ><a href="#dynamic_android.statistics.faceScores">android.statistics.faceScores</a></li>
934 ><a href="#dynamic_android.statistics.faces">android.statistics.faces</a></li>
936 ><a href="#dynamic_android.statistics.histogram">android.statistics.histogram</a></li>
938 ><a href="#dynamic_android.statistics.histogramMode">android.statistics.histogramMode</a></li>
940 ><a href="#dynamic_android.statistics.sharpnessMap">android.statistics.sharpnessMap</a></li>
942 ><a href="#dynamic_android.statistics.sharpnessMapMode">android.statistics.sharpnessMapMode</a></li>
944 ><a href="#dynamic_android.statistics.lensShadingCorrectionMap">android.statistics.lensShadingCorrectionMap</a></li>
946 ><a href="#dynamic_android.statistics.lensShadingMap">android.statistics.lensShadingMap</a></li>
948 class="toc_deprecated"
949 ><a href="#dynamic_android.statistics.predictedColorGains">android.statistics.predictedColorGains</a></li>
951 class="toc_deprecated"
952 ><a href="#dynamic_android.statistics.predictedColorTransform">android.statistics.predictedColorTransform</a></li>
954 ><a href="#dynamic_android.statistics.sceneFlicker">android.statistics.sceneFlicker</a></li>
956 ><a href="#dynamic_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a></li>
958 ><a href="#dynamic_android.statistics.hotPixelMap">android.statistics.hotPixelMap</a></li>
960 ><a href="#dynamic_android.statistics.lensShadingMapMode">android.statistics.lensShadingMapMode</a></li>
963 </ul> <!-- toc_section -->
966 <span class="toc_section_header"><a href="#section_tonemap">tonemap</a></span>
967 <ul class="toc_section">
969 <span class="toc_kind_header">controls</span>
970 <ul class="toc_section">
972 ><a href="#controls_android.tonemap.curveBlue">android.tonemap.curveBlue</a></li>
974 ><a href="#controls_android.tonemap.curveGreen">android.tonemap.curveGreen</a></li>
976 ><a href="#controls_android.tonemap.curveRed">android.tonemap.curveRed</a></li>
978 ><a href="#controls_android.tonemap.curve">android.tonemap.curve</a></li>
980 ><a href="#controls_android.tonemap.mode">android.tonemap.mode</a></li>
982 ><a href="#controls_android.tonemap.gamma">android.tonemap.gamma</a></li>
984 ><a href="#controls_android.tonemap.presetCurve">android.tonemap.presetCurve</a></li>
988 <span class="toc_kind_header">static</span>
989 <ul class="toc_section">
991 ><a href="#static_android.tonemap.maxCurvePoints">android.tonemap.maxCurvePoints</a></li>
993 ><a href="#static_android.tonemap.availableToneMapModes">android.tonemap.availableToneMapModes</a></li>
997 <span class="toc_kind_header">dynamic</span>
998 <ul class="toc_section">
1000 ><a href="#dynamic_android.tonemap.curveBlue">android.tonemap.curveBlue</a></li>
1002 ><a href="#dynamic_android.tonemap.curveGreen">android.tonemap.curveGreen</a></li>
1004 ><a href="#dynamic_android.tonemap.curveRed">android.tonemap.curveRed</a></li>
1006 ><a href="#dynamic_android.tonemap.curve">android.tonemap.curve</a></li>
1008 ><a href="#dynamic_android.tonemap.mode">android.tonemap.mode</a></li>
1010 ><a href="#dynamic_android.tonemap.gamma">android.tonemap.gamma</a></li>
1012 ><a href="#dynamic_android.tonemap.presetCurve">android.tonemap.presetCurve</a></li>
1015 </ul> <!-- toc_section -->
1018 <span class="toc_section_header"><a href="#section_led">led</a></span>
1019 <ul class="toc_section">
1021 <span class="toc_kind_header">controls</span>
1022 <ul class="toc_section">
1024 ><a href="#controls_android.led.transmit">android.led.transmit</a></li>
1028 <span class="toc_kind_header">dynamic</span>
1029 <ul class="toc_section">
1031 ><a href="#dynamic_android.led.transmit">android.led.transmit</a></li>
1035 <span class="toc_kind_header">static</span>
1036 <ul class="toc_section">
1038 ><a href="#static_android.led.availableLeds">android.led.availableLeds</a></li>
1041 </ul> <!-- toc_section -->
1044 <span class="toc_section_header"><a href="#section_info">info</a></span>
1045 <ul class="toc_section">
1047 <span class="toc_kind_header">static</span>
1048 <ul class="toc_section">
1050 ><a href="#static_android.info.supportedHardwareLevel">android.info.supportedHardwareLevel</a></li>
1053 </ul> <!-- toc_section -->
1056 <span class="toc_section_header"><a href="#section_blackLevel">blackLevel</a></span>
1057 <ul class="toc_section">
1059 <span class="toc_kind_header">controls</span>
1060 <ul class="toc_section">
1062 ><a href="#controls_android.blackLevel.lock">android.blackLevel.lock</a></li>
1066 <span class="toc_kind_header">dynamic</span>
1067 <ul class="toc_section">
1069 ><a href="#dynamic_android.blackLevel.lock">android.blackLevel.lock</a></li>
1072 </ul> <!-- toc_section -->
1075 <span class="toc_section_header"><a href="#section_sync">sync</a></span>
1076 <ul class="toc_section">
1078 <span class="toc_kind_header">dynamic</span>
1079 <ul class="toc_section">
1081 ><a href="#dynamic_android.sync.frameNumber">android.sync.frameNumber</a></li>
1085 <span class="toc_kind_header">static</span>
1086 <ul class="toc_section">
1088 ><a href="#static_android.sync.maxLatency">android.sync.maxLatency</a></li>
1091 </ul> <!-- toc_section -->
1094 <span class="toc_section_header"><a href="#section_reprocess">reprocess</a></span>
1095 <ul class="toc_section">
1097 <span class="toc_kind_header">controls</span>
1098 <ul class="toc_section">
1100 ><a href="#controls_android.reprocess.effectiveExposureFactor">android.reprocess.effectiveExposureFactor</a></li>
1104 <span class="toc_kind_header">dynamic</span>
1105 <ul class="toc_section">
1107 ><a href="#dynamic_android.reprocess.effectiveExposureFactor">android.reprocess.effectiveExposureFactor</a></li>
1111 <span class="toc_kind_header">static</span>
1112 <ul class="toc_section">
1114 ><a href="#static_android.reprocess.maxCaptureStall">android.reprocess.maxCaptureStall</a></li>
1117 </ul> <!-- toc_section -->
1120 <span class="toc_section_header"><a href="#section_depth">depth</a></span>
1121 <ul class="toc_section">
1123 <span class="toc_kind_header">static</span>
1124 <ul class="toc_section">
1126 ><a href="#static_android.depth.maxDepthSamples">android.depth.maxDepthSamples</a></li>
1128 ><a href="#static_android.depth.availableDepthStreamConfigurations">android.depth.availableDepthStreamConfigurations</a></li>
1130 ><a href="#static_android.depth.availableDepthMinFrameDurations">android.depth.availableDepthMinFrameDurations</a></li>
1132 ><a href="#static_android.depth.availableDepthStallDurations">android.depth.availableDepthStallDurations</a></li>
1134 ><a href="#static_android.depth.depthIsExclusive">android.depth.depthIsExclusive</a></li>
1137 </ul> <!-- toc_section -->
1143 <table class="properties">
1145 <thead class="thead_dummy">
1147 <th class="th_name">Property Name</th>
1148 <th class="th_type">Type</th>
1149 <th class="th_description">Description</th>
1150 <th class="th_units">Units</th>
1151 <th class="th_range">Range</th>
1152 <th class="th_tags">Tags</th>
1154 </thead> <!-- so that the first occurrence of thead is not
1155 above the first occurrence of tr -->
1156 <!-- <namespace name="android"> -->
1157 <tr><td colspan="6" id="section_colorCorrection" class="section">colorCorrection</td></tr>
1160 <tr><td colspan="6" class="kind">controls</td></tr>
1162 <thead class="entries_header">
1164 <th class="th_name">Property Name</th>
1165 <th class="th_type">Type</th>
1166 <th class="th_description">Description</th>
1167 <th class="th_units">Units</th>
1168 <th class="th_range">Range</th>
1169 <th class="th_tags">Tags</th>
1184 <tr class="entry" id="controls_android.colorCorrection.mode">
1185 <td class="entry_name
1187 android.<wbr/>color<wbr/>Correction.<wbr/>mode
1189 <td class="entry_type">
1190 <span class="entry_type_name entry_type_name_enum">byte</span>
1192 <span class="entry_type_visibility"> [public]</span>
1195 <span class="entry_type_hwlevel">[full] </span>
1199 <ul class="entry_type_enum">
1201 <span class="entry_type_enum_name">TRANSFORM_MATRIX</span>
1202 <span class="entry_type_enum_notes"><p>Use the <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> matrix
1203 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> to do color conversion.<wbr/></p>
1204 <p>All advanced white balance adjustments (not specified
1205 by our white balance pipeline) must be disabled.<wbr/></p>
1206 <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
1207 TRANSFORM_<wbr/>MATRIX is ignored.<wbr/> The camera device will override
1208 this value to either FAST or HIGH_<wbr/>QUALITY.<wbr/></p></span>
1211 <span class="entry_type_enum_name">FAST</span>
1212 <span class="entry_type_enum_notes"><p>Color correction processing must not slow down
1213 capture rate relative to sensor raw output.<wbr/></p>
1214 <p>Advanced white balance adjustments above and beyond
1215 the specified white balance pipeline may be applied.<wbr/></p>
1216 <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
1217 the camera device uses the last frame's AWB values
1218 (or defaults if AWB has never been run).<wbr/></p></span>
1221 <span class="entry_type_enum_name">HIGH_QUALITY</span>
1222 <span class="entry_type_enum_notes"><p>Color correction processing operates at improved
1223 quality but the capture rate might be reduced (relative to sensor
1224 raw output rate)</p>
1225 <p>Advanced white balance adjustments above and beyond
1226 the specified white balance pipeline may be applied.<wbr/></p>
1227 <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
1228 the camera device uses the last frame's AWB values
1229 (or defaults if AWB has never been run).<wbr/></p></span>
1233 </td> <!-- entry_type -->
1235 <td class="entry_description">
1236 <p>The mode control selects how the image data is converted from the
1237 sensor's native color into linear sRGB color.<wbr/></p>
1240 <td class="entry_units">
1243 <td class="entry_range">
1246 <td class="entry_tags">
1250 <tr class="entries_header">
1251 <th class="th_details" colspan="5">Details</th>
1253 <tr class="entry_cont">
1254 <td class="entry_details" colspan="5">
1255 <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
1256 control is overridden by the AWB routine.<wbr/> When AWB is disabled,<wbr/> the
1257 application controls how the color mapping is performed.<wbr/></p>
1258 <p>We define the expected processing pipeline below.<wbr/> For consistency
1259 across devices,<wbr/> this is always the case with TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1260 <p>When either FULL or HIGH_<wbr/>QUALITY is used,<wbr/> the camera device may
1261 do additional processing but <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
1262 <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> will still be provided by the
1263 camera device (in the results) and be roughly correct.<wbr/></p>
1264 <p>Switching to TRANSFORM_<wbr/>MATRIX and using the data provided from
1265 FAST or HIGH_<wbr/>QUALITY will yield a picture with the same white point
1266 as what was produced by the camera device in the earlier frame.<wbr/></p>
1267 <p>The expected processing pipeline is as follows:</p>
1268 <p><img alt="White balance processing pipeline" src="images/camera2/metadata/android.colorCorrection.mode/processing_pipeline.png"/></p>
1269 <p>The white balance is encoded by two values,<wbr/> a 4-channel white-balance
1270 gain vector (applied in the Bayer domain),<wbr/> and a 3x3 color transform
1271 matrix (applied after demosaic).<wbr/></p>
1272 <p>The 4-channel white-balance gains are defined as:</p>
1273 <pre><code><a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> = [ R G_<wbr/>even G_<wbr/>odd B ]
1275 <p>where <code>G_<wbr/>even</code> is the gain for green pixels on even rows of the
1276 output,<wbr/> and <code>G_<wbr/>odd</code> is the gain for green pixels on the odd rows.<wbr/>
1277 These may be identical for a given camera device implementation; if
1278 the camera device does not support a separate gain for even/<wbr/>odd green
1279 channels,<wbr/> it will use the <code>G_<wbr/>even</code> value,<wbr/> and write <code>G_<wbr/>odd</code> equal to
1280 <code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
1281 <p>The matrices for color transforms are defined as a 9-entry vector:</p>
1282 <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 ]
1284 <p>which define a transform from input sensor colors,<wbr/> <code>P_<wbr/>in = [ r g b ]</code>,<wbr/>
1285 to output linear sRGB,<wbr/> <code>P_<wbr/>out = [ r' g' b' ]</code>,<wbr/></p>
1286 <p>with colors as follows:</p>
1287 <pre><code>r' = I0r + I1g + I2b
1288 g' = I3r + I4g + I5b
1289 b' = I6r + I7g + I8b
1291 <p>Both the input and output value ranges must match.<wbr/> Overflow/<wbr/>underflow
1292 values are clipped to fit within the range.<wbr/></p>
1296 <tr class="entries_header">
1297 <th class="th_details" colspan="5">HAL Implementation Details</th>
1299 <tr class="entry_cont">
1300 <td class="entry_details" colspan="5">
1301 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if color correction control is available
1302 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
1303 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
1304 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY should generate the same output.<wbr/></p>
1308 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1309 <!-- end of entry -->
1312 <tr class="entry" id="controls_android.colorCorrection.transform">
1313 <td class="entry_name
1315 android.<wbr/>color<wbr/>Correction.<wbr/>transform
1317 <td class="entry_type">
1318 <span class="entry_type_name">rational</span>
1319 <span class="entry_type_container">x</span>
1321 <span class="entry_type_array">
1324 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
1327 <span class="entry_type_hwlevel">[full] </span>
1330 <div class="entry_type_notes">3x3 rational matrix in row-major order</div>
1333 </td> <!-- entry_type -->
1335 <td class="entry_description">
1336 <p>A color transform matrix to use to transform
1337 from sensor RGB color space to output linear sRGB color space.<wbr/></p>
1340 <td class="entry_units">
1341 Unitless scale factors
1344 <td class="entry_range">
1347 <td class="entry_tags">
1351 <tr class="entries_header">
1352 <th class="th_details" colspan="5">Details</th>
1354 <tr class="entry_cont">
1355 <td class="entry_details" colspan="5">
1356 <p>This matrix is either set by the camera device when the request
1357 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not TRANSFORM_<wbr/>MATRIX,<wbr/> or
1358 directly by the application in the request when the
1359 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1360 <p>In the latter case,<wbr/> the camera device may round the matrix to account
1361 for precision issues; the final rounded matrix should be reported back
1362 in this matrix result metadata.<wbr/> The transform should keep the magnitude
1363 of the output color values within <code>[0,<wbr/> 1.<wbr/>0]</code> (assuming input color
1364 values is within the normalized range <code>[0,<wbr/> 1.<wbr/>0]</code>),<wbr/> or clipping may occur.<wbr/></p>
1365 <p>The valid range of each matrix element varies on different devices,<wbr/> but
1366 values within [-1.<wbr/>5,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
1371 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1372 <!-- end of entry -->
1375 <tr class="entry" id="controls_android.colorCorrection.gains">
1376 <td class="entry_name
1378 android.<wbr/>color<wbr/>Correction.<wbr/>gains
1380 <td class="entry_type">
1381 <span class="entry_type_name">float</span>
1382 <span class="entry_type_container">x</span>
1384 <span class="entry_type_array">
1387 <span class="entry_type_visibility"> [public as rggbChannelVector]</span>
1390 <span class="entry_type_hwlevel">[full] </span>
1393 <div class="entry_type_notes">A 1D array of floats for 4 color channel gains</div>
1396 </td> <!-- entry_type -->
1398 <td class="entry_description">
1399 <p>Gains applying to Bayer raw color channels for
1400 white-balance.<wbr/></p>
1403 <td class="entry_units">
1404 Unitless gain factors
1407 <td class="entry_range">
1410 <td class="entry_tags">
1414 <tr class="entries_header">
1415 <th class="th_details" colspan="5">Details</th>
1417 <tr class="entry_cont">
1418 <td class="entry_details" colspan="5">
1419 <p>These per-channel gains are either set by the camera device
1420 when the request <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not
1421 TRANSFORM_<wbr/>MATRIX,<wbr/> or directly by the application in the
1422 request when the <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is
1423 TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1424 <p>The gains in the result metadata are the gains actually
1425 applied by the camera device to the current frame.<wbr/></p>
1426 <p>The valid range of gains varies on different devices,<wbr/> but gains
1427 between [1.<wbr/>0,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/> Even if a given
1428 device allows gains below 1.<wbr/>0,<wbr/> this is usually not recommended because
1429 this can create color artifacts.<wbr/></p>
1433 <tr class="entries_header">
1434 <th class="th_details" colspan="5">HAL Implementation Details</th>
1436 <tr class="entry_cont">
1437 <td class="entry_details" colspan="5">
1438 <p>The 4-channel white-balance gains are defined in
1439 the order of <code>[R G_<wbr/>even G_<wbr/>odd B]</code>,<wbr/> where <code>G_<wbr/>even</code> is the gain
1440 for green pixels on even rows of the output,<wbr/> and <code>G_<wbr/>odd</code>
1441 is the gain for green pixels on the odd rows.<wbr/></p>
1442 <p>If a HAL does not support a separate gain for even/<wbr/>odd green
1443 channels,<wbr/> it must use the <code>G_<wbr/>even</code> value,<wbr/> and write
1444 <code>G_<wbr/>odd</code> equal to <code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
1448 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1449 <!-- end of entry -->
1452 <tr class="entry" id="controls_android.colorCorrection.aberrationMode">
1453 <td class="entry_name
1455 android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode
1457 <td class="entry_type">
1458 <span class="entry_type_name entry_type_name_enum">byte</span>
1460 <span class="entry_type_visibility"> [public]</span>
1463 <span class="entry_type_hwlevel">[legacy] </span>
1467 <ul class="entry_type_enum">
1469 <span class="entry_type_enum_name">OFF</span>
1470 <span class="entry_type_enum_notes"><p>No aberration correction is applied.<wbr/></p></span>
1473 <span class="entry_type_enum_name">FAST</span>
1474 <span class="entry_type_enum_notes"><p>Aberration correction will not slow down capture rate
1475 relative to sensor raw output.<wbr/></p></span>
1478 <span class="entry_type_enum_name">HIGH_QUALITY</span>
1479 <span class="entry_type_enum_notes"><p>Aberration correction operates at improved quality but the capture rate might be
1480 reduced (relative to sensor raw output rate)</p></span>
1484 </td> <!-- entry_type -->
1486 <td class="entry_description">
1487 <p>Mode of operation for the chromatic aberration correction algorithm.<wbr/></p>
1490 <td class="entry_units">
1493 <td class="entry_range">
1494 <p><a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a></p>
1497 <td class="entry_tags">
1501 <tr class="entries_header">
1502 <th class="th_details" colspan="5">Details</th>
1504 <tr class="entry_cont">
1505 <td class="entry_details" colspan="5">
1506 <p>Chromatic (color) aberration is caused by the fact that different wavelengths of light
1507 can not focus on the same point after exiting from the lens.<wbr/> This metadata defines
1508 the high level control of chromatic aberration correction algorithm,<wbr/> which aims to
1509 minimize the chromatic artifacts that may occur along the object boundaries in an
1511 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean that camera device determined aberration
1512 correction will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device will
1513 use the highest-quality aberration correction algorithms,<wbr/> even if it slows down
1514 capture rate.<wbr/> FAST means the camera device will not slow down capture rate when
1515 applying aberration correction.<wbr/></p>
1516 <p>LEGACY devices will always be in FAST mode.<wbr/></p>
1521 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1522 <!-- end of entry -->
1526 <!-- end of kind -->
1528 <tr><td colspan="6" class="kind">dynamic</td></tr>
1530 <thead class="entries_header">
1532 <th class="th_name">Property Name</th>
1533 <th class="th_type">Type</th>
1534 <th class="th_description">Description</th>
1535 <th class="th_units">Units</th>
1536 <th class="th_range">Range</th>
1537 <th class="th_tags">Tags</th>
1552 <tr class="entry" id="dynamic_android.colorCorrection.mode">
1553 <td class="entry_name
1555 android.<wbr/>color<wbr/>Correction.<wbr/>mode
1557 <td class="entry_type">
1558 <span class="entry_type_name entry_type_name_enum">byte</span>
1560 <span class="entry_type_visibility"> [public]</span>
1563 <span class="entry_type_hwlevel">[full] </span>
1567 <ul class="entry_type_enum">
1569 <span class="entry_type_enum_name">TRANSFORM_MATRIX</span>
1570 <span class="entry_type_enum_notes"><p>Use the <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> matrix
1571 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> to do color conversion.<wbr/></p>
1572 <p>All advanced white balance adjustments (not specified
1573 by our white balance pipeline) must be disabled.<wbr/></p>
1574 <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
1575 TRANSFORM_<wbr/>MATRIX is ignored.<wbr/> The camera device will override
1576 this value to either FAST or HIGH_<wbr/>QUALITY.<wbr/></p></span>
1579 <span class="entry_type_enum_name">FAST</span>
1580 <span class="entry_type_enum_notes"><p>Color correction processing must not slow down
1581 capture rate relative to sensor raw output.<wbr/></p>
1582 <p>Advanced white balance adjustments above and beyond
1583 the specified white balance pipeline may be applied.<wbr/></p>
1584 <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
1585 the camera device uses the last frame's AWB values
1586 (or defaults if AWB has never been run).<wbr/></p></span>
1589 <span class="entry_type_enum_name">HIGH_QUALITY</span>
1590 <span class="entry_type_enum_notes"><p>Color correction processing operates at improved
1591 quality but the capture rate might be reduced (relative to sensor
1592 raw output rate)</p>
1593 <p>Advanced white balance adjustments above and beyond
1594 the specified white balance pipeline may be applied.<wbr/></p>
1595 <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
1596 the camera device uses the last frame's AWB values
1597 (or defaults if AWB has never been run).<wbr/></p></span>
1601 </td> <!-- entry_type -->
1603 <td class="entry_description">
1604 <p>The mode control selects how the image data is converted from the
1605 sensor's native color into linear sRGB color.<wbr/></p>
1608 <td class="entry_units">
1611 <td class="entry_range">
1614 <td class="entry_tags">
1618 <tr class="entries_header">
1619 <th class="th_details" colspan="5">Details</th>
1621 <tr class="entry_cont">
1622 <td class="entry_details" colspan="5">
1623 <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
1624 control is overridden by the AWB routine.<wbr/> When AWB is disabled,<wbr/> the
1625 application controls how the color mapping is performed.<wbr/></p>
1626 <p>We define the expected processing pipeline below.<wbr/> For consistency
1627 across devices,<wbr/> this is always the case with TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1628 <p>When either FULL or HIGH_<wbr/>QUALITY is used,<wbr/> the camera device may
1629 do additional processing but <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
1630 <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> will still be provided by the
1631 camera device (in the results) and be roughly correct.<wbr/></p>
1632 <p>Switching to TRANSFORM_<wbr/>MATRIX and using the data provided from
1633 FAST or HIGH_<wbr/>QUALITY will yield a picture with the same white point
1634 as what was produced by the camera device in the earlier frame.<wbr/></p>
1635 <p>The expected processing pipeline is as follows:</p>
1636 <p><img alt="White balance processing pipeline" src="images/camera2/metadata/android.colorCorrection.mode/processing_pipeline.png"/></p>
1637 <p>The white balance is encoded by two values,<wbr/> a 4-channel white-balance
1638 gain vector (applied in the Bayer domain),<wbr/> and a 3x3 color transform
1639 matrix (applied after demosaic).<wbr/></p>
1640 <p>The 4-channel white-balance gains are defined as:</p>
1641 <pre><code><a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> = [ R G_<wbr/>even G_<wbr/>odd B ]
1643 <p>where <code>G_<wbr/>even</code> is the gain for green pixels on even rows of the
1644 output,<wbr/> and <code>G_<wbr/>odd</code> is the gain for green pixels on the odd rows.<wbr/>
1645 These may be identical for a given camera device implementation; if
1646 the camera device does not support a separate gain for even/<wbr/>odd green
1647 channels,<wbr/> it will use the <code>G_<wbr/>even</code> value,<wbr/> and write <code>G_<wbr/>odd</code> equal to
1648 <code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
1649 <p>The matrices for color transforms are defined as a 9-entry vector:</p>
1650 <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 ]
1652 <p>which define a transform from input sensor colors,<wbr/> <code>P_<wbr/>in = [ r g b ]</code>,<wbr/>
1653 to output linear sRGB,<wbr/> <code>P_<wbr/>out = [ r' g' b' ]</code>,<wbr/></p>
1654 <p>with colors as follows:</p>
1655 <pre><code>r' = I0r + I1g + I2b
1656 g' = I3r + I4g + I5b
1657 b' = I6r + I7g + I8b
1659 <p>Both the input and output value ranges must match.<wbr/> Overflow/<wbr/>underflow
1660 values are clipped to fit within the range.<wbr/></p>
1664 <tr class="entries_header">
1665 <th class="th_details" colspan="5">HAL Implementation Details</th>
1667 <tr class="entry_cont">
1668 <td class="entry_details" colspan="5">
1669 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if color correction control is available
1670 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
1671 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
1672 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY should generate the same output.<wbr/></p>
1676 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1677 <!-- end of entry -->
1680 <tr class="entry" id="dynamic_android.colorCorrection.transform">
1681 <td class="entry_name
1683 android.<wbr/>color<wbr/>Correction.<wbr/>transform
1685 <td class="entry_type">
1686 <span class="entry_type_name">rational</span>
1687 <span class="entry_type_container">x</span>
1689 <span class="entry_type_array">
1692 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
1695 <span class="entry_type_hwlevel">[full] </span>
1698 <div class="entry_type_notes">3x3 rational matrix in row-major order</div>
1701 </td> <!-- entry_type -->
1703 <td class="entry_description">
1704 <p>A color transform matrix to use to transform
1705 from sensor RGB color space to output linear sRGB color space.<wbr/></p>
1708 <td class="entry_units">
1709 Unitless scale factors
1712 <td class="entry_range">
1715 <td class="entry_tags">
1719 <tr class="entries_header">
1720 <th class="th_details" colspan="5">Details</th>
1722 <tr class="entry_cont">
1723 <td class="entry_details" colspan="5">
1724 <p>This matrix is either set by the camera device when the request
1725 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not TRANSFORM_<wbr/>MATRIX,<wbr/> or
1726 directly by the application in the request when the
1727 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1728 <p>In the latter case,<wbr/> the camera device may round the matrix to account
1729 for precision issues; the final rounded matrix should be reported back
1730 in this matrix result metadata.<wbr/> The transform should keep the magnitude
1731 of the output color values within <code>[0,<wbr/> 1.<wbr/>0]</code> (assuming input color
1732 values is within the normalized range <code>[0,<wbr/> 1.<wbr/>0]</code>),<wbr/> or clipping may occur.<wbr/></p>
1733 <p>The valid range of each matrix element varies on different devices,<wbr/> but
1734 values within [-1.<wbr/>5,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
1739 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1740 <!-- end of entry -->
1743 <tr class="entry" id="dynamic_android.colorCorrection.gains">
1744 <td class="entry_name
1746 android.<wbr/>color<wbr/>Correction.<wbr/>gains
1748 <td class="entry_type">
1749 <span class="entry_type_name">float</span>
1750 <span class="entry_type_container">x</span>
1752 <span class="entry_type_array">
1755 <span class="entry_type_visibility"> [public as rggbChannelVector]</span>
1758 <span class="entry_type_hwlevel">[full] </span>
1761 <div class="entry_type_notes">A 1D array of floats for 4 color channel gains</div>
1764 </td> <!-- entry_type -->
1766 <td class="entry_description">
1767 <p>Gains applying to Bayer raw color channels for
1768 white-balance.<wbr/></p>
1771 <td class="entry_units">
1772 Unitless gain factors
1775 <td class="entry_range">
1778 <td class="entry_tags">
1782 <tr class="entries_header">
1783 <th class="th_details" colspan="5">Details</th>
1785 <tr class="entry_cont">
1786 <td class="entry_details" colspan="5">
1787 <p>These per-channel gains are either set by the camera device
1788 when the request <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not
1789 TRANSFORM_<wbr/>MATRIX,<wbr/> or directly by the application in the
1790 request when the <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is
1791 TRANSFORM_<wbr/>MATRIX.<wbr/></p>
1792 <p>The gains in the result metadata are the gains actually
1793 applied by the camera device to the current frame.<wbr/></p>
1794 <p>The valid range of gains varies on different devices,<wbr/> but gains
1795 between [1.<wbr/>0,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/> Even if a given
1796 device allows gains below 1.<wbr/>0,<wbr/> this is usually not recommended because
1797 this can create color artifacts.<wbr/></p>
1801 <tr class="entries_header">
1802 <th class="th_details" colspan="5">HAL Implementation Details</th>
1804 <tr class="entry_cont">
1805 <td class="entry_details" colspan="5">
1806 <p>The 4-channel white-balance gains are defined in
1807 the order of <code>[R G_<wbr/>even G_<wbr/>odd B]</code>,<wbr/> where <code>G_<wbr/>even</code> is the gain
1808 for green pixels on even rows of the output,<wbr/> and <code>G_<wbr/>odd</code>
1809 is the gain for green pixels on the odd rows.<wbr/></p>
1810 <p>If a HAL does not support a separate gain for even/<wbr/>odd green
1811 channels,<wbr/> it must use the <code>G_<wbr/>even</code> value,<wbr/> and write
1812 <code>G_<wbr/>odd</code> equal to <code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
1816 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1817 <!-- end of entry -->
1820 <tr class="entry" id="dynamic_android.colorCorrection.aberrationMode">
1821 <td class="entry_name
1823 android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode
1825 <td class="entry_type">
1826 <span class="entry_type_name entry_type_name_enum">byte</span>
1828 <span class="entry_type_visibility"> [public]</span>
1831 <span class="entry_type_hwlevel">[legacy] </span>
1835 <ul class="entry_type_enum">
1837 <span class="entry_type_enum_name">OFF</span>
1838 <span class="entry_type_enum_notes"><p>No aberration correction is applied.<wbr/></p></span>
1841 <span class="entry_type_enum_name">FAST</span>
1842 <span class="entry_type_enum_notes"><p>Aberration correction will not slow down capture rate
1843 relative to sensor raw output.<wbr/></p></span>
1846 <span class="entry_type_enum_name">HIGH_QUALITY</span>
1847 <span class="entry_type_enum_notes"><p>Aberration correction operates at improved quality but the capture rate might be
1848 reduced (relative to sensor raw output rate)</p></span>
1852 </td> <!-- entry_type -->
1854 <td class="entry_description">
1855 <p>Mode of operation for the chromatic aberration correction algorithm.<wbr/></p>
1858 <td class="entry_units">
1861 <td class="entry_range">
1862 <p><a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a></p>
1865 <td class="entry_tags">
1869 <tr class="entries_header">
1870 <th class="th_details" colspan="5">Details</th>
1872 <tr class="entry_cont">
1873 <td class="entry_details" colspan="5">
1874 <p>Chromatic (color) aberration is caused by the fact that different wavelengths of light
1875 can not focus on the same point after exiting from the lens.<wbr/> This metadata defines
1876 the high level control of chromatic aberration correction algorithm,<wbr/> which aims to
1877 minimize the chromatic artifacts that may occur along the object boundaries in an
1879 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean that camera device determined aberration
1880 correction will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device will
1881 use the highest-quality aberration correction algorithms,<wbr/> even if it slows down
1882 capture rate.<wbr/> FAST means the camera device will not slow down capture rate when
1883 applying aberration correction.<wbr/></p>
1884 <p>LEGACY devices will always be in FAST mode.<wbr/></p>
1889 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1890 <!-- end of entry -->
1894 <!-- end of kind -->
1896 <tr><td colspan="6" class="kind">static</td></tr>
1898 <thead class="entries_header">
1900 <th class="th_name">Property Name</th>
1901 <th class="th_type">Type</th>
1902 <th class="th_description">Description</th>
1903 <th class="th_units">Units</th>
1904 <th class="th_range">Range</th>
1905 <th class="th_tags">Tags</th>
1920 <tr class="entry" id="static_android.colorCorrection.availableAberrationModes">
1921 <td class="entry_name
1923 android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes
1925 <td class="entry_type">
1926 <span class="entry_type_name">byte</span>
1927 <span class="entry_type_container">x</span>
1929 <span class="entry_type_array">
1932 <span class="entry_type_visibility"> [public as enumList]</span>
1935 <span class="entry_type_hwlevel">[legacy] </span>
1938 <div class="entry_type_notes">list of enums</div>
1941 </td> <!-- entry_type -->
1943 <td class="entry_description">
1944 <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
1945 supported by this camera device.<wbr/></p>
1948 <td class="entry_units">
1951 <td class="entry_range">
1952 <p>Any value listed in <a href="#controls_android.colorCorrection.aberrationMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode</a></p>
1955 <td class="entry_tags">
1956 <ul class="entry_tags">
1957 <li><a href="#tag_V1">V1</a></li>
1962 <tr class="entries_header">
1963 <th class="th_details" colspan="5">Details</th>
1965 <tr class="entry_cont">
1966 <td class="entry_details" colspan="5">
1967 <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
1968 aberration correction modes are available for a device,<wbr/> this list will solely include
1969 OFF mode.<wbr/> All camera devices will support either OFF or FAST mode.<wbr/></p>
1970 <p>Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always list
1971 OFF mode.<wbr/> This includes all FULL level devices.<wbr/></p>
1972 <p>LEGACY devices will always only support FAST mode.<wbr/></p>
1976 <tr class="entries_header">
1977 <th class="th_details" colspan="5">HAL Implementation Details</th>
1979 <tr class="entry_cont">
1980 <td class="entry_details" colspan="5">
1981 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if chromatic aberration control is available
1982 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
1983 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
1984 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
1988 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
1989 <!-- end of entry -->
1993 <!-- end of kind -->
1996 <!-- end of section -->
1997 <tr><td colspan="6" id="section_control" class="section">control</td></tr>
2000 <tr><td colspan="6" class="kind">controls</td></tr>
2002 <thead class="entries_header">
2004 <th class="th_name">Property Name</th>
2005 <th class="th_type">Type</th>
2006 <th class="th_description">Description</th>
2007 <th class="th_units">Units</th>
2008 <th class="th_range">Range</th>
2009 <th class="th_tags">Tags</th>
2024 <tr class="entry" id="controls_android.control.aeAntibandingMode">
2025 <td class="entry_name
2027 android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode
2029 <td class="entry_type">
2030 <span class="entry_type_name entry_type_name_enum">byte</span>
2032 <span class="entry_type_visibility"> [public]</span>
2035 <span class="entry_type_hwlevel">[legacy] </span>
2039 <ul class="entry_type_enum">
2041 <span class="entry_type_enum_name">OFF</span>
2042 <span class="entry_type_enum_notes"><p>The camera device will not adjust exposure duration to
2043 avoid banding problems.<wbr/></p></span>
2046 <span class="entry_type_enum_name">50HZ</span>
2047 <span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
2048 avoid banding problems with 50Hz illumination sources.<wbr/></p></span>
2051 <span class="entry_type_enum_name">60HZ</span>
2052 <span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
2053 avoid banding problems with 60Hz illumination
2054 sources.<wbr/></p></span>
2057 <span class="entry_type_enum_name">AUTO</span>
2058 <span class="entry_type_enum_notes"><p>The camera device will automatically adapt its
2059 antibanding routine to the current illumination
2060 condition.<wbr/> This is the default mode if AUTO is
2061 available on given camera device.<wbr/></p></span>
2065 </td> <!-- entry_type -->
2067 <td class="entry_description">
2068 <p>The desired setting for the camera device's auto-exposure
2069 algorithm's antibanding compensation.<wbr/></p>
2072 <td class="entry_units">
2075 <td class="entry_range">
2076 <p><a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a></p>
2079 <td class="entry_tags">
2080 <ul class="entry_tags">
2081 <li><a href="#tag_BC">BC</a></li>
2086 <tr class="entries_header">
2087 <th class="th_details" colspan="5">Details</th>
2089 <tr class="entry_cont">
2090 <td class="entry_details" colspan="5">
2091 <p>Some kinds of lighting fixtures,<wbr/> such as some fluorescent
2092 lights,<wbr/> flicker at the rate of the power supply frequency
2093 (60Hz or 50Hz,<wbr/> depending on country).<wbr/> While this is
2094 typically not noticeable to a person,<wbr/> it can be visible to
2095 a camera device.<wbr/> If a camera sets its exposure time to the
2096 wrong value,<wbr/> the flicker may become visible in the
2097 viewfinder as flicker or in a final captured image,<wbr/> as a
2098 set of variable-brightness bands across the image.<wbr/></p>
2099 <p>Therefore,<wbr/> the auto-exposure routines of camera devices
2100 include antibanding routines that ensure that the chosen
2101 exposure value will not cause such banding.<wbr/> The choice of
2102 exposure time depends on the rate of flicker,<wbr/> which the
2103 camera device can detect automatically,<wbr/> or the expected
2104 rate can be selected by the application using this
2106 <p>A given camera device may not support all of the possible
2107 options for the antibanding mode.<wbr/> The
2108 <a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a> key contains
2109 the available modes for a given camera device.<wbr/></p>
2110 <p>AUTO mode is the default if it is available on given
2111 camera device.<wbr/> When AUTO mode is not available,<wbr/> the
2112 default will be either 50HZ or 60HZ,<wbr/> and both 50HZ
2113 and 60HZ will be available.<wbr/></p>
2114 <p>If manual exposure control is enabled (by setting
2115 <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/>
2116 then this setting has no effect,<wbr/> and the application must
2117 ensure it selects exposure times that do not cause banding
2118 issues.<wbr/> The <a href="#dynamic_android.statistics.sceneFlicker">android.<wbr/>statistics.<wbr/>scene<wbr/>Flicker</a> key can assist
2119 the application in this.<wbr/></p>
2123 <tr class="entries_header">
2124 <th class="th_details" colspan="5">HAL Implementation Details</th>
2126 <tr class="entry_cont">
2127 <td class="entry_details" colspan="5">
2128 <p>For all capture request templates,<wbr/> this field must be set
2129 to AUTO if AUTO mode is available.<wbr/> If AUTO is not available,<wbr/>
2130 the default must be either 50HZ or 60HZ,<wbr/> and both 50HZ and
2131 60HZ must be available.<wbr/></p>
2132 <p>If manual exposure control is enabled (by setting
2133 <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/>
2134 then the exposure values provided by the application must not be
2135 adjusted for antibanding.<wbr/></p>
2139 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2140 <!-- end of entry -->
2143 <tr class="entry" id="controls_android.control.aeExposureCompensation">
2144 <td class="entry_name
2146 android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation
2148 <td class="entry_type">
2149 <span class="entry_type_name">int32</span>
2151 <span class="entry_type_visibility"> [public]</span>
2154 <span class="entry_type_hwlevel">[legacy] </span>
2159 </td> <!-- entry_type -->
2161 <td class="entry_description">
2162 <p>Adjustment to auto-exposure (AE) target image
2163 brightness.<wbr/></p>
2166 <td class="entry_units">
2170 <td class="entry_range">
2171 <p><a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a></p>
2174 <td class="entry_tags">
2175 <ul class="entry_tags">
2176 <li><a href="#tag_BC">BC</a></li>
2181 <tr class="entries_header">
2182 <th class="th_details" colspan="5">Details</th>
2184 <tr class="entry_cont">
2185 <td class="entry_details" colspan="5">
2186 <p>The adjustment is measured as a count of steps,<wbr/> with the
2187 step size defined by <a href="#static_android.control.aeCompensationStep">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step</a> and the
2188 allowed range by <a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a>.<wbr/></p>
2189 <p>For example,<wbr/> if the exposure value (EV) step is 0.<wbr/>333,<wbr/> '6'
2190 will mean an exposure compensation of +2 EV; -3 will mean an
2191 exposure compensation of -1 EV.<wbr/> One EV represents a doubling
2192 of image brightness.<wbr/> Note that this control will only be
2193 effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>!=</code> OFF.<wbr/> This control
2194 will take effect even when <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> <code>== true</code>.<wbr/></p>
2195 <p>In the event of exposure compensation value being changed,<wbr/> camera device
2196 may take several frames to reach the newly requested exposure target.<wbr/>
2197 During that time,<wbr/> <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> field will be in the SEARCHING
2198 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
2199 change from SEARCHING to either CONVERGED,<wbr/> LOCKED (if AE lock is enabled),<wbr/> or
2200 FLASH_<wbr/>REQUIRED (if the scene is too dark for still capture).<wbr/></p>
2205 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2206 <!-- end of entry -->
2209 <tr class="entry" id="controls_android.control.aeLock">
2210 <td class="entry_name
2212 android.<wbr/>control.<wbr/>ae<wbr/>Lock
2214 <td class="entry_type">
2215 <span class="entry_type_name entry_type_name_enum">byte</span>
2217 <span class="entry_type_visibility"> [public as boolean]</span>
2220 <span class="entry_type_hwlevel">[legacy] </span>
2224 <ul class="entry_type_enum">
2226 <span class="entry_type_enum_name">OFF</span>
2227 <span class="entry_type_enum_notes"><p>Auto-exposure lock is disabled; the AE algorithm
2228 is free to update its parameters.<wbr/></p></span>
2231 <span class="entry_type_enum_name">ON</span>
2232 <span class="entry_type_enum_notes"><p>Auto-exposure lock is enabled; the AE algorithm
2233 must not update the exposure and sensitivity parameters
2234 while the lock is active.<wbr/></p>
2235 <p><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a> setting changes
2236 will still take effect while auto-exposure is locked.<wbr/></p>
2237 <p>Some rare LEGACY devices may not support
2238 this,<wbr/> in which case the value will always be overridden to OFF.<wbr/></p></span>
2242 </td> <!-- entry_type -->
2244 <td class="entry_description">
2245 <p>Whether auto-exposure (AE) is currently locked to its latest
2246 calculated values.<wbr/></p>
2249 <td class="entry_units">
2252 <td class="entry_range">
2255 <td class="entry_tags">
2256 <ul class="entry_tags">
2257 <li><a href="#tag_BC">BC</a></li>
2262 <tr class="entries_header">
2263 <th class="th_details" colspan="5">Details</th>
2265 <tr class="entry_cont">
2266 <td class="entry_details" colspan="5">
2267 <p>When set to <code>true</code> (ON),<wbr/> the AE algorithm is locked to its latest parameters,<wbr/>
2268 and will not change exposure settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
2269 <p>Note that even when AE is locked,<wbr/> the flash may be fired if
2270 the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is ON_<wbr/>AUTO_<wbr/>FLASH /<wbr/>
2271 ON_<wbr/>ALWAYS_<wbr/>FLASH /<wbr/> ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE.<wbr/></p>
2272 <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
2273 is ON,<wbr/> the camera device will still adjust its exposure value.<wbr/></p>
2274 <p>If AE precapture is triggered (see <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>)
2275 when AE is already locked,<wbr/> the camera device will not change the exposure time
2276 (<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>)
2277 parameters.<wbr/> The flash may be fired if the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>
2278 is ON_<wbr/>AUTO_<wbr/>FLASH/<wbr/>ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE and the scene is too dark.<wbr/> If the
2279 <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/>
2280 Similarly,<wbr/> AE precapture trigger CANCEL has no effect when AE is already locked.<wbr/></p>
2281 <p>When an AE precapture sequence is triggered,<wbr/> AE unlock will not be able to unlock
2282 the AE if AE is locked by the camera device internally during precapture metering
2283 sequence In other words,<wbr/> submitting requests with AE unlock has no effect for an
2284 ongoing precapture metering sequence.<wbr/> Otherwise,<wbr/> the precapture metering sequence
2285 will never succeed in a sequence of preview requests where AE lock is always set
2286 to <code>false</code>.<wbr/></p>
2287 <p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
2288 get locked do not necessarily correspond to the settings that were present in the
2289 latest capture result received from the camera device,<wbr/> since additional captures
2290 and AE updates may have occurred even before the result was sent out.<wbr/> If an
2291 application is switching between automatic and manual control and wishes to eliminate
2292 any flicker during the switch,<wbr/> the following procedure is recommended:</p>
2294 <li>Starting in auto-AE mode:</li>
2296 <li>Wait for the first result to be output that has the AE locked</li>
2297 <li>Copy exposure settings from that result into a request,<wbr/> set the request to manual AE</li>
2298 <li>Submit the capture request,<wbr/> proceed to run manual AE as desired.<wbr/></li>
2300 <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>
2305 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2306 <!-- end of entry -->
2309 <tr class="entry" id="controls_android.control.aeMode">
2310 <td class="entry_name
2312 android.<wbr/>control.<wbr/>ae<wbr/>Mode
2314 <td class="entry_type">
2315 <span class="entry_type_name entry_type_name_enum">byte</span>
2317 <span class="entry_type_visibility"> [public]</span>
2320 <span class="entry_type_hwlevel">[legacy] </span>
2324 <ul class="entry_type_enum">
2326 <span class="entry_type_enum_name">OFF</span>
2327 <span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is disabled.<wbr/></p>
2328 <p>The application-selected <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
2329 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> and
2330 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are used by the camera
2331 device,<wbr/> along with android.<wbr/>flash.<wbr/>* fields,<wbr/> if there's
2332 a flash unit for this camera device.<wbr/></p>
2333 <p>Note that auto-white balance (AWB) and auto-focus (AF)
2334 behavior is device dependent when AE is in OFF mode.<wbr/>
2335 To have consistent behavior across different devices,<wbr/>
2336 it is recommended to either set AWB and AF to OFF mode
2337 or lock AWB and AF before setting AE to OFF.<wbr/>
2338 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/>
2339 <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>
2340 for more details.<wbr/></p>
2341 <p>LEGACY devices do not support the OFF mode and will
2342 override attempts to use this value to ON.<wbr/></p></span>
2345 <span class="entry_type_enum_name">ON</span>
2346 <span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is active,<wbr/>
2347 with no flash control.<wbr/></p>
2348 <p>The application's values for
2349 <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
2350 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>,<wbr/> and
2351 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are ignored.<wbr/> The
2352 application has control over the various
2353 android.<wbr/>flash.<wbr/>* fields.<wbr/></p></span>
2356 <span class="entry_type_enum_name">ON_AUTO_FLASH</span>
2357 <span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
2358 the camera's flash unit,<wbr/> firing it in low-light
2359 conditions.<wbr/></p>
2360 <p>The flash may be fired during a precapture sequence
2361 (triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
2362 may be fired for captures for which the
2363 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
2364 STILL_<wbr/>CAPTURE</p></span>
2367 <span class="entry_type_enum_name">ON_ALWAYS_FLASH</span>
2368 <span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
2369 the camera's flash unit,<wbr/> always firing it for still
2371 <p>The flash may be fired during a precapture sequence
2372 (triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
2373 will always be fired for captures for which the
2374 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
2375 STILL_<wbr/>CAPTURE</p></span>
2378 <span class="entry_type_enum_name">ON_AUTO_FLASH_REDEYE</span>
2379 <span class="entry_type_enum_notes"><p>Like ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> but with automatic red eye
2380 reduction.<wbr/></p>
2381 <p>If deemed necessary by the camera device,<wbr/> a red eye
2382 reduction flash will fire during the precapture
2383 sequence.<wbr/></p></span>
2387 </td> <!-- entry_type -->
2389 <td class="entry_description">
2390 <p>The desired mode for the camera device's
2391 auto-exposure routine.<wbr/></p>
2394 <td class="entry_units">
2397 <td class="entry_range">
2398 <p><a href="#static_android.control.aeAvailableModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Modes</a></p>
2401 <td class="entry_tags">
2402 <ul class="entry_tags">
2403 <li><a href="#tag_BC">BC</a></li>
2408 <tr class="entries_header">
2409 <th class="th_details" colspan="5">Details</th>
2411 <tr class="entry_cont">
2412 <td class="entry_details" colspan="5">
2413 <p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is
2415 <p>When set to any of the ON modes,<wbr/> the camera device's
2416 auto-exposure routine is enabled,<wbr/> overriding the
2417 application's selected exposure time,<wbr/> sensor sensitivity,<wbr/>
2418 and frame duration (<a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
2419 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>,<wbr/> and
2420 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>).<wbr/> If one of the FLASH modes
2421 is selected,<wbr/> the camera device's flash unit controls are
2422 also overridden.<wbr/></p>
2423 <p>The FLASH modes are only available if the camera device
2424 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>
2425 <p>If flash TORCH mode is desired,<wbr/> this field must be set to
2426 ON or OFF,<wbr/> and <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> set to TORCH.<wbr/></p>
2427 <p>When set to any of the ON modes,<wbr/> the values chosen by the
2428 camera device auto-exposure routine for the overridden
2429 fields for a given capture will be available in its
2430 CaptureResult.<wbr/></p>
2435 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2436 <!-- end of entry -->
2439 <tr class="entry" id="controls_android.control.aeRegions">
2440 <td class="entry_name
2442 android.<wbr/>control.<wbr/>ae<wbr/>Regions
2444 <td class="entry_type">
2445 <span class="entry_type_name">int32</span>
2446 <span class="entry_type_container">x</span>
2448 <span class="entry_type_array">
2451 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
2458 </td> <!-- entry_type -->
2460 <td class="entry_description">
2461 <p>List of metering areas to use for auto-exposure adjustment.<wbr/></p>
2464 <td class="entry_units">
2465 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
2468 <td class="entry_range">
2469 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
2470 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
2473 <td class="entry_tags">
2474 <ul class="entry_tags">
2475 <li><a href="#tag_BC">BC</a></li>
2480 <tr class="entries_header">
2481 <th class="th_details" colspan="5">Details</th>
2483 <tr class="entry_cont">
2484 <td class="entry_details" colspan="5">
2485 <p>Not available if <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a> is 0.<wbr/>
2486 Otherwise will always be present.<wbr/></p>
2487 <p>The maximum number of regions supported by the device is determined by the value
2488 of <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a>.<wbr/></p>
2489 <p>The coordinate system is based on the active pixel array,<wbr/>
2490 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
2491 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
2492 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
2493 bottom-right pixel in the active pixel array.<wbr/></p>
2494 <p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
2495 for every pixel in the area.<wbr/> This means that a large metering area
2496 with the same weight as a smaller area will have more effect in
2497 the metering result.<wbr/> Metering areas can partially overlap and the
2498 camera device will add the weights in the overlap region.<wbr/></p>
2499 <p>The weights are relative to weights of other exposure metering regions,<wbr/> so if only one
2500 region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0
2501 weight is ignored.<wbr/></p>
2502 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
2503 camera device.<wbr/></p>
2504 <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
2505 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
2506 region and output only the intersection rectangle as the metering region in the result
2507 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
2508 not reported in the result metadata.<wbr/></p>
2512 <tr class="entries_header">
2513 <th class="th_details" colspan="5">HAL Implementation Details</th>
2515 <tr class="entry_cont">
2516 <td class="entry_details" colspan="5">
2517 <p>The HAL level representation of MeteringRectangle[] is a
2518 int[5 * area_<wbr/>count].<wbr/>
2519 Every five elements represent a metering region of
2520 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
2521 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
2522 exclusive on xmax and ymax.<wbr/></p>
2526 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2527 <!-- end of entry -->
2530 <tr class="entry" id="controls_android.control.aeTargetFpsRange">
2531 <td class="entry_name
2533 android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range
2535 <td class="entry_type">
2536 <span class="entry_type_name">int32</span>
2537 <span class="entry_type_container">x</span>
2539 <span class="entry_type_array">
2542 <span class="entry_type_visibility"> [public as rangeInt]</span>
2545 <span class="entry_type_hwlevel">[legacy] </span>
2550 </td> <!-- entry_type -->
2552 <td class="entry_description">
2553 <p>Range over which the auto-exposure routine can
2554 adjust the capture frame rate to maintain good
2558 <td class="entry_units">
2559 Frames per second (FPS)
2562 <td class="entry_range">
2563 <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>
2566 <td class="entry_tags">
2567 <ul class="entry_tags">
2568 <li><a href="#tag_BC">BC</a></li>
2573 <tr class="entries_header">
2574 <th class="th_details" colspan="5">Details</th>
2576 <tr class="entry_cont">
2577 <td class="entry_details" colspan="5">
2578 <p>Only constrains auto-exposure (AE) algorithm,<wbr/> not
2579 manual control of <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a> and
2580 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>.<wbr/></p>
2585 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2586 <!-- end of entry -->
2589 <tr class="entry" id="controls_android.control.aePrecaptureTrigger">
2590 <td class="entry_name
2592 android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger
2594 <td class="entry_type">
2595 <span class="entry_type_name entry_type_name_enum">byte</span>
2597 <span class="entry_type_visibility"> [public]</span>
2600 <span class="entry_type_hwlevel">[limited] </span>
2604 <ul class="entry_type_enum">
2606 <span class="entry_type_enum_name">IDLE</span>
2607 <span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
2610 <span class="entry_type_enum_name">START</span>
2611 <span class="entry_type_enum_notes"><p>The precapture metering sequence will be started
2612 by the camera device.<wbr/></p>
2613 <p>The exact effect of the precapture trigger depends on
2614 the current AE mode and state.<wbr/></p></span>
2617 <span class="entry_type_enum_name">CANCEL</span>
2618 <span class="entry_type_enum_notes"><p>The camera device will cancel any currently active or completed
2619 precapture metering sequence,<wbr/> the auto-exposure routine will return to its
2620 initial state.<wbr/></p></span>
2624 </td> <!-- entry_type -->
2626 <td class="entry_description">
2627 <p>Whether the camera device will trigger a precapture
2628 metering sequence when it processes this request.<wbr/></p>
2631 <td class="entry_units">
2634 <td class="entry_range">
2637 <td class="entry_tags">
2638 <ul class="entry_tags">
2639 <li><a href="#tag_BC">BC</a></li>
2644 <tr class="entries_header">
2645 <th class="th_details" colspan="5">Details</th>
2647 <tr class="entry_cont">
2648 <td class="entry_details" colspan="5">
2649 <p>This entry is normally set to IDLE,<wbr/> or is not
2650 included at all in the request settings.<wbr/> When included and
2651 set to START,<wbr/> the camera device will trigger the auto-exposure (AE)
2652 precapture metering sequence.<wbr/></p>
2653 <p>When set to CANCEL,<wbr/> the camera device will cancel any active
2654 precapture metering trigger,<wbr/> and return to its initial AE state.<wbr/>
2655 If a precapture metering sequence is already completed,<wbr/> and the camera
2656 device has implicitly locked the AE for subsequent still capture,<wbr/> the
2657 CANCEL trigger will unlock the AE and return to its initial AE state.<wbr/></p>
2658 <p>The precapture sequence should be triggered before starting a
2659 high-quality still capture for final metering decisions to
2660 be made,<wbr/> and for firing pre-capture flash pulses to estimate
2661 scene brightness and required final capture flash power,<wbr/> when
2662 the flash is enabled.<wbr/></p>
2663 <p>Normally,<wbr/> this entry should be set to START for only a
2664 single request,<wbr/> and the application should wait until the
2665 sequence completes before starting a new one.<wbr/></p>
2666 <p>When a precapture metering sequence is finished,<wbr/> the camera device
2667 may lock the auto-exposure routine internally to be able to accurately expose the
2668 subsequent still capture image (<code><a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE</code>).<wbr/>
2669 For this case,<wbr/> the AE may not resume normal scan if no subsequent still capture is
2670 submitted.<wbr/> To ensure that the AE routine restarts normal scan,<wbr/> the application should
2671 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
2672 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
2673 still capture request after the precapture sequence completes.<wbr/> Alternatively,<wbr/> for
2674 API level 23 or newer devices,<wbr/> the CANCEL can be used to unlock the camera device
2675 internally locked AE if the application doesn't submit a still capture request after
2676 the AE precapture trigger.<wbr/> Note that,<wbr/> the CANCEL was added in API level 23,<wbr/> and must not
2677 be used in devices that have earlier API levels.<wbr/></p>
2678 <p>The exact effect of auto-exposure (AE) precapture trigger
2679 depends on the current AE mode and state; see
2680 <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> for AE precapture state transition
2682 <p>On LEGACY-level devices,<wbr/> the precapture trigger is not supported;
2683 capturing a high-resolution JPEG image will automatically trigger a
2684 precapture sequence before the high-resolution capture,<wbr/> including
2685 potentially firing a pre-capture flash.<wbr/></p>
2686 <p>Using the precapture trigger and the auto-focus trigger <a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>
2687 simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
2688 the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
2689 focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
2690 trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
2691 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
2693 <p>If both the precapture and the auto-focus trigger are activated on the same request,<wbr/> then
2694 the camera device will complete them in the optimal order for that device.<wbr/></p>
2698 <tr class="entries_header">
2699 <th class="th_details" colspan="5">HAL Implementation Details</th>
2701 <tr class="entry_cont">
2702 <td class="entry_details" colspan="5">
2703 <p>The HAL must support triggering the AE precapture trigger while an AF trigger is active
2704 (and vice versa),<wbr/> or at the same time as the AF trigger.<wbr/> It is acceptable for the HAL to
2705 treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
2706 AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
2707 to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
2711 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2712 <!-- end of entry -->
2715 <tr class="entry" id="controls_android.control.afMode">
2716 <td class="entry_name
2718 android.<wbr/>control.<wbr/>af<wbr/>Mode
2720 <td class="entry_type">
2721 <span class="entry_type_name entry_type_name_enum">byte</span>
2723 <span class="entry_type_visibility"> [public]</span>
2726 <span class="entry_type_hwlevel">[legacy] </span>
2730 <ul class="entry_type_enum">
2732 <span class="entry_type_enum_name">OFF</span>
2733 <span class="entry_type_enum_notes"><p>The auto-focus routine does not control the lens;
2734 <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> is controlled by the
2735 application.<wbr/></p></span>
2738 <span class="entry_type_enum_name">AUTO</span>
2739 <span class="entry_type_enum_notes"><p>Basic automatic focus mode.<wbr/></p>
2740 <p>In this mode,<wbr/> the lens does not move unless
2741 the autofocus trigger action is called.<wbr/> When that trigger
2742 is activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
2743 the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/></p>
2744 <p>Always supported if lens is not fixed focus.<wbr/></p>
2745 <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
2746 is fixed-focus.<wbr/></p>
2747 <p>Triggering AF_<wbr/>CANCEL resets the lens position to default,<wbr/>
2748 and sets the AF state to INACTIVE.<wbr/></p></span>
2751 <span class="entry_type_enum_name">MACRO</span>
2752 <span class="entry_type_enum_notes"><p>Close-up focusing mode.<wbr/></p>
2753 <p>In this mode,<wbr/> the lens does not move unless the
2754 autofocus trigger action is called.<wbr/> When that trigger is
2755 activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
2756 the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/> This
2757 mode is optimized for focusing on objects very close to
2758 the camera.<wbr/></p>
2759 <p>When that trigger is activated,<wbr/> AF will transition to
2760 ACTIVE_<wbr/>SCAN,<wbr/> then to the outcome of the scan (FOCUSED or
2761 NOT_<wbr/>FOCUSED).<wbr/> Triggering cancel AF resets the lens
2762 position to default,<wbr/> and sets the AF state to
2763 INACTIVE.<wbr/></p></span>
2766 <span class="entry_type_enum_name">CONTINUOUS_VIDEO</span>
2767 <span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
2768 position continually to attempt to provide a
2769 constantly-in-focus image stream.<wbr/></p>
2770 <p>The focusing behavior should be suitable for good quality
2771 video recording; typically this means slower focus
2772 movement and no overshoots.<wbr/> When the AF trigger is not
2773 involved,<wbr/> the AF algorithm should start in INACTIVE state,<wbr/>
2774 and then transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED
2775 states as appropriate.<wbr/> When the AF trigger is activated,<wbr/>
2776 the algorithm should immediately transition into
2777 AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
2778 lens position until a cancel AF trigger is received.<wbr/></p>
2779 <p>Once cancel is received,<wbr/> the algorithm should transition
2780 back to INACTIVE and resume passive scan.<wbr/> Note that this
2781 behavior is not identical to CONTINUOUS_<wbr/>PICTURE,<wbr/> since an
2782 ongoing PASSIVE_<wbr/>SCAN must immediately be
2783 canceled.<wbr/></p></span>
2786 <span class="entry_type_enum_name">CONTINUOUS_PICTURE</span>
2787 <span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
2788 position continually to attempt to provide a
2789 constantly-in-focus image stream.<wbr/></p>
2790 <p>The focusing behavior should be suitable for still image
2791 capture; typically this means focusing as fast as
2792 possible.<wbr/> When the AF trigger is not involved,<wbr/> the AF
2793 algorithm should start in INACTIVE state,<wbr/> and then
2794 transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED states as
2795 appropriate as it attempts to maintain focus.<wbr/> When the AF
2796 trigger is activated,<wbr/> the algorithm should finish its
2797 PASSIVE_<wbr/>SCAN if active,<wbr/> and then transition into
2798 AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
2799 lens position until a cancel AF trigger is received.<wbr/></p>
2800 <p>When the AF cancel trigger is activated,<wbr/> the algorithm
2801 should transition back to INACTIVE and then act as if it
2802 has just been started.<wbr/></p></span>
2805 <span class="entry_type_enum_name">EDOF</span>
2806 <span class="entry_type_enum_notes"><p>Extended depth of field (digital focus) mode.<wbr/></p>
2807 <p>The camera device will produce images with an extended
2808 depth of field automatically; no special focusing
2809 operations need to be done before taking a picture.<wbr/></p>
2810 <p>AF triggers are ignored,<wbr/> and the AF state will always be
2811 INACTIVE.<wbr/></p></span>
2815 </td> <!-- entry_type -->
2817 <td class="entry_description">
2818 <p>Whether auto-focus (AF) is currently enabled,<wbr/> and what
2819 mode it is set to.<wbr/></p>
2822 <td class="entry_units">
2825 <td class="entry_range">
2826 <p><a href="#static_android.control.afAvailableModes">android.<wbr/>control.<wbr/>af<wbr/>Available<wbr/>Modes</a></p>
2829 <td class="entry_tags">
2830 <ul class="entry_tags">
2831 <li><a href="#tag_BC">BC</a></li>
2836 <tr class="entries_header">
2837 <th class="th_details" colspan="5">Details</th>
2839 <tr class="entry_cont">
2840 <td class="entry_details" colspan="5">
2841 <p>Only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> = AUTO and the lens is not fixed focus
2842 (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
2843 when <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/> the behavior of AF is device
2844 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
2845 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>
2846 <p>If the lens is controlled by the camera device auto-focus algorithm,<wbr/>
2847 the camera device will report the current AF status in <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>
2848 in result metadata.<wbr/></p>
2852 <tr class="entries_header">
2853 <th class="th_details" colspan="5">HAL Implementation Details</th>
2855 <tr class="entry_cont">
2856 <td class="entry_details" colspan="5">
2857 <p>When afMode is AUTO or MACRO,<wbr/> the lens must not move until an AF trigger is sent in a
2858 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
2859 up with either FOCUSED_<wbr/>LOCKED or NOT_<wbr/>FOCUSED_<wbr/>LOCKED state (see
2860 <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
2861 locked and will not move.<wbr/> If camera movement (e.<wbr/>g.<wbr/> tilting camera) causes the lens to move
2862 after the lens is locked,<wbr/> the HAL must compensate this movement appropriately such that
2863 the same focal plane remains in focus.<wbr/></p>
2864 <p>When afMode is one of the continuous auto focus modes,<wbr/> the HAL is free to start a AF
2865 scan whenever it's not locked.<wbr/> When the lens is locked after an AF trigger
2866 (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
2867 same lock behavior as above.<wbr/></p>
2868 <p>When afMode is OFF,<wbr/> the application controls focus manually.<wbr/> The accuracy of the
2869 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/>
2870 However,<wbr/> the lens must not move regardless of the camera movement for any focus distance
2871 manual control.<wbr/></p>
2872 <p>To put this in concrete terms,<wbr/> if the camera has lens elements which may move based on
2873 camera orientation or motion (e.<wbr/>g.<wbr/> due to gravity),<wbr/> then the HAL must drive the lens to
2874 remain in a fixed position invariant to the camera's orientation or motion,<wbr/> for example,<wbr/>
2875 by using accelerometer measurements in the lens control logic.<wbr/> This is a typical issue
2876 that will arise on camera modules with open-loop VCMs.<wbr/></p>
2880 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2881 <!-- end of entry -->
2884 <tr class="entry" id="controls_android.control.afRegions">
2885 <td class="entry_name
2887 android.<wbr/>control.<wbr/>af<wbr/>Regions
2889 <td class="entry_type">
2890 <span class="entry_type_name">int32</span>
2891 <span class="entry_type_container">x</span>
2893 <span class="entry_type_array">
2896 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
2903 </td> <!-- entry_type -->
2905 <td class="entry_description">
2906 <p>List of metering areas to use for auto-focus.<wbr/></p>
2909 <td class="entry_units">
2910 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
2913 <td class="entry_range">
2914 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
2915 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
2918 <td class="entry_tags">
2919 <ul class="entry_tags">
2920 <li><a href="#tag_BC">BC</a></li>
2925 <tr class="entries_header">
2926 <th class="th_details" colspan="5">Details</th>
2928 <tr class="entry_cont">
2929 <td class="entry_details" colspan="5">
2930 <p>Not available if <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a> is 0.<wbr/>
2931 Otherwise will always be present.<wbr/></p>
2932 <p>The maximum number of focus areas supported by the device is determined by the value
2933 of <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a>.<wbr/></p>
2934 <p>The coordinate system is based on the active pixel array,<wbr/>
2935 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
2936 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
2937 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
2938 bottom-right pixel in the active pixel array.<wbr/></p>
2939 <p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
2940 for every pixel in the area.<wbr/> This means that a large metering area
2941 with the same weight as a smaller area will have more effect in
2942 the metering result.<wbr/> Metering areas can partially overlap and the
2943 camera device will add the weights in the overlap region.<wbr/></p>
2944 <p>The weights are relative to weights of other metering regions,<wbr/> so if only one region
2945 is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0 weight is
2947 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
2948 camera device.<wbr/></p>
2949 <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
2950 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
2951 region and output only the intersection rectangle as the metering region in the result
2952 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
2953 not reported in the result metadata.<wbr/></p>
2957 <tr class="entries_header">
2958 <th class="th_details" colspan="5">HAL Implementation Details</th>
2960 <tr class="entry_cont">
2961 <td class="entry_details" colspan="5">
2962 <p>The HAL level representation of MeteringRectangle[] is a
2963 int[5 * area_<wbr/>count].<wbr/>
2964 Every five elements represent a metering region of
2965 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
2966 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
2967 exclusive on xmax and ymax.<wbr/></p>
2971 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
2972 <!-- end of entry -->
2975 <tr class="entry" id="controls_android.control.afTrigger">
2976 <td class="entry_name
2978 android.<wbr/>control.<wbr/>af<wbr/>Trigger
2980 <td class="entry_type">
2981 <span class="entry_type_name entry_type_name_enum">byte</span>
2983 <span class="entry_type_visibility"> [public]</span>
2986 <span class="entry_type_hwlevel">[legacy] </span>
2990 <ul class="entry_type_enum">
2992 <span class="entry_type_enum_name">IDLE</span>
2993 <span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
2996 <span class="entry_type_enum_name">START</span>
2997 <span class="entry_type_enum_notes"><p>Autofocus will trigger now.<wbr/></p></span>
3000 <span class="entry_type_enum_name">CANCEL</span>
3001 <span class="entry_type_enum_notes"><p>Autofocus will return to its initial
3002 state,<wbr/> and cancel any currently active trigger.<wbr/></p></span>
3006 </td> <!-- entry_type -->
3008 <td class="entry_description">
3009 <p>Whether the camera device will trigger autofocus for this request.<wbr/></p>
3012 <td class="entry_units">
3015 <td class="entry_range">
3018 <td class="entry_tags">
3019 <ul class="entry_tags">
3020 <li><a href="#tag_BC">BC</a></li>
3025 <tr class="entries_header">
3026 <th class="th_details" colspan="5">Details</th>
3028 <tr class="entry_cont">
3029 <td class="entry_details" colspan="5">
3030 <p>This entry is normally set to IDLE,<wbr/> or is not
3031 included at all in the request settings.<wbr/></p>
3032 <p>When included and set to START,<wbr/> the camera device will trigger the
3033 autofocus algorithm.<wbr/> If autofocus is disabled,<wbr/> this trigger has no effect.<wbr/></p>
3034 <p>When set to CANCEL,<wbr/> the camera device will cancel any active trigger,<wbr/>
3035 and return to its initial AF state.<wbr/></p>
3036 <p>Generally,<wbr/> applications should set this entry to START or CANCEL for only a
3037 single capture,<wbr/> and then return it to IDLE (or not set at all).<wbr/> Specifying
3038 START for multiple captures in a row means restarting the AF operation over
3039 and over again.<wbr/></p>
3040 <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>
3041 <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>
3042 simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
3043 the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
3044 focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
3045 trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
3046 changes to <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>,<wbr/> for example.<wbr/></p>
3050 <tr class="entries_header">
3051 <th class="th_details" colspan="5">HAL Implementation Details</th>
3053 <tr class="entry_cont">
3054 <td class="entry_details" colspan="5">
3055 <p>The HAL must support triggering the AF trigger while an AE precapture trigger is active
3056 (and vice versa),<wbr/> or at the same time as the AE trigger.<wbr/> It is acceptable for the HAL to
3057 treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
3058 AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
3059 to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
3063 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3064 <!-- end of entry -->
3067 <tr class="entry" id="controls_android.control.awbLock">
3068 <td class="entry_name
3070 android.<wbr/>control.<wbr/>awb<wbr/>Lock
3072 <td class="entry_type">
3073 <span class="entry_type_name entry_type_name_enum">byte</span>
3075 <span class="entry_type_visibility"> [public as boolean]</span>
3078 <span class="entry_type_hwlevel">[legacy] </span>
3082 <ul class="entry_type_enum">
3084 <span class="entry_type_enum_name">OFF</span>
3085 <span class="entry_type_enum_notes"><p>Auto-white balance lock is disabled; the AWB
3086 algorithm is free to update its parameters if in AUTO
3087 mode.<wbr/></p></span>
3090 <span class="entry_type_enum_name">ON</span>
3091 <span class="entry_type_enum_notes"><p>Auto-white balance lock is enabled; the AWB
3092 algorithm will not update its parameters while the lock
3093 is active.<wbr/></p></span>
3097 </td> <!-- entry_type -->
3099 <td class="entry_description">
3100 <p>Whether auto-white balance (AWB) is currently locked to its
3101 latest calculated values.<wbr/></p>
3104 <td class="entry_units">
3107 <td class="entry_range">
3110 <td class="entry_tags">
3111 <ul class="entry_tags">
3112 <li><a href="#tag_BC">BC</a></li>
3117 <tr class="entries_header">
3118 <th class="th_details" colspan="5">Details</th>
3120 <tr class="entry_cont">
3121 <td class="entry_details" colspan="5">
3122 <p>When set to <code>true</code> (ON),<wbr/> the AWB algorithm is locked to its latest parameters,<wbr/>
3123 and will not change color balance settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
3124 <p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
3125 get locked do not necessarily correspond to the settings that were present in the
3126 latest capture result received from the camera device,<wbr/> since additional captures
3127 and AWB updates may have occurred even before the result was sent out.<wbr/> If an
3128 application is switching between automatic and manual control and wishes to eliminate
3129 any flicker during the switch,<wbr/> the following procedure is recommended:</p>
3131 <li>Starting in auto-AWB mode:</li>
3133 <li>Wait for the first result to be output that has the AWB locked</li>
3134 <li>Copy AWB settings from that result into a request,<wbr/> set the request to manual AWB</li>
3135 <li>Submit the capture request,<wbr/> proceed to run manual AWB as desired.<wbr/></li>
3137 <p>Note that AWB lock is only meaningful when
3138 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> is in the AUTO mode; in other modes,<wbr/>
3139 AWB is already fixed to a specific setting.<wbr/></p>
3140 <p>Some LEGACY devices may not support ON; the value is then overridden to OFF.<wbr/></p>
3145 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3146 <!-- end of entry -->
3149 <tr class="entry" id="controls_android.control.awbMode">
3150 <td class="entry_name
3152 android.<wbr/>control.<wbr/>awb<wbr/>Mode
3154 <td class="entry_type">
3155 <span class="entry_type_name entry_type_name_enum">byte</span>
3157 <span class="entry_type_visibility"> [public]</span>
3160 <span class="entry_type_hwlevel">[legacy] </span>
3164 <ul class="entry_type_enum">
3166 <span class="entry_type_enum_name">OFF</span>
3167 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled.<wbr/></p>
3168 <p>The application-selected color transform matrix
3169 (<a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>) and gains
3170 (<a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a>) are used by the camera
3171 device for manual white balance control.<wbr/></p></span>
3174 <span class="entry_type_enum_name">AUTO</span>
3175 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is active.<wbr/></p>
3176 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3177 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3178 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3179 values used by the camera device for the transform and gains
3180 will be available in the capture result for this request.<wbr/></p></span>
3183 <span class="entry_type_enum_name">INCANDESCENT</span>
3184 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3185 the camera device uses incandescent light as the assumed scene
3186 illumination for white balance.<wbr/></p>
3187 <p>While the exact white balance transforms are up to the
3188 camera device,<wbr/> they will approximately match the CIE
3189 standard illuminant A.<wbr/></p>
3190 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3191 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3192 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3193 values used by the camera device for the transform and gains
3194 will be available in the capture result for this request.<wbr/></p></span>
3197 <span class="entry_type_enum_name">FLUORESCENT</span>
3198 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3199 the camera device uses fluorescent light as the assumed scene
3200 illumination for white balance.<wbr/></p>
3201 <p>While the exact white balance transforms are up to the
3202 camera device,<wbr/> they will approximately match the CIE
3203 standard illuminant F2.<wbr/></p>
3204 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3205 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3206 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3207 values used by the camera device for the transform and gains
3208 will be available in the capture result for this request.<wbr/></p></span>
3211 <span class="entry_type_enum_name">WARM_FLUORESCENT</span>
3212 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3213 the camera device uses warm fluorescent light as the assumed scene
3214 illumination for white balance.<wbr/></p>
3215 <p>While the exact white balance transforms are up to the
3216 camera device,<wbr/> they will approximately match the CIE
3217 standard illuminant F4.<wbr/></p>
3218 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3219 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3220 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3221 values used by the camera device for the transform and gains
3222 will be available in the capture result for this request.<wbr/></p></span>
3225 <span class="entry_type_enum_name">DAYLIGHT</span>
3226 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3227 the camera device uses daylight light as the assumed scene
3228 illumination for white balance.<wbr/></p>
3229 <p>While the exact white balance transforms are up to the
3230 camera device,<wbr/> they will approximately match the CIE
3231 standard illuminant D65.<wbr/></p>
3232 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3233 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3234 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3235 values used by the camera device for the transform and gains
3236 will be available in the capture result for this request.<wbr/></p></span>
3239 <span class="entry_type_enum_name">CLOUDY_DAYLIGHT</span>
3240 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3241 the camera device uses cloudy daylight light as the assumed scene
3242 illumination for white balance.<wbr/></p>
3243 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3244 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3245 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3246 values used by the camera device for the transform and gains
3247 will be available in the capture result for this request.<wbr/></p></span>
3250 <span class="entry_type_enum_name">TWILIGHT</span>
3251 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3252 the camera device uses twilight light as the assumed scene
3253 illumination for white balance.<wbr/></p>
3254 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3255 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3256 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3257 values used by the camera device for the transform and gains
3258 will be available in the capture result for this request.<wbr/></p></span>
3261 <span class="entry_type_enum_name">SHADE</span>
3262 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
3263 the camera device uses shade light as the assumed scene
3264 illumination for white balance.<wbr/></p>
3265 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
3266 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
3267 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
3268 values used by the camera device for the transform and gains
3269 will be available in the capture result for this request.<wbr/></p></span>
3273 </td> <!-- entry_type -->
3275 <td class="entry_description">
3276 <p>Whether auto-white balance (AWB) is currently setting the color
3277 transform fields,<wbr/> and what its illumination target
3281 <td class="entry_units">
3284 <td class="entry_range">
3285 <p><a href="#static_android.control.awbAvailableModes">android.<wbr/>control.<wbr/>awb<wbr/>Available<wbr/>Modes</a></p>
3288 <td class="entry_tags">
3289 <ul class="entry_tags">
3290 <li><a href="#tag_BC">BC</a></li>
3295 <tr class="entries_header">
3296 <th class="th_details" colspan="5">Details</th>
3298 <tr class="entry_cont">
3299 <td class="entry_details" colspan="5">
3300 <p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is AUTO.<wbr/></p>
3301 <p>When set to the ON mode,<wbr/> the camera device's auto-white balance
3302 routine is enabled,<wbr/> overriding the application's selected
3303 <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
3304 <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>
3305 is OFF,<wbr/> the behavior of AWB is device dependent.<wbr/> It is recommened to
3306 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
3307 setting AE mode to OFF.<wbr/></p>
3308 <p>When set to the OFF mode,<wbr/> the camera device's auto-white balance
3309 routine is disabled.<wbr/> The application manually controls the white
3310 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>
3311 and <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a>.<wbr/></p>
3312 <p>When set to any other modes,<wbr/> the camera device's auto-white
3313 balance routine is disabled.<wbr/> The camera device uses each
3314 particular illumination target for white balance
3315 adjustment.<wbr/> The application's values for
3316 <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>,<wbr/>
3317 <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
3318 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> are ignored.<wbr/></p>
3323 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3324 <!-- end of entry -->
3327 <tr class="entry" id="controls_android.control.awbRegions">
3328 <td class="entry_name
3330 android.<wbr/>control.<wbr/>awb<wbr/>Regions
3332 <td class="entry_type">
3333 <span class="entry_type_name">int32</span>
3334 <span class="entry_type_container">x</span>
3336 <span class="entry_type_array">
3339 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
3346 </td> <!-- entry_type -->
3348 <td class="entry_description">
3349 <p>List of metering areas to use for auto-white-balance illuminant
3350 estimation.<wbr/></p>
3353 <td class="entry_units">
3354 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
3357 <td class="entry_range">
3358 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
3359 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
3362 <td class="entry_tags">
3363 <ul class="entry_tags">
3364 <li><a href="#tag_BC">BC</a></li>
3369 <tr class="entries_header">
3370 <th class="th_details" colspan="5">Details</th>
3372 <tr class="entry_cont">
3373 <td class="entry_details" colspan="5">
3374 <p>Not available if <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a> is 0.<wbr/>
3375 Otherwise will always be present.<wbr/></p>
3376 <p>The maximum number of regions supported by the device is determined by the value
3377 of <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a>.<wbr/></p>
3378 <p>The coordinate system is based on the active pixel array,<wbr/>
3379 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
3380 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
3381 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
3382 bottom-right pixel in the active pixel array.<wbr/></p>
3383 <p>The weight must range from 0 to 1000,<wbr/> and represents a weight
3384 for every pixel in the area.<wbr/> This means that a large metering area
3385 with the same weight as a smaller area will have more effect in
3386 the metering result.<wbr/> Metering areas can partially overlap and the
3387 camera device will add the weights in the overlap region.<wbr/></p>
3388 <p>The weights are relative to weights of other white balance metering regions,<wbr/> so if
3389 only one region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with
3390 0 weight is ignored.<wbr/></p>
3391 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
3392 camera device.<wbr/></p>
3393 <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
3394 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
3395 region and output only the intersection rectangle as the metering region in the result
3396 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
3397 not reported in the result metadata.<wbr/></p>
3401 <tr class="entries_header">
3402 <th class="th_details" colspan="5">HAL Implementation Details</th>
3404 <tr class="entry_cont">
3405 <td class="entry_details" colspan="5">
3406 <p>The HAL level representation of MeteringRectangle[] is a
3407 int[5 * area_<wbr/>count].<wbr/>
3408 Every five elements represent a metering region of
3409 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
3410 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
3411 exclusive on xmax and ymax.<wbr/></p>
3415 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3416 <!-- end of entry -->
3419 <tr class="entry" id="controls_android.control.captureIntent">
3420 <td class="entry_name
3422 android.<wbr/>control.<wbr/>capture<wbr/>Intent
3424 <td class="entry_type">
3425 <span class="entry_type_name entry_type_name_enum">byte</span>
3427 <span class="entry_type_visibility"> [public]</span>
3430 <span class="entry_type_hwlevel">[legacy] </span>
3434 <ul class="entry_type_enum">
3436 <span class="entry_type_enum_name">CUSTOM</span>
3437 <span class="entry_type_enum_notes"><p>The goal of this request doesn't fall into the other
3438 categories.<wbr/> The camera device will default to preview-like
3439 behavior.<wbr/></p></span>
3442 <span class="entry_type_enum_name">PREVIEW</span>
3443 <span class="entry_type_enum_notes"><p>This request is for a preview-like use case.<wbr/></p>
3444 <p>The precapture trigger may be used to start off a metering
3445 w/<wbr/>flash sequence.<wbr/></p></span>
3448 <span class="entry_type_enum_name">STILL_CAPTURE</span>
3449 <span class="entry_type_enum_notes"><p>This request is for a still capture-type
3451 <p>If the flash unit is under automatic control,<wbr/> it may fire as needed.<wbr/></p></span>
3454 <span class="entry_type_enum_name">VIDEO_RECORD</span>
3455 <span class="entry_type_enum_notes"><p>This request is for a video recording
3456 use case.<wbr/></p></span>
3459 <span class="entry_type_enum_name">VIDEO_SNAPSHOT</span>
3460 <span class="entry_type_enum_notes"><p>This request is for a video snapshot (still
3461 image while recording video) use case.<wbr/></p>
3462 <p>The camera device should take the highest-quality image
3463 possible (given the other settings) without disrupting the
3464 frame rate of video recording.<wbr/> </p></span>
3467 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
3468 <span class="entry_type_enum_notes"><p>This request is for a ZSL usecase; the
3469 application will stream full-resolution images and
3470 reprocess one or several later for a final
3471 capture.<wbr/></p></span>
3474 <span class="entry_type_enum_name">MANUAL</span>
3475 <span class="entry_type_enum_notes"><p>This request is for manual capture use case where
3476 the applications want to directly control the capture parameters.<wbr/></p>
3477 <p>For example,<wbr/> the application may wish to manually control
3478 <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>
3482 </td> <!-- entry_type -->
3484 <td class="entry_description">
3485 <p>Information to the camera device 3A (auto-exposure,<wbr/>
3486 auto-focus,<wbr/> auto-white balance) routines about the purpose
3487 of this capture,<wbr/> to help the camera device to decide optimal 3A
3491 <td class="entry_units">
3494 <td class="entry_range">
3497 <td class="entry_tags">
3498 <ul class="entry_tags">
3499 <li><a href="#tag_BC">BC</a></li>
3504 <tr class="entries_header">
3505 <th class="th_details" colspan="5">Details</th>
3507 <tr class="entry_cont">
3508 <td class="entry_details" colspan="5">
3509 <p>This control (except for MANUAL) is only effective if
3510 <code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> != OFF</code> and any 3A routine is active.<wbr/></p>
3511 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG will be supported if <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>
3512 contains PRIVATE_<wbr/>REPROCESSING or YUV_<wbr/>REPROCESSING.<wbr/> MANUAL will be supported if
3513 <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains MANUAL_<wbr/>SENSOR.<wbr/> Other intent values are
3514 always supported.<wbr/></p>
3519 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3520 <!-- end of entry -->
3523 <tr class="entry" id="controls_android.control.effectMode">
3524 <td class="entry_name
3526 android.<wbr/>control.<wbr/>effect<wbr/>Mode
3528 <td class="entry_type">
3529 <span class="entry_type_name entry_type_name_enum">byte</span>
3531 <span class="entry_type_visibility"> [public]</span>
3534 <span class="entry_type_hwlevel">[legacy] </span>
3538 <ul class="entry_type_enum">
3540 <span class="entry_type_enum_name">OFF</span>
3541 <span class="entry_type_enum_notes"><p>No color effect will be applied.<wbr/></p></span>
3544 <span class="entry_type_enum_name">MONO</span>
3545 <span class="entry_type_enum_optional">[optional]</span>
3546 <span class="entry_type_enum_notes"><p>A "monocolor" effect where the image is mapped into
3547 a single color.<wbr/></p>
3548 <p>This will typically be grayscale.<wbr/></p></span>
3551 <span class="entry_type_enum_name">NEGATIVE</span>
3552 <span class="entry_type_enum_optional">[optional]</span>
3553 <span class="entry_type_enum_notes"><p>A "photo-negative" effect where the image's colors
3554 are inverted.<wbr/></p></span>
3557 <span class="entry_type_enum_name">SOLARIZE</span>
3558 <span class="entry_type_enum_optional">[optional]</span>
3559 <span class="entry_type_enum_notes"><p>A "solarisation" effect (Sabattier effect) where the
3560 image is wholly or partially reversed in
3561 tone.<wbr/></p></span>
3564 <span class="entry_type_enum_name">SEPIA</span>
3565 <span class="entry_type_enum_optional">[optional]</span>
3566 <span class="entry_type_enum_notes"><p>A "sepia" effect where the image is mapped into warm
3567 gray,<wbr/> red,<wbr/> and brown tones.<wbr/></p></span>
3570 <span class="entry_type_enum_name">POSTERIZE</span>
3571 <span class="entry_type_enum_optional">[optional]</span>
3572 <span class="entry_type_enum_notes"><p>A "posterization" effect where the image uses
3573 discrete regions of tone rather than a continuous
3574 gradient of tones.<wbr/></p></span>
3577 <span class="entry_type_enum_name">WHITEBOARD</span>
3578 <span class="entry_type_enum_optional">[optional]</span>
3579 <span class="entry_type_enum_notes"><p>A "whiteboard" effect where the image is typically displayed
3580 as regions of white,<wbr/> with black or grey details.<wbr/></p></span>
3583 <span class="entry_type_enum_name">BLACKBOARD</span>
3584 <span class="entry_type_enum_optional">[optional]</span>
3585 <span class="entry_type_enum_notes"><p>A "blackboard" effect where the image is typically displayed
3586 as regions of black,<wbr/> with white or grey details.<wbr/></p></span>
3589 <span class="entry_type_enum_name">AQUA</span>
3590 <span class="entry_type_enum_optional">[optional]</span>
3591 <span class="entry_type_enum_notes"><p>An "aqua" effect where a blue hue is added to the image.<wbr/></p></span>
3595 </td> <!-- entry_type -->
3597 <td class="entry_description">
3598 <p>A special color effect to apply.<wbr/></p>
3601 <td class="entry_units">
3604 <td class="entry_range">
3605 <p><a href="#static_android.control.availableEffects">android.<wbr/>control.<wbr/>available<wbr/>Effects</a></p>
3608 <td class="entry_tags">
3609 <ul class="entry_tags">
3610 <li><a href="#tag_BC">BC</a></li>
3615 <tr class="entries_header">
3616 <th class="th_details" colspan="5">Details</th>
3618 <tr class="entry_cont">
3619 <td class="entry_details" colspan="5">
3620 <p>When this mode is set,<wbr/> a color effect will be applied
3621 to images produced by the camera device.<wbr/> The interpretation
3622 and implementation of these color effects is left to the
3623 implementor of the camera device,<wbr/> and should not be
3624 depended on to be consistent (or present) across all
3630 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3631 <!-- end of entry -->
3634 <tr class="entry" id="controls_android.control.mode">
3635 <td class="entry_name
3637 android.<wbr/>control.<wbr/>mode
3639 <td class="entry_type">
3640 <span class="entry_type_name entry_type_name_enum">byte</span>
3642 <span class="entry_type_visibility"> [public]</span>
3645 <span class="entry_type_hwlevel">[legacy] </span>
3649 <ul class="entry_type_enum">
3651 <span class="entry_type_enum_name">OFF</span>
3652 <span class="entry_type_enum_notes"><p>Full application control of pipeline.<wbr/></p>
3653 <p>All control by the device's metering and focusing (3A)
3654 routines is disabled,<wbr/> and no other settings in
3655 android.<wbr/>control.<wbr/>* have any effect,<wbr/> except that
3656 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> may be used by the camera
3657 device to select post-processing values for processing
3658 blocks that do not allow for manual control,<wbr/> or are not
3659 exposed by the camera API.<wbr/></p>
3660 <p>However,<wbr/> the camera device's 3A routines may continue to
3661 collect statistics and update their internal state so that
3662 when control is switched to AUTO mode,<wbr/> good control values
3663 can be immediately applied.<wbr/></p></span>
3666 <span class="entry_type_enum_name">AUTO</span>
3667 <span class="entry_type_enum_notes"><p>Use settings for each individual 3A routine.<wbr/></p>
3668 <p>Manual control of capture parameters is disabled.<wbr/> All
3669 controls in android.<wbr/>control.<wbr/>* besides sceneMode take
3670 effect.<wbr/></p></span>
3673 <span class="entry_type_enum_name">USE_SCENE_MODE</span>
3674 <span class="entry_type_enum_optional">[optional]</span>
3675 <span class="entry_type_enum_notes"><p>Use a specific scene mode.<wbr/></p>
3676 <p>Enabling this disables control.<wbr/>aeMode,<wbr/> control.<wbr/>awbMode and
3677 control.<wbr/>afMode controls; the camera device will ignore
3678 those settings while USE_<wbr/>SCENE_<wbr/>MODE is active (except for
3679 FACE_<wbr/>PRIORITY scene mode).<wbr/> Other control entries are still active.<wbr/>
3680 This setting can only be used if scene mode is supported (i.<wbr/>e.<wbr/>
3681 <a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a>
3682 contain some modes other than DISABLED).<wbr/></p></span>
3685 <span class="entry_type_enum_name">OFF_KEEP_STATE</span>
3686 <span class="entry_type_enum_optional">[optional]</span>
3687 <span class="entry_type_enum_notes"><p>Same as OFF mode,<wbr/> except that this capture will not be
3688 used by camera device background auto-exposure,<wbr/> auto-white balance and
3689 auto-focus algorithms (3A) to update their statistics.<wbr/></p>
3690 <p>Specifically,<wbr/> the 3A routines are locked to the last
3691 values set from a request with AUTO,<wbr/> OFF,<wbr/> or
3692 USE_<wbr/>SCENE_<wbr/>MODE,<wbr/> and any statistics or state updates
3693 collected from manual captures with OFF_<wbr/>KEEP_<wbr/>STATE will be
3694 discarded by the camera device.<wbr/></p></span>
3698 </td> <!-- entry_type -->
3700 <td class="entry_description">
3701 <p>Overall mode of 3A (auto-exposure,<wbr/> auto-white-balance,<wbr/> auto-focus) control
3705 <td class="entry_units">
3708 <td class="entry_range">
3709 <p><a href="#static_android.control.availableModes">android.<wbr/>control.<wbr/>available<wbr/>Modes</a></p>
3712 <td class="entry_tags">
3713 <ul class="entry_tags">
3714 <li><a href="#tag_BC">BC</a></li>
3719 <tr class="entries_header">
3720 <th class="th_details" colspan="5">Details</th>
3722 <tr class="entry_cont">
3723 <td class="entry_details" colspan="5">
3724 <p>This is a top-level 3A control switch.<wbr/> When set to OFF,<wbr/> all 3A control
3725 by the camera device is disabled.<wbr/> The application must set the fields for
3726 capture parameters itself.<wbr/></p>
3727 <p>When set to AUTO,<wbr/> the individual algorithm controls in
3728 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>
3729 <p>When set to USE_<wbr/>SCENE_<wbr/>MODE,<wbr/> the individual controls in
3730 android.<wbr/>control.<wbr/>* are mostly disabled,<wbr/> and the camera device implements
3731 one of the scene mode settings (such as ACTION,<wbr/> SUNSET,<wbr/> or PARTY)
3732 as it wishes.<wbr/> The camera device scene mode 3A settings are provided by
3733 <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">capture results</a>.<wbr/></p>
3734 <p>When set to OFF_<wbr/>KEEP_<wbr/>STATE,<wbr/> it is similar to OFF mode,<wbr/> the only difference
3735 is that this frame will not be used by camera device background 3A statistics
3736 update,<wbr/> as if this frame is never captured.<wbr/> This mode can be used in the scenario
3737 where the application doesn't want a 3A manual control capture to affect
3738 the subsequent auto 3A capture results.<wbr/></p>
3743 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
3744 <!-- end of entry -->
3747 <tr class="entry" id="controls_android.control.sceneMode">
3748 <td class="entry_name
3750 android.<wbr/>control.<wbr/>scene<wbr/>Mode
3752 <td class="entry_type">
3753 <span class="entry_type_name entry_type_name_enum">byte</span>
3755 <span class="entry_type_visibility"> [public]</span>
3758 <span class="entry_type_hwlevel">[legacy] </span>
3762 <ul class="entry_type_enum">
3764 <span class="entry_type_enum_name">DISABLED</span>
3765 <span class="entry_type_enum_value">0</span>
3766 <span class="entry_type_enum_notes"><p>Indicates that no scene modes are set for a given capture request.<wbr/></p></span>
3769 <span class="entry_type_enum_name">FACE_PRIORITY</span>
3770 <span class="entry_type_enum_notes"><p>If face detection support exists,<wbr/> use face
3771 detection data for auto-focus,<wbr/> auto-white balance,<wbr/> and
3772 auto-exposure routines.<wbr/></p>
3773 <p>If face detection statistics are disabled
3774 (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/>
3775 this should still operate correctly (but will not return
3776 face detection statistics to the framework).<wbr/></p>
3777 <p>Unlike the other scene modes,<wbr/> <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
3778 <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>
3779 remain active when FACE_<wbr/>PRIORITY is set.<wbr/></p></span>
3782 <span class="entry_type_enum_name">ACTION</span>
3783 <span class="entry_type_enum_optional">[optional]</span>
3784 <span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving objects.<wbr/></p>
3785 <p>Similar to SPORTS.<wbr/></p></span>
3788 <span class="entry_type_enum_name">PORTRAIT</span>
3789 <span class="entry_type_enum_optional">[optional]</span>
3790 <span class="entry_type_enum_notes"><p>Optimized for still photos of people.<wbr/></p></span>
3793 <span class="entry_type_enum_name">LANDSCAPE</span>
3794 <span class="entry_type_enum_optional">[optional]</span>
3795 <span class="entry_type_enum_notes"><p>Optimized for photos of distant macroscopic objects.<wbr/></p></span>
3798 <span class="entry_type_enum_name">NIGHT</span>
3799 <span class="entry_type_enum_optional">[optional]</span>
3800 <span class="entry_type_enum_notes"><p>Optimized for low-light settings.<wbr/></p></span>
3803 <span class="entry_type_enum_name">NIGHT_PORTRAIT</span>
3804 <span class="entry_type_enum_optional">[optional]</span>
3805 <span class="entry_type_enum_notes"><p>Optimized for still photos of people in low-light
3806 settings.<wbr/></p></span>
3809 <span class="entry_type_enum_name">THEATRE</span>
3810 <span class="entry_type_enum_optional">[optional]</span>
3811 <span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings where flash must
3812 remain off.<wbr/></p></span>
3815 <span class="entry_type_enum_name">BEACH</span>
3816 <span class="entry_type_enum_optional">[optional]</span>
3817 <span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor beach settings.<wbr/></p></span>
3820 <span class="entry_type_enum_name">SNOW</span>
3821 <span class="entry_type_enum_optional">[optional]</span>
3822 <span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor settings containing snow.<wbr/></p></span>
3825 <span class="entry_type_enum_name">SUNSET</span>
3826 <span class="entry_type_enum_optional">[optional]</span>
3827 <span class="entry_type_enum_notes"><p>Optimized for scenes of the setting sun.<wbr/></p></span>
3830 <span class="entry_type_enum_name">STEADYPHOTO</span>
3831 <span class="entry_type_enum_optional">[optional]</span>
3832 <span class="entry_type_enum_notes"><p>Optimized to avoid blurry photos due to small amounts of
3833 device motion (for example: due to hand shake).<wbr/></p></span>
3836 <span class="entry_type_enum_name">FIREWORKS</span>
3837 <span class="entry_type_enum_optional">[optional]</span>
3838 <span class="entry_type_enum_notes"><p>Optimized for nighttime photos of fireworks.<wbr/></p></span>
3841 <span class="entry_type_enum_name">SPORTS</span>
3842 <span class="entry_type_enum_optional">[optional]</span>
3843 <span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving people.<wbr/></p>
3844 <p>Similar to ACTION.<wbr/></p></span>
3847 <span class="entry_type_enum_name">PARTY</span>
3848 <span class="entry_type_enum_optional">[optional]</span>
3849 <span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings with multiple moving
3850 people.<wbr/></p></span>
3853 <span class="entry_type_enum_name">CANDLELIGHT</span>
3854 <span class="entry_type_enum_optional">[optional]</span>
3855 <span class="entry_type_enum_notes"><p>Optimized for dim settings where the main light source
3856 is a flame.<wbr/></p></span>
3859 <span class="entry_type_enum_name">BARCODE</span>
3860 <span class="entry_type_enum_optional">[optional]</span>
3861 <span class="entry_type_enum_notes"><p>Optimized for accurately capturing a photo of barcode
3862 for use by camera applications that wish to read the
3863 barcode value.<wbr/></p></span>
3866 <span class="entry_type_enum_name">HIGH_SPEED_VIDEO</span>
3867 <span class="entry_type_enum_deprecated">[deprecated]</span>
3868 <span class="entry_type_enum_optional">[optional]</span>
3869 <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>
3870 and <a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>
3871 for high speed video recording.<wbr/></p>
3872 <p>Optimized for high speed video recording (frame rate >=60fps) use case.<wbr/></p>
3873 <p>The supported high speed video sizes and fps ranges are specified in
3874 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/> To get desired
3875 output frame rates,<wbr/> the application is only allowed to select video size
3876 and fps range combinations listed in this static metadata.<wbr/> The fps range
3877 can be control via <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a>.<wbr/></p>
3878 <p>In this mode,<wbr/> the camera device will override aeMode,<wbr/> awbMode,<wbr/> and afMode to
3879 ON,<wbr/> ON,<wbr/> and CONTINUOUS_<wbr/>VIDEO,<wbr/> respectively.<wbr/> All post-processing block mode
3880 controls will be overridden to be FAST.<wbr/> Therefore,<wbr/> no manual control of capture
3881 and post-processing parameters is possible.<wbr/> All other controls operate the
3882 same as when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == AUTO.<wbr/> This means that all other
3883 android.<wbr/>control.<wbr/>* fields continue to work,<wbr/> such as</p>
3885 <li><a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a></li>
3886 <li><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a></li>
3887 <li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
3888 <li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
3889 <li><a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></li>
3890 <li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
3891 <li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
3892 <li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
3893 <li><a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a></li>
3894 <li><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a></li>
3896 <p>Outside of android.<wbr/>control.<wbr/>*,<wbr/> the following controls will work:</p>
3898 <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>
3899 <li><a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> (if it is supported)</li>
3900 <li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
3901 <li><a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a></li>
3903 <p>For high speed recording use case,<wbr/> the actual maximum supported frame rate may
3904 be lower than what camera can output,<wbr/> depending on the destination Surfaces for
3905 the image data.<wbr/> For example,<wbr/> if the destination surface is from video encoder,<wbr/>
3906 the application need check if the video encoder is capable of supporting the
3907 high frame rate for a given video size,<wbr/> or it will end up with lower recording
3908 frame rate.<wbr/> If the destination surface is from preview window,<wbr/> the preview frame
3909 rate will be bounded by the screen refresh rate.<wbr/></p>
3910 <p>The camera device will only support up to 2 output high speed streams
3911 (processed non-stalling format defined in <a href="#static_android.request.maxNumOutputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Streams</a>)
3912 in this mode.<wbr/> This control will be effective only if all of below conditions are true:</p>
3914 <li>The application created no more than maxNumHighSpeedStreams processed non-stalling
3915 format output streams,<wbr/> where maxNumHighSpeedStreams is calculated as
3916 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>
3917 <li>The stream sizes are selected from the sizes reported by
3918 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/></li>
3919 <li>No processed non-stalling or raw streams are configured.<wbr/></li>
3921 <p>When above conditions are NOT satistied,<wbr/> the controls of this mode and
3922 <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/>
3923 the camera device will fall back to <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> <code>==</code> AUTO,<wbr/>
3924 and the returned capture result metadata will give the fps range choosen
3925 by the camera device.<wbr/></p>
3926 <p>Switching into or out of this mode may trigger some camera ISP/<wbr/>sensor
3927 reconfigurations,<wbr/> which may introduce extra latency.<wbr/> It is recommended that
3928 the application avoids unnecessary scene mode switch as much as possible.<wbr/></p></span>
3931 <span class="entry_type_enum_name">HDR</span>
3932 <span class="entry_type_enum_optional">[optional]</span>
3933 <span class="entry_type_enum_notes"><p>Turn on a device-specific high dynamic range (HDR) mode.<wbr/></p>
3934 <p>In this scene mode,<wbr/> the camera device captures images
3935 that keep a larger range of scene illumination levels
3936 visible in the final image.<wbr/> For example,<wbr/> when taking a
3937 picture of a object in front of a bright window,<wbr/> both
3938 the object and the scene through the window may be
3939 visible when using HDR mode,<wbr/> while in normal AUTO mode,<wbr/>
3940 one or the other may be poorly exposed.<wbr/> As a tradeoff,<wbr/>
3941 HDR mode generally takes much longer to capture a single
3942 image,<wbr/> has no user control,<wbr/> and may have other artifacts
3943 depending on the HDR method used.<wbr/></p>
3944 <p>Therefore,<wbr/> HDR captures operate at a much slower rate
3945 than regular captures.<wbr/></p>
3946 <p>In this mode,<wbr/> on LIMITED or FULL devices,<wbr/> when a request
3947 is made with a <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> of
3948 STILL_<wbr/>CAPTURE,<wbr/> the camera device will capture an image
3949 using a high dynamic range capture technique.<wbr/> On LEGACY
3950 devices,<wbr/> captures that target a JPEG-format output will
3951 be captured with HDR,<wbr/> and the capture intent is not
3953 <p>The HDR capture may involve the device capturing a burst
3954 of images internally and combining them into one,<wbr/> or it
3955 may involve the device using specialized high dynamic
3956 range capture hardware.<wbr/> In all cases,<wbr/> a single image is
3957 produced in response to a capture request submitted
3958 while in HDR mode.<wbr/></p>
3959 <p>Since substantial post-processing is generally needed to
3960 produce an HDR image,<wbr/> only YUV,<wbr/> PRIVATE,<wbr/> and JPEG
3961 outputs are supported for LIMITED/<wbr/>FULL device HDR
3962 captures,<wbr/> and only JPEG outputs are supported for LEGACY
3963 HDR captures.<wbr/> Using a RAW output for HDR capture is not
3964 supported.<wbr/></p>
3965 <p>Some devices may also support always-on HDR,<wbr/> which
3966 applies HDR processing at full frame rate.<wbr/> For these
3967 devices,<wbr/> intents other than STILL_<wbr/>CAPTURE will also
3968 produce an HDR output with no frame rate impact compared
3969 to normal operation,<wbr/> though the quality may be lower
3970 than for STILL_<wbr/>CAPTURE intents.<wbr/></p>
3971 <p>If SCENE_<wbr/>MODE_<wbr/>HDR is used with unsupported output types
3972 or capture intents,<wbr/> the images captured will be as if
3973 the SCENE_<wbr/>MODE was not enabled at all.<wbr/></p></span>
3976 <span class="entry_type_enum_name">FACE_PRIORITY_LOW_LIGHT</span>
3977 <span class="entry_type_enum_optional">[optional]</span>
3978 <span class="entry_type_enum_hidden">[hidden]</span>
3979 <span class="entry_type_enum_notes"><p>Same as FACE_<wbr/>PRIORITY scene mode,<wbr/> except that the camera
3980 device will choose higher sensitivity values (<a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>)
3981 under low light conditions.<wbr/></p>
3982 <p>The camera device may be tuned to expose the images in a reduced
3983 sensitivity range to produce the best quality images.<wbr/> For example,<wbr/>
3984 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/>
3985 the camera device auto-exposure routine tuning process may limit the actual
3986 exposure sensitivity range to [100,<wbr/> 1200] to ensure that the noise level isn't
3987 exessive in order to preserve the image quality.<wbr/> Under this situation,<wbr/> the image under
3988 low light may be under-exposed when the sensor max exposure time (bounded by the
3989 <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
3990 ON_<wbr/>* modes) and effective max sensitivity are reached.<wbr/> This scene mode allows the
3991 camera device auto-exposure routine to increase the sensitivity up to the max
3992 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
3993 dark and the max exposure time is reached.<wbr/> The captured images may be noisier
3994 compared with the images captured in normal FACE_<wbr/>PRIORITY mode; therefore,<wbr/> it is
3995 recommended that the application only use this scene mode when it is capable of
3996 reducing the noise level of the captured images.<wbr/></p>
3997 <p>Unlike the other scene modes,<wbr/> <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
3998 <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>
3999 remain active when FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT is set.<wbr/></p></span>
4002 <span class="entry_type_enum_name">DEVICE_CUSTOM_START</span>
4003 <span class="entry_type_enum_optional">[optional]</span>
4004 <span class="entry_type_enum_hidden">[hidden]</span>
4005 <span class="entry_type_enum_value">100</span>
4006 <span class="entry_type_enum_notes"><p>Scene mode values within the range of
4007 <code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
4008 customized scene modes.<wbr/></p></span>
4011 <span class="entry_type_enum_name">DEVICE_CUSTOM_END</span>
4012 <span class="entry_type_enum_optional">[optional]</span>
4013 <span class="entry_type_enum_hidden">[hidden]</span>
4014 <span class="entry_type_enum_value">127</span>
4015 <span class="entry_type_enum_notes"><p>Scene mode values within the range of
4016 <code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
4017 customized scene modes.<wbr/></p></span>
4021 </td> <!-- entry_type -->
4023 <td class="entry_description">
4024 <p>Control for which scene mode is currently active.<wbr/></p>
4027 <td class="entry_units">
4030 <td class="entry_range">
4031 <p><a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a></p>
4034 <td class="entry_tags">
4035 <ul class="entry_tags">
4036 <li><a href="#tag_BC">BC</a></li>
4041 <tr class="entries_header">
4042 <th class="th_details" colspan="5">Details</th>
4044 <tr class="entry_cont">
4045 <td class="entry_details" colspan="5">
4046 <p>Scene modes are custom camera modes optimized for a certain set of conditions and
4047 capture settings.<wbr/></p>
4048 <p>This is the mode that that is active when
4049 <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
4050 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>
4051 while in use.<wbr/></p>
4052 <p>The interpretation and implementation of these scene modes is left
4053 to the implementor of the camera device.<wbr/> Their behavior will not be
4054 consistent across all devices,<wbr/> and any given device may only implement
4055 a subset of these modes.<wbr/></p>
4059 <tr class="entries_header">
4060 <th class="th_details" colspan="5">HAL Implementation Details</th>
4062 <tr class="entry_cont">
4063 <td class="entry_details" colspan="5">
4064 <p>HAL implementations that include scene modes are expected to provide
4065 the per-scene settings to use for <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
4066 <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
4067 <a href="#static_android.control.sceneModeOverrides">android.<wbr/>control.<wbr/>scene<wbr/>Mode<wbr/>Overrides</a>.<wbr/></p>
4068 <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/>
4069 the HAL must list supported video size and fps range in
4070 <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/>
4071 1280x720,<wbr/> if the HAL has two different sensor configurations for normal streaming
4072 mode and high speed streaming,<wbr/> when this scene mode is set/<wbr/>reset in a sequence of capture
4073 requests,<wbr/> the HAL may have to switch between different sensor modes.<wbr/>
4074 This mode is deprecated in HAL3.<wbr/>3,<wbr/> to support high speed video recording,<wbr/> please implement
4075 <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
4076 capbility defined in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
4080 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4081 <!-- end of entry -->
4084 <tr class="entry" id="controls_android.control.videoStabilizationMode">
4085 <td class="entry_name
4087 android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode
4089 <td class="entry_type">
4090 <span class="entry_type_name entry_type_name_enum">byte</span>
4092 <span class="entry_type_visibility"> [public]</span>
4095 <span class="entry_type_hwlevel">[legacy] </span>
4099 <ul class="entry_type_enum">
4101 <span class="entry_type_enum_name">OFF</span>
4102 <span class="entry_type_enum_notes"><p>Video stabilization is disabled.<wbr/></p></span>
4105 <span class="entry_type_enum_name">ON</span>
4106 <span class="entry_type_enum_notes"><p>Video stabilization is enabled.<wbr/></p></span>
4110 </td> <!-- entry_type -->
4112 <td class="entry_description">
4113 <p>Whether video stabilization is
4117 <td class="entry_units">
4120 <td class="entry_range">
4123 <td class="entry_tags">
4124 <ul class="entry_tags">
4125 <li><a href="#tag_BC">BC</a></li>
4130 <tr class="entries_header">
4131 <th class="th_details" colspan="5">Details</th>
4133 <tr class="entry_cont">
4134 <td class="entry_details" colspan="5">
4135 <p>Video stabilization automatically warps images from
4136 the camera in order to stabilize motion between consecutive frames.<wbr/></p>
4137 <p>If enabled,<wbr/> video stabilization can modify the
4138 <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to keep the video stream stabilized.<wbr/></p>
4139 <p>Switching between different video stabilization modes may take several
4140 frames to initialize,<wbr/> the camera device will report the current mode
4141 in capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/>
4142 the video stabilization modes in the first several capture results may
4143 still be "OFF",<wbr/> and it will become "ON" when the initialization is
4145 <p>In addition,<wbr/> not all recording sizes or frame rates may be supported for
4146 stabilization by a device that reports stabilization support.<wbr/> It is guaranteed
4147 that an output targeting a MediaRecorder or MediaCodec will be stabilized if
4148 the recording resolution is less than or equal to 1920 x 1080 (width less than
4149 or equal to 1920,<wbr/> height less than or equal to 1080),<wbr/> and the recording
4150 frame rate is less than or equal to 30fps.<wbr/> At other sizes,<wbr/> the CaptureResult
4151 <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a> field will return
4152 OFF if the recording output is not stabilized,<wbr/> or if there are no output
4153 Surface types that can be stabilized.<wbr/></p>
4154 <p>If a camera device supports both this mode and OIS
4155 (<a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may
4156 produce undesirable interaction,<wbr/> so it is recommended not to enable
4157 both at the same time.<wbr/></p>
4162 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4163 <!-- end of entry -->
4166 <tr class="entry" id="controls_android.control.postRawSensitivityBoost">
4167 <td class="entry_name
4169 android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost
4171 <td class="entry_type">
4172 <span class="entry_type_name">int32</span>
4174 <span class="entry_type_visibility"> [public]</span>
4181 </td> <!-- entry_type -->
4183 <td class="entry_description">
4184 <p>The amount of additional sensitivity boost applied to output images
4185 after RAW sensor data is captured.<wbr/></p>
4188 <td class="entry_units">
4189 ISO arithmetic units,<wbr/> the same as android.<wbr/>sensor.<wbr/>sensitivity
4192 <td class="entry_range">
4193 <p><a href="#static_android.control.postRawSensitivityBoostRange">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost<wbr/>Range</a></p>
4196 <td class="entry_tags">
4200 <tr class="entries_header">
4201 <th class="th_details" colspan="5">Details</th>
4203 <tr class="entry_cont">
4204 <td class="entry_details" colspan="5">
4205 <p>Some camera devices support additional digital sensitivity boosting in the
4206 camera processing pipeline after sensor RAW image is captured.<wbr/>
4207 Such a boost will be applied to YUV/<wbr/>JPEG format output images but will not
4208 have effect on RAW output formats like RAW_<wbr/>SENSOR,<wbr/> RAW10,<wbr/> RAW12 or RAW_<wbr/>OPAQUE.<wbr/></p>
4209 <p>This key will be <code>null</code> for devices that do not support any RAW format
4210 outputs.<wbr/> For devices that do support RAW format outputs,<wbr/> this key will always
4211 present,<wbr/> and if a device does not support post RAW sensitivity boost,<wbr/> it will
4212 list <code>100</code> in this key.<wbr/></p>
4213 <p>If the camera device cannot apply the exact boost requested,<wbr/> it will reduce the
4214 boost to the nearest supported value.<wbr/>
4215 The final boost value used will be available in the output capture result.<wbr/></p>
4216 <p>For devices that support post RAW sensitivity boost,<wbr/> the YUV/<wbr/>JPEG output images
4217 of such device will have the total sensitivity of
4218 <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>
4219 The sensitivity of RAW format images will always be <code><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></code></p>
4220 <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
4221 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
4226 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4227 <!-- end of entry -->
4231 <!-- end of kind -->
4233 <tr><td colspan="6" class="kind">static</td></tr>
4235 <thead class="entries_header">
4237 <th class="th_name">Property Name</th>
4238 <th class="th_type">Type</th>
4239 <th class="th_description">Description</th>
4240 <th class="th_units">Units</th>
4241 <th class="th_range">Range</th>
4242 <th class="th_tags">Tags</th>
4257 <tr class="entry" id="static_android.control.aeAvailableAntibandingModes">
4258 <td class="entry_name
4260 android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes
4262 <td class="entry_type">
4263 <span class="entry_type_name">byte</span>
4264 <span class="entry_type_container">x</span>
4266 <span class="entry_type_array">
4269 <span class="entry_type_visibility"> [public as enumList]</span>
4272 <span class="entry_type_hwlevel">[legacy] </span>
4275 <div class="entry_type_notes">list of enums</div>
4278 </td> <!-- entry_type -->
4280 <td class="entry_description">
4281 <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
4282 supported by this camera device.<wbr/></p>
4285 <td class="entry_units">
4288 <td class="entry_range">
4289 <p>Any value listed in <a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a></p>
4292 <td class="entry_tags">
4293 <ul class="entry_tags">
4294 <li><a href="#tag_BC">BC</a></li>
4299 <tr class="entries_header">
4300 <th class="th_details" colspan="5">Details</th>
4302 <tr class="entry_cont">
4303 <td class="entry_details" colspan="5">
4304 <p>Not all of the auto-exposure anti-banding modes may be
4305 supported by a given camera device.<wbr/> This field lists the
4306 valid anti-banding modes that the application may request
4307 for this camera device with the
4308 <a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a> control.<wbr/></p>
4313 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4314 <!-- end of entry -->
4317 <tr class="entry" id="static_android.control.aeAvailableModes">
4318 <td class="entry_name
4320 android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Modes
4322 <td class="entry_type">
4323 <span class="entry_type_name">byte</span>
4324 <span class="entry_type_container">x</span>
4326 <span class="entry_type_array">
4329 <span class="entry_type_visibility"> [public as enumList]</span>
4332 <span class="entry_type_hwlevel">[legacy] </span>
4335 <div class="entry_type_notes">list of enums</div>
4338 </td> <!-- entry_type -->
4340 <td class="entry_description">
4341 <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
4345 <td class="entry_units">
4348 <td class="entry_range">
4349 <p>Any value listed in <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a></p>
4352 <td class="entry_tags">
4353 <ul class="entry_tags">
4354 <li><a href="#tag_BC">BC</a></li>
4359 <tr class="entries_header">
4360 <th class="th_details" colspan="5">Details</th>
4362 <tr class="entry_cont">
4363 <td class="entry_details" colspan="5">
4364 <p>Not all the auto-exposure modes may be supported by a
4365 given camera device,<wbr/> especially if no flash unit is
4366 available.<wbr/> This entry lists the valid modes for
4367 <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> for this camera device.<wbr/></p>
4368 <p>All camera devices support ON,<wbr/> and all camera devices with flash
4369 units support ON_<wbr/>AUTO_<wbr/>FLASH and ON_<wbr/>ALWAYS_<wbr/>FLASH.<wbr/></p>
4370 <p>FULL mode camera devices always support OFF mode,<wbr/>
4371 which enables application control of camera exposure time,<wbr/>
4372 sensitivity,<wbr/> and frame duration.<wbr/></p>
4373 <p>LEGACY mode camera devices never support OFF mode.<wbr/>
4374 LIMITED mode devices support OFF if they support the MANUAL_<wbr/>SENSOR
4375 capability.<wbr/></p>
4380 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4381 <!-- end of entry -->
4384 <tr class="entry" id="static_android.control.aeAvailableTargetFpsRanges">
4385 <td class="entry_name
4387 android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Target<wbr/>Fps<wbr/>Ranges
4389 <td class="entry_type">
4390 <span class="entry_type_name">int32</span>
4391 <span class="entry_type_container">x</span>
4393 <span class="entry_type_array">
4396 <span class="entry_type_visibility"> [public as rangeInt]</span>
4399 <span class="entry_type_hwlevel">[legacy] </span>
4402 <div class="entry_type_notes">list of pairs of frame rates</div>
4405 </td> <!-- entry_type -->
4407 <td class="entry_description">
4408 <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
4409 this camera device.<wbr/></p>
4412 <td class="entry_units">
4413 Frames per second (FPS)
4416 <td class="entry_range">
4419 <td class="entry_tags">
4420 <ul class="entry_tags">
4421 <li><a href="#tag_BC">BC</a></li>
4426 <tr class="entries_header">
4427 <th class="th_details" colspan="5">Details</th>
4429 <tr class="entry_cont">
4430 <td class="entry_details" colspan="5">
4431 <p>For devices at the LEGACY level or above:</p>
4434 <p>For constant-framerate recording,<wbr/> for each normal
4435 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a>,<wbr/> that is,<wbr/> a
4436 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> that has
4437 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#quality">quality</a> in
4438 the range [<a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_LOW">QUALITY_<wbr/>LOW</a>,<wbr/>
4439 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_2160P">QUALITY_<wbr/>2160P</a>],<wbr/> if the profile is
4440 supported by the device and has
4441 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate">videoFrameRate</a> <code>x</code>,<wbr/> this list will
4442 always include (<code>x</code>,<wbr/><code>x</code>).<wbr/></p>
4445 <p>Also,<wbr/> a camera device must either not support any
4446 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a>,<wbr/>
4447 or support at least one
4448 normal <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> that has
4449 <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate">videoFrameRate</a> <code>x</code> >= 24.<wbr/></p>
4452 <p>For devices at the LIMITED level or above:</p>
4454 <li>For YUV_<wbr/>420_<wbr/>888 burst capture use case,<wbr/> this list will always include (<code>min</code>,<wbr/> <code>max</code>)
4455 and (<code>max</code>,<wbr/> <code>max</code>) where <code>min</code> <= 15 and <code>max</code> = the maximum output frame rate of the
4456 maximum YUV_<wbr/>420_<wbr/>888 output size.<wbr/></li>
4462 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4463 <!-- end of entry -->
4466 <tr class="entry" id="static_android.control.aeCompensationRange">
4467 <td class="entry_name
4469 android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range
4471 <td class="entry_type">
4472 <span class="entry_type_name">int32</span>
4473 <span class="entry_type_container">x</span>
4475 <span class="entry_type_array">
4478 <span class="entry_type_visibility"> [public as rangeInt]</span>
4481 <span class="entry_type_hwlevel">[legacy] </span>
4486 </td> <!-- entry_type -->
4488 <td class="entry_description">
4489 <p>Maximum and minimum exposure compensation values for
4490 <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/>
4491 that are supported by this camera device.<wbr/></p>
4494 <td class="entry_units">
4497 <td class="entry_range">
4498 <p>Range [0,<wbr/>0] indicates that exposure compensation is not supported.<wbr/></p>
4499 <p>For LIMITED and FULL devices,<wbr/> range must follow below requirements if exposure
4500 compensation is supported (<code>range != [0,<wbr/> 0]</code>):</p>
4501 <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>
4502 <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>
4503 <p>LEGACY devices may support a smaller range than this.<wbr/></p>
4506 <td class="entry_tags">
4507 <ul class="entry_tags">
4508 <li><a href="#tag_BC">BC</a></li>
4515 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4516 <!-- end of entry -->
4519 <tr class="entry" id="static_android.control.aeCompensationStep">
4520 <td class="entry_name
4522 android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step
4524 <td class="entry_type">
4525 <span class="entry_type_name">rational</span>
4527 <span class="entry_type_visibility"> [public]</span>
4530 <span class="entry_type_hwlevel">[legacy] </span>
4535 </td> <!-- entry_type -->
4537 <td class="entry_description">
4538 <p>Smallest step by which the exposure compensation
4539 can be changed.<wbr/></p>
4542 <td class="entry_units">
4546 <td class="entry_range">
4549 <td class="entry_tags">
4550 <ul class="entry_tags">
4551 <li><a href="#tag_BC">BC</a></li>
4556 <tr class="entries_header">
4557 <th class="th_details" colspan="5">Details</th>
4559 <tr class="entry_cont">
4560 <td class="entry_details" colspan="5">
4561 <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
4562 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
4563 that the target EV offset for the auto-exposure routine is -1 EV.<wbr/></p>
4564 <p>One unit of EV compensation changes the brightness of the captured image by a factor
4565 of two.<wbr/> +1 EV doubles the image brightness,<wbr/> while -1 EV halves the image brightness.<wbr/></p>
4569 <tr class="entries_header">
4570 <th class="th_details" colspan="5">HAL Implementation Details</th>
4572 <tr class="entry_cont">
4573 <td class="entry_details" colspan="5">
4574 <p>This must be less than or equal to 1/<wbr/>2.<wbr/></p>
4578 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4579 <!-- end of entry -->
4582 <tr class="entry" id="static_android.control.afAvailableModes">
4583 <td class="entry_name
4585 android.<wbr/>control.<wbr/>af<wbr/>Available<wbr/>Modes
4587 <td class="entry_type">
4588 <span class="entry_type_name">byte</span>
4589 <span class="entry_type_container">x</span>
4591 <span class="entry_type_array">
4594 <span class="entry_type_visibility"> [public as enumList]</span>
4597 <span class="entry_type_hwlevel">[legacy] </span>
4600 <div class="entry_type_notes">List of enums</div>
4603 </td> <!-- entry_type -->
4605 <td class="entry_description">
4606 <p>List of auto-focus (AF) modes for <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> that are
4607 supported by this camera device.<wbr/></p>
4610 <td class="entry_units">
4613 <td class="entry_range">
4614 <p>Any value listed in <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a></p>
4617 <td class="entry_tags">
4618 <ul class="entry_tags">
4619 <li><a href="#tag_BC">BC</a></li>
4624 <tr class="entries_header">
4625 <th class="th_details" colspan="5">Details</th>
4627 <tr class="entry_cont">
4628 <td class="entry_details" colspan="5">
4629 <p>Not all the auto-focus modes may be supported by a
4630 given camera device.<wbr/> This entry lists the valid modes for
4631 <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> for this camera device.<wbr/></p>
4632 <p>All LIMITED and FULL mode camera devices will support OFF mode,<wbr/> and all
4633 camera devices with adjustable focuser units
4634 (<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>
4635 <p>LEGACY devices will support OFF mode only if they support
4636 focusing to infinity (by also setting <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> to
4637 <code>0.<wbr/>0f</code>).<wbr/></p>
4642 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4643 <!-- end of entry -->
4646 <tr class="entry" id="static_android.control.availableEffects">
4647 <td class="entry_name
4649 android.<wbr/>control.<wbr/>available<wbr/>Effects
4651 <td class="entry_type">
4652 <span class="entry_type_name">byte</span>
4653 <span class="entry_type_container">x</span>
4655 <span class="entry_type_array">
4658 <span class="entry_type_visibility"> [public as enumList]</span>
4661 <span class="entry_type_hwlevel">[legacy] </span>
4664 <div class="entry_type_notes">List of enums (android.<wbr/>control.<wbr/>effect<wbr/>Mode).<wbr/></div>
4667 </td> <!-- entry_type -->
4669 <td class="entry_description">
4670 <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
4674 <td class="entry_units">
4677 <td class="entry_range">
4678 <p>Any value listed in <a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></p>
4681 <td class="entry_tags">
4682 <ul class="entry_tags">
4683 <li><a href="#tag_BC">BC</a></li>
4688 <tr class="entries_header">
4689 <th class="th_details" colspan="5">Details</th>
4691 <tr class="entry_cont">
4692 <td class="entry_details" colspan="5">
4693 <p>This list contains the color effect modes that can be applied to
4694 images produced by the camera device.<wbr/>
4695 Implementations are not expected to be consistent across all devices.<wbr/>
4696 If no color effect modes are available for a device,<wbr/> this will only list
4698 <p>A color effect will only be applied if
4699 <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> != OFF.<wbr/> OFF is always included in this list.<wbr/></p>
4700 <p>This control has no effect on the operation of other control routines such
4701 as auto-exposure,<wbr/> white balance,<wbr/> or focus.<wbr/></p>
4706 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4707 <!-- end of entry -->
4710 <tr class="entry" id="static_android.control.availableSceneModes">
4711 <td class="entry_name
4713 android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes
4715 <td class="entry_type">
4716 <span class="entry_type_name">byte</span>
4717 <span class="entry_type_container">x</span>
4719 <span class="entry_type_array">
4722 <span class="entry_type_visibility"> [public as enumList]</span>
4725 <span class="entry_type_hwlevel">[legacy] </span>
4728 <div class="entry_type_notes">List of enums (android.<wbr/>control.<wbr/>scene<wbr/>Mode).<wbr/></div>
4731 </td> <!-- entry_type -->
4733 <td class="entry_description">
4734 <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
4738 <td class="entry_units">
4741 <td class="entry_range">
4742 <p>Any value listed in <a href="#controls_android.control.sceneMode">android.<wbr/>control.<wbr/>scene<wbr/>Mode</a></p>
4745 <td class="entry_tags">
4746 <ul class="entry_tags">
4747 <li><a href="#tag_BC">BC</a></li>
4752 <tr class="entries_header">
4753 <th class="th_details" colspan="5">Details</th>
4755 <tr class="entry_cont">
4756 <td class="entry_details" colspan="5">
4757 <p>This list contains scene modes that can be set for the camera device.<wbr/>
4758 Only scene modes that have been fully implemented for the
4759 camera device may be included here.<wbr/> Implementations are not expected
4760 to be consistent across all devices.<wbr/></p>
4761 <p>If no scene modes are supported by the camera device,<wbr/> this
4762 will be set to DISABLED.<wbr/> Otherwise DISABLED will not be listed.<wbr/></p>
4763 <p>FACE_<wbr/>PRIORITY is always listed if face detection is
4764 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> >
4765 0</code>).<wbr/></p>
4770 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4771 <!-- end of entry -->
4774 <tr class="entry" id="static_android.control.availableVideoStabilizationModes">
4775 <td class="entry_name
4777 android.<wbr/>control.<wbr/>available<wbr/>Video<wbr/>Stabilization<wbr/>Modes
4779 <td class="entry_type">
4780 <span class="entry_type_name">byte</span>
4781 <span class="entry_type_container">x</span>
4783 <span class="entry_type_array">
4786 <span class="entry_type_visibility"> [public as enumList]</span>
4789 <span class="entry_type_hwlevel">[legacy] </span>
4792 <div class="entry_type_notes">List of enums.<wbr/></div>
4795 </td> <!-- entry_type -->
4797 <td class="entry_description">
4798 <p>List of video stabilization modes for <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>
4799 that are supported by this camera device.<wbr/></p>
4802 <td class="entry_units">
4805 <td class="entry_range">
4806 <p>Any value listed in <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a></p>
4809 <td class="entry_tags">
4810 <ul class="entry_tags">
4811 <li><a href="#tag_BC">BC</a></li>
4816 <tr class="entries_header">
4817 <th class="th_details" colspan="5">Details</th>
4819 <tr class="entry_cont">
4820 <td class="entry_details" colspan="5">
4821 <p>OFF will always be listed.<wbr/></p>
4826 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4827 <!-- end of entry -->
4830 <tr class="entry" id="static_android.control.awbAvailableModes">
4831 <td class="entry_name
4833 android.<wbr/>control.<wbr/>awb<wbr/>Available<wbr/>Modes
4835 <td class="entry_type">
4836 <span class="entry_type_name">byte</span>
4837 <span class="entry_type_container">x</span>
4839 <span class="entry_type_array">
4842 <span class="entry_type_visibility"> [public as enumList]</span>
4845 <span class="entry_type_hwlevel">[legacy] </span>
4848 <div class="entry_type_notes">List of enums</div>
4851 </td> <!-- entry_type -->
4853 <td class="entry_description">
4854 <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
4855 camera device.<wbr/></p>
4858 <td class="entry_units">
4861 <td class="entry_range">
4862 <p>Any value listed in <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a></p>
4865 <td class="entry_tags">
4866 <ul class="entry_tags">
4867 <li><a href="#tag_BC">BC</a></li>
4872 <tr class="entries_header">
4873 <th class="th_details" colspan="5">Details</th>
4875 <tr class="entry_cont">
4876 <td class="entry_details" colspan="5">
4877 <p>Not all the auto-white-balance modes may be supported by a
4878 given camera device.<wbr/> This entry lists the valid modes for
4879 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> for this camera device.<wbr/></p>
4880 <p>All camera devices will support ON mode.<wbr/></p>
4881 <p>Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always support OFF
4882 mode,<wbr/> which enables application control of white balance,<wbr/> by using
4883 <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
4884 mode camera devices.<wbr/></p>
4889 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4890 <!-- end of entry -->
4893 <tr class="entry" id="static_android.control.maxRegions">
4894 <td class="entry_name
4896 android.<wbr/>control.<wbr/>max<wbr/>Regions
4898 <td class="entry_type">
4899 <span class="entry_type_name">int32</span>
4900 <span class="entry_type_container">x</span>
4902 <span class="entry_type_array">
4905 <span class="entry_type_visibility"> [ndk_public]</span>
4908 <span class="entry_type_hwlevel">[legacy] </span>
4913 </td> <!-- entry_type -->
4915 <td class="entry_description">
4916 <p>List of the maximum number of regions that can be used for metering in
4917 auto-exposure (AE),<wbr/> auto-white balance (AWB),<wbr/> and auto-focus (AF);
4918 this corresponds to the the maximum number of elements in
4919 <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/>
4920 and <a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a>.<wbr/></p>
4923 <td class="entry_units">
4926 <td class="entry_range">
4927 <p>Value must be >= 0 for each element.<wbr/> For full-capability devices
4928 this value must be >= 1 for AE and AF.<wbr/> The order of the elements is:
4929 <code>(AE,<wbr/> AWB,<wbr/> AF)</code>.<wbr/></p>
4932 <td class="entry_tags">
4933 <ul class="entry_tags">
4934 <li><a href="#tag_BC">BC</a></li>
4941 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
4942 <!-- end of entry -->
4945 <tr class="entry" id="static_android.control.maxRegionsAe">
4946 <td class="entry_name
4948 android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae
4950 <td class="entry_type">
4951 <span class="entry_type_name">int32</span>
4953 <span class="entry_type_visibility"> [java_public]</span>
4955 <span class="entry_type_synthetic">[synthetic] </span>
4957 <span class="entry_type_hwlevel">[legacy] </span>
4962 </td> <!-- entry_type -->
4964 <td class="entry_description">
4965 <p>The maximum number of metering regions that can be used by the auto-exposure (AE)
4969 <td class="entry_units">
4972 <td class="entry_range">
4973 <p>Value will be >= 0.<wbr/> For FULL-capability devices,<wbr/> this
4974 value will be >= 1.<wbr/></p>
4977 <td class="entry_tags">
4981 <tr class="entries_header">
4982 <th class="th_details" colspan="5">Details</th>
4984 <tr class="entry_cont">
4985 <td class="entry_details" colspan="5">
4986 <p>This corresponds to the the maximum allowed number of elements in
4987 <a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a>.<wbr/></p>
4991 <tr class="entries_header">
4992 <th class="th_details" colspan="5">HAL Implementation Details</th>
4994 <tr class="entry_cont">
4995 <td class="entry_details" colspan="5">
4996 <p>This entry is private to the framework.<wbr/> Fill in
4997 maxRegions to have this entry be automatically populated.<wbr/></p>
5001 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5002 <!-- end of entry -->
5005 <tr class="entry" id="static_android.control.maxRegionsAwb">
5006 <td class="entry_name
5008 android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb
5010 <td class="entry_type">
5011 <span class="entry_type_name">int32</span>
5013 <span class="entry_type_visibility"> [java_public]</span>
5015 <span class="entry_type_synthetic">[synthetic] </span>
5017 <span class="entry_type_hwlevel">[legacy] </span>
5022 </td> <!-- entry_type -->
5024 <td class="entry_description">
5025 <p>The maximum number of metering regions that can be used by the auto-white balance (AWB)
5029 <td class="entry_units">
5032 <td class="entry_range">
5033 <p>Value will be >= 0.<wbr/></p>
5036 <td class="entry_tags">
5040 <tr class="entries_header">
5041 <th class="th_details" colspan="5">Details</th>
5043 <tr class="entry_cont">
5044 <td class="entry_details" colspan="5">
5045 <p>This corresponds to the the maximum allowed number of elements in
5046 <a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a>.<wbr/></p>
5050 <tr class="entries_header">
5051 <th class="th_details" colspan="5">HAL Implementation Details</th>
5053 <tr class="entry_cont">
5054 <td class="entry_details" colspan="5">
5055 <p>This entry is private to the framework.<wbr/> Fill in
5056 maxRegions to have this entry be automatically populated.<wbr/></p>
5060 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5061 <!-- end of entry -->
5064 <tr class="entry" id="static_android.control.maxRegionsAf">
5065 <td class="entry_name
5067 android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af
5069 <td class="entry_type">
5070 <span class="entry_type_name">int32</span>
5072 <span class="entry_type_visibility"> [java_public]</span>
5074 <span class="entry_type_synthetic">[synthetic] </span>
5076 <span class="entry_type_hwlevel">[legacy] </span>
5081 </td> <!-- entry_type -->
5083 <td class="entry_description">
5084 <p>The maximum number of metering regions that can be used by the auto-focus (AF) routine.<wbr/></p>
5087 <td class="entry_units">
5090 <td class="entry_range">
5091 <p>Value will be >= 0.<wbr/> For FULL-capability devices,<wbr/> this
5092 value will be >= 1.<wbr/></p>
5095 <td class="entry_tags">
5099 <tr class="entries_header">
5100 <th class="th_details" colspan="5">Details</th>
5102 <tr class="entry_cont">
5103 <td class="entry_details" colspan="5">
5104 <p>This corresponds to the the maximum allowed number of elements in
5105 <a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a>.<wbr/></p>
5109 <tr class="entries_header">
5110 <th class="th_details" colspan="5">HAL Implementation Details</th>
5112 <tr class="entry_cont">
5113 <td class="entry_details" colspan="5">
5114 <p>This entry is private to the framework.<wbr/> Fill in
5115 maxRegions to have this entry be automatically populated.<wbr/></p>
5119 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5120 <!-- end of entry -->
5123 <tr class="entry" id="static_android.control.sceneModeOverrides">
5124 <td class="entry_name
5126 android.<wbr/>control.<wbr/>scene<wbr/>Mode<wbr/>Overrides
5128 <td class="entry_type">
5129 <span class="entry_type_name">byte</span>
5130 <span class="entry_type_container">x</span>
5132 <span class="entry_type_array">
5133 3 x length(availableSceneModes)
5135 <span class="entry_type_visibility"> [system]</span>
5138 <span class="entry_type_hwlevel">[limited] </span>
5143 </td> <!-- entry_type -->
5145 <td class="entry_description">
5146 <p>Ordered list of auto-exposure,<wbr/> auto-white balance,<wbr/> and auto-focus
5147 settings to use with each available scene mode.<wbr/></p>
5150 <td class="entry_units">
5153 <td class="entry_range">
5154 <p>For each available scene mode,<wbr/> the list must contain three
5155 entries containing the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
5156 <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
5157 by the camera device.<wbr/> The entry order is <code>(aeMode,<wbr/> awbMode,<wbr/> afMode)</code>
5158 where aeMode has the lowest index position.<wbr/></p>
5161 <td class="entry_tags">
5162 <ul class="entry_tags">
5163 <li><a href="#tag_BC">BC</a></li>
5168 <tr class="entries_header">
5169 <th class="th_details" colspan="5">Details</th>
5171 <tr class="entry_cont">
5172 <td class="entry_details" colspan="5">
5173 <p>When a scene mode is enabled,<wbr/> the camera device is expected
5174 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/>
5175 and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> with its preferred settings for
5176 that scene mode.<wbr/></p>
5177 <p>The order of this list matches that of availableSceneModes,<wbr/>
5178 with 3 entries for each mode.<wbr/> The overrides listed
5179 for FACE_<wbr/>PRIORITY and FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT (if supported) are ignored,<wbr/>
5180 since for that mode the application-set <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
5181 <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
5182 used instead,<wbr/> matching the behavior when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>
5183 is set to AUTO.<wbr/> It is recommended that the FACE_<wbr/>PRIORITY and
5184 FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT (if supported) overrides should be set to 0.<wbr/></p>
5185 <p>For example,<wbr/> if availableSceneModes contains
5186 <code>(FACE_<wbr/>PRIORITY,<wbr/> ACTION,<wbr/> NIGHT)</code>,<wbr/> then the camera framework
5187 expects sceneModeOverrides to have 9 entries formatted like:
5188 <code>(0,<wbr/> 0,<wbr/> 0,<wbr/> ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> AUTO,<wbr/> CONTINUOUS_<wbr/>PICTURE,<wbr/>
5189 ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> INCANDESCENT,<wbr/> AUTO)</code>.<wbr/></p>
5193 <tr class="entries_header">
5194 <th class="th_details" colspan="5">HAL Implementation Details</th>
5196 <tr class="entry_cont">
5197 <td class="entry_details" colspan="5">
5198 <p>To maintain backward compatibility,<wbr/> this list will be made available
5199 in the static metadata of the camera service.<wbr/> The camera service will
5200 use these values to set <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
5201 <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
5202 mode other than FACE_<wbr/>PRIORITY and FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT (if supported).<wbr/></p>
5206 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5207 <!-- end of entry -->
5210 <tr class="entry" id="static_android.control.availableHighSpeedVideoConfigurations">
5211 <td class="entry_name
5213 android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations
5215 <td class="entry_type">
5216 <span class="entry_type_name">int32</span>
5217 <span class="entry_type_container">x</span>
5219 <span class="entry_type_array">
5222 <span class="entry_type_visibility"> [hidden as highSpeedVideoConfiguration]</span>
5225 <span class="entry_type_hwlevel">[limited] </span>
5230 </td> <!-- entry_type -->
5232 <td class="entry_description">
5233 <p>List of available high speed video size,<wbr/> fps range and max batch size configurations
5234 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>
5237 <td class="entry_units">
5240 <td class="entry_range">
5241 <p>For each configuration,<wbr/> the fps_<wbr/>max >= 120fps.<wbr/></p>
5244 <td class="entry_tags">
5245 <ul class="entry_tags">
5246 <li><a href="#tag_V1">V1</a></li>
5251 <tr class="entries_header">
5252 <th class="th_details" colspan="5">Details</th>
5254 <tr class="entry_cont">
5255 <td class="entry_details" colspan="5">
5256 <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/>
5257 this metadata will list the supported high speed video size,<wbr/> fps range and max batch size
5258 configurations.<wbr/> All the sizes listed in this configuration will be a subset of the sizes
5259 reported by <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputSizes">StreamConfigurationMap#getOutputSizes</a>
5260 for processed non-stalling formats.<wbr/></p>
5261 <p>For the high speed video use case,<wbr/> the application must
5262 select the video size and fps range from this metadata to configure the recording and
5263 preview streams and setup the recording requests.<wbr/> For example,<wbr/> if the application intends
5264 to do high speed recording,<wbr/> it can select the maximum size reported by this metadata to
5265 configure output streams.<wbr/> Once the size is selected,<wbr/> application can filter this metadata
5266 by selected size and get the supported fps ranges,<wbr/> and use these fps ranges to setup the
5267 recording requests.<wbr/> Note that for the use case of multiple output streams,<wbr/> application
5268 must select one unique size from this metadata to use (e.<wbr/>g.,<wbr/> preview and recording streams
5269 must have the same size).<wbr/> Otherwise,<wbr/> the high speed capture session creation will fail.<wbr/></p>
5270 <p>The min and max fps will be multiple times of 30fps.<wbr/></p>
5271 <p>High speed video streaming extends significant performance pressue to camera hardware,<wbr/>
5272 to achieve efficient high speed streaming,<wbr/> the camera device may have to aggregate
5273 multiple frames together and send to camera device for processing where the request
5274 controls are same for all the frames in this batch.<wbr/> Max batch size indicates
5275 the max possible number of frames the camera device will group together for this high
5276 speed stream configuration.<wbr/> This max batch size will be used to generate a high speed
5277 recording request list by
5278 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>.<wbr/>
5279 The max batch size for each configuration will satisfy below conditions:</p>
5281 <li>Each max batch size will be a divisor of its corresponding fps_<wbr/>max /<wbr/> 30.<wbr/> For example,<wbr/>
5282 if max_<wbr/>fps is 300,<wbr/> max batch size will only be 1,<wbr/> 2,<wbr/> 5,<wbr/> or 10.<wbr/></li>
5283 <li>The camera device may choose smaller internal batch size for each configuration,<wbr/> but
5284 the actual batch size will be a divisor of max batch size.<wbr/> For example,<wbr/> if the max batch
5285 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>
5286 <li>The max batch size in each configuration entry must be no larger than 32.<wbr/></li>
5288 <p>The camera device doesn't have to support batch mode to achieve high speed video recording,<wbr/>
5289 in such case,<wbr/> batch_<wbr/>size_<wbr/>max will be reported as 1 in each configuration entry.<wbr/></p>
5290 <p>This fps ranges in this configuration list can only be used to create requests
5291 that are submitted to a high speed camera capture session created by
5292 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>.<wbr/>
5293 The fps ranges reported in this metadata must not be used to setup capture requests for
5294 normal capture session,<wbr/> or it will cause request error.<wbr/></p>
5298 <tr class="entries_header">
5299 <th class="th_details" colspan="5">HAL Implementation Details</th>
5301 <tr class="entry_cont">
5302 <td class="entry_details" colspan="5">
5303 <p>All the sizes listed in this configuration will be a subset of the sizes reported by
5304 <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> for processed non-stalling output formats.<wbr/>
5305 Note that for all high speed video configurations,<wbr/> HAL must be able to support a minimum
5306 of two streams,<wbr/> though the application might choose to configure just one stream.<wbr/></p>
5307 <p>The HAL may support multiple sensor modes for high speed outputs,<wbr/> for example,<wbr/> 120fps
5308 sensor mode and 120fps recording,<wbr/> 240fps sensor mode for 240fps recording.<wbr/> The application
5309 usually starts preview first,<wbr/> then starts recording.<wbr/> To avoid sensor mode switch caused
5310 stutter when starting recording as much as possible,<wbr/> the application may want to ensure
5311 the same sensor mode is used for preview and recording.<wbr/> Therefore,<wbr/> The HAL must advertise
5312 the variable fps range [30,<wbr/> fps_<wbr/>max] for each fixed fps range in this configuration list.<wbr/>
5313 For example,<wbr/> if the HAL advertises [120,<wbr/> 120] and [240,<wbr/> 240],<wbr/> the HAL must also advertise
5314 [30,<wbr/> 120] and [30,<wbr/> 240] for each configuration.<wbr/> In doing so,<wbr/> if the application intends to
5315 do 120fps recording,<wbr/> it can select [30,<wbr/> 120] to start preview,<wbr/> and [120,<wbr/> 120] to start
5316 recording.<wbr/> For these variable fps ranges,<wbr/> it's up to the HAL to decide the actual fps
5317 values that are suitable for smooth preview streaming.<wbr/> If the HAL sees different max_<wbr/>fps
5318 values that fall into different sensor modes in a sequence of requests,<wbr/> the HAL must
5319 switch the sensor mode as quick as possible to minimize the mode switch caused stutter.<wbr/></p>
5323 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5324 <!-- end of entry -->
5327 <tr class="entry" id="static_android.control.aeLockAvailable">
5328 <td class="entry_name
5330 android.<wbr/>control.<wbr/>ae<wbr/>Lock<wbr/>Available
5332 <td class="entry_type">
5333 <span class="entry_type_name entry_type_name_enum">byte</span>
5335 <span class="entry_type_visibility"> [public as boolean]</span>
5338 <span class="entry_type_hwlevel">[legacy] </span>
5342 <ul class="entry_type_enum">
5344 <span class="entry_type_enum_name">FALSE</span>
5347 <span class="entry_type_enum_name">TRUE</span>
5351 </td> <!-- entry_type -->
5353 <td class="entry_description">
5354 <p>Whether the camera device supports <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></p>
5357 <td class="entry_units">
5360 <td class="entry_range">
5363 <td class="entry_tags">
5364 <ul class="entry_tags">
5365 <li><a href="#tag_BC">BC</a></li>
5370 <tr class="entries_header">
5371 <th class="th_details" colspan="5">Details</th>
5373 <tr class="entry_cont">
5374 <td class="entry_details" colspan="5">
5375 <p>Devices with MANUAL_<wbr/>SENSOR capability or BURST_<wbr/>CAPTURE capability will always
5376 list <code>true</code>.<wbr/> This includes FULL devices.<wbr/></p>
5381 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5382 <!-- end of entry -->
5385 <tr class="entry" id="static_android.control.awbLockAvailable">
5386 <td class="entry_name
5388 android.<wbr/>control.<wbr/>awb<wbr/>Lock<wbr/>Available
5390 <td class="entry_type">
5391 <span class="entry_type_name entry_type_name_enum">byte</span>
5393 <span class="entry_type_visibility"> [public as boolean]</span>
5396 <span class="entry_type_hwlevel">[legacy] </span>
5400 <ul class="entry_type_enum">
5402 <span class="entry_type_enum_name">FALSE</span>
5405 <span class="entry_type_enum_name">TRUE</span>
5409 </td> <!-- entry_type -->
5411 <td class="entry_description">
5412 <p>Whether the camera device supports <a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></p>
5415 <td class="entry_units">
5418 <td class="entry_range">
5421 <td class="entry_tags">
5422 <ul class="entry_tags">
5423 <li><a href="#tag_BC">BC</a></li>
5428 <tr class="entries_header">
5429 <th class="th_details" colspan="5">Details</th>
5431 <tr class="entry_cont">
5432 <td class="entry_details" colspan="5">
5433 <p>Devices with MANUAL_<wbr/>POST_<wbr/>PROCESSING capability or BURST_<wbr/>CAPTURE capability will
5434 always list <code>true</code>.<wbr/> This includes FULL devices.<wbr/></p>
5439 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5440 <!-- end of entry -->
5443 <tr class="entry" id="static_android.control.availableModes">
5444 <td class="entry_name
5446 android.<wbr/>control.<wbr/>available<wbr/>Modes
5448 <td class="entry_type">
5449 <span class="entry_type_name">byte</span>
5450 <span class="entry_type_container">x</span>
5452 <span class="entry_type_array">
5455 <span class="entry_type_visibility"> [public as enumList]</span>
5458 <span class="entry_type_hwlevel">[legacy] </span>
5461 <div class="entry_type_notes">List of enums (android.<wbr/>control.<wbr/>mode).<wbr/></div>
5464 </td> <!-- entry_type -->
5466 <td class="entry_description">
5467 <p>List of control modes for <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> that are supported by this camera
5471 <td class="entry_units">
5474 <td class="entry_range">
5475 <p>Any value listed in <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a></p>
5478 <td class="entry_tags">
5482 <tr class="entries_header">
5483 <th class="th_details" colspan="5">Details</th>
5485 <tr class="entry_cont">
5486 <td class="entry_details" colspan="5">
5487 <p>This list contains control modes that can be set for the camera device.<wbr/>
5488 LEGACY mode devices will always support AUTO mode.<wbr/> LIMITED and FULL
5489 devices will always support OFF,<wbr/> AUTO modes.<wbr/></p>
5494 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5495 <!-- end of entry -->
5498 <tr class="entry" id="static_android.control.postRawSensitivityBoostRange">
5499 <td class="entry_name
5501 android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost<wbr/>Range
5503 <td class="entry_type">
5504 <span class="entry_type_name">int32</span>
5505 <span class="entry_type_container">x</span>
5507 <span class="entry_type_array">
5510 <span class="entry_type_visibility"> [public as rangeInt]</span>
5515 <div class="entry_type_notes">Range of supported post RAW sensitivitiy boosts</div>
5518 </td> <!-- entry_type -->
5520 <td class="entry_description">
5521 <p>Range of boosts for <a href="#controls_android.control.postRawSensitivityBoost">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost</a> supported
5522 by this camera device.<wbr/></p>
5525 <td class="entry_units">
5526 ISO arithmetic units,<wbr/> the same as android.<wbr/>sensor.<wbr/>sensitivity
5529 <td class="entry_range">
5532 <td class="entry_tags">
5536 <tr class="entries_header">
5537 <th class="th_details" colspan="5">Details</th>
5539 <tr class="entry_cont">
5540 <td class="entry_details" colspan="5">
5541 <p>Devices support post RAW sensitivity boost will advertise
5542 <a href="#controls_android.control.postRawSensitivityBoost">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost</a> key for controling
5543 post RAW sensitivity boost.<wbr/></p>
5544 <p>This key will be <code>null</code> for devices that do not support any RAW format
5545 outputs.<wbr/> For devices that do support RAW format outputs,<wbr/> this key will always
5546 present,<wbr/> and if a device does not support post RAW sensitivity boost,<wbr/> it will
5547 list <code>(100,<wbr/> 100)</code> in this key.<wbr/></p>
5551 <tr class="entries_header">
5552 <th class="th_details" colspan="5">HAL Implementation Details</th>
5554 <tr class="entry_cont">
5555 <td class="entry_details" colspan="5">
5556 <p>This key is added in HAL3.<wbr/>4.<wbr/> For HAL3.<wbr/>3 or earlier devices,<wbr/> camera framework will
5557 generate this key as <code>(100,<wbr/> 100)</code> if device supports any of RAW output formats.<wbr/>
5558 All HAL3.<wbr/>4 and above devices should list this key if device supports any of RAW
5559 output formats.<wbr/></p>
5563 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5564 <!-- end of entry -->
5568 <!-- end of kind -->
5570 <tr><td colspan="6" class="kind">dynamic</td></tr>
5572 <thead class="entries_header">
5574 <th class="th_name">Property Name</th>
5575 <th class="th_type">Type</th>
5576 <th class="th_description">Description</th>
5577 <th class="th_units">Units</th>
5578 <th class="th_range">Range</th>
5579 <th class="th_tags">Tags</th>
5594 <tr class="entry" id="dynamic_android.control.aePrecaptureId">
5595 <td class="entry_name
5596 entry_name_deprecated
5598 android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Id
5600 <td class="entry_type">
5601 <span class="entry_type_name">int32</span>
5603 <span class="entry_type_visibility"> [system]</span>
5607 <span class="entry_type_deprecated">[deprecated] </span>
5611 </td> <!-- entry_type -->
5613 <td class="entry_description">
5614 <p>The ID sent with the latest
5615 CAMERA2_<wbr/>TRIGGER_<wbr/>PRECAPTURE_<wbr/>METERING call</p>
5618 <td class="entry_units">
5621 <td class="entry_range">
5622 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
5625 <td class="entry_tags">
5629 <tr class="entries_header">
5630 <th class="th_details" colspan="5">Details</th>
5632 <tr class="entry_cont">
5633 <td class="entry_details" colspan="5">
5635 CAMERA2_<wbr/>TRIGGER_<wbr/>PRECAPTURE_<wbr/>METERING trigger received yet
5636 by HAL.<wbr/> Always updated even if AE algorithm ignores the
5642 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5643 <!-- end of entry -->
5646 <tr class="entry" id="dynamic_android.control.aeAntibandingMode">
5647 <td class="entry_name
5649 android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode
5651 <td class="entry_type">
5652 <span class="entry_type_name entry_type_name_enum">byte</span>
5654 <span class="entry_type_visibility"> [public]</span>
5657 <span class="entry_type_hwlevel">[legacy] </span>
5661 <ul class="entry_type_enum">
5663 <span class="entry_type_enum_name">OFF</span>
5664 <span class="entry_type_enum_notes"><p>The camera device will not adjust exposure duration to
5665 avoid banding problems.<wbr/></p></span>
5668 <span class="entry_type_enum_name">50HZ</span>
5669 <span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
5670 avoid banding problems with 50Hz illumination sources.<wbr/></p></span>
5673 <span class="entry_type_enum_name">60HZ</span>
5674 <span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
5675 avoid banding problems with 60Hz illumination
5676 sources.<wbr/></p></span>
5679 <span class="entry_type_enum_name">AUTO</span>
5680 <span class="entry_type_enum_notes"><p>The camera device will automatically adapt its
5681 antibanding routine to the current illumination
5682 condition.<wbr/> This is the default mode if AUTO is
5683 available on given camera device.<wbr/></p></span>
5687 </td> <!-- entry_type -->
5689 <td class="entry_description">
5690 <p>The desired setting for the camera device's auto-exposure
5691 algorithm's antibanding compensation.<wbr/></p>
5694 <td class="entry_units">
5697 <td class="entry_range">
5698 <p><a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a></p>
5701 <td class="entry_tags">
5702 <ul class="entry_tags">
5703 <li><a href="#tag_BC">BC</a></li>
5708 <tr class="entries_header">
5709 <th class="th_details" colspan="5">Details</th>
5711 <tr class="entry_cont">
5712 <td class="entry_details" colspan="5">
5713 <p>Some kinds of lighting fixtures,<wbr/> such as some fluorescent
5714 lights,<wbr/> flicker at the rate of the power supply frequency
5715 (60Hz or 50Hz,<wbr/> depending on country).<wbr/> While this is
5716 typically not noticeable to a person,<wbr/> it can be visible to
5717 a camera device.<wbr/> If a camera sets its exposure time to the
5718 wrong value,<wbr/> the flicker may become visible in the
5719 viewfinder as flicker or in a final captured image,<wbr/> as a
5720 set of variable-brightness bands across the image.<wbr/></p>
5721 <p>Therefore,<wbr/> the auto-exposure routines of camera devices
5722 include antibanding routines that ensure that the chosen
5723 exposure value will not cause such banding.<wbr/> The choice of
5724 exposure time depends on the rate of flicker,<wbr/> which the
5725 camera device can detect automatically,<wbr/> or the expected
5726 rate can be selected by the application using this
5728 <p>A given camera device may not support all of the possible
5729 options for the antibanding mode.<wbr/> The
5730 <a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a> key contains
5731 the available modes for a given camera device.<wbr/></p>
5732 <p>AUTO mode is the default if it is available on given
5733 camera device.<wbr/> When AUTO mode is not available,<wbr/> the
5734 default will be either 50HZ or 60HZ,<wbr/> and both 50HZ
5735 and 60HZ will be available.<wbr/></p>
5736 <p>If manual exposure control is enabled (by setting
5737 <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/>
5738 then this setting has no effect,<wbr/> and the application must
5739 ensure it selects exposure times that do not cause banding
5740 issues.<wbr/> The <a href="#dynamic_android.statistics.sceneFlicker">android.<wbr/>statistics.<wbr/>scene<wbr/>Flicker</a> key can assist
5741 the application in this.<wbr/></p>
5745 <tr class="entries_header">
5746 <th class="th_details" colspan="5">HAL Implementation Details</th>
5748 <tr class="entry_cont">
5749 <td class="entry_details" colspan="5">
5750 <p>For all capture request templates,<wbr/> this field must be set
5751 to AUTO if AUTO mode is available.<wbr/> If AUTO is not available,<wbr/>
5752 the default must be either 50HZ or 60HZ,<wbr/> and both 50HZ and
5753 60HZ must be available.<wbr/></p>
5754 <p>If manual exposure control is enabled (by setting
5755 <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/>
5756 then the exposure values provided by the application must not be
5757 adjusted for antibanding.<wbr/></p>
5761 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5762 <!-- end of entry -->
5765 <tr class="entry" id="dynamic_android.control.aeExposureCompensation">
5766 <td class="entry_name
5768 android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation
5770 <td class="entry_type">
5771 <span class="entry_type_name">int32</span>
5773 <span class="entry_type_visibility"> [public]</span>
5776 <span class="entry_type_hwlevel">[legacy] </span>
5781 </td> <!-- entry_type -->
5783 <td class="entry_description">
5784 <p>Adjustment to auto-exposure (AE) target image
5785 brightness.<wbr/></p>
5788 <td class="entry_units">
5792 <td class="entry_range">
5793 <p><a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a></p>
5796 <td class="entry_tags">
5797 <ul class="entry_tags">
5798 <li><a href="#tag_BC">BC</a></li>
5803 <tr class="entries_header">
5804 <th class="th_details" colspan="5">Details</th>
5806 <tr class="entry_cont">
5807 <td class="entry_details" colspan="5">
5808 <p>The adjustment is measured as a count of steps,<wbr/> with the
5809 step size defined by <a href="#static_android.control.aeCompensationStep">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step</a> and the
5810 allowed range by <a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a>.<wbr/></p>
5811 <p>For example,<wbr/> if the exposure value (EV) step is 0.<wbr/>333,<wbr/> '6'
5812 will mean an exposure compensation of +2 EV; -3 will mean an
5813 exposure compensation of -1 EV.<wbr/> One EV represents a doubling
5814 of image brightness.<wbr/> Note that this control will only be
5815 effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>!=</code> OFF.<wbr/> This control
5816 will take effect even when <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> <code>== true</code>.<wbr/></p>
5817 <p>In the event of exposure compensation value being changed,<wbr/> camera device
5818 may take several frames to reach the newly requested exposure target.<wbr/>
5819 During that time,<wbr/> <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> field will be in the SEARCHING
5820 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
5821 change from SEARCHING to either CONVERGED,<wbr/> LOCKED (if AE lock is enabled),<wbr/> or
5822 FLASH_<wbr/>REQUIRED (if the scene is too dark for still capture).<wbr/></p>
5827 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5828 <!-- end of entry -->
5831 <tr class="entry" id="dynamic_android.control.aeLock">
5832 <td class="entry_name
5834 android.<wbr/>control.<wbr/>ae<wbr/>Lock
5836 <td class="entry_type">
5837 <span class="entry_type_name entry_type_name_enum">byte</span>
5839 <span class="entry_type_visibility"> [public as boolean]</span>
5842 <span class="entry_type_hwlevel">[legacy] </span>
5846 <ul class="entry_type_enum">
5848 <span class="entry_type_enum_name">OFF</span>
5849 <span class="entry_type_enum_notes"><p>Auto-exposure lock is disabled; the AE algorithm
5850 is free to update its parameters.<wbr/></p></span>
5853 <span class="entry_type_enum_name">ON</span>
5854 <span class="entry_type_enum_notes"><p>Auto-exposure lock is enabled; the AE algorithm
5855 must not update the exposure and sensitivity parameters
5856 while the lock is active.<wbr/></p>
5857 <p><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a> setting changes
5858 will still take effect while auto-exposure is locked.<wbr/></p>
5859 <p>Some rare LEGACY devices may not support
5860 this,<wbr/> in which case the value will always be overridden to OFF.<wbr/></p></span>
5864 </td> <!-- entry_type -->
5866 <td class="entry_description">
5867 <p>Whether auto-exposure (AE) is currently locked to its latest
5868 calculated values.<wbr/></p>
5871 <td class="entry_units">
5874 <td class="entry_range">
5877 <td class="entry_tags">
5878 <ul class="entry_tags">
5879 <li><a href="#tag_BC">BC</a></li>
5884 <tr class="entries_header">
5885 <th class="th_details" colspan="5">Details</th>
5887 <tr class="entry_cont">
5888 <td class="entry_details" colspan="5">
5889 <p>When set to <code>true</code> (ON),<wbr/> the AE algorithm is locked to its latest parameters,<wbr/>
5890 and will not change exposure settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
5891 <p>Note that even when AE is locked,<wbr/> the flash may be fired if
5892 the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is ON_<wbr/>AUTO_<wbr/>FLASH /<wbr/>
5893 ON_<wbr/>ALWAYS_<wbr/>FLASH /<wbr/> ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE.<wbr/></p>
5894 <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
5895 is ON,<wbr/> the camera device will still adjust its exposure value.<wbr/></p>
5896 <p>If AE precapture is triggered (see <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>)
5897 when AE is already locked,<wbr/> the camera device will not change the exposure time
5898 (<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>)
5899 parameters.<wbr/> The flash may be fired if the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>
5900 is ON_<wbr/>AUTO_<wbr/>FLASH/<wbr/>ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE and the scene is too dark.<wbr/> If the
5901 <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/>
5902 Similarly,<wbr/> AE precapture trigger CANCEL has no effect when AE is already locked.<wbr/></p>
5903 <p>When an AE precapture sequence is triggered,<wbr/> AE unlock will not be able to unlock
5904 the AE if AE is locked by the camera device internally during precapture metering
5905 sequence In other words,<wbr/> submitting requests with AE unlock has no effect for an
5906 ongoing precapture metering sequence.<wbr/> Otherwise,<wbr/> the precapture metering sequence
5907 will never succeed in a sequence of preview requests where AE lock is always set
5908 to <code>false</code>.<wbr/></p>
5909 <p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
5910 get locked do not necessarily correspond to the settings that were present in the
5911 latest capture result received from the camera device,<wbr/> since additional captures
5912 and AE updates may have occurred even before the result was sent out.<wbr/> If an
5913 application is switching between automatic and manual control and wishes to eliminate
5914 any flicker during the switch,<wbr/> the following procedure is recommended:</p>
5916 <li>Starting in auto-AE mode:</li>
5918 <li>Wait for the first result to be output that has the AE locked</li>
5919 <li>Copy exposure settings from that result into a request,<wbr/> set the request to manual AE</li>
5920 <li>Submit the capture request,<wbr/> proceed to run manual AE as desired.<wbr/></li>
5922 <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>
5927 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
5928 <!-- end of entry -->
5931 <tr class="entry" id="dynamic_android.control.aeMode">
5932 <td class="entry_name
5934 android.<wbr/>control.<wbr/>ae<wbr/>Mode
5936 <td class="entry_type">
5937 <span class="entry_type_name entry_type_name_enum">byte</span>
5939 <span class="entry_type_visibility"> [public]</span>
5942 <span class="entry_type_hwlevel">[legacy] </span>
5946 <ul class="entry_type_enum">
5948 <span class="entry_type_enum_name">OFF</span>
5949 <span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is disabled.<wbr/></p>
5950 <p>The application-selected <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
5951 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> and
5952 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are used by the camera
5953 device,<wbr/> along with android.<wbr/>flash.<wbr/>* fields,<wbr/> if there's
5954 a flash unit for this camera device.<wbr/></p>
5955 <p>Note that auto-white balance (AWB) and auto-focus (AF)
5956 behavior is device dependent when AE is in OFF mode.<wbr/>
5957 To have consistent behavior across different devices,<wbr/>
5958 it is recommended to either set AWB and AF to OFF mode
5959 or lock AWB and AF before setting AE to OFF.<wbr/>
5960 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/>
5961 <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>
5962 for more details.<wbr/></p>
5963 <p>LEGACY devices do not support the OFF mode and will
5964 override attempts to use this value to ON.<wbr/></p></span>
5967 <span class="entry_type_enum_name">ON</span>
5968 <span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is active,<wbr/>
5969 with no flash control.<wbr/></p>
5970 <p>The application's values for
5971 <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
5972 <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>,<wbr/> and
5973 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are ignored.<wbr/> The
5974 application has control over the various
5975 android.<wbr/>flash.<wbr/>* fields.<wbr/></p></span>
5978 <span class="entry_type_enum_name">ON_AUTO_FLASH</span>
5979 <span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
5980 the camera's flash unit,<wbr/> firing it in low-light
5981 conditions.<wbr/></p>
5982 <p>The flash may be fired during a precapture sequence
5983 (triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
5984 may be fired for captures for which the
5985 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
5986 STILL_<wbr/>CAPTURE</p></span>
5989 <span class="entry_type_enum_name">ON_ALWAYS_FLASH</span>
5990 <span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
5991 the camera's flash unit,<wbr/> always firing it for still
5993 <p>The flash may be fired during a precapture sequence
5994 (triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
5995 will always be fired for captures for which the
5996 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
5997 STILL_<wbr/>CAPTURE</p></span>
6000 <span class="entry_type_enum_name">ON_AUTO_FLASH_REDEYE</span>
6001 <span class="entry_type_enum_notes"><p>Like ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> but with automatic red eye
6002 reduction.<wbr/></p>
6003 <p>If deemed necessary by the camera device,<wbr/> a red eye
6004 reduction flash will fire during the precapture
6005 sequence.<wbr/></p></span>
6009 </td> <!-- entry_type -->
6011 <td class="entry_description">
6012 <p>The desired mode for the camera device's
6013 auto-exposure routine.<wbr/></p>
6016 <td class="entry_units">
6019 <td class="entry_range">
6020 <p><a href="#static_android.control.aeAvailableModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Modes</a></p>
6023 <td class="entry_tags">
6024 <ul class="entry_tags">
6025 <li><a href="#tag_BC">BC</a></li>
6030 <tr class="entries_header">
6031 <th class="th_details" colspan="5">Details</th>
6033 <tr class="entry_cont">
6034 <td class="entry_details" colspan="5">
6035 <p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is
6037 <p>When set to any of the ON modes,<wbr/> the camera device's
6038 auto-exposure routine is enabled,<wbr/> overriding the
6039 application's selected exposure time,<wbr/> sensor sensitivity,<wbr/>
6040 and frame duration (<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>,<wbr/> and
6042 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>).<wbr/> If one of the FLASH modes
6043 is selected,<wbr/> the camera device's flash unit controls are
6044 also overridden.<wbr/></p>
6045 <p>The FLASH modes are only available if the camera device
6046 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>
6047 <p>If flash TORCH mode is desired,<wbr/> this field must be set to
6048 ON or OFF,<wbr/> and <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> set to TORCH.<wbr/></p>
6049 <p>When set to any of the ON modes,<wbr/> the values chosen by the
6050 camera device auto-exposure routine for the overridden
6051 fields for a given capture will be available in its
6052 CaptureResult.<wbr/></p>
6057 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6058 <!-- end of entry -->
6061 <tr class="entry" id="dynamic_android.control.aeRegions">
6062 <td class="entry_name
6064 android.<wbr/>control.<wbr/>ae<wbr/>Regions
6066 <td class="entry_type">
6067 <span class="entry_type_name">int32</span>
6068 <span class="entry_type_container">x</span>
6070 <span class="entry_type_array">
6073 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
6080 </td> <!-- entry_type -->
6082 <td class="entry_description">
6083 <p>List of metering areas to use for auto-exposure adjustment.<wbr/></p>
6086 <td class="entry_units">
6087 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
6090 <td class="entry_range">
6091 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
6092 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
6095 <td class="entry_tags">
6096 <ul class="entry_tags">
6097 <li><a href="#tag_BC">BC</a></li>
6102 <tr class="entries_header">
6103 <th class="th_details" colspan="5">Details</th>
6105 <tr class="entry_cont">
6106 <td class="entry_details" colspan="5">
6107 <p>Not available if <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a> is 0.<wbr/>
6108 Otherwise will always be present.<wbr/></p>
6109 <p>The maximum number of regions supported by the device is determined by the value
6110 of <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a>.<wbr/></p>
6111 <p>The coordinate system is based on the active pixel array,<wbr/>
6112 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
6113 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
6114 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
6115 bottom-right pixel in the active pixel array.<wbr/></p>
6116 <p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
6117 for every pixel in the area.<wbr/> This means that a large metering area
6118 with the same weight as a smaller area will have more effect in
6119 the metering result.<wbr/> Metering areas can partially overlap and the
6120 camera device will add the weights in the overlap region.<wbr/></p>
6121 <p>The weights are relative to weights of other exposure metering regions,<wbr/> so if only one
6122 region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0
6123 weight is ignored.<wbr/></p>
6124 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
6125 camera device.<wbr/></p>
6126 <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
6127 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
6128 region and output only the intersection rectangle as the metering region in the result
6129 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
6130 not reported in the result metadata.<wbr/></p>
6134 <tr class="entries_header">
6135 <th class="th_details" colspan="5">HAL Implementation Details</th>
6137 <tr class="entry_cont">
6138 <td class="entry_details" colspan="5">
6139 <p>The HAL level representation of MeteringRectangle[] is a
6140 int[5 * area_<wbr/>count].<wbr/>
6141 Every five elements represent a metering region of
6142 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
6143 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
6144 exclusive on xmax and ymax.<wbr/></p>
6148 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6149 <!-- end of entry -->
6152 <tr class="entry" id="dynamic_android.control.aeTargetFpsRange">
6153 <td class="entry_name
6155 android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range
6157 <td class="entry_type">
6158 <span class="entry_type_name">int32</span>
6159 <span class="entry_type_container">x</span>
6161 <span class="entry_type_array">
6164 <span class="entry_type_visibility"> [public as rangeInt]</span>
6167 <span class="entry_type_hwlevel">[legacy] </span>
6172 </td> <!-- entry_type -->
6174 <td class="entry_description">
6175 <p>Range over which the auto-exposure routine can
6176 adjust the capture frame rate to maintain good
6180 <td class="entry_units">
6181 Frames per second (FPS)
6184 <td class="entry_range">
6185 <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>
6188 <td class="entry_tags">
6189 <ul class="entry_tags">
6190 <li><a href="#tag_BC">BC</a></li>
6195 <tr class="entries_header">
6196 <th class="th_details" colspan="5">Details</th>
6198 <tr class="entry_cont">
6199 <td class="entry_details" colspan="5">
6200 <p>Only constrains auto-exposure (AE) algorithm,<wbr/> not
6201 manual control of <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a> and
6202 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>.<wbr/></p>
6207 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6208 <!-- end of entry -->
6211 <tr class="entry" id="dynamic_android.control.aePrecaptureTrigger">
6212 <td class="entry_name
6214 android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger
6216 <td class="entry_type">
6217 <span class="entry_type_name entry_type_name_enum">byte</span>
6219 <span class="entry_type_visibility"> [public]</span>
6222 <span class="entry_type_hwlevel">[limited] </span>
6226 <ul class="entry_type_enum">
6228 <span class="entry_type_enum_name">IDLE</span>
6229 <span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
6232 <span class="entry_type_enum_name">START</span>
6233 <span class="entry_type_enum_notes"><p>The precapture metering sequence will be started
6234 by the camera device.<wbr/></p>
6235 <p>The exact effect of the precapture trigger depends on
6236 the current AE mode and state.<wbr/></p></span>
6239 <span class="entry_type_enum_name">CANCEL</span>
6240 <span class="entry_type_enum_notes"><p>The camera device will cancel any currently active or completed
6241 precapture metering sequence,<wbr/> the auto-exposure routine will return to its
6242 initial state.<wbr/></p></span>
6246 </td> <!-- entry_type -->
6248 <td class="entry_description">
6249 <p>Whether the camera device will trigger a precapture
6250 metering sequence when it processes this request.<wbr/></p>
6253 <td class="entry_units">
6256 <td class="entry_range">
6259 <td class="entry_tags">
6260 <ul class="entry_tags">
6261 <li><a href="#tag_BC">BC</a></li>
6266 <tr class="entries_header">
6267 <th class="th_details" colspan="5">Details</th>
6269 <tr class="entry_cont">
6270 <td class="entry_details" colspan="5">
6271 <p>This entry is normally set to IDLE,<wbr/> or is not
6272 included at all in the request settings.<wbr/> When included and
6273 set to START,<wbr/> the camera device will trigger the auto-exposure (AE)
6274 precapture metering sequence.<wbr/></p>
6275 <p>When set to CANCEL,<wbr/> the camera device will cancel any active
6276 precapture metering trigger,<wbr/> and return to its initial AE state.<wbr/>
6277 If a precapture metering sequence is already completed,<wbr/> and the camera
6278 device has implicitly locked the AE for subsequent still capture,<wbr/> the
6279 CANCEL trigger will unlock the AE and return to its initial AE state.<wbr/></p>
6280 <p>The precapture sequence should be triggered before starting a
6281 high-quality still capture for final metering decisions to
6282 be made,<wbr/> and for firing pre-capture flash pulses to estimate
6283 scene brightness and required final capture flash power,<wbr/> when
6284 the flash is enabled.<wbr/></p>
6285 <p>Normally,<wbr/> this entry should be set to START for only a
6286 single request,<wbr/> and the application should wait until the
6287 sequence completes before starting a new one.<wbr/></p>
6288 <p>When a precapture metering sequence is finished,<wbr/> the camera device
6289 may lock the auto-exposure routine internally to be able to accurately expose the
6290 subsequent still capture image (<code><a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE</code>).<wbr/>
6291 For this case,<wbr/> the AE may not resume normal scan if no subsequent still capture is
6292 submitted.<wbr/> To ensure that the AE routine restarts normal scan,<wbr/> the application should
6293 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
6294 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
6295 still capture request after the precapture sequence completes.<wbr/> Alternatively,<wbr/> for
6296 API level 23 or newer devices,<wbr/> the CANCEL can be used to unlock the camera device
6297 internally locked AE if the application doesn't submit a still capture request after
6298 the AE precapture trigger.<wbr/> Note that,<wbr/> the CANCEL was added in API level 23,<wbr/> and must not
6299 be used in devices that have earlier API levels.<wbr/></p>
6300 <p>The exact effect of auto-exposure (AE) precapture trigger
6301 depends on the current AE mode and state; see
6302 <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> for AE precapture state transition
6304 <p>On LEGACY-level devices,<wbr/> the precapture trigger is not supported;
6305 capturing a high-resolution JPEG image will automatically trigger a
6306 precapture sequence before the high-resolution capture,<wbr/> including
6307 potentially firing a pre-capture flash.<wbr/></p>
6308 <p>Using the precapture trigger and the auto-focus trigger <a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>
6309 simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
6310 the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
6311 focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
6312 trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
6313 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
6315 <p>If both the precapture and the auto-focus trigger are activated on the same request,<wbr/> then
6316 the camera device will complete them in the optimal order for that device.<wbr/></p>
6320 <tr class="entries_header">
6321 <th class="th_details" colspan="5">HAL Implementation Details</th>
6323 <tr class="entry_cont">
6324 <td class="entry_details" colspan="5">
6325 <p>The HAL must support triggering the AE precapture trigger while an AF trigger is active
6326 (and vice versa),<wbr/> or at the same time as the AF trigger.<wbr/> It is acceptable for the HAL to
6327 treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
6328 AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
6329 to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
6333 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6334 <!-- end of entry -->
6337 <tr class="entry" id="dynamic_android.control.aeState">
6338 <td class="entry_name
6340 android.<wbr/>control.<wbr/>ae<wbr/>State
6342 <td class="entry_type">
6343 <span class="entry_type_name entry_type_name_enum">byte</span>
6345 <span class="entry_type_visibility"> [public]</span>
6348 <span class="entry_type_hwlevel">[limited] </span>
6352 <ul class="entry_type_enum">
6354 <span class="entry_type_enum_name">INACTIVE</span>
6355 <span class="entry_type_enum_notes"><p>AE is off or recently reset.<wbr/></p>
6356 <p>When a camera device is opened,<wbr/> it starts in
6357 this state.<wbr/> This is a transient state,<wbr/> the camera device may skip reporting
6358 this state in capture result.<wbr/></p></span>
6361 <span class="entry_type_enum_name">SEARCHING</span>
6362 <span class="entry_type_enum_notes"><p>AE doesn't yet have a good set of control values
6363 for the current scene.<wbr/></p>
6364 <p>This is a transient state,<wbr/> the camera device may skip
6365 reporting this state in capture result.<wbr/></p></span>
6368 <span class="entry_type_enum_name">CONVERGED</span>
6369 <span class="entry_type_enum_notes"><p>AE has a good set of control values for the
6370 current scene.<wbr/></p></span>
6373 <span class="entry_type_enum_name">LOCKED</span>
6374 <span class="entry_type_enum_notes"><p>AE has been locked.<wbr/></p></span>
6377 <span class="entry_type_enum_name">FLASH_REQUIRED</span>
6378 <span class="entry_type_enum_notes"><p>AE has a good set of control values,<wbr/> but flash
6379 needs to be fired for good quality still
6380 capture.<wbr/></p></span>
6383 <span class="entry_type_enum_name">PRECAPTURE</span>
6384 <span class="entry_type_enum_notes"><p>AE has been asked to do a precapture sequence
6385 and is currently executing it.<wbr/></p>
6386 <p>Precapture can be triggered through setting
6387 <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> to START.<wbr/> Currently
6388 active and completed (if it causes camera device internal AE lock) precapture
6389 metering sequence can be canceled through setting
6390 <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> to CANCEL.<wbr/></p>
6391 <p>Once PRECAPTURE completes,<wbr/> AE will transition to CONVERGED
6392 or FLASH_<wbr/>REQUIRED as appropriate.<wbr/> This is a transient
6393 state,<wbr/> the camera device may skip reporting this state in
6394 capture result.<wbr/></p></span>
6398 </td> <!-- entry_type -->
6400 <td class="entry_description">
6401 <p>Current state of the auto-exposure (AE) algorithm.<wbr/></p>
6404 <td class="entry_units">
6407 <td class="entry_range">
6410 <td class="entry_tags">
6414 <tr class="entries_header">
6415 <th class="th_details" colspan="5">Details</th>
6417 <tr class="entry_cont">
6418 <td class="entry_details" colspan="5">
6419 <p>Switching between or enabling AE modes (<a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>) always
6420 resets the AE state to INACTIVE.<wbr/> Similarly,<wbr/> switching between <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>,<wbr/>
6421 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
6422 the algorithm states to INACTIVE.<wbr/></p>
6423 <p>The camera device can do several state transitions between two results,<wbr/> if it is
6424 allowed by the state transition table.<wbr/> For example: INACTIVE may never actually be
6425 seen in a result.<wbr/></p>
6426 <p>The state in the result is the state for this image (in sync with this image): if
6427 AE state becomes CONVERGED,<wbr/> then the image data associated with this result should
6428 be good to use.<wbr/></p>
6429 <p>Below are state transition tables for different AE modes.<wbr/></p>
6433 <th align="center">State</th>
6434 <th align="center">Transition Cause</th>
6435 <th align="center">New State</th>
6436 <th align="center">Notes</th>
6441 <td align="center">INACTIVE</td>
6442 <td align="center"></td>
6443 <td align="center">INACTIVE</td>
6444 <td align="center">Camera device auto exposure algorithm is disabled</td>
6448 <p>When <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is AE_<wbr/>MODE_<wbr/>ON_<wbr/>*:</p>
6452 <th align="center">State</th>
6453 <th align="center">Transition Cause</th>
6454 <th align="center">New State</th>
6455 <th align="center">Notes</th>
6460 <td align="center">INACTIVE</td>
6461 <td align="center">Camera device initiates AE scan</td>
6462 <td align="center">SEARCHING</td>
6463 <td align="center">Values changing</td>
6466 <td align="center">INACTIVE</td>
6467 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
6468 <td align="center">LOCKED</td>
6469 <td align="center">Values locked</td>
6472 <td align="center">SEARCHING</td>
6473 <td align="center">Camera device finishes AE scan</td>
6474 <td align="center">CONVERGED</td>
6475 <td align="center">Good values,<wbr/> not changing</td>
6478 <td align="center">SEARCHING</td>
6479 <td align="center">Camera device finishes AE scan</td>
6480 <td align="center">FLASH_<wbr/>REQUIRED</td>
6481 <td align="center">Converged but too dark w/<wbr/>o flash</td>
6484 <td align="center">SEARCHING</td>
6485 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
6486 <td align="center">LOCKED</td>
6487 <td align="center">Values locked</td>
6490 <td align="center">CONVERGED</td>
6491 <td align="center">Camera device initiates AE scan</td>
6492 <td align="center">SEARCHING</td>
6493 <td align="center">Values changing</td>
6496 <td align="center">CONVERGED</td>
6497 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
6498 <td align="center">LOCKED</td>
6499 <td align="center">Values locked</td>
6502 <td align="center">FLASH_<wbr/>REQUIRED</td>
6503 <td align="center">Camera device initiates AE scan</td>
6504 <td align="center">SEARCHING</td>
6505 <td align="center">Values changing</td>
6508 <td align="center">FLASH_<wbr/>REQUIRED</td>
6509 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
6510 <td align="center">LOCKED</td>
6511 <td align="center">Values locked</td>
6514 <td align="center">LOCKED</td>
6515 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
6516 <td align="center">SEARCHING</td>
6517 <td align="center">Values not good after unlock</td>
6520 <td align="center">LOCKED</td>
6521 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
6522 <td align="center">CONVERGED</td>
6523 <td align="center">Values good after unlock</td>
6526 <td align="center">LOCKED</td>
6527 <td align="center"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
6528 <td align="center">FLASH_<wbr/>REQUIRED</td>
6529 <td align="center">Exposure good,<wbr/> but too dark</td>
6532 <td align="center">PRECAPTURE</td>
6533 <td align="center">Sequence done.<wbr/> <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
6534 <td align="center">CONVERGED</td>
6535 <td align="center">Ready for high-quality capture</td>
6538 <td align="center">PRECAPTURE</td>
6539 <td align="center">Sequence done.<wbr/> <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
6540 <td align="center">LOCKED</td>
6541 <td align="center">Ready for high-quality capture</td>
6544 <td align="center">LOCKED</td>
6545 <td align="center">aeLock is ON and aePrecaptureTrigger is START</td>
6546 <td align="center">LOCKED</td>
6547 <td align="center">Precapture trigger is ignored when AE is already locked</td>
6550 <td align="center">LOCKED</td>
6551 <td align="center">aeLock is ON and aePrecaptureTrigger is CANCEL</td>
6552 <td align="center">LOCKED</td>
6553 <td align="center">Precapture trigger is ignored when AE is already locked</td>
6556 <td align="center">Any state (excluding LOCKED)</td>
6557 <td align="center"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is START</td>
6558 <td align="center">PRECAPTURE</td>
6559 <td align="center">Start AE precapture metering sequence</td>
6562 <td align="center">Any state (excluding LOCKED)</td>
6563 <td align="center"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is CANCEL</td>
6564 <td align="center">INACTIVE</td>
6565 <td align="center">Currently active precapture metering sequence is canceled</td>
6569 <p>For the above table,<wbr/> the camera device may skip reporting any state changes that happen
6570 without application intervention (i.<wbr/>e.<wbr/> mode switch,<wbr/> trigger,<wbr/> locking).<wbr/> Any state that
6571 can be skipped in that manner is called a transient state.<wbr/></p>
6572 <p>For example,<wbr/> for above AE modes (AE_<wbr/>MODE_<wbr/>ON_<wbr/>*),<wbr/> in addition to the state transitions
6573 listed in above table,<wbr/> it is also legal for the camera device to skip one or more
6574 transient states between two results.<wbr/> See below table for examples:</p>
6578 <th align="center">State</th>
6579 <th align="center">Transition Cause</th>
6580 <th align="center">New State</th>
6581 <th align="center">Notes</th>
6586 <td align="center">INACTIVE</td>
6587 <td align="center">Camera device finished AE scan</td>
6588 <td align="center">CONVERGED</td>
6589 <td align="center">Values are already good,<wbr/> transient states are skipped by camera device.<wbr/></td>
6592 <td align="center">Any state (excluding LOCKED)</td>
6593 <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>
6594 <td align="center">FLASH_<wbr/>REQUIRED</td>
6595 <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>
6598 <td align="center">Any state (excluding LOCKED)</td>
6599 <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>
6600 <td align="center">CONVERGED</td>
6601 <td align="center">Converged after a precapture sequence,<wbr/> transient states are skipped by camera device.<wbr/></td>
6604 <td align="center">Any state (excluding LOCKED)</td>
6605 <td align="center"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is CANCEL,<wbr/> converged</td>
6606 <td align="center">FLASH_<wbr/>REQUIRED</td>
6607 <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>
6610 <td align="center">Any state (excluding LOCKED)</td>
6611 <td align="center"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is CANCEL,<wbr/> converged</td>
6612 <td align="center">CONVERGED</td>
6613 <td align="center">Converged after a precapture sequenceis canceled,<wbr/> transient states are skipped by camera device.<wbr/></td>
6616 <td align="center">CONVERGED</td>
6617 <td align="center">Camera device finished AE scan</td>
6618 <td align="center">FLASH_<wbr/>REQUIRED</td>
6619 <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>
6622 <td align="center">FLASH_<wbr/>REQUIRED</td>
6623 <td align="center">Camera device finished AE scan</td>
6624 <td align="center">CONVERGED</td>
6625 <td align="center">Converged after a new scan,<wbr/> transient states are skipped by camera device.<wbr/></td>
6633 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6634 <!-- end of entry -->
6637 <tr class="entry" id="dynamic_android.control.afMode">
6638 <td class="entry_name
6640 android.<wbr/>control.<wbr/>af<wbr/>Mode
6642 <td class="entry_type">
6643 <span class="entry_type_name entry_type_name_enum">byte</span>
6645 <span class="entry_type_visibility"> [public]</span>
6648 <span class="entry_type_hwlevel">[legacy] </span>
6652 <ul class="entry_type_enum">
6654 <span class="entry_type_enum_name">OFF</span>
6655 <span class="entry_type_enum_notes"><p>The auto-focus routine does not control the lens;
6656 <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> is controlled by the
6657 application.<wbr/></p></span>
6660 <span class="entry_type_enum_name">AUTO</span>
6661 <span class="entry_type_enum_notes"><p>Basic automatic focus mode.<wbr/></p>
6662 <p>In this mode,<wbr/> the lens does not move unless
6663 the autofocus trigger action is called.<wbr/> When that trigger
6664 is activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
6665 the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/></p>
6666 <p>Always supported if lens is not fixed focus.<wbr/></p>
6667 <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
6668 is fixed-focus.<wbr/></p>
6669 <p>Triggering AF_<wbr/>CANCEL resets the lens position to default,<wbr/>
6670 and sets the AF state to INACTIVE.<wbr/></p></span>
6673 <span class="entry_type_enum_name">MACRO</span>
6674 <span class="entry_type_enum_notes"><p>Close-up focusing mode.<wbr/></p>
6675 <p>In this mode,<wbr/> the lens does not move unless the
6676 autofocus trigger action is called.<wbr/> When that trigger is
6677 activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
6678 the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/> This
6679 mode is optimized for focusing on objects very close to
6680 the camera.<wbr/></p>
6681 <p>When that trigger is activated,<wbr/> AF will transition to
6682 ACTIVE_<wbr/>SCAN,<wbr/> then to the outcome of the scan (FOCUSED or
6683 NOT_<wbr/>FOCUSED).<wbr/> Triggering cancel AF resets the lens
6684 position to default,<wbr/> and sets the AF state to
6685 INACTIVE.<wbr/></p></span>
6688 <span class="entry_type_enum_name">CONTINUOUS_VIDEO</span>
6689 <span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
6690 position continually to attempt to provide a
6691 constantly-in-focus image stream.<wbr/></p>
6692 <p>The focusing behavior should be suitable for good quality
6693 video recording; typically this means slower focus
6694 movement and no overshoots.<wbr/> When the AF trigger is not
6695 involved,<wbr/> the AF algorithm should start in INACTIVE state,<wbr/>
6696 and then transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED
6697 states as appropriate.<wbr/> When the AF trigger is activated,<wbr/>
6698 the algorithm should immediately transition into
6699 AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
6700 lens position until a cancel AF trigger is received.<wbr/></p>
6701 <p>Once cancel is received,<wbr/> the algorithm should transition
6702 back to INACTIVE and resume passive scan.<wbr/> Note that this
6703 behavior is not identical to CONTINUOUS_<wbr/>PICTURE,<wbr/> since an
6704 ongoing PASSIVE_<wbr/>SCAN must immediately be
6705 canceled.<wbr/></p></span>
6708 <span class="entry_type_enum_name">CONTINUOUS_PICTURE</span>
6709 <span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
6710 position continually to attempt to provide a
6711 constantly-in-focus image stream.<wbr/></p>
6712 <p>The focusing behavior should be suitable for still image
6713 capture; typically this means focusing as fast as
6714 possible.<wbr/> When the AF trigger is not involved,<wbr/> the AF
6715 algorithm should start in INACTIVE state,<wbr/> and then
6716 transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED states as
6717 appropriate as it attempts to maintain focus.<wbr/> When the AF
6718 trigger is activated,<wbr/> the algorithm should finish its
6719 PASSIVE_<wbr/>SCAN if active,<wbr/> and then transition into
6720 AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
6721 lens position until a cancel AF trigger is received.<wbr/></p>
6722 <p>When the AF cancel trigger is activated,<wbr/> the algorithm
6723 should transition back to INACTIVE and then act as if it
6724 has just been started.<wbr/></p></span>
6727 <span class="entry_type_enum_name">EDOF</span>
6728 <span class="entry_type_enum_notes"><p>Extended depth of field (digital focus) mode.<wbr/></p>
6729 <p>The camera device will produce images with an extended
6730 depth of field automatically; no special focusing
6731 operations need to be done before taking a picture.<wbr/></p>
6732 <p>AF triggers are ignored,<wbr/> and the AF state will always be
6733 INACTIVE.<wbr/></p></span>
6737 </td> <!-- entry_type -->
6739 <td class="entry_description">
6740 <p>Whether auto-focus (AF) is currently enabled,<wbr/> and what
6741 mode it is set to.<wbr/></p>
6744 <td class="entry_units">
6747 <td class="entry_range">
6748 <p><a href="#static_android.control.afAvailableModes">android.<wbr/>control.<wbr/>af<wbr/>Available<wbr/>Modes</a></p>
6751 <td class="entry_tags">
6752 <ul class="entry_tags">
6753 <li><a href="#tag_BC">BC</a></li>
6758 <tr class="entries_header">
6759 <th class="th_details" colspan="5">Details</th>
6761 <tr class="entry_cont">
6762 <td class="entry_details" colspan="5">
6763 <p>Only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> = AUTO and the lens is not fixed focus
6764 (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
6765 when <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/> the behavior of AF is device
6766 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
6767 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>
6768 <p>If the lens is controlled by the camera device auto-focus algorithm,<wbr/>
6769 the camera device will report the current AF status in <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>
6770 in result metadata.<wbr/></p>
6774 <tr class="entries_header">
6775 <th class="th_details" colspan="5">HAL Implementation Details</th>
6777 <tr class="entry_cont">
6778 <td class="entry_details" colspan="5">
6779 <p>When afMode is AUTO or MACRO,<wbr/> the lens must not move until an AF trigger is sent in a
6780 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
6781 up with either FOCUSED_<wbr/>LOCKED or NOT_<wbr/>FOCUSED_<wbr/>LOCKED state (see
6782 <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
6783 locked and will not move.<wbr/> If camera movement (e.<wbr/>g.<wbr/> tilting camera) causes the lens to move
6784 after the lens is locked,<wbr/> the HAL must compensate this movement appropriately such that
6785 the same focal plane remains in focus.<wbr/></p>
6786 <p>When afMode is one of the continuous auto focus modes,<wbr/> the HAL is free to start a AF
6787 scan whenever it's not locked.<wbr/> When the lens is locked after an AF trigger
6788 (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
6789 same lock behavior as above.<wbr/></p>
6790 <p>When afMode is OFF,<wbr/> the application controls focus manually.<wbr/> The accuracy of the
6791 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/>
6792 However,<wbr/> the lens must not move regardless of the camera movement for any focus distance
6793 manual control.<wbr/></p>
6794 <p>To put this in concrete terms,<wbr/> if the camera has lens elements which may move based on
6795 camera orientation or motion (e.<wbr/>g.<wbr/> due to gravity),<wbr/> then the HAL must drive the lens to
6796 remain in a fixed position invariant to the camera's orientation or motion,<wbr/> for example,<wbr/>
6797 by using accelerometer measurements in the lens control logic.<wbr/> This is a typical issue
6798 that will arise on camera modules with open-loop VCMs.<wbr/></p>
6802 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6803 <!-- end of entry -->
6806 <tr class="entry" id="dynamic_android.control.afRegions">
6807 <td class="entry_name
6809 android.<wbr/>control.<wbr/>af<wbr/>Regions
6811 <td class="entry_type">
6812 <span class="entry_type_name">int32</span>
6813 <span class="entry_type_container">x</span>
6815 <span class="entry_type_array">
6818 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
6825 </td> <!-- entry_type -->
6827 <td class="entry_description">
6828 <p>List of metering areas to use for auto-focus.<wbr/></p>
6831 <td class="entry_units">
6832 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
6835 <td class="entry_range">
6836 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
6837 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
6840 <td class="entry_tags">
6841 <ul class="entry_tags">
6842 <li><a href="#tag_BC">BC</a></li>
6847 <tr class="entries_header">
6848 <th class="th_details" colspan="5">Details</th>
6850 <tr class="entry_cont">
6851 <td class="entry_details" colspan="5">
6852 <p>Not available if <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a> is 0.<wbr/>
6853 Otherwise will always be present.<wbr/></p>
6854 <p>The maximum number of focus areas supported by the device is determined by the value
6855 of <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a>.<wbr/></p>
6856 <p>The coordinate system is based on the active pixel array,<wbr/>
6857 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
6858 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
6859 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
6860 bottom-right pixel in the active pixel array.<wbr/></p>
6861 <p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
6862 for every pixel in the area.<wbr/> This means that a large metering area
6863 with the same weight as a smaller area will have more effect in
6864 the metering result.<wbr/> Metering areas can partially overlap and the
6865 camera device will add the weights in the overlap region.<wbr/></p>
6866 <p>The weights are relative to weights of other metering regions,<wbr/> so if only one region
6867 is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0 weight is
6869 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
6870 camera device.<wbr/></p>
6871 <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
6872 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
6873 region and output only the intersection rectangle as the metering region in the result
6874 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
6875 not reported in the result metadata.<wbr/></p>
6879 <tr class="entries_header">
6880 <th class="th_details" colspan="5">HAL Implementation Details</th>
6882 <tr class="entry_cont">
6883 <td class="entry_details" colspan="5">
6884 <p>The HAL level representation of MeteringRectangle[] is a
6885 int[5 * area_<wbr/>count].<wbr/>
6886 Every five elements represent a metering region of
6887 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
6888 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
6889 exclusive on xmax and ymax.<wbr/></p>
6893 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6894 <!-- end of entry -->
6897 <tr class="entry" id="dynamic_android.control.afTrigger">
6898 <td class="entry_name
6900 android.<wbr/>control.<wbr/>af<wbr/>Trigger
6902 <td class="entry_type">
6903 <span class="entry_type_name entry_type_name_enum">byte</span>
6905 <span class="entry_type_visibility"> [public]</span>
6908 <span class="entry_type_hwlevel">[legacy] </span>
6912 <ul class="entry_type_enum">
6914 <span class="entry_type_enum_name">IDLE</span>
6915 <span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
6918 <span class="entry_type_enum_name">START</span>
6919 <span class="entry_type_enum_notes"><p>Autofocus will trigger now.<wbr/></p></span>
6922 <span class="entry_type_enum_name">CANCEL</span>
6923 <span class="entry_type_enum_notes"><p>Autofocus will return to its initial
6924 state,<wbr/> and cancel any currently active trigger.<wbr/></p></span>
6928 </td> <!-- entry_type -->
6930 <td class="entry_description">
6931 <p>Whether the camera device will trigger autofocus for this request.<wbr/></p>
6934 <td class="entry_units">
6937 <td class="entry_range">
6940 <td class="entry_tags">
6941 <ul class="entry_tags">
6942 <li><a href="#tag_BC">BC</a></li>
6947 <tr class="entries_header">
6948 <th class="th_details" colspan="5">Details</th>
6950 <tr class="entry_cont">
6951 <td class="entry_details" colspan="5">
6952 <p>This entry is normally set to IDLE,<wbr/> or is not
6953 included at all in the request settings.<wbr/></p>
6954 <p>When included and set to START,<wbr/> the camera device will trigger the
6955 autofocus algorithm.<wbr/> If autofocus is disabled,<wbr/> this trigger has no effect.<wbr/></p>
6956 <p>When set to CANCEL,<wbr/> the camera device will cancel any active trigger,<wbr/>
6957 and return to its initial AF state.<wbr/></p>
6958 <p>Generally,<wbr/> applications should set this entry to START or CANCEL for only a
6959 single capture,<wbr/> and then return it to IDLE (or not set at all).<wbr/> Specifying
6960 START for multiple captures in a row means restarting the AF operation over
6961 and over again.<wbr/></p>
6962 <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>
6963 <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>
6964 simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
6965 the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
6966 focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
6967 trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
6968 changes to <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>,<wbr/> for example.<wbr/></p>
6972 <tr class="entries_header">
6973 <th class="th_details" colspan="5">HAL Implementation Details</th>
6975 <tr class="entry_cont">
6976 <td class="entry_details" colspan="5">
6977 <p>The HAL must support triggering the AF trigger while an AE precapture trigger is active
6978 (and vice versa),<wbr/> or at the same time as the AE trigger.<wbr/> It is acceptable for the HAL to
6979 treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
6980 AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
6981 to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
6985 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
6986 <!-- end of entry -->
6989 <tr class="entry" id="dynamic_android.control.afState">
6990 <td class="entry_name
6992 android.<wbr/>control.<wbr/>af<wbr/>State
6994 <td class="entry_type">
6995 <span class="entry_type_name entry_type_name_enum">byte</span>
6997 <span class="entry_type_visibility"> [public]</span>
7000 <span class="entry_type_hwlevel">[legacy] </span>
7004 <ul class="entry_type_enum">
7006 <span class="entry_type_enum_name">INACTIVE</span>
7007 <span class="entry_type_enum_notes"><p>AF is off or has not yet tried to scan/<wbr/>been asked
7009 <p>When a camera device is opened,<wbr/> it starts in this
7010 state.<wbr/> This is a transient state,<wbr/> the camera device may
7011 skip reporting this state in capture
7012 result.<wbr/></p></span>
7015 <span class="entry_type_enum_name">PASSIVE_SCAN</span>
7016 <span class="entry_type_enum_notes"><p>AF is currently performing an AF scan initiated the
7017 camera device in a continuous autofocus mode.<wbr/></p>
7018 <p>Only used by CONTINUOUS_<wbr/>* AF modes.<wbr/> This is a transient
7019 state,<wbr/> the camera device may skip reporting this state in
7020 capture result.<wbr/></p></span>
7023 <span class="entry_type_enum_name">PASSIVE_FOCUSED</span>
7024 <span class="entry_type_enum_notes"><p>AF currently believes it is in focus,<wbr/> but may
7025 restart scanning at any time.<wbr/></p>
7026 <p>Only used by CONTINUOUS_<wbr/>* AF modes.<wbr/> This is a transient
7027 state,<wbr/> the camera device may skip reporting this state in
7028 capture result.<wbr/></p></span>
7031 <span class="entry_type_enum_name">ACTIVE_SCAN</span>
7032 <span class="entry_type_enum_notes"><p>AF is performing an AF scan because it was
7033 triggered by AF trigger.<wbr/></p>
7034 <p>Only used by AUTO or MACRO AF modes.<wbr/> This is a transient
7035 state,<wbr/> the camera device may skip reporting this state in
7036 capture result.<wbr/></p></span>
7039 <span class="entry_type_enum_name">FOCUSED_LOCKED</span>
7040 <span class="entry_type_enum_notes"><p>AF believes it is focused correctly and has locked
7042 <p>This state is reached only after an explicit START AF trigger has been
7043 sent (<a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>),<wbr/> when good focus has been obtained.<wbr/></p>
7044 <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
7045 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>
7048 <span class="entry_type_enum_name">NOT_FOCUSED_LOCKED</span>
7049 <span class="entry_type_enum_notes"><p>AF has failed to focus successfully and has locked
7051 <p>This state is reached only after an explicit START AF trigger has been
7052 sent (<a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>),<wbr/> when good focus cannot be obtained.<wbr/></p>
7053 <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
7054 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>
7057 <span class="entry_type_enum_name">PASSIVE_UNFOCUSED</span>
7058 <span class="entry_type_enum_notes"><p>AF finished a passive scan without finding focus,<wbr/>
7059 and may restart scanning at any time.<wbr/></p>
7060 <p>Only used by CONTINUOUS_<wbr/>* AF modes.<wbr/> This is a transient state,<wbr/> the camera
7061 device may skip reporting this state in capture result.<wbr/></p>
7062 <p>LEGACY camera devices do not support this state.<wbr/> When a passive
7063 scan has finished,<wbr/> it will always go to PASSIVE_<wbr/>FOCUSED.<wbr/></p></span>
7067 </td> <!-- entry_type -->
7069 <td class="entry_description">
7070 <p>Current state of auto-focus (AF) algorithm.<wbr/></p>
7073 <td class="entry_units">
7076 <td class="entry_range">
7079 <td class="entry_tags">
7083 <tr class="entries_header">
7084 <th class="th_details" colspan="5">Details</th>
7086 <tr class="entry_cont">
7087 <td class="entry_details" colspan="5">
7088 <p>Switching between or enabling AF modes (<a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>) always
7089 resets the AF state to INACTIVE.<wbr/> Similarly,<wbr/> switching between <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>,<wbr/>
7090 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
7091 the algorithm states to INACTIVE.<wbr/></p>
7092 <p>The camera device can do several state transitions between two results,<wbr/> if it is
7093 allowed by the state transition table.<wbr/> For example: INACTIVE may never actually be
7094 seen in a result.<wbr/></p>
7095 <p>The state in the result is the state for this image (in sync with this image): if
7096 AF state becomes FOCUSED,<wbr/> then the image data associated with this result should
7098 <p>Below are state transition tables for different AF modes.<wbr/></p>
7099 <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>
7103 <th align="center">State</th>
7104 <th align="center">Transition Cause</th>
7105 <th align="center">New State</th>
7106 <th align="center">Notes</th>
7111 <td align="center">INACTIVE</td>
7112 <td align="center"></td>
7113 <td align="center">INACTIVE</td>
7114 <td align="center">Never changes</td>
7118 <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>
7122 <th align="center">State</th>
7123 <th align="center">Transition Cause</th>
7124 <th align="center">New State</th>
7125 <th align="center">Notes</th>
7130 <td align="center">INACTIVE</td>
7131 <td align="center">AF_<wbr/>TRIGGER</td>
7132 <td align="center">ACTIVE_<wbr/>SCAN</td>
7133 <td align="center">Start AF sweep,<wbr/> Lens now moving</td>
7136 <td align="center">ACTIVE_<wbr/>SCAN</td>
7137 <td align="center">AF sweep done</td>
7138 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7139 <td align="center">Focused,<wbr/> Lens now locked</td>
7142 <td align="center">ACTIVE_<wbr/>SCAN</td>
7143 <td align="center">AF sweep done</td>
7144 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7145 <td align="center">Not focused,<wbr/> Lens now locked</td>
7148 <td align="center">ACTIVE_<wbr/>SCAN</td>
7149 <td align="center">AF_<wbr/>CANCEL</td>
7150 <td align="center">INACTIVE</td>
7151 <td align="center">Cancel/<wbr/>reset AF,<wbr/> Lens now locked</td>
7154 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7155 <td align="center">AF_<wbr/>CANCEL</td>
7156 <td align="center">INACTIVE</td>
7157 <td align="center">Cancel/<wbr/>reset AF</td>
7160 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7161 <td align="center">AF_<wbr/>TRIGGER</td>
7162 <td align="center">ACTIVE_<wbr/>SCAN</td>
7163 <td align="center">Start new sweep,<wbr/> Lens now moving</td>
7166 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7167 <td align="center">AF_<wbr/>CANCEL</td>
7168 <td align="center">INACTIVE</td>
7169 <td align="center">Cancel/<wbr/>reset AF</td>
7172 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7173 <td align="center">AF_<wbr/>TRIGGER</td>
7174 <td align="center">ACTIVE_<wbr/>SCAN</td>
7175 <td align="center">Start new sweep,<wbr/> Lens now moving</td>
7178 <td align="center">Any state</td>
7179 <td align="center">Mode change</td>
7180 <td align="center">INACTIVE</td>
7181 <td align="center"></td>
7185 <p>For the above table,<wbr/> the camera device may skip reporting any state changes that happen
7186 without application intervention (i.<wbr/>e.<wbr/> mode switch,<wbr/> trigger,<wbr/> locking).<wbr/> Any state that
7187 can be skipped in that manner is called a transient state.<wbr/></p>
7188 <p>For example,<wbr/> for these AF modes (AF_<wbr/>MODE_<wbr/>AUTO and AF_<wbr/>MODE_<wbr/>MACRO),<wbr/> in addition to the
7189 state transitions listed in above table,<wbr/> it is also legal for the camera device to skip
7190 one or more transient states between two results.<wbr/> See below table for examples:</p>
7194 <th align="center">State</th>
7195 <th align="center">Transition Cause</th>
7196 <th align="center">New State</th>
7197 <th align="center">Notes</th>
7202 <td align="center">INACTIVE</td>
7203 <td align="center">AF_<wbr/>TRIGGER</td>
7204 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7205 <td align="center">Focus is already good or good after a scan,<wbr/> lens is now locked.<wbr/></td>
7208 <td align="center">INACTIVE</td>
7209 <td align="center">AF_<wbr/>TRIGGER</td>
7210 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7211 <td align="center">Focus failed after a scan,<wbr/> lens is now locked.<wbr/></td>
7214 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7215 <td align="center">AF_<wbr/>TRIGGER</td>
7216 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7217 <td align="center">Focus is already good or good after a scan,<wbr/> lens is now locked.<wbr/></td>
7220 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7221 <td align="center">AF_<wbr/>TRIGGER</td>
7222 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7223 <td align="center">Focus is good after a scan,<wbr/> lens is not locked.<wbr/></td>
7227 <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>
7231 <th align="center">State</th>
7232 <th align="center">Transition Cause</th>
7233 <th align="center">New State</th>
7234 <th align="center">Notes</th>
7239 <td align="center">INACTIVE</td>
7240 <td align="center">Camera device initiates new scan</td>
7241 <td align="center">PASSIVE_<wbr/>SCAN</td>
7242 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7245 <td align="center">INACTIVE</td>
7246 <td align="center">AF_<wbr/>TRIGGER</td>
7247 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7248 <td align="center">AF state query,<wbr/> Lens now locked</td>
7251 <td align="center">PASSIVE_<wbr/>SCAN</td>
7252 <td align="center">Camera device completes current scan</td>
7253 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7254 <td align="center">End AF scan,<wbr/> Lens now locked</td>
7257 <td align="center">PASSIVE_<wbr/>SCAN</td>
7258 <td align="center">Camera device fails current scan</td>
7259 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7260 <td align="center">End AF scan,<wbr/> Lens now locked</td>
7263 <td align="center">PASSIVE_<wbr/>SCAN</td>
7264 <td align="center">AF_<wbr/>TRIGGER</td>
7265 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7266 <td align="center">Immediate transition,<wbr/> if focus is good.<wbr/> Lens now locked</td>
7269 <td align="center">PASSIVE_<wbr/>SCAN</td>
7270 <td align="center">AF_<wbr/>TRIGGER</td>
7271 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7272 <td align="center">Immediate transition,<wbr/> if focus is bad.<wbr/> Lens now locked</td>
7275 <td align="center">PASSIVE_<wbr/>SCAN</td>
7276 <td align="center">AF_<wbr/>CANCEL</td>
7277 <td align="center">INACTIVE</td>
7278 <td align="center">Reset lens position,<wbr/> Lens now locked</td>
7281 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7282 <td align="center">Camera device initiates new scan</td>
7283 <td align="center">PASSIVE_<wbr/>SCAN</td>
7284 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7287 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7288 <td align="center">Camera device initiates new scan</td>
7289 <td align="center">PASSIVE_<wbr/>SCAN</td>
7290 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7293 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7294 <td align="center">AF_<wbr/>TRIGGER</td>
7295 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7296 <td align="center">Immediate transition,<wbr/> lens now locked</td>
7299 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7300 <td align="center">AF_<wbr/>TRIGGER</td>
7301 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7302 <td align="center">Immediate transition,<wbr/> lens now locked</td>
7305 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7306 <td align="center">AF_<wbr/>TRIGGER</td>
7307 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7308 <td align="center">No effect</td>
7311 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7312 <td align="center">AF_<wbr/>CANCEL</td>
7313 <td align="center">INACTIVE</td>
7314 <td align="center">Restart AF scan</td>
7317 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7318 <td align="center">AF_<wbr/>TRIGGER</td>
7319 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7320 <td align="center">No effect</td>
7323 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7324 <td align="center">AF_<wbr/>CANCEL</td>
7325 <td align="center">INACTIVE</td>
7326 <td align="center">Restart AF scan</td>
7330 <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>
7334 <th align="center">State</th>
7335 <th align="center">Transition Cause</th>
7336 <th align="center">New State</th>
7337 <th align="center">Notes</th>
7342 <td align="center">INACTIVE</td>
7343 <td align="center">Camera device initiates new scan</td>
7344 <td align="center">PASSIVE_<wbr/>SCAN</td>
7345 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7348 <td align="center">INACTIVE</td>
7349 <td align="center">AF_<wbr/>TRIGGER</td>
7350 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7351 <td align="center">AF state query,<wbr/> Lens now locked</td>
7354 <td align="center">PASSIVE_<wbr/>SCAN</td>
7355 <td align="center">Camera device completes current scan</td>
7356 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7357 <td align="center">End AF scan,<wbr/> Lens now locked</td>
7360 <td align="center">PASSIVE_<wbr/>SCAN</td>
7361 <td align="center">Camera device fails current scan</td>
7362 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7363 <td align="center">End AF scan,<wbr/> Lens now locked</td>
7366 <td align="center">PASSIVE_<wbr/>SCAN</td>
7367 <td align="center">AF_<wbr/>TRIGGER</td>
7368 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7369 <td align="center">Eventual transition once the focus is good.<wbr/> Lens now locked</td>
7372 <td align="center">PASSIVE_<wbr/>SCAN</td>
7373 <td align="center">AF_<wbr/>TRIGGER</td>
7374 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7375 <td align="center">Eventual transition if cannot find focus.<wbr/> Lens now locked</td>
7378 <td align="center">PASSIVE_<wbr/>SCAN</td>
7379 <td align="center">AF_<wbr/>CANCEL</td>
7380 <td align="center">INACTIVE</td>
7381 <td align="center">Reset lens position,<wbr/> Lens now locked</td>
7384 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7385 <td align="center">Camera device initiates new scan</td>
7386 <td align="center">PASSIVE_<wbr/>SCAN</td>
7387 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7390 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7391 <td align="center">Camera device initiates new scan</td>
7392 <td align="center">PASSIVE_<wbr/>SCAN</td>
7393 <td align="center">Start AF scan,<wbr/> Lens now moving</td>
7396 <td align="center">PASSIVE_<wbr/>FOCUSED</td>
7397 <td align="center">AF_<wbr/>TRIGGER</td>
7398 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7399 <td align="center">Immediate trans.<wbr/> Lens now locked</td>
7402 <td align="center">PASSIVE_<wbr/>UNFOCUSED</td>
7403 <td align="center">AF_<wbr/>TRIGGER</td>
7404 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7405 <td align="center">Immediate trans.<wbr/> Lens now locked</td>
7408 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7409 <td align="center">AF_<wbr/>TRIGGER</td>
7410 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7411 <td align="center">No effect</td>
7414 <td align="center">FOCUSED_<wbr/>LOCKED</td>
7415 <td align="center">AF_<wbr/>CANCEL</td>
7416 <td align="center">INACTIVE</td>
7417 <td align="center">Restart AF scan</td>
7420 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7421 <td align="center">AF_<wbr/>TRIGGER</td>
7422 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7423 <td align="center">No effect</td>
7426 <td align="center">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
7427 <td align="center">AF_<wbr/>CANCEL</td>
7428 <td align="center">INACTIVE</td>
7429 <td align="center">Restart AF scan</td>
7433 <p>When switch between AF_<wbr/>MODE_<wbr/>CONTINUOUS_<wbr/>* (CAF modes) and AF_<wbr/>MODE_<wbr/>AUTO/<wbr/>AF_<wbr/>MODE_<wbr/>MACRO
7434 (AUTO modes),<wbr/> the initial INACTIVE or PASSIVE_<wbr/>SCAN states may be skipped by the
7435 camera device.<wbr/> When a trigger is included in a mode switch request,<wbr/> the trigger
7436 will be evaluated in the context of the new mode in the request.<wbr/>
7437 See below table for examples:</p>
7441 <th align="center">State</th>
7442 <th align="center">Transition Cause</th>
7443 <th align="center">New State</th>
7444 <th align="center">Notes</th>
7449 <td align="center">any state</td>
7450 <td align="center">CAF-->AUTO mode switch</td>
7451 <td align="center">INACTIVE</td>
7452 <td align="center">Mode switch without trigger,<wbr/> initial state must be INACTIVE</td>
7455 <td align="center">any state</td>
7456 <td align="center">CAF-->AUTO mode switch with AF_<wbr/>TRIGGER</td>
7457 <td align="center">trigger-reachable states from INACTIVE</td>
7458 <td align="center">Mode switch with trigger,<wbr/> INACTIVE is skipped</td>
7461 <td align="center">any state</td>
7462 <td align="center">AUTO-->CAF mode switch</td>
7463 <td align="center">passively reachable states from INACTIVE</td>
7464 <td align="center">Mode switch without trigger,<wbr/> passive transient state is skipped</td>
7472 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7473 <!-- end of entry -->
7476 <tr class="entry" id="dynamic_android.control.afTriggerId">
7477 <td class="entry_name
7478 entry_name_deprecated
7480 android.<wbr/>control.<wbr/>af<wbr/>Trigger<wbr/>Id
7482 <td class="entry_type">
7483 <span class="entry_type_name">int32</span>
7485 <span class="entry_type_visibility"> [system]</span>
7489 <span class="entry_type_deprecated">[deprecated] </span>
7493 </td> <!-- entry_type -->
7495 <td class="entry_description">
7496 <p>The ID sent with the latest
7497 CAMERA2_<wbr/>TRIGGER_<wbr/>AUTOFOCUS call</p>
7500 <td class="entry_units">
7503 <td class="entry_range">
7504 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
7507 <td class="entry_tags">
7511 <tr class="entries_header">
7512 <th class="th_details" colspan="5">Details</th>
7514 <tr class="entry_cont">
7515 <td class="entry_details" colspan="5">
7516 <p>Must be 0 if no CAMERA2_<wbr/>TRIGGER_<wbr/>AUTOFOCUS trigger
7517 received yet by HAL.<wbr/> Always updated even if AF algorithm
7518 ignores the trigger</p>
7523 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7524 <!-- end of entry -->
7527 <tr class="entry" id="dynamic_android.control.awbLock">
7528 <td class="entry_name
7530 android.<wbr/>control.<wbr/>awb<wbr/>Lock
7532 <td class="entry_type">
7533 <span class="entry_type_name entry_type_name_enum">byte</span>
7535 <span class="entry_type_visibility"> [public as boolean]</span>
7538 <span class="entry_type_hwlevel">[legacy] </span>
7542 <ul class="entry_type_enum">
7544 <span class="entry_type_enum_name">OFF</span>
7545 <span class="entry_type_enum_notes"><p>Auto-white balance lock is disabled; the AWB
7546 algorithm is free to update its parameters if in AUTO
7547 mode.<wbr/></p></span>
7550 <span class="entry_type_enum_name">ON</span>
7551 <span class="entry_type_enum_notes"><p>Auto-white balance lock is enabled; the AWB
7552 algorithm will not update its parameters while the lock
7553 is active.<wbr/></p></span>
7557 </td> <!-- entry_type -->
7559 <td class="entry_description">
7560 <p>Whether auto-white balance (AWB) is currently locked to its
7561 latest calculated values.<wbr/></p>
7564 <td class="entry_units">
7567 <td class="entry_range">
7570 <td class="entry_tags">
7571 <ul class="entry_tags">
7572 <li><a href="#tag_BC">BC</a></li>
7577 <tr class="entries_header">
7578 <th class="th_details" colspan="5">Details</th>
7580 <tr class="entry_cont">
7581 <td class="entry_details" colspan="5">
7582 <p>When set to <code>true</code> (ON),<wbr/> the AWB algorithm is locked to its latest parameters,<wbr/>
7583 and will not change color balance settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
7584 <p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
7585 get locked do not necessarily correspond to the settings that were present in the
7586 latest capture result received from the camera device,<wbr/> since additional captures
7587 and AWB updates may have occurred even before the result was sent out.<wbr/> If an
7588 application is switching between automatic and manual control and wishes to eliminate
7589 any flicker during the switch,<wbr/> the following procedure is recommended:</p>
7591 <li>Starting in auto-AWB mode:</li>
7593 <li>Wait for the first result to be output that has the AWB locked</li>
7594 <li>Copy AWB settings from that result into a request,<wbr/> set the request to manual AWB</li>
7595 <li>Submit the capture request,<wbr/> proceed to run manual AWB as desired.<wbr/></li>
7597 <p>Note that AWB lock is only meaningful when
7598 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> is in the AUTO mode; in other modes,<wbr/>
7599 AWB is already fixed to a specific setting.<wbr/></p>
7600 <p>Some LEGACY devices may not support ON; the value is then overridden to OFF.<wbr/></p>
7605 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7606 <!-- end of entry -->
7609 <tr class="entry" id="dynamic_android.control.awbMode">
7610 <td class="entry_name
7612 android.<wbr/>control.<wbr/>awb<wbr/>Mode
7614 <td class="entry_type">
7615 <span class="entry_type_name entry_type_name_enum">byte</span>
7617 <span class="entry_type_visibility"> [public]</span>
7620 <span class="entry_type_hwlevel">[legacy] </span>
7624 <ul class="entry_type_enum">
7626 <span class="entry_type_enum_name">OFF</span>
7627 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled.<wbr/></p>
7628 <p>The application-selected color transform matrix
7629 (<a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>) and gains
7630 (<a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a>) are used by the camera
7631 device for manual white balance control.<wbr/></p></span>
7634 <span class="entry_type_enum_name">AUTO</span>
7635 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is active.<wbr/></p>
7636 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7637 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7638 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7639 values used by the camera device for the transform and gains
7640 will be available in the capture result for this request.<wbr/></p></span>
7643 <span class="entry_type_enum_name">INCANDESCENT</span>
7644 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7645 the camera device uses incandescent light as the assumed scene
7646 illumination for white balance.<wbr/></p>
7647 <p>While the exact white balance transforms are up to the
7648 camera device,<wbr/> they will approximately match the CIE
7649 standard illuminant A.<wbr/></p>
7650 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7651 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7652 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7653 values used by the camera device for the transform and gains
7654 will be available in the capture result for this request.<wbr/></p></span>
7657 <span class="entry_type_enum_name">FLUORESCENT</span>
7658 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7659 the camera device uses fluorescent light as the assumed scene
7660 illumination for white balance.<wbr/></p>
7661 <p>While the exact white balance transforms are up to the
7662 camera device,<wbr/> they will approximately match the CIE
7663 standard illuminant F2.<wbr/></p>
7664 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7665 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7666 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7667 values used by the camera device for the transform and gains
7668 will be available in the capture result for this request.<wbr/></p></span>
7671 <span class="entry_type_enum_name">WARM_FLUORESCENT</span>
7672 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7673 the camera device uses warm fluorescent light as the assumed scene
7674 illumination for white balance.<wbr/></p>
7675 <p>While the exact white balance transforms are up to the
7676 camera device,<wbr/> they will approximately match the CIE
7677 standard illuminant F4.<wbr/></p>
7678 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7679 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7680 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7681 values used by the camera device for the transform and gains
7682 will be available in the capture result for this request.<wbr/></p></span>
7685 <span class="entry_type_enum_name">DAYLIGHT</span>
7686 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7687 the camera device uses daylight light as the assumed scene
7688 illumination for white balance.<wbr/></p>
7689 <p>While the exact white balance transforms are up to the
7690 camera device,<wbr/> they will approximately match the CIE
7691 standard illuminant D65.<wbr/></p>
7692 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7693 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7694 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7695 values used by the camera device for the transform and gains
7696 will be available in the capture result for this request.<wbr/></p></span>
7699 <span class="entry_type_enum_name">CLOUDY_DAYLIGHT</span>
7700 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7701 the camera device uses cloudy daylight light as the assumed scene
7702 illumination for white balance.<wbr/></p>
7703 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7704 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7705 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7706 values used by the camera device for the transform and gains
7707 will be available in the capture result for this request.<wbr/></p></span>
7710 <span class="entry_type_enum_name">TWILIGHT</span>
7711 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7712 the camera device uses twilight light as the assumed scene
7713 illumination for white balance.<wbr/></p>
7714 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7715 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7716 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7717 values used by the camera device for the transform and gains
7718 will be available in the capture result for this request.<wbr/></p></span>
7721 <span class="entry_type_enum_name">SHADE</span>
7722 <span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
7723 the camera device uses shade light as the assumed scene
7724 illumination for white balance.<wbr/></p>
7725 <p>The application's values for <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>
7726 and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> are ignored.<wbr/>
7727 For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
7728 values used by the camera device for the transform and gains
7729 will be available in the capture result for this request.<wbr/></p></span>
7733 </td> <!-- entry_type -->
7735 <td class="entry_description">
7736 <p>Whether auto-white balance (AWB) is currently setting the color
7737 transform fields,<wbr/> and what its illumination target
7741 <td class="entry_units">
7744 <td class="entry_range">
7745 <p><a href="#static_android.control.awbAvailableModes">android.<wbr/>control.<wbr/>awb<wbr/>Available<wbr/>Modes</a></p>
7748 <td class="entry_tags">
7749 <ul class="entry_tags">
7750 <li><a href="#tag_BC">BC</a></li>
7755 <tr class="entries_header">
7756 <th class="th_details" colspan="5">Details</th>
7758 <tr class="entry_cont">
7759 <td class="entry_details" colspan="5">
7760 <p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is AUTO.<wbr/></p>
7761 <p>When set to the ON mode,<wbr/> the camera device's auto-white balance
7762 routine is enabled,<wbr/> overriding the application's selected
7763 <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
7764 <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>
7765 is OFF,<wbr/> the behavior of AWB is device dependent.<wbr/> It is recommened to
7766 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
7767 setting AE mode to OFF.<wbr/></p>
7768 <p>When set to the OFF mode,<wbr/> the camera device's auto-white balance
7769 routine is disabled.<wbr/> The application manually controls the white
7770 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>
7771 and <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a>.<wbr/></p>
7772 <p>When set to any other modes,<wbr/> the camera device's auto-white
7773 balance routine is disabled.<wbr/> The camera device uses each
7774 particular illumination target for white balance
7775 adjustment.<wbr/> The application's values for
7776 <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>,<wbr/>
7777 <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
7778 <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> are ignored.<wbr/></p>
7783 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7784 <!-- end of entry -->
7787 <tr class="entry" id="dynamic_android.control.awbRegions">
7788 <td class="entry_name
7790 android.<wbr/>control.<wbr/>awb<wbr/>Regions
7792 <td class="entry_type">
7793 <span class="entry_type_name">int32</span>
7794 <span class="entry_type_container">x</span>
7796 <span class="entry_type_array">
7799 <span class="entry_type_visibility"> [public as meteringRectangle]</span>
7806 </td> <!-- entry_type -->
7808 <td class="entry_description">
7809 <p>List of metering areas to use for auto-white-balance illuminant
7810 estimation.<wbr/></p>
7813 <td class="entry_units">
7814 Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
7817 <td class="entry_range">
7818 <p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
7819 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></p>
7822 <td class="entry_tags">
7823 <ul class="entry_tags">
7824 <li><a href="#tag_BC">BC</a></li>
7829 <tr class="entries_header">
7830 <th class="th_details" colspan="5">Details</th>
7832 <tr class="entry_cont">
7833 <td class="entry_details" colspan="5">
7834 <p>Not available if <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a> is 0.<wbr/>
7835 Otherwise will always be present.<wbr/></p>
7836 <p>The maximum number of regions supported by the device is determined by the value
7837 of <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a>.<wbr/></p>
7838 <p>The coordinate system is based on the active pixel array,<wbr/>
7839 with (0,<wbr/>0) being the top-left pixel in the active pixel array,<wbr/> and
7840 (<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
7841 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the
7842 bottom-right pixel in the active pixel array.<wbr/></p>
7843 <p>The weight must range from 0 to 1000,<wbr/> and represents a weight
7844 for every pixel in the area.<wbr/> This means that a large metering area
7845 with the same weight as a smaller area will have more effect in
7846 the metering result.<wbr/> Metering areas can partially overlap and the
7847 camera device will add the weights in the overlap region.<wbr/></p>
7848 <p>The weights are relative to weights of other white balance metering regions,<wbr/> so if
7849 only one region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with
7850 0 weight is ignored.<wbr/></p>
7851 <p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
7852 camera device.<wbr/></p>
7853 <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
7854 capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
7855 region and output only the intersection rectangle as the metering region in the result
7856 metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
7857 not reported in the result metadata.<wbr/></p>
7861 <tr class="entries_header">
7862 <th class="th_details" colspan="5">HAL Implementation Details</th>
7864 <tr class="entry_cont">
7865 <td class="entry_details" colspan="5">
7866 <p>The HAL level representation of MeteringRectangle[] is a
7867 int[5 * area_<wbr/>count].<wbr/>
7868 Every five elements represent a metering region of
7869 (xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
7870 The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
7871 exclusive on xmax and ymax.<wbr/></p>
7875 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7876 <!-- end of entry -->
7879 <tr class="entry" id="dynamic_android.control.captureIntent">
7880 <td class="entry_name
7882 android.<wbr/>control.<wbr/>capture<wbr/>Intent
7884 <td class="entry_type">
7885 <span class="entry_type_name entry_type_name_enum">byte</span>
7887 <span class="entry_type_visibility"> [public]</span>
7890 <span class="entry_type_hwlevel">[legacy] </span>
7894 <ul class="entry_type_enum">
7896 <span class="entry_type_enum_name">CUSTOM</span>
7897 <span class="entry_type_enum_notes"><p>The goal of this request doesn't fall into the other
7898 categories.<wbr/> The camera device will default to preview-like
7899 behavior.<wbr/></p></span>
7902 <span class="entry_type_enum_name">PREVIEW</span>
7903 <span class="entry_type_enum_notes"><p>This request is for a preview-like use case.<wbr/></p>
7904 <p>The precapture trigger may be used to start off a metering
7905 w/<wbr/>flash sequence.<wbr/></p></span>
7908 <span class="entry_type_enum_name">STILL_CAPTURE</span>
7909 <span class="entry_type_enum_notes"><p>This request is for a still capture-type
7911 <p>If the flash unit is under automatic control,<wbr/> it may fire as needed.<wbr/></p></span>
7914 <span class="entry_type_enum_name">VIDEO_RECORD</span>
7915 <span class="entry_type_enum_notes"><p>This request is for a video recording
7916 use case.<wbr/></p></span>
7919 <span class="entry_type_enum_name">VIDEO_SNAPSHOT</span>
7920 <span class="entry_type_enum_notes"><p>This request is for a video snapshot (still
7921 image while recording video) use case.<wbr/></p>
7922 <p>The camera device should take the highest-quality image
7923 possible (given the other settings) without disrupting the
7924 frame rate of video recording.<wbr/> </p></span>
7927 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
7928 <span class="entry_type_enum_notes"><p>This request is for a ZSL usecase; the
7929 application will stream full-resolution images and
7930 reprocess one or several later for a final
7931 capture.<wbr/></p></span>
7934 <span class="entry_type_enum_name">MANUAL</span>
7935 <span class="entry_type_enum_notes"><p>This request is for manual capture use case where
7936 the applications want to directly control the capture parameters.<wbr/></p>
7937 <p>For example,<wbr/> the application may wish to manually control
7938 <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>
7942 </td> <!-- entry_type -->
7944 <td class="entry_description">
7945 <p>Information to the camera device 3A (auto-exposure,<wbr/>
7946 auto-focus,<wbr/> auto-white balance) routines about the purpose
7947 of this capture,<wbr/> to help the camera device to decide optimal 3A
7951 <td class="entry_units">
7954 <td class="entry_range">
7957 <td class="entry_tags">
7958 <ul class="entry_tags">
7959 <li><a href="#tag_BC">BC</a></li>
7964 <tr class="entries_header">
7965 <th class="th_details" colspan="5">Details</th>
7967 <tr class="entry_cont">
7968 <td class="entry_details" colspan="5">
7969 <p>This control (except for MANUAL) is only effective if
7970 <code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> != OFF</code> and any 3A routine is active.<wbr/></p>
7971 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG will be supported if <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>
7972 contains PRIVATE_<wbr/>REPROCESSING or YUV_<wbr/>REPROCESSING.<wbr/> MANUAL will be supported if
7973 <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains MANUAL_<wbr/>SENSOR.<wbr/> Other intent values are
7974 always supported.<wbr/></p>
7979 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
7980 <!-- end of entry -->
7983 <tr class="entry" id="dynamic_android.control.awbState">
7984 <td class="entry_name
7986 android.<wbr/>control.<wbr/>awb<wbr/>State
7988 <td class="entry_type">
7989 <span class="entry_type_name entry_type_name_enum">byte</span>
7991 <span class="entry_type_visibility"> [public]</span>
7994 <span class="entry_type_hwlevel">[limited] </span>
7998 <ul class="entry_type_enum">
8000 <span class="entry_type_enum_name">INACTIVE</span>
8001 <span class="entry_type_enum_notes"><p>AWB is not in auto mode,<wbr/> or has not yet started metering.<wbr/></p>
8002 <p>When a camera device is opened,<wbr/> it starts in this
8003 state.<wbr/> This is a transient state,<wbr/> the camera device may
8004 skip reporting this state in capture
8005 result.<wbr/></p></span>
8008 <span class="entry_type_enum_name">SEARCHING</span>
8009 <span class="entry_type_enum_notes"><p>AWB doesn't yet have a good set of control
8010 values for the current scene.<wbr/></p>
8011 <p>This is a transient state,<wbr/> the camera device
8012 may skip reporting this state in capture result.<wbr/></p></span>
8015 <span class="entry_type_enum_name">CONVERGED</span>
8016 <span class="entry_type_enum_notes"><p>AWB has a good set of control values for the
8017 current scene.<wbr/></p></span>
8020 <span class="entry_type_enum_name">LOCKED</span>
8021 <span class="entry_type_enum_notes"><p>AWB has been locked.<wbr/></p></span>
8025 </td> <!-- entry_type -->
8027 <td class="entry_description">
8028 <p>Current state of auto-white balance (AWB) algorithm.<wbr/></p>
8031 <td class="entry_units">
8034 <td class="entry_range">
8037 <td class="entry_tags">
8041 <tr class="entries_header">
8042 <th class="th_details" colspan="5">Details</th>
8044 <tr class="entry_cont">
8045 <td class="entry_details" colspan="5">
8046 <p>Switching between or enabling AWB modes (<a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>) always
8047 resets the AWB state to INACTIVE.<wbr/> Similarly,<wbr/> switching between <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>,<wbr/>
8048 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
8049 the algorithm states to INACTIVE.<wbr/></p>
8050 <p>The camera device can do several state transitions between two results,<wbr/> if it is
8051 allowed by the state transition table.<wbr/> So INACTIVE may never actually be seen in
8053 <p>The state in the result is the state for this image (in sync with this image): if
8054 AWB state becomes CONVERGED,<wbr/> then the image data associated with this result should
8055 be good to use.<wbr/></p>
8056 <p>Below are state transition tables for different AWB modes.<wbr/></p>
8057 <p>When <code><a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> != AWB_<wbr/>MODE_<wbr/>AUTO</code>:</p>
8061 <th align="center">State</th>
8062 <th align="center">Transition Cause</th>
8063 <th align="center">New State</th>
8064 <th align="center">Notes</th>
8069 <td align="center">INACTIVE</td>
8070 <td align="center"></td>
8071 <td align="center">INACTIVE</td>
8072 <td align="center">Camera device auto white balance algorithm is disabled</td>
8076 <p>When <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> is AWB_<wbr/>MODE_<wbr/>AUTO:</p>
8080 <th align="center">State</th>
8081 <th align="center">Transition Cause</th>
8082 <th align="center">New State</th>
8083 <th align="center">Notes</th>
8088 <td align="center">INACTIVE</td>
8089 <td align="center">Camera device initiates AWB scan</td>
8090 <td align="center">SEARCHING</td>
8091 <td align="center">Values changing</td>
8094 <td align="center">INACTIVE</td>
8095 <td align="center"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is ON</td>
8096 <td align="center">LOCKED</td>
8097 <td align="center">Values locked</td>
8100 <td align="center">SEARCHING</td>
8101 <td align="center">Camera device finishes AWB scan</td>
8102 <td align="center">CONVERGED</td>
8103 <td align="center">Good values,<wbr/> not changing</td>
8106 <td align="center">SEARCHING</td>
8107 <td align="center"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is ON</td>
8108 <td align="center">LOCKED</td>
8109 <td align="center">Values locked</td>
8112 <td align="center">CONVERGED</td>
8113 <td align="center">Camera device initiates AWB scan</td>
8114 <td align="center">SEARCHING</td>
8115 <td align="center">Values changing</td>
8118 <td align="center">CONVERGED</td>
8119 <td align="center"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is ON</td>
8120 <td align="center">LOCKED</td>
8121 <td align="center">Values locked</td>
8124 <td align="center">LOCKED</td>
8125 <td align="center"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is OFF</td>
8126 <td align="center">SEARCHING</td>
8127 <td align="center">Values not good after unlock</td>
8131 <p>For the above table,<wbr/> the camera device may skip reporting any state changes that happen
8132 without application intervention (i.<wbr/>e.<wbr/> mode switch,<wbr/> trigger,<wbr/> locking).<wbr/> Any state that
8133 can be skipped in that manner is called a transient state.<wbr/></p>
8134 <p>For example,<wbr/> for this AWB mode (AWB_<wbr/>MODE_<wbr/>AUTO),<wbr/> in addition to the state transitions
8135 listed in above table,<wbr/> it is also legal for the camera device to skip one or more
8136 transient states between two results.<wbr/> See below table for examples:</p>
8140 <th align="center">State</th>
8141 <th align="center">Transition Cause</th>
8142 <th align="center">New State</th>
8143 <th align="center">Notes</th>
8148 <td align="center">INACTIVE</td>
8149 <td align="center">Camera device finished AWB scan</td>
8150 <td align="center">CONVERGED</td>
8151 <td align="center">Values are already good,<wbr/> transient states are skipped by camera device.<wbr/></td>
8154 <td align="center">LOCKED</td>
8155 <td align="center"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is OFF</td>
8156 <td align="center">CONVERGED</td>
8157 <td align="center">Values good after unlock,<wbr/> transient states are skipped by camera device.<wbr/></td>
8165 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8166 <!-- end of entry -->
8169 <tr class="entry" id="dynamic_android.control.effectMode">
8170 <td class="entry_name
8172 android.<wbr/>control.<wbr/>effect<wbr/>Mode
8174 <td class="entry_type">
8175 <span class="entry_type_name entry_type_name_enum">byte</span>
8177 <span class="entry_type_visibility"> [public]</span>
8180 <span class="entry_type_hwlevel">[legacy] </span>
8184 <ul class="entry_type_enum">
8186 <span class="entry_type_enum_name">OFF</span>
8187 <span class="entry_type_enum_notes"><p>No color effect will be applied.<wbr/></p></span>
8190 <span class="entry_type_enum_name">MONO</span>
8191 <span class="entry_type_enum_optional">[optional]</span>
8192 <span class="entry_type_enum_notes"><p>A "monocolor" effect where the image is mapped into
8193 a single color.<wbr/></p>
8194 <p>This will typically be grayscale.<wbr/></p></span>
8197 <span class="entry_type_enum_name">NEGATIVE</span>
8198 <span class="entry_type_enum_optional">[optional]</span>
8199 <span class="entry_type_enum_notes"><p>A "photo-negative" effect where the image's colors
8200 are inverted.<wbr/></p></span>
8203 <span class="entry_type_enum_name">SOLARIZE</span>
8204 <span class="entry_type_enum_optional">[optional]</span>
8205 <span class="entry_type_enum_notes"><p>A "solarisation" effect (Sabattier effect) where the
8206 image is wholly or partially reversed in
8207 tone.<wbr/></p></span>
8210 <span class="entry_type_enum_name">SEPIA</span>
8211 <span class="entry_type_enum_optional">[optional]</span>
8212 <span class="entry_type_enum_notes"><p>A "sepia" effect where the image is mapped into warm
8213 gray,<wbr/> red,<wbr/> and brown tones.<wbr/></p></span>
8216 <span class="entry_type_enum_name">POSTERIZE</span>
8217 <span class="entry_type_enum_optional">[optional]</span>
8218 <span class="entry_type_enum_notes"><p>A "posterization" effect where the image uses
8219 discrete regions of tone rather than a continuous
8220 gradient of tones.<wbr/></p></span>
8223 <span class="entry_type_enum_name">WHITEBOARD</span>
8224 <span class="entry_type_enum_optional">[optional]</span>
8225 <span class="entry_type_enum_notes"><p>A "whiteboard" effect where the image is typically displayed
8226 as regions of white,<wbr/> with black or grey details.<wbr/></p></span>
8229 <span class="entry_type_enum_name">BLACKBOARD</span>
8230 <span class="entry_type_enum_optional">[optional]</span>
8231 <span class="entry_type_enum_notes"><p>A "blackboard" effect where the image is typically displayed
8232 as regions of black,<wbr/> with white or grey details.<wbr/></p></span>
8235 <span class="entry_type_enum_name">AQUA</span>
8236 <span class="entry_type_enum_optional">[optional]</span>
8237 <span class="entry_type_enum_notes"><p>An "aqua" effect where a blue hue is added to the image.<wbr/></p></span>
8241 </td> <!-- entry_type -->
8243 <td class="entry_description">
8244 <p>A special color effect to apply.<wbr/></p>
8247 <td class="entry_units">
8250 <td class="entry_range">
8251 <p><a href="#static_android.control.availableEffects">android.<wbr/>control.<wbr/>available<wbr/>Effects</a></p>
8254 <td class="entry_tags">
8255 <ul class="entry_tags">
8256 <li><a href="#tag_BC">BC</a></li>
8261 <tr class="entries_header">
8262 <th class="th_details" colspan="5">Details</th>
8264 <tr class="entry_cont">
8265 <td class="entry_details" colspan="5">
8266 <p>When this mode is set,<wbr/> a color effect will be applied
8267 to images produced by the camera device.<wbr/> The interpretation
8268 and implementation of these color effects is left to the
8269 implementor of the camera device,<wbr/> and should not be
8270 depended on to be consistent (or present) across all
8276 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8277 <!-- end of entry -->
8280 <tr class="entry" id="dynamic_android.control.mode">
8281 <td class="entry_name
8283 android.<wbr/>control.<wbr/>mode
8285 <td class="entry_type">
8286 <span class="entry_type_name entry_type_name_enum">byte</span>
8288 <span class="entry_type_visibility"> [public]</span>
8291 <span class="entry_type_hwlevel">[legacy] </span>
8295 <ul class="entry_type_enum">
8297 <span class="entry_type_enum_name">OFF</span>
8298 <span class="entry_type_enum_notes"><p>Full application control of pipeline.<wbr/></p>
8299 <p>All control by the device's metering and focusing (3A)
8300 routines is disabled,<wbr/> and no other settings in
8301 android.<wbr/>control.<wbr/>* have any effect,<wbr/> except that
8302 <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> may be used by the camera
8303 device to select post-processing values for processing
8304 blocks that do not allow for manual control,<wbr/> or are not
8305 exposed by the camera API.<wbr/></p>
8306 <p>However,<wbr/> the camera device's 3A routines may continue to
8307 collect statistics and update their internal state so that
8308 when control is switched to AUTO mode,<wbr/> good control values
8309 can be immediately applied.<wbr/></p></span>
8312 <span class="entry_type_enum_name">AUTO</span>
8313 <span class="entry_type_enum_notes"><p>Use settings for each individual 3A routine.<wbr/></p>
8314 <p>Manual control of capture parameters is disabled.<wbr/> All
8315 controls in android.<wbr/>control.<wbr/>* besides sceneMode take
8316 effect.<wbr/></p></span>
8319 <span class="entry_type_enum_name">USE_SCENE_MODE</span>
8320 <span class="entry_type_enum_optional">[optional]</span>
8321 <span class="entry_type_enum_notes"><p>Use a specific scene mode.<wbr/></p>
8322 <p>Enabling this disables control.<wbr/>aeMode,<wbr/> control.<wbr/>awbMode and
8323 control.<wbr/>afMode controls; the camera device will ignore
8324 those settings while USE_<wbr/>SCENE_<wbr/>MODE is active (except for
8325 FACE_<wbr/>PRIORITY scene mode).<wbr/> Other control entries are still active.<wbr/>
8326 This setting can only be used if scene mode is supported (i.<wbr/>e.<wbr/>
8327 <a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a>
8328 contain some modes other than DISABLED).<wbr/></p></span>
8331 <span class="entry_type_enum_name">OFF_KEEP_STATE</span>
8332 <span class="entry_type_enum_optional">[optional]</span>
8333 <span class="entry_type_enum_notes"><p>Same as OFF mode,<wbr/> except that this capture will not be
8334 used by camera device background auto-exposure,<wbr/> auto-white balance and
8335 auto-focus algorithms (3A) to update their statistics.<wbr/></p>
8336 <p>Specifically,<wbr/> the 3A routines are locked to the last
8337 values set from a request with AUTO,<wbr/> OFF,<wbr/> or
8338 USE_<wbr/>SCENE_<wbr/>MODE,<wbr/> and any statistics or state updates
8339 collected from manual captures with OFF_<wbr/>KEEP_<wbr/>STATE will be
8340 discarded by the camera device.<wbr/></p></span>
8344 </td> <!-- entry_type -->
8346 <td class="entry_description">
8347 <p>Overall mode of 3A (auto-exposure,<wbr/> auto-white-balance,<wbr/> auto-focus) control
8351 <td class="entry_units">
8354 <td class="entry_range">
8355 <p><a href="#static_android.control.availableModes">android.<wbr/>control.<wbr/>available<wbr/>Modes</a></p>
8358 <td class="entry_tags">
8359 <ul class="entry_tags">
8360 <li><a href="#tag_BC">BC</a></li>
8365 <tr class="entries_header">
8366 <th class="th_details" colspan="5">Details</th>
8368 <tr class="entry_cont">
8369 <td class="entry_details" colspan="5">
8370 <p>This is a top-level 3A control switch.<wbr/> When set to OFF,<wbr/> all 3A control
8371 by the camera device is disabled.<wbr/> The application must set the fields for
8372 capture parameters itself.<wbr/></p>
8373 <p>When set to AUTO,<wbr/> the individual algorithm controls in
8374 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>
8375 <p>When set to USE_<wbr/>SCENE_<wbr/>MODE,<wbr/> the individual controls in
8376 android.<wbr/>control.<wbr/>* are mostly disabled,<wbr/> and the camera device implements
8377 one of the scene mode settings (such as ACTION,<wbr/> SUNSET,<wbr/> or PARTY)
8378 as it wishes.<wbr/> The camera device scene mode 3A settings are provided by
8379 <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">capture results</a>.<wbr/></p>
8380 <p>When set to OFF_<wbr/>KEEP_<wbr/>STATE,<wbr/> it is similar to OFF mode,<wbr/> the only difference
8381 is that this frame will not be used by camera device background 3A statistics
8382 update,<wbr/> as if this frame is never captured.<wbr/> This mode can be used in the scenario
8383 where the application doesn't want a 3A manual control capture to affect
8384 the subsequent auto 3A capture results.<wbr/></p>
8389 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8390 <!-- end of entry -->
8393 <tr class="entry" id="dynamic_android.control.sceneMode">
8394 <td class="entry_name
8396 android.<wbr/>control.<wbr/>scene<wbr/>Mode
8398 <td class="entry_type">
8399 <span class="entry_type_name entry_type_name_enum">byte</span>
8401 <span class="entry_type_visibility"> [public]</span>
8404 <span class="entry_type_hwlevel">[legacy] </span>
8408 <ul class="entry_type_enum">
8410 <span class="entry_type_enum_name">DISABLED</span>
8411 <span class="entry_type_enum_value">0</span>
8412 <span class="entry_type_enum_notes"><p>Indicates that no scene modes are set for a given capture request.<wbr/></p></span>
8415 <span class="entry_type_enum_name">FACE_PRIORITY</span>
8416 <span class="entry_type_enum_notes"><p>If face detection support exists,<wbr/> use face
8417 detection data for auto-focus,<wbr/> auto-white balance,<wbr/> and
8418 auto-exposure routines.<wbr/></p>
8419 <p>If face detection statistics are disabled
8420 (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/>
8421 this should still operate correctly (but will not return
8422 face detection statistics to the framework).<wbr/></p>
8423 <p>Unlike the other scene modes,<wbr/> <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
8424 <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>
8425 remain active when FACE_<wbr/>PRIORITY is set.<wbr/></p></span>
8428 <span class="entry_type_enum_name">ACTION</span>
8429 <span class="entry_type_enum_optional">[optional]</span>
8430 <span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving objects.<wbr/></p>
8431 <p>Similar to SPORTS.<wbr/></p></span>
8434 <span class="entry_type_enum_name">PORTRAIT</span>
8435 <span class="entry_type_enum_optional">[optional]</span>
8436 <span class="entry_type_enum_notes"><p>Optimized for still photos of people.<wbr/></p></span>
8439 <span class="entry_type_enum_name">LANDSCAPE</span>
8440 <span class="entry_type_enum_optional">[optional]</span>
8441 <span class="entry_type_enum_notes"><p>Optimized for photos of distant macroscopic objects.<wbr/></p></span>
8444 <span class="entry_type_enum_name">NIGHT</span>
8445 <span class="entry_type_enum_optional">[optional]</span>
8446 <span class="entry_type_enum_notes"><p>Optimized for low-light settings.<wbr/></p></span>
8449 <span class="entry_type_enum_name">NIGHT_PORTRAIT</span>
8450 <span class="entry_type_enum_optional">[optional]</span>
8451 <span class="entry_type_enum_notes"><p>Optimized for still photos of people in low-light
8452 settings.<wbr/></p></span>
8455 <span class="entry_type_enum_name">THEATRE</span>
8456 <span class="entry_type_enum_optional">[optional]</span>
8457 <span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings where flash must
8458 remain off.<wbr/></p></span>
8461 <span class="entry_type_enum_name">BEACH</span>
8462 <span class="entry_type_enum_optional">[optional]</span>
8463 <span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor beach settings.<wbr/></p></span>
8466 <span class="entry_type_enum_name">SNOW</span>
8467 <span class="entry_type_enum_optional">[optional]</span>
8468 <span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor settings containing snow.<wbr/></p></span>
8471 <span class="entry_type_enum_name">SUNSET</span>
8472 <span class="entry_type_enum_optional">[optional]</span>
8473 <span class="entry_type_enum_notes"><p>Optimized for scenes of the setting sun.<wbr/></p></span>
8476 <span class="entry_type_enum_name">STEADYPHOTO</span>
8477 <span class="entry_type_enum_optional">[optional]</span>
8478 <span class="entry_type_enum_notes"><p>Optimized to avoid blurry photos due to small amounts of
8479 device motion (for example: due to hand shake).<wbr/></p></span>
8482 <span class="entry_type_enum_name">FIREWORKS</span>
8483 <span class="entry_type_enum_optional">[optional]</span>
8484 <span class="entry_type_enum_notes"><p>Optimized for nighttime photos of fireworks.<wbr/></p></span>
8487 <span class="entry_type_enum_name">SPORTS</span>
8488 <span class="entry_type_enum_optional">[optional]</span>
8489 <span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving people.<wbr/></p>
8490 <p>Similar to ACTION.<wbr/></p></span>
8493 <span class="entry_type_enum_name">PARTY</span>
8494 <span class="entry_type_enum_optional">[optional]</span>
8495 <span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings with multiple moving
8496 people.<wbr/></p></span>
8499 <span class="entry_type_enum_name">CANDLELIGHT</span>
8500 <span class="entry_type_enum_optional">[optional]</span>
8501 <span class="entry_type_enum_notes"><p>Optimized for dim settings where the main light source
8502 is a flame.<wbr/></p></span>
8505 <span class="entry_type_enum_name">BARCODE</span>
8506 <span class="entry_type_enum_optional">[optional]</span>
8507 <span class="entry_type_enum_notes"><p>Optimized for accurately capturing a photo of barcode
8508 for use by camera applications that wish to read the
8509 barcode value.<wbr/></p></span>
8512 <span class="entry_type_enum_name">HIGH_SPEED_VIDEO</span>
8513 <span class="entry_type_enum_deprecated">[deprecated]</span>
8514 <span class="entry_type_enum_optional">[optional]</span>
8515 <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>
8516 and <a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>
8517 for high speed video recording.<wbr/></p>
8518 <p>Optimized for high speed video recording (frame rate >=60fps) use case.<wbr/></p>
8519 <p>The supported high speed video sizes and fps ranges are specified in
8520 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/> To get desired
8521 output frame rates,<wbr/> the application is only allowed to select video size
8522 and fps range combinations listed in this static metadata.<wbr/> The fps range
8523 can be control via <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a>.<wbr/></p>
8524 <p>In this mode,<wbr/> the camera device will override aeMode,<wbr/> awbMode,<wbr/> and afMode to
8525 ON,<wbr/> ON,<wbr/> and CONTINUOUS_<wbr/>VIDEO,<wbr/> respectively.<wbr/> All post-processing block mode
8526 controls will be overridden to be FAST.<wbr/> Therefore,<wbr/> no manual control of capture
8527 and post-processing parameters is possible.<wbr/> All other controls operate the
8528 same as when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == AUTO.<wbr/> This means that all other
8529 android.<wbr/>control.<wbr/>* fields continue to work,<wbr/> such as</p>
8531 <li><a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a></li>
8532 <li><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a></li>
8533 <li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
8534 <li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
8535 <li><a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></li>
8536 <li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
8537 <li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
8538 <li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
8539 <li><a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a></li>
8540 <li><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a></li>
8542 <p>Outside of android.<wbr/>control.<wbr/>*,<wbr/> the following controls will work:</p>
8544 <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>
8545 <li><a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> (if it is supported)</li>
8546 <li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
8547 <li><a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a></li>
8549 <p>For high speed recording use case,<wbr/> the actual maximum supported frame rate may
8550 be lower than what camera can output,<wbr/> depending on the destination Surfaces for
8551 the image data.<wbr/> For example,<wbr/> if the destination surface is from video encoder,<wbr/>
8552 the application need check if the video encoder is capable of supporting the
8553 high frame rate for a given video size,<wbr/> or it will end up with lower recording
8554 frame rate.<wbr/> If the destination surface is from preview window,<wbr/> the preview frame
8555 rate will be bounded by the screen refresh rate.<wbr/></p>
8556 <p>The camera device will only support up to 2 output high speed streams
8557 (processed non-stalling format defined in <a href="#static_android.request.maxNumOutputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Streams</a>)
8558 in this mode.<wbr/> This control will be effective only if all of below conditions are true:</p>
8560 <li>The application created no more than maxNumHighSpeedStreams processed non-stalling
8561 format output streams,<wbr/> where maxNumHighSpeedStreams is calculated as
8562 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>
8563 <li>The stream sizes are selected from the sizes reported by
8564 <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/></li>
8565 <li>No processed non-stalling or raw streams are configured.<wbr/></li>
8567 <p>When above conditions are NOT satistied,<wbr/> the controls of this mode and
8568 <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/>
8569 the camera device will fall back to <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> <code>==</code> AUTO,<wbr/>
8570 and the returned capture result metadata will give the fps range choosen
8571 by the camera device.<wbr/></p>
8572 <p>Switching into or out of this mode may trigger some camera ISP/<wbr/>sensor
8573 reconfigurations,<wbr/> which may introduce extra latency.<wbr/> It is recommended that
8574 the application avoids unnecessary scene mode switch as much as possible.<wbr/></p></span>
8577 <span class="entry_type_enum_name">HDR</span>
8578 <span class="entry_type_enum_optional">[optional]</span>
8579 <span class="entry_type_enum_notes"><p>Turn on a device-specific high dynamic range (HDR) mode.<wbr/></p>
8580 <p>In this scene mode,<wbr/> the camera device captures images
8581 that keep a larger range of scene illumination levels
8582 visible in the final image.<wbr/> For example,<wbr/> when taking a
8583 picture of a object in front of a bright window,<wbr/> both
8584 the object and the scene through the window may be
8585 visible when using HDR mode,<wbr/> while in normal AUTO mode,<wbr/>
8586 one or the other may be poorly exposed.<wbr/> As a tradeoff,<wbr/>
8587 HDR mode generally takes much longer to capture a single
8588 image,<wbr/> has no user control,<wbr/> and may have other artifacts
8589 depending on the HDR method used.<wbr/></p>
8590 <p>Therefore,<wbr/> HDR captures operate at a much slower rate
8591 than regular captures.<wbr/></p>
8592 <p>In this mode,<wbr/> on LIMITED or FULL devices,<wbr/> when a request
8593 is made with a <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> of
8594 STILL_<wbr/>CAPTURE,<wbr/> the camera device will capture an image
8595 using a high dynamic range capture technique.<wbr/> On LEGACY
8596 devices,<wbr/> captures that target a JPEG-format output will
8597 be captured with HDR,<wbr/> and the capture intent is not
8599 <p>The HDR capture may involve the device capturing a burst
8600 of images internally and combining them into one,<wbr/> or it
8601 may involve the device using specialized high dynamic
8602 range capture hardware.<wbr/> In all cases,<wbr/> a single image is
8603 produced in response to a capture request submitted
8604 while in HDR mode.<wbr/></p>
8605 <p>Since substantial post-processing is generally needed to
8606 produce an HDR image,<wbr/> only YUV,<wbr/> PRIVATE,<wbr/> and JPEG
8607 outputs are supported for LIMITED/<wbr/>FULL device HDR
8608 captures,<wbr/> and only JPEG outputs are supported for LEGACY
8609 HDR captures.<wbr/> Using a RAW output for HDR capture is not
8610 supported.<wbr/></p>
8611 <p>Some devices may also support always-on HDR,<wbr/> which
8612 applies HDR processing at full frame rate.<wbr/> For these
8613 devices,<wbr/> intents other than STILL_<wbr/>CAPTURE will also
8614 produce an HDR output with no frame rate impact compared
8615 to normal operation,<wbr/> though the quality may be lower
8616 than for STILL_<wbr/>CAPTURE intents.<wbr/></p>
8617 <p>If SCENE_<wbr/>MODE_<wbr/>HDR is used with unsupported output types
8618 or capture intents,<wbr/> the images captured will be as if
8619 the SCENE_<wbr/>MODE was not enabled at all.<wbr/></p></span>
8622 <span class="entry_type_enum_name">FACE_PRIORITY_LOW_LIGHT</span>
8623 <span class="entry_type_enum_optional">[optional]</span>
8624 <span class="entry_type_enum_hidden">[hidden]</span>
8625 <span class="entry_type_enum_notes"><p>Same as FACE_<wbr/>PRIORITY scene mode,<wbr/> except that the camera
8626 device will choose higher sensitivity values (<a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>)
8627 under low light conditions.<wbr/></p>
8628 <p>The camera device may be tuned to expose the images in a reduced
8629 sensitivity range to produce the best quality images.<wbr/> For example,<wbr/>
8630 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/>
8631 the camera device auto-exposure routine tuning process may limit the actual
8632 exposure sensitivity range to [100,<wbr/> 1200] to ensure that the noise level isn't
8633 exessive in order to preserve the image quality.<wbr/> Under this situation,<wbr/> the image under
8634 low light may be under-exposed when the sensor max exposure time (bounded by the
8635 <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
8636 ON_<wbr/>* modes) and effective max sensitivity are reached.<wbr/> This scene mode allows the
8637 camera device auto-exposure routine to increase the sensitivity up to the max
8638 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
8639 dark and the max exposure time is reached.<wbr/> The captured images may be noisier
8640 compared with the images captured in normal FACE_<wbr/>PRIORITY mode; therefore,<wbr/> it is
8641 recommended that the application only use this scene mode when it is capable of
8642 reducing the noise level of the captured images.<wbr/></p>
8643 <p>Unlike the other scene modes,<wbr/> <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
8644 <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>
8645 remain active when FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT is set.<wbr/></p></span>
8648 <span class="entry_type_enum_name">DEVICE_CUSTOM_START</span>
8649 <span class="entry_type_enum_optional">[optional]</span>
8650 <span class="entry_type_enum_hidden">[hidden]</span>
8651 <span class="entry_type_enum_value">100</span>
8652 <span class="entry_type_enum_notes"><p>Scene mode values within the range of
8653 <code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
8654 customized scene modes.<wbr/></p></span>
8657 <span class="entry_type_enum_name">DEVICE_CUSTOM_END</span>
8658 <span class="entry_type_enum_optional">[optional]</span>
8659 <span class="entry_type_enum_hidden">[hidden]</span>
8660 <span class="entry_type_enum_value">127</span>
8661 <span class="entry_type_enum_notes"><p>Scene mode values within the range of
8662 <code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
8663 customized scene modes.<wbr/></p></span>
8667 </td> <!-- entry_type -->
8669 <td class="entry_description">
8670 <p>Control for which scene mode is currently active.<wbr/></p>
8673 <td class="entry_units">
8676 <td class="entry_range">
8677 <p><a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a></p>
8680 <td class="entry_tags">
8681 <ul class="entry_tags">
8682 <li><a href="#tag_BC">BC</a></li>
8687 <tr class="entries_header">
8688 <th class="th_details" colspan="5">Details</th>
8690 <tr class="entry_cont">
8691 <td class="entry_details" colspan="5">
8692 <p>Scene modes are custom camera modes optimized for a certain set of conditions and
8693 capture settings.<wbr/></p>
8694 <p>This is the mode that that is active when
8695 <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
8696 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>
8697 while in use.<wbr/></p>
8698 <p>The interpretation and implementation of these scene modes is left
8699 to the implementor of the camera device.<wbr/> Their behavior will not be
8700 consistent across all devices,<wbr/> and any given device may only implement
8701 a subset of these modes.<wbr/></p>
8705 <tr class="entries_header">
8706 <th class="th_details" colspan="5">HAL Implementation Details</th>
8708 <tr class="entry_cont">
8709 <td class="entry_details" colspan="5">
8710 <p>HAL implementations that include scene modes are expected to provide
8711 the per-scene settings to use for <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>,<wbr/>
8712 <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
8713 <a href="#static_android.control.sceneModeOverrides">android.<wbr/>control.<wbr/>scene<wbr/>Mode<wbr/>Overrides</a>.<wbr/></p>
8714 <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/>
8715 the HAL must list supported video size and fps range in
8716 <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/>
8717 1280x720,<wbr/> if the HAL has two different sensor configurations for normal streaming
8718 mode and high speed streaming,<wbr/> when this scene mode is set/<wbr/>reset in a sequence of capture
8719 requests,<wbr/> the HAL may have to switch between different sensor modes.<wbr/>
8720 This mode is deprecated in HAL3.<wbr/>3,<wbr/> to support high speed video recording,<wbr/> please implement
8721 <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
8722 capbility defined in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
8726 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8727 <!-- end of entry -->
8730 <tr class="entry" id="dynamic_android.control.videoStabilizationMode">
8731 <td class="entry_name
8733 android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode
8735 <td class="entry_type">
8736 <span class="entry_type_name entry_type_name_enum">byte</span>
8738 <span class="entry_type_visibility"> [public]</span>
8741 <span class="entry_type_hwlevel">[legacy] </span>
8745 <ul class="entry_type_enum">
8747 <span class="entry_type_enum_name">OFF</span>
8748 <span class="entry_type_enum_notes"><p>Video stabilization is disabled.<wbr/></p></span>
8751 <span class="entry_type_enum_name">ON</span>
8752 <span class="entry_type_enum_notes"><p>Video stabilization is enabled.<wbr/></p></span>
8756 </td> <!-- entry_type -->
8758 <td class="entry_description">
8759 <p>Whether video stabilization is
8763 <td class="entry_units">
8766 <td class="entry_range">
8769 <td class="entry_tags">
8770 <ul class="entry_tags">
8771 <li><a href="#tag_BC">BC</a></li>
8776 <tr class="entries_header">
8777 <th class="th_details" colspan="5">Details</th>
8779 <tr class="entry_cont">
8780 <td class="entry_details" colspan="5">
8781 <p>Video stabilization automatically warps images from
8782 the camera in order to stabilize motion between consecutive frames.<wbr/></p>
8783 <p>If enabled,<wbr/> video stabilization can modify the
8784 <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to keep the video stream stabilized.<wbr/></p>
8785 <p>Switching between different video stabilization modes may take several
8786 frames to initialize,<wbr/> the camera device will report the current mode
8787 in capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/>
8788 the video stabilization modes in the first several capture results may
8789 still be "OFF",<wbr/> and it will become "ON" when the initialization is
8791 <p>In addition,<wbr/> not all recording sizes or frame rates may be supported for
8792 stabilization by a device that reports stabilization support.<wbr/> It is guaranteed
8793 that an output targeting a MediaRecorder or MediaCodec will be stabilized if
8794 the recording resolution is less than or equal to 1920 x 1080 (width less than
8795 or equal to 1920,<wbr/> height less than or equal to 1080),<wbr/> and the recording
8796 frame rate is less than or equal to 30fps.<wbr/> At other sizes,<wbr/> the CaptureResult
8797 <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a> field will return
8798 OFF if the recording output is not stabilized,<wbr/> or if there are no output
8799 Surface types that can be stabilized.<wbr/></p>
8800 <p>If a camera device supports both this mode and OIS
8801 (<a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may
8802 produce undesirable interaction,<wbr/> so it is recommended not to enable
8803 both at the same time.<wbr/></p>
8808 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8809 <!-- end of entry -->
8812 <tr class="entry" id="dynamic_android.control.postRawSensitivityBoost">
8813 <td class="entry_name
8815 android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost
8817 <td class="entry_type">
8818 <span class="entry_type_name">int32</span>
8820 <span class="entry_type_visibility"> [public]</span>
8827 </td> <!-- entry_type -->
8829 <td class="entry_description">
8830 <p>The amount of additional sensitivity boost applied to output images
8831 after RAW sensor data is captured.<wbr/></p>
8834 <td class="entry_units">
8835 ISO arithmetic units,<wbr/> the same as android.<wbr/>sensor.<wbr/>sensitivity
8838 <td class="entry_range">
8839 <p><a href="#static_android.control.postRawSensitivityBoostRange">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost<wbr/>Range</a></p>
8842 <td class="entry_tags">
8846 <tr class="entries_header">
8847 <th class="th_details" colspan="5">Details</th>
8849 <tr class="entry_cont">
8850 <td class="entry_details" colspan="5">
8851 <p>Some camera devices support additional digital sensitivity boosting in the
8852 camera processing pipeline after sensor RAW image is captured.<wbr/>
8853 Such a boost will be applied to YUV/<wbr/>JPEG format output images but will not
8854 have effect on RAW output formats like RAW_<wbr/>SENSOR,<wbr/> RAW10,<wbr/> RAW12 or RAW_<wbr/>OPAQUE.<wbr/></p>
8855 <p>This key will be <code>null</code> for devices that do not support any RAW format
8856 outputs.<wbr/> For devices that do support RAW format outputs,<wbr/> this key will always
8857 present,<wbr/> and if a device does not support post RAW sensitivity boost,<wbr/> it will
8858 list <code>100</code> in this key.<wbr/></p>
8859 <p>If the camera device cannot apply the exact boost requested,<wbr/> it will reduce the
8860 boost to the nearest supported value.<wbr/>
8861 The final boost value used will be available in the output capture result.<wbr/></p>
8862 <p>For devices that support post RAW sensitivity boost,<wbr/> the YUV/<wbr/>JPEG output images
8863 of such device will have the total sensitivity of
8864 <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>
8865 The sensitivity of RAW format images will always be <code><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></code></p>
8866 <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
8867 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
8872 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8873 <!-- end of entry -->
8877 <!-- end of kind -->
8880 <!-- end of section -->
8881 <tr><td colspan="6" id="section_demosaic" class="section">demosaic</td></tr>
8884 <tr><td colspan="6" class="kind">controls</td></tr>
8886 <thead class="entries_header">
8888 <th class="th_name">Property Name</th>
8889 <th class="th_type">Type</th>
8890 <th class="th_description">Description</th>
8891 <th class="th_units">Units</th>
8892 <th class="th_range">Range</th>
8893 <th class="th_tags">Tags</th>
8908 <tr class="entry" id="controls_android.demosaic.mode">
8909 <td class="entry_name
8911 android.<wbr/>demosaic.<wbr/>mode
8913 <td class="entry_type">
8914 <span class="entry_type_name entry_type_name_enum">byte</span>
8916 <span class="entry_type_visibility"> [system]</span>
8922 <ul class="entry_type_enum">
8924 <span class="entry_type_enum_name">FAST</span>
8925 <span class="entry_type_enum_notes"><p>Minimal or no slowdown of frame rate compared to
8926 Bayer RAW output.<wbr/></p></span>
8929 <span class="entry_type_enum_name">HIGH_QUALITY</span>
8930 <span class="entry_type_enum_notes"><p>Improved processing quality but the frame rate might be slowed down
8931 relative to raw output.<wbr/></p></span>
8935 </td> <!-- entry_type -->
8937 <td class="entry_description">
8938 <p>Controls the quality of the demosaicing
8939 processing.<wbr/></p>
8942 <td class="entry_units">
8945 <td class="entry_range">
8948 <td class="entry_tags">
8949 <ul class="entry_tags">
8950 <li><a href="#tag_FUTURE">FUTURE</a></li>
8957 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
8958 <!-- end of entry -->
8962 <!-- end of kind -->
8965 <!-- end of section -->
8966 <tr><td colspan="6" id="section_edge" class="section">edge</td></tr>
8969 <tr><td colspan="6" class="kind">controls</td></tr>
8971 <thead class="entries_header">
8973 <th class="th_name">Property Name</th>
8974 <th class="th_type">Type</th>
8975 <th class="th_description">Description</th>
8976 <th class="th_units">Units</th>
8977 <th class="th_range">Range</th>
8978 <th class="th_tags">Tags</th>
8993 <tr class="entry" id="controls_android.edge.mode">
8994 <td class="entry_name
8996 android.<wbr/>edge.<wbr/>mode
8998 <td class="entry_type">
8999 <span class="entry_type_name entry_type_name_enum">byte</span>
9001 <span class="entry_type_visibility"> [public]</span>
9004 <span class="entry_type_hwlevel">[full] </span>
9008 <ul class="entry_type_enum">
9010 <span class="entry_type_enum_name">OFF</span>
9011 <span class="entry_type_enum_notes"><p>No edge enhancement is applied.<wbr/></p></span>
9014 <span class="entry_type_enum_name">FAST</span>
9015 <span class="entry_type_enum_notes"><p>Apply edge enhancement at a quality level that does not slow down frame rate
9016 relative to sensor output.<wbr/> It may be the same as OFF if edge enhancement will
9017 slow down frame rate relative to sensor.<wbr/></p></span>
9020 <span class="entry_type_enum_name">HIGH_QUALITY</span>
9021 <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>
9024 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
9025 <span class="entry_type_enum_optional">[optional]</span>
9026 <span class="entry_type_enum_notes"><p>Edge enhancement is applied at different levels for different output streams,<wbr/>
9027 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
9028 edge enhancement applied,<wbr/> while higher-resolution streams have no edge enhancement
9029 applied.<wbr/> The level of edge enhancement for low-resolution streams is tuned so that
9030 frame rate is not impacted,<wbr/> and the quality is equal to or better than FAST (since it
9031 is only applied to lower-resolution outputs,<wbr/> quality may improve from FAST).<wbr/></p>
9032 <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
9033 with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
9034 high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
9035 produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
9036 high-resolution buffers must not have edge enhancement applied to maximize efficiency of
9037 preview and to avoid double-applying enhancement when reprocessed,<wbr/> while low-resolution
9038 buffers (used for recording or preview,<wbr/> generally) need edge enhancement applied for
9039 reasonable preview quality.<wbr/></p>
9040 <p>This mode is guaranteed to be supported by devices that support either the
9041 YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
9042 (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
9043 be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
9047 </td> <!-- entry_type -->
9049 <td class="entry_description">
9050 <p>Operation mode for edge
9051 enhancement.<wbr/></p>
9054 <td class="entry_units">
9057 <td class="entry_range">
9058 <p><a href="#static_android.edge.availableEdgeModes">android.<wbr/>edge.<wbr/>available<wbr/>Edge<wbr/>Modes</a></p>
9061 <td class="entry_tags">
9062 <ul class="entry_tags">
9063 <li><a href="#tag_V1">V1</a></li>
9064 <li><a href="#tag_REPROC">REPROC</a></li>
9069 <tr class="entries_header">
9070 <th class="th_details" colspan="5">Details</th>
9072 <tr class="entry_cont">
9073 <td class="entry_details" colspan="5">
9074 <p>Edge enhancement improves sharpness and details in the captured image.<wbr/> OFF means
9075 no enhancement will be applied by the camera device.<wbr/></p>
9076 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined enhancement
9077 will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the
9078 camera device will use the highest-quality enhancement algorithms,<wbr/>
9079 even if it slows down capture rate.<wbr/> FAST means the camera device will
9080 not slow down capture rate when applying edge enhancement.<wbr/> FAST may be the same as OFF if
9081 edge enhancement will slow down capture rate.<wbr/> Every output stream will have a similar
9082 amount of enhancement applied.<wbr/></p>
9083 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
9084 buffer of high-resolution images during preview and reprocess image(s) from that buffer
9085 into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
9086 edge enhancement to low-resolution streams (below maximum recording resolution) to
9087 maximize preview quality,<wbr/> but does not apply edge enhancement to high-resolution streams,<wbr/>
9088 since those will be reprocessed later if necessary.<wbr/></p>
9089 <p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera
9090 device will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV-domain edge enhancement,<wbr/> respectively.<wbr/>
9091 The camera device may adjust its internal edge enhancement parameters for best
9092 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>
9096 <tr class="entries_header">
9097 <th class="th_details" colspan="5">HAL Implementation Details</th>
9099 <tr class="entry_cont">
9100 <td class="entry_details" colspan="5">
9101 <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
9102 adjust the internal edge enhancement reduction parameters appropriately to get the best
9103 quality images.<wbr/></p>
9107 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9108 <!-- end of entry -->
9111 <tr class="entry" id="controls_android.edge.strength">
9112 <td class="entry_name
9114 android.<wbr/>edge.<wbr/>strength
9116 <td class="entry_type">
9117 <span class="entry_type_name">byte</span>
9119 <span class="entry_type_visibility"> [system]</span>
9126 </td> <!-- entry_type -->
9128 <td class="entry_description">
9129 <p>Control the amount of edge enhancement
9130 applied to the images</p>
9133 <td class="entry_units">
9134 1-10; 10 is maximum sharpening
9137 <td class="entry_range">
9140 <td class="entry_tags">
9141 <ul class="entry_tags">
9142 <li><a href="#tag_FUTURE">FUTURE</a></li>
9149 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9150 <!-- end of entry -->
9154 <!-- end of kind -->
9156 <tr><td colspan="6" class="kind">static</td></tr>
9158 <thead class="entries_header">
9160 <th class="th_name">Property Name</th>
9161 <th class="th_type">Type</th>
9162 <th class="th_description">Description</th>
9163 <th class="th_units">Units</th>
9164 <th class="th_range">Range</th>
9165 <th class="th_tags">Tags</th>
9180 <tr class="entry" id="static_android.edge.availableEdgeModes">
9181 <td class="entry_name
9183 android.<wbr/>edge.<wbr/>available<wbr/>Edge<wbr/>Modes
9185 <td class="entry_type">
9186 <span class="entry_type_name">byte</span>
9187 <span class="entry_type_container">x</span>
9189 <span class="entry_type_array">
9192 <span class="entry_type_visibility"> [public as enumList]</span>
9195 <span class="entry_type_hwlevel">[full] </span>
9198 <div class="entry_type_notes">list of enums</div>
9201 </td> <!-- entry_type -->
9203 <td class="entry_description">
9204 <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
9208 <td class="entry_units">
9211 <td class="entry_range">
9212 <p>Any value listed in <a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a></p>
9215 <td class="entry_tags">
9216 <ul class="entry_tags">
9217 <li><a href="#tag_V1">V1</a></li>
9218 <li><a href="#tag_REPROC">REPROC</a></li>
9223 <tr class="entries_header">
9224 <th class="th_details" colspan="5">Details</th>
9226 <tr class="entry_cont">
9227 <td class="entry_details" colspan="5">
9228 <p>Full-capability camera devices must always support OFF; camera devices that support
9229 YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING will list ZERO_<wbr/>SHUTTER_<wbr/>LAG; all devices will
9230 list FAST.<wbr/></p>
9234 <tr class="entries_header">
9235 <th class="th_details" colspan="5">HAL Implementation Details</th>
9237 <tr class="entry_cont">
9238 <td class="entry_details" colspan="5">
9239 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if edge enhancement control is available
9240 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
9241 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
9242 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
9246 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9247 <!-- end of entry -->
9251 <!-- end of kind -->
9253 <tr><td colspan="6" class="kind">dynamic</td></tr>
9255 <thead class="entries_header">
9257 <th class="th_name">Property Name</th>
9258 <th class="th_type">Type</th>
9259 <th class="th_description">Description</th>
9260 <th class="th_units">Units</th>
9261 <th class="th_range">Range</th>
9262 <th class="th_tags">Tags</th>
9277 <tr class="entry" id="dynamic_android.edge.mode">
9278 <td class="entry_name
9280 android.<wbr/>edge.<wbr/>mode
9282 <td class="entry_type">
9283 <span class="entry_type_name entry_type_name_enum">byte</span>
9285 <span class="entry_type_visibility"> [public]</span>
9288 <span class="entry_type_hwlevel">[full] </span>
9292 <ul class="entry_type_enum">
9294 <span class="entry_type_enum_name">OFF</span>
9295 <span class="entry_type_enum_notes"><p>No edge enhancement is applied.<wbr/></p></span>
9298 <span class="entry_type_enum_name">FAST</span>
9299 <span class="entry_type_enum_notes"><p>Apply edge enhancement at a quality level that does not slow down frame rate
9300 relative to sensor output.<wbr/> It may be the same as OFF if edge enhancement will
9301 slow down frame rate relative to sensor.<wbr/></p></span>
9304 <span class="entry_type_enum_name">HIGH_QUALITY</span>
9305 <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>
9308 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
9309 <span class="entry_type_enum_optional">[optional]</span>
9310 <span class="entry_type_enum_notes"><p>Edge enhancement is applied at different levels for different output streams,<wbr/>
9311 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
9312 edge enhancement applied,<wbr/> while higher-resolution streams have no edge enhancement
9313 applied.<wbr/> The level of edge enhancement for low-resolution streams is tuned so that
9314 frame rate is not impacted,<wbr/> and the quality is equal to or better than FAST (since it
9315 is only applied to lower-resolution outputs,<wbr/> quality may improve from FAST).<wbr/></p>
9316 <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
9317 with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
9318 high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
9319 produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
9320 high-resolution buffers must not have edge enhancement applied to maximize efficiency of
9321 preview and to avoid double-applying enhancement when reprocessed,<wbr/> while low-resolution
9322 buffers (used for recording or preview,<wbr/> generally) need edge enhancement applied for
9323 reasonable preview quality.<wbr/></p>
9324 <p>This mode is guaranteed to be supported by devices that support either the
9325 YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
9326 (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
9327 be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
9331 </td> <!-- entry_type -->
9333 <td class="entry_description">
9334 <p>Operation mode for edge
9335 enhancement.<wbr/></p>
9338 <td class="entry_units">
9341 <td class="entry_range">
9342 <p><a href="#static_android.edge.availableEdgeModes">android.<wbr/>edge.<wbr/>available<wbr/>Edge<wbr/>Modes</a></p>
9345 <td class="entry_tags">
9346 <ul class="entry_tags">
9347 <li><a href="#tag_V1">V1</a></li>
9348 <li><a href="#tag_REPROC">REPROC</a></li>
9353 <tr class="entries_header">
9354 <th class="th_details" colspan="5">Details</th>
9356 <tr class="entry_cont">
9357 <td class="entry_details" colspan="5">
9358 <p>Edge enhancement improves sharpness and details in the captured image.<wbr/> OFF means
9359 no enhancement will be applied by the camera device.<wbr/></p>
9360 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined enhancement
9361 will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the
9362 camera device will use the highest-quality enhancement algorithms,<wbr/>
9363 even if it slows down capture rate.<wbr/> FAST means the camera device will
9364 not slow down capture rate when applying edge enhancement.<wbr/> FAST may be the same as OFF if
9365 edge enhancement will slow down capture rate.<wbr/> Every output stream will have a similar
9366 amount of enhancement applied.<wbr/></p>
9367 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
9368 buffer of high-resolution images during preview and reprocess image(s) from that buffer
9369 into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
9370 edge enhancement to low-resolution streams (below maximum recording resolution) to
9371 maximize preview quality,<wbr/> but does not apply edge enhancement to high-resolution streams,<wbr/>
9372 since those will be reprocessed later if necessary.<wbr/></p>
9373 <p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera
9374 device will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV-domain edge enhancement,<wbr/> respectively.<wbr/>
9375 The camera device may adjust its internal edge enhancement parameters for best
9376 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>
9380 <tr class="entries_header">
9381 <th class="th_details" colspan="5">HAL Implementation Details</th>
9383 <tr class="entry_cont">
9384 <td class="entry_details" colspan="5">
9385 <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
9386 adjust the internal edge enhancement reduction parameters appropriately to get the best
9387 quality images.<wbr/></p>
9391 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9392 <!-- end of entry -->
9396 <!-- end of kind -->
9399 <!-- end of section -->
9400 <tr><td colspan="6" id="section_flash" class="section">flash</td></tr>
9403 <tr><td colspan="6" class="kind">controls</td></tr>
9405 <thead class="entries_header">
9407 <th class="th_name">Property Name</th>
9408 <th class="th_type">Type</th>
9409 <th class="th_description">Description</th>
9410 <th class="th_units">Units</th>
9411 <th class="th_range">Range</th>
9412 <th class="th_tags">Tags</th>
9427 <tr class="entry" id="controls_android.flash.firingPower">
9428 <td class="entry_name
9430 android.<wbr/>flash.<wbr/>firing<wbr/>Power
9432 <td class="entry_type">
9433 <span class="entry_type_name">byte</span>
9435 <span class="entry_type_visibility"> [system]</span>
9442 </td> <!-- entry_type -->
9444 <td class="entry_description">
9445 <p>Power for flash firing/<wbr/>torch</p>
9448 <td class="entry_units">
9449 10 is max power; 0 is no flash.<wbr/> Linear
9452 <td class="entry_range">
9456 <td class="entry_tags">
9457 <ul class="entry_tags">
9458 <li><a href="#tag_FUTURE">FUTURE</a></li>
9463 <tr class="entries_header">
9464 <th class="th_details" colspan="5">Details</th>
9466 <tr class="entry_cont">
9467 <td class="entry_details" colspan="5">
9468 <p>Power for snapshot may use a different scale than
9469 for torch mode.<wbr/> Only one entry for torch mode will be
9475 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9476 <!-- end of entry -->
9479 <tr class="entry" id="controls_android.flash.firingTime">
9480 <td class="entry_name
9482 android.<wbr/>flash.<wbr/>firing<wbr/>Time
9484 <td class="entry_type">
9485 <span class="entry_type_name">int64</span>
9487 <span class="entry_type_visibility"> [system]</span>
9494 </td> <!-- entry_type -->
9496 <td class="entry_description">
9497 <p>Firing time of flash relative to start of
9501 <td class="entry_units">
9505 <td class="entry_range">
9506 <p>0-(exposure time-flash duration)</p>
9509 <td class="entry_tags">
9510 <ul class="entry_tags">
9511 <li><a href="#tag_FUTURE">FUTURE</a></li>
9516 <tr class="entries_header">
9517 <th class="th_details" colspan="5">Details</th>
9519 <tr class="entry_cont">
9520 <td class="entry_details" colspan="5">
9521 <p>Clamped to (0,<wbr/> exposure time - flash
9522 duration).<wbr/></p>
9527 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9528 <!-- end of entry -->
9531 <tr class="entry" id="controls_android.flash.mode">
9532 <td class="entry_name
9534 android.<wbr/>flash.<wbr/>mode
9536 <td class="entry_type">
9537 <span class="entry_type_name entry_type_name_enum">byte</span>
9539 <span class="entry_type_visibility"> [public]</span>
9542 <span class="entry_type_hwlevel">[legacy] </span>
9546 <ul class="entry_type_enum">
9548 <span class="entry_type_enum_name">OFF</span>
9549 <span class="entry_type_enum_notes"><p>Do not fire the flash for this capture.<wbr/></p></span>
9552 <span class="entry_type_enum_name">SINGLE</span>
9553 <span class="entry_type_enum_notes"><p>If the flash is available and charged,<wbr/> fire flash
9554 for this capture.<wbr/></p></span>
9557 <span class="entry_type_enum_name">TORCH</span>
9558 <span class="entry_type_enum_notes"><p>Transition flash to continuously on.<wbr/></p></span>
9562 </td> <!-- entry_type -->
9564 <td class="entry_description">
9565 <p>The desired mode for for the camera device's flash control.<wbr/></p>
9568 <td class="entry_units">
9571 <td class="entry_range">
9574 <td class="entry_tags">
9575 <ul class="entry_tags">
9576 <li><a href="#tag_BC">BC</a></li>
9581 <tr class="entries_header">
9582 <th class="th_details" colspan="5">Details</th>
9584 <tr class="entry_cont">
9585 <td class="entry_details" colspan="5">
9586 <p>This control is only effective when flash unit is available
9587 (<code><a href="#static_android.flash.info.available">android.<wbr/>flash.<wbr/>info.<wbr/>available</a> == true</code>).<wbr/></p>
9588 <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/>
9589 Otherwise,<wbr/> the camera device auto-exposure related flash control (ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/>
9590 ON_<wbr/>ALWAYS_<wbr/>FLASH,<wbr/> or ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE) will override this control.<wbr/></p>
9591 <p>When set to OFF,<wbr/> the camera device will not fire flash for this capture.<wbr/></p>
9592 <p>When set to SINGLE,<wbr/> the camera device will fire flash regardless of the camera
9593 device's auto-exposure routine's result.<wbr/> When used in still capture case,<wbr/> this
9594 control should be used along with auto-exposure (AE) precapture metering sequence
9595 (<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>
9596 <p>When set to TORCH,<wbr/> the flash will be on continuously.<wbr/> This mode can be used
9597 for use cases such as preview,<wbr/> auto-focus assist,<wbr/> still capture,<wbr/> or video recording.<wbr/></p>
9598 <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>
9603 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9604 <!-- end of entry -->
9608 <!-- end of kind -->
9610 <tr><td colspan="6" class="kind">static</td></tr>
9612 <thead class="entries_header">
9614 <th class="th_name">Property Name</th>
9615 <th class="th_type">Type</th>
9616 <th class="th_description">Description</th>
9617 <th class="th_units">Units</th>
9618 <th class="th_range">Range</th>
9619 <th class="th_tags">Tags</th>
9636 <tr class="entry" id="static_android.flash.info.available">
9637 <td class="entry_name
9639 android.<wbr/>flash.<wbr/>info.<wbr/>available
9641 <td class="entry_type">
9642 <span class="entry_type_name entry_type_name_enum">byte</span>
9644 <span class="entry_type_visibility"> [public as boolean]</span>
9647 <span class="entry_type_hwlevel">[legacy] </span>
9651 <ul class="entry_type_enum">
9653 <span class="entry_type_enum_name">FALSE</span>
9656 <span class="entry_type_enum_name">TRUE</span>
9660 </td> <!-- entry_type -->
9662 <td class="entry_description">
9663 <p>Whether this camera device has a
9664 flash unit.<wbr/></p>
9667 <td class="entry_units">
9670 <td class="entry_range">
9673 <td class="entry_tags">
9674 <ul class="entry_tags">
9675 <li><a href="#tag_BC">BC</a></li>
9680 <tr class="entries_header">
9681 <th class="th_details" colspan="5">Details</th>
9683 <tr class="entry_cont">
9684 <td class="entry_details" colspan="5">
9685 <p>Will be <code>false</code> if no flash is available.<wbr/></p>
9686 <p>If there is no flash unit,<wbr/> none of the flash controls do
9692 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9693 <!-- end of entry -->
9696 <tr class="entry" id="static_android.flash.info.chargeDuration">
9697 <td class="entry_name
9699 android.<wbr/>flash.<wbr/>info.<wbr/>charge<wbr/>Duration
9701 <td class="entry_type">
9702 <span class="entry_type_name">int64</span>
9704 <span class="entry_type_visibility"> [system]</span>
9711 </td> <!-- entry_type -->
9713 <td class="entry_description">
9714 <p>Time taken before flash can fire
9718 <td class="entry_units">
9722 <td class="entry_range">
9726 <td class="entry_tags">
9727 <ul class="entry_tags">
9728 <li><a href="#tag_FUTURE">FUTURE</a></li>
9733 <tr class="entries_header">
9734 <th class="th_details" colspan="5">Details</th>
9736 <tr class="entry_cont">
9737 <td class="entry_details" colspan="5">
9738 <p>1 second too long/<wbr/>too short for recharge? Should
9739 this be power-dependent?</p>
9744 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9745 <!-- end of entry -->
9751 <tr class="entry" id="static_android.flash.colorTemperature">
9752 <td class="entry_name
9754 android.<wbr/>flash.<wbr/>color<wbr/>Temperature
9756 <td class="entry_type">
9757 <span class="entry_type_name">byte</span>
9759 <span class="entry_type_visibility"> [system]</span>
9766 </td> <!-- entry_type -->
9768 <td class="entry_description">
9769 <p>The x,<wbr/>y whitepoint of the
9773 <td class="entry_units">
9777 <td class="entry_range">
9781 <td class="entry_tags">
9782 <ul class="entry_tags">
9783 <li><a href="#tag_FUTURE">FUTURE</a></li>
9790 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9791 <!-- end of entry -->
9794 <tr class="entry" id="static_android.flash.maxEnergy">
9795 <td class="entry_name
9797 android.<wbr/>flash.<wbr/>max<wbr/>Energy
9799 <td class="entry_type">
9800 <span class="entry_type_name">byte</span>
9802 <span class="entry_type_visibility"> [system]</span>
9809 </td> <!-- entry_type -->
9811 <td class="entry_description">
9812 <p>Max energy output of the flash for a full
9813 power single flash</p>
9816 <td class="entry_units">
9820 <td class="entry_range">
9824 <td class="entry_tags">
9825 <ul class="entry_tags">
9826 <li><a href="#tag_FUTURE">FUTURE</a></li>
9833 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9834 <!-- end of entry -->
9838 <!-- end of kind -->
9840 <tr><td colspan="6" class="kind">dynamic</td></tr>
9842 <thead class="entries_header">
9844 <th class="th_name">Property Name</th>
9845 <th class="th_type">Type</th>
9846 <th class="th_description">Description</th>
9847 <th class="th_units">Units</th>
9848 <th class="th_range">Range</th>
9849 <th class="th_tags">Tags</th>
9864 <tr class="entry" id="dynamic_android.flash.firingPower">
9865 <td class="entry_name
9867 android.<wbr/>flash.<wbr/>firing<wbr/>Power
9869 <td class="entry_type">
9870 <span class="entry_type_name">byte</span>
9872 <span class="entry_type_visibility"> [system]</span>
9879 </td> <!-- entry_type -->
9881 <td class="entry_description">
9882 <p>Power for flash firing/<wbr/>torch</p>
9885 <td class="entry_units">
9886 10 is max power; 0 is no flash.<wbr/> Linear
9889 <td class="entry_range">
9893 <td class="entry_tags">
9894 <ul class="entry_tags">
9895 <li><a href="#tag_FUTURE">FUTURE</a></li>
9900 <tr class="entries_header">
9901 <th class="th_details" colspan="5">Details</th>
9903 <tr class="entry_cont">
9904 <td class="entry_details" colspan="5">
9905 <p>Power for snapshot may use a different scale than
9906 for torch mode.<wbr/> Only one entry for torch mode will be
9912 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9913 <!-- end of entry -->
9916 <tr class="entry" id="dynamic_android.flash.firingTime">
9917 <td class="entry_name
9919 android.<wbr/>flash.<wbr/>firing<wbr/>Time
9921 <td class="entry_type">
9922 <span class="entry_type_name">int64</span>
9924 <span class="entry_type_visibility"> [system]</span>
9931 </td> <!-- entry_type -->
9933 <td class="entry_description">
9934 <p>Firing time of flash relative to start of
9938 <td class="entry_units">
9942 <td class="entry_range">
9943 <p>0-(exposure time-flash duration)</p>
9946 <td class="entry_tags">
9947 <ul class="entry_tags">
9948 <li><a href="#tag_FUTURE">FUTURE</a></li>
9953 <tr class="entries_header">
9954 <th class="th_details" colspan="5">Details</th>
9956 <tr class="entry_cont">
9957 <td class="entry_details" colspan="5">
9958 <p>Clamped to (0,<wbr/> exposure time - flash
9959 duration).<wbr/></p>
9964 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
9965 <!-- end of entry -->
9968 <tr class="entry" id="dynamic_android.flash.mode">
9969 <td class="entry_name
9971 android.<wbr/>flash.<wbr/>mode
9973 <td class="entry_type">
9974 <span class="entry_type_name entry_type_name_enum">byte</span>
9976 <span class="entry_type_visibility"> [public]</span>
9979 <span class="entry_type_hwlevel">[legacy] </span>
9983 <ul class="entry_type_enum">
9985 <span class="entry_type_enum_name">OFF</span>
9986 <span class="entry_type_enum_notes"><p>Do not fire the flash for this capture.<wbr/></p></span>
9989 <span class="entry_type_enum_name">SINGLE</span>
9990 <span class="entry_type_enum_notes"><p>If the flash is available and charged,<wbr/> fire flash
9991 for this capture.<wbr/></p></span>
9994 <span class="entry_type_enum_name">TORCH</span>
9995 <span class="entry_type_enum_notes"><p>Transition flash to continuously on.<wbr/></p></span>
9999 </td> <!-- entry_type -->
10001 <td class="entry_description">
10002 <p>The desired mode for for the camera device's flash control.<wbr/></p>
10005 <td class="entry_units">
10008 <td class="entry_range">
10011 <td class="entry_tags">
10012 <ul class="entry_tags">
10013 <li><a href="#tag_BC">BC</a></li>
10018 <tr class="entries_header">
10019 <th class="th_details" colspan="5">Details</th>
10021 <tr class="entry_cont">
10022 <td class="entry_details" colspan="5">
10023 <p>This control is only effective when flash unit is available
10024 (<code><a href="#static_android.flash.info.available">android.<wbr/>flash.<wbr/>info.<wbr/>available</a> == true</code>).<wbr/></p>
10025 <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/>
10026 Otherwise,<wbr/> the camera device auto-exposure related flash control (ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/>
10027 ON_<wbr/>ALWAYS_<wbr/>FLASH,<wbr/> or ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE) will override this control.<wbr/></p>
10028 <p>When set to OFF,<wbr/> the camera device will not fire flash for this capture.<wbr/></p>
10029 <p>When set to SINGLE,<wbr/> the camera device will fire flash regardless of the camera
10030 device's auto-exposure routine's result.<wbr/> When used in still capture case,<wbr/> this
10031 control should be used along with auto-exposure (AE) precapture metering sequence
10032 (<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>
10033 <p>When set to TORCH,<wbr/> the flash will be on continuously.<wbr/> This mode can be used
10034 for use cases such as preview,<wbr/> auto-focus assist,<wbr/> still capture,<wbr/> or video recording.<wbr/></p>
10035 <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>
10040 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10041 <!-- end of entry -->
10044 <tr class="entry" id="dynamic_android.flash.state">
10045 <td class="entry_name
10047 android.<wbr/>flash.<wbr/>state
10049 <td class="entry_type">
10050 <span class="entry_type_name entry_type_name_enum">byte</span>
10052 <span class="entry_type_visibility"> [public]</span>
10055 <span class="entry_type_hwlevel">[limited] </span>
10059 <ul class="entry_type_enum">
10061 <span class="entry_type_enum_name">UNAVAILABLE</span>
10062 <span class="entry_type_enum_notes"><p>No flash on camera.<wbr/></p></span>
10065 <span class="entry_type_enum_name">CHARGING</span>
10066 <span class="entry_type_enum_notes"><p>Flash is charging and cannot be fired.<wbr/></p></span>
10069 <span class="entry_type_enum_name">READY</span>
10070 <span class="entry_type_enum_notes"><p>Flash is ready to fire.<wbr/></p></span>
10073 <span class="entry_type_enum_name">FIRED</span>
10074 <span class="entry_type_enum_notes"><p>Flash fired for this capture.<wbr/></p></span>
10077 <span class="entry_type_enum_name">PARTIAL</span>
10078 <span class="entry_type_enum_notes"><p>Flash partially illuminated this frame.<wbr/></p>
10079 <p>This is usually due to the next or previous frame having
10080 the flash fire,<wbr/> and the flash spilling into this capture
10081 due to hardware limitations.<wbr/></p></span>
10085 </td> <!-- entry_type -->
10087 <td class="entry_description">
10088 <p>Current state of the flash
10092 <td class="entry_units">
10095 <td class="entry_range">
10098 <td class="entry_tags">
10102 <tr class="entries_header">
10103 <th class="th_details" colspan="5">Details</th>
10105 <tr class="entry_cont">
10106 <td class="entry_details" colspan="5">
10107 <p>When the camera device doesn't have flash unit
10108 (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/>
10109 Other states indicate the current flash status.<wbr/></p>
10110 <p>In certain conditions,<wbr/> this will be available on LEGACY devices:</p>
10112 <li>Flash-less cameras always return UNAVAILABLE.<wbr/></li>
10113 <li>Using <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>==</code> ON_<wbr/>ALWAYS_<wbr/>FLASH
10114 will always return FIRED.<wbr/></li>
10115 <li>Using <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> <code>==</code> TORCH
10116 will always return FIRED.<wbr/></li>
10118 <p>In all other conditions the state will not be available on
10119 LEGACY devices (i.<wbr/>e.<wbr/> it will be <code>null</code>).<wbr/></p>
10124 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10125 <!-- end of entry -->
10129 <!-- end of kind -->
10132 <!-- end of section -->
10133 <tr><td colspan="6" id="section_hotPixel" class="section">hotPixel</td></tr>
10136 <tr><td colspan="6" class="kind">controls</td></tr>
10138 <thead class="entries_header">
10140 <th class="th_name">Property Name</th>
10141 <th class="th_type">Type</th>
10142 <th class="th_description">Description</th>
10143 <th class="th_units">Units</th>
10144 <th class="th_range">Range</th>
10145 <th class="th_tags">Tags</th>
10160 <tr class="entry" id="controls_android.hotPixel.mode">
10161 <td class="entry_name
10163 android.<wbr/>hot<wbr/>Pixel.<wbr/>mode
10165 <td class="entry_type">
10166 <span class="entry_type_name entry_type_name_enum">byte</span>
10168 <span class="entry_type_visibility"> [public]</span>
10174 <ul class="entry_type_enum">
10176 <span class="entry_type_enum_name">OFF</span>
10177 <span class="entry_type_enum_notes"><p>No hot pixel correction is applied.<wbr/></p>
10178 <p>The frame rate must not be reduced relative to sensor raw output
10179 for this option.<wbr/></p>
10180 <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>
10183 <span class="entry_type_enum_name">FAST</span>
10184 <span class="entry_type_enum_notes"><p>Hot pixel correction is applied,<wbr/> without reducing frame
10185 rate relative to sensor raw output.<wbr/></p>
10186 <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>
10189 <span class="entry_type_enum_name">HIGH_QUALITY</span>
10190 <span class="entry_type_enum_notes"><p>High-quality hot pixel correction is applied,<wbr/> at a cost
10191 of possibly reduced frame rate relative to sensor raw output.<wbr/></p>
10192 <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>
10196 </td> <!-- entry_type -->
10198 <td class="entry_description">
10199 <p>Operational mode for hot pixel correction.<wbr/></p>
10202 <td class="entry_units">
10205 <td class="entry_range">
10206 <p><a href="#static_android.hotPixel.availableHotPixelModes">android.<wbr/>hot<wbr/>Pixel.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Modes</a></p>
10209 <td class="entry_tags">
10210 <ul class="entry_tags">
10211 <li><a href="#tag_V1">V1</a></li>
10212 <li><a href="#tag_RAW">RAW</a></li>
10217 <tr class="entries_header">
10218 <th class="th_details" colspan="5">Details</th>
10220 <tr class="entry_cont">
10221 <td class="entry_details" colspan="5">
10222 <p>Hotpixel correction interpolates out,<wbr/> or otherwise removes,<wbr/> pixels
10223 that do not accurately measure the incoming light (i.<wbr/>e.<wbr/> pixels that
10224 are stuck at an arbitrary value or are oversensitive).<wbr/></p>
10229 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10230 <!-- end of entry -->
10234 <!-- end of kind -->
10236 <tr><td colspan="6" class="kind">static</td></tr>
10238 <thead class="entries_header">
10240 <th class="th_name">Property Name</th>
10241 <th class="th_type">Type</th>
10242 <th class="th_description">Description</th>
10243 <th class="th_units">Units</th>
10244 <th class="th_range">Range</th>
10245 <th class="th_tags">Tags</th>
10260 <tr class="entry" id="static_android.hotPixel.availableHotPixelModes">
10261 <td class="entry_name
10263 android.<wbr/>hot<wbr/>Pixel.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Modes
10265 <td class="entry_type">
10266 <span class="entry_type_name">byte</span>
10267 <span class="entry_type_container">x</span>
10269 <span class="entry_type_array">
10272 <span class="entry_type_visibility"> [public as enumList]</span>
10277 <div class="entry_type_notes">list of enums</div>
10280 </td> <!-- entry_type -->
10282 <td class="entry_description">
10283 <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
10284 camera device.<wbr/></p>
10287 <td class="entry_units">
10290 <td class="entry_range">
10291 <p>Any value listed in <a href="#controls_android.hotPixel.mode">android.<wbr/>hot<wbr/>Pixel.<wbr/>mode</a></p>
10294 <td class="entry_tags">
10295 <ul class="entry_tags">
10296 <li><a href="#tag_V1">V1</a></li>
10297 <li><a href="#tag_RAW">RAW</a></li>
10302 <tr class="entries_header">
10303 <th class="th_details" colspan="5">Details</th>
10305 <tr class="entry_cont">
10306 <td class="entry_details" colspan="5">
10307 <p>FULL mode camera devices will always support FAST.<wbr/></p>
10311 <tr class="entries_header">
10312 <th class="th_details" colspan="5">HAL Implementation Details</th>
10314 <tr class="entry_cont">
10315 <td class="entry_details" colspan="5">
10316 <p>To avoid performance issues,<wbr/> there will be significantly fewer hot
10317 pixels than actual pixels on the camera sensor.<wbr/>
10318 HAL must support both FAST and HIGH_<wbr/>QUALITY if hot pixel correction control is available
10319 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
10320 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
10321 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
10325 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10326 <!-- end of entry -->
10330 <!-- end of kind -->
10332 <tr><td colspan="6" class="kind">dynamic</td></tr>
10334 <thead class="entries_header">
10336 <th class="th_name">Property Name</th>
10337 <th class="th_type">Type</th>
10338 <th class="th_description">Description</th>
10339 <th class="th_units">Units</th>
10340 <th class="th_range">Range</th>
10341 <th class="th_tags">Tags</th>
10356 <tr class="entry" id="dynamic_android.hotPixel.mode">
10357 <td class="entry_name
10359 android.<wbr/>hot<wbr/>Pixel.<wbr/>mode
10361 <td class="entry_type">
10362 <span class="entry_type_name entry_type_name_enum">byte</span>
10364 <span class="entry_type_visibility"> [public]</span>
10370 <ul class="entry_type_enum">
10372 <span class="entry_type_enum_name">OFF</span>
10373 <span class="entry_type_enum_notes"><p>No hot pixel correction is applied.<wbr/></p>
10374 <p>The frame rate must not be reduced relative to sensor raw output
10375 for this option.<wbr/></p>
10376 <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>
10379 <span class="entry_type_enum_name">FAST</span>
10380 <span class="entry_type_enum_notes"><p>Hot pixel correction is applied,<wbr/> without reducing frame
10381 rate relative to sensor raw output.<wbr/></p>
10382 <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>
10385 <span class="entry_type_enum_name">HIGH_QUALITY</span>
10386 <span class="entry_type_enum_notes"><p>High-quality hot pixel correction is applied,<wbr/> at a cost
10387 of possibly reduced frame rate relative to sensor raw output.<wbr/></p>
10388 <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>
10392 </td> <!-- entry_type -->
10394 <td class="entry_description">
10395 <p>Operational mode for hot pixel correction.<wbr/></p>
10398 <td class="entry_units">
10401 <td class="entry_range">
10402 <p><a href="#static_android.hotPixel.availableHotPixelModes">android.<wbr/>hot<wbr/>Pixel.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Modes</a></p>
10405 <td class="entry_tags">
10406 <ul class="entry_tags">
10407 <li><a href="#tag_V1">V1</a></li>
10408 <li><a href="#tag_RAW">RAW</a></li>
10413 <tr class="entries_header">
10414 <th class="th_details" colspan="5">Details</th>
10416 <tr class="entry_cont">
10417 <td class="entry_details" colspan="5">
10418 <p>Hotpixel correction interpolates out,<wbr/> or otherwise removes,<wbr/> pixels
10419 that do not accurately measure the incoming light (i.<wbr/>e.<wbr/> pixels that
10420 are stuck at an arbitrary value or are oversensitive).<wbr/></p>
10425 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10426 <!-- end of entry -->
10430 <!-- end of kind -->
10433 <!-- end of section -->
10434 <tr><td colspan="6" id="section_jpeg" class="section">jpeg</td></tr>
10437 <tr><td colspan="6" class="kind">controls</td></tr>
10439 <thead class="entries_header">
10441 <th class="th_name">Property Name</th>
10442 <th class="th_type">Type</th>
10443 <th class="th_description">Description</th>
10444 <th class="th_units">Units</th>
10445 <th class="th_range">Range</th>
10446 <th class="th_tags">Tags</th>
10461 <tr class="entry" id="controls_android.jpeg.gpsLocation">
10462 <td class="entry_name
10464 android.<wbr/>jpeg.<wbr/>gps<wbr/>Location
10466 <td class="entry_type">
10467 <span class="entry_type_name">byte</span>
10469 <span class="entry_type_visibility"> [java_public as location]</span>
10471 <span class="entry_type_synthetic">[synthetic] </span>
10473 <span class="entry_type_hwlevel">[legacy] </span>
10478 </td> <!-- entry_type -->
10480 <td class="entry_description">
10481 <p>A location object to use when generating image GPS metadata.<wbr/></p>
10484 <td class="entry_units">
10487 <td class="entry_range">
10490 <td class="entry_tags">
10494 <tr class="entries_header">
10495 <th class="th_details" colspan="5">Details</th>
10497 <tr class="entry_cont">
10498 <td class="entry_details" colspan="5">
10499 <p>Setting a location object in a request will include the GPS coordinates of the location
10500 into any JPEG images captured based on the request.<wbr/> These coordinates can then be
10501 viewed by anyone who receives the JPEG image.<wbr/></p>
10506 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10507 <!-- end of entry -->
10510 <tr class="entry" id="controls_android.jpeg.gpsCoordinates">
10511 <td class="entry_name
10513 android.<wbr/>jpeg.<wbr/>gps<wbr/>Coordinates
10515 <td class="entry_type">
10516 <span class="entry_type_name">double</span>
10517 <span class="entry_type_container">x</span>
10519 <span class="entry_type_array">
10522 <span class="entry_type_visibility"> [ndk_public]</span>
10525 <span class="entry_type_hwlevel">[legacy] </span>
10528 <div class="entry_type_notes">latitude,<wbr/> longitude,<wbr/> altitude.<wbr/> First two in degrees,<wbr/> the third in meters</div>
10531 </td> <!-- entry_type -->
10533 <td class="entry_description">
10534 <p>GPS coordinates to include in output JPEG
10538 <td class="entry_units">
10541 <td class="entry_range">
10542 <p>(-180 - 180],<wbr/> [-90,<wbr/>90],<wbr/> [-inf,<wbr/> inf]</p>
10545 <td class="entry_tags">
10546 <ul class="entry_tags">
10547 <li><a href="#tag_BC">BC</a></li>
10554 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10555 <!-- end of entry -->
10558 <tr class="entry" id="controls_android.jpeg.gpsProcessingMethod">
10559 <td class="entry_name
10561 android.<wbr/>jpeg.<wbr/>gps<wbr/>Processing<wbr/>Method
10563 <td class="entry_type">
10564 <span class="entry_type_name">byte</span>
10566 <span class="entry_type_visibility"> [ndk_public as string]</span>
10569 <span class="entry_type_hwlevel">[legacy] </span>
10574 </td> <!-- entry_type -->
10576 <td class="entry_description">
10577 <p>32 characters describing GPS algorithm to
10578 include in EXIF.<wbr/></p>
10581 <td class="entry_units">
10582 UTF-8 null-terminated string
10585 <td class="entry_range">
10588 <td class="entry_tags">
10589 <ul class="entry_tags">
10590 <li><a href="#tag_BC">BC</a></li>
10597 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10598 <!-- end of entry -->
10601 <tr class="entry" id="controls_android.jpeg.gpsTimestamp">
10602 <td class="entry_name
10604 android.<wbr/>jpeg.<wbr/>gps<wbr/>Timestamp
10606 <td class="entry_type">
10607 <span class="entry_type_name">int64</span>
10609 <span class="entry_type_visibility"> [ndk_public]</span>
10612 <span class="entry_type_hwlevel">[legacy] </span>
10617 </td> <!-- entry_type -->
10619 <td class="entry_description">
10620 <p>Time GPS fix was made to include in
10624 <td class="entry_units">
10625 UTC in seconds since January 1,<wbr/> 1970
10628 <td class="entry_range">
10631 <td class="entry_tags">
10632 <ul class="entry_tags">
10633 <li><a href="#tag_BC">BC</a></li>
10640 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10641 <!-- end of entry -->
10644 <tr class="entry" id="controls_android.jpeg.orientation">
10645 <td class="entry_name
10647 android.<wbr/>jpeg.<wbr/>orientation
10649 <td class="entry_type">
10650 <span class="entry_type_name">int32</span>
10652 <span class="entry_type_visibility"> [public]</span>
10655 <span class="entry_type_hwlevel">[legacy] </span>
10660 </td> <!-- entry_type -->
10662 <td class="entry_description">
10663 <p>The orientation for a JPEG image.<wbr/></p>
10666 <td class="entry_units">
10667 Degrees in multiples of 90
10670 <td class="entry_range">
10671 <p>0,<wbr/> 90,<wbr/> 180,<wbr/> 270</p>
10674 <td class="entry_tags">
10675 <ul class="entry_tags">
10676 <li><a href="#tag_BC">BC</a></li>
10681 <tr class="entries_header">
10682 <th class="th_details" colspan="5">Details</th>
10684 <tr class="entry_cont">
10685 <td class="entry_details" colspan="5">
10686 <p>The clockwise rotation angle in degrees,<wbr/> relative to the orientation
10687 to the camera,<wbr/> that the JPEG picture needs to be rotated by,<wbr/> to be viewed
10689 <p>Camera devices may either encode this value into the JPEG EXIF header,<wbr/> or
10690 rotate the image data to match this orientation.<wbr/> When the image data is rotated,<wbr/>
10691 the thumbnail data will also be rotated.<wbr/></p>
10692 <p>Note that this orientation is relative to the orientation of the camera sensor,<wbr/> given
10693 by <a href="#static_android.sensor.orientation">android.<wbr/>sensor.<wbr/>orientation</a>.<wbr/></p>
10694 <p>To translate from the device orientation given by the Android sensor APIs,<wbr/> the following
10695 sample code may be used:</p>
10696 <pre><code>private int getJpegOrientation(CameraCharacteristics c,<wbr/> int deviceOrientation) {
10697 if (deviceOrientation == android.<wbr/>view.<wbr/>Orientation<wbr/>Event<wbr/>Listener.<wbr/>ORIENTATION_<wbr/>UNKNOWN) return 0;
10698 int sensorOrientation = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>SENSOR_<wbr/>ORIENTATION);
10700 //<wbr/> Round device orientation to a multiple of 90
10701 deviceOrientation = (deviceOrientation + 45) /<wbr/> 90 * 90;
10703 //<wbr/> Reverse device orientation for front-facing cameras
10704 boolean facingFront = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING) == Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING_<wbr/>FRONT;
10705 if (facingFront) deviceOrientation = -deviceOrientation;
10707 //<wbr/> Calculate desired JPEG orientation relative to camera orientation to make
10708 //<wbr/> the image upright relative to the device orientation
10709 int jpegOrientation = (sensorOrientation + deviceOrientation + 360) % 360;
10711 return jpegOrientation;
10718 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10719 <!-- end of entry -->
10722 <tr class="entry" id="controls_android.jpeg.quality">
10723 <td class="entry_name
10725 android.<wbr/>jpeg.<wbr/>quality
10727 <td class="entry_type">
10728 <span class="entry_type_name">byte</span>
10730 <span class="entry_type_visibility"> [public]</span>
10733 <span class="entry_type_hwlevel">[legacy] </span>
10738 </td> <!-- entry_type -->
10740 <td class="entry_description">
10741 <p>Compression quality of the final JPEG
10745 <td class="entry_units">
10748 <td class="entry_range">
10749 <p>1-100; larger is higher quality</p>
10752 <td class="entry_tags">
10753 <ul class="entry_tags">
10754 <li><a href="#tag_BC">BC</a></li>
10759 <tr class="entries_header">
10760 <th class="th_details" colspan="5">Details</th>
10762 <tr class="entry_cont">
10763 <td class="entry_details" colspan="5">
10764 <p>85-95 is typical usage range.<wbr/></p>
10769 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10770 <!-- end of entry -->
10773 <tr class="entry" id="controls_android.jpeg.thumbnailQuality">
10774 <td class="entry_name
10776 android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Quality
10778 <td class="entry_type">
10779 <span class="entry_type_name">byte</span>
10781 <span class="entry_type_visibility"> [public]</span>
10784 <span class="entry_type_hwlevel">[legacy] </span>
10789 </td> <!-- entry_type -->
10791 <td class="entry_description">
10792 <p>Compression quality of JPEG
10793 thumbnail.<wbr/></p>
10796 <td class="entry_units">
10799 <td class="entry_range">
10800 <p>1-100; larger is higher quality</p>
10803 <td class="entry_tags">
10804 <ul class="entry_tags">
10805 <li><a href="#tag_BC">BC</a></li>
10812 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10813 <!-- end of entry -->
10816 <tr class="entry" id="controls_android.jpeg.thumbnailSize">
10817 <td class="entry_name
10819 android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Size
10821 <td class="entry_type">
10822 <span class="entry_type_name">int32</span>
10823 <span class="entry_type_container">x</span>
10825 <span class="entry_type_array">
10828 <span class="entry_type_visibility"> [public as size]</span>
10831 <span class="entry_type_hwlevel">[legacy] </span>
10836 </td> <!-- entry_type -->
10838 <td class="entry_description">
10839 <p>Resolution of embedded JPEG thumbnail.<wbr/></p>
10842 <td class="entry_units">
10845 <td class="entry_range">
10846 <p><a href="#static_android.jpeg.availableThumbnailSizes">android.<wbr/>jpeg.<wbr/>available<wbr/>Thumbnail<wbr/>Sizes</a></p>
10849 <td class="entry_tags">
10850 <ul class="entry_tags">
10851 <li><a href="#tag_BC">BC</a></li>
10856 <tr class="entries_header">
10857 <th class="th_details" colspan="5">Details</th>
10859 <tr class="entry_cont">
10860 <td class="entry_details" colspan="5">
10861 <p>When set to (0,<wbr/> 0) value,<wbr/> the JPEG EXIF will not contain thumbnail,<wbr/>
10862 but the captured JPEG will still be a valid image.<wbr/></p>
10863 <p>For best results,<wbr/> when issuing a request for a JPEG image,<wbr/> the thumbnail size selected
10864 should have the same aspect ratio as the main JPEG output.<wbr/></p>
10865 <p>If the thumbnail image aspect ratio differs from the JPEG primary image aspect
10866 ratio,<wbr/> the camera device creates the thumbnail by cropping it from the primary image.<wbr/>
10867 For example,<wbr/> if the primary image has 4:3 aspect ratio,<wbr/> the thumbnail image has
10868 16:9 aspect ratio,<wbr/> the primary image will be cropped vertically (letterbox) to
10869 generate the thumbnail image.<wbr/> The thumbnail image will always have a smaller Field
10870 Of View (FOV) than the primary image when aspect ratios differ.<wbr/></p>
10871 <p>When an <a href="#controls_android.jpeg.orientation">android.<wbr/>jpeg.<wbr/>orientation</a> of non-zero degree is requested,<wbr/>
10872 the camera device will handle thumbnail rotation in one of the following ways:</p>
10874 <li>Set the <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>
10875 and keep jpeg and thumbnail image data unrotated.<wbr/></li>
10876 <li>Rotate the jpeg and thumbnail image data and not set
10877 <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>.<wbr/> In this
10878 case,<wbr/> LIMITED or FULL hardware level devices will report rotated thumnail size in
10879 capture result,<wbr/> so the width and height will be interchanged if 90 or 270 degree
10880 orientation is requested.<wbr/> LEGACY device will always report unrotated thumbnail
10886 <tr class="entries_header">
10887 <th class="th_details" colspan="5">HAL Implementation Details</th>
10889 <tr class="entry_cont">
10890 <td class="entry_details" colspan="5">
10891 <p>The HAL must not squeeze or stretch the downscaled primary image to generate thumbnail.<wbr/>
10892 The cropping must be done on the primary jpeg image rather than the sensor active array.<wbr/>
10893 The stream cropping rule specified by "S5.<wbr/> Cropping" in camera3.<wbr/>h doesn't apply to the
10894 thumbnail image cropping.<wbr/></p>
10898 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10899 <!-- end of entry -->
10903 <!-- end of kind -->
10905 <tr><td colspan="6" class="kind">static</td></tr>
10907 <thead class="entries_header">
10909 <th class="th_name">Property Name</th>
10910 <th class="th_type">Type</th>
10911 <th class="th_description">Description</th>
10912 <th class="th_units">Units</th>
10913 <th class="th_range">Range</th>
10914 <th class="th_tags">Tags</th>
10929 <tr class="entry" id="static_android.jpeg.availableThumbnailSizes">
10930 <td class="entry_name
10932 android.<wbr/>jpeg.<wbr/>available<wbr/>Thumbnail<wbr/>Sizes
10934 <td class="entry_type">
10935 <span class="entry_type_name">int32</span>
10936 <span class="entry_type_container">x</span>
10938 <span class="entry_type_array">
10941 <span class="entry_type_visibility"> [public as size]</span>
10944 <span class="entry_type_hwlevel">[legacy] </span>
10949 </td> <!-- entry_type -->
10951 <td class="entry_description">
10952 <p>List of JPEG thumbnail sizes for <a href="#controls_android.jpeg.thumbnailSize">android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Size</a> supported by this
10953 camera device.<wbr/></p>
10956 <td class="entry_units">
10959 <td class="entry_range">
10962 <td class="entry_tags">
10963 <ul class="entry_tags">
10964 <li><a href="#tag_BC">BC</a></li>
10969 <tr class="entries_header">
10970 <th class="th_details" colspan="5">Details</th>
10972 <tr class="entry_cont">
10973 <td class="entry_details" colspan="5">
10974 <p>This list will include at least one non-zero resolution,<wbr/> plus <code>(0,<wbr/>0)</code> for indicating no
10975 thumbnail should be generated.<wbr/></p>
10976 <p>Below condiditions will be satisfied for this size list:</p>
10978 <li>The sizes will be sorted by increasing pixel area (width x height).<wbr/>
10979 If several resolutions have the same area,<wbr/> they will be sorted by increasing width.<wbr/></li>
10980 <li>The aspect ratio of the largest thumbnail size will be same as the
10981 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/>
10982 The largest size is defined as the size that has the largest pixel area
10983 in a given size list.<wbr/></li>
10984 <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
10985 one corresponding size that has the same aspect ratio in availableThumbnailSizes,<wbr/>
10986 and vice versa.<wbr/></li>
10987 <li>All non-<code>(0,<wbr/> 0)</code> sizes will have non-zero widths and heights.<wbr/></li>
10993 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
10994 <!-- end of entry -->
10997 <tr class="entry" id="static_android.jpeg.maxSize">
10998 <td class="entry_name
11000 android.<wbr/>jpeg.<wbr/>max<wbr/>Size
11002 <td class="entry_type">
11003 <span class="entry_type_name">int32</span>
11005 <span class="entry_type_visibility"> [system]</span>
11012 </td> <!-- entry_type -->
11014 <td class="entry_description">
11015 <p>Maximum size in bytes for the compressed
11019 <td class="entry_units">
11022 <td class="entry_range">
11023 <p>Must be large enough to fit any JPEG produced by
11027 <td class="entry_tags">
11031 <tr class="entries_header">
11032 <th class="th_details" colspan="5">Details</th>
11034 <tr class="entry_cont">
11035 <td class="entry_details" colspan="5">
11036 <p>This is used for sizing the gralloc buffers for
11042 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11043 <!-- end of entry -->
11047 <!-- end of kind -->
11049 <tr><td colspan="6" class="kind">dynamic</td></tr>
11051 <thead class="entries_header">
11053 <th class="th_name">Property Name</th>
11054 <th class="th_type">Type</th>
11055 <th class="th_description">Description</th>
11056 <th class="th_units">Units</th>
11057 <th class="th_range">Range</th>
11058 <th class="th_tags">Tags</th>
11073 <tr class="entry" id="dynamic_android.jpeg.gpsLocation">
11074 <td class="entry_name
11076 android.<wbr/>jpeg.<wbr/>gps<wbr/>Location
11078 <td class="entry_type">
11079 <span class="entry_type_name">byte</span>
11081 <span class="entry_type_visibility"> [java_public as location]</span>
11083 <span class="entry_type_synthetic">[synthetic] </span>
11085 <span class="entry_type_hwlevel">[legacy] </span>
11090 </td> <!-- entry_type -->
11092 <td class="entry_description">
11093 <p>A location object to use when generating image GPS metadata.<wbr/></p>
11096 <td class="entry_units">
11099 <td class="entry_range">
11102 <td class="entry_tags">
11106 <tr class="entries_header">
11107 <th class="th_details" colspan="5">Details</th>
11109 <tr class="entry_cont">
11110 <td class="entry_details" colspan="5">
11111 <p>Setting a location object in a request will include the GPS coordinates of the location
11112 into any JPEG images captured based on the request.<wbr/> These coordinates can then be
11113 viewed by anyone who receives the JPEG image.<wbr/></p>
11118 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11119 <!-- end of entry -->
11122 <tr class="entry" id="dynamic_android.jpeg.gpsCoordinates">
11123 <td class="entry_name
11125 android.<wbr/>jpeg.<wbr/>gps<wbr/>Coordinates
11127 <td class="entry_type">
11128 <span class="entry_type_name">double</span>
11129 <span class="entry_type_container">x</span>
11131 <span class="entry_type_array">
11134 <span class="entry_type_visibility"> [ndk_public]</span>
11137 <span class="entry_type_hwlevel">[legacy] </span>
11140 <div class="entry_type_notes">latitude,<wbr/> longitude,<wbr/> altitude.<wbr/> First two in degrees,<wbr/> the third in meters</div>
11143 </td> <!-- entry_type -->
11145 <td class="entry_description">
11146 <p>GPS coordinates to include in output JPEG
11150 <td class="entry_units">
11153 <td class="entry_range">
11154 <p>(-180 - 180],<wbr/> [-90,<wbr/>90],<wbr/> [-inf,<wbr/> inf]</p>
11157 <td class="entry_tags">
11158 <ul class="entry_tags">
11159 <li><a href="#tag_BC">BC</a></li>
11166 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11167 <!-- end of entry -->
11170 <tr class="entry" id="dynamic_android.jpeg.gpsProcessingMethod">
11171 <td class="entry_name
11173 android.<wbr/>jpeg.<wbr/>gps<wbr/>Processing<wbr/>Method
11175 <td class="entry_type">
11176 <span class="entry_type_name">byte</span>
11178 <span class="entry_type_visibility"> [ndk_public as string]</span>
11181 <span class="entry_type_hwlevel">[legacy] </span>
11186 </td> <!-- entry_type -->
11188 <td class="entry_description">
11189 <p>32 characters describing GPS algorithm to
11190 include in EXIF.<wbr/></p>
11193 <td class="entry_units">
11194 UTF-8 null-terminated string
11197 <td class="entry_range">
11200 <td class="entry_tags">
11201 <ul class="entry_tags">
11202 <li><a href="#tag_BC">BC</a></li>
11209 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11210 <!-- end of entry -->
11213 <tr class="entry" id="dynamic_android.jpeg.gpsTimestamp">
11214 <td class="entry_name
11216 android.<wbr/>jpeg.<wbr/>gps<wbr/>Timestamp
11218 <td class="entry_type">
11219 <span class="entry_type_name">int64</span>
11221 <span class="entry_type_visibility"> [ndk_public]</span>
11224 <span class="entry_type_hwlevel">[legacy] </span>
11229 </td> <!-- entry_type -->
11231 <td class="entry_description">
11232 <p>Time GPS fix was made to include in
11236 <td class="entry_units">
11237 UTC in seconds since January 1,<wbr/> 1970
11240 <td class="entry_range">
11243 <td class="entry_tags">
11244 <ul class="entry_tags">
11245 <li><a href="#tag_BC">BC</a></li>
11252 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11253 <!-- end of entry -->
11256 <tr class="entry" id="dynamic_android.jpeg.orientation">
11257 <td class="entry_name
11259 android.<wbr/>jpeg.<wbr/>orientation
11261 <td class="entry_type">
11262 <span class="entry_type_name">int32</span>
11264 <span class="entry_type_visibility"> [public]</span>
11267 <span class="entry_type_hwlevel">[legacy] </span>
11272 </td> <!-- entry_type -->
11274 <td class="entry_description">
11275 <p>The orientation for a JPEG image.<wbr/></p>
11278 <td class="entry_units">
11279 Degrees in multiples of 90
11282 <td class="entry_range">
11283 <p>0,<wbr/> 90,<wbr/> 180,<wbr/> 270</p>
11286 <td class="entry_tags">
11287 <ul class="entry_tags">
11288 <li><a href="#tag_BC">BC</a></li>
11293 <tr class="entries_header">
11294 <th class="th_details" colspan="5">Details</th>
11296 <tr class="entry_cont">
11297 <td class="entry_details" colspan="5">
11298 <p>The clockwise rotation angle in degrees,<wbr/> relative to the orientation
11299 to the camera,<wbr/> that the JPEG picture needs to be rotated by,<wbr/> to be viewed
11301 <p>Camera devices may either encode this value into the JPEG EXIF header,<wbr/> or
11302 rotate the image data to match this orientation.<wbr/> When the image data is rotated,<wbr/>
11303 the thumbnail data will also be rotated.<wbr/></p>
11304 <p>Note that this orientation is relative to the orientation of the camera sensor,<wbr/> given
11305 by <a href="#static_android.sensor.orientation">android.<wbr/>sensor.<wbr/>orientation</a>.<wbr/></p>
11306 <p>To translate from the device orientation given by the Android sensor APIs,<wbr/> the following
11307 sample code may be used:</p>
11308 <pre><code>private int getJpegOrientation(CameraCharacteristics c,<wbr/> int deviceOrientation) {
11309 if (deviceOrientation == android.<wbr/>view.<wbr/>Orientation<wbr/>Event<wbr/>Listener.<wbr/>ORIENTATION_<wbr/>UNKNOWN) return 0;
11310 int sensorOrientation = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>SENSOR_<wbr/>ORIENTATION);
11312 //<wbr/> Round device orientation to a multiple of 90
11313 deviceOrientation = (deviceOrientation + 45) /<wbr/> 90 * 90;
11315 //<wbr/> Reverse device orientation for front-facing cameras
11316 boolean facingFront = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING) == Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING_<wbr/>FRONT;
11317 if (facingFront) deviceOrientation = -deviceOrientation;
11319 //<wbr/> Calculate desired JPEG orientation relative to camera orientation to make
11320 //<wbr/> the image upright relative to the device orientation
11321 int jpegOrientation = (sensorOrientation + deviceOrientation + 360) % 360;
11323 return jpegOrientation;
11330 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11331 <!-- end of entry -->
11334 <tr class="entry" id="dynamic_android.jpeg.quality">
11335 <td class="entry_name
11337 android.<wbr/>jpeg.<wbr/>quality
11339 <td class="entry_type">
11340 <span class="entry_type_name">byte</span>
11342 <span class="entry_type_visibility"> [public]</span>
11345 <span class="entry_type_hwlevel">[legacy] </span>
11350 </td> <!-- entry_type -->
11352 <td class="entry_description">
11353 <p>Compression quality of the final JPEG
11357 <td class="entry_units">
11360 <td class="entry_range">
11361 <p>1-100; larger is higher quality</p>
11364 <td class="entry_tags">
11365 <ul class="entry_tags">
11366 <li><a href="#tag_BC">BC</a></li>
11371 <tr class="entries_header">
11372 <th class="th_details" colspan="5">Details</th>
11374 <tr class="entry_cont">
11375 <td class="entry_details" colspan="5">
11376 <p>85-95 is typical usage range.<wbr/></p>
11381 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11382 <!-- end of entry -->
11385 <tr class="entry" id="dynamic_android.jpeg.size">
11386 <td class="entry_name
11388 android.<wbr/>jpeg.<wbr/>size
11390 <td class="entry_type">
11391 <span class="entry_type_name">int32</span>
11393 <span class="entry_type_visibility"> [system]</span>
11400 </td> <!-- entry_type -->
11402 <td class="entry_description">
11403 <p>The size of the compressed JPEG image,<wbr/> in
11407 <td class="entry_units">
11410 <td class="entry_range">
11414 <td class="entry_tags">
11415 <ul class="entry_tags">
11416 <li><a href="#tag_FUTURE">FUTURE</a></li>
11421 <tr class="entries_header">
11422 <th class="th_details" colspan="5">Details</th>
11424 <tr class="entry_cont">
11425 <td class="entry_details" colspan="5">
11426 <p>If no JPEG output is produced for the request,<wbr/>
11427 this must be 0.<wbr/></p>
11428 <p>Otherwise,<wbr/> this describes the real size of the compressed
11429 JPEG image placed in the output stream.<wbr/> More specifically,<wbr/>
11430 if <a href="#static_android.jpeg.maxSize">android.<wbr/>jpeg.<wbr/>max<wbr/>Size</a> = 1000000,<wbr/> and a specific capture
11431 has <a href="#dynamic_android.jpeg.size">android.<wbr/>jpeg.<wbr/>size</a> = 500000,<wbr/> then the output buffer from
11432 the JPEG stream will be 1000000 bytes,<wbr/> of which the first
11433 500000 make up the real data.<wbr/></p>
11438 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11439 <!-- end of entry -->
11442 <tr class="entry" id="dynamic_android.jpeg.thumbnailQuality">
11443 <td class="entry_name
11445 android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Quality
11447 <td class="entry_type">
11448 <span class="entry_type_name">byte</span>
11450 <span class="entry_type_visibility"> [public]</span>
11453 <span class="entry_type_hwlevel">[legacy] </span>
11458 </td> <!-- entry_type -->
11460 <td class="entry_description">
11461 <p>Compression quality of JPEG
11462 thumbnail.<wbr/></p>
11465 <td class="entry_units">
11468 <td class="entry_range">
11469 <p>1-100; larger is higher quality</p>
11472 <td class="entry_tags">
11473 <ul class="entry_tags">
11474 <li><a href="#tag_BC">BC</a></li>
11481 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11482 <!-- end of entry -->
11485 <tr class="entry" id="dynamic_android.jpeg.thumbnailSize">
11486 <td class="entry_name
11488 android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Size
11490 <td class="entry_type">
11491 <span class="entry_type_name">int32</span>
11492 <span class="entry_type_container">x</span>
11494 <span class="entry_type_array">
11497 <span class="entry_type_visibility"> [public as size]</span>
11500 <span class="entry_type_hwlevel">[legacy] </span>
11505 </td> <!-- entry_type -->
11507 <td class="entry_description">
11508 <p>Resolution of embedded JPEG thumbnail.<wbr/></p>
11511 <td class="entry_units">
11514 <td class="entry_range">
11515 <p><a href="#static_android.jpeg.availableThumbnailSizes">android.<wbr/>jpeg.<wbr/>available<wbr/>Thumbnail<wbr/>Sizes</a></p>
11518 <td class="entry_tags">
11519 <ul class="entry_tags">
11520 <li><a href="#tag_BC">BC</a></li>
11525 <tr class="entries_header">
11526 <th class="th_details" colspan="5">Details</th>
11528 <tr class="entry_cont">
11529 <td class="entry_details" colspan="5">
11530 <p>When set to (0,<wbr/> 0) value,<wbr/> the JPEG EXIF will not contain thumbnail,<wbr/>
11531 but the captured JPEG will still be a valid image.<wbr/></p>
11532 <p>For best results,<wbr/> when issuing a request for a JPEG image,<wbr/> the thumbnail size selected
11533 should have the same aspect ratio as the main JPEG output.<wbr/></p>
11534 <p>If the thumbnail image aspect ratio differs from the JPEG primary image aspect
11535 ratio,<wbr/> the camera device creates the thumbnail by cropping it from the primary image.<wbr/>
11536 For example,<wbr/> if the primary image has 4:3 aspect ratio,<wbr/> the thumbnail image has
11537 16:9 aspect ratio,<wbr/> the primary image will be cropped vertically (letterbox) to
11538 generate the thumbnail image.<wbr/> The thumbnail image will always have a smaller Field
11539 Of View (FOV) than the primary image when aspect ratios differ.<wbr/></p>
11540 <p>When an <a href="#controls_android.jpeg.orientation">android.<wbr/>jpeg.<wbr/>orientation</a> of non-zero degree is requested,<wbr/>
11541 the camera device will handle thumbnail rotation in one of the following ways:</p>
11543 <li>Set the <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>
11544 and keep jpeg and thumbnail image data unrotated.<wbr/></li>
11545 <li>Rotate the jpeg and thumbnail image data and not set
11546 <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>.<wbr/> In this
11547 case,<wbr/> LIMITED or FULL hardware level devices will report rotated thumnail size in
11548 capture result,<wbr/> so the width and height will be interchanged if 90 or 270 degree
11549 orientation is requested.<wbr/> LEGACY device will always report unrotated thumbnail
11555 <tr class="entries_header">
11556 <th class="th_details" colspan="5">HAL Implementation Details</th>
11558 <tr class="entry_cont">
11559 <td class="entry_details" colspan="5">
11560 <p>The HAL must not squeeze or stretch the downscaled primary image to generate thumbnail.<wbr/>
11561 The cropping must be done on the primary jpeg image rather than the sensor active array.<wbr/>
11562 The stream cropping rule specified by "S5.<wbr/> Cropping" in camera3.<wbr/>h doesn't apply to the
11563 thumbnail image cropping.<wbr/></p>
11567 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11568 <!-- end of entry -->
11572 <!-- end of kind -->
11575 <!-- end of section -->
11576 <tr><td colspan="6" id="section_lens" class="section">lens</td></tr>
11579 <tr><td colspan="6" class="kind">controls</td></tr>
11581 <thead class="entries_header">
11583 <th class="th_name">Property Name</th>
11584 <th class="th_type">Type</th>
11585 <th class="th_description">Description</th>
11586 <th class="th_units">Units</th>
11587 <th class="th_range">Range</th>
11588 <th class="th_tags">Tags</th>
11603 <tr class="entry" id="controls_android.lens.aperture">
11604 <td class="entry_name
11606 android.<wbr/>lens.<wbr/>aperture
11608 <td class="entry_type">
11609 <span class="entry_type_name">float</span>
11611 <span class="entry_type_visibility"> [public]</span>
11614 <span class="entry_type_hwlevel">[full] </span>
11619 </td> <!-- entry_type -->
11621 <td class="entry_description">
11622 <p>The desired lens aperture size,<wbr/> as a ratio of lens focal length to the
11623 effective aperture diameter.<wbr/></p>
11626 <td class="entry_units">
11627 The f-number (f/<wbr/>N)
11630 <td class="entry_range">
11631 <p><a href="#static_android.lens.info.availableApertures">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Apertures</a></p>
11634 <td class="entry_tags">
11635 <ul class="entry_tags">
11636 <li><a href="#tag_V1">V1</a></li>
11641 <tr class="entries_header">
11642 <th class="th_details" colspan="5">Details</th>
11644 <tr class="entry_cont">
11645 <td class="entry_details" colspan="5">
11646 <p>Setting this value is only supported on the camera devices that have a variable
11647 aperture lens.<wbr/></p>
11648 <p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/>
11649 this can be set along with <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
11650 <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>
11651 to achieve manual exposure control.<wbr/></p>
11652 <p>The requested aperture value may take several frames to reach the
11653 requested value; the camera device will report the current (intermediate)
11654 aperture size in capture result metadata while the aperture is changing.<wbr/>
11655 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>
11656 <p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is one of
11657 the ON modes,<wbr/> this will be overridden by the camera device
11658 auto-exposure algorithm,<wbr/> the overridden values are then provided
11659 back to the user in the corresponding result.<wbr/></p>
11664 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11665 <!-- end of entry -->
11668 <tr class="entry" id="controls_android.lens.filterDensity">
11669 <td class="entry_name
11671 android.<wbr/>lens.<wbr/>filter<wbr/>Density
11673 <td class="entry_type">
11674 <span class="entry_type_name">float</span>
11676 <span class="entry_type_visibility"> [public]</span>
11679 <span class="entry_type_hwlevel">[full] </span>
11684 </td> <!-- entry_type -->
11686 <td class="entry_description">
11687 <p>The desired setting for the lens neutral density filter(s).<wbr/></p>
11690 <td class="entry_units">
11691 Exposure Value (EV)
11694 <td class="entry_range">
11695 <p><a href="#static_android.lens.info.availableFilterDensities">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Filter<wbr/>Densities</a></p>
11698 <td class="entry_tags">
11699 <ul class="entry_tags">
11700 <li><a href="#tag_V1">V1</a></li>
11705 <tr class="entries_header">
11706 <th class="th_details" colspan="5">Details</th>
11708 <tr class="entry_cont">
11709 <td class="entry_details" colspan="5">
11710 <p>This control will not be supported on most camera devices.<wbr/></p>
11711 <p>Lens filters are typically used to lower the amount of light the
11712 sensor is exposed to (measured in steps of EV).<wbr/> As used here,<wbr/> an EV
11713 step is the standard logarithmic representation,<wbr/> which are
11714 non-negative,<wbr/> and inversely proportional to the amount of light
11715 hitting the sensor.<wbr/> For example,<wbr/> setting this to 0 would result
11716 in no reduction of the incoming light,<wbr/> and setting this to 2 would
11717 mean that the filter is set to reduce incoming light by two stops
11718 (allowing 1/<wbr/>4 of the prior amount of light to the sensor).<wbr/></p>
11719 <p>It may take several frames before the lens filter density changes
11720 to the requested value.<wbr/> While the filter density is still changing,<wbr/>
11721 <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will be set to MOVING.<wbr/></p>
11726 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11727 <!-- end of entry -->
11730 <tr class="entry" id="controls_android.lens.focalLength">
11731 <td class="entry_name
11733 android.<wbr/>lens.<wbr/>focal<wbr/>Length
11735 <td class="entry_type">
11736 <span class="entry_type_name">float</span>
11738 <span class="entry_type_visibility"> [public]</span>
11741 <span class="entry_type_hwlevel">[legacy] </span>
11746 </td> <!-- entry_type -->
11748 <td class="entry_description">
11749 <p>The desired lens focal length; used for optical zoom.<wbr/></p>
11752 <td class="entry_units">
11756 <td class="entry_range">
11757 <p><a href="#static_android.lens.info.availableFocalLengths">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Focal<wbr/>Lengths</a></p>
11760 <td class="entry_tags">
11761 <ul class="entry_tags">
11762 <li><a href="#tag_V1">V1</a></li>
11767 <tr class="entries_header">
11768 <th class="th_details" colspan="5">Details</th>
11770 <tr class="entry_cont">
11771 <td class="entry_details" colspan="5">
11772 <p>This setting controls the physical focal length of the camera
11773 device's lens.<wbr/> Changing the focal length changes the field of
11774 view of the camera device,<wbr/> and is usually used for optical zoom.<wbr/></p>
11775 <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
11776 setting won't be applied instantaneously,<wbr/> and it may take several
11777 frames before the lens can change to the requested focal length.<wbr/>
11778 While the focal length is still changing,<wbr/> <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will
11779 be set to MOVING.<wbr/></p>
11780 <p>Optical zoom will not be supported on most devices.<wbr/></p>
11785 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11786 <!-- end of entry -->
11789 <tr class="entry" id="controls_android.lens.focusDistance">
11790 <td class="entry_name
11792 android.<wbr/>lens.<wbr/>focus<wbr/>Distance
11794 <td class="entry_type">
11795 <span class="entry_type_name">float</span>
11797 <span class="entry_type_visibility"> [public]</span>
11800 <span class="entry_type_hwlevel">[full] </span>
11805 </td> <!-- entry_type -->
11807 <td class="entry_description">
11808 <p>Desired distance to plane of sharpest focus,<wbr/>
11809 measured from frontmost surface of the lens.<wbr/></p>
11812 <td class="entry_units">
11813 See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
11816 <td class="entry_range">
11820 <td class="entry_tags">
11821 <ul class="entry_tags">
11822 <li><a href="#tag_BC">BC</a></li>
11823 <li><a href="#tag_V1">V1</a></li>
11828 <tr class="entries_header">
11829 <th class="th_details" colspan="5">Details</th>
11831 <tr class="entry_cont">
11832 <td class="entry_details" colspan="5">
11833 <p>This control can be used for setting manual focus,<wbr/> on devices that support
11834 the MANUAL_<wbr/>SENSOR capability and have a variable-focus lens (see
11835 <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a>).<wbr/></p>
11836 <p>A value of <code>0.<wbr/>0f</code> means infinity focus.<wbr/> The value set will be clamped to
11837 <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>
11838 <p>Like <a href="#controls_android.lens.focalLength">android.<wbr/>lens.<wbr/>focal<wbr/>Length</a>,<wbr/> this setting won't be applied
11839 instantaneously,<wbr/> and it may take several frames before the lens
11840 can move to the requested focus distance.<wbr/> While the lens is still moving,<wbr/>
11841 <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will be set to MOVING.<wbr/></p>
11842 <p>LEGACY devices support at most setting this to <code>0.<wbr/>0f</code>
11843 for infinity focus.<wbr/></p>
11848 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11849 <!-- end of entry -->
11852 <tr class="entry" id="controls_android.lens.opticalStabilizationMode">
11853 <td class="entry_name
11855 android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode
11857 <td class="entry_type">
11858 <span class="entry_type_name entry_type_name_enum">byte</span>
11860 <span class="entry_type_visibility"> [public]</span>
11863 <span class="entry_type_hwlevel">[limited] </span>
11867 <ul class="entry_type_enum">
11869 <span class="entry_type_enum_name">OFF</span>
11870 <span class="entry_type_enum_notes"><p>Optical stabilization is unavailable.<wbr/></p></span>
11873 <span class="entry_type_enum_name">ON</span>
11874 <span class="entry_type_enum_optional">[optional]</span>
11875 <span class="entry_type_enum_notes"><p>Optical stabilization is enabled.<wbr/></p></span>
11879 </td> <!-- entry_type -->
11881 <td class="entry_description">
11882 <p>Sets whether the camera device uses optical image stabilization (OIS)
11883 when capturing images.<wbr/></p>
11886 <td class="entry_units">
11889 <td class="entry_range">
11890 <p><a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a></p>
11893 <td class="entry_tags">
11894 <ul class="entry_tags">
11895 <li><a href="#tag_V1">V1</a></li>
11900 <tr class="entries_header">
11901 <th class="th_details" colspan="5">Details</th>
11903 <tr class="entry_cont">
11904 <td class="entry_details" colspan="5">
11905 <p>OIS is used to compensate for motion blur due to small
11906 movements of the camera during capture.<wbr/> Unlike digital image
11907 stabilization (<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> OIS
11908 makes use of mechanical elements to stabilize the camera
11909 sensor,<wbr/> and thus allows for longer exposure times before
11910 camera shake becomes apparent.<wbr/></p>
11911 <p>Switching between different optical stabilization modes may take several
11912 frames to initialize,<wbr/> the camera device will report the current mode in
11913 capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/> the
11914 optical stabilization modes in the first several capture results may still
11915 be "OFF",<wbr/> and it will become "ON" when the initialization is done.<wbr/></p>
11916 <p>If a camera device supports both OIS and digital image stabilization
11917 (<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may produce undesirable
11918 interaction,<wbr/> so it is recommended not to enable both at the same time.<wbr/></p>
11919 <p>Not all devices will support OIS; see
11920 <a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a> for
11921 available controls.<wbr/></p>
11926 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
11927 <!-- end of entry -->
11931 <!-- end of kind -->
11933 <tr><td colspan="6" class="kind">static</td></tr>
11935 <thead class="entries_header">
11937 <th class="th_name">Property Name</th>
11938 <th class="th_type">Type</th>
11939 <th class="th_description">Description</th>
11940 <th class="th_units">Units</th>
11941 <th class="th_range">Range</th>
11942 <th class="th_tags">Tags</th>
11959 <tr class="entry" id="static_android.lens.info.availableApertures">
11960 <td class="entry_name
11962 android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Apertures
11964 <td class="entry_type">
11965 <span class="entry_type_name">float</span>
11966 <span class="entry_type_container">x</span>
11968 <span class="entry_type_array">
11971 <span class="entry_type_visibility"> [public]</span>
11974 <span class="entry_type_hwlevel">[full] </span>
11979 </td> <!-- entry_type -->
11981 <td class="entry_description">
11982 <p>List of aperture size values for <a href="#controls_android.lens.aperture">android.<wbr/>lens.<wbr/>aperture</a> that are
11983 supported by this camera device.<wbr/></p>
11986 <td class="entry_units">
11987 The aperture f-number
11990 <td class="entry_range">
11993 <td class="entry_tags">
11994 <ul class="entry_tags">
11995 <li><a href="#tag_V1">V1</a></li>
12000 <tr class="entries_header">
12001 <th class="th_details" colspan="5">Details</th>
12003 <tr class="entry_cont">
12004 <td class="entry_details" colspan="5">
12005 <p>If the camera device doesn't support a variable lens aperture,<wbr/>
12006 this list will contain only one value,<wbr/> which is the fixed aperture size.<wbr/></p>
12007 <p>If the camera device supports a variable aperture,<wbr/> the aperture values
12008 in this list will be sorted in ascending order.<wbr/></p>
12013 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12014 <!-- end of entry -->
12017 <tr class="entry" id="static_android.lens.info.availableFilterDensities">
12018 <td class="entry_name
12020 android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Filter<wbr/>Densities
12022 <td class="entry_type">
12023 <span class="entry_type_name">float</span>
12024 <span class="entry_type_container">x</span>
12026 <span class="entry_type_array">
12029 <span class="entry_type_visibility"> [public]</span>
12032 <span class="entry_type_hwlevel">[full] </span>
12037 </td> <!-- entry_type -->
12039 <td class="entry_description">
12040 <p>List of neutral density filter values for
12041 <a href="#controls_android.lens.filterDensity">android.<wbr/>lens.<wbr/>filter<wbr/>Density</a> that are supported by this camera device.<wbr/></p>
12044 <td class="entry_units">
12045 Exposure value (EV)
12048 <td class="entry_range">
12049 <p>Values are >= 0</p>
12052 <td class="entry_tags">
12053 <ul class="entry_tags">
12054 <li><a href="#tag_V1">V1</a></li>
12059 <tr class="entries_header">
12060 <th class="th_details" colspan="5">Details</th>
12062 <tr class="entry_cont">
12063 <td class="entry_details" colspan="5">
12064 <p>If a neutral density filter is not supported by this camera device,<wbr/>
12065 this list will contain only 0.<wbr/> Otherwise,<wbr/> this list will include every
12066 filter density supported by the camera device,<wbr/> in ascending order.<wbr/></p>
12071 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12072 <!-- end of entry -->
12075 <tr class="entry" id="static_android.lens.info.availableFocalLengths">
12076 <td class="entry_name
12078 android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Focal<wbr/>Lengths
12080 <td class="entry_type">
12081 <span class="entry_type_name">float</span>
12082 <span class="entry_type_container">x</span>
12084 <span class="entry_type_array">
12087 <span class="entry_type_visibility"> [public]</span>
12090 <span class="entry_type_hwlevel">[legacy] </span>
12093 <div class="entry_type_notes">The list of available focal lengths</div>
12096 </td> <!-- entry_type -->
12098 <td class="entry_description">
12099 <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
12103 <td class="entry_units">
12107 <td class="entry_range">
12108 <p>Values are > 0</p>
12111 <td class="entry_tags">
12112 <ul class="entry_tags">
12113 <li><a href="#tag_BC">BC</a></li>
12114 <li><a href="#tag_V1">V1</a></li>
12119 <tr class="entries_header">
12120 <th class="th_details" colspan="5">Details</th>
12122 <tr class="entry_cont">
12123 <td class="entry_details" colspan="5">
12124 <p>If optical zoom is not supported,<wbr/> this list will only contain
12125 a single value corresponding to the fixed focal length of the
12126 device.<wbr/> Otherwise,<wbr/> this list will include every focal length supported
12127 by the camera device,<wbr/> in ascending order.<wbr/></p>
12132 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12133 <!-- end of entry -->
12136 <tr class="entry" id="static_android.lens.info.availableOpticalStabilization">
12137 <td class="entry_name
12139 android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization
12141 <td class="entry_type">
12142 <span class="entry_type_name">byte</span>
12143 <span class="entry_type_container">x</span>
12145 <span class="entry_type_array">
12148 <span class="entry_type_visibility"> [public as enumList]</span>
12151 <span class="entry_type_hwlevel">[limited] </span>
12154 <div class="entry_type_notes">list of enums</div>
12157 </td> <!-- entry_type -->
12159 <td class="entry_description">
12160 <p>List of optical image stabilization (OIS) modes for
12161 <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>
12164 <td class="entry_units">
12167 <td class="entry_range">
12168 <p>Any value listed in <a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a></p>
12171 <td class="entry_tags">
12172 <ul class="entry_tags">
12173 <li><a href="#tag_V1">V1</a></li>
12178 <tr class="entries_header">
12179 <th class="th_details" colspan="5">Details</th>
12181 <tr class="entry_cont">
12182 <td class="entry_details" colspan="5">
12183 <p>If OIS is not supported by a given camera device,<wbr/> this list will
12184 contain only OFF.<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.hyperfocalDistance">
12194 <td class="entry_name
12196 android.<wbr/>lens.<wbr/>info.<wbr/>hyperfocal<wbr/>Distance
12198 <td class="entry_type">
12199 <span class="entry_type_name">float</span>
12201 <span class="entry_type_visibility"> [public]</span>
12204 <span class="entry_type_hwlevel">[limited] </span>
12209 </td> <!-- entry_type -->
12211 <td class="entry_description">
12212 <p>Hyperfocal distance for this lens.<wbr/></p>
12215 <td class="entry_units">
12216 See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
12219 <td class="entry_range">
12220 <p>If lens is fixed focus,<wbr/> >= 0.<wbr/> If lens has focuser unit,<wbr/> the value is
12221 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>
12224 <td class="entry_tags">
12228 <tr class="entries_header">
12229 <th class="th_details" colspan="5">Details</th>
12231 <tr class="entry_cont">
12232 <td class="entry_details" colspan="5">
12233 <p>If the lens is not fixed focus,<wbr/> the camera device will report this
12234 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>
12239 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12240 <!-- end of entry -->
12243 <tr class="entry" id="static_android.lens.info.minimumFocusDistance">
12244 <td class="entry_name
12246 android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance
12248 <td class="entry_type">
12249 <span class="entry_type_name">float</span>
12251 <span class="entry_type_visibility"> [public]</span>
12254 <span class="entry_type_hwlevel">[limited] </span>
12259 </td> <!-- entry_type -->
12261 <td class="entry_description">
12262 <p>Shortest distance from frontmost surface
12263 of the lens that can be brought into sharp focus.<wbr/></p>
12266 <td class="entry_units">
12267 See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
12270 <td class="entry_range">
12274 <td class="entry_tags">
12275 <ul class="entry_tags">
12276 <li><a href="#tag_V1">V1</a></li>
12281 <tr class="entries_header">
12282 <th class="th_details" colspan="5">Details</th>
12284 <tr class="entry_cont">
12285 <td class="entry_details" colspan="5">
12286 <p>If the lens is fixed-focus,<wbr/> this will be
12291 <tr class="entries_header">
12292 <th class="th_details" colspan="5">HAL Implementation Details</th>
12294 <tr class="entry_cont">
12295 <td class="entry_details" colspan="5">
12296 <p>Mandatory for FULL devices; LIMITED devices
12297 must always set this value to 0 for fixed-focus; and may omit
12298 the minimum focus distance otherwise.<wbr/></p>
12299 <p>This field is also mandatory for all devices advertising
12300 the MANUAL_<wbr/>SENSOR capability.<wbr/></p>
12304 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12305 <!-- end of entry -->
12308 <tr class="entry" id="static_android.lens.info.shadingMapSize">
12309 <td class="entry_name
12311 android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size
12313 <td class="entry_type">
12314 <span class="entry_type_name">int32</span>
12315 <span class="entry_type_container">x</span>
12317 <span class="entry_type_array">
12320 <span class="entry_type_visibility"> [ndk_public as size]</span>
12323 <span class="entry_type_hwlevel">[full] </span>
12326 <div class="entry_type_notes">width and height (N,<wbr/> M) of lens shading map provided by the camera device.<wbr/></div>
12329 </td> <!-- entry_type -->
12331 <td class="entry_description">
12332 <p>Dimensions of lens shading map.<wbr/></p>
12335 <td class="entry_units">
12338 <td class="entry_range">
12339 <p>Both values >= 1</p>
12342 <td class="entry_tags">
12343 <ul class="entry_tags">
12344 <li><a href="#tag_V1">V1</a></li>
12349 <tr class="entries_header">
12350 <th class="th_details" colspan="5">Details</th>
12352 <tr class="entry_cont">
12353 <td class="entry_details" colspan="5">
12354 <p>The map should be on the order of 30-40 rows and columns,<wbr/> and
12355 must be smaller than 64x64.<wbr/></p>
12360 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12361 <!-- end of entry -->
12364 <tr class="entry" id="static_android.lens.info.focusDistanceCalibration">
12365 <td class="entry_name
12367 android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration
12369 <td class="entry_type">
12370 <span class="entry_type_name entry_type_name_enum">byte</span>
12372 <span class="entry_type_visibility"> [public]</span>
12375 <span class="entry_type_hwlevel">[limited] </span>
12379 <ul class="entry_type_enum">
12381 <span class="entry_type_enum_name">UNCALIBRATED</span>
12382 <span class="entry_type_enum_notes"><p>The lens focus distance is not accurate,<wbr/> and the units used for
12383 <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> do not correspond to any physical units.<wbr/></p>
12384 <p>Setting the lens to the same focus distance on separate occasions may
12385 result in a different real focus distance,<wbr/> depending on factors such
12386 as the orientation of the device,<wbr/> the age of the focusing mechanism,<wbr/>
12387 and the device temperature.<wbr/> The focus distance value will still be
12388 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
12389 represents the farthest focus.<wbr/></p></span>
12392 <span class="entry_type_enum_name">APPROXIMATE</span>
12393 <span class="entry_type_enum_notes"><p>The lens focus distance is measured in diopters.<wbr/></p>
12394 <p>However,<wbr/> setting the lens to the same focus distance
12395 on separate occasions may result in a different real
12396 focus distance,<wbr/> depending on factors such as the
12397 orientation of the device,<wbr/> the age of the focusing
12398 mechanism,<wbr/> and the device temperature.<wbr/></p></span>
12401 <span class="entry_type_enum_name">CALIBRATED</span>
12402 <span class="entry_type_enum_notes"><p>The lens focus distance is measured in diopters,<wbr/> and
12403 is calibrated.<wbr/></p>
12404 <p>The lens mechanism is calibrated so that setting the
12405 same focus distance is repeatable on multiple
12406 occasions with good accuracy,<wbr/> and the focus distance
12407 corresponds to the real physical distance to the plane
12408 of best focus.<wbr/></p></span>
12412 </td> <!-- entry_type -->
12414 <td class="entry_description">
12415 <p>The lens focus distance calibration quality.<wbr/></p>
12418 <td class="entry_units">
12421 <td class="entry_range">
12424 <td class="entry_tags">
12425 <ul class="entry_tags">
12426 <li><a href="#tag_V1">V1</a></li>
12431 <tr class="entries_header">
12432 <th class="th_details" colspan="5">Details</th>
12434 <tr class="entry_cont">
12435 <td class="entry_details" colspan="5">
12436 <p>The lens focus distance calibration quality determines the reliability of
12437 focus related metadata entries,<wbr/> i.<wbr/>e.<wbr/> <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a>,<wbr/>
12438 <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
12439 <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a>.<wbr/></p>
12440 <p>APPROXIMATE and CALIBRATED devices report the focus metadata in
12441 units of diopters (1/<wbr/>meter),<wbr/> so <code>0.<wbr/>0f</code> represents focusing at infinity,<wbr/>
12442 and increasing positive numbers represent focusing closer and closer
12443 to the camera device.<wbr/> The focus distance control also uses diopters
12444 on these devices.<wbr/></p>
12445 <p>UNCALIBRATED devices do not use units that are directly comparable
12446 to any real physical measurement,<wbr/> but <code>0.<wbr/>0f</code> still represents farthest
12447 focus,<wbr/> and <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> represents the
12448 nearest focus the device can achieve.<wbr/></p>
12452 <tr class="entries_header">
12453 <th class="th_details" colspan="5">HAL Implementation Details</th>
12455 <tr class="entry_cont">
12456 <td class="entry_details" colspan="5">
12457 <p>For devices advertise APPROXIMATE quality or higher,<wbr/> diopters 0 (infinity
12458 focus) must work.<wbr/> When autofocus is disabled (<a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> == OFF)
12459 and the lens focus distance is set to 0 diopters
12460 (<a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> == 0),<wbr/> the lens will move to focus at infinity
12461 and is stably focused at infinity even if the device tilts.<wbr/> It may take the
12462 lens some time to move; during the move the lens state should be MOVING and
12463 the output diopter value should be changing toward 0.<wbr/></p>
12467 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12468 <!-- end of entry -->
12474 <tr class="entry" id="static_android.lens.facing">
12475 <td class="entry_name
12477 android.<wbr/>lens.<wbr/>facing
12479 <td class="entry_type">
12480 <span class="entry_type_name entry_type_name_enum">byte</span>
12482 <span class="entry_type_visibility"> [public]</span>
12485 <span class="entry_type_hwlevel">[legacy] </span>
12489 <ul class="entry_type_enum">
12491 <span class="entry_type_enum_name">FRONT</span>
12492 <span class="entry_type_enum_notes"><p>The camera device faces the same direction as the device's screen.<wbr/></p></span>
12495 <span class="entry_type_enum_name">BACK</span>
12496 <span class="entry_type_enum_notes"><p>The camera device faces the opposite direction as the device's screen.<wbr/></p></span>
12499 <span class="entry_type_enum_name">EXTERNAL</span>
12500 <span class="entry_type_enum_notes"><p>The camera device is an external camera,<wbr/> and has no fixed facing relative to the
12501 device's screen.<wbr/></p></span>
12505 </td> <!-- entry_type -->
12507 <td class="entry_description">
12508 <p>Direction the camera faces relative to
12509 device screen.<wbr/></p>
12512 <td class="entry_units">
12515 <td class="entry_range">
12518 <td class="entry_tags">
12524 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12525 <!-- end of entry -->
12528 <tr class="entry" id="static_android.lens.poseRotation">
12529 <td class="entry_name
12531 android.<wbr/>lens.<wbr/>pose<wbr/>Rotation
12533 <td class="entry_type">
12534 <span class="entry_type_name">float</span>
12535 <span class="entry_type_container">x</span>
12537 <span class="entry_type_array">
12540 <span class="entry_type_visibility"> [public]</span>
12547 </td> <!-- entry_type -->
12549 <td class="entry_description">
12550 <p>The orientation of the camera relative to the sensor
12551 coordinate system.<wbr/></p>
12554 <td class="entry_units">
12556 Quaternion coefficients
12560 <td class="entry_range">
12563 <td class="entry_tags">
12564 <ul class="entry_tags">
12565 <li><a href="#tag_DEPTH">DEPTH</a></li>
12570 <tr class="entries_header">
12571 <th class="th_details" colspan="5">Details</th>
12573 <tr class="entry_cont">
12574 <td class="entry_details" colspan="5">
12575 <p>The four coefficients that describe the quaternion
12576 rotation from the Android sensor coordinate system to a
12577 camera-aligned coordinate system where the X-axis is
12578 aligned with the long side of the image sensor,<wbr/> the Y-axis
12579 is aligned with the short side of the image sensor,<wbr/> and
12580 the Z-axis is aligned with the optical axis of the sensor.<wbr/></p>
12581 <p>To convert from the quaternion coefficients <code>(x,<wbr/>y,<wbr/>z,<wbr/>w)</code>
12582 to the axis of rotation <code>(a_<wbr/>x,<wbr/> a_<wbr/>y,<wbr/> a_<wbr/>z)</code> and rotation
12583 amount <code>theta</code>,<wbr/> the following formulas can be used:</p>
12584 <pre><code> theta = 2 * acos(w)
12585 a_<wbr/>x = x /<wbr/> sin(theta/<wbr/>2)
12586 a_<wbr/>y = y /<wbr/> sin(theta/<wbr/>2)
12587 a_<wbr/>z = z /<wbr/> sin(theta/<wbr/>2)
12589 <p>To create a 3x3 rotation matrix that applies the rotation
12590 defined by this quaternion,<wbr/> the following matrix can be
12592 <pre><code>R = [ 1 - 2y^2 - 2z^2,<wbr/> 2xy - 2zw,<wbr/> 2xz + 2yw,<wbr/>
12593 2xy + 2zw,<wbr/> 1 - 2x^2 - 2z^2,<wbr/> 2yz - 2xw,<wbr/>
12594 2xz - 2yw,<wbr/> 2yz + 2xw,<wbr/> 1 - 2x^2 - 2y^2 ]
12596 <p>This matrix can then be used to apply the rotation to a
12597 column vector point with</p>
12598 <p><code>p' = Rp</code></p>
12599 <p>where <code>p</code> is in the device sensor coordinate system,<wbr/> and
12600 <code>p'</code> is in the camera-oriented coordinate system.<wbr/></p>
12605 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12606 <!-- end of entry -->
12609 <tr class="entry" id="static_android.lens.poseTranslation">
12610 <td class="entry_name
12612 android.<wbr/>lens.<wbr/>pose<wbr/>Translation
12614 <td class="entry_type">
12615 <span class="entry_type_name">float</span>
12616 <span class="entry_type_container">x</span>
12618 <span class="entry_type_array">
12621 <span class="entry_type_visibility"> [public]</span>
12628 </td> <!-- entry_type -->
12630 <td class="entry_description">
12631 <p>Position of the camera optical center.<wbr/></p>
12634 <td class="entry_units">
12638 <td class="entry_range">
12641 <td class="entry_tags">
12642 <ul class="entry_tags">
12643 <li><a href="#tag_DEPTH">DEPTH</a></li>
12648 <tr class="entries_header">
12649 <th class="th_details" colspan="5">Details</th>
12651 <tr class="entry_cont">
12652 <td class="entry_details" colspan="5">
12653 <p>The position of the camera device's lens optical center,<wbr/>
12654 as a three-dimensional vector <code>(x,<wbr/>y,<wbr/>z)</code>,<wbr/> relative to the
12655 optical center of the largest camera device facing in the
12656 same direction as this camera,<wbr/> in the <a href="https://developer.android.com/reference/android/hardware/SensorEvent.html">Android sensor coordinate
12657 axes</a>.<wbr/> Note that only the axis definitions are shared with
12658 the sensor coordinate system,<wbr/> but not the origin.<wbr/></p>
12659 <p>If this device is the largest or only camera device with a
12660 given facing,<wbr/> then this position will be <code>(0,<wbr/> 0,<wbr/> 0)</code>; a
12661 camera device with a lens optical center located 3 cm from
12662 the main sensor along the +X axis (to the right from the
12663 user's perspective) will report <code>(0.<wbr/>03,<wbr/> 0,<wbr/> 0)</code>.<wbr/></p>
12664 <p>To transform a pixel coordinates between two cameras
12665 facing the same direction,<wbr/> first the source camera
12666 <a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a> must be corrected for.<wbr/> Then
12667 the source camera <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> needs
12668 to be applied,<wbr/> followed by the <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a>
12669 of the source camera,<wbr/> the translation of the source camera
12670 relative to the destination camera,<wbr/> the
12671 <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> of the destination camera,<wbr/> and
12672 finally the inverse of <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a>
12673 of the destination camera.<wbr/> This obtains a
12674 radial-distortion-free coordinate in the destination
12675 camera pixel coordinates.<wbr/></p>
12676 <p>To compare this against a real image from the destination
12677 camera,<wbr/> the destination camera image then needs to be
12678 corrected for radial distortion before comparison or
12679 sampling.<wbr/></p>
12684 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12685 <!-- end of entry -->
12688 <tr class="entry" id="static_android.lens.intrinsicCalibration">
12689 <td class="entry_name
12691 android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration
12693 <td class="entry_type">
12694 <span class="entry_type_name">float</span>
12695 <span class="entry_type_container">x</span>
12697 <span class="entry_type_array">
12700 <span class="entry_type_visibility"> [public]</span>
12707 </td> <!-- entry_type -->
12709 <td class="entry_description">
12710 <p>The parameters for this camera device's intrinsic
12711 calibration.<wbr/></p>
12714 <td class="entry_units">
12717 android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size
12718 coordinate system.<wbr/>
12722 <td class="entry_range">
12725 <td class="entry_tags">
12726 <ul class="entry_tags">
12727 <li><a href="#tag_DEPTH">DEPTH</a></li>
12732 <tr class="entries_header">
12733 <th class="th_details" colspan="5">Details</th>
12735 <tr class="entry_cont">
12736 <td class="entry_details" colspan="5">
12737 <p>The five calibration parameters that describe the
12738 transform from camera-centric 3D coordinates to sensor
12739 pixel coordinates:</p>
12740 <pre><code>[f_<wbr/>x,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>x,<wbr/> c_<wbr/>y,<wbr/> s]
12742 <p>Where <code>f_<wbr/>x</code> and <code>f_<wbr/>y</code> are the horizontal and vertical
12743 focal lengths,<wbr/> <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code> is the position of the optical
12744 axis,<wbr/> and <code>s</code> is a skew parameter for the sensor plane not
12745 being aligned with the lens plane.<wbr/></p>
12746 <p>These are typically used within a transformation matrix K:</p>
12747 <pre><code>K = [ f_<wbr/>x,<wbr/> s,<wbr/> c_<wbr/>x,<wbr/>
12748 0,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>y,<wbr/>
12751 <p>which can then be combined with the camera pose rotation
12752 <code>R</code> and translation <code>t</code> (<a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> and
12753 <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>,<wbr/> respective) to calculate the
12754 complete transform from world coordinates to pixel
12756 <pre><code>P = [ K 0 * [ R t
12759 <p>and with <code>p_<wbr/>w</code> being a point in the world coordinate system
12760 and <code>p_<wbr/>s</code> being a point in the camera active pixel array
12761 coordinate system,<wbr/> and with the mapping including the
12762 homogeneous division by z:</p>
12763 <pre><code> p_<wbr/>h = (x_<wbr/>h,<wbr/> y_<wbr/>h,<wbr/> z_<wbr/>h) = P p_<wbr/>w
12764 p_<wbr/>s = p_<wbr/>h /<wbr/> z_<wbr/>h
12766 <p>so <code>[x_<wbr/>s,<wbr/> y_<wbr/>s]</code> is the pixel coordinates of the world
12767 point,<wbr/> <code>z_<wbr/>s = 1</code>,<wbr/> and <code>w_<wbr/>s</code> is a measurement of disparity
12768 (depth) in pixel coordinates.<wbr/></p>
12769 <p>Note that the coordinate system for this transform is the
12770 <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/>
12771 where <code>(0,<wbr/>0)</code> is the top-left of the
12772 preCorrectionActiveArraySize rectangle.<wbr/> Once the pose and
12773 intrinsic calibration transforms have been applied to a
12774 world point,<wbr/> then the <a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a>
12775 transform needs to be applied,<wbr/> and the result adjusted to
12776 be in the <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> coordinate
12777 system (where <code>(0,<wbr/> 0)</code> is the top-left of the
12778 activeArraySize rectangle),<wbr/> to determine the final pixel
12779 coordinate of the world point for processed (non-RAW)
12780 output buffers.<wbr/></p>
12785 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12786 <!-- end of entry -->
12789 <tr class="entry" id="static_android.lens.radialDistortion">
12790 <td class="entry_name
12792 android.<wbr/>lens.<wbr/>radial<wbr/>Distortion
12794 <td class="entry_type">
12795 <span class="entry_type_name">float</span>
12796 <span class="entry_type_container">x</span>
12798 <span class="entry_type_array">
12801 <span class="entry_type_visibility"> [public]</span>
12808 </td> <!-- entry_type -->
12810 <td class="entry_description">
12811 <p>The correction coefficients to correct for this camera device's
12812 radial and tangential lens distortion.<wbr/></p>
12815 <td class="entry_units">
12817 Unitless coefficients.<wbr/>
12821 <td class="entry_range">
12824 <td class="entry_tags">
12825 <ul class="entry_tags">
12826 <li><a href="#tag_DEPTH">DEPTH</a></li>
12831 <tr class="entries_header">
12832 <th class="th_details" colspan="5">Details</th>
12834 <tr class="entry_cont">
12835 <td class="entry_details" colspan="5">
12836 <p>Four radial distortion coefficients <code>[kappa_<wbr/>0,<wbr/> kappa_<wbr/>1,<wbr/> kappa_<wbr/>2,<wbr/>
12837 kappa_<wbr/>3]</code> and two tangential distortion coefficients
12838 <code>[kappa_<wbr/>4,<wbr/> kappa_<wbr/>5]</code> that can be used to correct the
12839 lens's geometric distortion with the mapping equations:</p>
12840 <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 ) +
12841 kappa_<wbr/>4 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>5 * ( r^2 + 2 * x_<wbr/>i^2 )
12842 y_<wbr/>c = y_<wbr/>i * ( kappa_<wbr/>0 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
12843 kappa_<wbr/>5 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>4 * ( r^2 + 2 * y_<wbr/>i^2 )
12845 <p>Here,<wbr/> <code>[x_<wbr/>c,<wbr/> y_<wbr/>c]</code> are the coordinates to sample in the
12846 input image that correspond to the pixel values in the
12847 corrected image at the coordinate <code>[x_<wbr/>i,<wbr/> y_<wbr/>i]</code>:</p>
12848 <pre><code> correctedImage(x_<wbr/>i,<wbr/> y_<wbr/>i) = sample_<wbr/>at(x_<wbr/>c,<wbr/> y_<wbr/>c,<wbr/> inputImage)
12850 <p>The pixel coordinates are defined in a normalized
12851 coordinate system related to the
12852 <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> calibration fields.<wbr/>
12853 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
12854 lens optical center <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code>.<wbr/> The maximum magnitudes
12855 of both x and y coordinates are normalized to be 1 at the
12856 edge further from the optical center,<wbr/> so the range
12857 for both dimensions is <code>-1 <= x <= 1</code>.<wbr/></p>
12858 <p>Finally,<wbr/> <code>r</code> represents the radial distance from the
12859 optical center,<wbr/> <code>r^2 = x_<wbr/>i^2 + y_<wbr/>i^2</code>,<wbr/> and its magnitude
12860 is therefore no larger than <code>|<wbr/>r|<wbr/> <= sqrt(2)</code>.<wbr/></p>
12861 <p>The distortion model used is the Brown-Conrady model.<wbr/></p>
12866 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12867 <!-- end of entry -->
12871 <!-- end of kind -->
12873 <tr><td colspan="6" class="kind">dynamic</td></tr>
12875 <thead class="entries_header">
12877 <th class="th_name">Property Name</th>
12878 <th class="th_type">Type</th>
12879 <th class="th_description">Description</th>
12880 <th class="th_units">Units</th>
12881 <th class="th_range">Range</th>
12882 <th class="th_tags">Tags</th>
12897 <tr class="entry" id="dynamic_android.lens.aperture">
12898 <td class="entry_name
12900 android.<wbr/>lens.<wbr/>aperture
12902 <td class="entry_type">
12903 <span class="entry_type_name">float</span>
12905 <span class="entry_type_visibility"> [public]</span>
12908 <span class="entry_type_hwlevel">[full] </span>
12913 </td> <!-- entry_type -->
12915 <td class="entry_description">
12916 <p>The desired lens aperture size,<wbr/> as a ratio of lens focal length to the
12917 effective aperture diameter.<wbr/></p>
12920 <td class="entry_units">
12921 The f-number (f/<wbr/>N)
12924 <td class="entry_range">
12925 <p><a href="#static_android.lens.info.availableApertures">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Apertures</a></p>
12928 <td class="entry_tags">
12929 <ul class="entry_tags">
12930 <li><a href="#tag_V1">V1</a></li>
12935 <tr class="entries_header">
12936 <th class="th_details" colspan="5">Details</th>
12938 <tr class="entry_cont">
12939 <td class="entry_details" colspan="5">
12940 <p>Setting this value is only supported on the camera devices that have a variable
12941 aperture lens.<wbr/></p>
12942 <p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/>
12943 this can be set along with <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>,<wbr/>
12944 <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>
12945 to achieve manual exposure control.<wbr/></p>
12946 <p>The requested aperture value may take several frames to reach the
12947 requested value; the camera device will report the current (intermediate)
12948 aperture size in capture result metadata while the aperture is changing.<wbr/>
12949 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>
12950 <p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is one of
12951 the ON modes,<wbr/> this will be overridden by the camera device
12952 auto-exposure algorithm,<wbr/> the overridden values are then provided
12953 back to the user in the corresponding result.<wbr/></p>
12958 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
12959 <!-- end of entry -->
12962 <tr class="entry" id="dynamic_android.lens.filterDensity">
12963 <td class="entry_name
12965 android.<wbr/>lens.<wbr/>filter<wbr/>Density
12967 <td class="entry_type">
12968 <span class="entry_type_name">float</span>
12970 <span class="entry_type_visibility"> [public]</span>
12973 <span class="entry_type_hwlevel">[full] </span>
12978 </td> <!-- entry_type -->
12980 <td class="entry_description">
12981 <p>The desired setting for the lens neutral density filter(s).<wbr/></p>
12984 <td class="entry_units">
12985 Exposure Value (EV)
12988 <td class="entry_range">
12989 <p><a href="#static_android.lens.info.availableFilterDensities">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Filter<wbr/>Densities</a></p>
12992 <td class="entry_tags">
12993 <ul class="entry_tags">
12994 <li><a href="#tag_V1">V1</a></li>
12999 <tr class="entries_header">
13000 <th class="th_details" colspan="5">Details</th>
13002 <tr class="entry_cont">
13003 <td class="entry_details" colspan="5">
13004 <p>This control will not be supported on most camera devices.<wbr/></p>
13005 <p>Lens filters are typically used to lower the amount of light the
13006 sensor is exposed to (measured in steps of EV).<wbr/> As used here,<wbr/> an EV
13007 step is the standard logarithmic representation,<wbr/> which are
13008 non-negative,<wbr/> and inversely proportional to the amount of light
13009 hitting the sensor.<wbr/> For example,<wbr/> setting this to 0 would result
13010 in no reduction of the incoming light,<wbr/> and setting this to 2 would
13011 mean that the filter is set to reduce incoming light by two stops
13012 (allowing 1/<wbr/>4 of the prior amount of light to the sensor).<wbr/></p>
13013 <p>It may take several frames before the lens filter density changes
13014 to the requested value.<wbr/> While the filter density is still changing,<wbr/>
13015 <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will be set to MOVING.<wbr/></p>
13020 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13021 <!-- end of entry -->
13024 <tr class="entry" id="dynamic_android.lens.focalLength">
13025 <td class="entry_name
13027 android.<wbr/>lens.<wbr/>focal<wbr/>Length
13029 <td class="entry_type">
13030 <span class="entry_type_name">float</span>
13032 <span class="entry_type_visibility"> [public]</span>
13035 <span class="entry_type_hwlevel">[legacy] </span>
13040 </td> <!-- entry_type -->
13042 <td class="entry_description">
13043 <p>The desired lens focal length; used for optical zoom.<wbr/></p>
13046 <td class="entry_units">
13050 <td class="entry_range">
13051 <p><a href="#static_android.lens.info.availableFocalLengths">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Focal<wbr/>Lengths</a></p>
13054 <td class="entry_tags">
13055 <ul class="entry_tags">
13056 <li><a href="#tag_BC">BC</a></li>
13061 <tr class="entries_header">
13062 <th class="th_details" colspan="5">Details</th>
13064 <tr class="entry_cont">
13065 <td class="entry_details" colspan="5">
13066 <p>This setting controls the physical focal length of the camera
13067 device's lens.<wbr/> Changing the focal length changes the field of
13068 view of the camera device,<wbr/> and is usually used for optical zoom.<wbr/></p>
13069 <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
13070 setting won't be applied instantaneously,<wbr/> and it may take several
13071 frames before the lens can change to the requested focal length.<wbr/>
13072 While the focal length is still changing,<wbr/> <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will
13073 be set to MOVING.<wbr/></p>
13074 <p>Optical zoom will not be supported on most devices.<wbr/></p>
13079 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13080 <!-- end of entry -->
13083 <tr class="entry" id="dynamic_android.lens.focusDistance">
13084 <td class="entry_name
13086 android.<wbr/>lens.<wbr/>focus<wbr/>Distance
13088 <td class="entry_type">
13089 <span class="entry_type_name">float</span>
13091 <span class="entry_type_visibility"> [public]</span>
13094 <span class="entry_type_hwlevel">[full] </span>
13099 </td> <!-- entry_type -->
13101 <td class="entry_description">
13102 <p>Desired distance to plane of sharpest focus,<wbr/>
13103 measured from frontmost surface of the lens.<wbr/></p>
13106 <td class="entry_units">
13107 See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
13110 <td class="entry_range">
13114 <td class="entry_tags">
13115 <ul class="entry_tags">
13116 <li><a href="#tag_BC">BC</a></li>
13121 <tr class="entries_header">
13122 <th class="th_details" colspan="5">Details</th>
13124 <tr class="entry_cont">
13125 <td class="entry_details" colspan="5">
13126 <p>Should be zero for fixed-focus cameras</p>
13131 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13132 <!-- end of entry -->
13135 <tr class="entry" id="dynamic_android.lens.focusRange">
13136 <td class="entry_name
13138 android.<wbr/>lens.<wbr/>focus<wbr/>Range
13140 <td class="entry_type">
13141 <span class="entry_type_name">float</span>
13142 <span class="entry_type_container">x</span>
13144 <span class="entry_type_array">
13147 <span class="entry_type_visibility"> [public as pairFloatFloat]</span>
13150 <span class="entry_type_hwlevel">[limited] </span>
13153 <div class="entry_type_notes">Range of scene distances that are in focus</div>
13156 </td> <!-- entry_type -->
13158 <td class="entry_description">
13159 <p>The range of scene distances that are in
13160 sharp focus (depth of field).<wbr/></p>
13163 <td class="entry_units">
13164 A pair of focus distances in diopters: (near,<wbr/>
13165 far); see android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details.<wbr/>
13168 <td class="entry_range">
13172 <td class="entry_tags">
13173 <ul class="entry_tags">
13174 <li><a href="#tag_BC">BC</a></li>
13179 <tr class="entries_header">
13180 <th class="th_details" colspan="5">Details</th>
13182 <tr class="entry_cont">
13183 <td class="entry_details" colspan="5">
13184 <p>If variable focus not supported,<wbr/> can still report
13185 fixed depth of field range</p>
13190 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13191 <!-- end of entry -->
13194 <tr class="entry" id="dynamic_android.lens.opticalStabilizationMode">
13195 <td class="entry_name
13197 android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode
13199 <td class="entry_type">
13200 <span class="entry_type_name entry_type_name_enum">byte</span>
13202 <span class="entry_type_visibility"> [public]</span>
13205 <span class="entry_type_hwlevel">[limited] </span>
13209 <ul class="entry_type_enum">
13211 <span class="entry_type_enum_name">OFF</span>
13212 <span class="entry_type_enum_notes"><p>Optical stabilization is unavailable.<wbr/></p></span>
13215 <span class="entry_type_enum_name">ON</span>
13216 <span class="entry_type_enum_optional">[optional]</span>
13217 <span class="entry_type_enum_notes"><p>Optical stabilization is enabled.<wbr/></p></span>
13221 </td> <!-- entry_type -->
13223 <td class="entry_description">
13224 <p>Sets whether the camera device uses optical image stabilization (OIS)
13225 when capturing images.<wbr/></p>
13228 <td class="entry_units">
13231 <td class="entry_range">
13232 <p><a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a></p>
13235 <td class="entry_tags">
13236 <ul class="entry_tags">
13237 <li><a href="#tag_V1">V1</a></li>
13242 <tr class="entries_header">
13243 <th class="th_details" colspan="5">Details</th>
13245 <tr class="entry_cont">
13246 <td class="entry_details" colspan="5">
13247 <p>OIS is used to compensate for motion blur due to small
13248 movements of the camera during capture.<wbr/> Unlike digital image
13249 stabilization (<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> OIS
13250 makes use of mechanical elements to stabilize the camera
13251 sensor,<wbr/> and thus allows for longer exposure times before
13252 camera shake becomes apparent.<wbr/></p>
13253 <p>Switching between different optical stabilization modes may take several
13254 frames to initialize,<wbr/> the camera device will report the current mode in
13255 capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/> the
13256 optical stabilization modes in the first several capture results may still
13257 be "OFF",<wbr/> and it will become "ON" when the initialization is done.<wbr/></p>
13258 <p>If a camera device supports both OIS and digital image stabilization
13259 (<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may produce undesirable
13260 interaction,<wbr/> so it is recommended not to enable both at the same time.<wbr/></p>
13261 <p>Not all devices will support OIS; see
13262 <a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a> for
13263 available controls.<wbr/></p>
13268 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13269 <!-- end of entry -->
13272 <tr class="entry" id="dynamic_android.lens.state">
13273 <td class="entry_name
13275 android.<wbr/>lens.<wbr/>state
13277 <td class="entry_type">
13278 <span class="entry_type_name entry_type_name_enum">byte</span>
13280 <span class="entry_type_visibility"> [public]</span>
13283 <span class="entry_type_hwlevel">[limited] </span>
13287 <ul class="entry_type_enum">
13289 <span class="entry_type_enum_name">STATIONARY</span>
13290 <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/>
13291 <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>
13294 <span class="entry_type_enum_name">MOVING</span>
13295 <span class="entry_type_enum_notes"><p>One or several of the lens parameters
13296 (<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/>
13297 <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
13298 currently changing.<wbr/></p></span>
13302 </td> <!-- entry_type -->
13304 <td class="entry_description">
13305 <p>Current lens status.<wbr/></p>
13308 <td class="entry_units">
13311 <td class="entry_range">
13314 <td class="entry_tags">
13315 <ul class="entry_tags">
13316 <li><a href="#tag_V1">V1</a></li>
13321 <tr class="entries_header">
13322 <th class="th_details" colspan="5">Details</th>
13324 <tr class="entry_cont">
13325 <td class="entry_details" colspan="5">
13326 <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/>
13327 <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/>
13328 they may take several frames to reach the requested values.<wbr/> This state indicates
13329 the current status of the lens parameters.<wbr/></p>
13330 <p>When the state is STATIONARY,<wbr/> the lens parameters are not changing.<wbr/> This could be
13331 either because the parameters are all fixed,<wbr/> or because the lens has had enough
13332 time to reach the most recently-requested values.<wbr/>
13333 If all these lens parameters are not changable for a camera device,<wbr/> as listed below:</p>
13335 <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
13336 <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> parameter will always be 0.<wbr/></li>
13337 <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/>
13338 which means the optical zoom is not supported.<wbr/></li>
13339 <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>
13340 <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>
13342 <p>Then this state will always be STATIONARY.<wbr/></p>
13343 <p>When the state is MOVING,<wbr/> it indicates that at least one of the lens parameters
13344 is changing.<wbr/></p>
13349 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13350 <!-- end of entry -->
13353 <tr class="entry" id="dynamic_android.lens.poseRotation">
13354 <td class="entry_name
13356 android.<wbr/>lens.<wbr/>pose<wbr/>Rotation
13358 <td class="entry_type">
13359 <span class="entry_type_name">float</span>
13360 <span class="entry_type_container">x</span>
13362 <span class="entry_type_array">
13365 <span class="entry_type_visibility"> [public]</span>
13372 </td> <!-- entry_type -->
13374 <td class="entry_description">
13375 <p>The orientation of the camera relative to the sensor
13376 coordinate system.<wbr/></p>
13379 <td class="entry_units">
13381 Quaternion coefficients
13385 <td class="entry_range">
13388 <td class="entry_tags">
13389 <ul class="entry_tags">
13390 <li><a href="#tag_DEPTH">DEPTH</a></li>
13395 <tr class="entries_header">
13396 <th class="th_details" colspan="5">Details</th>
13398 <tr class="entry_cont">
13399 <td class="entry_details" colspan="5">
13400 <p>The four coefficients that describe the quaternion
13401 rotation from the Android sensor coordinate system to a
13402 camera-aligned coordinate system where the X-axis is
13403 aligned with the long side of the image sensor,<wbr/> the Y-axis
13404 is aligned with the short side of the image sensor,<wbr/> and
13405 the Z-axis is aligned with the optical axis of the sensor.<wbr/></p>
13406 <p>To convert from the quaternion coefficients <code>(x,<wbr/>y,<wbr/>z,<wbr/>w)</code>
13407 to the axis of rotation <code>(a_<wbr/>x,<wbr/> a_<wbr/>y,<wbr/> a_<wbr/>z)</code> and rotation
13408 amount <code>theta</code>,<wbr/> the following formulas can be used:</p>
13409 <pre><code> theta = 2 * acos(w)
13410 a_<wbr/>x = x /<wbr/> sin(theta/<wbr/>2)
13411 a_<wbr/>y = y /<wbr/> sin(theta/<wbr/>2)
13412 a_<wbr/>z = z /<wbr/> sin(theta/<wbr/>2)
13414 <p>To create a 3x3 rotation matrix that applies the rotation
13415 defined by this quaternion,<wbr/> the following matrix can be
13417 <pre><code>R = [ 1 - 2y^2 - 2z^2,<wbr/> 2xy - 2zw,<wbr/> 2xz + 2yw,<wbr/>
13418 2xy + 2zw,<wbr/> 1 - 2x^2 - 2z^2,<wbr/> 2yz - 2xw,<wbr/>
13419 2xz - 2yw,<wbr/> 2yz + 2xw,<wbr/> 1 - 2x^2 - 2y^2 ]
13421 <p>This matrix can then be used to apply the rotation to a
13422 column vector point with</p>
13423 <p><code>p' = Rp</code></p>
13424 <p>where <code>p</code> is in the device sensor coordinate system,<wbr/> and
13425 <code>p'</code> is in the camera-oriented coordinate system.<wbr/></p>
13430 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13431 <!-- end of entry -->
13434 <tr class="entry" id="dynamic_android.lens.poseTranslation">
13435 <td class="entry_name
13437 android.<wbr/>lens.<wbr/>pose<wbr/>Translation
13439 <td class="entry_type">
13440 <span class="entry_type_name">float</span>
13441 <span class="entry_type_container">x</span>
13443 <span class="entry_type_array">
13446 <span class="entry_type_visibility"> [public]</span>
13453 </td> <!-- entry_type -->
13455 <td class="entry_description">
13456 <p>Position of the camera optical center.<wbr/></p>
13459 <td class="entry_units">
13463 <td class="entry_range">
13466 <td class="entry_tags">
13467 <ul class="entry_tags">
13468 <li><a href="#tag_DEPTH">DEPTH</a></li>
13473 <tr class="entries_header">
13474 <th class="th_details" colspan="5">Details</th>
13476 <tr class="entry_cont">
13477 <td class="entry_details" colspan="5">
13478 <p>The position of the camera device's lens optical center,<wbr/>
13479 as a three-dimensional vector <code>(x,<wbr/>y,<wbr/>z)</code>,<wbr/> relative to the
13480 optical center of the largest camera device facing in the
13481 same direction as this camera,<wbr/> in the <a href="https://developer.android.com/reference/android/hardware/SensorEvent.html">Android sensor coordinate
13482 axes</a>.<wbr/> Note that only the axis definitions are shared with
13483 the sensor coordinate system,<wbr/> but not the origin.<wbr/></p>
13484 <p>If this device is the largest or only camera device with a
13485 given facing,<wbr/> then this position will be <code>(0,<wbr/> 0,<wbr/> 0)</code>; a
13486 camera device with a lens optical center located 3 cm from
13487 the main sensor along the +X axis (to the right from the
13488 user's perspective) will report <code>(0.<wbr/>03,<wbr/> 0,<wbr/> 0)</code>.<wbr/></p>
13489 <p>To transform a pixel coordinates between two cameras
13490 facing the same direction,<wbr/> first the source camera
13491 <a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a> must be corrected for.<wbr/> Then
13492 the source camera <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> needs
13493 to be applied,<wbr/> followed by the <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a>
13494 of the source camera,<wbr/> the translation of the source camera
13495 relative to the destination camera,<wbr/> the
13496 <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> of the destination camera,<wbr/> and
13497 finally the inverse of <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a>
13498 of the destination camera.<wbr/> This obtains a
13499 radial-distortion-free coordinate in the destination
13500 camera pixel coordinates.<wbr/></p>
13501 <p>To compare this against a real image from the destination
13502 camera,<wbr/> the destination camera image then needs to be
13503 corrected for radial distortion before comparison or
13504 sampling.<wbr/></p>
13509 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13510 <!-- end of entry -->
13513 <tr class="entry" id="dynamic_android.lens.intrinsicCalibration">
13514 <td class="entry_name
13516 android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration
13518 <td class="entry_type">
13519 <span class="entry_type_name">float</span>
13520 <span class="entry_type_container">x</span>
13522 <span class="entry_type_array">
13525 <span class="entry_type_visibility"> [public]</span>
13532 </td> <!-- entry_type -->
13534 <td class="entry_description">
13535 <p>The parameters for this camera device's intrinsic
13536 calibration.<wbr/></p>
13539 <td class="entry_units">
13542 android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size
13543 coordinate system.<wbr/>
13547 <td class="entry_range">
13550 <td class="entry_tags">
13551 <ul class="entry_tags">
13552 <li><a href="#tag_DEPTH">DEPTH</a></li>
13557 <tr class="entries_header">
13558 <th class="th_details" colspan="5">Details</th>
13560 <tr class="entry_cont">
13561 <td class="entry_details" colspan="5">
13562 <p>The five calibration parameters that describe the
13563 transform from camera-centric 3D coordinates to sensor
13564 pixel coordinates:</p>
13565 <pre><code>[f_<wbr/>x,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>x,<wbr/> c_<wbr/>y,<wbr/> s]
13567 <p>Where <code>f_<wbr/>x</code> and <code>f_<wbr/>y</code> are the horizontal and vertical
13568 focal lengths,<wbr/> <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code> is the position of the optical
13569 axis,<wbr/> and <code>s</code> is a skew parameter for the sensor plane not
13570 being aligned with the lens plane.<wbr/></p>
13571 <p>These are typically used within a transformation matrix K:</p>
13572 <pre><code>K = [ f_<wbr/>x,<wbr/> s,<wbr/> c_<wbr/>x,<wbr/>
13573 0,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>y,<wbr/>
13576 <p>which can then be combined with the camera pose rotation
13577 <code>R</code> and translation <code>t</code> (<a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> and
13578 <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>,<wbr/> respective) to calculate the
13579 complete transform from world coordinates to pixel
13581 <pre><code>P = [ K 0 * [ R t
13584 <p>and with <code>p_<wbr/>w</code> being a point in the world coordinate system
13585 and <code>p_<wbr/>s</code> being a point in the camera active pixel array
13586 coordinate system,<wbr/> and with the mapping including the
13587 homogeneous division by z:</p>
13588 <pre><code> p_<wbr/>h = (x_<wbr/>h,<wbr/> y_<wbr/>h,<wbr/> z_<wbr/>h) = P p_<wbr/>w
13589 p_<wbr/>s = p_<wbr/>h /<wbr/> z_<wbr/>h
13591 <p>so <code>[x_<wbr/>s,<wbr/> y_<wbr/>s]</code> is the pixel coordinates of the world
13592 point,<wbr/> <code>z_<wbr/>s = 1</code>,<wbr/> and <code>w_<wbr/>s</code> is a measurement of disparity
13593 (depth) in pixel coordinates.<wbr/></p>
13594 <p>Note that the coordinate system for this transform is the
13595 <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/>
13596 where <code>(0,<wbr/>0)</code> is the top-left of the
13597 preCorrectionActiveArraySize rectangle.<wbr/> Once the pose and
13598 intrinsic calibration transforms have been applied to a
13599 world point,<wbr/> then the <a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a>
13600 transform needs to be applied,<wbr/> and the result adjusted to
13601 be in the <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> coordinate
13602 system (where <code>(0,<wbr/> 0)</code> is the top-left of the
13603 activeArraySize rectangle),<wbr/> to determine the final pixel
13604 coordinate of the world point for processed (non-RAW)
13605 output buffers.<wbr/></p>
13610 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13611 <!-- end of entry -->
13614 <tr class="entry" id="dynamic_android.lens.radialDistortion">
13615 <td class="entry_name
13617 android.<wbr/>lens.<wbr/>radial<wbr/>Distortion
13619 <td class="entry_type">
13620 <span class="entry_type_name">float</span>
13621 <span class="entry_type_container">x</span>
13623 <span class="entry_type_array">
13626 <span class="entry_type_visibility"> [public]</span>
13633 </td> <!-- entry_type -->
13635 <td class="entry_description">
13636 <p>The correction coefficients to correct for this camera device's
13637 radial and tangential lens distortion.<wbr/></p>
13640 <td class="entry_units">
13642 Unitless coefficients.<wbr/>
13646 <td class="entry_range">
13649 <td class="entry_tags">
13650 <ul class="entry_tags">
13651 <li><a href="#tag_DEPTH">DEPTH</a></li>
13656 <tr class="entries_header">
13657 <th class="th_details" colspan="5">Details</th>
13659 <tr class="entry_cont">
13660 <td class="entry_details" colspan="5">
13661 <p>Four radial distortion coefficients <code>[kappa_<wbr/>0,<wbr/> kappa_<wbr/>1,<wbr/> kappa_<wbr/>2,<wbr/>
13662 kappa_<wbr/>3]</code> and two tangential distortion coefficients
13663 <code>[kappa_<wbr/>4,<wbr/> kappa_<wbr/>5]</code> that can be used to correct the
13664 lens's geometric distortion with the mapping equations:</p>
13665 <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 ) +
13666 kappa_<wbr/>4 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>5 * ( r^2 + 2 * x_<wbr/>i^2 )
13667 y_<wbr/>c = y_<wbr/>i * ( kappa_<wbr/>0 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
13668 kappa_<wbr/>5 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>4 * ( r^2 + 2 * y_<wbr/>i^2 )
13670 <p>Here,<wbr/> <code>[x_<wbr/>c,<wbr/> y_<wbr/>c]</code> are the coordinates to sample in the
13671 input image that correspond to the pixel values in the
13672 corrected image at the coordinate <code>[x_<wbr/>i,<wbr/> y_<wbr/>i]</code>:</p>
13673 <pre><code> correctedImage(x_<wbr/>i,<wbr/> y_<wbr/>i) = sample_<wbr/>at(x_<wbr/>c,<wbr/> y_<wbr/>c,<wbr/> inputImage)
13675 <p>The pixel coordinates are defined in a normalized
13676 coordinate system related to the
13677 <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> calibration fields.<wbr/>
13678 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
13679 lens optical center <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code>.<wbr/> The maximum magnitudes
13680 of both x and y coordinates are normalized to be 1 at the
13681 edge further from the optical center,<wbr/> so the range
13682 for both dimensions is <code>-1 <= x <= 1</code>.<wbr/></p>
13683 <p>Finally,<wbr/> <code>r</code> represents the radial distance from the
13684 optical center,<wbr/> <code>r^2 = x_<wbr/>i^2 + y_<wbr/>i^2</code>,<wbr/> and its magnitude
13685 is therefore no larger than <code>|<wbr/>r|<wbr/> <= sqrt(2)</code>.<wbr/></p>
13686 <p>The distortion model used is the Brown-Conrady model.<wbr/></p>
13691 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13692 <!-- end of entry -->
13696 <!-- end of kind -->
13699 <!-- end of section -->
13700 <tr><td colspan="6" id="section_noiseReduction" class="section">noiseReduction</td></tr>
13703 <tr><td colspan="6" class="kind">controls</td></tr>
13705 <thead class="entries_header">
13707 <th class="th_name">Property Name</th>
13708 <th class="th_type">Type</th>
13709 <th class="th_description">Description</th>
13710 <th class="th_units">Units</th>
13711 <th class="th_range">Range</th>
13712 <th class="th_tags">Tags</th>
13727 <tr class="entry" id="controls_android.noiseReduction.mode">
13728 <td class="entry_name
13730 android.<wbr/>noise<wbr/>Reduction.<wbr/>mode
13732 <td class="entry_type">
13733 <span class="entry_type_name entry_type_name_enum">byte</span>
13735 <span class="entry_type_visibility"> [public]</span>
13738 <span class="entry_type_hwlevel">[full] </span>
13742 <ul class="entry_type_enum">
13744 <span class="entry_type_enum_name">OFF</span>
13745 <span class="entry_type_enum_notes"><p>No noise reduction is applied.<wbr/></p></span>
13748 <span class="entry_type_enum_name">FAST</span>
13749 <span class="entry_type_enum_notes"><p>Noise reduction is applied without reducing frame rate relative to sensor
13750 output.<wbr/> It may be the same as OFF if noise reduction will reduce frame rate
13751 relative to sensor.<wbr/></p></span>
13754 <span class="entry_type_enum_name">HIGH_QUALITY</span>
13755 <span class="entry_type_enum_notes"><p>High-quality noise reduction is applied,<wbr/> at the cost of possibly reduced frame
13756 rate relative to sensor output.<wbr/></p></span>
13759 <span class="entry_type_enum_name">MINIMAL</span>
13760 <span class="entry_type_enum_optional">[optional]</span>
13761 <span class="entry_type_enum_notes"><p>MINIMAL noise reduction is applied without reducing frame rate relative to
13762 sensor output.<wbr/> </p></span>
13765 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
13766 <span class="entry_type_enum_optional">[optional]</span>
13767 <span class="entry_type_enum_notes"><p>Noise reduction is applied at different levels for different output streams,<wbr/>
13768 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
13769 reduction applied,<wbr/> while higher-resolution streams have MINIMAL (if supported) or no
13770 noise reduction applied (if MINIMAL is not supported.<wbr/>) The degree of noise reduction
13771 for low-resolution streams is tuned so that frame rate is not impacted,<wbr/> and the quality
13772 is equal to or better than FAST (since it is only applied to lower-resolution outputs,<wbr/>
13773 quality may improve from FAST).<wbr/></p>
13774 <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
13775 with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
13776 high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
13777 produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
13778 high-resolution buffers must not have noise reduction applied to maximize efficiency of
13779 preview and to avoid over-applying noise filtering when reprocessing,<wbr/> while
13780 low-resolution buffers (used for recording or preview,<wbr/> generally) need noise reduction
13781 applied for reasonable preview quality.<wbr/></p>
13782 <p>This mode is guaranteed to be supported by devices that support either the
13783 YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
13784 (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
13785 be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
13789 </td> <!-- entry_type -->
13791 <td class="entry_description">
13792 <p>Mode of operation for the noise reduction algorithm.<wbr/></p>
13795 <td class="entry_units">
13798 <td class="entry_range">
13799 <p><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a></p>
13802 <td class="entry_tags">
13803 <ul class="entry_tags">
13804 <li><a href="#tag_V1">V1</a></li>
13805 <li><a href="#tag_REPROC">REPROC</a></li>
13810 <tr class="entries_header">
13811 <th class="th_details" colspan="5">Details</th>
13813 <tr class="entry_cont">
13814 <td class="entry_details" colspan="5">
13815 <p>The noise reduction algorithm attempts to improve image quality by removing
13816 excessive noise added by the capture process,<wbr/> especially in dark conditions.<wbr/></p>
13817 <p>OFF means no noise reduction will be applied by the camera device,<wbr/> for both raw and
13818 YUV domain.<wbr/></p>
13819 <p>MINIMAL means that only sensor raw domain basic noise reduction is enabled ,<wbr/>to remove
13820 demosaicing or other processing artifacts.<wbr/> For YUV_<wbr/>REPROCESSING,<wbr/> MINIMAL is same as OFF.<wbr/>
13821 This mode is optional,<wbr/> may not be support by all devices.<wbr/> The application should check
13822 <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>
13823 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined noise filtering
13824 will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device
13825 will use the highest-quality noise filtering algorithms,<wbr/>
13826 even if it slows down capture rate.<wbr/> FAST means the camera device will not
13827 slow down capture rate when applying noise filtering.<wbr/> FAST may be the same as MINIMAL if
13828 MINIMAL is listed,<wbr/> or the same as OFF if any noise filtering will slow down capture rate.<wbr/>
13829 Every output stream will have a similar amount of enhancement applied.<wbr/></p>
13830 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
13831 buffer of high-resolution images during preview and reprocess image(s) from that buffer
13832 into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
13833 noise reduction to low-resolution streams (below maximum recording resolution) to maximize
13834 preview quality,<wbr/> but does not apply noise reduction to high-resolution streams,<wbr/> since
13835 those will be reprocessed later if necessary.<wbr/></p>
13836 <p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera device
13837 will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV domain noise reduction,<wbr/> respectively.<wbr/> The camera device
13838 may adjust the noise reduction parameters for best image quality based on the
13839 <a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a> if it is set.<wbr/></p>
13843 <tr class="entries_header">
13844 <th class="th_details" colspan="5">HAL Implementation Details</th>
13846 <tr class="entry_cont">
13847 <td class="entry_details" colspan="5">
13848 <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
13849 adjust the internal noise reduction parameters appropriately to get the best quality
13854 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13855 <!-- end of entry -->
13858 <tr class="entry" id="controls_android.noiseReduction.strength">
13859 <td class="entry_name
13861 android.<wbr/>noise<wbr/>Reduction.<wbr/>strength
13863 <td class="entry_type">
13864 <span class="entry_type_name">byte</span>
13866 <span class="entry_type_visibility"> [system]</span>
13873 </td> <!-- entry_type -->
13875 <td class="entry_description">
13876 <p>Control the amount of noise reduction
13877 applied to the images</p>
13880 <td class="entry_units">
13881 1-10; 10 is max noise reduction
13884 <td class="entry_range">
13888 <td class="entry_tags">
13889 <ul class="entry_tags">
13890 <li><a href="#tag_FUTURE">FUTURE</a></li>
13897 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13898 <!-- end of entry -->
13902 <!-- end of kind -->
13904 <tr><td colspan="6" class="kind">static</td></tr>
13906 <thead class="entries_header">
13908 <th class="th_name">Property Name</th>
13909 <th class="th_type">Type</th>
13910 <th class="th_description">Description</th>
13911 <th class="th_units">Units</th>
13912 <th class="th_range">Range</th>
13913 <th class="th_tags">Tags</th>
13928 <tr class="entry" id="static_android.noiseReduction.availableNoiseReductionModes">
13929 <td class="entry_name
13931 android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes
13933 <td class="entry_type">
13934 <span class="entry_type_name">byte</span>
13935 <span class="entry_type_container">x</span>
13937 <span class="entry_type_array">
13940 <span class="entry_type_visibility"> [public as enumList]</span>
13943 <span class="entry_type_hwlevel">[limited] </span>
13946 <div class="entry_type_notes">list of enums</div>
13949 </td> <!-- entry_type -->
13951 <td class="entry_description">
13952 <p>List of noise reduction modes for <a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a> that are supported
13953 by this camera device.<wbr/></p>
13956 <td class="entry_units">
13959 <td class="entry_range">
13960 <p>Any value listed in <a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a></p>
13963 <td class="entry_tags">
13964 <ul class="entry_tags">
13965 <li><a href="#tag_V1">V1</a></li>
13966 <li><a href="#tag_REPROC">REPROC</a></li>
13971 <tr class="entries_header">
13972 <th class="th_details" colspan="5">Details</th>
13974 <tr class="entry_cont">
13975 <td class="entry_details" colspan="5">
13976 <p>Full-capability camera devices will always support OFF and FAST.<wbr/></p>
13977 <p>Camera devices that support YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING will support
13978 ZERO_<wbr/>SHUTTER_<wbr/>LAG.<wbr/></p>
13979 <p>Legacy-capability camera devices will only support FAST mode.<wbr/></p>
13983 <tr class="entries_header">
13984 <th class="th_details" colspan="5">HAL Implementation Details</th>
13986 <tr class="entry_cont">
13987 <td class="entry_details" colspan="5">
13988 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if noise reduction control is available
13989 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
13990 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
13991 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
13995 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
13996 <!-- end of entry -->
14000 <!-- end of kind -->
14002 <tr><td colspan="6" class="kind">dynamic</td></tr>
14004 <thead class="entries_header">
14006 <th class="th_name">Property Name</th>
14007 <th class="th_type">Type</th>
14008 <th class="th_description">Description</th>
14009 <th class="th_units">Units</th>
14010 <th class="th_range">Range</th>
14011 <th class="th_tags">Tags</th>
14026 <tr class="entry" id="dynamic_android.noiseReduction.mode">
14027 <td class="entry_name
14029 android.<wbr/>noise<wbr/>Reduction.<wbr/>mode
14031 <td class="entry_type">
14032 <span class="entry_type_name entry_type_name_enum">byte</span>
14034 <span class="entry_type_visibility"> [public]</span>
14037 <span class="entry_type_hwlevel">[full] </span>
14041 <ul class="entry_type_enum">
14043 <span class="entry_type_enum_name">OFF</span>
14044 <span class="entry_type_enum_notes"><p>No noise reduction is applied.<wbr/></p></span>
14047 <span class="entry_type_enum_name">FAST</span>
14048 <span class="entry_type_enum_notes"><p>Noise reduction is applied without reducing frame rate relative to sensor
14049 output.<wbr/> It may be the same as OFF if noise reduction will reduce frame rate
14050 relative to sensor.<wbr/></p></span>
14053 <span class="entry_type_enum_name">HIGH_QUALITY</span>
14054 <span class="entry_type_enum_notes"><p>High-quality noise reduction is applied,<wbr/> at the cost of possibly reduced frame
14055 rate relative to sensor output.<wbr/></p></span>
14058 <span class="entry_type_enum_name">MINIMAL</span>
14059 <span class="entry_type_enum_optional">[optional]</span>
14060 <span class="entry_type_enum_notes"><p>MINIMAL noise reduction is applied without reducing frame rate relative to
14061 sensor output.<wbr/> </p></span>
14064 <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
14065 <span class="entry_type_enum_optional">[optional]</span>
14066 <span class="entry_type_enum_notes"><p>Noise reduction is applied at different levels for different output streams,<wbr/>
14067 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
14068 reduction applied,<wbr/> while higher-resolution streams have MINIMAL (if supported) or no
14069 noise reduction applied (if MINIMAL is not supported.<wbr/>) The degree of noise reduction
14070 for low-resolution streams is tuned so that frame rate is not impacted,<wbr/> and the quality
14071 is equal to or better than FAST (since it is only applied to lower-resolution outputs,<wbr/>
14072 quality may improve from FAST).<wbr/></p>
14073 <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
14074 with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
14075 high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
14076 produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
14077 high-resolution buffers must not have noise reduction applied to maximize efficiency of
14078 preview and to avoid over-applying noise filtering when reprocessing,<wbr/> while
14079 low-resolution buffers (used for recording or preview,<wbr/> generally) need noise reduction
14080 applied for reasonable preview quality.<wbr/></p>
14081 <p>This mode is guaranteed to be supported by devices that support either the
14082 YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
14083 (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
14084 be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
14088 </td> <!-- entry_type -->
14090 <td class="entry_description">
14091 <p>Mode of operation for the noise reduction algorithm.<wbr/></p>
14094 <td class="entry_units">
14097 <td class="entry_range">
14098 <p><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a></p>
14101 <td class="entry_tags">
14102 <ul class="entry_tags">
14103 <li><a href="#tag_V1">V1</a></li>
14104 <li><a href="#tag_REPROC">REPROC</a></li>
14109 <tr class="entries_header">
14110 <th class="th_details" colspan="5">Details</th>
14112 <tr class="entry_cont">
14113 <td class="entry_details" colspan="5">
14114 <p>The noise reduction algorithm attempts to improve image quality by removing
14115 excessive noise added by the capture process,<wbr/> especially in dark conditions.<wbr/></p>
14116 <p>OFF means no noise reduction will be applied by the camera device,<wbr/> for both raw and
14117 YUV domain.<wbr/></p>
14118 <p>MINIMAL means that only sensor raw domain basic noise reduction is enabled ,<wbr/>to remove
14119 demosaicing or other processing artifacts.<wbr/> For YUV_<wbr/>REPROCESSING,<wbr/> MINIMAL is same as OFF.<wbr/>
14120 This mode is optional,<wbr/> may not be support by all devices.<wbr/> The application should check
14121 <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>
14122 <p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined noise filtering
14123 will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device
14124 will use the highest-quality noise filtering algorithms,<wbr/>
14125 even if it slows down capture rate.<wbr/> FAST means the camera device will not
14126 slow down capture rate when applying noise filtering.<wbr/> FAST may be the same as MINIMAL if
14127 MINIMAL is listed,<wbr/> or the same as OFF if any noise filtering will slow down capture rate.<wbr/>
14128 Every output stream will have a similar amount of enhancement applied.<wbr/></p>
14129 <p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
14130 buffer of high-resolution images during preview and reprocess image(s) from that buffer
14131 into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
14132 noise reduction to low-resolution streams (below maximum recording resolution) to maximize
14133 preview quality,<wbr/> but does not apply noise reduction to high-resolution streams,<wbr/> since
14134 those will be reprocessed later if necessary.<wbr/></p>
14135 <p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera device
14136 will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV domain noise reduction,<wbr/> respectively.<wbr/> The camera device
14137 may adjust the noise reduction parameters for best image quality based on the
14138 <a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a> if it is set.<wbr/></p>
14142 <tr class="entries_header">
14143 <th class="th_details" colspan="5">HAL Implementation Details</th>
14145 <tr class="entry_cont">
14146 <td class="entry_details" colspan="5">
14147 <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
14148 adjust the internal noise reduction parameters appropriately to get the best quality
14153 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14154 <!-- end of entry -->
14158 <!-- end of kind -->
14161 <!-- end of section -->
14162 <tr><td colspan="6" id="section_quirks" class="section">quirks</td></tr>
14165 <tr><td colspan="6" class="kind">static</td></tr>
14167 <thead class="entries_header">
14169 <th class="th_name">Property Name</th>
14170 <th class="th_type">Type</th>
14171 <th class="th_description">Description</th>
14172 <th class="th_units">Units</th>
14173 <th class="th_range">Range</th>
14174 <th class="th_tags">Tags</th>
14189 <tr class="entry" id="static_android.quirks.meteringCropRegion">
14190 <td class="entry_name
14191 entry_name_deprecated
14193 android.<wbr/>quirks.<wbr/>metering<wbr/>Crop<wbr/>Region
14195 <td class="entry_type">
14196 <span class="entry_type_name">byte</span>
14198 <span class="entry_type_visibility"> [system]</span>
14202 <span class="entry_type_deprecated">[deprecated] </span>
14206 </td> <!-- entry_type -->
14208 <td class="entry_description">
14209 <p>If set to 1,<wbr/> the camera service does not
14210 scale 'normalized' coordinates with respect to the crop
14211 region.<wbr/> This applies to metering input (a{e,<wbr/>f,<wbr/>wb}Region
14212 and output (face rectangles).<wbr/></p>
14215 <td class="entry_units">
14218 <td class="entry_range">
14219 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14222 <td class="entry_tags">
14226 <tr class="entries_header">
14227 <th class="th_details" colspan="5">Details</th>
14229 <tr class="entry_cont">
14230 <td class="entry_details" colspan="5">
14231 <p>Normalized coordinates refer to those in the
14232 (-1000,<wbr/>1000) range mentioned in the
14233 android.<wbr/>hardware.<wbr/>Camera API.<wbr/></p>
14234 <p>HAL implementations should instead always use and emit
14235 sensor array-relative coordinates for all region data.<wbr/> Does
14236 not need to be listed in static metadata.<wbr/> Support will be
14237 removed in future versions of camera service.<wbr/></p>
14242 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14243 <!-- end of entry -->
14246 <tr class="entry" id="static_android.quirks.triggerAfWithAuto">
14247 <td class="entry_name
14248 entry_name_deprecated
14250 android.<wbr/>quirks.<wbr/>trigger<wbr/>Af<wbr/>With<wbr/>Auto
14252 <td class="entry_type">
14253 <span class="entry_type_name">byte</span>
14255 <span class="entry_type_visibility"> [system]</span>
14259 <span class="entry_type_deprecated">[deprecated] </span>
14263 </td> <!-- entry_type -->
14265 <td class="entry_description">
14266 <p>If set to 1,<wbr/> then the camera service always
14267 switches to FOCUS_<wbr/>MODE_<wbr/>AUTO before issuing a AF
14271 <td class="entry_units">
14274 <td class="entry_range">
14275 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14278 <td class="entry_tags">
14282 <tr class="entries_header">
14283 <th class="th_details" colspan="5">Details</th>
14285 <tr class="entry_cont">
14286 <td class="entry_details" colspan="5">
14287 <p>HAL implementations should implement AF trigger
14288 modes for AUTO,<wbr/> MACRO,<wbr/> CONTINUOUS_<wbr/>FOCUS,<wbr/> and
14289 CONTINUOUS_<wbr/>PICTURE modes instead of using this flag.<wbr/> Does
14290 not need to be listed in static metadata.<wbr/> Support will be
14291 removed in future versions of camera service</p>
14296 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14297 <!-- end of entry -->
14300 <tr class="entry" id="static_android.quirks.useZslFormat">
14301 <td class="entry_name
14302 entry_name_deprecated
14304 android.<wbr/>quirks.<wbr/>use<wbr/>Zsl<wbr/>Format
14306 <td class="entry_type">
14307 <span class="entry_type_name">byte</span>
14309 <span class="entry_type_visibility"> [system]</span>
14313 <span class="entry_type_deprecated">[deprecated] </span>
14317 </td> <!-- entry_type -->
14319 <td class="entry_description">
14320 <p>If set to 1,<wbr/> the camera service uses
14321 CAMERA2_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>ZSL instead of
14322 HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>IMPLEMENTATION_<wbr/>DEFINED for the zero
14323 shutter lag stream</p>
14326 <td class="entry_units">
14329 <td class="entry_range">
14330 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14333 <td class="entry_tags">
14337 <tr class="entries_header">
14338 <th class="th_details" colspan="5">Details</th>
14340 <tr class="entry_cont">
14341 <td class="entry_details" colspan="5">
14342 <p>HAL implementations should use gralloc usage flags
14343 to determine that a stream will be used for
14344 zero-shutter-lag,<wbr/> instead of relying on an explicit
14345 format setting.<wbr/> Does not need to be listed in static
14346 metadata.<wbr/> Support will be removed in future versions of
14347 camera service.<wbr/></p>
14352 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14353 <!-- end of entry -->
14356 <tr class="entry" id="static_android.quirks.usePartialResult">
14357 <td class="entry_name
14358 entry_name_deprecated
14360 android.<wbr/>quirks.<wbr/>use<wbr/>Partial<wbr/>Result
14362 <td class="entry_type">
14363 <span class="entry_type_name">byte</span>
14365 <span class="entry_type_visibility"> [hidden]</span>
14369 <span class="entry_type_deprecated">[deprecated] </span>
14373 </td> <!-- entry_type -->
14375 <td class="entry_description">
14376 <p>If set to 1,<wbr/> the HAL will always split result
14377 metadata for a single capture into multiple buffers,<wbr/>
14378 returned using multiple process_<wbr/>capture_<wbr/>result calls.<wbr/></p>
14381 <td class="entry_units">
14384 <td class="entry_range">
14385 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14388 <td class="entry_tags">
14392 <tr class="entries_header">
14393 <th class="th_details" colspan="5">Details</th>
14395 <tr class="entry_cont">
14396 <td class="entry_details" colspan="5">
14397 <p>Does not need to be listed in static
14398 metadata.<wbr/> Support for partial results will be reworked in
14399 future versions of camera service.<wbr/> This quirk will stop
14400 working at that point; DO NOT USE without careful
14401 consideration of future support.<wbr/></p>
14405 <tr class="entries_header">
14406 <th class="th_details" colspan="5">HAL Implementation Details</th>
14408 <tr class="entry_cont">
14409 <td class="entry_details" colspan="5">
14410 <p>Refer to <code>camera3_<wbr/>capture_<wbr/>result::partial_<wbr/>result</code>
14411 for information on how to implement partial results.<wbr/></p>
14415 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14416 <!-- end of entry -->
14420 <!-- end of kind -->
14422 <tr><td colspan="6" class="kind">dynamic</td></tr>
14424 <thead class="entries_header">
14426 <th class="th_name">Property Name</th>
14427 <th class="th_type">Type</th>
14428 <th class="th_description">Description</th>
14429 <th class="th_units">Units</th>
14430 <th class="th_range">Range</th>
14431 <th class="th_tags">Tags</th>
14446 <tr class="entry" id="dynamic_android.quirks.partialResult">
14447 <td class="entry_name
14448 entry_name_deprecated
14450 android.<wbr/>quirks.<wbr/>partial<wbr/>Result
14452 <td class="entry_type">
14453 <span class="entry_type_name entry_type_name_enum">byte</span>
14455 <span class="entry_type_visibility"> [hidden as boolean]</span>
14459 <span class="entry_type_deprecated">[deprecated] </span>
14462 <ul class="entry_type_enum">
14464 <span class="entry_type_enum_name">FINAL</span>
14465 <span class="entry_type_enum_notes"><p>The last or only metadata result buffer
14466 for this capture.<wbr/></p></span>
14469 <span class="entry_type_enum_name">PARTIAL</span>
14470 <span class="entry_type_enum_notes"><p>A partial buffer of result metadata for this
14471 capture.<wbr/> More result buffers for this capture will be sent
14472 by the camera device,<wbr/> the last of which will be marked
14473 FINAL.<wbr/></p></span>
14477 </td> <!-- entry_type -->
14479 <td class="entry_description">
14480 <p>Whether a result given to the framework is the
14481 final one for the capture,<wbr/> or only a partial that contains a
14482 subset of the full set of dynamic metadata
14486 <td class="entry_units">
14489 <td class="entry_range">
14490 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14491 <p>Optional.<wbr/> Default value is FINAL.<wbr/></p>
14494 <td class="entry_tags">
14498 <tr class="entries_header">
14499 <th class="th_details" colspan="5">Details</th>
14501 <tr class="entry_cont">
14502 <td class="entry_details" colspan="5">
14503 <p>The entries in the result metadata buffers for a
14504 single capture may not overlap,<wbr/> except for this entry.<wbr/> The
14505 FINAL buffers must retain FIFO ordering relative to the
14506 requests that generate them,<wbr/> so the FINAL buffer for frame 3 must
14507 always be sent to the framework after the FINAL buffer for frame 2,<wbr/> and
14508 before the FINAL buffer for frame 4.<wbr/> PARTIAL buffers may be returned
14509 in any order relative to other frames,<wbr/> but all PARTIAL buffers for a given
14510 capture must arrive before the FINAL buffer for that capture.<wbr/> This entry may
14511 only be used by the camera device if quirks.<wbr/>usePartialResult is set to 1.<wbr/></p>
14515 <tr class="entries_header">
14516 <th class="th_details" colspan="5">HAL Implementation Details</th>
14518 <tr class="entry_cont">
14519 <td class="entry_details" colspan="5">
14520 <p>Refer to <code>camera3_<wbr/>capture_<wbr/>result::partial_<wbr/>result</code>
14521 for information on how to implement partial results.<wbr/></p>
14525 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14526 <!-- end of entry -->
14530 <!-- end of kind -->
14533 <!-- end of section -->
14534 <tr><td colspan="6" id="section_request" class="section">request</td></tr>
14537 <tr><td colspan="6" class="kind">controls</td></tr>
14539 <thead class="entries_header">
14541 <th class="th_name">Property Name</th>
14542 <th class="th_type">Type</th>
14543 <th class="th_description">Description</th>
14544 <th class="th_units">Units</th>
14545 <th class="th_range">Range</th>
14546 <th class="th_tags">Tags</th>
14561 <tr class="entry" id="controls_android.request.frameCount">
14562 <td class="entry_name
14563 entry_name_deprecated
14565 android.<wbr/>request.<wbr/>frame<wbr/>Count
14567 <td class="entry_type">
14568 <span class="entry_type_name">int32</span>
14570 <span class="entry_type_visibility"> [system]</span>
14574 <span class="entry_type_deprecated">[deprecated] </span>
14578 </td> <!-- entry_type -->
14580 <td class="entry_description">
14581 <p>A frame counter set by the framework.<wbr/> Must
14582 be maintained unchanged in output frame.<wbr/> This value monotonically
14583 increases with every new result (that is,<wbr/> each new result has a unique
14584 frameCount value).<wbr/></p>
14587 <td class="entry_units">
14588 incrementing integer
14591 <td class="entry_range">
14592 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14593 <p>Any int.<wbr/></p>
14596 <td class="entry_tags">
14602 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14603 <!-- end of entry -->
14606 <tr class="entry" id="controls_android.request.id">
14607 <td class="entry_name
14609 android.<wbr/>request.<wbr/>id
14611 <td class="entry_type">
14612 <span class="entry_type_name">int32</span>
14614 <span class="entry_type_visibility"> [hidden]</span>
14621 </td> <!-- entry_type -->
14623 <td class="entry_description">
14624 <p>An application-specified ID for the current
14625 request.<wbr/> Must be maintained unchanged in output
14629 <td class="entry_units">
14630 arbitrary integer assigned by application
14633 <td class="entry_range">
14637 <td class="entry_tags">
14638 <ul class="entry_tags">
14639 <li><a href="#tag_V1">V1</a></li>
14646 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14647 <!-- end of entry -->
14650 <tr class="entry" id="controls_android.request.inputStreams">
14651 <td class="entry_name
14652 entry_name_deprecated
14654 android.<wbr/>request.<wbr/>input<wbr/>Streams
14656 <td class="entry_type">
14657 <span class="entry_type_name">int32</span>
14658 <span class="entry_type_container">x</span>
14660 <span class="entry_type_array">
14663 <span class="entry_type_visibility"> [system]</span>
14667 <span class="entry_type_deprecated">[deprecated] </span>
14671 </td> <!-- entry_type -->
14673 <td class="entry_description">
14674 <p>List which camera reprocess stream is used
14675 for the source of reprocessing data.<wbr/></p>
14678 <td class="entry_units">
14679 List of camera reprocess stream IDs
14682 <td class="entry_range">
14683 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14684 <p>Typically,<wbr/> only one entry allowed,<wbr/> must be a valid reprocess stream ID.<wbr/></p>
14687 <td class="entry_tags">
14688 <ul class="entry_tags">
14689 <li><a href="#tag_HAL2">HAL2</a></li>
14694 <tr class="entries_header">
14695 <th class="th_details" colspan="5">Details</th>
14697 <tr class="entry_cont">
14698 <td class="entry_details" colspan="5">
14699 <p>Only meaningful when <a href="#controls_android.request.type">android.<wbr/>request.<wbr/>type</a> ==
14700 REPROCESS.<wbr/> Ignored otherwise</p>
14705 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14706 <!-- end of entry -->
14709 <tr class="entry" id="controls_android.request.metadataMode">
14710 <td class="entry_name
14712 android.<wbr/>request.<wbr/>metadata<wbr/>Mode
14714 <td class="entry_type">
14715 <span class="entry_type_name entry_type_name_enum">byte</span>
14717 <span class="entry_type_visibility"> [system]</span>
14723 <ul class="entry_type_enum">
14725 <span class="entry_type_enum_name">NONE</span>
14726 <span class="entry_type_enum_notes"><p>No metadata should be produced on output,<wbr/> except
14727 for application-bound buffer data.<wbr/> If no
14728 application-bound streams exist,<wbr/> no frame should be
14729 placed in the output frame queue.<wbr/> If such streams
14730 exist,<wbr/> a frame should be placed on the output queue
14731 with null metadata but with the necessary output buffer
14732 information.<wbr/> Timestamp information should still be
14733 included with any output stream buffers</p></span>
14736 <span class="entry_type_enum_name">FULL</span>
14737 <span class="entry_type_enum_notes"><p>All metadata should be produced.<wbr/> Statistics will
14738 only be produced if they are separately
14743 </td> <!-- entry_type -->
14745 <td class="entry_description">
14746 <p>How much metadata to produce on
14750 <td class="entry_units">
14753 <td class="entry_range">
14756 <td class="entry_tags">
14757 <ul class="entry_tags">
14758 <li><a href="#tag_FUTURE">FUTURE</a></li>
14765 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14766 <!-- end of entry -->
14769 <tr class="entry" id="controls_android.request.outputStreams">
14770 <td class="entry_name
14771 entry_name_deprecated
14773 android.<wbr/>request.<wbr/>output<wbr/>Streams
14775 <td class="entry_type">
14776 <span class="entry_type_name">int32</span>
14777 <span class="entry_type_container">x</span>
14779 <span class="entry_type_array">
14782 <span class="entry_type_visibility"> [system]</span>
14786 <span class="entry_type_deprecated">[deprecated] </span>
14790 </td> <!-- entry_type -->
14792 <td class="entry_description">
14793 <p>Lists which camera output streams image data
14794 from this capture must be sent to</p>
14797 <td class="entry_units">
14798 List of camera stream IDs
14801 <td class="entry_range">
14802 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14803 <p>List must only include streams that have been
14807 <td class="entry_tags">
14808 <ul class="entry_tags">
14809 <li><a href="#tag_HAL2">HAL2</a></li>
14814 <tr class="entries_header">
14815 <th class="th_details" colspan="5">Details</th>
14817 <tr class="entry_cont">
14818 <td class="entry_details" colspan="5">
14819 <p>If no output streams are listed,<wbr/> then the image
14820 data should simply be discarded.<wbr/> The image data must
14821 still be captured for metadata and statistics production,<wbr/>
14822 and the lens and flash must operate as requested.<wbr/></p>
14827 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14828 <!-- end of entry -->
14831 <tr class="entry" id="controls_android.request.type">
14832 <td class="entry_name
14833 entry_name_deprecated
14835 android.<wbr/>request.<wbr/>type
14837 <td class="entry_type">
14838 <span class="entry_type_name entry_type_name_enum">byte</span>
14840 <span class="entry_type_visibility"> [system]</span>
14844 <span class="entry_type_deprecated">[deprecated] </span>
14847 <ul class="entry_type_enum">
14849 <span class="entry_type_enum_name">CAPTURE</span>
14850 <span class="entry_type_enum_notes"><p>Capture a new image from the imaging hardware,<wbr/>
14851 and process it according to the
14852 settings</p></span>
14855 <span class="entry_type_enum_name">REPROCESS</span>
14856 <span class="entry_type_enum_notes"><p>Process previously captured data; the
14857 <a href="#controls_android.request.inputStreams">android.<wbr/>request.<wbr/>input<wbr/>Streams</a> parameter determines the
14858 source reprocessing stream.<wbr/> TODO: Mark dynamic metadata
14859 needed for reprocessing with [RP]</p></span>
14863 </td> <!-- entry_type -->
14865 <td class="entry_description">
14866 <p>The type of the request; either CAPTURE or
14867 REPROCESS.<wbr/> For HAL3,<wbr/> this tag is redundant.<wbr/></p>
14870 <td class="entry_units">
14873 <td class="entry_range">
14874 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
14877 <td class="entry_tags">
14878 <ul class="entry_tags">
14879 <li><a href="#tag_HAL2">HAL2</a></li>
14886 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14887 <!-- end of entry -->
14891 <!-- end of kind -->
14893 <tr><td colspan="6" class="kind">static</td></tr>
14895 <thead class="entries_header">
14897 <th class="th_name">Property Name</th>
14898 <th class="th_type">Type</th>
14899 <th class="th_description">Description</th>
14900 <th class="th_units">Units</th>
14901 <th class="th_range">Range</th>
14902 <th class="th_tags">Tags</th>
14917 <tr class="entry" id="static_android.request.maxNumOutputStreams">
14918 <td class="entry_name
14920 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Streams
14922 <td class="entry_type">
14923 <span class="entry_type_name">int32</span>
14924 <span class="entry_type_container">x</span>
14926 <span class="entry_type_array">
14929 <span class="entry_type_visibility"> [ndk_public]</span>
14932 <span class="entry_type_hwlevel">[legacy] </span>
14937 </td> <!-- entry_type -->
14939 <td class="entry_description">
14940 <p>The maximum numbers of different types of output streams
14941 that can be configured and used simultaneously by a camera device.<wbr/></p>
14944 <td class="entry_units">
14947 <td class="entry_range">
14948 <p>For processed (and stalling) format streams,<wbr/> >= 1.<wbr/></p>
14949 <p>For Raw format (either stalling or non-stalling) streams,<wbr/> >= 0.<wbr/></p>
14950 <p>For processed (but not stalling) format streams,<wbr/> >= 3
14951 for FULL mode devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL</code>);
14952 >= 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>
14955 <td class="entry_tags">
14956 <ul class="entry_tags">
14957 <li><a href="#tag_BC">BC</a></li>
14962 <tr class="entries_header">
14963 <th class="th_details" colspan="5">Details</th>
14965 <tr class="entry_cont">
14966 <td class="entry_details" colspan="5">
14967 <p>This is a 3 element tuple that contains the max number of output simultaneous
14968 streams for raw sensor,<wbr/> processed (but not stalling),<wbr/> and processed (and stalling)
14969 formats respectively.<wbr/> For example,<wbr/> assuming that JPEG is typically a processed and
14970 stalling stream,<wbr/> if max raw sensor format output stream number is 1,<wbr/> max YUV streams
14971 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>
14972 <p>This lists the upper bound of the number of output streams supported by
14973 the camera device.<wbr/> Using more streams simultaneously may require more hardware and
14974 CPU resources that will consume more power.<wbr/> The image format for an output stream can
14975 be any supported format provided by <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a>.<wbr/>
14976 The formats defined in <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> can be catergorized
14977 into the 3 stream types as below:</p>
14979 <li>Processed (but stalling): any non-RAW format with a stallDurations > 0.<wbr/>
14980 Typically <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">JPEG format</a>.<wbr/></li>
14981 <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>
14982 <li>Processed (but not-stalling): any non-RAW format without a stall duration.<wbr/>
14983 Typically <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">YUV_<wbr/>420_<wbr/>888</a>,<wbr/>
14984 <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#NV21">NV21</a>,<wbr/> or
14985 <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YV12">YV12</a>.<wbr/></li>
14991 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
14992 <!-- end of entry -->
14995 <tr class="entry" id="static_android.request.maxNumOutputRaw">
14996 <td class="entry_name
14998 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Raw
15000 <td class="entry_type">
15001 <span class="entry_type_name">int32</span>
15003 <span class="entry_type_visibility"> [java_public]</span>
15005 <span class="entry_type_synthetic">[synthetic] </span>
15007 <span class="entry_type_hwlevel">[legacy] </span>
15012 </td> <!-- entry_type -->
15014 <td class="entry_description">
15015 <p>The maximum numbers of different types of output streams
15016 that can be configured and used simultaneously by a camera device
15017 for any <code>RAW</code> formats.<wbr/></p>
15020 <td class="entry_units">
15023 <td class="entry_range">
15027 <td class="entry_tags">
15031 <tr class="entries_header">
15032 <th class="th_details" colspan="5">Details</th>
15034 <tr class="entry_cont">
15035 <td class="entry_details" colspan="5">
15036 <p>This value contains the max number of output simultaneous
15037 streams from the raw sensor.<wbr/></p>
15038 <p>This lists the upper bound of the number of output streams supported by
15039 the camera device.<wbr/> Using more streams simultaneously may require more hardware and
15040 CPU resources that will consume more power.<wbr/> The image format for this kind of an output stream can
15041 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>
15042 <p>In particular,<wbr/> a <code>RAW</code> format is typically one of:</p>
15044 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">RAW_<wbr/>SENSOR</a></li>
15045 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW10">RAW10</a></li>
15046 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW12">RAW12</a></li>
15048 <p>LEGACY mode devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> <code>==</code> LEGACY)
15049 never support raw streams.<wbr/></p>
15054 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15055 <!-- end of entry -->
15058 <tr class="entry" id="static_android.request.maxNumOutputProc">
15059 <td class="entry_name
15061 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Proc
15063 <td class="entry_type">
15064 <span class="entry_type_name">int32</span>
15066 <span class="entry_type_visibility"> [java_public]</span>
15068 <span class="entry_type_synthetic">[synthetic] </span>
15070 <span class="entry_type_hwlevel">[legacy] </span>
15075 </td> <!-- entry_type -->
15077 <td class="entry_description">
15078 <p>The maximum numbers of different types of output streams
15079 that can be configured and used simultaneously by a camera device
15080 for any processed (but not-stalling) formats.<wbr/></p>
15083 <td class="entry_units">
15086 <td class="entry_range">
15088 for FULL mode devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL</code>);
15089 >= 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>
15092 <td class="entry_tags">
15096 <tr class="entries_header">
15097 <th class="th_details" colspan="5">Details</th>
15099 <tr class="entry_cont">
15100 <td class="entry_details" colspan="5">
15101 <p>This value contains the max number of output simultaneous
15102 streams for any processed (but not-stalling) formats.<wbr/></p>
15103 <p>This lists the upper bound of the number of output streams supported by
15104 the camera device.<wbr/> Using more streams simultaneously may require more hardware and
15105 CPU resources that will consume more power.<wbr/> The image format for this kind of an output stream can
15106 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>
15107 <p>Processed (but not-stalling) is defined as any non-RAW format without a stall duration.<wbr/>
15110 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">YUV_<wbr/>420_<wbr/>888</a></li>
15111 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#NV21">NV21</a></li>
15112 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YV12">YV12</a></li>
15113 <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>
15115 <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
15116 processed format -- it will return 0 for a non-stalling stream.<wbr/></p>
15117 <p>LEGACY devices will support at least 2 processing/<wbr/>non-stalling streams.<wbr/></p>
15122 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15123 <!-- end of entry -->
15126 <tr class="entry" id="static_android.request.maxNumOutputProcStalling">
15127 <td class="entry_name
15129 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Proc<wbr/>Stalling
15131 <td class="entry_type">
15132 <span class="entry_type_name">int32</span>
15134 <span class="entry_type_visibility"> [java_public]</span>
15136 <span class="entry_type_synthetic">[synthetic] </span>
15138 <span class="entry_type_hwlevel">[legacy] </span>
15143 </td> <!-- entry_type -->
15145 <td class="entry_description">
15146 <p>The maximum numbers of different types of output streams
15147 that can be configured and used simultaneously by a camera device
15148 for any processed (and stalling) formats.<wbr/></p>
15151 <td class="entry_units">
15154 <td class="entry_range">
15158 <td class="entry_tags">
15162 <tr class="entries_header">
15163 <th class="th_details" colspan="5">Details</th>
15165 <tr class="entry_cont">
15166 <td class="entry_details" colspan="5">
15167 <p>This value contains the max number of output simultaneous
15168 streams for any processed (but not-stalling) formats.<wbr/></p>
15169 <p>This lists the upper bound of the number of output streams supported by
15170 the camera device.<wbr/> Using more streams simultaneously may require more hardware and
15171 CPU resources that will consume more power.<wbr/> The image format for this kind of an output stream can
15172 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>
15173 <p>A processed and stalling format is defined as any non-RAW format with a stallDurations
15174 > 0.<wbr/> Typically only the <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">JPEG format</a> is a
15175 stalling format.<wbr/></p>
15176 <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
15177 processed format -- it will return a non-0 value for a stalling stream.<wbr/></p>
15178 <p>LEGACY devices will support up to 1 processing/<wbr/>stalling stream.<wbr/></p>
15183 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15184 <!-- end of entry -->
15187 <tr class="entry" id="static_android.request.maxNumReprocessStreams">
15188 <td class="entry_name
15189 entry_name_deprecated
15191 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Reprocess<wbr/>Streams
15193 <td class="entry_type">
15194 <span class="entry_type_name">int32</span>
15195 <span class="entry_type_container">x</span>
15197 <span class="entry_type_array">
15200 <span class="entry_type_visibility"> [system]</span>
15204 <span class="entry_type_deprecated">[deprecated] </span>
15208 </td> <!-- entry_type -->
15210 <td class="entry_description">
15211 <p>How many reprocessing streams of any type
15212 can be allocated at the same time.<wbr/></p>
15215 <td class="entry_units">
15218 <td class="entry_range">
15219 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
15223 <td class="entry_tags">
15224 <ul class="entry_tags">
15225 <li><a href="#tag_HAL2">HAL2</a></li>
15230 <tr class="entries_header">
15231 <th class="th_details" colspan="5">Details</th>
15233 <tr class="entry_cont">
15234 <td class="entry_details" colspan="5">
15235 <p>Only used by HAL2.<wbr/>x.<wbr/></p>
15236 <p>When set to 0,<wbr/> it means no reprocess stream is supported.<wbr/></p>
15241 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15242 <!-- end of entry -->
15245 <tr class="entry" id="static_android.request.maxNumInputStreams">
15246 <td class="entry_name
15248 android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Input<wbr/>Streams
15250 <td class="entry_type">
15251 <span class="entry_type_name">int32</span>
15253 <span class="entry_type_visibility"> [public]</span>
15256 <span class="entry_type_hwlevel">[full] </span>
15261 </td> <!-- entry_type -->
15263 <td class="entry_description">
15264 <p>The maximum numbers of any type of input streams
15265 that can be configured and used simultaneously by a camera device.<wbr/></p>
15268 <td class="entry_units">
15271 <td class="entry_range">
15272 <p>0 or 1.<wbr/></p>
15275 <td class="entry_tags">
15276 <ul class="entry_tags">
15277 <li><a href="#tag_REPROC">REPROC</a></li>
15282 <tr class="entries_header">
15283 <th class="th_details" colspan="5">Details</th>
15285 <tr class="entry_cont">
15286 <td class="entry_details" colspan="5">
15287 <p>When set to 0,<wbr/> it means no input stream is supported.<wbr/></p>
15288 <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
15289 input stream,<wbr/> there must be at least one output stream configured to to receive the
15290 reprocessed images.<wbr/></p>
15291 <p>When an input stream and some output streams are used in a reprocessing request,<wbr/>
15292 only the input buffer will be used to produce these output stream buffers,<wbr/> and a
15293 new sensor image will not be captured.<wbr/></p>
15294 <p>For example,<wbr/> for Zero Shutter Lag (ZSL) still capture use case,<wbr/> the input
15295 stream image format will be PRIVATE,<wbr/> the associated output stream image format
15296 should be JPEG.<wbr/></p>
15300 <tr class="entries_header">
15301 <th class="th_details" colspan="5">HAL Implementation Details</th>
15303 <tr class="entry_cont">
15304 <td class="entry_details" colspan="5">
15305 <p>For the reprocessing flow and controls,<wbr/> see
15306 hardware/<wbr/>libhardware/<wbr/>include/<wbr/>hardware/<wbr/>camera3.<wbr/>h Section 10 for more details.<wbr/></p>
15310 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15311 <!-- end of entry -->
15314 <tr class="entry" id="static_android.request.pipelineMaxDepth">
15315 <td class="entry_name
15317 android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth
15319 <td class="entry_type">
15320 <span class="entry_type_name">byte</span>
15322 <span class="entry_type_visibility"> [public]</span>
15325 <span class="entry_type_hwlevel">[legacy] </span>
15330 </td> <!-- entry_type -->
15332 <td class="entry_description">
15333 <p>Specifies the number of maximum pipeline stages a frame
15334 has to go through from when it's exposed to when it's available
15335 to the framework.<wbr/></p>
15338 <td class="entry_units">
15341 <td class="entry_range">
15344 <td class="entry_tags">
15348 <tr class="entries_header">
15349 <th class="th_details" colspan="5">Details</th>
15351 <tr class="entry_cont">
15352 <td class="entry_details" colspan="5">
15353 <p>A typical minimum value for this is 2 (one stage to expose,<wbr/>
15354 one stage to readout) from the sensor.<wbr/> The ISP then usually adds
15355 its own stages to do custom HW processing.<wbr/> Further stages may be
15356 added by SW processing.<wbr/></p>
15357 <p>Depending on what settings are used (e.<wbr/>g.<wbr/> YUV,<wbr/> JPEG) and what
15358 processing is enabled (e.<wbr/>g.<wbr/> face detection),<wbr/> the actual pipeline
15359 depth (specified by <a href="#dynamic_android.request.pipelineDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Depth</a>) may be less than
15360 the max pipeline depth.<wbr/></p>
15361 <p>A pipeline depth of X stages is equivalent to a pipeline latency of
15362 X frame intervals.<wbr/></p>
15363 <p>This value will normally be 8 or less,<wbr/> however,<wbr/> for high speed capture session,<wbr/>
15364 the max pipeline depth will be up to 8 x size of high speed capture request list.<wbr/></p>
15368 <tr class="entries_header">
15369 <th class="th_details" colspan="5">HAL Implementation Details</th>
15371 <tr class="entry_cont">
15372 <td class="entry_details" colspan="5">
15373 <p>This value should be 4 or less,<wbr/> expect for the high speed recording session,<wbr/> where the
15374 max batch sizes may be larger than 1.<wbr/></p>
15378 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15379 <!-- end of entry -->
15382 <tr class="entry" id="static_android.request.partialResultCount">
15383 <td class="entry_name
15385 android.<wbr/>request.<wbr/>partial<wbr/>Result<wbr/>Count
15387 <td class="entry_type">
15388 <span class="entry_type_name">int32</span>
15390 <span class="entry_type_visibility"> [public]</span>
15397 </td> <!-- entry_type -->
15399 <td class="entry_description">
15400 <p>Defines how many sub-components
15401 a result will be composed of.<wbr/></p>
15404 <td class="entry_units">
15407 <td class="entry_range">
15411 <td class="entry_tags">
15415 <tr class="entries_header">
15416 <th class="th_details" colspan="5">Details</th>
15418 <tr class="entry_cont">
15419 <td class="entry_details" colspan="5">
15420 <p>In order to combat the pipeline latency,<wbr/> partial results
15421 may be delivered to the application layer from the camera device as
15422 soon as they are available.<wbr/></p>
15423 <p>Optional; defaults to 1.<wbr/> A value of 1 means that partial
15424 results are not supported,<wbr/> and only the final TotalCaptureResult will
15425 be produced by the camera device.<wbr/></p>
15426 <p>A typical use case for this might be: after requesting an
15427 auto-focus (AF) lock the new AF state might be available 50%
15428 of the way through the pipeline.<wbr/> The camera device could
15429 then immediately dispatch this state via a partial result to
15430 the application,<wbr/> and the rest of the metadata via later
15431 partial results.<wbr/></p>
15436 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15437 <!-- end of entry -->
15440 <tr class="entry" id="static_android.request.availableCapabilities">
15441 <td class="entry_name
15443 android.<wbr/>request.<wbr/>available<wbr/>Capabilities
15445 <td class="entry_type">
15446 <span class="entry_type_name entry_type_name_enum">byte</span>
15447 <span class="entry_type_container">x</span>
15449 <span class="entry_type_array">
15452 <span class="entry_type_visibility"> [public]</span>
15455 <span class="entry_type_hwlevel">[legacy] </span>
15459 <ul class="entry_type_enum">
15461 <span class="entry_type_enum_name">BACKWARD_COMPATIBLE</span>
15462 <span class="entry_type_enum_notes"><p>The minimal set of capabilities that every camera
15463 device (regardless of <a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a>)
15464 supports.<wbr/></p>
15465 <p>This capability is listed by all normal devices,<wbr/> and
15466 indicates that the camera device has a feature set
15467 that's comparable to the baseline requirements for the
15468 older android.<wbr/>hardware.<wbr/>Camera API.<wbr/></p>
15469 <p>Devices with the DEPTH_<wbr/>OUTPUT capability might not list this
15470 capability,<wbr/> indicating that they support only depth measurement,<wbr/>
15471 not standard color output.<wbr/></p></span>
15474 <span class="entry_type_enum_name">MANUAL_SENSOR</span>
15475 <span class="entry_type_enum_optional">[optional]</span>
15476 <span class="entry_type_enum_notes"><p>The camera device can be manually controlled (3A algorithms such
15477 as auto-exposure,<wbr/> and auto-focus can be bypassed).<wbr/>
15478 The camera device supports basic manual control of the sensor image
15479 acquisition related stages.<wbr/> This means the following controls are
15480 guaranteed to be supported:</p>
15482 <li>Manual frame duration control<ul>
15483 <li><a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a></li>
15484 <li><a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a></li>
15487 <li>Manual exposure control<ul>
15488 <li><a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a></li>
15489 <li><a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a></li>
15492 <li>Manual sensitivity control<ul>
15493 <li><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></li>
15494 <li><a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a></li>
15497 <li>Manual lens control (if the lens is adjustable)<ul>
15498 <li>android.<wbr/>lens.<wbr/>*</li>
15501 <li>Manual flash control (if a flash unit is present)<ul>
15502 <li>android.<wbr/>flash.<wbr/>*</li>
15505 <li>Manual black level locking<ul>
15506 <li><a href="#controls_android.blackLevel.lock">android.<wbr/>black<wbr/>Level.<wbr/>lock</a></li>
15509 <li>Auto exposure lock<ul>
15510 <li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
15514 <p>If any of the above 3A algorithms are enabled,<wbr/> then the camera
15515 device will accurately report the values applied by 3A in the
15517 <p>A given camera device may also support additional manual sensor controls,<wbr/>
15518 but this capability only covers the above list of controls.<wbr/></p>
15519 <p>If this is supported,<wbr/> <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> will
15520 additionally return a min frame duration that is greater than
15521 zero for each supported size-format combination.<wbr/></p></span>
15524 <span class="entry_type_enum_name">MANUAL_POST_PROCESSING</span>
15525 <span class="entry_type_enum_optional">[optional]</span>
15526 <span class="entry_type_enum_notes"><p>The camera device post-processing stages can be manually controlled.<wbr/>
15527 The camera device supports basic manual control of the image post-processing
15528 stages.<wbr/> This means the following controls are guaranteed to be supported:</p>
15531 <p>Manual tonemap control</p>
15533 <li><a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a></li>
15534 <li><a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a></li>
15535 <li><a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></li>
15536 <li><a href="#controls_android.tonemap.gamma">android.<wbr/>tonemap.<wbr/>gamma</a></li>
15537 <li><a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a></li>
15541 <p>Manual white balance control</p>
15543 <li><a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a></li>
15544 <li><a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a></li>
15547 <li>Manual lens shading map control<ul>
15548 <li><a href="#controls_android.shading.mode">android.<wbr/>shading.<wbr/>mode</a></li>
15549 <li><a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a></li>
15550 <li><a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a></li>
15551 <li><a href="#static_android.lens.info.shadingMapSize">android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size</a></li>
15554 <li>Manual aberration correction control (if aberration correction is supported)<ul>
15555 <li><a href="#controls_android.colorCorrection.aberrationMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode</a></li>
15556 <li><a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a></li>
15559 <li>Auto white balance lock<ul>
15560 <li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
15564 <p>If auto white balance is enabled,<wbr/> then the camera device
15565 will accurately report the values applied by AWB in the result.<wbr/></p>
15566 <p>A given camera device may also support additional post-processing
15567 controls,<wbr/> but this capability only covers the above list of controls.<wbr/></p></span>
15570 <span class="entry_type_enum_name">RAW</span>
15571 <span class="entry_type_enum_optional">[optional]</span>
15572 <span class="entry_type_enum_notes"><p>The camera device supports outputting RAW buffers and
15573 metadata for interpreting them.<wbr/></p>
15574 <p>Devices supporting the RAW capability allow both for
15575 saving DNG files,<wbr/> and for direct application processing of
15576 raw sensor images.<wbr/></p>
15578 <li>RAW_<wbr/>SENSOR is supported as an output format.<wbr/></li>
15579 <li>The maximum available resolution for RAW_<wbr/>SENSOR streams
15580 will match either the value in
15581 <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a> or
15582 <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>
15583 <li>All DNG-related optional metadata entries are provided
15584 by the camera device.<wbr/></li>
15588 <span class="entry_type_enum_name">PRIVATE_REPROCESSING</span>
15589 <span class="entry_type_enum_optional">[optional]</span>
15590 <span class="entry_type_enum_notes"><p>The camera device supports the Zero Shutter Lag reprocessing use case.<wbr/></p>
15592 <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>
15593 <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/>
15594 that is,<wbr/> <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> is included in the lists of
15595 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>
15596 <li><a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getValidOutputFormatsForInput">StreamConfigurationMap#getValidOutputFormatsForInput</a>
15597 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>
15598 <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>
15599 <li>Using <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> does not cause a frame rate drop
15600 relative to the sensor's maximum capture rate (at that resolution).<wbr/></li>
15601 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> will be reprocessable into both
15602 <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a> and
15603 <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a> formats.<wbr/></li>
15604 <li>The maximum available resolution for PRIVATE streams
15605 (both input/<wbr/>output) will match the maximum available
15606 resolution of JPEG streams.<wbr/></li>
15607 <li>Static metadata <a href="#static_android.reprocess.maxCaptureStall">android.<wbr/>reprocess.<wbr/>max<wbr/>Capture<wbr/>Stall</a>.<wbr/></li>
15608 <li>Only below controls are effective for reprocessing requests and
15609 will be present in capture results,<wbr/> other controls in reprocess
15610 requests will be ignored by the camera device.<wbr/><ul>
15611 <li>android.<wbr/>jpeg.<wbr/>*</li>
15612 <li><a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a></li>
15613 <li><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a></li>
15616 <li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a> and
15617 <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>
15621 <span class="entry_type_enum_name">READ_SENSOR_SETTINGS</span>
15622 <span class="entry_type_enum_optional">[optional]</span>
15623 <span class="entry_type_enum_notes"><p>The camera device supports accurately reporting the sensor settings for many of
15624 the sensor controls while the built-in 3A algorithm is running.<wbr/> This allows
15625 reporting of sensor settings even when these settings cannot be manually changed.<wbr/></p>
15626 <p>The values reported for the following controls are guaranteed to be available
15627 in the CaptureResult,<wbr/> including when 3A is enabled:</p>
15629 <li>Exposure control<ul>
15630 <li><a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a></li>
15633 <li>Sensitivity control<ul>
15634 <li><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></li>
15637 <li>Lens controls (if the lens is adjustable)<ul>
15638 <li><a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a></li>
15639 <li><a href="#controls_android.lens.aperture">android.<wbr/>lens.<wbr/>aperture</a></li>
15643 <p>This capability is a subset of the MANUAL_<wbr/>SENSOR control capability,<wbr/> and will
15644 always be included if the MANUAL_<wbr/>SENSOR capability is available.<wbr/></p></span>
15647 <span class="entry_type_enum_name">BURST_CAPTURE</span>
15648 <span class="entry_type_enum_optional">[optional]</span>
15649 <span class="entry_type_enum_notes"><p>The camera device supports capturing high-resolution images at >= 20 frames per
15650 second,<wbr/> in at least the uncompressed YUV format,<wbr/> when post-processing settings are set
15651 to FAST.<wbr/> Additionally,<wbr/> maximum-resolution images can be captured at >= 10 frames
15652 per second.<wbr/> Here,<wbr/> 'high resolution' means at least 8 megapixels,<wbr/> or the maximum
15653 resolution of the device,<wbr/> whichever is smaller.<wbr/></p>
15654 <p>More specifically,<wbr/> this means that a size matching the camera device's active array
15655 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/>
15656 with a minimum frame duration for that format and size of either <= 1/<wbr/>20 s,<wbr/> or
15657 <= 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
15658 lists at least one FPS range where the minimum FPS is >= 1 /<wbr/> minimumFrameDuration
15659 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/>
15660 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
15661 least one resolution >= 8 megapixels,<wbr/> with a minimum frame duration of <= 1/<wbr/>20
15663 <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
15664 as the maximum-size YUV_<wbr/>420_<wbr/>888 resolution is.<wbr/></p>
15665 <p>If the device supports the PRIVATE_<wbr/>REPROCESSING capability,<wbr/> then the same guarantees
15666 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>
15667 <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
15668 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>
15669 are also guaranteed to be <code>true</code> so burst capture with these two locks ON yields
15670 consistent image output.<wbr/></p></span>
15673 <span class="entry_type_enum_name">YUV_REPROCESSING</span>
15674 <span class="entry_type_enum_optional">[optional]</span>
15675 <span class="entry_type_enum_notes"><p>The camera device supports the YUV_<wbr/>420_<wbr/>888 reprocessing use case,<wbr/> similar as
15676 PRIVATE_<wbr/>REPROCESSING,<wbr/> This capability requires the camera device to support the
15679 <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>
15680 <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/>
15681 YUV_<wbr/>420_<wbr/>888 is included in the lists of formats returned by
15682 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getInputFormats">StreamConfigurationMap#getInputFormats</a> and
15683 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputFormats">StreamConfigurationMap#getOutputFormats</a>.<wbr/></li>
15684 <li><a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getValidOutputFormatsForInput">StreamConfigurationMap#getValidOutputFormatsForInput</a>
15685 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>
15686 <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>
15687 <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
15688 relative to the sensor's maximum capture rate (at that resolution).<wbr/></li>
15689 <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
15690 <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>
15691 <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
15692 maximum available resolution of <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a> streams.<wbr/></li>
15693 <li>Static metadata <a href="#static_android.reprocess.maxCaptureStall">android.<wbr/>reprocess.<wbr/>max<wbr/>Capture<wbr/>Stall</a>.<wbr/></li>
15694 <li>Only the below controls are effective for reprocessing requests and will be present
15695 in capture results.<wbr/> The reprocess requests are from the original capture results that
15696 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>
15697 output buffers.<wbr/> All other controls in the reprocess requests will be ignored by the
15698 camera device.<wbr/><ul>
15699 <li>android.<wbr/>jpeg.<wbr/>*</li>
15700 <li><a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a></li>
15701 <li><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a></li>
15702 <li><a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a></li>
15705 <li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a> and
15706 <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>
15710 <span class="entry_type_enum_name">DEPTH_OUTPUT</span>
15711 <span class="entry_type_enum_optional">[optional]</span>
15712 <span class="entry_type_enum_notes"><p>The camera device can produce depth measurements from its field of view.<wbr/></p>
15713 <p>This capability requires the camera device to support the following:</p>
15715 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#DEPTH16">ImageFormat#DEPTH16</a> is supported as an output format.<wbr/></li>
15716 <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
15717 output format.<wbr/></li>
15718 <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/>
15719 will list the following calibration entries in both
15720 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a> and
15721 <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">CaptureResult</a>:<ul>
15722 <li><a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a></li>
15723 <li><a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a></li>
15724 <li><a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a></li>
15725 <li><a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a></li>
15728 <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>
15729 <li>A LIMITED camera with only the DEPTH_<wbr/>OUTPUT capability does not have to support
15730 normal YUV_<wbr/>420_<wbr/>888,<wbr/> JPEG,<wbr/> and PRIV-format outputs.<wbr/> It only has to support the DEPTH16
15733 <p>Generally,<wbr/> depth output operates at a slower frame rate than standard color capture,<wbr/>
15734 so the DEPTH16 and DEPTH_<wbr/>POINT_<wbr/>CLOUD formats will commonly have a stall duration that
15735 should be accounted for (see
15736 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a>).<wbr/>
15737 On a device that supports both depth and color-based output,<wbr/> to enable smooth preview,<wbr/>
15738 using a repeating burst is recommended,<wbr/> where a depth-output target is only included
15739 once every N frames,<wbr/> where N is the ratio between preview output rate and depth output
15740 rate,<wbr/> including depth stall time.<wbr/></p></span>
15743 <span class="entry_type_enum_name">CONSTRAINED_HIGH_SPEED_VIDEO</span>
15744 <span class="entry_type_enum_optional">[optional]</span>
15745 <span class="entry_type_enum_notes"><p>The device supports constrained high speed video recording (frame rate >=120fps)
15746 use case.<wbr/> The camera device will support high speed capture session created by
15747 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>,<wbr/> which
15748 only accepts high speed request lists created by
15749 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>.<wbr/></p>
15750 <p>A camera device can still support high speed video streaming by advertising the high speed
15751 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
15752 capture request per frame control and synchronization requirements will apply to
15753 the high speed fps ranges,<wbr/> the same as all other fps ranges.<wbr/> This capability describes
15754 the capability of a specialized operating mode with many limitations (see below),<wbr/> which
15755 is only targeted at high speed video recording.<wbr/></p>
15756 <p>The supported high speed video sizes and fps ranges are specified in
15757 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoFpsRanges">StreamConfigurationMap#getHighSpeedVideoFpsRanges</a>.<wbr/>
15758 To get desired output frame rates,<wbr/> the application is only allowed to select video size
15759 and FPS range combinations provided by
15760 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoSizes">StreamConfigurationMap#getHighSpeedVideoSizes</a>.<wbr/>
15761 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>
15762 <p>In this capability,<wbr/> the camera device will override aeMode,<wbr/> awbMode,<wbr/> and afMode to
15763 ON,<wbr/> AUTO,<wbr/> and CONTINUOUS_<wbr/>VIDEO,<wbr/> respectively.<wbr/> All post-processing block mode
15764 controls will be overridden to be FAST.<wbr/> Therefore,<wbr/> no manual control of capture
15765 and post-processing parameters is possible.<wbr/> All other controls operate the
15766 same as when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == AUTO.<wbr/> This means that all other
15767 android.<wbr/>control.<wbr/>* fields continue to work,<wbr/> such as</p>
15769 <li><a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a></li>
15770 <li><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a></li>
15771 <li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
15772 <li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
15773 <li><a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></li>
15774 <li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
15775 <li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
15776 <li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
15777 <li><a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a></li>
15778 <li><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a></li>
15780 <p>Outside of android.<wbr/>control.<wbr/>*,<wbr/> the following controls will work:</p>
15782 <li><a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> (TORCH mode only,<wbr/> automatic flash for still capture will not
15783 work since aeMode is ON)</li>
15784 <li><a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> (if it is supported)</li>
15785 <li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
15786 <li><a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> (if it is supported)</li>
15788 <p>For high speed recording use case,<wbr/> the actual maximum supported frame rate may
15789 be lower than what camera can output,<wbr/> depending on the destination Surfaces for
15790 the image data.<wbr/> For example,<wbr/> if the destination surface is from video encoder,<wbr/>
15791 the application need check if the video encoder is capable of supporting the
15792 high frame rate for a given video size,<wbr/> or it will end up with lower recording
15793 frame rate.<wbr/> If the destination surface is from preview window,<wbr/> the actual preview frame
15794 rate will be bounded by the screen refresh rate.<wbr/></p>
15795 <p>The camera device will only support up to 2 high speed simultaneous output surfaces
15796 (preview and recording surfaces)
15797 in this mode.<wbr/> Above controls will be effective only if all of below conditions are true:</p>
15799 <li>The application creates a camera capture session with no more than 2 surfaces via
15800 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>.<wbr/> The
15801 targeted surfaces must be preview surface (either from
15802 <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
15803 recording surface(either from <a href="https://developer.android.com/reference/android/media/MediaRecorder.html#getSurface">MediaRecorder#getSurface</a> or
15804 <a href="https://developer.android.com/reference/android/media/MediaCodec.html#createInputSurface">MediaCodec#createInputSurface</a>).<wbr/></li>
15805 <li>The stream sizes are selected from the sizes reported by
15806 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoSizes">StreamConfigurationMap#getHighSpeedVideoSizes</a>.<wbr/></li>
15807 <li>The FPS ranges are selected from
15808 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoFpsRanges">StreamConfigurationMap#getHighSpeedVideoFpsRanges</a>.<wbr/></li>
15810 <p>When above conditions are NOT satistied,<wbr/>
15811 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>
15812 will fail.<wbr/></p>
15813 <p>Switching to a FPS range that has different maximum FPS may trigger some camera device
15814 reconfigurations,<wbr/> which may introduce extra latency.<wbr/> It is recommended that
15815 the application avoids unnecessary maximum target FPS changes as much as possible
15816 during high speed streaming.<wbr/></p></span>
15820 </td> <!-- entry_type -->
15822 <td class="entry_description">
15823 <p>List of capabilities that this camera device
15824 advertises as fully supporting.<wbr/></p>
15827 <td class="entry_units">
15830 <td class="entry_range">
15833 <td class="entry_tags">
15837 <tr class="entries_header">
15838 <th class="th_details" colspan="5">Details</th>
15840 <tr class="entry_cont">
15841 <td class="entry_details" colspan="5">
15842 <p>A capability is a contract that the camera device makes in order
15843 to be able to satisfy one or more use cases.<wbr/></p>
15844 <p>Listing a capability guarantees that the whole set of features
15845 required to support a common use will all be available.<wbr/></p>
15846 <p>Using a subset of the functionality provided by an unsupported
15847 capability may be possible on a specific camera device implementation;
15848 to do this query each of <a href="#static_android.request.availableRequestKeys">android.<wbr/>request.<wbr/>available<wbr/>Request<wbr/>Keys</a>,<wbr/>
15849 <a href="#static_android.request.availableResultKeys">android.<wbr/>request.<wbr/>available<wbr/>Result<wbr/>Keys</a>,<wbr/>
15850 <a href="#static_android.request.availableCharacteristicsKeys">android.<wbr/>request.<wbr/>available<wbr/>Characteristics<wbr/>Keys</a>.<wbr/></p>
15851 <p>The following capabilities are guaranteed to be available on
15852 <a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> <code>==</code> FULL devices:</p>
15854 <li>MANUAL_<wbr/>SENSOR</li>
15855 <li>MANUAL_<wbr/>POST_<wbr/>PROCESSING</li>
15857 <p>Other capabilities may be available on either FULL or LIMITED
15858 devices,<wbr/> but the application should query this key to be sure.<wbr/></p>
15862 <tr class="entries_header">
15863 <th class="th_details" colspan="5">HAL Implementation Details</th>
15865 <tr class="entry_cont">
15866 <td class="entry_details" colspan="5">
15867 <p>Additional constraint details per-capability will be available
15868 in the Compatibility Test Suite.<wbr/></p>
15869 <p>Minimum baseline requirements required for the
15870 BACKWARD_<wbr/>COMPATIBLE capability are not explicitly listed.<wbr/>
15871 Instead refer to "BC" tags and the camera CTS tests in the
15872 android.<wbr/>hardware.<wbr/>camera2.<wbr/>cts package.<wbr/></p>
15873 <p>Listed controls that can be either request or result (e.<wbr/>g.<wbr/>
15874 <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>) must be available both in the
15875 request and the result in order to be considered to be
15876 capability-compliant.<wbr/></p>
15877 <p>For example,<wbr/> if the HAL claims to support MANUAL control,<wbr/>
15878 then exposure time must be configurable via the request <em>and</em>
15879 the actual exposure applied must be available via
15880 the result.<wbr/></p>
15881 <p>If MANUAL_<wbr/>SENSOR is omitted,<wbr/> the HAL may choose to omit the
15882 <a href="#static_android.scaler.availableMinFrameDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Min<wbr/>Frame<wbr/>Durations</a> static property entirely.<wbr/></p>
15883 <p>For PRIVATE_<wbr/>REPROCESSING and YUV_<wbr/>REPROCESSING capabilities,<wbr/> see
15884 hardware/<wbr/>libhardware/<wbr/>include/<wbr/>hardware/<wbr/>camera3.<wbr/>h Section 10 for more information.<wbr/></p>
15885 <p>Devices that support the MANUAL_<wbr/>SENSOR capability must support the
15886 CAMERA3_<wbr/>TEMPLATE_<wbr/>MANUAL template defined in camera3.<wbr/>h.<wbr/></p>
15887 <p>Devices that support the PRIVATE_<wbr/>REPROCESSING capability or the
15888 YUV_<wbr/>REPROCESSING capability must support the
15889 CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template defined in camera3.<wbr/>h.<wbr/></p>
15890 <p>For DEPTH_<wbr/>OUTPUT,<wbr/> the depth-format keys
15891 <a href="#static_android.depth.availableDepthStreamConfigurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stream<wbr/>Configurations</a>,<wbr/>
15892 <a href="#static_android.depth.availableDepthMinFrameDurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Min<wbr/>Frame<wbr/>Durations</a>,<wbr/>
15893 <a href="#static_android.depth.availableDepthStallDurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stall<wbr/>Durations</a> must be available,<wbr/> in
15894 addition to the other keys explicitly mentioned in the DEPTH_<wbr/>OUTPUT
15895 enum notes.<wbr/> The entry <a href="#static_android.depth.maxDepthSamples">android.<wbr/>depth.<wbr/>max<wbr/>Depth<wbr/>Samples</a> must be available
15896 if the DEPTH_<wbr/>POINT_<wbr/>CLOUD format is supported (HAL pixel format BLOB,<wbr/> dataspace
15901 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15902 <!-- end of entry -->
15905 <tr class="entry" id="static_android.request.availableRequestKeys">
15906 <td class="entry_name
15908 android.<wbr/>request.<wbr/>available<wbr/>Request<wbr/>Keys
15910 <td class="entry_type">
15911 <span class="entry_type_name">int32</span>
15912 <span class="entry_type_container">x</span>
15914 <span class="entry_type_array">
15917 <span class="entry_type_visibility"> [ndk_public]</span>
15920 <span class="entry_type_hwlevel">[legacy] </span>
15925 </td> <!-- entry_type -->
15927 <td class="entry_description">
15928 <p>A list of all keys that the camera device has available
15929 to use with <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.html">CaptureRequest</a>.<wbr/></p>
15932 <td class="entry_units">
15935 <td class="entry_range">
15938 <td class="entry_tags">
15942 <tr class="entries_header">
15943 <th class="th_details" colspan="5">Details</th>
15945 <tr class="entry_cont">
15946 <td class="entry_details" colspan="5">
15947 <p>Attempting to set a key into a CaptureRequest that is not
15948 listed here will result in an invalid request and will be rejected
15949 by the camera device.<wbr/></p>
15950 <p>This field can be used to query the feature set of a camera device
15951 at a more granular level than capabilities.<wbr/> This is especially
15952 important for optional keys that are not listed under any capability
15953 in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
15957 <tr class="entries_header">
15958 <th class="th_details" colspan="5">HAL Implementation Details</th>
15960 <tr class="entry_cont">
15961 <td class="entry_details" colspan="5">
15962 <p>Vendor tags must not be listed here.<wbr/> Use the vendor tag metadata
15963 extensions C api instead (refer to camera3.<wbr/>h for more details).<wbr/></p>
15964 <p>Setting/<wbr/>getting vendor tags will be checked against the metadata
15965 vendor extensions API and not against this field.<wbr/></p>
15966 <p>The HAL must not consume any request tags that are not listed either
15967 here or in the vendor tag list.<wbr/></p>
15968 <p>The public camera2 API will always make the vendor tags visible
15970 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>.<wbr/></p>
15974 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
15975 <!-- end of entry -->
15978 <tr class="entry" id="static_android.request.availableResultKeys">
15979 <td class="entry_name
15981 android.<wbr/>request.<wbr/>available<wbr/>Result<wbr/>Keys
15983 <td class="entry_type">
15984 <span class="entry_type_name">int32</span>
15985 <span class="entry_type_container">x</span>
15987 <span class="entry_type_array">
15990 <span class="entry_type_visibility"> [ndk_public]</span>
15993 <span class="entry_type_hwlevel">[legacy] </span>
15998 </td> <!-- entry_type -->
16000 <td class="entry_description">
16001 <p>A list of all keys that the camera device has available
16002 to use with <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">CaptureResult</a>.<wbr/></p>
16005 <td class="entry_units">
16008 <td class="entry_range">
16011 <td class="entry_tags">
16015 <tr class="entries_header">
16016 <th class="th_details" colspan="5">Details</th>
16018 <tr class="entry_cont">
16019 <td class="entry_details" colspan="5">
16020 <p>Attempting to get a key from a CaptureResult that is not
16021 listed here will always return a <code>null</code> value.<wbr/> Getting a key from
16022 a CaptureResult that is listed here will generally never return a <code>null</code>
16024 <p>The following keys may return <code>null</code> unless they are enabled:</p>
16026 <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>
16028 <p>(Those sometimes-null keys will nevertheless be listed here
16029 if they are available.<wbr/>)</p>
16030 <p>This field can be used to query the feature set of a camera device
16031 at a more granular level than capabilities.<wbr/> This is especially
16032 important for optional keys that are not listed under any capability
16033 in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
16037 <tr class="entries_header">
16038 <th class="th_details" colspan="5">HAL Implementation Details</th>
16040 <tr class="entry_cont">
16041 <td class="entry_details" colspan="5">
16042 <p>Tags listed here must always have an entry in the result metadata,<wbr/>
16043 even if that size is 0 elements.<wbr/> Only array-type tags (e.<wbr/>g.<wbr/> lists,<wbr/>
16044 matrices,<wbr/> strings) are allowed to have 0 elements.<wbr/></p>
16045 <p>Vendor tags must not be listed here.<wbr/> Use the vendor tag metadata
16046 extensions C api instead (refer to camera3.<wbr/>h for more details).<wbr/></p>
16047 <p>Setting/<wbr/>getting vendor tags will be checked against the metadata
16048 vendor extensions API and not against this field.<wbr/></p>
16049 <p>The HAL must not produce any result tags that are not listed either
16050 here or in the vendor tag list.<wbr/></p>
16051 <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>
16055 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16056 <!-- end of entry -->
16059 <tr class="entry" id="static_android.request.availableCharacteristicsKeys">
16060 <td class="entry_name
16062 android.<wbr/>request.<wbr/>available<wbr/>Characteristics<wbr/>Keys
16064 <td class="entry_type">
16065 <span class="entry_type_name">int32</span>
16066 <span class="entry_type_container">x</span>
16068 <span class="entry_type_array">
16071 <span class="entry_type_visibility"> [ndk_public]</span>
16074 <span class="entry_type_hwlevel">[legacy] </span>
16079 </td> <!-- entry_type -->
16081 <td class="entry_description">
16082 <p>A list of all keys that the camera device has available
16083 to use with <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a>.<wbr/></p>
16086 <td class="entry_units">
16089 <td class="entry_range">
16092 <td class="entry_tags">
16096 <tr class="entries_header">
16097 <th class="th_details" colspan="5">Details</th>
16099 <tr class="entry_cont">
16100 <td class="entry_details" colspan="5">
16101 <p>This entry follows the same rules as
16102 <a href="#static_android.request.availableResultKeys">android.<wbr/>request.<wbr/>available<wbr/>Result<wbr/>Keys</a> (except that it applies for
16103 CameraCharacteristics instead of CaptureResult).<wbr/> See above for more
16108 <tr class="entries_header">
16109 <th class="th_details" colspan="5">HAL Implementation Details</th>
16111 <tr class="entry_cont">
16112 <td class="entry_details" colspan="5">
16113 <p>Keys listed here must always have an entry in the static info metadata,<wbr/>
16114 even if that size is 0 elements.<wbr/> Only array-type tags (e.<wbr/>g.<wbr/> lists,<wbr/>
16115 matrices,<wbr/> strings) are allowed to have 0 elements.<wbr/></p>
16116 <p>Vendor tags must not be listed here.<wbr/> Use the vendor tag metadata
16117 extensions C api instead (refer to camera3.<wbr/>h for more details).<wbr/></p>
16118 <p>Setting/<wbr/>getting vendor tags will be checked against the metadata
16119 vendor extensions API and not against this field.<wbr/></p>
16120 <p>The HAL must not have any tags in its static info that are not listed
16121 either here or in the vendor tag list.<wbr/></p>
16122 <p>The public camera2 API will always make the vendor tags visible
16123 via <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getKeys">CameraCharacteristics#getKeys</a>.<wbr/></p>
16127 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16128 <!-- end of entry -->
16132 <!-- end of kind -->
16134 <tr><td colspan="6" class="kind">dynamic</td></tr>
16136 <thead class="entries_header">
16138 <th class="th_name">Property Name</th>
16139 <th class="th_type">Type</th>
16140 <th class="th_description">Description</th>
16141 <th class="th_units">Units</th>
16142 <th class="th_range">Range</th>
16143 <th class="th_tags">Tags</th>
16158 <tr class="entry" id="dynamic_android.request.frameCount">
16159 <td class="entry_name
16160 entry_name_deprecated
16162 android.<wbr/>request.<wbr/>frame<wbr/>Count
16164 <td class="entry_type">
16165 <span class="entry_type_name">int32</span>
16167 <span class="entry_type_visibility"> [hidden]</span>
16171 <span class="entry_type_deprecated">[deprecated] </span>
16175 </td> <!-- entry_type -->
16177 <td class="entry_description">
16178 <p>A frame counter set by the framework.<wbr/> This value monotonically
16179 increases with every new result (that is,<wbr/> each new result has a unique
16180 frameCount value).<wbr/></p>
16183 <td class="entry_units">
16187 <td class="entry_range">
16188 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
16192 <td class="entry_tags">
16196 <tr class="entries_header">
16197 <th class="th_details" colspan="5">Details</th>
16199 <tr class="entry_cont">
16200 <td class="entry_details" colspan="5">
16201 <p>Reset on release()</p>
16206 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16207 <!-- end of entry -->
16210 <tr class="entry" id="dynamic_android.request.id">
16211 <td class="entry_name
16213 android.<wbr/>request.<wbr/>id
16215 <td class="entry_type">
16216 <span class="entry_type_name">int32</span>
16218 <span class="entry_type_visibility"> [hidden]</span>
16225 </td> <!-- entry_type -->
16227 <td class="entry_description">
16228 <p>An application-specified ID for the current
16229 request.<wbr/> Must be maintained unchanged in output
16233 <td class="entry_units">
16234 arbitrary integer assigned by application
16237 <td class="entry_range">
16241 <td class="entry_tags">
16242 <ul class="entry_tags">
16243 <li><a href="#tag_V1">V1</a></li>
16250 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16251 <!-- end of entry -->
16254 <tr class="entry" id="dynamic_android.request.metadataMode">
16255 <td class="entry_name
16257 android.<wbr/>request.<wbr/>metadata<wbr/>Mode
16259 <td class="entry_type">
16260 <span class="entry_type_name entry_type_name_enum">byte</span>
16262 <span class="entry_type_visibility"> [system]</span>
16268 <ul class="entry_type_enum">
16270 <span class="entry_type_enum_name">NONE</span>
16271 <span class="entry_type_enum_notes"><p>No metadata should be produced on output,<wbr/> except
16272 for application-bound buffer data.<wbr/> If no
16273 application-bound streams exist,<wbr/> no frame should be
16274 placed in the output frame queue.<wbr/> If such streams
16275 exist,<wbr/> a frame should be placed on the output queue
16276 with null metadata but with the necessary output buffer
16277 information.<wbr/> Timestamp information should still be
16278 included with any output stream buffers</p></span>
16281 <span class="entry_type_enum_name">FULL</span>
16282 <span class="entry_type_enum_notes"><p>All metadata should be produced.<wbr/> Statistics will
16283 only be produced if they are separately
16288 </td> <!-- entry_type -->
16290 <td class="entry_description">
16291 <p>How much metadata to produce on
16295 <td class="entry_units">
16298 <td class="entry_range">
16301 <td class="entry_tags">
16302 <ul class="entry_tags">
16303 <li><a href="#tag_FUTURE">FUTURE</a></li>
16310 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16311 <!-- end of entry -->
16314 <tr class="entry" id="dynamic_android.request.outputStreams">
16315 <td class="entry_name
16316 entry_name_deprecated
16318 android.<wbr/>request.<wbr/>output<wbr/>Streams
16320 <td class="entry_type">
16321 <span class="entry_type_name">int32</span>
16322 <span class="entry_type_container">x</span>
16324 <span class="entry_type_array">
16327 <span class="entry_type_visibility"> [system]</span>
16331 <span class="entry_type_deprecated">[deprecated] </span>
16335 </td> <!-- entry_type -->
16337 <td class="entry_description">
16338 <p>Lists which camera output streams image data
16339 from this capture must be sent to</p>
16342 <td class="entry_units">
16343 List of camera stream IDs
16346 <td class="entry_range">
16347 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
16348 <p>List must only include streams that have been
16352 <td class="entry_tags">
16353 <ul class="entry_tags">
16354 <li><a href="#tag_HAL2">HAL2</a></li>
16359 <tr class="entries_header">
16360 <th class="th_details" colspan="5">Details</th>
16362 <tr class="entry_cont">
16363 <td class="entry_details" colspan="5">
16364 <p>If no output streams are listed,<wbr/> then the image
16365 data should simply be discarded.<wbr/> The image data must
16366 still be captured for metadata and statistics production,<wbr/>
16367 and the lens and flash must operate as requested.<wbr/></p>
16372 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16373 <!-- end of entry -->
16376 <tr class="entry" id="dynamic_android.request.pipelineDepth">
16377 <td class="entry_name
16379 android.<wbr/>request.<wbr/>pipeline<wbr/>Depth
16381 <td class="entry_type">
16382 <span class="entry_type_name">byte</span>
16384 <span class="entry_type_visibility"> [public]</span>
16387 <span class="entry_type_hwlevel">[legacy] </span>
16392 </td> <!-- entry_type -->
16394 <td class="entry_description">
16395 <p>Specifies the number of pipeline stages the frame went
16396 through from when it was exposed to when the final completed result
16397 was available to the framework.<wbr/></p>
16400 <td class="entry_units">
16403 <td class="entry_range">
16404 <p><= <a href="#static_android.request.pipelineMaxDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth</a></p>
16407 <td class="entry_tags">
16411 <tr class="entries_header">
16412 <th class="th_details" colspan="5">Details</th>
16414 <tr class="entry_cont">
16415 <td class="entry_details" colspan="5">
16416 <p>Depending on what settings are used in the request,<wbr/> and
16417 what streams are configured,<wbr/> the data may undergo less processing,<wbr/>
16418 and some pipeline stages skipped.<wbr/></p>
16419 <p>See <a href="#static_android.request.pipelineMaxDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth</a> for more details.<wbr/></p>
16423 <tr class="entries_header">
16424 <th class="th_details" colspan="5">HAL Implementation Details</th>
16426 <tr class="entry_cont">
16427 <td class="entry_details" colspan="5">
16428 <p>This value must always represent the accurate count of how many
16429 pipeline stages were actually used.<wbr/></p>
16433 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16434 <!-- end of entry -->
16438 <!-- end of kind -->
16441 <!-- end of section -->
16442 <tr><td colspan="6" id="section_scaler" class="section">scaler</td></tr>
16445 <tr><td colspan="6" class="kind">controls</td></tr>
16447 <thead class="entries_header">
16449 <th class="th_name">Property Name</th>
16450 <th class="th_type">Type</th>
16451 <th class="th_description">Description</th>
16452 <th class="th_units">Units</th>
16453 <th class="th_range">Range</th>
16454 <th class="th_tags">Tags</th>
16469 <tr class="entry" id="controls_android.scaler.cropRegion">
16470 <td class="entry_name
16472 android.<wbr/>scaler.<wbr/>crop<wbr/>Region
16474 <td class="entry_type">
16475 <span class="entry_type_name">int32</span>
16476 <span class="entry_type_container">x</span>
16478 <span class="entry_type_array">
16481 <span class="entry_type_visibility"> [public as rectangle]</span>
16484 <span class="entry_type_hwlevel">[legacy] </span>
16489 </td> <!-- entry_type -->
16491 <td class="entry_description">
16492 <p>The desired region of the sensor to read out for this capture.<wbr/></p>
16495 <td class="entry_units">
16496 Pixel coordinates relative to
16497 android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
16500 <td class="entry_range">
16503 <td class="entry_tags">
16504 <ul class="entry_tags">
16505 <li><a href="#tag_BC">BC</a></li>
16510 <tr class="entries_header">
16511 <th class="th_details" colspan="5">Details</th>
16513 <tr class="entry_cont">
16514 <td class="entry_details" colspan="5">
16515 <p>This control can be used to implement digital zoom.<wbr/></p>
16516 <p>The crop region coordinate system is based off
16517 <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
16518 top-left corner of the sensor active array.<wbr/></p>
16519 <p>Output streams use this rectangle to produce their output,<wbr/>
16520 cropping to a smaller region if necessary to maintain the
16521 stream's aspect ratio,<wbr/> then scaling the sensor input to
16522 match the output's configured resolution.<wbr/></p>
16523 <p>The crop region is applied after the RAW to other color
16524 space (e.<wbr/>g.<wbr/> YUV) conversion.<wbr/> Since raw streams
16525 (e.<wbr/>g.<wbr/> RAW16) don't have the conversion stage,<wbr/> they are not
16526 croppable.<wbr/> The crop region will be ignored by raw streams.<wbr/></p>
16527 <p>For non-raw streams,<wbr/> any additional per-stream cropping will
16528 be done to maximize the final pixel area of the stream.<wbr/></p>
16529 <p>For example,<wbr/> if the crop region is set to a 4:3 aspect
16530 ratio,<wbr/> then 4:3 streams will use the exact crop
16531 region.<wbr/> 16:9 streams will further crop vertically
16532 (letterbox).<wbr/></p>
16533 <p>Conversely,<wbr/> if the crop region is set to a 16:9,<wbr/> then 4:3
16534 outputs will crop horizontally (pillarbox),<wbr/> and 16:9
16535 streams will match exactly.<wbr/> These additional crops will
16536 be centered within the crop region.<wbr/></p>
16537 <p>The width and height of the crop region cannot
16538 be set to be smaller than
16539 <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
16540 <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>
16541 <p>The camera device may adjust the crop region to account
16542 for rounding and other hardware requirements; the final
16543 crop region used will be included in the output capture
16548 <tr class="entries_header">
16549 <th class="th_details" colspan="5">HAL Implementation Details</th>
16551 <tr class="entry_cont">
16552 <td class="entry_details" colspan="5">
16553 <p>The output streams must maintain square pixels at all
16554 times,<wbr/> no matter what the relative aspect ratios of the
16555 crop region and the stream are.<wbr/> Negative values for
16556 corner are allowed for raw output if full pixel array is
16557 larger than active pixel array.<wbr/> Width and height may be
16558 rounded to nearest larger supportable width,<wbr/> especially
16559 for raw output,<wbr/> where only a few fixed scales may be
16560 possible.<wbr/></p>
16561 <p>For a set of output streams configured,<wbr/> if the sensor output is cropped to a smaller
16562 size than active array size,<wbr/> the HAL need follow below cropping rules:</p>
16565 <p>The HAL need handle the cropRegion as if the sensor crop size is the effective active
16566 array size.<wbr/>More specifically,<wbr/> the HAL must transform the request cropRegion from
16567 <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>
16569 <li>Translate the requested cropRegion w.<wbr/>r.<wbr/>t.,<wbr/> the left top corner of the sensor
16570 cropped pixel area by (tx,<wbr/> ty),<wbr/>
16571 where <code>tx = sensorCrop.<wbr/>top * (sensorCrop.<wbr/>height /<wbr/> activeArraySize.<wbr/>height)</code>
16572 and <code>tx = sensorCrop.<wbr/>left * (sensorCrop.<wbr/>width /<wbr/> activeArraySize.<wbr/>width)</code>.<wbr/> The
16573 (sensorCrop.<wbr/>top,<wbr/> sensorCrop.<wbr/>left) is the coordinate based off the
16574 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></li>
16575 <li>Scale the width and height of requested cropRegion with scaling factor of
16576 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
16577 respectively.<wbr/>
16578 Once this new cropRegion is calculated,<wbr/> the HAL must use this region to crop the image
16579 with regard to the sensor crop size (effective active array size).<wbr/> The HAL still need
16580 follow the general cropping rule for this new cropRegion and effective active
16581 array size.<wbr/></li>
16585 <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/>
16586 The HAL need convert the new cropRegion generated above w.<wbr/>r.<wbr/>t.,<wbr/> full active array size.<wbr/>
16587 The reported cropRegion may be slightly different with the requested cropRegion since
16588 the HAL may adjust the crop region to account for rounding,<wbr/> conversion error,<wbr/> or other
16589 hardware limitations.<wbr/></p>
16592 <p>HAL2.<wbr/>x uses only (x,<wbr/> y,<wbr/> width)</p>
16596 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16597 <!-- end of entry -->
16601 <!-- end of kind -->
16603 <tr><td colspan="6" class="kind">static</td></tr>
16605 <thead class="entries_header">
16607 <th class="th_name">Property Name</th>
16608 <th class="th_type">Type</th>
16609 <th class="th_description">Description</th>
16610 <th class="th_units">Units</th>
16611 <th class="th_range">Range</th>
16612 <th class="th_tags">Tags</th>
16627 <tr class="entry" id="static_android.scaler.availableFormats">
16628 <td class="entry_name
16629 entry_name_deprecated
16631 android.<wbr/>scaler.<wbr/>available<wbr/>Formats
16633 <td class="entry_type">
16634 <span class="entry_type_name entry_type_name_enum">int32</span>
16635 <span class="entry_type_container">x</span>
16637 <span class="entry_type_array">
16640 <span class="entry_type_visibility"> [hidden as imageFormat]</span>
16644 <span class="entry_type_deprecated">[deprecated] </span>
16647 <ul class="entry_type_enum">
16649 <span class="entry_type_enum_name">RAW16</span>
16650 <span class="entry_type_enum_optional">[optional]</span>
16651 <span class="entry_type_enum_value">0x20</span>
16652 <span class="entry_type_enum_notes"><p>RAW16 is a standard,<wbr/> cross-platform format for raw image
16653 buffers with 16-bit pixels.<wbr/></p>
16654 <p>Buffers of this format are typically expected to have a
16655 Bayer Color Filter Array (CFA) layout,<wbr/> which is given in
16656 <a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a>.<wbr/> Sensors with
16657 CFAs that are not representable by a format in
16658 <a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a> should not
16659 use this format.<wbr/></p>
16660 <p>Buffers of this format will also follow the constraints given for
16661 RAW_<wbr/>OPAQUE buffers,<wbr/> but with relaxed performance constraints.<wbr/></p>
16662 <p>This format is intended to give users access to the full contents
16663 of the buffers coming directly from the image sensor prior to any
16664 cropping or scaling operations,<wbr/> and all coordinate systems for
16665 metadata used for this format are relative to the size of the
16666 active region of the image sensor before any geometric distortion
16667 correction has been applied (i.<wbr/>e.<wbr/>
16668 <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
16669 dimensions for this format are limited to the full dimensions of
16670 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
16671 <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
16672 only supported output size).<wbr/></p>
16673 <p>See <a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a> for
16674 the full set of performance guarantees.<wbr/></p></span>
16677 <span class="entry_type_enum_name">RAW_OPAQUE</span>
16678 <span class="entry_type_enum_optional">[optional]</span>
16679 <span class="entry_type_enum_value">0x24</span>
16680 <span class="entry_type_enum_notes"><p>RAW_<wbr/>OPAQUE (or
16681 <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_PRIVATE">RAW_<wbr/>PRIVATE</a>
16682 as referred in public API) is a format for raw image buffers
16683 coming from an image sensor.<wbr/></p>
16684 <p>The actual structure of buffers of this format is
16685 platform-specific,<wbr/> but must follow several constraints:</p>
16687 <li>No image post-processing operations may have been applied to
16688 buffers of this type.<wbr/> These buffers contain raw image data coming
16689 directly from the image sensor.<wbr/></li>
16690 <li>If a buffer of this format is passed to the camera device for
16691 reprocessing,<wbr/> the resulting images will be identical to the images
16692 produced if the buffer had come directly from the sensor and was
16693 processed with the same settings.<wbr/></li>
16695 <p>The intended use for this format is to allow access to the native
16696 raw format buffers coming directly from the camera sensor without
16697 any additional conversions or decrease in framerate.<wbr/></p>
16698 <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
16699 performance guarantees.<wbr/></p></span>
16702 <span class="entry_type_enum_name">YV12</span>
16703 <span class="entry_type_enum_optional">[optional]</span>
16704 <span class="entry_type_enum_value">0x32315659</span>
16705 <span class="entry_type_enum_notes"><p>YCrCb 4:2:0 Planar</p></span>
16708 <span class="entry_type_enum_name">YCrCb_420_SP</span>
16709 <span class="entry_type_enum_optional">[optional]</span>
16710 <span class="entry_type_enum_value">0x11</span>
16711 <span class="entry_type_enum_notes"><p>NV21</p></span>
16714 <span class="entry_type_enum_name">IMPLEMENTATION_DEFINED</span>
16715 <span class="entry_type_enum_value">0x22</span>
16716 <span class="entry_type_enum_notes"><p>System internal format,<wbr/> not application-accessible</p></span>
16719 <span class="entry_type_enum_name">YCbCr_420_888</span>
16720 <span class="entry_type_enum_value">0x23</span>
16721 <span class="entry_type_enum_notes"><p>Flexible YUV420 Format</p></span>
16724 <span class="entry_type_enum_name">BLOB</span>
16725 <span class="entry_type_enum_value">0x21</span>
16726 <span class="entry_type_enum_notes"><p>JPEG format</p></span>
16730 </td> <!-- entry_type -->
16732 <td class="entry_description">
16733 <p>The list of image formats that are supported by this
16734 camera device for output streams.<wbr/></p>
16737 <td class="entry_units">
16740 <td class="entry_range">
16741 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
16744 <td class="entry_tags">
16745 <ul class="entry_tags">
16746 <li><a href="#tag_BC">BC</a></li>
16751 <tr class="entries_header">
16752 <th class="th_details" colspan="5">Details</th>
16754 <tr class="entry_cont">
16755 <td class="entry_details" colspan="5">
16756 <p>All camera devices will support JPEG and YUV_<wbr/>420_<wbr/>888 formats.<wbr/></p>
16757 <p>When set to YUV_<wbr/>420_<wbr/>888,<wbr/> application can access the YUV420 data directly.<wbr/></p>
16761 <tr class="entries_header">
16762 <th class="th_details" colspan="5">HAL Implementation Details</th>
16764 <tr class="entry_cont">
16765 <td class="entry_details" colspan="5">
16766 <p>These format values are from HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>* in
16767 system/<wbr/>core/<wbr/>include/<wbr/>system/<wbr/>graphics.<wbr/>h.<wbr/></p>
16768 <p>When IMPLEMENTATION_<wbr/>DEFINED is used,<wbr/> the platform
16769 gralloc module will select a format based on the usage flags provided
16770 by the camera HAL device and the other endpoint of the stream.<wbr/> It is
16771 usually used by preview and recording streams,<wbr/> where the application doesn't
16772 need access the image data.<wbr/></p>
16773 <p>YCb<wbr/>Cr_<wbr/>420_<wbr/>888 format must be supported by the HAL.<wbr/> When an image stream
16774 needs CPU/<wbr/>application direct access,<wbr/> this format will be used.<wbr/></p>
16775 <p>The BLOB format must be supported by the HAL.<wbr/> This is used for the JPEG stream.<wbr/></p>
16776 <p>A RAW_<wbr/>OPAQUE buffer should contain only pixel data.<wbr/> It is strongly
16777 recommended that any information used by the camera device when
16778 processing images is fully expressed by the result metadata
16779 for that image buffer.<wbr/></p>
16783 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16784 <!-- end of entry -->
16787 <tr class="entry" id="static_android.scaler.availableJpegMinDurations">
16788 <td class="entry_name
16789 entry_name_deprecated
16791 android.<wbr/>scaler.<wbr/>available<wbr/>Jpeg<wbr/>Min<wbr/>Durations
16793 <td class="entry_type">
16794 <span class="entry_type_name">int64</span>
16795 <span class="entry_type_container">x</span>
16797 <span class="entry_type_array">
16800 <span class="entry_type_visibility"> [hidden]</span>
16804 <span class="entry_type_deprecated">[deprecated] </span>
16808 </td> <!-- entry_type -->
16810 <td class="entry_description">
16811 <p>The minimum frame duration that is supported
16812 for each resolution in <a href="#static_android.scaler.availableJpegSizes">android.<wbr/>scaler.<wbr/>available<wbr/>Jpeg<wbr/>Sizes</a>.<wbr/></p>
16815 <td class="entry_units">
16819 <td class="entry_range">
16820 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
16821 <p>TODO: Remove property.<wbr/></p>
16824 <td class="entry_tags">
16825 <ul class="entry_tags">
16826 <li><a href="#tag_BC">BC</a></li>
16831 <tr class="entries_header">
16832 <th class="th_details" colspan="5">Details</th>
16834 <tr class="entry_cont">
16835 <td class="entry_details" colspan="5">
16836 <p>This corresponds to the minimum steady-state frame duration when only
16837 that JPEG stream is active and captured in a burst,<wbr/> with all
16838 processing (typically in android.<wbr/>*.<wbr/>mode) set to FAST.<wbr/></p>
16839 <p>When multiple streams are configured,<wbr/> the minimum
16840 frame duration will be >= max(individual stream min
16846 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16847 <!-- end of entry -->
16850 <tr class="entry" id="static_android.scaler.availableJpegSizes">
16851 <td class="entry_name
16852 entry_name_deprecated
16854 android.<wbr/>scaler.<wbr/>available<wbr/>Jpeg<wbr/>Sizes
16856 <td class="entry_type">
16857 <span class="entry_type_name">int32</span>
16858 <span class="entry_type_container">x</span>
16860 <span class="entry_type_array">
16863 <span class="entry_type_visibility"> [hidden as size]</span>
16867 <span class="entry_type_deprecated">[deprecated] </span>
16871 </td> <!-- entry_type -->
16873 <td class="entry_description">
16874 <p>The JPEG resolutions that are supported by this camera device.<wbr/></p>
16877 <td class="entry_units">
16880 <td class="entry_range">
16881 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
16882 <p>TODO: Remove property.<wbr/></p>
16885 <td class="entry_tags">
16886 <ul class="entry_tags">
16887 <li><a href="#tag_BC">BC</a></li>
16892 <tr class="entries_header">
16893 <th class="th_details" colspan="5">Details</th>
16895 <tr class="entry_cont">
16896 <td class="entry_details" colspan="5">
16897 <p>The resolutions are listed as <code>(width,<wbr/> height)</code> pairs.<wbr/> All camera devices will support
16898 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>
16902 <tr class="entries_header">
16903 <th class="th_details" colspan="5">HAL Implementation Details</th>
16905 <tr class="entry_cont">
16906 <td class="entry_details" colspan="5">
16907 <p>The HAL must include sensor maximum resolution
16908 (defined by <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>),<wbr/>
16909 and should include half/<wbr/>quarter of sensor maximum resolution.<wbr/></p>
16913 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16914 <!-- end of entry -->
16917 <tr class="entry" id="static_android.scaler.availableMaxDigitalZoom">
16918 <td class="entry_name
16920 android.<wbr/>scaler.<wbr/>available<wbr/>Max<wbr/>Digital<wbr/>Zoom
16922 <td class="entry_type">
16923 <span class="entry_type_name">float</span>
16925 <span class="entry_type_visibility"> [public]</span>
16928 <span class="entry_type_hwlevel">[legacy] </span>
16933 </td> <!-- entry_type -->
16935 <td class="entry_description">
16936 <p>The maximum ratio between both active area width
16937 and crop region width,<wbr/> and active area height and
16938 crop region height,<wbr/> for <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></p>
16941 <td class="entry_units">
16945 <td class="entry_range">
16949 <td class="entry_tags">
16950 <ul class="entry_tags">
16951 <li><a href="#tag_BC">BC</a></li>
16956 <tr class="entries_header">
16957 <th class="th_details" colspan="5">Details</th>
16959 <tr class="entry_cont">
16960 <td class="entry_details" colspan="5">
16961 <p>This represents the maximum amount of zooming possible by
16962 the camera device,<wbr/> or equivalently,<wbr/> the minimum cropping
16963 window size.<wbr/></p>
16964 <p>Crop regions that have a width or height that is smaller
16965 than this ratio allows will be rounded up to the minimum
16966 allowed size by the camera device.<wbr/></p>
16971 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
16972 <!-- end of entry -->
16975 <tr class="entry" id="static_android.scaler.availableProcessedMinDurations">
16976 <td class="entry_name
16977 entry_name_deprecated
16979 android.<wbr/>scaler.<wbr/>available<wbr/>Processed<wbr/>Min<wbr/>Durations
16981 <td class="entry_type">
16982 <span class="entry_type_name">int64</span>
16983 <span class="entry_type_container">x</span>
16985 <span class="entry_type_array">
16988 <span class="entry_type_visibility"> [hidden]</span>
16992 <span class="entry_type_deprecated">[deprecated] </span>
16996 </td> <!-- entry_type -->
16998 <td class="entry_description">
16999 <p>For each available processed output size (defined in
17000 <a href="#static_android.scaler.availableProcessedSizes">android.<wbr/>scaler.<wbr/>available<wbr/>Processed<wbr/>Sizes</a>),<wbr/> this property lists the
17001 minimum supportable frame duration for that size.<wbr/></p>
17004 <td class="entry_units">
17008 <td class="entry_range">
17009 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
17012 <td class="entry_tags">
17013 <ul class="entry_tags">
17014 <li><a href="#tag_BC">BC</a></li>
17019 <tr class="entries_header">
17020 <th class="th_details" colspan="5">Details</th>
17022 <tr class="entry_cont">
17023 <td class="entry_details" colspan="5">
17024 <p>This should correspond to the frame duration when only that processed
17025 stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
17026 set to FAST.<wbr/></p>
17027 <p>When multiple streams are configured,<wbr/> the minimum frame duration will
17028 be >= max(individual stream min durations).<wbr/></p>
17033 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17034 <!-- end of entry -->
17037 <tr class="entry" id="static_android.scaler.availableProcessedSizes">
17038 <td class="entry_name
17039 entry_name_deprecated
17041 android.<wbr/>scaler.<wbr/>available<wbr/>Processed<wbr/>Sizes
17043 <td class="entry_type">
17044 <span class="entry_type_name">int32</span>
17045 <span class="entry_type_container">x</span>
17047 <span class="entry_type_array">
17050 <span class="entry_type_visibility"> [hidden as size]</span>
17054 <span class="entry_type_deprecated">[deprecated] </span>
17058 </td> <!-- entry_type -->
17060 <td class="entry_description">
17061 <p>The resolutions available for use with
17062 processed output streams,<wbr/> such as YV12,<wbr/> NV12,<wbr/> and
17063 platform opaque YUV/<wbr/>RGB streams to the GPU or video
17064 encoders.<wbr/></p>
17067 <td class="entry_units">
17070 <td class="entry_range">
17071 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
17074 <td class="entry_tags">
17075 <ul class="entry_tags">
17076 <li><a href="#tag_BC">BC</a></li>
17081 <tr class="entries_header">
17082 <th class="th_details" colspan="5">Details</th>
17084 <tr class="entry_cont">
17085 <td class="entry_details" colspan="5">
17086 <p>The resolutions are listed as <code>(width,<wbr/> height)</code> pairs.<wbr/></p>
17087 <p>For a given use case,<wbr/> the actual maximum supported resolution
17088 may be lower than what is listed here,<wbr/> depending on the destination
17089 Surface for the image data.<wbr/> For example,<wbr/> for recording video,<wbr/>
17090 the video encoder chosen may have a maximum size limit (e.<wbr/>g.<wbr/> 1080p)
17091 smaller than what the camera (e.<wbr/>g.<wbr/> maximum resolution is 3264x2448)
17092 can provide.<wbr/></p>
17093 <p>Please reference the documentation for the image data destination to
17094 check if it limits the maximum size for image data.<wbr/></p>
17098 <tr class="entries_header">
17099 <th class="th_details" colspan="5">HAL Implementation Details</th>
17101 <tr class="entry_cont">
17102 <td class="entry_details" colspan="5">
17103 <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/>
17104 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>
17105 and each below resolution if it is smaller than or equal to the sensor
17106 maximum resolution (if they are not listed in JPEG sizes already):</p>
17108 <li>240p (320 x 240)</li>
17109 <li>480p (640 x 480)</li>
17110 <li>720p (1280 x 720)</li>
17111 <li>1080p (1920 x 1080)</li>
17113 <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/>
17114 the HAL only has to list up to the maximum video size supported by the devices.<wbr/></p>
17118 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17119 <!-- end of entry -->
17122 <tr class="entry" id="static_android.scaler.availableRawMinDurations">
17123 <td class="entry_name
17124 entry_name_deprecated
17126 android.<wbr/>scaler.<wbr/>available<wbr/>Raw<wbr/>Min<wbr/>Durations
17128 <td class="entry_type">
17129 <span class="entry_type_name">int64</span>
17130 <span class="entry_type_container">x</span>
17132 <span class="entry_type_array">
17135 <span class="entry_type_visibility"> [system]</span>
17139 <span class="entry_type_deprecated">[deprecated] </span>
17143 </td> <!-- entry_type -->
17145 <td class="entry_description">
17146 <p>For each available raw output size (defined in
17147 <a href="#static_android.scaler.availableRawSizes">android.<wbr/>scaler.<wbr/>available<wbr/>Raw<wbr/>Sizes</a>),<wbr/> this property lists the minimum
17148 supportable frame duration for that size.<wbr/></p>
17151 <td class="entry_units">
17155 <td class="entry_range">
17156 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
17159 <td class="entry_tags">
17160 <ul class="entry_tags">
17161 <li><a href="#tag_BC">BC</a></li>
17166 <tr class="entries_header">
17167 <th class="th_details" colspan="5">Details</th>
17169 <tr class="entry_cont">
17170 <td class="entry_details" colspan="5">
17171 <p>Should correspond to the frame duration when only the raw stream is
17173 <p>When multiple streams are configured,<wbr/> the minimum
17174 frame duration will be >= max(individual stream min
17180 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17181 <!-- end of entry -->
17184 <tr class="entry" id="static_android.scaler.availableRawSizes">
17185 <td class="entry_name
17186 entry_name_deprecated
17188 android.<wbr/>scaler.<wbr/>available<wbr/>Raw<wbr/>Sizes
17190 <td class="entry_type">
17191 <span class="entry_type_name">int32</span>
17192 <span class="entry_type_container">x</span>
17194 <span class="entry_type_array">
17197 <span class="entry_type_visibility"> [system as size]</span>
17201 <span class="entry_type_deprecated">[deprecated] </span>
17205 </td> <!-- entry_type -->
17207 <td class="entry_description">
17208 <p>The resolutions available for use with raw
17209 sensor output streams,<wbr/> listed as width,<wbr/>
17213 <td class="entry_units">
17216 <td class="entry_range">
17217 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
17220 <td class="entry_tags">
17226 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17227 <!-- end of entry -->
17230 <tr class="entry" id="static_android.scaler.availableInputOutputFormatsMap">
17231 <td class="entry_name
17233 android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map
17235 <td class="entry_type">
17236 <span class="entry_type_name">int32</span>
17238 <span class="entry_type_visibility"> [hidden as reprocessFormatsMap]</span>
17245 </td> <!-- entry_type -->
17247 <td class="entry_description">
17248 <p>The mapping of image formats that are supported by this
17249 camera device for input streams,<wbr/> to their corresponding output formats.<wbr/></p>
17252 <td class="entry_units">
17255 <td class="entry_range">
17258 <td class="entry_tags">
17259 <ul class="entry_tags">
17260 <li><a href="#tag_REPROC">REPROC</a></li>
17265 <tr class="entries_header">
17266 <th class="th_details" colspan="5">Details</th>
17268 <tr class="entry_cont">
17269 <td class="entry_details" colspan="5">
17270 <p>All camera devices with at least 1
17271 <a href="#static_android.request.maxNumInputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Input<wbr/>Streams</a> will have at least one
17272 available input format.<wbr/></p>
17273 <p>The camera device will support the following map of formats,<wbr/>
17274 if its dependent capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>) is supported:</p>
17278 <th align="left">Input Format</th>
17279 <th align="left">Output Format</th>
17280 <th align="left">Capability</th>
17285 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a></td>
17286 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17287 <td align="left">PRIVATE_<wbr/>REPROCESSING</td>
17290 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a></td>
17291 <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>
17292 <td align="left">PRIVATE_<wbr/>REPROCESSING</td>
17295 <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>
17296 <td align="left"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17297 <td align="left">YUV_<wbr/>REPROCESSING</td>
17300 <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>
17301 <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>
17302 <td align="left">YUV_<wbr/>REPROCESSING</td>
17306 <p>PRIVATE refers to a device-internal format that is not directly application-visible.<wbr/> A
17307 PRIVATE input surface can be acquired by <a href="https://developer.android.com/reference/android/media/ImageReader.html#newInstance">ImageReader#newInstance</a>
17308 with <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> as the format.<wbr/></p>
17309 <p>For a PRIVATE_<wbr/>REPROCESSING-capable camera device,<wbr/> using the PRIVATE format as either input
17310 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>
17311 <p>Attempting to configure an input stream with output streams not
17312 listed as available in this map is not valid.<wbr/></p>
17316 <tr class="entries_header">
17317 <th class="th_details" colspan="5">HAL Implementation Details</th>
17319 <tr class="entry_cont">
17320 <td class="entry_details" colspan="5">
17321 <p>For the formats,<wbr/> see <code>system/<wbr/>core/<wbr/>include/<wbr/>system/<wbr/>graphics.<wbr/>h</code> for a definition
17322 of the image format enumerations.<wbr/> The PRIVATE format refers to the
17323 HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>IMPLEMENTATION_<wbr/>DEFINED format.<wbr/> The HAL could determine
17324 the actual format by using the gralloc usage flags.<wbr/>
17325 For ZSL use case in particular,<wbr/> the HAL could choose appropriate format (partially
17326 processed YUV or RAW based format) by checking the format and GRALLOC_<wbr/>USAGE_<wbr/>HW_<wbr/>CAMERA_<wbr/>ZSL.<wbr/>
17327 See camera3.<wbr/>h for more details.<wbr/></p>
17328 <p>This value is encoded as a variable-size array-of-arrays.<wbr/>
17329 The inner array always contains <code>[format,<wbr/> length,<wbr/> ...<wbr/>]</code> where
17330 <code>...<wbr/></code> has <code>length</code> elements.<wbr/> An inner array is followed by another
17331 inner array if the total metadata entry size hasn't yet been exceeded.<wbr/></p>
17332 <p>A code sample to read/<wbr/>write this encoding (with a device that
17333 supports reprocessing IMPLEMENTATION_<wbr/>DEFINED to YUV_<wbr/>420_<wbr/>888,<wbr/> and JPEG,<wbr/>
17334 and reprocessing YUV_<wbr/>420_<wbr/>888 to YUV_<wbr/>420_<wbr/>888 and JPEG):</p>
17335 <pre><code>//<wbr/> reading
17336 int32_<wbr/>t* contents = &entry.<wbr/>i32[0];
17337 for (size_<wbr/>t i = 0; i < entry.<wbr/>count; ) {
17338 int32_<wbr/>t format = contents[i++];
17339 int32_<wbr/>t length = contents[i++];
17340 int32_<wbr/>t output_<wbr/>formats[length];
17341 memcpy(&output_<wbr/>formats[0],<wbr/> &contents[i],<wbr/>
17342 length * sizeof(int32_<wbr/>t));
17346 //<wbr/> writing (static example,<wbr/> PRIVATE_<wbr/>REPROCESSING + YUV_<wbr/>REPROCESSING)
17347 int32_<wbr/>t[] contents = {
17348 IMPLEMENTATION_<wbr/>DEFINED,<wbr/> 2,<wbr/> YUV_<wbr/>420_<wbr/>888,<wbr/> BLOB,<wbr/>
17349 YUV_<wbr/>420_<wbr/>888,<wbr/> 2,<wbr/> YUV_<wbr/>420_<wbr/>888,<wbr/> BLOB,<wbr/>
17351 update_<wbr/>camera_<wbr/>metadata_<wbr/>entry(metadata,<wbr/> index,<wbr/> &contents[0],<wbr/>
17352 sizeof(contents)/<wbr/>sizeof(contents[0]),<wbr/> &updated_<wbr/>entry);
17354 <p>If the HAL claims to support any of the capabilities listed in the
17355 above details,<wbr/> then it must also support all the input-output
17356 combinations listed for that capability.<wbr/> It can optionally support
17357 additional formats if it so chooses.<wbr/></p>
17361 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17362 <!-- end of entry -->
17365 <tr class="entry" id="static_android.scaler.availableStreamConfigurations">
17366 <td class="entry_name
17368 android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations
17370 <td class="entry_type">
17371 <span class="entry_type_name entry_type_name_enum">int32</span>
17372 <span class="entry_type_container">x</span>
17374 <span class="entry_type_array">
17377 <span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
17380 <span class="entry_type_hwlevel">[legacy] </span>
17384 <ul class="entry_type_enum">
17386 <span class="entry_type_enum_name">OUTPUT</span>
17389 <span class="entry_type_enum_name">INPUT</span>
17393 </td> <!-- entry_type -->
17395 <td class="entry_description">
17396 <p>The available stream configurations that this
17397 camera device supports
17398 (i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
17401 <td class="entry_units">
17404 <td class="entry_range">
17407 <td class="entry_tags">
17411 <tr class="entries_header">
17412 <th class="th_details" colspan="5">Details</th>
17414 <tr class="entry_cont">
17415 <td class="entry_details" colspan="5">
17416 <p>The configurations are listed as <code>(format,<wbr/> width,<wbr/> height,<wbr/> input?)</code>
17418 <p>For a given use case,<wbr/> the actual maximum supported resolution
17419 may be lower than what is listed here,<wbr/> depending on the destination
17420 Surface for the image data.<wbr/> For example,<wbr/> for recording video,<wbr/>
17421 the video encoder chosen may have a maximum size limit (e.<wbr/>g.<wbr/> 1080p)
17422 smaller than what the camera (e.<wbr/>g.<wbr/> maximum resolution is 3264x2448)
17423 can provide.<wbr/></p>
17424 <p>Please reference the documentation for the image data destination to
17425 check if it limits the maximum size for image data.<wbr/></p>
17426 <p>Not all output formats may be supported in a configuration with
17427 an input stream of a particular format.<wbr/> For more details,<wbr/> see
17428 <a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a>.<wbr/></p>
17429 <p>The following table describes the minimum required output stream
17430 configurations based on the hardware level
17431 (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a>):</p>
17435 <th align="center">Format</th>
17436 <th align="center">Size</th>
17437 <th align="center">Hardware Level</th>
17438 <th align="center">Notes</th>
17443 <td align="center">JPEG</td>
17444 <td align="center"><a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></td>
17445 <td align="center">Any</td>
17446 <td align="center"></td>
17449 <td align="center">JPEG</td>
17450 <td align="center">1920x1080 (1080p)</td>
17451 <td align="center">Any</td>
17452 <td align="center">if 1080p <= activeArraySize</td>
17455 <td align="center">JPEG</td>
17456 <td align="center">1280x720 (720)</td>
17457 <td align="center">Any</td>
17458 <td align="center">if 720p <= activeArraySize</td>
17461 <td align="center">JPEG</td>
17462 <td align="center">640x480 (480p)</td>
17463 <td align="center">Any</td>
17464 <td align="center">if 480p <= activeArraySize</td>
17467 <td align="center">JPEG</td>
17468 <td align="center">320x240 (240p)</td>
17469 <td align="center">Any</td>
17470 <td align="center">if 240p <= activeArraySize</td>
17473 <td align="center">YUV_<wbr/>420_<wbr/>888</td>
17474 <td align="center">all output sizes available for JPEG</td>
17475 <td align="center">FULL</td>
17476 <td align="center"></td>
17479 <td align="center">YUV_<wbr/>420_<wbr/>888</td>
17480 <td align="center">all output sizes available for JPEG,<wbr/> up to the maximum video size</td>
17481 <td align="center">LIMITED</td>
17482 <td align="center"></td>
17485 <td align="center">IMPLEMENTATION_<wbr/>DEFINED</td>
17486 <td align="center">same as YUV_<wbr/>420_<wbr/>888</td>
17487 <td align="center">Any</td>
17488 <td align="center"></td>
17492 <p>Refer to <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> for additional
17493 mandatory stream configurations on a per-capability basis.<wbr/></p>
17497 <tr class="entries_header">
17498 <th class="th_details" colspan="5">HAL Implementation Details</th>
17500 <tr class="entry_cont">
17501 <td class="entry_details" colspan="5">
17502 <p>It is recommended (but not mandatory) to also include half/<wbr/>quarter
17503 of sensor maximum resolution for JPEG formats (regardless of hardware
17505 <p>(The following is a rewording of the above required table):</p>
17506 <p>For JPEG format,<wbr/> the sizes may be restricted by below conditions:</p>
17508 <li>The HAL may choose the aspect ratio of each Jpeg size to be one of well known ones
17509 (e.<wbr/>g.<wbr/> 4:3,<wbr/> 16:9,<wbr/> 3:2 etc.<wbr/>).<wbr/> If the sensor maximum resolution
17510 (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/>
17511 it does not have to be included in the supported JPEG sizes.<wbr/></li>
17512 <li>Some hardware JPEG encoders may have pixel boundary alignment requirements,<wbr/> such as
17513 the dimensions being a multiple of 16.<wbr/></li>
17515 <p>Therefore,<wbr/> the maximum JPEG size may be smaller than sensor maximum resolution.<wbr/>
17516 However,<wbr/> the largest JPEG size must be as close as possible to the sensor maximum
17517 resolution given above constraints.<wbr/> It is required that after aspect ratio adjustments,<wbr/>
17518 additional size reduction due to other issues must be less than 3% in area.<wbr/> For example,<wbr/>
17519 if the sensor maximum resolution is 3280x2464,<wbr/> if the maximum JPEG size has aspect
17520 ratio 4:3,<wbr/> the JPEG encoder alignment requirement is 16,<wbr/> the maximum JPEG size will be
17521 3264x2448.<wbr/></p>
17522 <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/>
17523 the HAL must include all YUV_<wbr/>420_<wbr/>888 sizes that have JPEG sizes listed
17524 here as output streams.<wbr/></p>
17525 <p>It must also include each below resolution if it is smaller than or
17526 equal to the sensor maximum resolution (for both YUV_<wbr/>420_<wbr/>888 and JPEG
17527 formats),<wbr/> as output streams:</p>
17529 <li>240p (320 x 240)</li>
17530 <li>480p (640 x 480)</li>
17531 <li>720p (1280 x 720)</li>
17532 <li>1080p (1920 x 1080)</li>
17534 <p>For LIMITED capability devices
17535 (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == LIMITED</code>),<wbr/>
17536 the HAL only has to list up to the maximum video size
17537 supported by the device.<wbr/></p>
17538 <p>Regardless of hardware level,<wbr/> every output resolution available for
17539 YUV_<wbr/>420_<wbr/>888 must also be available for IMPLEMENTATION_<wbr/>DEFINED.<wbr/></p>
17540 <p>This supercedes the following fields,<wbr/> which are now deprecated:</p>
17542 <li>availableFormats</li>
17543 <li>available[Processed,<wbr/>Raw,<wbr/>Jpeg]Sizes</li>
17548 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17549 <!-- end of entry -->
17552 <tr class="entry" id="static_android.scaler.availableMinFrameDurations">
17553 <td class="entry_name
17555 android.<wbr/>scaler.<wbr/>available<wbr/>Min<wbr/>Frame<wbr/>Durations
17557 <td class="entry_type">
17558 <span class="entry_type_name">int64</span>
17559 <span class="entry_type_container">x</span>
17561 <span class="entry_type_array">
17564 <span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
17567 <span class="entry_type_hwlevel">[legacy] </span>
17572 </td> <!-- entry_type -->
17574 <td class="entry_description">
17575 <p>This lists the minimum frame duration for each
17576 format/<wbr/>size combination.<wbr/></p>
17579 <td class="entry_units">
17580 (format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
17583 <td class="entry_range">
17586 <td class="entry_tags">
17587 <ul class="entry_tags">
17588 <li><a href="#tag_V1">V1</a></li>
17593 <tr class="entries_header">
17594 <th class="th_details" colspan="5">Details</th>
17596 <tr class="entry_cont">
17597 <td class="entry_details" colspan="5">
17598 <p>This should correspond to the frame duration when only that
17599 stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
17600 set to either OFF or FAST.<wbr/></p>
17601 <p>When multiple streams are used in a request,<wbr/> the minimum frame
17602 duration will be max(individual stream min durations).<wbr/></p>
17603 <p>The minimum frame duration of a stream (of a particular format,<wbr/> size)
17604 is the same regardless of whether the stream is input or output.<wbr/></p>
17605 <p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> and
17606 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for more details about
17607 calculating the max frame rate.<wbr/></p>
17608 <p>(Keep in sync with
17609 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>)</p>
17614 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17615 <!-- end of entry -->
17618 <tr class="entry" id="static_android.scaler.availableStallDurations">
17619 <td class="entry_name
17621 android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations
17623 <td class="entry_type">
17624 <span class="entry_type_name">int64</span>
17625 <span class="entry_type_container">x</span>
17627 <span class="entry_type_array">
17630 <span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
17633 <span class="entry_type_hwlevel">[legacy] </span>
17638 </td> <!-- entry_type -->
17640 <td class="entry_description">
17641 <p>This lists the maximum stall duration for each
17642 output format/<wbr/>size combination.<wbr/></p>
17645 <td class="entry_units">
17646 (format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
17649 <td class="entry_range">
17652 <td class="entry_tags">
17653 <ul class="entry_tags">
17654 <li><a href="#tag_V1">V1</a></li>
17659 <tr class="entries_header">
17660 <th class="th_details" colspan="5">Details</th>
17662 <tr class="entry_cont">
17663 <td class="entry_details" colspan="5">
17664 <p>A stall duration is how much extra time would get added
17665 to the normal minimum frame duration for a repeating request
17666 that has streams with non-zero stall.<wbr/></p>
17667 <p>For example,<wbr/> consider JPEG captures which have the following
17668 characteristics:</p>
17670 <li>JPEG streams act like processed YUV streams in requests for which
17671 they are not included; in requests in which they are directly
17672 referenced,<wbr/> they act as JPEG streams.<wbr/> This is because supporting a
17673 JPEG stream requires the underlying YUV data to always be ready for
17674 use by a JPEG encoder,<wbr/> but the encoder will only be used (and impact
17675 frame duration) on requests that actually reference a JPEG stream.<wbr/></li>
17676 <li>The JPEG processor can run concurrently to the rest of the camera
17677 pipeline,<wbr/> but cannot process more than 1 capture at a time.<wbr/></li>
17679 <p>In other words,<wbr/> using a repeating YUV request would result
17680 in a steady frame rate (let's say it's 30 FPS).<wbr/> If a single
17681 JPEG request is submitted periodically,<wbr/> the frame rate will stay
17682 at 30 FPS (as long as we wait for the previous JPEG to return each
17683 time).<wbr/> If we try to submit a repeating YUV + JPEG request,<wbr/> then
17684 the frame rate will drop from 30 FPS.<wbr/></p>
17685 <p>In general,<wbr/> submitting a new request with a non-0 stall time
17686 stream will <em>not</em> cause a frame rate drop unless there are still
17687 outstanding buffers for that stream from previous requests.<wbr/></p>
17688 <p>Submitting a repeating request with streams (call this <code>S</code>)
17689 is the same as setting the minimum frame duration from
17690 the normal minimum frame duration corresponding to <code>S</code>,<wbr/> added with
17691 the maximum stall duration for <code>S</code>.<wbr/></p>
17692 <p>If interleaving requests with and without a stall duration,<wbr/>
17693 a request will stall by the maximum of the remaining times
17694 for each can-stall stream with outstanding buffers.<wbr/></p>
17695 <p>This means that a stalling request will not have an exposure start
17696 until the stall has completed.<wbr/></p>
17697 <p>This should correspond to the stall duration when only that stream is
17698 active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode) set to FAST
17699 or OFF.<wbr/> Setting any of the processing modes to HIGH_<wbr/>QUALITY
17700 effectively results in an indeterminate stall duration for all
17701 streams in a request (the regular stall calculation rules are
17702 ignored).<wbr/></p>
17703 <p>The following formats may always have a stall duration:</p>
17705 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></li>
17706 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">ImageFormat#RAW_<wbr/>SENSOR</a></li>
17708 <p>The following formats will never have a stall duration:</p>
17710 <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>
17711 <li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW10">ImageFormat#RAW10</a></li>
17713 <p>All other formats may or may not have an allowed stall duration on
17714 a per-capability basis; refer to <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>
17715 for more details.<wbr/></p>
17716 <p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> for more information about
17717 calculating the max frame rate (absent stalls).<wbr/></p>
17718 <p>(Keep up to date with
17719 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a> )</p>
17723 <tr class="entries_header">
17724 <th class="th_details" colspan="5">HAL Implementation Details</th>
17726 <tr class="entry_cont">
17727 <td class="entry_details" colspan="5">
17728 <p>If possible,<wbr/> it is recommended that all non-JPEG formats
17729 (such as RAW16) should not have a stall duration.<wbr/> RAW10,<wbr/> RAW12,<wbr/> RAW_<wbr/>OPAQUE
17730 and IMPLEMENTATION_<wbr/>DEFINED must not have stall durations.<wbr/></p>
17734 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17735 <!-- end of entry -->
17738 <tr class="entry" id="static_android.scaler.streamConfigurationMap">
17739 <td class="entry_name
17741 android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map
17743 <td class="entry_type">
17744 <span class="entry_type_name">int32</span>
17746 <span class="entry_type_visibility"> [java_public as streamConfigurationMap]</span>
17748 <span class="entry_type_synthetic">[synthetic] </span>
17750 <span class="entry_type_hwlevel">[legacy] </span>
17755 </td> <!-- entry_type -->
17757 <td class="entry_description">
17758 <p>The available stream configurations that this
17759 camera device supports; also includes the minimum frame durations
17760 and the stall durations for each format/<wbr/>size combination.<wbr/></p>
17763 <td class="entry_units">
17766 <td class="entry_range">
17769 <td class="entry_tags">
17773 <tr class="entries_header">
17774 <th class="th_details" colspan="5">Details</th>
17776 <tr class="entry_cont">
17777 <td class="entry_details" colspan="5">
17778 <p>All camera devices will support sensor maximum resolution (defined by
17779 <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>
17780 <p>For a given use case,<wbr/> the actual maximum supported resolution
17781 may be lower than what is listed here,<wbr/> depending on the destination
17782 Surface for the image data.<wbr/> For example,<wbr/> for recording video,<wbr/>
17783 the video encoder chosen may have a maximum size limit (e.<wbr/>g.<wbr/> 1080p)
17784 smaller than what the camera (e.<wbr/>g.<wbr/> maximum resolution is 3264x2448)
17785 can provide.<wbr/></p>
17786 <p>Please reference the documentation for the image data destination to
17787 check if it limits the maximum size for image data.<wbr/></p>
17788 <p>The following table describes the minimum required output stream
17789 configurations based on the hardware level
17790 (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a>):</p>
17794 <th align="center">Format</th>
17795 <th align="center">Size</th>
17796 <th align="center">Hardware Level</th>
17797 <th align="center">Notes</th>
17802 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17803 <td align="center"><a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> (*1)</td>
17804 <td align="center">Any</td>
17805 <td align="center"></td>
17808 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17809 <td align="center">1920x1080 (1080p)</td>
17810 <td align="center">Any</td>
17811 <td align="center">if 1080p <= activeArraySize</td>
17814 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17815 <td align="center">1280x720 (720p)</td>
17816 <td align="center">Any</td>
17817 <td align="center">if 720p <= activeArraySize</td>
17820 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17821 <td align="center">640x480 (480p)</td>
17822 <td align="center">Any</td>
17823 <td align="center">if 480p <= activeArraySize</td>
17826 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
17827 <td align="center">320x240 (240p)</td>
17828 <td align="center">Any</td>
17829 <td align="center">if 240p <= activeArraySize</td>
17832 <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>
17833 <td align="center">all output sizes available for JPEG</td>
17834 <td align="center">FULL</td>
17835 <td align="center"></td>
17838 <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>
17839 <td align="center">all output sizes available for JPEG,<wbr/> up to the maximum video size</td>
17840 <td align="center">LIMITED</td>
17841 <td align="center"></td>
17844 <td align="center"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a></td>
17845 <td align="center">same as YUV_<wbr/>420_<wbr/>888</td>
17846 <td align="center">Any</td>
17847 <td align="center"></td>
17851 <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
17852 stream configurations on a per-capability basis.<wbr/></p>
17853 <p>*1: For JPEG format,<wbr/> the sizes may be restricted by below conditions:</p>
17855 <li>The HAL may choose the aspect ratio of each Jpeg size to be one of well known ones
17856 (e.<wbr/>g.<wbr/> 4:3,<wbr/> 16:9,<wbr/> 3:2 etc.<wbr/>).<wbr/> If the sensor maximum resolution
17857 (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/>
17858 it does not have to be included in the supported JPEG sizes.<wbr/></li>
17859 <li>Some hardware JPEG encoders may have pixel boundary alignment requirements,<wbr/> such as
17860 the dimensions being a multiple of 16.<wbr/>
17861 Therefore,<wbr/> the maximum JPEG size may be smaller than sensor maximum resolution.<wbr/>
17862 However,<wbr/> the largest JPEG size will be as close as possible to the sensor maximum
17863 resolution given above constraints.<wbr/> It is required that after aspect ratio adjustments,<wbr/>
17864 additional size reduction due to other issues must be less than 3% in area.<wbr/> For example,<wbr/>
17865 if the sensor maximum resolution is 3280x2464,<wbr/> if the maximum JPEG size has aspect
17866 ratio 4:3,<wbr/> and the JPEG encoder alignment requirement is 16,<wbr/> the maximum JPEG size will be
17867 3264x2448.<wbr/></li>
17872 <tr class="entries_header">
17873 <th class="th_details" colspan="5">HAL Implementation Details</th>
17875 <tr class="entry_cont">
17876 <td class="entry_details" colspan="5">
17877 <p>Do not set this property directly
17878 (it is synthetic and will not be available at the HAL layer);
17879 set the <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> instead.<wbr/></p>
17880 <p>Not all output formats may be supported in a configuration with
17881 an input stream of a particular format.<wbr/> For more details,<wbr/> see
17882 <a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a>.<wbr/></p>
17883 <p>It is recommended (but not mandatory) to also include half/<wbr/>quarter
17884 of sensor maximum resolution for JPEG formats (regardless of hardware
17886 <p>(The following is a rewording of the above required table):</p>
17887 <p>The HAL must include sensor maximum resolution (defined by
17888 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>).<wbr/></p>
17889 <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/>
17890 the HAL must include all YUV_<wbr/>420_<wbr/>888 sizes that have JPEG sizes listed
17891 here as output streams.<wbr/></p>
17892 <p>It must also include each below resolution if it is smaller than or
17893 equal to the sensor maximum resolution (for both YUV_<wbr/>420_<wbr/>888 and JPEG
17894 formats),<wbr/> as output streams:</p>
17896 <li>240p (320 x 240)</li>
17897 <li>480p (640 x 480)</li>
17898 <li>720p (1280 x 720)</li>
17899 <li>1080p (1920 x 1080)</li>
17901 <p>For LIMITED capability devices
17902 (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == LIMITED</code>),<wbr/>
17903 the HAL only has to list up to the maximum video size
17904 supported by the device.<wbr/></p>
17905 <p>Regardless of hardware level,<wbr/> every output resolution available for
17906 YUV_<wbr/>420_<wbr/>888 must also be available for IMPLEMENTATION_<wbr/>DEFINED.<wbr/></p>
17907 <p>This supercedes the following fields,<wbr/> which are now deprecated:</p>
17909 <li>availableFormats</li>
17910 <li>available[Processed,<wbr/>Raw,<wbr/>Jpeg]Sizes</li>
17915 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17916 <!-- end of entry -->
17919 <tr class="entry" id="static_android.scaler.croppingType">
17920 <td class="entry_name
17922 android.<wbr/>scaler.<wbr/>cropping<wbr/>Type
17924 <td class="entry_type">
17925 <span class="entry_type_name entry_type_name_enum">byte</span>
17927 <span class="entry_type_visibility"> [public]</span>
17930 <span class="entry_type_hwlevel">[legacy] </span>
17934 <ul class="entry_type_enum">
17936 <span class="entry_type_enum_name">CENTER_ONLY</span>
17937 <span class="entry_type_enum_notes"><p>The camera device only supports centered crop regions.<wbr/></p></span>
17940 <span class="entry_type_enum_name">FREEFORM</span>
17941 <span class="entry_type_enum_notes"><p>The camera device supports arbitrarily chosen crop regions.<wbr/></p></span>
17945 </td> <!-- entry_type -->
17947 <td class="entry_description">
17948 <p>The crop type that this camera device supports.<wbr/></p>
17951 <td class="entry_units">
17954 <td class="entry_range">
17957 <td class="entry_tags">
17961 <tr class="entries_header">
17962 <th class="th_details" colspan="5">Details</th>
17964 <tr class="entry_cont">
17965 <td class="entry_details" colspan="5">
17966 <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
17967 device that only supports CENTER_<wbr/>ONLY cropping,<wbr/> the camera device will move the
17968 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>)
17969 and keep the crop region width and height unchanged.<wbr/> The camera device will return the
17970 final used crop region in metadata result <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></p>
17971 <p>Camera devices that support FREEFORM cropping will support any crop region that
17972 is inside of the active array.<wbr/> The camera device will apply the same crop region and
17973 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>
17974 <p>LEGACY capability devices will only support CENTER_<wbr/>ONLY cropping.<wbr/></p>
17979 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
17980 <!-- end of entry -->
17984 <!-- end of kind -->
17986 <tr><td colspan="6" class="kind">dynamic</td></tr>
17988 <thead class="entries_header">
17990 <th class="th_name">Property Name</th>
17991 <th class="th_type">Type</th>
17992 <th class="th_description">Description</th>
17993 <th class="th_units">Units</th>
17994 <th class="th_range">Range</th>
17995 <th class="th_tags">Tags</th>
18010 <tr class="entry" id="dynamic_android.scaler.cropRegion">
18011 <td class="entry_name
18013 android.<wbr/>scaler.<wbr/>crop<wbr/>Region
18015 <td class="entry_type">
18016 <span class="entry_type_name">int32</span>
18017 <span class="entry_type_container">x</span>
18019 <span class="entry_type_array">
18022 <span class="entry_type_visibility"> [public as rectangle]</span>
18025 <span class="entry_type_hwlevel">[legacy] </span>
18030 </td> <!-- entry_type -->
18032 <td class="entry_description">
18033 <p>The desired region of the sensor to read out for this capture.<wbr/></p>
18036 <td class="entry_units">
18037 Pixel coordinates relative to
18038 android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
18041 <td class="entry_range">
18044 <td class="entry_tags">
18045 <ul class="entry_tags">
18046 <li><a href="#tag_BC">BC</a></li>
18051 <tr class="entries_header">
18052 <th class="th_details" colspan="5">Details</th>
18054 <tr class="entry_cont">
18055 <td class="entry_details" colspan="5">
18056 <p>This control can be used to implement digital zoom.<wbr/></p>
18057 <p>The crop region coordinate system is based off
18058 <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
18059 top-left corner of the sensor active array.<wbr/></p>
18060 <p>Output streams use this rectangle to produce their output,<wbr/>
18061 cropping to a smaller region if necessary to maintain the
18062 stream's aspect ratio,<wbr/> then scaling the sensor input to
18063 match the output's configured resolution.<wbr/></p>
18064 <p>The crop region is applied after the RAW to other color
18065 space (e.<wbr/>g.<wbr/> YUV) conversion.<wbr/> Since raw streams
18066 (e.<wbr/>g.<wbr/> RAW16) don't have the conversion stage,<wbr/> they are not
18067 croppable.<wbr/> The crop region will be ignored by raw streams.<wbr/></p>
18068 <p>For non-raw streams,<wbr/> any additional per-stream cropping will
18069 be done to maximize the final pixel area of the stream.<wbr/></p>
18070 <p>For example,<wbr/> if the crop region is set to a 4:3 aspect
18071 ratio,<wbr/> then 4:3 streams will use the exact crop
18072 region.<wbr/> 16:9 streams will further crop vertically
18073 (letterbox).<wbr/></p>
18074 <p>Conversely,<wbr/> if the crop region is set to a 16:9,<wbr/> then 4:3
18075 outputs will crop horizontally (pillarbox),<wbr/> and 16:9
18076 streams will match exactly.<wbr/> These additional crops will
18077 be centered within the crop region.<wbr/></p>
18078 <p>The width and height of the crop region cannot
18079 be set to be smaller than
18080 <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
18081 <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>
18082 <p>The camera device may adjust the crop region to account
18083 for rounding and other hardware requirements; the final
18084 crop region used will be included in the output capture
18089 <tr class="entries_header">
18090 <th class="th_details" colspan="5">HAL Implementation Details</th>
18092 <tr class="entry_cont">
18093 <td class="entry_details" colspan="5">
18094 <p>The output streams must maintain square pixels at all
18095 times,<wbr/> no matter what the relative aspect ratios of the
18096 crop region and the stream are.<wbr/> Negative values for
18097 corner are allowed for raw output if full pixel array is
18098 larger than active pixel array.<wbr/> Width and height may be
18099 rounded to nearest larger supportable width,<wbr/> especially
18100 for raw output,<wbr/> where only a few fixed scales may be
18101 possible.<wbr/></p>
18102 <p>For a set of output streams configured,<wbr/> if the sensor output is cropped to a smaller
18103 size than active array size,<wbr/> the HAL need follow below cropping rules:</p>
18106 <p>The HAL need handle the cropRegion as if the sensor crop size is the effective active
18107 array size.<wbr/>More specifically,<wbr/> the HAL must transform the request cropRegion from
18108 <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>
18110 <li>Translate the requested cropRegion w.<wbr/>r.<wbr/>t.,<wbr/> the left top corner of the sensor
18111 cropped pixel area by (tx,<wbr/> ty),<wbr/>
18112 where <code>tx = sensorCrop.<wbr/>top * (sensorCrop.<wbr/>height /<wbr/> activeArraySize.<wbr/>height)</code>
18113 and <code>tx = sensorCrop.<wbr/>left * (sensorCrop.<wbr/>width /<wbr/> activeArraySize.<wbr/>width)</code>.<wbr/> The
18114 (sensorCrop.<wbr/>top,<wbr/> sensorCrop.<wbr/>left) is the coordinate based off the
18115 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></li>
18116 <li>Scale the width and height of requested cropRegion with scaling factor of
18117 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
18118 respectively.<wbr/>
18119 Once this new cropRegion is calculated,<wbr/> the HAL must use this region to crop the image
18120 with regard to the sensor crop size (effective active array size).<wbr/> The HAL still need
18121 follow the general cropping rule for this new cropRegion and effective active
18122 array size.<wbr/></li>
18126 <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/>
18127 The HAL need convert the new cropRegion generated above w.<wbr/>r.<wbr/>t.,<wbr/> full active array size.<wbr/>
18128 The reported cropRegion may be slightly different with the requested cropRegion since
18129 the HAL may adjust the crop region to account for rounding,<wbr/> conversion error,<wbr/> or other
18130 hardware limitations.<wbr/></p>
18133 <p>HAL2.<wbr/>x uses only (x,<wbr/> y,<wbr/> width)</p>
18137 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18138 <!-- end of entry -->
18142 <!-- end of kind -->
18145 <!-- end of section -->
18146 <tr><td colspan="6" id="section_sensor" class="section">sensor</td></tr>
18149 <tr><td colspan="6" class="kind">controls</td></tr>
18151 <thead class="entries_header">
18153 <th class="th_name">Property Name</th>
18154 <th class="th_type">Type</th>
18155 <th class="th_description">Description</th>
18156 <th class="th_units">Units</th>
18157 <th class="th_range">Range</th>
18158 <th class="th_tags">Tags</th>
18173 <tr class="entry" id="controls_android.sensor.exposureTime">
18174 <td class="entry_name
18176 android.<wbr/>sensor.<wbr/>exposure<wbr/>Time
18178 <td class="entry_type">
18179 <span class="entry_type_name">int64</span>
18181 <span class="entry_type_visibility"> [public]</span>
18184 <span class="entry_type_hwlevel">[full] </span>
18189 </td> <!-- entry_type -->
18191 <td class="entry_description">
18192 <p>Duration each pixel is exposed to
18196 <td class="entry_units">
18200 <td class="entry_range">
18201 <p><a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a></p>
18204 <td class="entry_tags">
18205 <ul class="entry_tags">
18206 <li><a href="#tag_V1">V1</a></li>
18211 <tr class="entries_header">
18212 <th class="th_details" colspan="5">Details</th>
18214 <tr class="entry_cont">
18215 <td class="entry_details" colspan="5">
18216 <p>If the sensor can't expose this exact duration,<wbr/> it will shorten the
18217 duration exposed to the nearest possible value (rather than expose longer).<wbr/>
18218 The final exposure time used will be available in the output capture result.<wbr/></p>
18219 <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
18220 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
18225 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18226 <!-- end of entry -->
18229 <tr class="entry" id="controls_android.sensor.frameDuration">
18230 <td class="entry_name
18232 android.<wbr/>sensor.<wbr/>frame<wbr/>Duration
18234 <td class="entry_type">
18235 <span class="entry_type_name">int64</span>
18237 <span class="entry_type_visibility"> [public]</span>
18240 <span class="entry_type_hwlevel">[full] </span>
18245 </td> <!-- entry_type -->
18247 <td class="entry_description">
18248 <p>Duration from start of frame exposure to
18249 start of next frame exposure.<wbr/></p>
18252 <td class="entry_units">
18256 <td class="entry_range">
18257 <p>See <a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a>,<wbr/>
18258 <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a>.<wbr/> The duration
18259 is capped to <code>max(duration,<wbr/> exposureTime + overhead)</code>.<wbr/></p>
18262 <td class="entry_tags">
18263 <ul class="entry_tags">
18264 <li><a href="#tag_V1">V1</a></li>
18269 <tr class="entries_header">
18270 <th class="th_details" colspan="5">Details</th>
18272 <tr class="entry_cont">
18273 <td class="entry_details" colspan="5">
18274 <p>The maximum frame rate that can be supported by a camera subsystem is
18275 a function of many factors:</p>
18277 <li>Requested resolutions of output image streams</li>
18278 <li>Availability of binning /<wbr/> skipping modes on the imager</li>
18279 <li>The bandwidth of the imager interface</li>
18280 <li>The bandwidth of the various ISP processing blocks</li>
18282 <p>Since these factors can vary greatly between different ISPs and
18283 sensors,<wbr/> the camera abstraction tries to represent the bandwidth
18284 restrictions with as simple a model as possible.<wbr/></p>
18285 <p>The model presented has the following characteristics:</p>
18287 <li>The image sensor is always configured to output the smallest
18288 resolution possible given the application's requested output stream
18289 sizes.<wbr/> The smallest resolution is defined as being at least as large
18290 as the largest requested output stream size; the camera pipeline must
18291 never digitally upsample sensor data when the crop region covers the
18292 whole sensor.<wbr/> In general,<wbr/> this means that if only small output stream
18293 resolutions are configured,<wbr/> the sensor can provide a higher frame
18295 <li>Since any request may use any or all the currently configured
18296 output streams,<wbr/> the sensor and ISP must be configured to support
18297 scaling a single capture to all the streams at the same time.<wbr/> This
18298 means the camera pipeline must be ready to produce the largest
18299 requested output size without any delay.<wbr/> Therefore,<wbr/> the overall
18300 frame rate of a given configured stream set is governed only by the
18301 largest requested stream resolution.<wbr/></li>
18302 <li>Using more than one output stream in a request does not affect the
18303 frame duration.<wbr/></li>
18304 <li>Certain format-streams may need to do additional background processing
18305 before data is consumed/<wbr/>produced by that stream.<wbr/> These processors
18306 can run concurrently to the rest of the camera pipeline,<wbr/> but
18307 cannot process more than 1 capture at a time.<wbr/></li>
18309 <p>The necessary information for the application,<wbr/> given the model above,<wbr/>
18310 is provided via the <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> field using
18311 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>.<wbr/>
18312 These are used to determine the maximum frame rate /<wbr/> minimum frame
18313 duration that is possible for a given stream configuration.<wbr/></p>
18314 <p>Specifically,<wbr/> the application can use the following rules to
18315 determine the minimum frame duration it can request from the camera
18318 <li>Let the set of currently configured input/<wbr/>output streams
18319 be called <code>S</code>.<wbr/></li>
18320 <li>Find the minimum frame durations for each stream in <code>S</code>,<wbr/> by looking
18321 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>
18322 (with its respective size/<wbr/>format).<wbr/> Let this set of frame durations be
18323 called <code>F</code>.<wbr/></li>
18324 <li>For any given request <code>R</code>,<wbr/> the minimum frame duration allowed
18325 for <code>R</code> is the maximum out of all values in <code>F</code>.<wbr/> Let the streams
18326 used in <code>R</code> be called <code>S_<wbr/>r</code>.<wbr/></li>
18328 <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>
18329 using its respective size/<wbr/>format),<wbr/> then the frame duration in <code>F</code>
18330 determines the steady state frame rate that the application will get
18331 if it uses <code>R</code> as a repeating request.<wbr/> Let this special kind of
18332 request be called <code>Rsimple</code>.<wbr/></p>
18333 <p>A repeating request <code>Rsimple</code> can be <em>occasionally</em> interleaved
18334 by a single capture of a new request <code>Rstall</code> (which has at least
18335 one in-use stream with a non-0 stall time) and if <code>Rstall</code> has the
18336 same minimum frame duration this will not cause a frame rate loss
18337 if all buffers from the previous <code>Rstall</code> have already been
18338 delivered.<wbr/></p>
18339 <p>For more details about stalling,<wbr/> see
18340 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a>.<wbr/></p>
18341 <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
18342 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
18346 <tr class="entries_header">
18347 <th class="th_details" colspan="5">HAL Implementation Details</th>
18349 <tr class="entry_cont">
18350 <td class="entry_details" colspan="5">
18351 <p>For more details about stalling,<wbr/> see
18352 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a>.<wbr/></p>
18356 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18357 <!-- end of entry -->
18360 <tr class="entry" id="controls_android.sensor.sensitivity">
18361 <td class="entry_name
18363 android.<wbr/>sensor.<wbr/>sensitivity
18365 <td class="entry_type">
18366 <span class="entry_type_name">int32</span>
18368 <span class="entry_type_visibility"> [public]</span>
18371 <span class="entry_type_hwlevel">[full] </span>
18376 </td> <!-- entry_type -->
18378 <td class="entry_description">
18379 <p>The amount of gain applied to sensor data
18380 before processing.<wbr/></p>
18383 <td class="entry_units">
18384 ISO arithmetic units
18387 <td class="entry_range">
18388 <p><a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a></p>
18391 <td class="entry_tags">
18392 <ul class="entry_tags">
18393 <li><a href="#tag_V1">V1</a></li>
18398 <tr class="entries_header">
18399 <th class="th_details" colspan="5">Details</th>
18401 <tr class="entry_cont">
18402 <td class="entry_details" colspan="5">
18403 <p>The sensitivity is the standard ISO sensitivity value,<wbr/>
18404 as defined in ISO 12232:2006.<wbr/></p>
18405 <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
18406 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
18407 is guaranteed to use only analog amplification for applying the gain.<wbr/></p>
18408 <p>If the camera device cannot apply the exact sensitivity
18409 requested,<wbr/> it will reduce the gain to the nearest supported
18410 value.<wbr/> The final sensitivity used will be available in the
18411 output capture result.<wbr/></p>
18412 <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
18413 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
18417 <tr class="entries_header">
18418 <th class="th_details" colspan="5">HAL Implementation Details</th>
18420 <tr class="entry_cont">
18421 <td class="entry_details" colspan="5">
18422 <p>ISO 12232:2006 REI method is acceptable.<wbr/></p>
18426 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18427 <!-- end of entry -->
18430 <tr class="entry" id="controls_android.sensor.testPatternData">
18431 <td class="entry_name
18433 android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data
18435 <td class="entry_type">
18436 <span class="entry_type_name">int32</span>
18437 <span class="entry_type_container">x</span>
18439 <span class="entry_type_array">
18442 <span class="entry_type_visibility"> [public]</span>
18449 </td> <!-- entry_type -->
18451 <td class="entry_description">
18452 <p>A pixel <code>[R,<wbr/> G_<wbr/>even,<wbr/> G_<wbr/>odd,<wbr/> B]</code> that supplies the test pattern
18453 when <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a> is SOLID_<wbr/>COLOR.<wbr/></p>
18456 <td class="entry_units">
18459 <td class="entry_range">
18462 <td class="entry_tags">
18466 <tr class="entries_header">
18467 <th class="th_details" colspan="5">Details</th>
18469 <tr class="entry_cont">
18470 <td class="entry_details" colspan="5">
18471 <p>Each color channel is treated as an unsigned 32-bit integer.<wbr/>
18472 The camera device then uses the most significant X bits
18473 that correspond to how many bits are in its Bayer raw sensor
18475 <p>For example,<wbr/> a sensor with RAW10 Bayer output would use the
18476 10 most significant bits from each color channel.<wbr/></p>
18480 <tr class="entries_header">
18481 <th class="th_details" colspan="5">HAL Implementation Details</th>
18483 <tr class="entry_cont">
18484 <td class="entry_details" colspan="5">
18489 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18490 <!-- end of entry -->
18493 <tr class="entry" id="controls_android.sensor.testPatternMode">
18494 <td class="entry_name
18496 android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode
18498 <td class="entry_type">
18499 <span class="entry_type_name entry_type_name_enum">int32</span>
18501 <span class="entry_type_visibility"> [public]</span>
18507 <ul class="entry_type_enum">
18509 <span class="entry_type_enum_name">OFF</span>
18510 <span class="entry_type_enum_notes"><p>No test pattern mode is used,<wbr/> and the camera
18511 device returns captures from the image sensor.<wbr/></p>
18512 <p>This is the default if the key is not set.<wbr/></p></span>
18515 <span class="entry_type_enum_name">SOLID_COLOR</span>
18516 <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
18517 respective color channel provided in
18518 <a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a>.<wbr/></p>
18519 <p>For example:</p>
18520 <pre><code>android.<wbr/>testPatternData = [0,<wbr/> 0xFFFFFFFF,<wbr/> 0xFFFFFFFF,<wbr/> 0]
18522 <p>All green pixels are 100% green.<wbr/> All red/<wbr/>blue pixels are black.<wbr/></p>
18523 <pre><code>android.<wbr/>testPatternData = [0xFFFFFFFF,<wbr/> 0,<wbr/> 0xFFFFFFFF,<wbr/> 0]
18525 <p>All red pixels are 100% red.<wbr/> Only the odd green pixels
18526 are 100% green.<wbr/> All blue pixels are 100% black.<wbr/></p></span>
18529 <span class="entry_type_enum_name">COLOR_BARS</span>
18530 <span class="entry_type_enum_notes"><p>All pixel data is replaced with an 8-bar color pattern.<wbr/></p>
18531 <p>The vertical bars (left-to-right) are as follows:</p>
18533 <li>100% white</li>
18542 <p>In general the image would look like the following:</p>
18543 <pre><code>W Y C G M R B K
18548 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
18549 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
18550 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
18552 (B = Blue,<wbr/> K = Black)
18554 <p>Each bar should take up 1/<wbr/>8 of the sensor pixel array width.<wbr/>
18555 When this is not possible,<wbr/> the bar size should be rounded
18556 down to the nearest integer and the pattern can repeat
18557 on the right side.<wbr/></p>
18558 <p>Each bar's height must always take up the full sensor
18559 pixel array height.<wbr/></p>
18560 <p>Each pixel in this test pattern must be set to either
18561 0% intensity or 100% intensity.<wbr/></p></span>
18564 <span class="entry_type_enum_name">COLOR_BARS_FADE_TO_GRAY</span>
18565 <span class="entry_type_enum_notes"><p>The test pattern is similar to COLOR_<wbr/>BARS,<wbr/> except that
18566 each bar should start at its specified color at the top,<wbr/>
18567 and fade to gray at the bottom.<wbr/></p>
18568 <p>Furthermore each bar is further subdivided into a left and
18569 right half.<wbr/> The left half should have a smooth gradient,<wbr/>
18570 and the right half should have a quantized gradient.<wbr/></p>
18571 <p>In particular,<wbr/> the right half's should consist of blocks of the
18572 same color for 1/<wbr/>16th active sensor pixel array width.<wbr/></p>
18573 <p>The least significant bits in the quantized gradient should
18574 be copied from the most significant bits of the smooth gradient.<wbr/></p>
18575 <p>The height of each bar should always be a multiple of 128.<wbr/>
18576 When this is not the case,<wbr/> the pattern should repeat at the bottom
18577 of the image.<wbr/></p></span>
18580 <span class="entry_type_enum_name">PN9</span>
18581 <span class="entry_type_enum_notes"><p>All pixel data is replaced by a pseudo-random sequence
18582 generated from a PN9 512-bit sequence (typically implemented
18583 in hardware with a linear feedback shift register).<wbr/></p>
18584 <p>The generator should be reset at the beginning of each frame,<wbr/>
18585 and thus each subsequent raw frame with this test pattern should
18586 be exactly the same as the last.<wbr/></p></span>
18589 <span class="entry_type_enum_name">CUSTOM1</span>
18590 <span class="entry_type_enum_value">256</span>
18591 <span class="entry_type_enum_notes"><p>The first custom test pattern.<wbr/> All custom patterns that are
18592 available only on this camera device are at least this numeric
18594 <p>All of the custom test patterns will be static
18595 (that is the raw image must not vary from frame to frame).<wbr/></p></span>
18599 </td> <!-- entry_type -->
18601 <td class="entry_description">
18602 <p>When enabled,<wbr/> the sensor sends a test pattern instead of
18603 doing a real exposure from the camera.<wbr/></p>
18606 <td class="entry_units">
18609 <td class="entry_range">
18610 <p><a href="#static_android.sensor.availableTestPatternModes">android.<wbr/>sensor.<wbr/>available<wbr/>Test<wbr/>Pattern<wbr/>Modes</a></p>
18613 <td class="entry_tags">
18617 <tr class="entries_header">
18618 <th class="th_details" colspan="5">Details</th>
18620 <tr class="entry_cont">
18621 <td class="entry_details" colspan="5">
18622 <p>When a test pattern is enabled,<wbr/> all manual sensor controls specified
18623 by android.<wbr/>sensor.<wbr/>* will be ignored.<wbr/> All other controls should
18624 work as normal.<wbr/></p>
18625 <p>For example,<wbr/> if manual flash is enabled,<wbr/> flash firing should still
18626 occur (and that the test pattern remain unmodified,<wbr/> since the flash
18627 would not actually affect it).<wbr/></p>
18628 <p>Defaults to OFF.<wbr/></p>
18632 <tr class="entries_header">
18633 <th class="th_details" colspan="5">HAL Implementation Details</th>
18635 <tr class="entry_cont">
18636 <td class="entry_details" colspan="5">
18637 <p>All test patterns are specified in the Bayer domain.<wbr/></p>
18638 <p>The HAL may choose to substitute test patterns from the sensor
18639 with test patterns from on-device memory.<wbr/> In that case,<wbr/> it should be
18640 indistinguishable to the ISP whether the data came from the
18641 sensor interconnect bus (such as CSI2) or memory.<wbr/></p>
18645 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18646 <!-- end of entry -->
18650 <!-- end of kind -->
18652 <tr><td colspan="6" class="kind">static</td></tr>
18654 <thead class="entries_header">
18656 <th class="th_name">Property Name</th>
18657 <th class="th_type">Type</th>
18658 <th class="th_description">Description</th>
18659 <th class="th_units">Units</th>
18660 <th class="th_range">Range</th>
18661 <th class="th_tags">Tags</th>
18678 <tr class="entry" id="static_android.sensor.info.activeArraySize">
18679 <td class="entry_name
18681 android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
18683 <td class="entry_type">
18684 <span class="entry_type_name">int32</span>
18685 <span class="entry_type_container">x</span>
18687 <span class="entry_type_array">
18690 <span class="entry_type_visibility"> [public as rectangle]</span>
18693 <span class="entry_type_hwlevel">[legacy] </span>
18696 <div class="entry_type_notes">Four ints defining the active pixel rectangle</div>
18699 </td> <!-- entry_type -->
18701 <td class="entry_description">
18702 <p>The area of the image sensor which corresponds to active pixels after any geometric
18703 distortion correction has been applied.<wbr/></p>
18706 <td class="entry_units">
18707 Pixel coordinates on the image sensor
18710 <td class="entry_range">
18713 <td class="entry_tags">
18714 <ul class="entry_tags">
18715 <li><a href="#tag_RAW">RAW</a></li>
18720 <tr class="entries_header">
18721 <th class="th_details" colspan="5">Details</th>
18723 <tr class="entry_cont">
18724 <td class="entry_details" colspan="5">
18725 <p>This is the rectangle representing the size of the active region of the sensor (i.<wbr/>e.<wbr/>
18726 the region that actually receives light from the scene) after any geometric correction
18727 has been applied,<wbr/> and should be treated as the maximum size in pixels of any of the
18728 image output formats aside from the raw formats.<wbr/></p>
18729 <p>This rectangle is defined relative to the full pixel array; (0,<wbr/>0) is the top-left of
18730 the full pixel array,<wbr/> and the size of the full pixel array is given by
18731 <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
18732 <p>The coordinate system for most other keys that list pixel coordinates,<wbr/> including
18733 <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
18734 this field,<wbr/> with <code>(0,<wbr/> 0)</code> being the top-left of this rectangle.<wbr/></p>
18735 <p>The active array may be smaller than the full pixel array,<wbr/> since the full array may
18736 include black calibration pixels or other inactive regions,<wbr/> and geometric correction
18737 resulting in scaling or cropping may have been applied.<wbr/></p>
18741 <tr class="entries_header">
18742 <th class="th_details" colspan="5">HAL Implementation Details</th>
18744 <tr class="entry_cont">
18745 <td class="entry_details" colspan="5">
18746 <p>This array contains <code>(xmin,<wbr/> ymin,<wbr/> width,<wbr/> height)</code>.<wbr/> The <code>(xmin,<wbr/> ymin)</code> must be
18747 >= <code>(0,<wbr/>0)</code>.<wbr/>
18748 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>
18752 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18753 <!-- end of entry -->
18756 <tr class="entry" id="static_android.sensor.info.sensitivityRange">
18757 <td class="entry_name
18759 android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range
18761 <td class="entry_type">
18762 <span class="entry_type_name">int32</span>
18763 <span class="entry_type_container">x</span>
18765 <span class="entry_type_array">
18768 <span class="entry_type_visibility"> [public as rangeInt]</span>
18771 <span class="entry_type_hwlevel">[full] </span>
18774 <div class="entry_type_notes">Range of supported sensitivities</div>
18777 </td> <!-- entry_type -->
18779 <td class="entry_description">
18780 <p>Range of sensitivities for <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> supported by this
18781 camera device.<wbr/></p>
18784 <td class="entry_units">
18787 <td class="entry_range">
18788 <p>Min <= 100,<wbr/> Max >= 800</p>
18791 <td class="entry_tags">
18792 <ul class="entry_tags">
18793 <li><a href="#tag_BC">BC</a></li>
18794 <li><a href="#tag_V1">V1</a></li>
18799 <tr class="entries_header">
18800 <th class="th_details" colspan="5">Details</th>
18802 <tr class="entry_cont">
18803 <td class="entry_details" colspan="5">
18804 <p>The values are the standard ISO sensitivity values,<wbr/>
18805 as defined in ISO 12232:2006.<wbr/></p>
18810 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18811 <!-- end of entry -->
18814 <tr class="entry" id="static_android.sensor.info.colorFilterArrangement">
18815 <td class="entry_name
18817 android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement
18819 <td class="entry_type">
18820 <span class="entry_type_name entry_type_name_enum">byte</span>
18822 <span class="entry_type_visibility"> [public]</span>
18825 <span class="entry_type_hwlevel">[full] </span>
18829 <ul class="entry_type_enum">
18831 <span class="entry_type_enum_name">RGGB</span>
18834 <span class="entry_type_enum_name">GRBG</span>
18837 <span class="entry_type_enum_name">GBRG</span>
18840 <span class="entry_type_enum_name">BGGR</span>
18843 <span class="entry_type_enum_name">RGB</span>
18844 <span class="entry_type_enum_notes"><p>Sensor is not Bayer; output has 3 16-bit
18845 values for each pixel,<wbr/> instead of just 1 16-bit value
18846 per pixel.<wbr/></p></span>
18850 </td> <!-- entry_type -->
18852 <td class="entry_description">
18853 <p>The arrangement of color filters on sensor;
18854 represents the colors in the top-left 2x2 section of
18855 the sensor,<wbr/> in reading order.<wbr/></p>
18858 <td class="entry_units">
18861 <td class="entry_range">
18864 <td class="entry_tags">
18865 <ul class="entry_tags">
18866 <li><a href="#tag_RAW">RAW</a></li>
18873 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18874 <!-- end of entry -->
18877 <tr class="entry" id="static_android.sensor.info.exposureTimeRange">
18878 <td class="entry_name
18880 android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range
18882 <td class="entry_type">
18883 <span class="entry_type_name">int64</span>
18884 <span class="entry_type_container">x</span>
18886 <span class="entry_type_array">
18889 <span class="entry_type_visibility"> [public as rangeLong]</span>
18892 <span class="entry_type_hwlevel">[full] </span>
18895 <div class="entry_type_notes">nanoseconds</div>
18898 </td> <!-- entry_type -->
18900 <td class="entry_description">
18901 <p>The range of image exposure times for <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a> supported
18902 by this camera device.<wbr/></p>
18905 <td class="entry_units">
18909 <td class="entry_range">
18910 <p>The minimum exposure time will be less than 100 us.<wbr/> For FULL
18911 capability devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/>
18912 the maximum exposure time will be greater than 100ms.<wbr/></p>
18915 <td class="entry_tags">
18916 <ul class="entry_tags">
18917 <li><a href="#tag_V1">V1</a></li>
18923 <tr class="entries_header">
18924 <th class="th_details" colspan="5">HAL Implementation Details</th>
18926 <tr class="entry_cont">
18927 <td class="entry_details" colspan="5">
18928 <p>For FULL capability devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/>
18929 The maximum of the range SHOULD be at least 1 second (1e9),<wbr/> MUST be at least
18934 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
18935 <!-- end of entry -->
18938 <tr class="entry" id="static_android.sensor.info.maxFrameDuration">
18939 <td class="entry_name
18941 android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration
18943 <td class="entry_type">
18944 <span class="entry_type_name">int64</span>
18946 <span class="entry_type_visibility"> [public]</span>
18949 <span class="entry_type_hwlevel">[full] </span>
18954 </td> <!-- entry_type -->
18956 <td class="entry_description">
18957 <p>The maximum possible frame duration (minimum frame rate) for
18958 <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> that is supported this camera device.<wbr/></p>
18961 <td class="entry_units">
18965 <td class="entry_range">
18966 <p>For FULL capability devices
18967 (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/> at least 100ms.<wbr/></p>
18970 <td class="entry_tags">
18971 <ul class="entry_tags">
18972 <li><a href="#tag_V1">V1</a></li>
18977 <tr class="entries_header">
18978 <th class="th_details" colspan="5">Details</th>
18980 <tr class="entry_cont">
18981 <td class="entry_details" colspan="5">
18982 <p>Attempting to use frame durations beyond the maximum will result in the frame
18983 duration being clipped to the maximum.<wbr/> See that control for a full definition of frame
18984 durations.<wbr/></p>
18985 <p>Refer to <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>
18986 for the minimum frame duration values.<wbr/></p>
18990 <tr class="entries_header">
18991 <th class="th_details" colspan="5">HAL Implementation Details</th>
18993 <tr class="entry_cont">
18994 <td class="entry_details" colspan="5">
18995 <p>For FULL capability devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/>
18996 The maximum of the range SHOULD be at least
18997 1 second (1e9),<wbr/> MUST be at least 100ms (100e6).<wbr/></p>
18998 <p><a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a> must be greater or
18999 equal to the <a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a> max
19000 value (since exposure time overrides frame duration).<wbr/></p>
19001 <p>Available minimum frame durations for JPEG must be no greater
19002 than that of the YUV_<wbr/>420_<wbr/>888/<wbr/>IMPLEMENTATION_<wbr/>DEFINED
19003 minimum frame durations (for that respective size).<wbr/></p>
19004 <p>Since JPEG processing is considered offline and can take longer than
19005 a single uncompressed capture,<wbr/> refer to
19006 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a>
19007 for details about encoding this scenario.<wbr/></p>
19011 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19012 <!-- end of entry -->
19015 <tr class="entry" id="static_android.sensor.info.physicalSize">
19016 <td class="entry_name
19018 android.<wbr/>sensor.<wbr/>info.<wbr/>physical<wbr/>Size
19020 <td class="entry_type">
19021 <span class="entry_type_name">float</span>
19022 <span class="entry_type_container">x</span>
19024 <span class="entry_type_array">
19027 <span class="entry_type_visibility"> [public as sizeF]</span>
19030 <span class="entry_type_hwlevel">[legacy] </span>
19033 <div class="entry_type_notes">width x height</div>
19036 </td> <!-- entry_type -->
19038 <td class="entry_description">
19039 <p>The physical dimensions of the full pixel
19043 <td class="entry_units">
19047 <td class="entry_range">
19050 <td class="entry_tags">
19051 <ul class="entry_tags">
19052 <li><a href="#tag_V1">V1</a></li>
19053 <li><a href="#tag_BC">BC</a></li>
19058 <tr class="entries_header">
19059 <th class="th_details" colspan="5">Details</th>
19061 <tr class="entry_cont">
19062 <td class="entry_details" colspan="5">
19063 <p>This is the physical size of the sensor pixel
19064 array defined by <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
19068 <tr class="entries_header">
19069 <th class="th_details" colspan="5">HAL Implementation Details</th>
19071 <tr class="entry_cont">
19072 <td class="entry_details" colspan="5">
19073 <p>Needed for FOV calculation for old API</p>
19077 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19078 <!-- end of entry -->
19081 <tr class="entry" id="static_android.sensor.info.pixelArraySize">
19082 <td class="entry_name
19084 android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size
19086 <td class="entry_type">
19087 <span class="entry_type_name">int32</span>
19088 <span class="entry_type_container">x</span>
19090 <span class="entry_type_array">
19093 <span class="entry_type_visibility"> [public as size]</span>
19096 <span class="entry_type_hwlevel">[legacy] </span>
19101 </td> <!-- entry_type -->
19103 <td class="entry_description">
19104 <p>Dimensions of the full pixel array,<wbr/> possibly
19105 including black calibration pixels.<wbr/></p>
19108 <td class="entry_units">
19112 <td class="entry_range">
19115 <td class="entry_tags">
19116 <ul class="entry_tags">
19117 <li><a href="#tag_RAW">RAW</a></li>
19118 <li><a href="#tag_BC">BC</a></li>
19123 <tr class="entries_header">
19124 <th class="th_details" colspan="5">Details</th>
19126 <tr class="entry_cont">
19127 <td class="entry_details" colspan="5">
19128 <p>The pixel count of the full pixel array of the image sensor,<wbr/> which covers
19129 <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
19130 the raw buffers produced by this sensor.<wbr/></p>
19131 <p>If a camera device supports raw sensor formats,<wbr/> either this or
19132 <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
19133 output formats listed in <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> (this depends on
19134 whether or not the image sensor returns buffers containing pixels that are not
19135 part of the active array region for blacklevel calibration or other purposes).<wbr/></p>
19136 <p>Some parts of the full pixel array may not receive light from the scene,<wbr/>
19137 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
19138 defines the rectangle of active pixels that will be included in processed image
19144 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19145 <!-- end of entry -->
19148 <tr class="entry" id="static_android.sensor.info.whiteLevel">
19149 <td class="entry_name
19151 android.<wbr/>sensor.<wbr/>info.<wbr/>white<wbr/>Level
19153 <td class="entry_type">
19154 <span class="entry_type_name">int32</span>
19156 <span class="entry_type_visibility"> [public]</span>
19163 </td> <!-- entry_type -->
19165 <td class="entry_description">
19166 <p>Maximum raw value output by sensor.<wbr/></p>
19169 <td class="entry_units">
19172 <td class="entry_range">
19173 <p>> 255 (8-bit output)</p>
19176 <td class="entry_tags">
19177 <ul class="entry_tags">
19178 <li><a href="#tag_RAW">RAW</a></li>
19183 <tr class="entries_header">
19184 <th class="th_details" colspan="5">Details</th>
19186 <tr class="entry_cont">
19187 <td class="entry_details" colspan="5">
19188 <p>This specifies the fully-saturated encoding level for the raw
19189 sample values from the sensor.<wbr/> This is typically caused by the
19190 sensor becoming highly non-linear or clipping.<wbr/> The minimum for
19191 each channel is specified by the offset in the
19192 <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> key.<wbr/></p>
19193 <p>The white level is typically determined either by sensor bit depth
19194 (8-14 bits is expected),<wbr/> or by the point where the sensor response
19195 becomes too non-linear to be useful.<wbr/> The default value for this is
19196 maximum representable value for a 16-bit raw sample (2^16 - 1).<wbr/></p>
19197 <p>The white level values of captured images may vary for different
19198 capture settings (e.<wbr/>g.,<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>).<wbr/> This key
19199 represents a coarse approximation for such case.<wbr/> It is recommended
19200 to use <a href="#dynamic_android.sensor.dynamicWhiteLevel">android.<wbr/>sensor.<wbr/>dynamic<wbr/>White<wbr/>Level</a> for captures when supported
19201 by the camera device,<wbr/> which provides more accurate white level values.<wbr/></p>
19205 <tr class="entries_header">
19206 <th class="th_details" colspan="5">HAL Implementation Details</th>
19208 <tr class="entry_cont">
19209 <td class="entry_details" colspan="5">
19210 <p>The full bit depth of the sensor must be available in the raw data,<wbr/>
19211 so the value for linear sensors should not be significantly lower
19212 than maximum raw value supported,<wbr/> i.<wbr/>e.<wbr/> 2^(sensor bits per pixel).<wbr/></p>
19216 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19217 <!-- end of entry -->
19220 <tr class="entry" id="static_android.sensor.info.timestampSource">
19221 <td class="entry_name
19223 android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source
19225 <td class="entry_type">
19226 <span class="entry_type_name entry_type_name_enum">byte</span>
19228 <span class="entry_type_visibility"> [public]</span>
19231 <span class="entry_type_hwlevel">[legacy] </span>
19235 <ul class="entry_type_enum">
19237 <span class="entry_type_enum_name">UNKNOWN</span>
19238 <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/>
19239 but can not be compared to timestamps from other subsystems
19240 (e.<wbr/>g.<wbr/> accelerometer,<wbr/> gyro etc.<wbr/>),<wbr/> or other instances of the same or different
19241 camera devices in the same system.<wbr/> Timestamps between streams and results for
19242 a single camera instance are comparable,<wbr/> and the timestamps for all buffers
19243 and the result metadata generated by a single capture are identical.<wbr/></p></span>
19246 <span class="entry_type_enum_name">REALTIME</span>
19247 <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
19248 <a href="https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtimeNanos">SystemClock#elapsedRealtimeNanos</a>,<wbr/>
19249 and they can be compared to other timestamps using that base.<wbr/></p></span>
19253 </td> <!-- entry_type -->
19255 <td class="entry_description">
19256 <p>The time base source for sensor capture start timestamps.<wbr/></p>
19259 <td class="entry_units">
19262 <td class="entry_range">
19265 <td class="entry_tags">
19266 <ul class="entry_tags">
19267 <li><a href="#tag_V1">V1</a></li>
19272 <tr class="entries_header">
19273 <th class="th_details" colspan="5">Details</th>
19275 <tr class="entry_cont">
19276 <td class="entry_details" colspan="5">
19277 <p>The timestamps provided for captures are always in nanoseconds and monotonic,<wbr/> but
19278 may not based on a time source that can be compared to other system time sources.<wbr/></p>
19279 <p>This characteristic defines the source for the timestamps,<wbr/> and therefore whether they
19280 can be compared against other system time sources/<wbr/>timestamps.<wbr/></p>
19284 <tr class="entries_header">
19285 <th class="th_details" colspan="5">HAL Implementation Details</th>
19287 <tr class="entry_cont">
19288 <td class="entry_details" colspan="5">
19289 <p>For camera devices implement UNKNOWN,<wbr/> the camera framework expects that the timestamp
19290 source to be SYSTEM_<wbr/>TIME_<wbr/>MONOTONIC.<wbr/> For camera devices implement REALTIME,<wbr/> the camera
19291 framework expects that the timestamp source to be SYSTEM_<wbr/>TIME_<wbr/>BOOTTIME.<wbr/> See
19292 system/<wbr/>core/<wbr/>include/<wbr/>utils/<wbr/>Timers.<wbr/>h for the definition of SYSTEM_<wbr/>TIME_<wbr/>MONOTONIC and
19293 SYSTEM_<wbr/>TIME_<wbr/>BOOTTIME.<wbr/> Note that HAL must follow above expectation; otherwise video
19294 recording might suffer unexpected behavior.<wbr/></p>
19295 <p>Also,<wbr/> camera devices implements REALTIME must pass the ITS sensor fusion test which
19296 tests the alignment between camera timestamps and gyro sensor timestamps.<wbr/></p>
19300 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19301 <!-- end of entry -->
19304 <tr class="entry" id="static_android.sensor.info.lensShadingApplied">
19305 <td class="entry_name
19307 android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied
19309 <td class="entry_type">
19310 <span class="entry_type_name entry_type_name_enum">byte</span>
19312 <span class="entry_type_visibility"> [public as boolean]</span>
19318 <ul class="entry_type_enum">
19320 <span class="entry_type_enum_name">FALSE</span>
19323 <span class="entry_type_enum_name">TRUE</span>
19327 </td> <!-- entry_type -->
19329 <td class="entry_description">
19330 <p>Whether the RAW images output from this camera device are subject to
19331 lens shading correction.<wbr/></p>
19334 <td class="entry_units">
19337 <td class="entry_range">
19340 <td class="entry_tags">
19344 <tr class="entries_header">
19345 <th class="th_details" colspan="5">Details</th>
19347 <tr class="entry_cont">
19348 <td class="entry_details" colspan="5">
19349 <p>If TRUE,<wbr/> all images produced by the camera device in the RAW image formats will
19350 have lens shading correction already applied to it.<wbr/> If FALSE,<wbr/> the images will
19351 not be adjusted for lens shading correction.<wbr/>
19352 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>
19353 <p>This key will be <code>null</code> for all devices do not report this information.<wbr/>
19354 Devices with RAW capability will always report this information in this key.<wbr/></p>
19359 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19360 <!-- end of entry -->
19363 <tr class="entry" id="static_android.sensor.info.preCorrectionActiveArraySize">
19364 <td class="entry_name
19366 android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size
19368 <td class="entry_type">
19369 <span class="entry_type_name">int32</span>
19370 <span class="entry_type_container">x</span>
19372 <span class="entry_type_array">
19375 <span class="entry_type_visibility"> [public as rectangle]</span>
19378 <span class="entry_type_hwlevel">[legacy] </span>
19381 <div class="entry_type_notes">Four ints defining the active pixel rectangle</div>
19384 </td> <!-- entry_type -->
19386 <td class="entry_description">
19387 <p>The area of the image sensor which corresponds to active pixels prior to the
19388 application of any geometric distortion correction.<wbr/></p>
19391 <td class="entry_units">
19392 Pixel coordinates on the image sensor
19395 <td class="entry_range">
19398 <td class="entry_tags">
19399 <ul class="entry_tags">
19400 <li><a href="#tag_RAW">RAW</a></li>
19405 <tr class="entries_header">
19406 <th class="th_details" colspan="5">Details</th>
19408 <tr class="entry_cont">
19409 <td class="entry_details" colspan="5">
19410 <p>This is the rectangle representing the size of the active region of the sensor (i.<wbr/>e.<wbr/>
19411 the region that actually receives light from the scene) before any geometric correction
19412 has been applied,<wbr/> and should be treated as the active region rectangle for any of the
19413 raw formats.<wbr/> All metadata associated with raw processing (e.<wbr/>g.<wbr/> the lens shading
19414 correction map,<wbr/> and radial distortion fields) treats the top,<wbr/> left of this rectangle as
19415 the origin,<wbr/> (0,<wbr/>0).<wbr/></p>
19416 <p>The size of this region determines the maximum field of view and the maximum number of
19417 pixels that an image from this sensor can contain,<wbr/> prior to the application of
19418 geometric distortion correction.<wbr/> The effective maximum pixel dimensions of a
19419 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>
19420 field,<wbr/> and the effective maximum field of view for a post-distortion-corrected image
19421 can be calculated by applying the geometric distortion correction fields to this
19422 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>
19423 <p>E.<wbr/>g.<wbr/> to calculate position of a pixel,<wbr/> (x,<wbr/>y),<wbr/> in a processed YUV output image with the
19424 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/>
19425 (x',<wbr/> y'),<wbr/> in the raw pixel array with dimensions give in
19426 <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>:</p>
19428 <li>Choose a pixel (x',<wbr/> y') within the active array region of the raw buffer given in
19429 <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
19430 to be outside of the FOV,<wbr/> and will not be shown in the processed output image.<wbr/></li>
19431 <li>Apply geometric distortion correction to get the post-distortion pixel coordinate,<wbr/>
19432 (x_<wbr/>i,<wbr/> y_<wbr/>i).<wbr/> When applying geometric correction metadata,<wbr/> note that metadata for raw
19433 buffers is defined relative to the top,<wbr/> left of the
19434 <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>
19435 <li>If the resulting corrected pixel coordinate is within the region given in
19436 <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
19437 processed output image buffer is <code>(x_<wbr/>i - activeArray.<wbr/>left,<wbr/> y_<wbr/>i - activeArray.<wbr/>top)</code>,<wbr/>
19438 when the top,<wbr/> left coordinate of that buffer is treated as (0,<wbr/> 0).<wbr/></li>
19440 <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>
19441 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/>
19442 <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
19443 correction doesn't change the pixel coordinate,<wbr/> the resulting pixel selected in
19444 pixel coordinates would be x,<wbr/>y = (25,<wbr/> 25) relative to the top,<wbr/>left of the raw buffer
19445 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)
19446 relative to the top,<wbr/>left of post-processed YUV output buffer with dimensions given in
19447 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
19448 <p>The currently supported fields that correct for geometric distortion are:</p>
19450 <li><a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a>.<wbr/></li>
19452 <p>If all of the geometric distortion fields are no-ops,<wbr/> this rectangle will be the same
19453 as the post-distortion-corrected rectangle given in
19454 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
19455 <p>This rectangle is defined relative to the full pixel array; (0,<wbr/>0) is the top-left of
19456 the full pixel array,<wbr/> and the size of the full pixel array is given by
19457 <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
19458 <p>The pre-correction active array may be smaller than the full pixel array,<wbr/> since the
19459 full array may include black calibration pixels or other inactive regions.<wbr/></p>
19463 <tr class="entries_header">
19464 <th class="th_details" colspan="5">HAL Implementation Details</th>
19466 <tr class="entry_cont">
19467 <td class="entry_details" colspan="5">
19468 <p>This array contains <code>(xmin,<wbr/> ymin,<wbr/> width,<wbr/> height)</code>.<wbr/> The <code>(xmin,<wbr/> ymin)</code> must be
19469 >= <code>(0,<wbr/>0)</code>.<wbr/>
19470 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>
19471 <p>If omitted by the HAL implementation,<wbr/> the camera framework will assume that this is
19472 the same as the post-correction active array region given in
19473 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
19477 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19478 <!-- end of entry -->
19484 <tr class="entry" id="static_android.sensor.referenceIlluminant1">
19485 <td class="entry_name
19487 android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1
19489 <td class="entry_type">
19490 <span class="entry_type_name entry_type_name_enum">byte</span>
19492 <span class="entry_type_visibility"> [public]</span>
19498 <ul class="entry_type_enum">
19500 <span class="entry_type_enum_name">DAYLIGHT</span>
19501 <span class="entry_type_enum_value">1</span>
19504 <span class="entry_type_enum_name">FLUORESCENT</span>
19505 <span class="entry_type_enum_value">2</span>
19508 <span class="entry_type_enum_name">TUNGSTEN</span>
19509 <span class="entry_type_enum_value">3</span>
19510 <span class="entry_type_enum_notes"><p>Incandescent light</p></span>
19513 <span class="entry_type_enum_name">FLASH</span>
19514 <span class="entry_type_enum_value">4</span>
19517 <span class="entry_type_enum_name">FINE_WEATHER</span>
19518 <span class="entry_type_enum_value">9</span>
19521 <span class="entry_type_enum_name">CLOUDY_WEATHER</span>
19522 <span class="entry_type_enum_value">10</span>
19525 <span class="entry_type_enum_name">SHADE</span>
19526 <span class="entry_type_enum_value">11</span>
19529 <span class="entry_type_enum_name">DAYLIGHT_FLUORESCENT</span>
19530 <span class="entry_type_enum_value">12</span>
19531 <span class="entry_type_enum_notes"><p>D 5700 - 7100K</p></span>
19534 <span class="entry_type_enum_name">DAY_WHITE_FLUORESCENT</span>
19535 <span class="entry_type_enum_value">13</span>
19536 <span class="entry_type_enum_notes"><p>N 4600 - 5400K</p></span>
19539 <span class="entry_type_enum_name">COOL_WHITE_FLUORESCENT</span>
19540 <span class="entry_type_enum_value">14</span>
19541 <span class="entry_type_enum_notes"><p>W 3900 - 4500K</p></span>
19544 <span class="entry_type_enum_name">WHITE_FLUORESCENT</span>
19545 <span class="entry_type_enum_value">15</span>
19546 <span class="entry_type_enum_notes"><p>WW 3200 - 3700K</p></span>
19549 <span class="entry_type_enum_name">STANDARD_A</span>
19550 <span class="entry_type_enum_value">17</span>
19553 <span class="entry_type_enum_name">STANDARD_B</span>
19554 <span class="entry_type_enum_value">18</span>
19557 <span class="entry_type_enum_name">STANDARD_C</span>
19558 <span class="entry_type_enum_value">19</span>
19561 <span class="entry_type_enum_name">D55</span>
19562 <span class="entry_type_enum_value">20</span>
19565 <span class="entry_type_enum_name">D65</span>
19566 <span class="entry_type_enum_value">21</span>
19569 <span class="entry_type_enum_name">D75</span>
19570 <span class="entry_type_enum_value">22</span>
19573 <span class="entry_type_enum_name">D50</span>
19574 <span class="entry_type_enum_value">23</span>
19577 <span class="entry_type_enum_name">ISO_STUDIO_TUNGSTEN</span>
19578 <span class="entry_type_enum_value">24</span>
19582 </td> <!-- entry_type -->
19584 <td class="entry_description">
19585 <p>The standard reference illuminant used as the scene light source when
19586 calculating the <a href="#static_android.sensor.colorTransform1">android.<wbr/>sensor.<wbr/>color<wbr/>Transform1</a>,<wbr/>
19587 <a href="#static_android.sensor.calibrationTransform1">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform1</a>,<wbr/> and
19588 <a href="#static_android.sensor.forwardMatrix1">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix1</a> matrices.<wbr/></p>
19591 <td class="entry_units">
19594 <td class="entry_range">
19597 <td class="entry_tags">
19598 <ul class="entry_tags">
19599 <li><a href="#tag_RAW">RAW</a></li>
19604 <tr class="entries_header">
19605 <th class="th_details" colspan="5">Details</th>
19607 <tr class="entry_cont">
19608 <td class="entry_details" colspan="5">
19609 <p>The values in this key correspond to the values defined for the
19610 EXIF LightSource tag.<wbr/> These illuminants are standard light sources
19611 that are often used calibrating camera devices.<wbr/></p>
19612 <p>If this key is present,<wbr/> then <a href="#static_android.sensor.colorTransform1">android.<wbr/>sensor.<wbr/>color<wbr/>Transform1</a>,<wbr/>
19613 <a href="#static_android.sensor.calibrationTransform1">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform1</a>,<wbr/> and
19614 <a href="#static_android.sensor.forwardMatrix1">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix1</a> will also be present.<wbr/></p>
19615 <p>Some devices may choose to provide a second set of calibration
19616 information for improved quality,<wbr/> including
19617 <a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a> and its corresponding matrices.<wbr/></p>
19621 <tr class="entries_header">
19622 <th class="th_details" colspan="5">HAL Implementation Details</th>
19624 <tr class="entry_cont">
19625 <td class="entry_details" colspan="5">
19626 <p>The first reference illuminant (<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>)
19627 and corresponding matrices must be present to support the RAW capability
19628 and DNG output.<wbr/></p>
19629 <p>When producing raw images with a color profile that has only been
19630 calibrated against a single light source,<wbr/> it is valid to omit
19631 <a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a> along with the
19632 <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/>
19633 and <a href="#static_android.sensor.forwardMatrix2">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2</a> matrices.<wbr/></p>
19634 <p>If only <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a> is included,<wbr/> it should be
19635 chosen so that it is representative of typical scene lighting.<wbr/> In
19636 general,<wbr/> D50 or DAYLIGHT will be chosen for this case.<wbr/></p>
19637 <p>If both <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a> and
19638 <a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a> are included,<wbr/> they should be
19639 chosen to represent the typical range of scene lighting conditions.<wbr/>
19640 In general,<wbr/> low color temperature illuminant such as Standard-A will
19641 be chosen for the first reference illuminant and a higher color
19642 temperature illuminant such as D65 will be chosen for the second
19643 reference illuminant.<wbr/></p>
19647 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19648 <!-- end of entry -->
19651 <tr class="entry" id="static_android.sensor.referenceIlluminant2">
19652 <td class="entry_name
19654 android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2
19656 <td class="entry_type">
19657 <span class="entry_type_name">byte</span>
19659 <span class="entry_type_visibility"> [public]</span>
19666 </td> <!-- entry_type -->
19668 <td class="entry_description">
19669 <p>The standard reference illuminant used as the scene light source when
19670 calculating the <a href="#static_android.sensor.colorTransform2">android.<wbr/>sensor.<wbr/>color<wbr/>Transform2</a>,<wbr/>
19671 <a href="#static_android.sensor.calibrationTransform2">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform2</a>,<wbr/> and
19672 <a href="#static_android.sensor.forwardMatrix2">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2</a> matrices.<wbr/></p>
19675 <td class="entry_units">
19678 <td class="entry_range">
19679 <p>Any value listed in <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a></p>
19682 <td class="entry_tags">
19683 <ul class="entry_tags">
19684 <li><a href="#tag_RAW">RAW</a></li>
19689 <tr class="entries_header">
19690 <th class="th_details" colspan="5">Details</th>
19692 <tr class="entry_cont">
19693 <td class="entry_details" colspan="5">
19694 <p>See <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a> for more details.<wbr/></p>
19695 <p>If this key is present,<wbr/> then <a href="#static_android.sensor.colorTransform2">android.<wbr/>sensor.<wbr/>color<wbr/>Transform2</a>,<wbr/>
19696 <a href="#static_android.sensor.calibrationTransform2">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform2</a>,<wbr/> and
19697 <a href="#static_android.sensor.forwardMatrix2">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2</a> will also be present.<wbr/></p>
19702 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19703 <!-- end of entry -->
19706 <tr class="entry" id="static_android.sensor.calibrationTransform1">
19707 <td class="entry_name
19709 android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform1
19711 <td class="entry_type">
19712 <span class="entry_type_name">rational</span>
19713 <span class="entry_type_container">x</span>
19715 <span class="entry_type_array">
19718 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
19723 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
19726 </td> <!-- entry_type -->
19728 <td class="entry_description">
19729 <p>A per-device calibration transform matrix that maps from the
19730 reference sensor colorspace to the actual device sensor colorspace.<wbr/></p>
19733 <td class="entry_units">
19736 <td class="entry_range">
19739 <td class="entry_tags">
19740 <ul class="entry_tags">
19741 <li><a href="#tag_RAW">RAW</a></li>
19746 <tr class="entries_header">
19747 <th class="th_details" colspan="5">Details</th>
19749 <tr class="entry_cont">
19750 <td class="entry_details" colspan="5">
19751 <p>This matrix is used to correct for per-device variations in the
19752 sensor colorspace,<wbr/> and is used for processing raw buffer data.<wbr/></p>
19753 <p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
19754 contains a per-device calibration transform that maps colors
19755 from reference sensor color space (i.<wbr/>e.<wbr/> the "golden module"
19756 colorspace) into this camera device's native sensor color
19757 space under the first reference illuminant
19758 (<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>).<wbr/></p>
19763 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19764 <!-- end of entry -->
19767 <tr class="entry" id="static_android.sensor.calibrationTransform2">
19768 <td class="entry_name
19770 android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform2
19772 <td class="entry_type">
19773 <span class="entry_type_name">rational</span>
19774 <span class="entry_type_container">x</span>
19776 <span class="entry_type_array">
19779 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
19784 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
19787 </td> <!-- entry_type -->
19789 <td class="entry_description">
19790 <p>A per-device calibration transform matrix that maps from the
19791 reference sensor colorspace to the actual device sensor colorspace
19792 (this is the colorspace of the raw buffer data).<wbr/></p>
19795 <td class="entry_units">
19798 <td class="entry_range">
19801 <td class="entry_tags">
19802 <ul class="entry_tags">
19803 <li><a href="#tag_RAW">RAW</a></li>
19808 <tr class="entries_header">
19809 <th class="th_details" colspan="5">Details</th>
19811 <tr class="entry_cont">
19812 <td class="entry_details" colspan="5">
19813 <p>This matrix is used to correct for per-device variations in the
19814 sensor colorspace,<wbr/> and is used for processing raw buffer data.<wbr/></p>
19815 <p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
19816 contains a per-device calibration transform that maps colors
19817 from reference sensor color space (i.<wbr/>e.<wbr/> the "golden module"
19818 colorspace) into this camera device's native sensor color
19819 space under the second reference illuminant
19820 (<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a>).<wbr/></p>
19821 <p>This matrix will only be present if the second reference
19822 illuminant is present.<wbr/></p>
19827 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19828 <!-- end of entry -->
19831 <tr class="entry" id="static_android.sensor.colorTransform1">
19832 <td class="entry_name
19834 android.<wbr/>sensor.<wbr/>color<wbr/>Transform1
19836 <td class="entry_type">
19837 <span class="entry_type_name">rational</span>
19838 <span class="entry_type_container">x</span>
19840 <span class="entry_type_array">
19843 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
19848 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
19851 </td> <!-- entry_type -->
19853 <td class="entry_description">
19854 <p>A matrix that transforms color values from CIE XYZ color space to
19855 reference sensor color space.<wbr/></p>
19858 <td class="entry_units">
19861 <td class="entry_range">
19864 <td class="entry_tags">
19865 <ul class="entry_tags">
19866 <li><a href="#tag_RAW">RAW</a></li>
19871 <tr class="entries_header">
19872 <th class="th_details" colspan="5">Details</th>
19874 <tr class="entry_cont">
19875 <td class="entry_details" colspan="5">
19876 <p>This matrix is used to convert from the standard CIE XYZ color
19877 space to the reference sensor colorspace,<wbr/> and is used when processing
19878 raw buffer data.<wbr/></p>
19879 <p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
19880 contains a color transform matrix that maps colors from the CIE
19881 XYZ color space to the reference sensor color space (i.<wbr/>e.<wbr/> the
19882 "golden module" colorspace) under the first reference illuminant
19883 (<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>).<wbr/></p>
19884 <p>The white points chosen in both the reference sensor color space
19885 and the CIE XYZ colorspace when calculating this transform will
19886 match the standard white point for the first reference illuminant
19887 (i.<wbr/>e.<wbr/> no chromatic adaptation will be applied by this transform).<wbr/></p>
19892 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19893 <!-- end of entry -->
19896 <tr class="entry" id="static_android.sensor.colorTransform2">
19897 <td class="entry_name
19899 android.<wbr/>sensor.<wbr/>color<wbr/>Transform2
19901 <td class="entry_type">
19902 <span class="entry_type_name">rational</span>
19903 <span class="entry_type_container">x</span>
19905 <span class="entry_type_array">
19908 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
19913 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
19916 </td> <!-- entry_type -->
19918 <td class="entry_description">
19919 <p>A matrix that transforms color values from CIE XYZ color space to
19920 reference sensor color space.<wbr/></p>
19923 <td class="entry_units">
19926 <td class="entry_range">
19929 <td class="entry_tags">
19930 <ul class="entry_tags">
19931 <li><a href="#tag_RAW">RAW</a></li>
19936 <tr class="entries_header">
19937 <th class="th_details" colspan="5">Details</th>
19939 <tr class="entry_cont">
19940 <td class="entry_details" colspan="5">
19941 <p>This matrix is used to convert from the standard CIE XYZ color
19942 space to the reference sensor colorspace,<wbr/> and is used when processing
19943 raw buffer data.<wbr/></p>
19944 <p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
19945 contains a color transform matrix that maps colors from the CIE
19946 XYZ color space to the reference sensor color space (i.<wbr/>e.<wbr/> the
19947 "golden module" colorspace) under the second reference illuminant
19948 (<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a>).<wbr/></p>
19949 <p>The white points chosen in both the reference sensor color space
19950 and the CIE XYZ colorspace when calculating this transform will
19951 match the standard white point for the second reference illuminant
19952 (i.<wbr/>e.<wbr/> no chromatic adaptation will be applied by this transform).<wbr/></p>
19953 <p>This matrix will only be present if the second reference
19954 illuminant is present.<wbr/></p>
19959 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
19960 <!-- end of entry -->
19963 <tr class="entry" id="static_android.sensor.forwardMatrix1">
19964 <td class="entry_name
19966 android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix1
19968 <td class="entry_type">
19969 <span class="entry_type_name">rational</span>
19970 <span class="entry_type_container">x</span>
19972 <span class="entry_type_array">
19975 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
19980 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
19983 </td> <!-- entry_type -->
19985 <td class="entry_description">
19986 <p>A matrix that transforms white balanced camera colors from the reference
19987 sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.<wbr/></p>
19990 <td class="entry_units">
19993 <td class="entry_range">
19996 <td class="entry_tags">
19997 <ul class="entry_tags">
19998 <li><a href="#tag_RAW">RAW</a></li>
20003 <tr class="entries_header">
20004 <th class="th_details" colspan="5">Details</th>
20006 <tr class="entry_cont">
20007 <td class="entry_details" colspan="5">
20008 <p>This matrix is used to convert to the standard CIE XYZ colorspace,<wbr/> and
20009 is used when processing raw buffer data.<wbr/></p>
20010 <p>This matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and contains
20011 a color transform matrix that maps white balanced colors from the
20012 reference sensor color space to the CIE XYZ color space with a D50 white
20014 <p>Under the first reference illuminant (<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>)
20015 this matrix is chosen so that the standard white point for this reference
20016 illuminant in the reference sensor colorspace is mapped to D50 in the
20017 CIE XYZ colorspace.<wbr/></p>
20022 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20023 <!-- end of entry -->
20026 <tr class="entry" id="static_android.sensor.forwardMatrix2">
20027 <td class="entry_name
20029 android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2
20031 <td class="entry_type">
20032 <span class="entry_type_name">rational</span>
20033 <span class="entry_type_container">x</span>
20035 <span class="entry_type_array">
20038 <span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
20043 <div class="entry_type_notes">3x3 matrix in row-major-order</div>
20046 </td> <!-- entry_type -->
20048 <td class="entry_description">
20049 <p>A matrix that transforms white balanced camera colors from the reference
20050 sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.<wbr/></p>
20053 <td class="entry_units">
20056 <td class="entry_range">
20059 <td class="entry_tags">
20060 <ul class="entry_tags">
20061 <li><a href="#tag_RAW">RAW</a></li>
20066 <tr class="entries_header">
20067 <th class="th_details" colspan="5">Details</th>
20069 <tr class="entry_cont">
20070 <td class="entry_details" colspan="5">
20071 <p>This matrix is used to convert to the standard CIE XYZ colorspace,<wbr/> and
20072 is used when processing raw buffer data.<wbr/></p>
20073 <p>This matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and contains
20074 a color transform matrix that maps white balanced colors from the
20075 reference sensor color space to the CIE XYZ color space with a D50 white
20077 <p>Under the second reference illuminant (<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a>)
20078 this matrix is chosen so that the standard white point for this reference
20079 illuminant in the reference sensor colorspace is mapped to D50 in the
20080 CIE XYZ colorspace.<wbr/></p>
20081 <p>This matrix will only be present if the second reference
20082 illuminant is present.<wbr/></p>
20087 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20088 <!-- end of entry -->
20091 <tr class="entry" id="static_android.sensor.baseGainFactor">
20092 <td class="entry_name
20094 android.<wbr/>sensor.<wbr/>base<wbr/>Gain<wbr/>Factor
20096 <td class="entry_type">
20097 <span class="entry_type_name">rational</span>
20099 <span class="entry_type_visibility"> [system]</span>
20106 </td> <!-- entry_type -->
20108 <td class="entry_description">
20109 <p>Gain factor from electrons to raw units when
20113 <td class="entry_units">
20116 <td class="entry_range">
20119 <td class="entry_tags">
20120 <ul class="entry_tags">
20121 <li><a href="#tag_FUTURE">FUTURE</a></li>
20128 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20129 <!-- end of entry -->
20132 <tr class="entry" id="static_android.sensor.blackLevelPattern">
20133 <td class="entry_name
20135 android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern
20137 <td class="entry_type">
20138 <span class="entry_type_name">int32</span>
20139 <span class="entry_type_container">x</span>
20141 <span class="entry_type_array">
20144 <span class="entry_type_visibility"> [public as blackLevelPattern]</span>
20149 <div class="entry_type_notes">2x2 raw count block</div>
20152 </td> <!-- entry_type -->
20154 <td class="entry_description">
20155 <p>A fixed black level offset for each of the color filter arrangement
20156 (CFA) mosaic channels.<wbr/></p>
20159 <td class="entry_units">
20162 <td class="entry_range">
20163 <p>>= 0 for each.<wbr/></p>
20166 <td class="entry_tags">
20167 <ul class="entry_tags">
20168 <li><a href="#tag_RAW">RAW</a></li>
20173 <tr class="entries_header">
20174 <th class="th_details" colspan="5">Details</th>
20176 <tr class="entry_cont">
20177 <td class="entry_details" colspan="5">
20178 <p>This key specifies the zero light value for each of the CFA mosaic
20179 channels in the camera sensor.<wbr/> The maximal value output by the
20180 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>
20181 <p>The values are given in the same order as channels listed for the CFA
20182 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
20183 nth value given corresponds to the black level offset for the nth
20184 color channel listed in the CFA.<wbr/></p>
20185 <p>The black level values of captured images may vary for different
20186 capture settings (e.<wbr/>g.,<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>).<wbr/> This key
20187 represents a coarse approximation for such case.<wbr/> It is recommended to
20188 use <a href="#dynamic_android.sensor.dynamicBlackLevel">android.<wbr/>sensor.<wbr/>dynamic<wbr/>Black<wbr/>Level</a> or use pixels from
20189 <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> directly for captures when
20190 supported by the camera device,<wbr/> which provides more accurate black
20191 level values.<wbr/> For raw capture in particular,<wbr/> it is recommended to use
20192 pixels from <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> to calculate black
20193 level values for each frame.<wbr/></p>
20197 <tr class="entries_header">
20198 <th class="th_details" colspan="5">HAL Implementation Details</th>
20200 <tr class="entry_cont">
20201 <td class="entry_details" colspan="5">
20202 <p>The values are given in row-column scan order,<wbr/> with the first value
20203 corresponding to the element of the CFA in row=0,<wbr/> column=0.<wbr/></p>
20207 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20208 <!-- end of entry -->
20211 <tr class="entry" id="static_android.sensor.maxAnalogSensitivity">
20212 <td class="entry_name
20214 android.<wbr/>sensor.<wbr/>max<wbr/>Analog<wbr/>Sensitivity
20216 <td class="entry_type">
20217 <span class="entry_type_name">int32</span>
20219 <span class="entry_type_visibility"> [public]</span>
20222 <span class="entry_type_hwlevel">[full] </span>
20227 </td> <!-- entry_type -->
20229 <td class="entry_description">
20230 <p>Maximum sensitivity that is implemented
20231 purely through analog gain.<wbr/></p>
20234 <td class="entry_units">
20237 <td class="entry_range">
20240 <td class="entry_tags">
20241 <ul class="entry_tags">
20242 <li><a href="#tag_V1">V1</a></li>
20243 <li><a href="#tag_FULL">FULL</a></li>
20248 <tr class="entries_header">
20249 <th class="th_details" colspan="5">Details</th>
20251 <tr class="entry_cont">
20252 <td class="entry_details" colspan="5">
20253 <p>For <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> values less than or
20254 equal to this,<wbr/> all applied gain must be analog.<wbr/> For
20255 values above this,<wbr/> the gain applied can be a mix of analog and
20261 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20262 <!-- end of entry -->
20265 <tr class="entry" id="static_android.sensor.orientation">
20266 <td class="entry_name
20268 android.<wbr/>sensor.<wbr/>orientation
20270 <td class="entry_type">
20271 <span class="entry_type_name">int32</span>
20273 <span class="entry_type_visibility"> [public]</span>
20276 <span class="entry_type_hwlevel">[legacy] </span>
20281 </td> <!-- entry_type -->
20283 <td class="entry_description">
20284 <p>Clockwise angle through which the output image needs to be rotated to be
20285 upright on the device screen in its native orientation.<wbr/></p>
20288 <td class="entry_units">
20289 Degrees of clockwise rotation; always a multiple of
20293 <td class="entry_range">
20294 <p>0,<wbr/> 90,<wbr/> 180,<wbr/> 270</p>
20297 <td class="entry_tags">
20298 <ul class="entry_tags">
20299 <li><a href="#tag_BC">BC</a></li>
20304 <tr class="entries_header">
20305 <th class="th_details" colspan="5">Details</th>
20307 <tr class="entry_cont">
20308 <td class="entry_details" colspan="5">
20309 <p>Also defines the direction of rolling shutter readout,<wbr/> which is from top to bottom in
20310 the sensor's coordinate system.<wbr/></p>
20315 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20316 <!-- end of entry -->
20319 <tr class="entry" id="static_android.sensor.profileHueSatMapDimensions">
20320 <td class="entry_name
20322 android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map<wbr/>Dimensions
20324 <td class="entry_type">
20325 <span class="entry_type_name">int32</span>
20326 <span class="entry_type_container">x</span>
20328 <span class="entry_type_array">
20331 <span class="entry_type_visibility"> [system]</span>
20336 <div class="entry_type_notes">Number of samples for hue,<wbr/> saturation,<wbr/> and value</div>
20339 </td> <!-- entry_type -->
20341 <td class="entry_description">
20342 <p>The number of input samples for each dimension of
20343 <a href="#dynamic_android.sensor.profileHueSatMap">android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map</a>.<wbr/></p>
20346 <td class="entry_units">
20349 <td class="entry_range">
20350 <p>Hue >= 1,<wbr/>
20351 Saturation >= 2,<wbr/>
20355 <td class="entry_tags">
20356 <ul class="entry_tags">
20357 <li><a href="#tag_RAW">RAW</a></li>
20362 <tr class="entries_header">
20363 <th class="th_details" colspan="5">Details</th>
20365 <tr class="entry_cont">
20366 <td class="entry_details" colspan="5">
20367 <p>The number of input samples for the hue,<wbr/> saturation,<wbr/> and value
20368 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
20369 dimensions given is hue,<wbr/> saturation,<wbr/> value; where hue is the 0th
20375 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20376 <!-- end of entry -->
20379 <tr class="entry" id="static_android.sensor.availableTestPatternModes">
20380 <td class="entry_name
20382 android.<wbr/>sensor.<wbr/>available<wbr/>Test<wbr/>Pattern<wbr/>Modes
20384 <td class="entry_type">
20385 <span class="entry_type_name">int32</span>
20386 <span class="entry_type_container">x</span>
20388 <span class="entry_type_array">
20391 <span class="entry_type_visibility"> [public]</span>
20396 <div class="entry_type_notes">list of enums</div>
20399 </td> <!-- entry_type -->
20401 <td class="entry_description">
20402 <p>List of sensor test pattern modes for <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a>
20403 supported by this camera device.<wbr/></p>
20406 <td class="entry_units">
20409 <td class="entry_range">
20410 <p>Any value listed in <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a></p>
20413 <td class="entry_tags">
20417 <tr class="entries_header">
20418 <th class="th_details" colspan="5">Details</th>
20420 <tr class="entry_cont">
20421 <td class="entry_details" colspan="5">
20422 <p>Defaults to OFF,<wbr/> and always includes OFF if defined.<wbr/></p>
20426 <tr class="entries_header">
20427 <th class="th_details" colspan="5">HAL Implementation Details</th>
20429 <tr class="entry_cont">
20430 <td class="entry_details" colspan="5">
20431 <p>All custom modes must be >= CUSTOM1.<wbr/></p>
20435 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20436 <!-- end of entry -->
20439 <tr class="entry" id="static_android.sensor.opticalBlackRegions">
20440 <td class="entry_name
20442 android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions
20444 <td class="entry_type">
20445 <span class="entry_type_name">int32</span>
20446 <span class="entry_type_container">x</span>
20448 <span class="entry_type_array">
20451 <span class="entry_type_visibility"> [public as rectangle]</span>
20458 </td> <!-- entry_type -->
20460 <td class="entry_description">
20461 <p>List of disjoint rectangles indicating the sensor
20462 optically shielded black pixel regions.<wbr/></p>
20465 <td class="entry_units">
20468 <td class="entry_range">
20471 <td class="entry_tags">
20475 <tr class="entries_header">
20476 <th class="th_details" colspan="5">Details</th>
20478 <tr class="entry_cont">
20479 <td class="entry_details" colspan="5">
20480 <p>In most camera sensors,<wbr/> the active array is surrounded by some
20481 optically shielded pixel areas.<wbr/> By blocking light,<wbr/> these pixels
20482 provides a reliable black reference for black level compensation
20483 in active array region.<wbr/></p>
20484 <p>This key provides a list of disjoint rectangles specifying the
20485 regions of optically shielded (with metal shield) black pixel
20486 regions if the camera device is capable of reading out these black
20487 pixels in the output raw images.<wbr/> In comparison to the fixed black
20488 level values reported by <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a>,<wbr/> this key
20489 may provide a more accurate way for the application to calculate
20490 black level of each captured raw images.<wbr/></p>
20491 <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
20492 <a href="#dynamic_android.sensor.dynamicWhiteLevel">android.<wbr/>sensor.<wbr/>dynamic<wbr/>White<wbr/>Level</a> will also be reported.<wbr/></p>
20496 <tr class="entries_header">
20497 <th class="th_details" colspan="5">HAL Implementation Details</th>
20499 <tr class="entry_cont">
20500 <td class="entry_details" colspan="5">
20501 <p>This array contains (xmin,<wbr/> ymin,<wbr/> width,<wbr/> height).<wbr/> The (xmin,<wbr/> ymin)
20502 must be >= (0,<wbr/>0) and <=
20503 <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
20504 <= <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/> Each region must be
20505 outside the region reported by
20506 <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>
20507 <p>The HAL must report minimal number of disjoint regions for the
20508 optically shielded back pixel regions.<wbr/> For example,<wbr/> if a region can
20509 be covered by one rectangle,<wbr/> the HAL must not split this region into
20510 multiple rectangles.<wbr/></p>
20514 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20515 <!-- end of entry -->
20518 <tr class="entry" id="static_android.sensor.opaqueRawSize">
20519 <td class="entry_name
20521 android.<wbr/>sensor.<wbr/>opaque<wbr/>Raw<wbr/>Size
20523 <td class="entry_type">
20524 <span class="entry_type_name">int32</span>
20525 <span class="entry_type_container">x</span>
20527 <span class="entry_type_array">
20530 <span class="entry_type_visibility"> [system]</span>
20537 </td> <!-- entry_type -->
20539 <td class="entry_description">
20540 <p>Size in bytes for all the listed opaque RAW buffer sizes</p>
20543 <td class="entry_units">
20546 <td class="entry_range">
20547 <p>Must be large enough to fit the opaque RAW of corresponding size produced by
20551 <td class="entry_tags">
20555 <tr class="entries_header">
20556 <th class="th_details" colspan="5">Details</th>
20558 <tr class="entry_cont">
20559 <td class="entry_details" colspan="5">
20560 <p>This configurations are listed as <code>(width,<wbr/> height,<wbr/> size_<wbr/>in_<wbr/>bytes)</code> tuples.<wbr/>
20561 This is used for sizing the gralloc buffers for opaque RAW buffers.<wbr/>
20562 All RAW_<wbr/>OPAQUE output stream configuration listed in
20563 <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> will have a corresponding tuple in
20564 this key.<wbr/></p>
20568 <tr class="entries_header">
20569 <th class="th_details" colspan="5">HAL Implementation Details</th>
20571 <tr class="entry_cont">
20572 <td class="entry_details" colspan="5">
20573 <p>This key is added in HAL3.<wbr/>4.<wbr/>
20574 For HAL3.<wbr/>4 or above: devices advertising RAW_<wbr/>OPAQUE format output must list this key.<wbr/>
20575 For HAL3.<wbr/>3 or earlier devices: if RAW_<wbr/>OPAQUE ouput is advertised,<wbr/> camera framework
20576 will derive this key by assuming each pixel takes two bytes and no padding bytes
20577 between rows.<wbr/></p>
20581 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20582 <!-- end of entry -->
20586 <!-- end of kind -->
20588 <tr><td colspan="6" class="kind">dynamic</td></tr>
20590 <thead class="entries_header">
20592 <th class="th_name">Property Name</th>
20593 <th class="th_type">Type</th>
20594 <th class="th_description">Description</th>
20595 <th class="th_units">Units</th>
20596 <th class="th_range">Range</th>
20597 <th class="th_tags">Tags</th>
20612 <tr class="entry" id="dynamic_android.sensor.exposureTime">
20613 <td class="entry_name
20615 android.<wbr/>sensor.<wbr/>exposure<wbr/>Time
20617 <td class="entry_type">
20618 <span class="entry_type_name">int64</span>
20620 <span class="entry_type_visibility"> [public]</span>
20623 <span class="entry_type_hwlevel">[full] </span>
20628 </td> <!-- entry_type -->
20630 <td class="entry_description">
20631 <p>Duration each pixel is exposed to
20635 <td class="entry_units">
20639 <td class="entry_range">
20640 <p><a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a></p>
20643 <td class="entry_tags">
20644 <ul class="entry_tags">
20645 <li><a href="#tag_V1">V1</a></li>
20650 <tr class="entries_header">
20651 <th class="th_details" colspan="5">Details</th>
20653 <tr class="entry_cont">
20654 <td class="entry_details" colspan="5">
20655 <p>If the sensor can't expose this exact duration,<wbr/> it will shorten the
20656 duration exposed to the nearest possible value (rather than expose longer).<wbr/>
20657 The final exposure time used will be available in the output capture result.<wbr/></p>
20658 <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
20659 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
20664 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20665 <!-- end of entry -->
20668 <tr class="entry" id="dynamic_android.sensor.frameDuration">
20669 <td class="entry_name
20671 android.<wbr/>sensor.<wbr/>frame<wbr/>Duration
20673 <td class="entry_type">
20674 <span class="entry_type_name">int64</span>
20676 <span class="entry_type_visibility"> [public]</span>
20679 <span class="entry_type_hwlevel">[full] </span>
20684 </td> <!-- entry_type -->
20686 <td class="entry_description">
20687 <p>Duration from start of frame exposure to
20688 start of next frame exposure.<wbr/></p>
20691 <td class="entry_units">
20695 <td class="entry_range">
20696 <p>See <a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a>,<wbr/>
20697 <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a>.<wbr/> The duration
20698 is capped to <code>max(duration,<wbr/> exposureTime + overhead)</code>.<wbr/></p>
20701 <td class="entry_tags">
20702 <ul class="entry_tags">
20703 <li><a href="#tag_V1">V1</a></li>
20708 <tr class="entries_header">
20709 <th class="th_details" colspan="5">Details</th>
20711 <tr class="entry_cont">
20712 <td class="entry_details" colspan="5">
20713 <p>The maximum frame rate that can be supported by a camera subsystem is
20714 a function of many factors:</p>
20716 <li>Requested resolutions of output image streams</li>
20717 <li>Availability of binning /<wbr/> skipping modes on the imager</li>
20718 <li>The bandwidth of the imager interface</li>
20719 <li>The bandwidth of the various ISP processing blocks</li>
20721 <p>Since these factors can vary greatly between different ISPs and
20722 sensors,<wbr/> the camera abstraction tries to represent the bandwidth
20723 restrictions with as simple a model as possible.<wbr/></p>
20724 <p>The model presented has the following characteristics:</p>
20726 <li>The image sensor is always configured to output the smallest
20727 resolution possible given the application's requested output stream
20728 sizes.<wbr/> The smallest resolution is defined as being at least as large
20729 as the largest requested output stream size; the camera pipeline must
20730 never digitally upsample sensor data when the crop region covers the
20731 whole sensor.<wbr/> In general,<wbr/> this means that if only small output stream
20732 resolutions are configured,<wbr/> the sensor can provide a higher frame
20734 <li>Since any request may use any or all the currently configured
20735 output streams,<wbr/> the sensor and ISP must be configured to support
20736 scaling a single capture to all the streams at the same time.<wbr/> This
20737 means the camera pipeline must be ready to produce the largest
20738 requested output size without any delay.<wbr/> Therefore,<wbr/> the overall
20739 frame rate of a given configured stream set is governed only by the
20740 largest requested stream resolution.<wbr/></li>
20741 <li>Using more than one output stream in a request does not affect the
20742 frame duration.<wbr/></li>
20743 <li>Certain format-streams may need to do additional background processing
20744 before data is consumed/<wbr/>produced by that stream.<wbr/> These processors
20745 can run concurrently to the rest of the camera pipeline,<wbr/> but
20746 cannot process more than 1 capture at a time.<wbr/></li>
20748 <p>The necessary information for the application,<wbr/> given the model above,<wbr/>
20749 is provided via the <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> field using
20750 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>.<wbr/>
20751 These are used to determine the maximum frame rate /<wbr/> minimum frame
20752 duration that is possible for a given stream configuration.<wbr/></p>
20753 <p>Specifically,<wbr/> the application can use the following rules to
20754 determine the minimum frame duration it can request from the camera
20757 <li>Let the set of currently configured input/<wbr/>output streams
20758 be called <code>S</code>.<wbr/></li>
20759 <li>Find the minimum frame durations for each stream in <code>S</code>,<wbr/> by looking
20760 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>
20761 (with its respective size/<wbr/>format).<wbr/> Let this set of frame durations be
20762 called <code>F</code>.<wbr/></li>
20763 <li>For any given request <code>R</code>,<wbr/> the minimum frame duration allowed
20764 for <code>R</code> is the maximum out of all values in <code>F</code>.<wbr/> Let the streams
20765 used in <code>R</code> be called <code>S_<wbr/>r</code>.<wbr/></li>
20767 <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>
20768 using its respective size/<wbr/>format),<wbr/> then the frame duration in <code>F</code>
20769 determines the steady state frame rate that the application will get
20770 if it uses <code>R</code> as a repeating request.<wbr/> Let this special kind of
20771 request be called <code>Rsimple</code>.<wbr/></p>
20772 <p>A repeating request <code>Rsimple</code> can be <em>occasionally</em> interleaved
20773 by a single capture of a new request <code>Rstall</code> (which has at least
20774 one in-use stream with a non-0 stall time) and if <code>Rstall</code> has the
20775 same minimum frame duration this will not cause a frame rate loss
20776 if all buffers from the previous <code>Rstall</code> have already been
20777 delivered.<wbr/></p>
20778 <p>For more details about stalling,<wbr/> see
20779 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a>.<wbr/></p>
20780 <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
20781 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
20785 <tr class="entries_header">
20786 <th class="th_details" colspan="5">HAL Implementation Details</th>
20788 <tr class="entry_cont">
20789 <td class="entry_details" colspan="5">
20790 <p>For more details about stalling,<wbr/> see
20791 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a>.<wbr/></p>
20795 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20796 <!-- end of entry -->
20799 <tr class="entry" id="dynamic_android.sensor.sensitivity">
20800 <td class="entry_name
20802 android.<wbr/>sensor.<wbr/>sensitivity
20804 <td class="entry_type">
20805 <span class="entry_type_name">int32</span>
20807 <span class="entry_type_visibility"> [public]</span>
20810 <span class="entry_type_hwlevel">[full] </span>
20815 </td> <!-- entry_type -->
20817 <td class="entry_description">
20818 <p>The amount of gain applied to sensor data
20819 before processing.<wbr/></p>
20822 <td class="entry_units">
20823 ISO arithmetic units
20826 <td class="entry_range">
20827 <p><a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a></p>
20830 <td class="entry_tags">
20831 <ul class="entry_tags">
20832 <li><a href="#tag_V1">V1</a></li>
20837 <tr class="entries_header">
20838 <th class="th_details" colspan="5">Details</th>
20840 <tr class="entry_cont">
20841 <td class="entry_details" colspan="5">
20842 <p>The sensitivity is the standard ISO sensitivity value,<wbr/>
20843 as defined in ISO 12232:2006.<wbr/></p>
20844 <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
20845 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
20846 is guaranteed to use only analog amplification for applying the gain.<wbr/></p>
20847 <p>If the camera device cannot apply the exact sensitivity
20848 requested,<wbr/> it will reduce the gain to the nearest supported
20849 value.<wbr/> The final sensitivity used will be available in the
20850 output capture result.<wbr/></p>
20851 <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
20852 OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
20856 <tr class="entries_header">
20857 <th class="th_details" colspan="5">HAL Implementation Details</th>
20859 <tr class="entry_cont">
20860 <td class="entry_details" colspan="5">
20861 <p>ISO 12232:2006 REI method is acceptable.<wbr/></p>
20865 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20866 <!-- end of entry -->
20869 <tr class="entry" id="dynamic_android.sensor.timestamp">
20870 <td class="entry_name
20872 android.<wbr/>sensor.<wbr/>timestamp
20874 <td class="entry_type">
20875 <span class="entry_type_name">int64</span>
20877 <span class="entry_type_visibility"> [public]</span>
20880 <span class="entry_type_hwlevel">[legacy] </span>
20885 </td> <!-- entry_type -->
20887 <td class="entry_description">
20888 <p>Time at start of exposure of first
20889 row of the image sensor active array,<wbr/> in nanoseconds.<wbr/></p>
20892 <td class="entry_units">
20896 <td class="entry_range">
20900 <td class="entry_tags">
20901 <ul class="entry_tags">
20902 <li><a href="#tag_BC">BC</a></li>
20907 <tr class="entries_header">
20908 <th class="th_details" colspan="5">Details</th>
20910 <tr class="entry_cont">
20911 <td class="entry_details" colspan="5">
20912 <p>The timestamps are also included in all image
20913 buffers produced for the same capture,<wbr/> and will be identical
20914 on all the outputs.<wbr/></p>
20915 <p>When <a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> UNKNOWN,<wbr/>
20916 the timestamps measure time since an unspecified starting point,<wbr/>
20917 and are monotonically increasing.<wbr/> They can be compared with the
20918 timestamps for other captures from the same camera device,<wbr/> but are
20919 not guaranteed to be comparable to any other time source.<wbr/></p>
20920 <p>When <a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> REALTIME,<wbr/> the
20921 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
20922 be compared to other timestamps from other subsystems that
20923 are using that base.<wbr/></p>
20924 <p>For reprocessing,<wbr/> the timestamp will match the start of exposure of
20925 the input image,<wbr/> i.<wbr/>e.<wbr/> <a href="https://developer.android.com/reference/CaptureResult.html#SENSOR_TIMESTAMP">the
20926 timestamp</a> in the TotalCaptureResult that was used to create the
20927 reprocess capture request.<wbr/></p>
20931 <tr class="entries_header">
20932 <th class="th_details" colspan="5">HAL Implementation Details</th>
20934 <tr class="entry_cont">
20935 <td class="entry_details" colspan="5">
20936 <p>All timestamps must be in reference to the kernel's
20937 CLOCK_<wbr/>BOOTTIME monotonic clock,<wbr/> which properly accounts for
20938 time spent asleep.<wbr/> This allows for synchronization with
20939 sensors that continue to operate while the system is
20940 otherwise asleep.<wbr/></p>
20941 <p>If <a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> REALTIME,<wbr/>
20942 The timestamp must be synchronized with the timestamps from other
20943 sensor subsystems that are using the same timebase.<wbr/></p>
20944 <p>For reprocessing,<wbr/> the input image's start of exposure can be looked up
20945 with <a href="#dynamic_android.sensor.timestamp">android.<wbr/>sensor.<wbr/>timestamp</a> from the metadata included in the
20946 capture request.<wbr/></p>
20950 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20951 <!-- end of entry -->
20954 <tr class="entry" id="dynamic_android.sensor.temperature">
20955 <td class="entry_name
20957 android.<wbr/>sensor.<wbr/>temperature
20959 <td class="entry_type">
20960 <span class="entry_type_name">float</span>
20962 <span class="entry_type_visibility"> [system]</span>
20969 </td> <!-- entry_type -->
20971 <td class="entry_description">
20972 <p>The temperature of the sensor,<wbr/> sampled at the time
20973 exposure began for this frame.<wbr/></p>
20974 <p>The thermal diode being queried should be inside the sensor PCB,<wbr/> or
20975 somewhere close to it.<wbr/></p>
20978 <td class="entry_units">
20982 <td class="entry_range">
20983 <p>Optional.<wbr/> This value is missing if no temperature is available.<wbr/></p>
20986 <td class="entry_tags">
20987 <ul class="entry_tags">
20988 <li><a href="#tag_FUTURE">FUTURE</a></li>
20995 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
20996 <!-- end of entry -->
20999 <tr class="entry" id="dynamic_android.sensor.neutralColorPoint">
21000 <td class="entry_name
21002 android.<wbr/>sensor.<wbr/>neutral<wbr/>Color<wbr/>Point
21004 <td class="entry_type">
21005 <span class="entry_type_name">rational</span>
21006 <span class="entry_type_container">x</span>
21008 <span class="entry_type_array">
21011 <span class="entry_type_visibility"> [public]</span>
21018 </td> <!-- entry_type -->
21020 <td class="entry_description">
21021 <p>The estimated camera neutral color in the native sensor colorspace at
21022 the time of capture.<wbr/></p>
21025 <td class="entry_units">
21028 <td class="entry_range">
21031 <td class="entry_tags">
21032 <ul class="entry_tags">
21033 <li><a href="#tag_RAW">RAW</a></li>
21038 <tr class="entries_header">
21039 <th class="th_details" colspan="5">Details</th>
21041 <tr class="entry_cont">
21042 <td class="entry_details" colspan="5">
21043 <p>This value gives the neutral color point encoded as an RGB value in the
21044 native sensor color space.<wbr/> The neutral color point indicates the
21045 currently estimated white point of the scene illumination.<wbr/> It can be
21046 used to interpolate between the provided color transforms when
21047 processing raw sensor data.<wbr/></p>
21048 <p>The order of the values is R,<wbr/> G,<wbr/> B; where R is in the lowest index.<wbr/></p>
21053 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21054 <!-- end of entry -->
21057 <tr class="entry" id="dynamic_android.sensor.noiseProfile">
21058 <td class="entry_name
21060 android.<wbr/>sensor.<wbr/>noise<wbr/>Profile
21062 <td class="entry_type">
21063 <span class="entry_type_name">double</span>
21064 <span class="entry_type_container">x</span>
21066 <span class="entry_type_array">
21069 <span class="entry_type_visibility"> [public as pairDoubleDouble]</span>
21074 <div class="entry_type_notes">Pairs of noise model coefficients</div>
21077 </td> <!-- entry_type -->
21079 <td class="entry_description">
21080 <p>Noise model coefficients for each CFA mosaic channel.<wbr/></p>
21083 <td class="entry_units">
21086 <td class="entry_range">
21089 <td class="entry_tags">
21090 <ul class="entry_tags">
21091 <li><a href="#tag_RAW">RAW</a></li>
21096 <tr class="entries_header">
21097 <th class="th_details" colspan="5">Details</th>
21099 <tr class="entry_cont">
21100 <td class="entry_details" colspan="5">
21101 <p>This key contains two noise model coefficients for each CFA channel
21102 corresponding to the sensor amplification (S) and sensor readout
21103 noise (O).<wbr/> These are given as pairs of coefficients for each channel
21104 in the same order as channels listed for the CFA layout key
21105 (see <a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a>).<wbr/> This is
21106 represented as an array of Pair<Double,<wbr/> Double>,<wbr/> where
21107 the first member of the Pair at index n is the S coefficient and the
21108 second member is the O coefficient for the nth color channel in the CFA.<wbr/></p>
21109 <p>These coefficients are used in a two parameter noise model to describe
21110 the amount of noise present in the image for each CFA channel.<wbr/> The
21111 noise model used here is:</p>
21112 <p>N(x) = sqrt(Sx + O)</p>
21113 <p>Where x represents the recorded signal of a CFA channel normalized to
21114 the range [0,<wbr/> 1],<wbr/> and S and O are the noise model coeffiecients for
21115 that channel.<wbr/></p>
21116 <p>A more detailed description of the noise model can be found in the
21117 Adobe DNG specification for the NoiseProfile tag.<wbr/></p>
21121 <tr class="entries_header">
21122 <th class="th_details" colspan="5">HAL Implementation Details</th>
21124 <tr class="entry_cont">
21125 <td class="entry_details" colspan="5">
21126 <p>For a CFA layout of RGGB,<wbr/> the list of coefficients would be given as
21127 an array of doubles S0,<wbr/>O0,<wbr/>S1,<wbr/>O1,...,<wbr/> where S0 and O0 are the coefficients
21128 for the red channel,<wbr/> S1 and O1 are the coefficients for the first green
21129 channel,<wbr/> etc.<wbr/></p>
21133 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21134 <!-- end of entry -->
21137 <tr class="entry" id="dynamic_android.sensor.profileHueSatMap">
21138 <td class="entry_name
21140 android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map
21142 <td class="entry_type">
21143 <span class="entry_type_name">float</span>
21144 <span class="entry_type_container">x</span>
21146 <span class="entry_type_array">
21147 hue_samples x saturation_samples x value_samples x 3
21149 <span class="entry_type_visibility"> [system]</span>
21154 <div class="entry_type_notes">Mapping for hue,<wbr/> saturation,<wbr/> and value</div>
21157 </td> <!-- entry_type -->
21159 <td class="entry_description">
21160 <p>A mapping containing a hue shift,<wbr/> saturation scale,<wbr/> and value scale
21161 for each pixel.<wbr/></p>
21164 <td class="entry_units">
21166 The hue shift is given in degrees; saturation and value scale factors are
21167 unitless and are between 0 and 1 inclusive
21171 <td class="entry_range">
21174 <td class="entry_tags">
21175 <ul class="entry_tags">
21176 <li><a href="#tag_RAW">RAW</a></li>
21181 <tr class="entries_header">
21182 <th class="th_details" colspan="5">Details</th>
21184 <tr class="entry_cont">
21185 <td class="entry_details" colspan="5">
21186 <p>hue_<wbr/>samples,<wbr/> saturation_<wbr/>samples,<wbr/> and value_<wbr/>samples are given in
21187 <a href="#static_android.sensor.profileHueSatMapDimensions">android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map<wbr/>Dimensions</a>.<wbr/></p>
21188 <p>Each entry of this map contains three floats corresponding to the
21189 hue shift,<wbr/> saturation scale,<wbr/> and value scale,<wbr/> respectively; where the
21190 hue shift has the lowest index.<wbr/> The map entries are stored in the key
21191 in nested loop order,<wbr/> with the value divisions in the outer loop,<wbr/> the
21192 hue divisions in the middle loop,<wbr/> and the saturation divisions in the
21193 inner loop.<wbr/> All zero input saturation entries are required to have a
21194 value scale factor of 1.<wbr/>0.<wbr/></p>
21199 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21200 <!-- end of entry -->
21203 <tr class="entry" id="dynamic_android.sensor.profileToneCurve">
21204 <td class="entry_name
21206 android.<wbr/>sensor.<wbr/>profile<wbr/>Tone<wbr/>Curve
21208 <td class="entry_type">
21209 <span class="entry_type_name">float</span>
21210 <span class="entry_type_container">x</span>
21212 <span class="entry_type_array">
21215 <span class="entry_type_visibility"> [system]</span>
21220 <div class="entry_type_notes">Samples defining a spline for a tone-mapping curve</div>
21223 </td> <!-- entry_type -->
21225 <td class="entry_description">
21226 <p>A list of x,<wbr/>y samples defining a tone-mapping curve for gamma adjustment.<wbr/></p>
21229 <td class="entry_units">
21232 <td class="entry_range">
21233 <p>Each sample has an input range of <code>[0,<wbr/> 1]</code> and an output range of
21234 <code>[0,<wbr/> 1]</code>.<wbr/> The first sample is required to be <code>(0,<wbr/> 0)</code>,<wbr/> and the last
21235 sample is required to be <code>(1,<wbr/> 1)</code>.<wbr/></p>
21238 <td class="entry_tags">
21239 <ul class="entry_tags">
21240 <li><a href="#tag_RAW">RAW</a></li>
21245 <tr class="entries_header">
21246 <th class="th_details" colspan="5">Details</th>
21248 <tr class="entry_cont">
21249 <td class="entry_details" colspan="5">
21250 <p>This key contains a default tone curve that can be applied while
21251 processing the image as a starting point for user adjustments.<wbr/>
21252 The curve is specified as a list of value pairs in linear gamma.<wbr/>
21253 The curve is interpolated using a cubic spline.<wbr/></p>
21258 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21259 <!-- end of entry -->
21262 <tr class="entry" id="dynamic_android.sensor.greenSplit">
21263 <td class="entry_name
21265 android.<wbr/>sensor.<wbr/>green<wbr/>Split
21267 <td class="entry_type">
21268 <span class="entry_type_name">float</span>
21270 <span class="entry_type_visibility"> [public]</span>
21277 </td> <!-- entry_type -->
21279 <td class="entry_description">
21280 <p>The worst-case divergence between Bayer green channels.<wbr/></p>
21283 <td class="entry_units">
21286 <td class="entry_range">
21290 <td class="entry_tags">
21291 <ul class="entry_tags">
21292 <li><a href="#tag_RAW">RAW</a></li>
21297 <tr class="entries_header">
21298 <th class="th_details" colspan="5">Details</th>
21300 <tr class="entry_cont">
21301 <td class="entry_details" colspan="5">
21302 <p>This value is an estimate of the worst case split between the
21303 Bayer green channels in the red and blue rows in the sensor color
21304 filter array.<wbr/></p>
21305 <p>The green split is calculated as follows:</p>
21307 <li>A 5x5 pixel (or larger) window W within the active sensor array is
21308 chosen.<wbr/> The term 'pixel' here is taken to mean a group of 4 Bayer
21309 mosaic channels (R,<wbr/> Gr,<wbr/> Gb,<wbr/> B).<wbr/> The location and size of the window
21310 chosen is implementation defined,<wbr/> and should be chosen to provide a
21311 green split estimate that is both representative of the entire image
21312 for this camera sensor,<wbr/> and can be calculated quickly.<wbr/></li>
21313 <li>The arithmetic mean of the green channels from the red
21314 rows (mean_<wbr/>Gr) within W is computed.<wbr/></li>
21315 <li>The arithmetic mean of the green channels from the blue
21316 rows (mean_<wbr/>Gb) within W is computed.<wbr/></li>
21317 <li>The maximum ratio R of the two means is computed as follows:
21318 <code>R = max((mean_<wbr/>Gr + 1)/<wbr/>(mean_<wbr/>Gb + 1),<wbr/> (mean_<wbr/>Gb + 1)/<wbr/>(mean_<wbr/>Gr + 1))</code></li>
21320 <p>The ratio R is the green split divergence reported for this property,<wbr/>
21321 which represents how much the green channels differ in the mosaic
21322 pattern.<wbr/> This value is typically used to determine the treatment of
21323 the green mosaic channels when demosaicing.<wbr/></p>
21324 <p>The green split value can be roughly interpreted as follows:</p>
21326 <li>R < 1.<wbr/>03 is a negligible split (<3% divergence).<wbr/></li>
21327 <li>1.<wbr/>20 <= R >= 1.<wbr/>03 will require some software
21328 correction to avoid demosaic errors (3-20% divergence).<wbr/></li>
21329 <li>R > 1.<wbr/>20 will require strong software correction to produce
21330 a usuable image (>20% divergence).<wbr/></li>
21335 <tr class="entries_header">
21336 <th class="th_details" colspan="5">HAL Implementation Details</th>
21338 <tr class="entry_cont">
21339 <td class="entry_details" colspan="5">
21340 <p>The green split given may be a static value based on prior
21341 characterization of the camera sensor using the green split
21342 calculation method given here over a large,<wbr/> representative,<wbr/> sample
21343 set of images.<wbr/> Other methods of calculation that produce equivalent
21344 results,<wbr/> and can be interpreted in the same manner,<wbr/> may be used.<wbr/></p>
21348 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21349 <!-- end of entry -->
21352 <tr class="entry" id="dynamic_android.sensor.testPatternData">
21353 <td class="entry_name
21355 android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data
21357 <td class="entry_type">
21358 <span class="entry_type_name">int32</span>
21359 <span class="entry_type_container">x</span>
21361 <span class="entry_type_array">
21364 <span class="entry_type_visibility"> [public]</span>
21371 </td> <!-- entry_type -->
21373 <td class="entry_description">
21374 <p>A pixel <code>[R,<wbr/> G_<wbr/>even,<wbr/> G_<wbr/>odd,<wbr/> B]</code> that supplies the test pattern
21375 when <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a> is SOLID_<wbr/>COLOR.<wbr/></p>
21378 <td class="entry_units">
21381 <td class="entry_range">
21384 <td class="entry_tags">
21388 <tr class="entries_header">
21389 <th class="th_details" colspan="5">Details</th>
21391 <tr class="entry_cont">
21392 <td class="entry_details" colspan="5">
21393 <p>Each color channel is treated as an unsigned 32-bit integer.<wbr/>
21394 The camera device then uses the most significant X bits
21395 that correspond to how many bits are in its Bayer raw sensor
21397 <p>For example,<wbr/> a sensor with RAW10 Bayer output would use the
21398 10 most significant bits from each color channel.<wbr/></p>
21402 <tr class="entries_header">
21403 <th class="th_details" colspan="5">HAL Implementation Details</th>
21405 <tr class="entry_cont">
21406 <td class="entry_details" colspan="5">
21411 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21412 <!-- end of entry -->
21415 <tr class="entry" id="dynamic_android.sensor.testPatternMode">
21416 <td class="entry_name
21418 android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode
21420 <td class="entry_type">
21421 <span class="entry_type_name entry_type_name_enum">int32</span>
21423 <span class="entry_type_visibility"> [public]</span>
21429 <ul class="entry_type_enum">
21431 <span class="entry_type_enum_name">OFF</span>
21432 <span class="entry_type_enum_notes"><p>No test pattern mode is used,<wbr/> and the camera
21433 device returns captures from the image sensor.<wbr/></p>
21434 <p>This is the default if the key is not set.<wbr/></p></span>
21437 <span class="entry_type_enum_name">SOLID_COLOR</span>
21438 <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
21439 respective color channel provided in
21440 <a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a>.<wbr/></p>
21441 <p>For example:</p>
21442 <pre><code>android.<wbr/>testPatternData = [0,<wbr/> 0xFFFFFFFF,<wbr/> 0xFFFFFFFF,<wbr/> 0]
21444 <p>All green pixels are 100% green.<wbr/> All red/<wbr/>blue pixels are black.<wbr/></p>
21445 <pre><code>android.<wbr/>testPatternData = [0xFFFFFFFF,<wbr/> 0,<wbr/> 0xFFFFFFFF,<wbr/> 0]
21447 <p>All red pixels are 100% red.<wbr/> Only the odd green pixels
21448 are 100% green.<wbr/> All blue pixels are 100% black.<wbr/></p></span>
21451 <span class="entry_type_enum_name">COLOR_BARS</span>
21452 <span class="entry_type_enum_notes"><p>All pixel data is replaced with an 8-bar color pattern.<wbr/></p>
21453 <p>The vertical bars (left-to-right) are as follows:</p>
21455 <li>100% white</li>
21464 <p>In general the image would look like the following:</p>
21465 <pre><code>W Y C G M R B K
21470 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
21471 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
21472 .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
21474 (B = Blue,<wbr/> K = Black)
21476 <p>Each bar should take up 1/<wbr/>8 of the sensor pixel array width.<wbr/>
21477 When this is not possible,<wbr/> the bar size should be rounded
21478 down to the nearest integer and the pattern can repeat
21479 on the right side.<wbr/></p>
21480 <p>Each bar's height must always take up the full sensor
21481 pixel array height.<wbr/></p>
21482 <p>Each pixel in this test pattern must be set to either
21483 0% intensity or 100% intensity.<wbr/></p></span>
21486 <span class="entry_type_enum_name">COLOR_BARS_FADE_TO_GRAY</span>
21487 <span class="entry_type_enum_notes"><p>The test pattern is similar to COLOR_<wbr/>BARS,<wbr/> except that
21488 each bar should start at its specified color at the top,<wbr/>
21489 and fade to gray at the bottom.<wbr/></p>
21490 <p>Furthermore each bar is further subdivided into a left and
21491 right half.<wbr/> The left half should have a smooth gradient,<wbr/>
21492 and the right half should have a quantized gradient.<wbr/></p>
21493 <p>In particular,<wbr/> the right half's should consist of blocks of the
21494 same color for 1/<wbr/>16th active sensor pixel array width.<wbr/></p>
21495 <p>The least significant bits in the quantized gradient should
21496 be copied from the most significant bits of the smooth gradient.<wbr/></p>
21497 <p>The height of each bar should always be a multiple of 128.<wbr/>
21498 When this is not the case,<wbr/> the pattern should repeat at the bottom
21499 of the image.<wbr/></p></span>
21502 <span class="entry_type_enum_name">PN9</span>
21503 <span class="entry_type_enum_notes"><p>All pixel data is replaced by a pseudo-random sequence
21504 generated from a PN9 512-bit sequence (typically implemented
21505 in hardware with a linear feedback shift register).<wbr/></p>
21506 <p>The generator should be reset at the beginning of each frame,<wbr/>
21507 and thus each subsequent raw frame with this test pattern should
21508 be exactly the same as the last.<wbr/></p></span>
21511 <span class="entry_type_enum_name">CUSTOM1</span>
21512 <span class="entry_type_enum_value">256</span>
21513 <span class="entry_type_enum_notes"><p>The first custom test pattern.<wbr/> All custom patterns that are
21514 available only on this camera device are at least this numeric
21516 <p>All of the custom test patterns will be static
21517 (that is the raw image must not vary from frame to frame).<wbr/></p></span>
21521 </td> <!-- entry_type -->
21523 <td class="entry_description">
21524 <p>When enabled,<wbr/> the sensor sends a test pattern instead of
21525 doing a real exposure from the camera.<wbr/></p>
21528 <td class="entry_units">
21531 <td class="entry_range">
21532 <p><a href="#static_android.sensor.availableTestPatternModes">android.<wbr/>sensor.<wbr/>available<wbr/>Test<wbr/>Pattern<wbr/>Modes</a></p>
21535 <td class="entry_tags">
21539 <tr class="entries_header">
21540 <th class="th_details" colspan="5">Details</th>
21542 <tr class="entry_cont">
21543 <td class="entry_details" colspan="5">
21544 <p>When a test pattern is enabled,<wbr/> all manual sensor controls specified
21545 by android.<wbr/>sensor.<wbr/>* will be ignored.<wbr/> All other controls should
21546 work as normal.<wbr/></p>
21547 <p>For example,<wbr/> if manual flash is enabled,<wbr/> flash firing should still
21548 occur (and that the test pattern remain unmodified,<wbr/> since the flash
21549 would not actually affect it).<wbr/></p>
21550 <p>Defaults to OFF.<wbr/></p>
21554 <tr class="entries_header">
21555 <th class="th_details" colspan="5">HAL Implementation Details</th>
21557 <tr class="entry_cont">
21558 <td class="entry_details" colspan="5">
21559 <p>All test patterns are specified in the Bayer domain.<wbr/></p>
21560 <p>The HAL may choose to substitute test patterns from the sensor
21561 with test patterns from on-device memory.<wbr/> In that case,<wbr/> it should be
21562 indistinguishable to the ISP whether the data came from the
21563 sensor interconnect bus (such as CSI2) or memory.<wbr/></p>
21567 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21568 <!-- end of entry -->
21571 <tr class="entry" id="dynamic_android.sensor.rollingShutterSkew">
21572 <td class="entry_name
21574 android.<wbr/>sensor.<wbr/>rolling<wbr/>Shutter<wbr/>Skew
21576 <td class="entry_type">
21577 <span class="entry_type_name">int64</span>
21579 <span class="entry_type_visibility"> [public]</span>
21582 <span class="entry_type_hwlevel">[limited] </span>
21587 </td> <!-- entry_type -->
21589 <td class="entry_description">
21590 <p>Duration between the start of first row exposure
21591 and the start of last row exposure.<wbr/></p>
21594 <td class="entry_units">
21598 <td class="entry_range">
21599 <p>>= 0 and <
21600 <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>.<wbr/></p>
21603 <td class="entry_tags">
21604 <ul class="entry_tags">
21605 <li><a href="#tag_V1">V1</a></li>
21610 <tr class="entries_header">
21611 <th class="th_details" colspan="5">Details</th>
21613 <tr class="entry_cont">
21614 <td class="entry_details" colspan="5">
21615 <p>This is the exposure time skew between the first and last
21616 row exposure start times.<wbr/> The first row and the last row are
21617 the first and last rows inside of the
21618 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
21619 <p>For typical camera sensors that use rolling shutters,<wbr/> this is also equivalent
21620 to the frame readout time.<wbr/></p>
21624 <tr class="entries_header">
21625 <th class="th_details" colspan="5">HAL Implementation Details</th>
21627 <tr class="entry_cont">
21628 <td class="entry_details" colspan="5">
21629 <p>The HAL must report <code>0</code> if the sensor is using global shutter,<wbr/> where all pixels begin
21630 exposure at the same time.<wbr/></p>
21634 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21635 <!-- end of entry -->
21638 <tr class="entry" id="dynamic_android.sensor.dynamicBlackLevel">
21639 <td class="entry_name
21641 android.<wbr/>sensor.<wbr/>dynamic<wbr/>Black<wbr/>Level
21643 <td class="entry_type">
21644 <span class="entry_type_name">float</span>
21645 <span class="entry_type_container">x</span>
21647 <span class="entry_type_array">
21650 <span class="entry_type_visibility"> [public]</span>
21655 <div class="entry_type_notes">2x2 raw count block</div>
21658 </td> <!-- entry_type -->
21660 <td class="entry_description">
21661 <p>A per-frame dynamic black level offset for each of the color filter
21662 arrangement (CFA) mosaic channels.<wbr/></p>
21665 <td class="entry_units">
21668 <td class="entry_range">
21669 <p>>= 0 for each.<wbr/></p>
21672 <td class="entry_tags">
21673 <ul class="entry_tags">
21674 <li><a href="#tag_RAW">RAW</a></li>
21679 <tr class="entries_header">
21680 <th class="th_details" colspan="5">Details</th>
21682 <tr class="entry_cont">
21683 <td class="entry_details" colspan="5">
21684 <p>Camera sensor black levels may vary dramatically for different
21685 capture settings (e.<wbr/>g.<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>).<wbr/> The fixed black
21686 level reported by <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> may be too
21687 inaccurate to represent the actual value on a per-frame basis.<wbr/> The
21688 camera device internal pipeline relies on reliable black level values
21689 to process the raw images appropriately.<wbr/> To get the best image
21690 quality,<wbr/> the camera device may choose to estimate the per frame black
21691 level values either based on optically shielded black regions
21692 (<a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a>) or its internal model.<wbr/></p>
21693 <p>This key reports the camera device estimated per-frame zero light
21694 value for each of the CFA mosaic channels in the camera sensor.<wbr/> The
21695 <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> may only represent a coarse
21696 approximation of the actual black level values.<wbr/> This value is the
21697 black level used in camera device internal image processing pipeline
21698 and generally more accurate than the fixed black level values.<wbr/>
21699 However,<wbr/> since they are estimated values by the camera device,<wbr/> they
21700 may not be as accurate as the black level values calculated from the
21701 optical black pixels reported by <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a>.<wbr/></p>
21702 <p>The values are given in the same order as channels listed for the CFA
21703 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
21704 nth value given corresponds to the black level offset for the nth
21705 color channel listed in the CFA.<wbr/></p>
21706 <p>This key will be available if <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> is
21707 available or the camera device advertises this key via
21708 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureResultKeys">CameraCharacteristics#getAvailableCaptureResultKeys</a>.<wbr/></p>
21712 <tr class="entries_header">
21713 <th class="th_details" colspan="5">HAL Implementation Details</th>
21715 <tr class="entry_cont">
21716 <td class="entry_details" colspan="5">
21717 <p>The values are given in row-column scan order,<wbr/> with the first value
21718 corresponding to the element of the CFA in row=0,<wbr/> column=0.<wbr/></p>
21722 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21723 <!-- end of entry -->
21726 <tr class="entry" id="dynamic_android.sensor.dynamicWhiteLevel">
21727 <td class="entry_name
21729 android.<wbr/>sensor.<wbr/>dynamic<wbr/>White<wbr/>Level
21731 <td class="entry_type">
21732 <span class="entry_type_name">int32</span>
21734 <span class="entry_type_visibility"> [public]</span>
21741 </td> <!-- entry_type -->
21743 <td class="entry_description">
21744 <p>Maximum raw value output by sensor for this frame.<wbr/></p>
21747 <td class="entry_units">
21750 <td class="entry_range">
21754 <td class="entry_tags">
21755 <ul class="entry_tags">
21756 <li><a href="#tag_RAW">RAW</a></li>
21761 <tr class="entries_header">
21762 <th class="th_details" colspan="5">Details</th>
21764 <tr class="entry_cont">
21765 <td class="entry_details" colspan="5">
21766 <p>Since the <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> may change for different
21767 capture settings (e.<wbr/>g.,<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>),<wbr/> the white
21768 level will change accordingly.<wbr/> This key is similar to
21769 <a href="#static_android.sensor.info.whiteLevel">android.<wbr/>sensor.<wbr/>info.<wbr/>white<wbr/>Level</a>,<wbr/> but specifies the camera device
21770 estimated white level for each frame.<wbr/></p>
21771 <p>This key will be available if <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> is
21772 available or the camera device advertises this key via
21773 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>.<wbr/></p>
21777 <tr class="entries_header">
21778 <th class="th_details" colspan="5">HAL Implementation Details</th>
21780 <tr class="entry_cont">
21781 <td class="entry_details" colspan="5">
21782 <p>The full bit depth of the sensor must be available in the raw data,<wbr/>
21783 so the value for linear sensors should not be significantly lower
21784 than maximum raw value supported,<wbr/> i.<wbr/>e.<wbr/> 2^(sensor bits per pixel).<wbr/></p>
21788 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21789 <!-- end of entry -->
21793 <!-- end of kind -->
21796 <!-- end of section -->
21797 <tr><td colspan="6" id="section_shading" class="section">shading</td></tr>
21800 <tr><td colspan="6" class="kind">controls</td></tr>
21802 <thead class="entries_header">
21804 <th class="th_name">Property Name</th>
21805 <th class="th_type">Type</th>
21806 <th class="th_description">Description</th>
21807 <th class="th_units">Units</th>
21808 <th class="th_range">Range</th>
21809 <th class="th_tags">Tags</th>
21824 <tr class="entry" id="controls_android.shading.mode">
21825 <td class="entry_name
21827 android.<wbr/>shading.<wbr/>mode
21829 <td class="entry_type">
21830 <span class="entry_type_name entry_type_name_enum">byte</span>
21832 <span class="entry_type_visibility"> [public]</span>
21835 <span class="entry_type_hwlevel">[full] </span>
21839 <ul class="entry_type_enum">
21841 <span class="entry_type_enum_name">OFF</span>
21842 <span class="entry_type_enum_notes"><p>No lens shading correction is applied.<wbr/></p></span>
21845 <span class="entry_type_enum_name">FAST</span>
21846 <span class="entry_type_enum_notes"><p>Apply lens shading corrections,<wbr/> without slowing
21847 frame rate relative to sensor raw output</p></span>
21850 <span class="entry_type_enum_name">HIGH_QUALITY</span>
21851 <span class="entry_type_enum_notes"><p>Apply high-quality lens shading correction,<wbr/> at the
21852 cost of possibly reduced frame rate.<wbr/></p></span>
21856 </td> <!-- entry_type -->
21858 <td class="entry_description">
21859 <p>Quality of lens shading correction applied
21860 to the image data.<wbr/></p>
21863 <td class="entry_units">
21866 <td class="entry_range">
21867 <p><a href="#static_android.shading.availableModes">android.<wbr/>shading.<wbr/>available<wbr/>Modes</a></p>
21870 <td class="entry_tags">
21874 <tr class="entries_header">
21875 <th class="th_details" colspan="5">Details</th>
21877 <tr class="entry_cont">
21878 <td class="entry_details" colspan="5">
21879 <p>When set to OFF mode,<wbr/> no lens shading correction will be applied by the
21880 camera device,<wbr/> and an identity lens shading map data will be provided
21881 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
21882 shading map with size of <code>[ 4,<wbr/> 3 ]</code>,<wbr/>
21883 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
21884 map shown below:</p>
21885 <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/>
21886 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/>
21887 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/>
21888 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/>
21889 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/>
21890 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 ]
21892 <p>When set to other modes,<wbr/> lens shading correction will be applied by the camera
21893 device.<wbr/> Applications can request lens shading map data by setting
21894 <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
21895 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
21896 data will be the one applied by the camera device for this capture request.<wbr/></p>
21897 <p>The shading map data may depend on the auto-exposure (AE) and AWB statistics,<wbr/> therefore
21898 the reliability of the map data may be affected by the AE and AWB algorithms.<wbr/> When AE and
21899 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>
21900 OFF),<wbr/> to get best results,<wbr/> it is recommended that the applications wait for the AE and AWB
21901 to be converged before using the returned shading map data.<wbr/></p>
21906 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21907 <!-- end of entry -->
21910 <tr class="entry" id="controls_android.shading.strength">
21911 <td class="entry_name
21913 android.<wbr/>shading.<wbr/>strength
21915 <td class="entry_type">
21916 <span class="entry_type_name">byte</span>
21918 <span class="entry_type_visibility"> [system]</span>
21925 </td> <!-- entry_type -->
21927 <td class="entry_description">
21928 <p>Control the amount of shading correction
21929 applied to the images</p>
21932 <td class="entry_units">
21933 unitless: 1-10; 10 is full shading
21937 <td class="entry_range">
21940 <td class="entry_tags">
21941 <ul class="entry_tags">
21942 <li><a href="#tag_FUTURE">FUTURE</a></li>
21949 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
21950 <!-- end of entry -->
21954 <!-- end of kind -->
21956 <tr><td colspan="6" class="kind">dynamic</td></tr>
21958 <thead class="entries_header">
21960 <th class="th_name">Property Name</th>
21961 <th class="th_type">Type</th>
21962 <th class="th_description">Description</th>
21963 <th class="th_units">Units</th>
21964 <th class="th_range">Range</th>
21965 <th class="th_tags">Tags</th>
21980 <tr class="entry" id="dynamic_android.shading.mode">
21981 <td class="entry_name
21983 android.<wbr/>shading.<wbr/>mode
21985 <td class="entry_type">
21986 <span class="entry_type_name entry_type_name_enum">byte</span>
21988 <span class="entry_type_visibility"> [public]</span>
21991 <span class="entry_type_hwlevel">[full] </span>
21995 <ul class="entry_type_enum">
21997 <span class="entry_type_enum_name">OFF</span>
21998 <span class="entry_type_enum_notes"><p>No lens shading correction is applied.<wbr/></p></span>
22001 <span class="entry_type_enum_name">FAST</span>
22002 <span class="entry_type_enum_notes"><p>Apply lens shading corrections,<wbr/> without slowing
22003 frame rate relative to sensor raw output</p></span>
22006 <span class="entry_type_enum_name">HIGH_QUALITY</span>
22007 <span class="entry_type_enum_notes"><p>Apply high-quality lens shading correction,<wbr/> at the
22008 cost of possibly reduced frame rate.<wbr/></p></span>
22012 </td> <!-- entry_type -->
22014 <td class="entry_description">
22015 <p>Quality of lens shading correction applied
22016 to the image data.<wbr/></p>
22019 <td class="entry_units">
22022 <td class="entry_range">
22023 <p><a href="#static_android.shading.availableModes">android.<wbr/>shading.<wbr/>available<wbr/>Modes</a></p>
22026 <td class="entry_tags">
22030 <tr class="entries_header">
22031 <th class="th_details" colspan="5">Details</th>
22033 <tr class="entry_cont">
22034 <td class="entry_details" colspan="5">
22035 <p>When set to OFF mode,<wbr/> no lens shading correction will be applied by the
22036 camera device,<wbr/> and an identity lens shading map data will be provided
22037 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
22038 shading map with size of <code>[ 4,<wbr/> 3 ]</code>,<wbr/>
22039 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
22040 map shown below:</p>
22041 <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/>
22042 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/>
22043 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/>
22044 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/>
22045 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/>
22046 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 ]
22048 <p>When set to other modes,<wbr/> lens shading correction will be applied by the camera
22049 device.<wbr/> Applications can request lens shading map data by setting
22050 <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
22051 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
22052 data will be the one applied by the camera device for this capture request.<wbr/></p>
22053 <p>The shading map data may depend on the auto-exposure (AE) and AWB statistics,<wbr/> therefore
22054 the reliability of the map data may be affected by the AE and AWB algorithms.<wbr/> When AE and
22055 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>
22056 OFF),<wbr/> to get best results,<wbr/> it is recommended that the applications wait for the AE and AWB
22057 to be converged before using the returned shading map data.<wbr/></p>
22062 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22063 <!-- end of entry -->
22067 <!-- end of kind -->
22069 <tr><td colspan="6" class="kind">static</td></tr>
22071 <thead class="entries_header">
22073 <th class="th_name">Property Name</th>
22074 <th class="th_type">Type</th>
22075 <th class="th_description">Description</th>
22076 <th class="th_units">Units</th>
22077 <th class="th_range">Range</th>
22078 <th class="th_tags">Tags</th>
22093 <tr class="entry" id="static_android.shading.availableModes">
22094 <td class="entry_name
22096 android.<wbr/>shading.<wbr/>available<wbr/>Modes
22098 <td class="entry_type">
22099 <span class="entry_type_name">byte</span>
22100 <span class="entry_type_container">x</span>
22102 <span class="entry_type_array">
22105 <span class="entry_type_visibility"> [public as enumList]</span>
22108 <span class="entry_type_hwlevel">[legacy] </span>
22111 <div class="entry_type_notes">List of enums (android.<wbr/>shading.<wbr/>mode).<wbr/></div>
22114 </td> <!-- entry_type -->
22116 <td class="entry_description">
22117 <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>
22120 <td class="entry_units">
22123 <td class="entry_range">
22124 <p>Any value listed in <a href="#controls_android.shading.mode">android.<wbr/>shading.<wbr/>mode</a></p>
22127 <td class="entry_tags">
22131 <tr class="entries_header">
22132 <th class="th_details" colspan="5">Details</th>
22134 <tr class="entry_cont">
22135 <td class="entry_details" colspan="5">
22136 <p>This list contains lens shading modes that can be set for the camera device.<wbr/>
22137 Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always
22138 list OFF and FAST mode.<wbr/> This includes all FULL level devices.<wbr/>
22139 LEGACY devices will always only support FAST mode.<wbr/></p>
22143 <tr class="entries_header">
22144 <th class="th_details" colspan="5">HAL Implementation Details</th>
22146 <tr class="entry_cont">
22147 <td class="entry_details" colspan="5">
22148 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if lens shading correction control is
22149 available on the camera device,<wbr/> but the underlying implementation can be the same for
22150 both modes.<wbr/> That is,<wbr/> if the highest quality implementation on the camera device does not
22151 slow down capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
22155 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22156 <!-- end of entry -->
22160 <!-- end of kind -->
22163 <!-- end of section -->
22164 <tr><td colspan="6" id="section_statistics" class="section">statistics</td></tr>
22167 <tr><td colspan="6" class="kind">controls</td></tr>
22169 <thead class="entries_header">
22171 <th class="th_name">Property Name</th>
22172 <th class="th_type">Type</th>
22173 <th class="th_description">Description</th>
22174 <th class="th_units">Units</th>
22175 <th class="th_range">Range</th>
22176 <th class="th_tags">Tags</th>
22191 <tr class="entry" id="controls_android.statistics.faceDetectMode">
22192 <td class="entry_name
22194 android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode
22196 <td class="entry_type">
22197 <span class="entry_type_name entry_type_name_enum">byte</span>
22199 <span class="entry_type_visibility"> [public]</span>
22202 <span class="entry_type_hwlevel">[legacy] </span>
22206 <ul class="entry_type_enum">
22208 <span class="entry_type_enum_name">OFF</span>
22209 <span class="entry_type_enum_notes"><p>Do not include face detection statistics in capture
22210 results.<wbr/></p></span>
22213 <span class="entry_type_enum_name">SIMPLE</span>
22214 <span class="entry_type_enum_optional">[optional]</span>
22215 <span class="entry_type_enum_notes"><p>Return face rectangle and confidence values only.<wbr/></p></span>
22218 <span class="entry_type_enum_name">FULL</span>
22219 <span class="entry_type_enum_optional">[optional]</span>
22220 <span class="entry_type_enum_notes"><p>Return all face
22221 metadata.<wbr/></p>
22222 <p>In this mode,<wbr/> face rectangles,<wbr/> scores,<wbr/> landmarks,<wbr/> and face IDs are all valid.<wbr/></p></span>
22226 </td> <!-- entry_type -->
22228 <td class="entry_description">
22229 <p>Operating mode for the face detector
22233 <td class="entry_units">
22236 <td class="entry_range">
22237 <p><a href="#static_android.statistics.info.availableFaceDetectModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Face<wbr/>Detect<wbr/>Modes</a></p>
22240 <td class="entry_tags">
22241 <ul class="entry_tags">
22242 <li><a href="#tag_BC">BC</a></li>
22247 <tr class="entries_header">
22248 <th class="th_details" colspan="5">Details</th>
22250 <tr class="entry_cont">
22251 <td class="entry_details" colspan="5">
22252 <p>Whether face detection is enabled,<wbr/> and whether it
22253 should output just the basic fields or the full set of
22258 <tr class="entries_header">
22259 <th class="th_details" colspan="5">HAL Implementation Details</th>
22261 <tr class="entry_cont">
22262 <td class="entry_details" colspan="5">
22263 <p>SIMPLE mode must fill in <a href="#dynamic_android.statistics.faceRectangles">android.<wbr/>statistics.<wbr/>face<wbr/>Rectangles</a> and
22264 <a href="#dynamic_android.statistics.faceScores">android.<wbr/>statistics.<wbr/>face<wbr/>Scores</a>.<wbr/>
22265 FULL mode must also fill in <a href="#dynamic_android.statistics.faceIds">android.<wbr/>statistics.<wbr/>face<wbr/>Ids</a>,<wbr/> and
22266 <a href="#dynamic_android.statistics.faceLandmarks">android.<wbr/>statistics.<wbr/>face<wbr/>Landmarks</a>.<wbr/></p>
22270 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22271 <!-- end of entry -->
22274 <tr class="entry" id="controls_android.statistics.histogramMode">
22275 <td class="entry_name
22277 android.<wbr/>statistics.<wbr/>histogram<wbr/>Mode
22279 <td class="entry_type">
22280 <span class="entry_type_name entry_type_name_enum">byte</span>
22282 <span class="entry_type_visibility"> [system as boolean]</span>
22288 <ul class="entry_type_enum">
22290 <span class="entry_type_enum_name">OFF</span>
22293 <span class="entry_type_enum_name">ON</span>
22297 </td> <!-- entry_type -->
22299 <td class="entry_description">
22300 <p>Operating mode for histogram
22304 <td class="entry_units">
22307 <td class="entry_range">
22310 <td class="entry_tags">
22311 <ul class="entry_tags">
22312 <li><a href="#tag_FUTURE">FUTURE</a></li>
22319 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22320 <!-- end of entry -->
22323 <tr class="entry" id="controls_android.statistics.sharpnessMapMode">
22324 <td class="entry_name
22326 android.<wbr/>statistics.<wbr/>sharpness<wbr/>Map<wbr/>Mode
22328 <td class="entry_type">
22329 <span class="entry_type_name entry_type_name_enum">byte</span>
22331 <span class="entry_type_visibility"> [system as boolean]</span>
22337 <ul class="entry_type_enum">
22339 <span class="entry_type_enum_name">OFF</span>
22342 <span class="entry_type_enum_name">ON</span>
22346 </td> <!-- entry_type -->
22348 <td class="entry_description">
22349 <p>Operating mode for sharpness map
22353 <td class="entry_units">
22356 <td class="entry_range">
22359 <td class="entry_tags">
22360 <ul class="entry_tags">
22361 <li><a href="#tag_FUTURE">FUTURE</a></li>
22368 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22369 <!-- end of entry -->
22372 <tr class="entry" id="controls_android.statistics.hotPixelMapMode">
22373 <td class="entry_name
22375 android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map<wbr/>Mode
22377 <td class="entry_type">
22378 <span class="entry_type_name entry_type_name_enum">byte</span>
22380 <span class="entry_type_visibility"> [public as boolean]</span>
22386 <ul class="entry_type_enum">
22388 <span class="entry_type_enum_name">OFF</span>
22389 <span class="entry_type_enum_notes"><p>Hot pixel map production is disabled.<wbr/></p></span>
22392 <span class="entry_type_enum_name">ON</span>
22393 <span class="entry_type_enum_notes"><p>Hot pixel map production is enabled.<wbr/></p></span>
22397 </td> <!-- entry_type -->
22399 <td class="entry_description">
22400 <p>Operating mode for hot pixel map generation.<wbr/></p>
22403 <td class="entry_units">
22406 <td class="entry_range">
22407 <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>
22410 <td class="entry_tags">
22411 <ul class="entry_tags">
22412 <li><a href="#tag_V1">V1</a></li>
22413 <li><a href="#tag_RAW">RAW</a></li>
22418 <tr class="entries_header">
22419 <th class="th_details" colspan="5">Details</th>
22421 <tr class="entry_cont">
22422 <td class="entry_details" colspan="5">
22423 <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/>
22424 If set to <code>false</code>,<wbr/> no hot pixel map will be returned.<wbr/></p>
22429 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22430 <!-- end of entry -->
22433 <tr class="entry" id="controls_android.statistics.lensShadingMapMode">
22434 <td class="entry_name
22436 android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode
22438 <td class="entry_type">
22439 <span class="entry_type_name entry_type_name_enum">byte</span>
22441 <span class="entry_type_visibility"> [public]</span>
22444 <span class="entry_type_hwlevel">[full] </span>
22448 <ul class="entry_type_enum">
22450 <span class="entry_type_enum_name">OFF</span>
22451 <span class="entry_type_enum_notes"><p>Do not include a lens shading map in the capture result.<wbr/></p></span>
22454 <span class="entry_type_enum_name">ON</span>
22455 <span class="entry_type_enum_notes"><p>Include a lens shading map in the capture result.<wbr/></p></span>
22459 </td> <!-- entry_type -->
22461 <td class="entry_description">
22462 <p>Whether the camera device will output the lens
22463 shading map in output result metadata.<wbr/></p>
22466 <td class="entry_units">
22469 <td class="entry_range">
22470 <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>
22473 <td class="entry_tags">
22474 <ul class="entry_tags">
22475 <li><a href="#tag_RAW">RAW</a></li>
22480 <tr class="entries_header">
22481 <th class="th_details" colspan="5">Details</th>
22483 <tr class="entry_cont">
22484 <td class="entry_details" colspan="5">
22485 <p>When set to ON,<wbr/>
22486 <a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> will be provided in
22487 the output result metadata.<wbr/></p>
22488 <p>ON is always supported on devices with the RAW capability.<wbr/></p>
22493 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22494 <!-- end of entry -->
22498 <!-- end of kind -->
22500 <tr><td colspan="6" class="kind">static</td></tr>
22502 <thead class="entries_header">
22504 <th class="th_name">Property Name</th>
22505 <th class="th_type">Type</th>
22506 <th class="th_description">Description</th>
22507 <th class="th_units">Units</th>
22508 <th class="th_range">Range</th>
22509 <th class="th_tags">Tags</th>
22526 <tr class="entry" id="static_android.statistics.info.availableFaceDetectModes">
22527 <td class="entry_name
22529 android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Face<wbr/>Detect<wbr/>Modes
22531 <td class="entry_type">
22532 <span class="entry_type_name">byte</span>
22533 <span class="entry_type_container">x</span>
22535 <span class="entry_type_array">
22538 <span class="entry_type_visibility"> [public as enumList]</span>
22541 <span class="entry_type_hwlevel">[legacy] </span>
22544 <div class="entry_type_notes">List of enums from android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</div>
22547 </td> <!-- entry_type -->
22549 <td class="entry_description">
22550 <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
22551 supported by this camera device.<wbr/></p>
22554 <td class="entry_units">
22557 <td class="entry_range">
22558 <p>Any value listed in <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a></p>
22561 <td class="entry_tags">
22565 <tr class="entries_header">
22566 <th class="th_details" colspan="5">Details</th>
22568 <tr class="entry_cont">
22569 <td class="entry_details" colspan="5">
22570 <p>OFF is always supported.<wbr/></p>
22575 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22576 <!-- end of entry -->
22579 <tr class="entry" id="static_android.statistics.info.histogramBucketCount">
22580 <td class="entry_name
22582 android.<wbr/>statistics.<wbr/>info.<wbr/>histogram<wbr/>Bucket<wbr/>Count
22584 <td class="entry_type">
22585 <span class="entry_type_name">int32</span>
22587 <span class="entry_type_visibility"> [system]</span>
22594 </td> <!-- entry_type -->
22596 <td class="entry_description">
22597 <p>Number of histogram buckets
22601 <td class="entry_units">
22604 <td class="entry_range">
22608 <td class="entry_tags">
22609 <ul class="entry_tags">
22610 <li><a href="#tag_FUTURE">FUTURE</a></li>
22617 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22618 <!-- end of entry -->
22621 <tr class="entry" id="static_android.statistics.info.maxFaceCount">
22622 <td class="entry_name
22624 android.<wbr/>statistics.<wbr/>info.<wbr/>max<wbr/>Face<wbr/>Count
22626 <td class="entry_type">
22627 <span class="entry_type_name">int32</span>
22629 <span class="entry_type_visibility"> [public]</span>
22632 <span class="entry_type_hwlevel">[legacy] </span>
22637 </td> <!-- entry_type -->
22639 <td class="entry_description">
22640 <p>The maximum number of simultaneously detectable
22644 <td class="entry_units">
22647 <td class="entry_range">
22648 <p>0 for cameras without available face detection; otherwise:
22649 <code>>=4</code> for LIMITED or FULL hwlevel devices or
22650 <code>>0</code> for LEGACY devices.<wbr/></p>
22653 <td class="entry_tags">
22654 <ul class="entry_tags">
22655 <li><a href="#tag_BC">BC</a></li>
22662 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22663 <!-- end of entry -->
22666 <tr class="entry" id="static_android.statistics.info.maxHistogramCount">
22667 <td class="entry_name
22669 android.<wbr/>statistics.<wbr/>info.<wbr/>max<wbr/>Histogram<wbr/>Count
22671 <td class="entry_type">
22672 <span class="entry_type_name">int32</span>
22674 <span class="entry_type_visibility"> [system]</span>
22681 </td> <!-- entry_type -->
22683 <td class="entry_description">
22684 <p>Maximum value possible for a histogram
22688 <td class="entry_units">
22691 <td class="entry_range">
22694 <td class="entry_tags">
22695 <ul class="entry_tags">
22696 <li><a href="#tag_FUTURE">FUTURE</a></li>
22703 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22704 <!-- end of entry -->
22707 <tr class="entry" id="static_android.statistics.info.maxSharpnessMapValue">
22708 <td class="entry_name
22710 android.<wbr/>statistics.<wbr/>info.<wbr/>max<wbr/>Sharpness<wbr/>Map<wbr/>Value
22712 <td class="entry_type">
22713 <span class="entry_type_name">int32</span>
22715 <span class="entry_type_visibility"> [system]</span>
22722 </td> <!-- entry_type -->
22724 <td class="entry_description">
22725 <p>Maximum value possible for a sharpness map
22729 <td class="entry_units">
22732 <td class="entry_range">
22735 <td class="entry_tags">
22736 <ul class="entry_tags">
22737 <li><a href="#tag_FUTURE">FUTURE</a></li>
22744 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22745 <!-- end of entry -->
22748 <tr class="entry" id="static_android.statistics.info.sharpnessMapSize">
22749 <td class="entry_name
22751 android.<wbr/>statistics.<wbr/>info.<wbr/>sharpness<wbr/>Map<wbr/>Size
22753 <td class="entry_type">
22754 <span class="entry_type_name">int32</span>
22755 <span class="entry_type_container">x</span>
22757 <span class="entry_type_array">
22760 <span class="entry_type_visibility"> [system as size]</span>
22765 <div class="entry_type_notes">width x height</div>
22768 </td> <!-- entry_type -->
22770 <td class="entry_description">
22771 <p>Dimensions of the sharpness
22775 <td class="entry_units">
22778 <td class="entry_range">
22779 <p>Must be at least 32 x 32</p>
22782 <td class="entry_tags">
22783 <ul class="entry_tags">
22784 <li><a href="#tag_FUTURE">FUTURE</a></li>
22791 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22792 <!-- end of entry -->
22795 <tr class="entry" id="static_android.statistics.info.availableHotPixelMapModes">
22796 <td class="entry_name
22798 android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Map<wbr/>Modes
22800 <td class="entry_type">
22801 <span class="entry_type_name">byte</span>
22802 <span class="entry_type_container">x</span>
22804 <span class="entry_type_array">
22807 <span class="entry_type_visibility"> [public as boolean]</span>
22812 <div class="entry_type_notes">list of enums</div>
22815 </td> <!-- entry_type -->
22817 <td class="entry_description">
22818 <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
22819 supported by this camera device.<wbr/></p>
22822 <td class="entry_units">
22825 <td class="entry_range">
22826 <p>Any value listed in <a href="#controls_android.statistics.hotPixelMapMode">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map<wbr/>Mode</a></p>
22829 <td class="entry_tags">
22830 <ul class="entry_tags">
22831 <li><a href="#tag_V1">V1</a></li>
22832 <li><a href="#tag_RAW">RAW</a></li>
22837 <tr class="entries_header">
22838 <th class="th_details" colspan="5">Details</th>
22840 <tr class="entry_cont">
22841 <td class="entry_details" colspan="5">
22842 <p>If no hotpixel map output is available for this camera device,<wbr/> this will contain only
22843 <code>false</code>.<wbr/></p>
22844 <p>ON is always supported on devices with the RAW capability.<wbr/></p>
22849 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22850 <!-- end of entry -->
22853 <tr class="entry" id="static_android.statistics.info.availableLensShadingMapModes">
22854 <td class="entry_name
22856 android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Lens<wbr/>Shading<wbr/>Map<wbr/>Modes
22858 <td class="entry_type">
22859 <span class="entry_type_name">byte</span>
22860 <span class="entry_type_container">x</span>
22862 <span class="entry_type_array">
22865 <span class="entry_type_visibility"> [public as enumList]</span>
22870 <div class="entry_type_notes">list of enums</div>
22873 </td> <!-- entry_type -->
22875 <td class="entry_description">
22876 <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
22877 are supported by this camera device.<wbr/></p>
22880 <td class="entry_units">
22883 <td class="entry_range">
22884 <p>Any value listed in <a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a></p>
22887 <td class="entry_tags">
22891 <tr class="entries_header">
22892 <th class="th_details" colspan="5">Details</th>
22894 <tr class="entry_cont">
22895 <td class="entry_details" colspan="5">
22896 <p>If no lens shading map output is available for this camera device,<wbr/> this key will
22897 contain only OFF.<wbr/></p>
22898 <p>ON is always supported on devices with the RAW capability.<wbr/>
22899 LEGACY mode devices will always only support OFF.<wbr/></p>
22904 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
22905 <!-- end of entry -->
22912 <!-- end of kind -->
22914 <tr><td colspan="6" class="kind">dynamic</td></tr>
22916 <thead class="entries_header">
22918 <th class="th_name">Property Name</th>
22919 <th class="th_type">Type</th>
22920 <th class="th_description">Description</th>
22921 <th class="th_units">Units</th>
22922 <th class="th_range">Range</th>
22923 <th class="th_tags">Tags</th>
22938 <tr class="entry" id="dynamic_android.statistics.faceDetectMode">
22939 <td class="entry_name
22941 android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode
22943 <td class="entry_type">
22944 <span class="entry_type_name entry_type_name_enum">byte</span>
22946 <span class="entry_type_visibility"> [public]</span>
22949 <span class="entry_type_hwlevel">[legacy] </span>
22953 <ul class="entry_type_enum">
22955 <span class="entry_type_enum_name">OFF</span>
22956 <span class="entry_type_enum_notes"><p>Do not include face detection statistics in capture
22957 results.<wbr/></p></span>
22960 <span class="entry_type_enum_name">SIMPLE</span>
22961 <span class="entry_type_enum_optional">[optional]</span>
22962 <span class="entry_type_enum_notes"><p>Return face rectangle and confidence values only.<wbr/></p></span>
22965 <span class="entry_type_enum_name">FULL</span>
22966 <span class="entry_type_enum_optional">[optional]</span>
22967 <span class="entry_type_enum_notes"><p>Return all face
22968 metadata.<wbr/></p>
22969 <p>In this mode,<wbr/> face rectangles,<wbr/> scores,<wbr/> landmarks,<wbr/> and face IDs are all valid.<wbr/></p></span>
22973 </td> <!-- entry_type -->
22975 <td class="entry_description">
22976 <p>Operating mode for the face detector
22980 <td class="entry_units">
22983 <td class="entry_range">
22984 <p><a href="#static_android.statistics.info.availableFaceDetectModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Face<wbr/>Detect<wbr/>Modes</a></p>
22987 <td class="entry_tags">
22988 <ul class="entry_tags">
22989 <li><a href="#tag_BC">BC</a></li>
22994 <tr class="entries_header">
22995 <th class="th_details" colspan="5">Details</th>
22997 <tr class="entry_cont">
22998 <td class="entry_details" colspan="5">
22999 <p>Whether face detection is enabled,<wbr/> and whether it
23000 should output just the basic fields or the full set of
23005 <tr class="entries_header">
23006 <th class="th_details" colspan="5">HAL Implementation Details</th>
23008 <tr class="entry_cont">
23009 <td class="entry_details" colspan="5">
23010 <p>SIMPLE mode must fill in <a href="#dynamic_android.statistics.faceRectangles">android.<wbr/>statistics.<wbr/>face<wbr/>Rectangles</a> and
23011 <a href="#dynamic_android.statistics.faceScores">android.<wbr/>statistics.<wbr/>face<wbr/>Scores</a>.<wbr/>
23012 FULL mode must also fill in <a href="#dynamic_android.statistics.faceIds">android.<wbr/>statistics.<wbr/>face<wbr/>Ids</a>,<wbr/> and
23013 <a href="#dynamic_android.statistics.faceLandmarks">android.<wbr/>statistics.<wbr/>face<wbr/>Landmarks</a>.<wbr/></p>
23017 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23018 <!-- end of entry -->
23021 <tr class="entry" id="dynamic_android.statistics.faceIds">
23022 <td class="entry_name
23024 android.<wbr/>statistics.<wbr/>face<wbr/>Ids
23026 <td class="entry_type">
23027 <span class="entry_type_name">int32</span>
23028 <span class="entry_type_container">x</span>
23030 <span class="entry_type_array">
23033 <span class="entry_type_visibility"> [ndk_public]</span>
23036 <span class="entry_type_hwlevel">[legacy] </span>
23041 </td> <!-- entry_type -->
23043 <td class="entry_description">
23044 <p>List of unique IDs for detected faces.<wbr/></p>
23047 <td class="entry_units">
23050 <td class="entry_range">
23053 <td class="entry_tags">
23054 <ul class="entry_tags">
23055 <li><a href="#tag_BC">BC</a></li>
23060 <tr class="entries_header">
23061 <th class="th_details" colspan="5">Details</th>
23063 <tr class="entry_cont">
23064 <td class="entry_details" colspan="5">
23065 <p>Each detected face is given a unique ID that is valid for as long as the face is visible
23066 to the camera device.<wbr/> A face that leaves the field of view and later returns may be
23067 assigned a new ID.<wbr/></p>
23068 <p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> == FULL</p>
23073 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23074 <!-- end of entry -->
23077 <tr class="entry" id="dynamic_android.statistics.faceLandmarks">
23078 <td class="entry_name
23080 android.<wbr/>statistics.<wbr/>face<wbr/>Landmarks
23082 <td class="entry_type">
23083 <span class="entry_type_name">int32</span>
23084 <span class="entry_type_container">x</span>
23086 <span class="entry_type_array">
23089 <span class="entry_type_visibility"> [ndk_public]</span>
23092 <span class="entry_type_hwlevel">[legacy] </span>
23095 <div class="entry_type_notes">(leftEyeX,<wbr/> leftEyeY,<wbr/> rightEyeX,<wbr/> rightEyeY,<wbr/> mouthX,<wbr/> mouthY)</div>
23098 </td> <!-- entry_type -->
23100 <td class="entry_description">
23101 <p>List of landmarks for detected
23105 <td class="entry_units">
23108 <td class="entry_range">
23111 <td class="entry_tags">
23112 <ul class="entry_tags">
23113 <li><a href="#tag_BC">BC</a></li>
23118 <tr class="entries_header">
23119 <th class="th_details" colspan="5">Details</th>
23121 <tr class="entry_cont">
23122 <td class="entry_details" colspan="5">
23123 <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
23124 <code>(0,<wbr/> 0)</code> being the top-left pixel of the active array.<wbr/></p>
23125 <p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> == FULL</p>
23130 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23131 <!-- end of entry -->
23134 <tr class="entry" id="dynamic_android.statistics.faceRectangles">
23135 <td class="entry_name
23137 android.<wbr/>statistics.<wbr/>face<wbr/>Rectangles
23139 <td class="entry_type">
23140 <span class="entry_type_name">int32</span>
23141 <span class="entry_type_container">x</span>
23143 <span class="entry_type_array">
23146 <span class="entry_type_visibility"> [ndk_public as rectangle]</span>
23149 <span class="entry_type_hwlevel">[legacy] </span>
23152 <div class="entry_type_notes">(xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax).<wbr/> (0,<wbr/>0) is top-left of active pixel area</div>
23155 </td> <!-- entry_type -->
23157 <td class="entry_description">
23158 <p>List of the bounding rectangles for detected
23162 <td class="entry_units">
23165 <td class="entry_range">
23168 <td class="entry_tags">
23169 <ul class="entry_tags">
23170 <li><a href="#tag_BC">BC</a></li>
23175 <tr class="entries_header">
23176 <th class="th_details" colspan="5">Details</th>
23178 <tr class="entry_cont">
23179 <td class="entry_details" colspan="5">
23180 <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
23181 <code>(0,<wbr/> 0)</code> being the top-left pixel of the active array.<wbr/></p>
23182 <p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> != OFF</p>
23187 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23188 <!-- end of entry -->
23191 <tr class="entry" id="dynamic_android.statistics.faceScores">
23192 <td class="entry_name
23194 android.<wbr/>statistics.<wbr/>face<wbr/>Scores
23196 <td class="entry_type">
23197 <span class="entry_type_name">byte</span>
23198 <span class="entry_type_container">x</span>
23200 <span class="entry_type_array">
23203 <span class="entry_type_visibility"> [ndk_public]</span>
23206 <span class="entry_type_hwlevel">[legacy] </span>
23211 </td> <!-- entry_type -->
23213 <td class="entry_description">
23214 <p>List of the face confidence scores for
23218 <td class="entry_units">
23221 <td class="entry_range">
23225 <td class="entry_tags">
23226 <ul class="entry_tags">
23227 <li><a href="#tag_BC">BC</a></li>
23232 <tr class="entries_header">
23233 <th class="th_details" colspan="5">Details</th>
23235 <tr class="entry_cont">
23236 <td class="entry_details" colspan="5">
23237 <p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> != OFF.<wbr/></p>
23241 <tr class="entries_header">
23242 <th class="th_details" colspan="5">HAL Implementation Details</th>
23244 <tr class="entry_cont">
23245 <td class="entry_details" colspan="5">
23246 <p>The value should be meaningful (for example,<wbr/> setting 100 at
23247 all times is illegal).<wbr/></p>
23251 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23252 <!-- end of entry -->
23255 <tr class="entry" id="dynamic_android.statistics.faces">
23256 <td class="entry_name
23258 android.<wbr/>statistics.<wbr/>faces
23260 <td class="entry_type">
23261 <span class="entry_type_name">int32</span>
23262 <span class="entry_type_container">x</span>
23264 <span class="entry_type_array">
23267 <span class="entry_type_visibility"> [java_public as face]</span>
23269 <span class="entry_type_synthetic">[synthetic] </span>
23271 <span class="entry_type_hwlevel">[legacy] </span>
23276 </td> <!-- entry_type -->
23278 <td class="entry_description">
23279 <p>List of the faces detected through camera face detection
23280 in this capture.<wbr/></p>
23283 <td class="entry_units">
23286 <td class="entry_range">
23289 <td class="entry_tags">
23293 <tr class="entries_header">
23294 <th class="th_details" colspan="5">Details</th>
23296 <tr class="entry_cont">
23297 <td class="entry_details" colspan="5">
23298 <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>
23303 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23304 <!-- end of entry -->
23307 <tr class="entry" id="dynamic_android.statistics.histogram">
23308 <td class="entry_name
23310 android.<wbr/>statistics.<wbr/>histogram
23312 <td class="entry_type">
23313 <span class="entry_type_name">int32</span>
23314 <span class="entry_type_container">x</span>
23316 <span class="entry_type_array">
23319 <span class="entry_type_visibility"> [system]</span>
23324 <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>
23327 </td> <!-- entry_type -->
23329 <td class="entry_description">
23330 <p>A 3-channel histogram based on the raw
23334 <td class="entry_units">
23337 <td class="entry_range">
23340 <td class="entry_tags">
23341 <ul class="entry_tags">
23342 <li><a href="#tag_FUTURE">FUTURE</a></li>
23347 <tr class="entries_header">
23348 <th class="th_details" colspan="5">Details</th>
23350 <tr class="entry_cont">
23351 <td class="entry_details" colspan="5">
23352 <p>The k'th bucket (0-based) covers the input range
23353 (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/>
23354 (k + 1) * w /<wbr/> N ).<wbr/> If only a monochrome sharpness map is
23355 supported,<wbr/> all channels should have the same data</p>
23360 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23361 <!-- end of entry -->
23364 <tr class="entry" id="dynamic_android.statistics.histogramMode">
23365 <td class="entry_name
23367 android.<wbr/>statistics.<wbr/>histogram<wbr/>Mode
23369 <td class="entry_type">
23370 <span class="entry_type_name entry_type_name_enum">byte</span>
23372 <span class="entry_type_visibility"> [system as boolean]</span>
23378 <ul class="entry_type_enum">
23380 <span class="entry_type_enum_name">OFF</span>
23383 <span class="entry_type_enum_name">ON</span>
23387 </td> <!-- entry_type -->
23389 <td class="entry_description">
23390 <p>Operating mode for histogram
23394 <td class="entry_units">
23397 <td class="entry_range">
23400 <td class="entry_tags">
23401 <ul class="entry_tags">
23402 <li><a href="#tag_FUTURE">FUTURE</a></li>
23409 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23410 <!-- end of entry -->
23413 <tr class="entry" id="dynamic_android.statistics.sharpnessMap">
23414 <td class="entry_name
23416 android.<wbr/>statistics.<wbr/>sharpness<wbr/>Map
23418 <td class="entry_type">
23419 <span class="entry_type_name">int32</span>
23420 <span class="entry_type_container">x</span>
23422 <span class="entry_type_array">
23425 <span class="entry_type_visibility"> [system]</span>
23430 <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>
23433 </td> <!-- entry_type -->
23435 <td class="entry_description">
23436 <p>A 3-channel sharpness map,<wbr/> based on the raw
23440 <td class="entry_units">
23443 <td class="entry_range">
23446 <td class="entry_tags">
23447 <ul class="entry_tags">
23448 <li><a href="#tag_FUTURE">FUTURE</a></li>
23453 <tr class="entries_header">
23454 <th class="th_details" colspan="5">Details</th>
23456 <tr class="entry_cont">
23457 <td class="entry_details" colspan="5">
23458 <p>If only a monochrome sharpness map is supported,<wbr/>
23459 all channels should have the same data</p>
23464 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23465 <!-- end of entry -->
23468 <tr class="entry" id="dynamic_android.statistics.sharpnessMapMode">
23469 <td class="entry_name
23471 android.<wbr/>statistics.<wbr/>sharpness<wbr/>Map<wbr/>Mode
23473 <td class="entry_type">
23474 <span class="entry_type_name entry_type_name_enum">byte</span>
23476 <span class="entry_type_visibility"> [system as boolean]</span>
23482 <ul class="entry_type_enum">
23484 <span class="entry_type_enum_name">OFF</span>
23487 <span class="entry_type_enum_name">ON</span>
23491 </td> <!-- entry_type -->
23493 <td class="entry_description">
23494 <p>Operating mode for sharpness map
23498 <td class="entry_units">
23501 <td class="entry_range">
23504 <td class="entry_tags">
23505 <ul class="entry_tags">
23506 <li><a href="#tag_FUTURE">FUTURE</a></li>
23513 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23514 <!-- end of entry -->
23517 <tr class="entry" id="dynamic_android.statistics.lensShadingCorrectionMap">
23518 <td class="entry_name
23520 android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Correction<wbr/>Map
23522 <td class="entry_type">
23523 <span class="entry_type_name">byte</span>
23525 <span class="entry_type_visibility"> [java_public as lensShadingMap]</span>
23528 <span class="entry_type_hwlevel">[full] </span>
23533 </td> <!-- entry_type -->
23535 <td class="entry_description">
23536 <p>The shading map is a low-resolution floating-point map
23537 that lists the coefficients used to correct for vignetting,<wbr/> for each
23538 Bayer color channel.<wbr/></p>
23541 <td class="entry_units">
23544 <td class="entry_range">
23545 <p>Each gain factor is >= 1</p>
23548 <td class="entry_tags">
23552 <tr class="entries_header">
23553 <th class="th_details" colspan="5">Details</th>
23555 <tr class="entry_cont">
23556 <td class="entry_details" colspan="5">
23557 <p>The map provided here is the same map that is used by the camera device to
23558 correct both color shading and vignetting for output non-RAW images.<wbr/></p>
23559 <p>When there is no lens shading correction applied to RAW
23560 output images (<a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a> <code>==</code>
23561 false),<wbr/> this map is the complete lens shading correction
23562 map; when there is some lens shading correction applied to
23563 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
23564 correction map that needs to be applied to get shading
23565 corrected images that match the camera device's output for
23566 non-RAW formats.<wbr/></p>
23567 <p>For a complete shading correction map,<wbr/> the least shaded
23568 section of the image will have a gain factor of 1; all
23569 other sections will have gains above 1.<wbr/></p>
23570 <p>When <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> = TRANSFORM_<wbr/>MATRIX,<wbr/> the map
23571 will take into account the colorCorrection settings.<wbr/></p>
23572 <p>The shading map is for the entire active pixel array,<wbr/> and is not
23573 affected by the crop region specified in the request.<wbr/> Each shading map
23574 entry is the value of the shading compensation map over a specific
23575 pixel on the sensor.<wbr/> Specifically,<wbr/> with a (N x M) resolution shading
23576 map,<wbr/> and an active pixel array size (W x H),<wbr/> shading map entry
23577 (x,<wbr/>y) ϵ (0 ...<wbr/> N-1,<wbr/> 0 ...<wbr/> M-1) is the value of the shading map at
23578 pixel ( ((W-1)/<wbr/>(N-1)) * x,<wbr/> ((H-1)/<wbr/>(M-1)) * y) for the four color channels.<wbr/>
23579 The map is assumed to be bilinearly interpolated between the sample points.<wbr/></p>
23580 <p>The channel order is [R,<wbr/> Geven,<wbr/> Godd,<wbr/> B],<wbr/> where Geven is the green
23581 channel for the even rows of a Bayer pattern,<wbr/> and Godd is the odd rows.<wbr/>
23582 The shading map is stored in a fully interleaved format.<wbr/></p>
23583 <p>The shading map will generally have on the order of 30-40 rows and columns,<wbr/>
23584 and will be smaller than 64x64.<wbr/></p>
23585 <p>As an example,<wbr/> given a very small map defined as:</p>
23586 <pre><code>width,<wbr/>height = [ 4,<wbr/> 3 ]
23588 [ 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/>
23589 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/>
23590 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/>
23591 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/>
23592 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/>
23593 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 ]
23595 <p>The low-resolution scaling map images for each channel are
23596 (displayed using nearest-neighbor interpolation):</p>
23597 <p><img alt="Red lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png"/>
23598 <img alt="Green (even rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png"/>
23599 <img alt="Green (odd rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png"/>
23600 <img alt="Blue lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png"/></p>
23601 <p>As a visualization only,<wbr/> inverting the full-color map to recover an
23602 image of a gray wall (using bicubic interpolation for visual quality) as captured by the sensor gives:</p>
23603 <p><img alt="Image of a uniform white wall (inverse shading map)" src="images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png"/></p>
23608 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23609 <!-- end of entry -->
23612 <tr class="entry" id="dynamic_android.statistics.lensShadingMap">
23613 <td class="entry_name
23615 android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map
23617 <td class="entry_type">
23618 <span class="entry_type_name">float</span>
23619 <span class="entry_type_container">x</span>
23621 <span class="entry_type_array">
23624 <span class="entry_type_visibility"> [ndk_public]</span>
23627 <span class="entry_type_hwlevel">[full] </span>
23630 <div class="entry_type_notes">2D array of float gain factors per channel to correct lens shading</div>
23633 </td> <!-- entry_type -->
23635 <td class="entry_description">
23636 <p>The shading map is a low-resolution floating-point map
23637 that lists the coefficients used to correct for vignetting and color shading,<wbr/>
23638 for each Bayer color channel of RAW image data.<wbr/></p>
23641 <td class="entry_units">
23644 <td class="entry_range">
23645 <p>Each gain factor is >= 1</p>
23648 <td class="entry_tags">
23652 <tr class="entries_header">
23653 <th class="th_details" colspan="5">Details</th>
23655 <tr class="entry_cont">
23656 <td class="entry_details" colspan="5">
23657 <p>The map provided here is the same map that is used by the camera device to
23658 correct both color shading and vignetting for output non-RAW images.<wbr/></p>
23659 <p>When there is no lens shading correction applied to RAW
23660 output images (<a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a> <code>==</code>
23661 false),<wbr/> this map is the complete lens shading correction
23662 map; when there is some lens shading correction applied to
23663 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
23664 correction map that needs to be applied to get shading
23665 corrected images that match the camera device's output for
23666 non-RAW formats.<wbr/></p>
23667 <p>For a complete shading correction map,<wbr/> the least shaded
23668 section of the image will have a gain factor of 1; all
23669 other sections will have gains above 1.<wbr/></p>
23670 <p>When <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> = TRANSFORM_<wbr/>MATRIX,<wbr/> the map
23671 will take into account the colorCorrection settings.<wbr/></p>
23672 <p>The shading map is for the entire active pixel array,<wbr/> and is not
23673 affected by the crop region specified in the request.<wbr/> Each shading map
23674 entry is the value of the shading compensation map over a specific
23675 pixel on the sensor.<wbr/> Specifically,<wbr/> with a (N x M) resolution shading
23676 map,<wbr/> and an active pixel array size (W x H),<wbr/> shading map entry
23677 (x,<wbr/>y) ϵ (0 ...<wbr/> N-1,<wbr/> 0 ...<wbr/> M-1) is the value of the shading map at
23678 pixel ( ((W-1)/<wbr/>(N-1)) * x,<wbr/> ((H-1)/<wbr/>(M-1)) * y) for the four color channels.<wbr/>
23679 The map is assumed to be bilinearly interpolated between the sample points.<wbr/></p>
23680 <p>The channel order is [R,<wbr/> Geven,<wbr/> Godd,<wbr/> B],<wbr/> where Geven is the green
23681 channel for the even rows of a Bayer pattern,<wbr/> and Godd is the odd rows.<wbr/>
23682 The shading map is stored in a fully interleaved format,<wbr/> and its size
23683 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>
23684 <p>The shading map will generally have on the order of 30-40 rows and columns,<wbr/>
23685 and will be smaller than 64x64.<wbr/></p>
23686 <p>As an example,<wbr/> given a very small map defined as:</p>
23687 <pre><code><a href="#static_android.lens.info.shadingMapSize">android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size</a> = [ 4,<wbr/> 3 ]
23688 <a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> =
23689 [ 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/>
23690 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/>
23691 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/>
23692 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/>
23693 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/>
23694 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 ]
23696 <p>The low-resolution scaling map images for each channel are
23697 (displayed using nearest-neighbor interpolation):</p>
23698 <p><img alt="Red lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png"/>
23699 <img alt="Green (even rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png"/>
23700 <img alt="Green (odd rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png"/>
23701 <img alt="Blue lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png"/></p>
23702 <p>As a visualization only,<wbr/> inverting the full-color map to recover an
23703 image of a gray wall (using bicubic interpolation for visual quality)
23704 as captured by the sensor gives:</p>
23705 <p><img alt="Image of a uniform white wall (inverse shading map)" src="images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png"/></p>
23706 <p>Note that the RAW image data might be subject to lens shading
23707 correction not reported on this map.<wbr/> Query
23708 <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
23709 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>
23710 is TRUE,<wbr/> the RAW image data is subject to partial or full lens shading
23711 correction.<wbr/> In the case full lens shading correction is applied to RAW
23712 images,<wbr/> the gain factor map reported in this key will contain all 1.<wbr/>0 gains.<wbr/>
23713 In other words,<wbr/> the map reported in this key is the remaining lens shading
23714 that needs to be applied on the RAW image to get images without lens shading
23715 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
23720 <tr class="entries_header">
23721 <th class="th_details" colspan="5">HAL Implementation Details</th>
23723 <tr class="entry_cont">
23724 <td class="entry_details" colspan="5">
23725 <p>The lens shading map calculation may depend on exposure and white balance statistics.<wbr/>
23726 When AE and AWB are in AUTO modes
23727 (<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
23728 may have all the information it need to generate most accurate lens shading map.<wbr/> When
23729 AE or AWB are in manual mode
23730 (<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
23731 may be adversely impacted by manual exposure or white balance parameters.<wbr/> To avoid
23732 generating unreliable shading map data,<wbr/> the HAL may choose to lock the shading map with
23733 the latest known good map generated when the AE and AWB are in AUTO modes.<wbr/></p>
23737 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23738 <!-- end of entry -->
23741 <tr class="entry" id="dynamic_android.statistics.predictedColorGains">
23742 <td class="entry_name
23743 entry_name_deprecated
23745 android.<wbr/>statistics.<wbr/>predicted<wbr/>Color<wbr/>Gains
23747 <td class="entry_type">
23748 <span class="entry_type_name">float</span>
23749 <span class="entry_type_container">x</span>
23751 <span class="entry_type_array">
23754 <span class="entry_type_visibility"> [hidden]</span>
23758 <span class="entry_type_deprecated">[deprecated] </span>
23760 <div class="entry_type_notes">A 1D array of floats for 4 color channel gains</div>
23763 </td> <!-- entry_type -->
23765 <td class="entry_description">
23766 <p>The best-fit color channel gains calculated
23767 by the camera device's statistics units for the current output frame.<wbr/></p>
23770 <td class="entry_units">
23773 <td class="entry_range">
23774 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
23777 <td class="entry_tags">
23781 <tr class="entries_header">
23782 <th class="th_details" colspan="5">Details</th>
23784 <tr class="entry_cont">
23785 <td class="entry_details" colspan="5">
23786 <p>This may be different than the gains used for this frame,<wbr/>
23787 since statistics processing on data from a new frame
23788 typically completes after the transform has already been
23789 applied to that frame.<wbr/></p>
23790 <p>The 4 channel gains are defined in Bayer domain,<wbr/>
23791 see <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> for details.<wbr/></p>
23792 <p>This value should always be calculated by the auto-white balance (AWB) block,<wbr/>
23793 regardless of the android.<wbr/>control.<wbr/>* current values.<wbr/></p>
23798 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23799 <!-- end of entry -->
23802 <tr class="entry" id="dynamic_android.statistics.predictedColorTransform">
23803 <td class="entry_name
23804 entry_name_deprecated
23806 android.<wbr/>statistics.<wbr/>predicted<wbr/>Color<wbr/>Transform
23808 <td class="entry_type">
23809 <span class="entry_type_name">rational</span>
23810 <span class="entry_type_container">x</span>
23812 <span class="entry_type_array">
23815 <span class="entry_type_visibility"> [hidden]</span>
23819 <span class="entry_type_deprecated">[deprecated] </span>
23821 <div class="entry_type_notes">3x3 rational matrix in row-major order</div>
23824 </td> <!-- entry_type -->
23826 <td class="entry_description">
23827 <p>The best-fit color transform matrix estimate
23828 calculated by the camera device's statistics units for the current
23829 output frame.<wbr/></p>
23832 <td class="entry_units">
23835 <td class="entry_range">
23836 <p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
23839 <td class="entry_tags">
23843 <tr class="entries_header">
23844 <th class="th_details" colspan="5">Details</th>
23846 <tr class="entry_cont">
23847 <td class="entry_details" colspan="5">
23848 <p>The camera device will provide the estimate from its
23849 statistics unit on the white balance transforms to use
23850 for the next frame.<wbr/> These are the values the camera device believes
23851 are the best fit for the current output frame.<wbr/> This may
23852 be different than the transform used for this frame,<wbr/> since
23853 statistics processing on data from a new frame typically
23854 completes after the transform has already been applied to
23855 that frame.<wbr/></p>
23856 <p>These estimates must be provided for all frames,<wbr/> even if
23857 capture settings and color transforms are set by the application.<wbr/></p>
23858 <p>This value should always be calculated by the auto-white balance (AWB) block,<wbr/>
23859 regardless of the android.<wbr/>control.<wbr/>* current values.<wbr/></p>
23864 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23865 <!-- end of entry -->
23868 <tr class="entry" id="dynamic_android.statistics.sceneFlicker">
23869 <td class="entry_name
23871 android.<wbr/>statistics.<wbr/>scene<wbr/>Flicker
23873 <td class="entry_type">
23874 <span class="entry_type_name entry_type_name_enum">byte</span>
23876 <span class="entry_type_visibility"> [public]</span>
23879 <span class="entry_type_hwlevel">[full] </span>
23883 <ul class="entry_type_enum">
23885 <span class="entry_type_enum_name">NONE</span>
23886 <span class="entry_type_enum_notes"><p>The camera device does not detect any flickering illumination
23887 in the current scene.<wbr/></p></span>
23890 <span class="entry_type_enum_name">50HZ</span>
23891 <span class="entry_type_enum_notes"><p>The camera device detects illumination flickering at 50Hz
23892 in the current scene.<wbr/></p></span>
23895 <span class="entry_type_enum_name">60HZ</span>
23896 <span class="entry_type_enum_notes"><p>The camera device detects illumination flickering at 60Hz
23897 in the current scene.<wbr/></p></span>
23901 </td> <!-- entry_type -->
23903 <td class="entry_description">
23904 <p>The camera device estimated scene illumination lighting
23905 frequency.<wbr/></p>
23908 <td class="entry_units">
23911 <td class="entry_range">
23914 <td class="entry_tags">
23918 <tr class="entries_header">
23919 <th class="th_details" colspan="5">Details</th>
23921 <tr class="entry_cont">
23922 <td class="entry_details" colspan="5">
23923 <p>Many light sources,<wbr/> such as most fluorescent lights,<wbr/> flicker at a rate
23924 that depends on the local utility power standards.<wbr/> This flicker must be
23925 accounted for by auto-exposure routines to avoid artifacts in captured images.<wbr/>
23926 The camera device uses this entry to tell the application what the scene
23927 illuminant frequency is.<wbr/></p>
23928 <p>When manual exposure control is enabled
23929 (<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> ==
23930 OFF</code>),<wbr/> the <a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a> doesn't perform
23931 antibanding,<wbr/> and the application can ensure it selects
23932 exposure times that do not cause banding issues by looking
23933 into this metadata field.<wbr/> See
23934 <a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a> for more details.<wbr/></p>
23935 <p>Reports NONE if there doesn't appear to be flickering illumination.<wbr/></p>
23940 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
23941 <!-- end of entry -->
23944 <tr class="entry" id="dynamic_android.statistics.hotPixelMapMode">
23945 <td class="entry_name
23947 android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map<wbr/>Mode
23949 <td class="entry_type">
23950 <span class="entry_type_name entry_type_name_enum">byte</span>
23952 <span class="entry_type_visibility"> [public as boolean]</span>
23958 <ul class="entry_type_enum">
23960 <span class="entry_type_enum_name">OFF</span>
23961 <span class="entry_type_enum_notes"><p>Hot pixel map production is disabled.<wbr/></p></span>
23964 <span class="entry_type_enum_name">ON</span>
23965 <span class="entry_type_enum_notes"><p>Hot pixel map production is enabled.<wbr/></p></span>
23969 </td> <!-- entry_type -->
23971 <td class="entry_description">
23972 <p>Operating mode for hot pixel map generation.<wbr/></p>
23975 <td class="entry_units">
23978 <td class="entry_range">
23979 <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>
23982 <td class="entry_tags">
23983 <ul class="entry_tags">
23984 <li><a href="#tag_V1">V1</a></li>
23985 <li><a href="#tag_RAW">RAW</a></li>
23990 <tr class="entries_header">
23991 <th class="th_details" colspan="5">Details</th>
23993 <tr class="entry_cont">
23994 <td class="entry_details" colspan="5">
23995 <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/>
23996 If set to <code>false</code>,<wbr/> no hot pixel map will be returned.<wbr/></p>
24001 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24002 <!-- end of entry -->
24005 <tr class="entry" id="dynamic_android.statistics.hotPixelMap">
24006 <td class="entry_name
24008 android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map
24010 <td class="entry_type">
24011 <span class="entry_type_name">int32</span>
24012 <span class="entry_type_container">x</span>
24014 <span class="entry_type_array">
24017 <span class="entry_type_visibility"> [public as point]</span>
24022 <div class="entry_type_notes">list of coordinates based on android.<wbr/>sensor.<wbr/>pixel<wbr/>Array<wbr/>Size</div>
24025 </td> <!-- entry_type -->
24027 <td class="entry_description">
24028 <p>List of <code>(x,<wbr/> y)</code> coordinates of hot/<wbr/>defective pixels on the sensor.<wbr/></p>
24031 <td class="entry_units">
24034 <td class="entry_range">
24035 <p>n <= number of pixels on the sensor.<wbr/>
24036 The <code>(x,<wbr/> y)</code> coordinates must be bounded by
24037 <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
24040 <td class="entry_tags">
24041 <ul class="entry_tags">
24042 <li><a href="#tag_V1">V1</a></li>
24043 <li><a href="#tag_RAW">RAW</a></li>
24048 <tr class="entries_header">
24049 <th class="th_details" colspan="5">Details</th>
24051 <tr class="entry_cont">
24052 <td class="entry_details" colspan="5">
24053 <p>A coordinate <code>(x,<wbr/> y)</code> must lie between <code>(0,<wbr/> 0)</code>,<wbr/> and
24054 <code>(width - 1,<wbr/> height - 1)</code> (inclusive),<wbr/> which are the top-left and
24055 bottom-right of the pixel array,<wbr/> respectively.<wbr/> The width and
24056 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/>
24057 This may include hot pixels that lie outside of the active array
24058 bounds given by <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
24062 <tr class="entries_header">
24063 <th class="th_details" colspan="5">HAL Implementation Details</th>
24065 <tr class="entry_cont">
24066 <td class="entry_details" colspan="5">
24067 <p>A hotpixel map contains the coordinates of pixels on the camera
24068 sensor that do report valid values (usually due to defects in
24069 the camera sensor).<wbr/> This includes pixels that are stuck at certain
24070 values,<wbr/> or have a response that does not accuractly encode the
24071 incoming light from the scene.<wbr/></p>
24072 <p>To avoid performance issues,<wbr/> there should be significantly fewer hot
24073 pixels than actual pixels on the camera sensor.<wbr/></p>
24077 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24078 <!-- end of entry -->
24081 <tr class="entry" id="dynamic_android.statistics.lensShadingMapMode">
24082 <td class="entry_name
24084 android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode
24086 <td class="entry_type">
24087 <span class="entry_type_name entry_type_name_enum">byte</span>
24089 <span class="entry_type_visibility"> [public]</span>
24092 <span class="entry_type_hwlevel">[full] </span>
24096 <ul class="entry_type_enum">
24098 <span class="entry_type_enum_name">OFF</span>
24099 <span class="entry_type_enum_notes"><p>Do not include a lens shading map in the capture result.<wbr/></p></span>
24102 <span class="entry_type_enum_name">ON</span>
24103 <span class="entry_type_enum_notes"><p>Include a lens shading map in the capture result.<wbr/></p></span>
24107 </td> <!-- entry_type -->
24109 <td class="entry_description">
24110 <p>Whether the camera device will output the lens
24111 shading map in output result metadata.<wbr/></p>
24114 <td class="entry_units">
24117 <td class="entry_range">
24118 <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>
24121 <td class="entry_tags">
24122 <ul class="entry_tags">
24123 <li><a href="#tag_RAW">RAW</a></li>
24128 <tr class="entries_header">
24129 <th class="th_details" colspan="5">Details</th>
24131 <tr class="entry_cont">
24132 <td class="entry_details" colspan="5">
24133 <p>When set to ON,<wbr/>
24134 <a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> will be provided in
24135 the output result metadata.<wbr/></p>
24136 <p>ON is always supported on devices with the RAW capability.<wbr/></p>
24141 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24142 <!-- end of entry -->
24146 <!-- end of kind -->
24149 <!-- end of section -->
24150 <tr><td colspan="6" id="section_tonemap" class="section">tonemap</td></tr>
24153 <tr><td colspan="6" class="kind">controls</td></tr>
24155 <thead class="entries_header">
24157 <th class="th_name">Property Name</th>
24158 <th class="th_type">Type</th>
24159 <th class="th_description">Description</th>
24160 <th class="th_units">Units</th>
24161 <th class="th_range">Range</th>
24162 <th class="th_tags">Tags</th>
24177 <tr class="entry" id="controls_android.tonemap.curveBlue">
24178 <td class="entry_name
24180 android.<wbr/>tonemap.<wbr/>curve<wbr/>Blue
24182 <td class="entry_type">
24183 <span class="entry_type_name">float</span>
24184 <span class="entry_type_container">x</span>
24186 <span class="entry_type_array">
24189 <span class="entry_type_visibility"> [ndk_public]</span>
24192 <span class="entry_type_hwlevel">[full] </span>
24195 <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>
24198 </td> <!-- entry_type -->
24200 <td class="entry_description">
24201 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the blue
24202 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24203 CONTRAST_<wbr/>CURVE.<wbr/></p>
24206 <td class="entry_units">
24209 <td class="entry_range">
24212 <td class="entry_tags">
24216 <tr class="entries_header">
24217 <th class="th_details" colspan="5">Details</th>
24219 <tr class="entry_cont">
24220 <td class="entry_details" colspan="5">
24221 <p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
24226 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24227 <!-- end of entry -->
24230 <tr class="entry" id="controls_android.tonemap.curveGreen">
24231 <td class="entry_name
24233 android.<wbr/>tonemap.<wbr/>curve<wbr/>Green
24235 <td class="entry_type">
24236 <span class="entry_type_name">float</span>
24237 <span class="entry_type_container">x</span>
24239 <span class="entry_type_array">
24242 <span class="entry_type_visibility"> [ndk_public]</span>
24245 <span class="entry_type_hwlevel">[full] </span>
24248 <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>
24251 </td> <!-- entry_type -->
24253 <td class="entry_description">
24254 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the green
24255 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24256 CONTRAST_<wbr/>CURVE.<wbr/></p>
24259 <td class="entry_units">
24262 <td class="entry_range">
24265 <td class="entry_tags">
24269 <tr class="entries_header">
24270 <th class="th_details" colspan="5">Details</th>
24272 <tr class="entry_cont">
24273 <td class="entry_details" colspan="5">
24274 <p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
24279 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24280 <!-- end of entry -->
24283 <tr class="entry" id="controls_android.tonemap.curveRed">
24284 <td class="entry_name
24286 android.<wbr/>tonemap.<wbr/>curve<wbr/>Red
24288 <td class="entry_type">
24289 <span class="entry_type_name">float</span>
24290 <span class="entry_type_container">x</span>
24292 <span class="entry_type_array">
24295 <span class="entry_type_visibility"> [ndk_public]</span>
24298 <span class="entry_type_hwlevel">[full] </span>
24301 <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>
24304 </td> <!-- entry_type -->
24306 <td class="entry_description">
24307 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the red
24308 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24309 CONTRAST_<wbr/>CURVE.<wbr/></p>
24312 <td class="entry_units">
24315 <td class="entry_range">
24316 <p>0-1 on both input and output coordinates,<wbr/> normalized
24317 as a floating-point value such that 0 == black and 1 == white.<wbr/></p>
24320 <td class="entry_tags">
24324 <tr class="entries_header">
24325 <th class="th_details" colspan="5">Details</th>
24327 <tr class="entry_cont">
24328 <td class="entry_details" colspan="5">
24329 <p>Each channel's curve is defined by an array of control points:</p>
24330 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> =
24331 [ P0in,<wbr/> P0out,<wbr/> P1in,<wbr/> P1out,<wbr/> P2in,<wbr/> P2out,<wbr/> P3in,<wbr/> P3out,<wbr/> ...,<wbr/> PNin,<wbr/> PNout ]
24332 2 <= N <= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
24333 <p>These are sorted in order of increasing <code>Pin</code>; it is
24334 required that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
24335 define a complete mapping.<wbr/> For input values between control points,<wbr/>
24336 the camera device must linearly interpolate between the control
24338 <p>Each curve can have an independent number of points,<wbr/> and the number
24339 of points can be less than max (that is,<wbr/> the request doesn't have to
24340 always provide a curve with number of points equivalent to
24341 <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
24342 <p>A few examples,<wbr/> and their corresponding graphical mappings; these
24343 only specify the red channel and the precision is limited to 4
24344 digits,<wbr/> for conciseness.<wbr/></p>
24345 <p>Linear mapping:</p>
24346 <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 ]
24348 <p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
24349 <p>Invert mapping:</p>
24350 <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 ]
24352 <p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
24353 <p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
24354 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
24355 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/>
24356 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/>
24357 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/>
24358 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 ]
24360 <p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
24361 <p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
24362 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
24363 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/>
24364 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/>
24365 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/>
24366 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 ]
24368 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
24372 <tr class="entries_header">
24373 <th class="th_details" colspan="5">HAL Implementation Details</th>
24375 <tr class="entry_cont">
24376 <td class="entry_details" colspan="5">
24377 <p>For good quality of mapping,<wbr/> at least 128 control points are
24378 preferred.<wbr/></p>
24379 <p>A typical use case of this would be a gamma-1/<wbr/>2.<wbr/>2 curve,<wbr/> with as many
24380 control points used as are available.<wbr/></p>
24384 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24385 <!-- end of entry -->
24388 <tr class="entry" id="controls_android.tonemap.curve">
24389 <td class="entry_name
24391 android.<wbr/>tonemap.<wbr/>curve
24393 <td class="entry_type">
24394 <span class="entry_type_name">float</span>
24396 <span class="entry_type_visibility"> [java_public as tonemapCurve]</span>
24398 <span class="entry_type_synthetic">[synthetic] </span>
24400 <span class="entry_type_hwlevel">[full] </span>
24405 </td> <!-- entry_type -->
24407 <td class="entry_description">
24408 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a>
24409 is CONTRAST_<wbr/>CURVE.<wbr/></p>
24412 <td class="entry_units">
24415 <td class="entry_range">
24418 <td class="entry_tags">
24422 <tr class="entries_header">
24423 <th class="th_details" colspan="5">Details</th>
24425 <tr class="entry_cont">
24426 <td class="entry_details" colspan="5">
24427 <p>The tonemapCurve consist of three curves for each of red,<wbr/> green,<wbr/> and blue
24428 channels respectively.<wbr/> The following example uses the red channel as an
24429 example.<wbr/> The same logic applies to green and blue channel.<wbr/>
24430 Each channel's curve is defined by an array of control points:</p>
24431 <pre><code>curveRed =
24432 [ 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) ]
24433 2 <= N <= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
24434 <p>These are sorted in order of increasing <code>Pin</code>; it is always
24435 guaranteed that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
24436 define a complete mapping.<wbr/> For input values between control points,<wbr/>
24437 the camera device must linearly interpolate between the control
24439 <p>Each curve can have an independent number of points,<wbr/> and the number
24440 of points can be less than max (that is,<wbr/> the request doesn't have to
24441 always provide a curve with number of points equivalent to
24442 <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
24443 <p>A few examples,<wbr/> and their corresponding graphical mappings; these
24444 only specify the red channel and the precision is limited to 4
24445 digits,<wbr/> for conciseness.<wbr/></p>
24446 <p>Linear mapping:</p>
24447 <pre><code>curveRed = [ (0,<wbr/> 0),<wbr/> (1.<wbr/>0,<wbr/> 1.<wbr/>0) ]
24449 <p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
24450 <p>Invert mapping:</p>
24451 <pre><code>curveRed = [ (0,<wbr/> 1.<wbr/>0),<wbr/> (1.<wbr/>0,<wbr/> 0) ]
24453 <p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
24454 <p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
24455 <pre><code>curveRed = [
24456 (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/>
24457 (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/>
24458 (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/>
24459 (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) ]
24461 <p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
24462 <p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
24463 <pre><code>curveRed = [
24464 (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/>
24465 (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/>
24466 (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/>
24467 (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) ]
24469 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
24473 <tr class="entries_header">
24474 <th class="th_details" colspan="5">HAL Implementation Details</th>
24476 <tr class="entry_cont">
24477 <td class="entry_details" colspan="5">
24478 <p>This entry is created by the framework from the curveRed,<wbr/> curveGreen and
24479 curveBlue entries.<wbr/></p>
24483 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24484 <!-- end of entry -->
24487 <tr class="entry" id="controls_android.tonemap.mode">
24488 <td class="entry_name
24490 android.<wbr/>tonemap.<wbr/>mode
24492 <td class="entry_type">
24493 <span class="entry_type_name entry_type_name_enum">byte</span>
24495 <span class="entry_type_visibility"> [public]</span>
24498 <span class="entry_type_hwlevel">[full] </span>
24502 <ul class="entry_type_enum">
24504 <span class="entry_type_enum_name">CONTRAST_CURVE</span>
24505 <span class="entry_type_enum_notes"><p>Use the tone mapping curve specified in
24506 the <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>* entries.<wbr/></p>
24507 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
24508 for applying the tonemapping curve specified by
24509 <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/></p>
24510 <p>Must not slow down frame rate relative to raw
24511 sensor output.<wbr/></p></span>
24514 <span class="entry_type_enum_name">FAST</span>
24515 <span class="entry_type_enum_notes"><p>Advanced gamma mapping and color enhancement may be applied,<wbr/> without
24516 reducing frame rate compared to raw sensor output.<wbr/></p></span>
24519 <span class="entry_type_enum_name">HIGH_QUALITY</span>
24520 <span class="entry_type_enum_notes"><p>High-quality gamma mapping and color enhancement will be applied,<wbr/> at
24521 the cost of possibly reduced frame rate compared to raw sensor output.<wbr/></p></span>
24524 <span class="entry_type_enum_name">GAMMA_VALUE</span>
24525 <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
24526 tonemapping.<wbr/></p>
24527 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
24528 for applying the tonemapping curve specified by <a href="#controls_android.tonemap.gamma">android.<wbr/>tonemap.<wbr/>gamma</a>.<wbr/></p>
24529 <p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
24532 <span class="entry_type_enum_name">PRESET_CURVE</span>
24533 <span class="entry_type_enum_notes"><p>Use the preset tonemapping curve specified in
24534 <a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a> to peform tonemapping.<wbr/></p>
24535 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
24536 for applying the tonemapping curve specified by
24537 <a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a>.<wbr/></p>
24538 <p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
24542 </td> <!-- entry_type -->
24544 <td class="entry_description">
24545 <p>High-level global contrast/<wbr/>gamma/<wbr/>tonemapping control.<wbr/></p>
24548 <td class="entry_units">
24551 <td class="entry_range">
24552 <p><a href="#static_android.tonemap.availableToneMapModes">android.<wbr/>tonemap.<wbr/>available<wbr/>Tone<wbr/>Map<wbr/>Modes</a></p>
24555 <td class="entry_tags">
24559 <tr class="entries_header">
24560 <th class="th_details" colspan="5">Details</th>
24562 <tr class="entry_cont">
24563 <td class="entry_details" colspan="5">
24564 <p>When switching to an application-defined contrast curve by setting
24565 <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> to CONTRAST_<wbr/>CURVE,<wbr/> the curve is defined
24566 per-channel with a set of <code>(in,<wbr/> out)</code> points that specify the
24567 mapping from input high-bit-depth pixel value to the output
24568 low-bit-depth value.<wbr/> Since the actual pixel ranges of both input
24569 and output may change depending on the camera pipeline,<wbr/> the values
24570 are specified by normalized floating-point numbers.<wbr/></p>
24571 <p>More-complex color mapping operations such as 3D color look-up
24572 tables,<wbr/> selective chroma enhancement,<wbr/> or other non-linear color
24573 transforms will be disabled when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24574 CONTRAST_<wbr/>CURVE.<wbr/></p>
24575 <p>When using either FAST or HIGH_<wbr/>QUALITY,<wbr/> the camera device will
24576 emit its own tonemap curve in <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/>
24577 These values are always available,<wbr/> and as close as possible to the
24578 actually used nonlinear/<wbr/>nonglobal transforms.<wbr/></p>
24579 <p>If a request is sent with CONTRAST_<wbr/>CURVE with the camera device's
24580 provided curve in FAST or HIGH_<wbr/>QUALITY,<wbr/> the image's tonemap will be
24581 roughly the same.<wbr/></p>
24586 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24587 <!-- end of entry -->
24590 <tr class="entry" id="controls_android.tonemap.gamma">
24591 <td class="entry_name
24593 android.<wbr/>tonemap.<wbr/>gamma
24595 <td class="entry_type">
24596 <span class="entry_type_name">float</span>
24598 <span class="entry_type_visibility"> [public]</span>
24605 </td> <!-- entry_type -->
24607 <td class="entry_description">
24608 <p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24609 GAMMA_<wbr/>VALUE</p>
24612 <td class="entry_units">
24615 <td class="entry_range">
24618 <td class="entry_tags">
24622 <tr class="entries_header">
24623 <th class="th_details" colspan="5">Details</th>
24625 <tr class="entry_cont">
24626 <td class="entry_details" colspan="5">
24627 <p>The tonemap curve will be defined the following formula:
24628 * OUT = pow(IN,<wbr/> 1.<wbr/>0 /<wbr/> gamma)
24629 where IN and OUT is the input pixel value scaled to range [0.<wbr/>0,<wbr/> 1.<wbr/>0],<wbr/>
24630 pow is the power function and gamma is the gamma value specified by this
24632 <p>The same curve will be applied to all color channels.<wbr/> The camera device
24633 may clip the input gamma value to its supported range.<wbr/> The actual applied
24634 value will be returned in capture result.<wbr/></p>
24635 <p>The valid range of gamma value varies on different devices,<wbr/> but values
24636 within [1.<wbr/>0,<wbr/> 5.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
24641 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24642 <!-- end of entry -->
24645 <tr class="entry" id="controls_android.tonemap.presetCurve">
24646 <td class="entry_name
24648 android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve
24650 <td class="entry_type">
24651 <span class="entry_type_name entry_type_name_enum">byte</span>
24653 <span class="entry_type_visibility"> [public]</span>
24659 <ul class="entry_type_enum">
24661 <span class="entry_type_enum_name">SRGB</span>
24662 <span class="entry_type_enum_notes"><p>Tonemapping curve is defined by sRGB</p></span>
24665 <span class="entry_type_enum_name">REC709</span>
24666 <span class="entry_type_enum_notes"><p>Tonemapping curve is defined by ITU-R BT.<wbr/>709</p></span>
24670 </td> <!-- entry_type -->
24672 <td class="entry_description">
24673 <p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24674 PRESET_<wbr/>CURVE</p>
24677 <td class="entry_units">
24680 <td class="entry_range">
24683 <td class="entry_tags">
24687 <tr class="entries_header">
24688 <th class="th_details" colspan="5">Details</th>
24690 <tr class="entry_cont">
24691 <td class="entry_details" colspan="5">
24692 <p>The tonemap curve will be defined by specified standard.<wbr/></p>
24693 <p>sRGB (approximated by 16 control points):</p>
24694 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
24695 <p>Rec.<wbr/> 709 (approximated by 16 control points):</p>
24696 <p><img alt="Rec. 709 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/rec709_tonemap.png"/></p>
24697 <p>Note that above figures show a 16 control points approximation of preset
24698 curves.<wbr/> Camera devices may apply a different approximation to the curve.<wbr/></p>
24703 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24704 <!-- end of entry -->
24708 <!-- end of kind -->
24710 <tr><td colspan="6" class="kind">static</td></tr>
24712 <thead class="entries_header">
24714 <th class="th_name">Property Name</th>
24715 <th class="th_type">Type</th>
24716 <th class="th_description">Description</th>
24717 <th class="th_units">Units</th>
24718 <th class="th_range">Range</th>
24719 <th class="th_tags">Tags</th>
24734 <tr class="entry" id="static_android.tonemap.maxCurvePoints">
24735 <td class="entry_name
24737 android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points
24739 <td class="entry_type">
24740 <span class="entry_type_name">int32</span>
24742 <span class="entry_type_visibility"> [public]</span>
24745 <span class="entry_type_hwlevel">[full] </span>
24750 </td> <!-- entry_type -->
24752 <td class="entry_description">
24753 <p>Maximum number of supported points in the
24754 tonemap curve that can be used for <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/></p>
24757 <td class="entry_units">
24760 <td class="entry_range">
24763 <td class="entry_tags">
24767 <tr class="entries_header">
24768 <th class="th_details" colspan="5">Details</th>
24770 <tr class="entry_cont">
24771 <td class="entry_details" colspan="5">
24772 <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
24773 less than this maximum,<wbr/> the camera device will resample the curve to its internal
24774 representation,<wbr/> using linear interpolation.<wbr/></p>
24775 <p>The output curves in the result metadata may have a different number
24776 of points than the input curves,<wbr/> and will represent the actual
24777 hardware curves used as closely as possible when linearly interpolated.<wbr/></p>
24781 <tr class="entries_header">
24782 <th class="th_details" colspan="5">HAL Implementation Details</th>
24784 <tr class="entry_cont">
24785 <td class="entry_details" colspan="5">
24786 <p>This value must be at least 64.<wbr/> This should be at least 128.<wbr/></p>
24790 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24791 <!-- end of entry -->
24794 <tr class="entry" id="static_android.tonemap.availableToneMapModes">
24795 <td class="entry_name
24797 android.<wbr/>tonemap.<wbr/>available<wbr/>Tone<wbr/>Map<wbr/>Modes
24799 <td class="entry_type">
24800 <span class="entry_type_name">byte</span>
24801 <span class="entry_type_container">x</span>
24803 <span class="entry_type_array">
24806 <span class="entry_type_visibility"> [public as enumList]</span>
24809 <span class="entry_type_hwlevel">[full] </span>
24812 <div class="entry_type_notes">list of enums</div>
24815 </td> <!-- entry_type -->
24817 <td class="entry_description">
24818 <p>List of tonemapping modes for <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> that are supported by this camera
24822 <td class="entry_units">
24825 <td class="entry_range">
24826 <p>Any value listed in <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a></p>
24829 <td class="entry_tags">
24833 <tr class="entries_header">
24834 <th class="th_details" colspan="5">Details</th>
24836 <tr class="entry_cont">
24837 <td class="entry_details" colspan="5">
24838 <p>Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always contain
24839 at least one of below mode combinations:</p>
24841 <li>CONTRAST_<wbr/>CURVE,<wbr/> FAST and HIGH_<wbr/>QUALITY</li>
24842 <li>GAMMA_<wbr/>VALUE,<wbr/> PRESET_<wbr/>CURVE,<wbr/> FAST and HIGH_<wbr/>QUALITY</li>
24844 <p>This includes all FULL level devices.<wbr/></p>
24848 <tr class="entries_header">
24849 <th class="th_details" colspan="5">HAL Implementation Details</th>
24851 <tr class="entry_cont">
24852 <td class="entry_details" colspan="5">
24853 <p>HAL must support both FAST and HIGH_<wbr/>QUALITY if automatic tonemap control is available
24854 on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
24855 That is,<wbr/> if the highest quality implementation on the camera device does not slow down
24856 capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
24860 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24861 <!-- end of entry -->
24865 <!-- end of kind -->
24867 <tr><td colspan="6" class="kind">dynamic</td></tr>
24869 <thead class="entries_header">
24871 <th class="th_name">Property Name</th>
24872 <th class="th_type">Type</th>
24873 <th class="th_description">Description</th>
24874 <th class="th_units">Units</th>
24875 <th class="th_range">Range</th>
24876 <th class="th_tags">Tags</th>
24891 <tr class="entry" id="dynamic_android.tonemap.curveBlue">
24892 <td class="entry_name
24894 android.<wbr/>tonemap.<wbr/>curve<wbr/>Blue
24896 <td class="entry_type">
24897 <span class="entry_type_name">float</span>
24898 <span class="entry_type_container">x</span>
24900 <span class="entry_type_array">
24903 <span class="entry_type_visibility"> [ndk_public]</span>
24906 <span class="entry_type_hwlevel">[full] </span>
24909 <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>
24912 </td> <!-- entry_type -->
24914 <td class="entry_description">
24915 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the blue
24916 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24917 CONTRAST_<wbr/>CURVE.<wbr/></p>
24920 <td class="entry_units">
24923 <td class="entry_range">
24926 <td class="entry_tags">
24930 <tr class="entries_header">
24931 <th class="th_details" colspan="5">Details</th>
24933 <tr class="entry_cont">
24934 <td class="entry_details" colspan="5">
24935 <p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
24940 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24941 <!-- end of entry -->
24944 <tr class="entry" id="dynamic_android.tonemap.curveGreen">
24945 <td class="entry_name
24947 android.<wbr/>tonemap.<wbr/>curve<wbr/>Green
24949 <td class="entry_type">
24950 <span class="entry_type_name">float</span>
24951 <span class="entry_type_container">x</span>
24953 <span class="entry_type_array">
24956 <span class="entry_type_visibility"> [ndk_public]</span>
24959 <span class="entry_type_hwlevel">[full] </span>
24962 <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>
24965 </td> <!-- entry_type -->
24967 <td class="entry_description">
24968 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the green
24969 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
24970 CONTRAST_<wbr/>CURVE.<wbr/></p>
24973 <td class="entry_units">
24976 <td class="entry_range">
24979 <td class="entry_tags">
24983 <tr class="entries_header">
24984 <th class="th_details" colspan="5">Details</th>
24986 <tr class="entry_cont">
24987 <td class="entry_details" colspan="5">
24988 <p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
24993 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
24994 <!-- end of entry -->
24997 <tr class="entry" id="dynamic_android.tonemap.curveRed">
24998 <td class="entry_name
25000 android.<wbr/>tonemap.<wbr/>curve<wbr/>Red
25002 <td class="entry_type">
25003 <span class="entry_type_name">float</span>
25004 <span class="entry_type_container">x</span>
25006 <span class="entry_type_array">
25009 <span class="entry_type_visibility"> [ndk_public]</span>
25012 <span class="entry_type_hwlevel">[full] </span>
25015 <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>
25018 </td> <!-- entry_type -->
25020 <td class="entry_description">
25021 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the red
25022 channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
25023 CONTRAST_<wbr/>CURVE.<wbr/></p>
25026 <td class="entry_units">
25029 <td class="entry_range">
25030 <p>0-1 on both input and output coordinates,<wbr/> normalized
25031 as a floating-point value such that 0 == black and 1 == white.<wbr/></p>
25034 <td class="entry_tags">
25038 <tr class="entries_header">
25039 <th class="th_details" colspan="5">Details</th>
25041 <tr class="entry_cont">
25042 <td class="entry_details" colspan="5">
25043 <p>Each channel's curve is defined by an array of control points:</p>
25044 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> =
25045 [ P0in,<wbr/> P0out,<wbr/> P1in,<wbr/> P1out,<wbr/> P2in,<wbr/> P2out,<wbr/> P3in,<wbr/> P3out,<wbr/> ...,<wbr/> PNin,<wbr/> PNout ]
25046 2 <= N <= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
25047 <p>These are sorted in order of increasing <code>Pin</code>; it is
25048 required that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
25049 define a complete mapping.<wbr/> For input values between control points,<wbr/>
25050 the camera device must linearly interpolate between the control
25052 <p>Each curve can have an independent number of points,<wbr/> and the number
25053 of points can be less than max (that is,<wbr/> the request doesn't have to
25054 always provide a curve with number of points equivalent to
25055 <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
25056 <p>A few examples,<wbr/> and their corresponding graphical mappings; these
25057 only specify the red channel and the precision is limited to 4
25058 digits,<wbr/> for conciseness.<wbr/></p>
25059 <p>Linear mapping:</p>
25060 <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 ]
25062 <p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
25063 <p>Invert mapping:</p>
25064 <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 ]
25066 <p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
25067 <p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
25068 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
25069 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/>
25070 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/>
25071 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/>
25072 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 ]
25074 <p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
25075 <p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
25076 <pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
25077 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/>
25078 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/>
25079 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/>
25080 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 ]
25082 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
25086 <tr class="entries_header">
25087 <th class="th_details" colspan="5">HAL Implementation Details</th>
25089 <tr class="entry_cont">
25090 <td class="entry_details" colspan="5">
25091 <p>For good quality of mapping,<wbr/> at least 128 control points are
25092 preferred.<wbr/></p>
25093 <p>A typical use case of this would be a gamma-1/<wbr/>2.<wbr/>2 curve,<wbr/> with as many
25094 control points used as are available.<wbr/></p>
25098 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25099 <!-- end of entry -->
25102 <tr class="entry" id="dynamic_android.tonemap.curve">
25103 <td class="entry_name
25105 android.<wbr/>tonemap.<wbr/>curve
25107 <td class="entry_type">
25108 <span class="entry_type_name">float</span>
25110 <span class="entry_type_visibility"> [java_public as tonemapCurve]</span>
25112 <span class="entry_type_synthetic">[synthetic] </span>
25114 <span class="entry_type_hwlevel">[full] </span>
25119 </td> <!-- entry_type -->
25121 <td class="entry_description">
25122 <p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a>
25123 is CONTRAST_<wbr/>CURVE.<wbr/></p>
25126 <td class="entry_units">
25129 <td class="entry_range">
25132 <td class="entry_tags">
25136 <tr class="entries_header">
25137 <th class="th_details" colspan="5">Details</th>
25139 <tr class="entry_cont">
25140 <td class="entry_details" colspan="5">
25141 <p>The tonemapCurve consist of three curves for each of red,<wbr/> green,<wbr/> and blue
25142 channels respectively.<wbr/> The following example uses the red channel as an
25143 example.<wbr/> The same logic applies to green and blue channel.<wbr/>
25144 Each channel's curve is defined by an array of control points:</p>
25145 <pre><code>curveRed =
25146 [ 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) ]
25147 2 <= N <= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
25148 <p>These are sorted in order of increasing <code>Pin</code>; it is always
25149 guaranteed that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
25150 define a complete mapping.<wbr/> For input values between control points,<wbr/>
25151 the camera device must linearly interpolate between the control
25153 <p>Each curve can have an independent number of points,<wbr/> and the number
25154 of points can be less than max (that is,<wbr/> the request doesn't have to
25155 always provide a curve with number of points equivalent to
25156 <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
25157 <p>A few examples,<wbr/> and their corresponding graphical mappings; these
25158 only specify the red channel and the precision is limited to 4
25159 digits,<wbr/> for conciseness.<wbr/></p>
25160 <p>Linear mapping:</p>
25161 <pre><code>curveRed = [ (0,<wbr/> 0),<wbr/> (1.<wbr/>0,<wbr/> 1.<wbr/>0) ]
25163 <p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
25164 <p>Invert mapping:</p>
25165 <pre><code>curveRed = [ (0,<wbr/> 1.<wbr/>0),<wbr/> (1.<wbr/>0,<wbr/> 0) ]
25167 <p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
25168 <p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
25169 <pre><code>curveRed = [
25170 (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/>
25171 (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/>
25172 (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/>
25173 (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) ]
25175 <p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
25176 <p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
25177 <pre><code>curveRed = [
25178 (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/>
25179 (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/>
25180 (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/>
25181 (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) ]
25183 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
25187 <tr class="entries_header">
25188 <th class="th_details" colspan="5">HAL Implementation Details</th>
25190 <tr class="entry_cont">
25191 <td class="entry_details" colspan="5">
25192 <p>This entry is created by the framework from the curveRed,<wbr/> curveGreen and
25193 curveBlue entries.<wbr/></p>
25197 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25198 <!-- end of entry -->
25201 <tr class="entry" id="dynamic_android.tonemap.mode">
25202 <td class="entry_name
25204 android.<wbr/>tonemap.<wbr/>mode
25206 <td class="entry_type">
25207 <span class="entry_type_name entry_type_name_enum">byte</span>
25209 <span class="entry_type_visibility"> [public]</span>
25212 <span class="entry_type_hwlevel">[full] </span>
25216 <ul class="entry_type_enum">
25218 <span class="entry_type_enum_name">CONTRAST_CURVE</span>
25219 <span class="entry_type_enum_notes"><p>Use the tone mapping curve specified in
25220 the <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>* entries.<wbr/></p>
25221 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
25222 for applying the tonemapping curve specified by
25223 <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/></p>
25224 <p>Must not slow down frame rate relative to raw
25225 sensor output.<wbr/></p></span>
25228 <span class="entry_type_enum_name">FAST</span>
25229 <span class="entry_type_enum_notes"><p>Advanced gamma mapping and color enhancement may be applied,<wbr/> without
25230 reducing frame rate compared to raw sensor output.<wbr/></p></span>
25233 <span class="entry_type_enum_name">HIGH_QUALITY</span>
25234 <span class="entry_type_enum_notes"><p>High-quality gamma mapping and color enhancement will be applied,<wbr/> at
25235 the cost of possibly reduced frame rate compared to raw sensor output.<wbr/></p></span>
25238 <span class="entry_type_enum_name">GAMMA_VALUE</span>
25239 <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
25240 tonemapping.<wbr/></p>
25241 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
25242 for applying the tonemapping curve specified by <a href="#controls_android.tonemap.gamma">android.<wbr/>tonemap.<wbr/>gamma</a>.<wbr/></p>
25243 <p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
25246 <span class="entry_type_enum_name">PRESET_CURVE</span>
25247 <span class="entry_type_enum_notes"><p>Use the preset tonemapping curve specified in
25248 <a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a> to peform tonemapping.<wbr/></p>
25249 <p>All color enhancement and tonemapping must be disabled,<wbr/> except
25250 for applying the tonemapping curve specified by
25251 <a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a>.<wbr/></p>
25252 <p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
25256 </td> <!-- entry_type -->
25258 <td class="entry_description">
25259 <p>High-level global contrast/<wbr/>gamma/<wbr/>tonemapping control.<wbr/></p>
25262 <td class="entry_units">
25265 <td class="entry_range">
25266 <p><a href="#static_android.tonemap.availableToneMapModes">android.<wbr/>tonemap.<wbr/>available<wbr/>Tone<wbr/>Map<wbr/>Modes</a></p>
25269 <td class="entry_tags">
25273 <tr class="entries_header">
25274 <th class="th_details" colspan="5">Details</th>
25276 <tr class="entry_cont">
25277 <td class="entry_details" colspan="5">
25278 <p>When switching to an application-defined contrast curve by setting
25279 <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> to CONTRAST_<wbr/>CURVE,<wbr/> the curve is defined
25280 per-channel with a set of <code>(in,<wbr/> out)</code> points that specify the
25281 mapping from input high-bit-depth pixel value to the output
25282 low-bit-depth value.<wbr/> Since the actual pixel ranges of both input
25283 and output may change depending on the camera pipeline,<wbr/> the values
25284 are specified by normalized floating-point numbers.<wbr/></p>
25285 <p>More-complex color mapping operations such as 3D color look-up
25286 tables,<wbr/> selective chroma enhancement,<wbr/> or other non-linear color
25287 transforms will be disabled when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
25288 CONTRAST_<wbr/>CURVE.<wbr/></p>
25289 <p>When using either FAST or HIGH_<wbr/>QUALITY,<wbr/> the camera device will
25290 emit its own tonemap curve in <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/>
25291 These values are always available,<wbr/> and as close as possible to the
25292 actually used nonlinear/<wbr/>nonglobal transforms.<wbr/></p>
25293 <p>If a request is sent with CONTRAST_<wbr/>CURVE with the camera device's
25294 provided curve in FAST or HIGH_<wbr/>QUALITY,<wbr/> the image's tonemap will be
25295 roughly the same.<wbr/></p>
25300 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25301 <!-- end of entry -->
25304 <tr class="entry" id="dynamic_android.tonemap.gamma">
25305 <td class="entry_name
25307 android.<wbr/>tonemap.<wbr/>gamma
25309 <td class="entry_type">
25310 <span class="entry_type_name">float</span>
25312 <span class="entry_type_visibility"> [public]</span>
25319 </td> <!-- entry_type -->
25321 <td class="entry_description">
25322 <p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
25323 GAMMA_<wbr/>VALUE</p>
25326 <td class="entry_units">
25329 <td class="entry_range">
25332 <td class="entry_tags">
25336 <tr class="entries_header">
25337 <th class="th_details" colspan="5">Details</th>
25339 <tr class="entry_cont">
25340 <td class="entry_details" colspan="5">
25341 <p>The tonemap curve will be defined the following formula:
25342 * OUT = pow(IN,<wbr/> 1.<wbr/>0 /<wbr/> gamma)
25343 where IN and OUT is the input pixel value scaled to range [0.<wbr/>0,<wbr/> 1.<wbr/>0],<wbr/>
25344 pow is the power function and gamma is the gamma value specified by this
25346 <p>The same curve will be applied to all color channels.<wbr/> The camera device
25347 may clip the input gamma value to its supported range.<wbr/> The actual applied
25348 value will be returned in capture result.<wbr/></p>
25349 <p>The valid range of gamma value varies on different devices,<wbr/> but values
25350 within [1.<wbr/>0,<wbr/> 5.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
25355 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25356 <!-- end of entry -->
25359 <tr class="entry" id="dynamic_android.tonemap.presetCurve">
25360 <td class="entry_name
25362 android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve
25364 <td class="entry_type">
25365 <span class="entry_type_name entry_type_name_enum">byte</span>
25367 <span class="entry_type_visibility"> [public]</span>
25373 <ul class="entry_type_enum">
25375 <span class="entry_type_enum_name">SRGB</span>
25376 <span class="entry_type_enum_notes"><p>Tonemapping curve is defined by sRGB</p></span>
25379 <span class="entry_type_enum_name">REC709</span>
25380 <span class="entry_type_enum_notes"><p>Tonemapping curve is defined by ITU-R BT.<wbr/>709</p></span>
25384 </td> <!-- entry_type -->
25386 <td class="entry_description">
25387 <p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
25388 PRESET_<wbr/>CURVE</p>
25391 <td class="entry_units">
25394 <td class="entry_range">
25397 <td class="entry_tags">
25401 <tr class="entries_header">
25402 <th class="th_details" colspan="5">Details</th>
25404 <tr class="entry_cont">
25405 <td class="entry_details" colspan="5">
25406 <p>The tonemap curve will be defined by specified standard.<wbr/></p>
25407 <p>sRGB (approximated by 16 control points):</p>
25408 <p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
25409 <p>Rec.<wbr/> 709 (approximated by 16 control points):</p>
25410 <p><img alt="Rec. 709 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/rec709_tonemap.png"/></p>
25411 <p>Note that above figures show a 16 control points approximation of preset
25412 curves.<wbr/> Camera devices may apply a different approximation to the curve.<wbr/></p>
25417 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25418 <!-- end of entry -->
25422 <!-- end of kind -->
25425 <!-- end of section -->
25426 <tr><td colspan="6" id="section_led" class="section">led</td></tr>
25429 <tr><td colspan="6" class="kind">controls</td></tr>
25431 <thead class="entries_header">
25433 <th class="th_name">Property Name</th>
25434 <th class="th_type">Type</th>
25435 <th class="th_description">Description</th>
25436 <th class="th_units">Units</th>
25437 <th class="th_range">Range</th>
25438 <th class="th_tags">Tags</th>
25453 <tr class="entry" id="controls_android.led.transmit">
25454 <td class="entry_name
25456 android.<wbr/>led.<wbr/>transmit
25458 <td class="entry_type">
25459 <span class="entry_type_name entry_type_name_enum">byte</span>
25461 <span class="entry_type_visibility"> [hidden as boolean]</span>
25467 <ul class="entry_type_enum">
25469 <span class="entry_type_enum_name">OFF</span>
25472 <span class="entry_type_enum_name">ON</span>
25476 </td> <!-- entry_type -->
25478 <td class="entry_description">
25479 <p>This LED is nominally used to indicate to the user
25480 that the camera is powered on and may be streaming images back to the
25481 Application Processor.<wbr/> In certain rare circumstances,<wbr/> the OS may
25482 disable this when video is processed locally and not transmitted to
25483 any untrusted applications.<wbr/></p>
25484 <p>In particular,<wbr/> the LED <em>must</em> always be on when the data could be
25485 transmitted off the device.<wbr/> The LED <em>should</em> always be on whenever
25486 data is stored locally on the device.<wbr/></p>
25487 <p>The LED <em>may</em> be off if a trusted application is using the data that
25488 doesn't violate the above rules.<wbr/></p>
25491 <td class="entry_units">
25494 <td class="entry_range">
25497 <td class="entry_tags">
25503 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25504 <!-- end of entry -->
25508 <!-- end of kind -->
25510 <tr><td colspan="6" class="kind">dynamic</td></tr>
25512 <thead class="entries_header">
25514 <th class="th_name">Property Name</th>
25515 <th class="th_type">Type</th>
25516 <th class="th_description">Description</th>
25517 <th class="th_units">Units</th>
25518 <th class="th_range">Range</th>
25519 <th class="th_tags">Tags</th>
25534 <tr class="entry" id="dynamic_android.led.transmit">
25535 <td class="entry_name
25537 android.<wbr/>led.<wbr/>transmit
25539 <td class="entry_type">
25540 <span class="entry_type_name entry_type_name_enum">byte</span>
25542 <span class="entry_type_visibility"> [hidden as boolean]</span>
25548 <ul class="entry_type_enum">
25550 <span class="entry_type_enum_name">OFF</span>
25553 <span class="entry_type_enum_name">ON</span>
25557 </td> <!-- entry_type -->
25559 <td class="entry_description">
25560 <p>This LED is nominally used to indicate to the user
25561 that the camera is powered on and may be streaming images back to the
25562 Application Processor.<wbr/> In certain rare circumstances,<wbr/> the OS may
25563 disable this when video is processed locally and not transmitted to
25564 any untrusted applications.<wbr/></p>
25565 <p>In particular,<wbr/> the LED <em>must</em> always be on when the data could be
25566 transmitted off the device.<wbr/> The LED <em>should</em> always be on whenever
25567 data is stored locally on the device.<wbr/></p>
25568 <p>The LED <em>may</em> be off if a trusted application is using the data that
25569 doesn't violate the above rules.<wbr/></p>
25572 <td class="entry_units">
25575 <td class="entry_range">
25578 <td class="entry_tags">
25584 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25585 <!-- end of entry -->
25589 <!-- end of kind -->
25591 <tr><td colspan="6" class="kind">static</td></tr>
25593 <thead class="entries_header">
25595 <th class="th_name">Property Name</th>
25596 <th class="th_type">Type</th>
25597 <th class="th_description">Description</th>
25598 <th class="th_units">Units</th>
25599 <th class="th_range">Range</th>
25600 <th class="th_tags">Tags</th>
25615 <tr class="entry" id="static_android.led.availableLeds">
25616 <td class="entry_name
25618 android.<wbr/>led.<wbr/>available<wbr/>Leds
25620 <td class="entry_type">
25621 <span class="entry_type_name entry_type_name_enum">byte</span>
25622 <span class="entry_type_container">x</span>
25624 <span class="entry_type_array">
25627 <span class="entry_type_visibility"> [hidden]</span>
25633 <ul class="entry_type_enum">
25635 <span class="entry_type_enum_name">TRANSMIT</span>
25636 <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>
25640 </td> <!-- entry_type -->
25642 <td class="entry_description">
25643 <p>A list of camera LEDs that are available on this system.<wbr/></p>
25646 <td class="entry_units">
25649 <td class="entry_range">
25652 <td class="entry_tags">
25658 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25659 <!-- end of entry -->
25663 <!-- end of kind -->
25666 <!-- end of section -->
25667 <tr><td colspan="6" id="section_info" class="section">info</td></tr>
25670 <tr><td colspan="6" class="kind">static</td></tr>
25672 <thead class="entries_header">
25674 <th class="th_name">Property Name</th>
25675 <th class="th_type">Type</th>
25676 <th class="th_description">Description</th>
25677 <th class="th_units">Units</th>
25678 <th class="th_range">Range</th>
25679 <th class="th_tags">Tags</th>
25694 <tr class="entry" id="static_android.info.supportedHardwareLevel">
25695 <td class="entry_name
25697 android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level
25699 <td class="entry_type">
25700 <span class="entry_type_name entry_type_name_enum">byte</span>
25702 <span class="entry_type_visibility"> [public]</span>
25705 <span class="entry_type_hwlevel">[legacy] </span>
25709 <ul class="entry_type_enum">
25711 <span class="entry_type_enum_name">LIMITED</span>
25712 <span class="entry_type_enum_notes"><p>This camera device does not have enough capabilities to qualify as a <code>FULL</code> device or
25714 <p>Only the stream configurations listed in the <code>LEGACY</code> and <code>LIMITED</code> tables in the
25715 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">createCaptureSession</a> documentation are guaranteed to be supported.<wbr/></p>
25716 <p>All <code>LIMITED</code> devices support the <code>BACKWARDS_<wbr/>COMPATIBLE</code> capability,<wbr/> indicating basic
25717 support for color image capture.<wbr/> The only exception is that the device may
25718 alternatively support only the <code>DEPTH_<wbr/>OUTPUT</code> capability,<wbr/> if it can only output depth
25719 measurements and not color images.<wbr/></p>
25720 <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>
25721 to lock exposure metering (and calculate flash power,<wbr/> for cameras with flash) before
25722 capturing a high-quality still image.<wbr/></p>
25723 <p>A <code>LIMITED</code> device that only lists the <code>BACKWARDS_<wbr/>COMPATIBLE</code> capability is only
25724 required to support full-automatic operation and post-processing (<code>OFF</code> is not
25725 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
25726 <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>)</p>
25727 <p>Additional capabilities may optionally be supported by a <code>LIMITED</code>-level device,<wbr/> and
25728 can be checked for in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p></span>
25731 <span class="entry_type_enum_name">FULL</span>
25732 <span class="entry_type_enum_notes"><p>This camera device is capable of supporting advanced imaging applications.<wbr/></p>
25733 <p>The stream configurations listed in the <code>FULL</code>,<wbr/> <code>LEGACY</code> and <code>LIMITED</code> tables in the
25734 <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">createCaptureSession</a> documentation are guaranteed to be supported.<wbr/></p>
25735 <p>A <code>FULL</code> device will support below capabilities:</p>
25737 <li><code>BURST_<wbr/>CAPTURE</code> capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
25738 <code>BURST_<wbr/>CAPTURE</code>)</li>
25739 <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>
25740 <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>
25741 <li>Manual post-processing control (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
25742 <code>MANUAL_<wbr/>POST_<wbr/>PROCESSING</code>)</li>
25743 <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>
25744 <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>
25747 Pre-API level 23,<wbr/> FULL devices also supported arbitrary cropping region
25748 (<a href="#static_android.scaler.croppingType">android.<wbr/>scaler.<wbr/>cropping<wbr/>Type</a> <code>== FREEFORM</code>); this requirement was relaxed in API level
25749 23,<wbr/> and <code>FULL</code> devices may only support <code>CENTERED</code> cropping.<wbr/></p></span>
25752 <span class="entry_type_enum_name">LEGACY</span>
25753 <span class="entry_type_enum_notes"><p>This camera device is running in backward compatibility mode.<wbr/></p>
25754 <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>
25755 documentation are supported.<wbr/></p>
25756 <p>A <code>LEGACY</code> device does not support per-frame control,<wbr/> manual sensor control,<wbr/> manual
25757 post-processing,<wbr/> arbitrary cropping regions,<wbr/> and has relaxed performance constraints.<wbr/>
25758 No additional capabilities beyond <code>BACKWARD_<wbr/>COMPATIBLE</code> will ever be listed by a
25759 <code>LEGACY</code> device in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
25760 <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>
25761 devices.<wbr/> Instead,<wbr/> every request that includes a JPEG-format output target is treated
25762 as triggering a still capture,<wbr/> internally executing a precapture trigger.<wbr/> This may
25763 fire the flash for flash power metering during precapture,<wbr/> and then fire the flash
25764 for the final capture,<wbr/> if a flash is available on the device and the AE mode is set to
25765 enable the flash.<wbr/></p></span>
25768 <span class="entry_type_enum_name">3</span>
25769 <span class="entry_type_enum_notes"><p>This camera device is capable of YUV reprocessing and RAW data capture,<wbr/> in addition to
25770 FULL-level capabilities.<wbr/></p>
25771 <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
25772 <code>LIMITED</code> tables in the <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureSession">createCaptureSession</a>
25773 documentation are guaranteed to be supported.<wbr/></p>
25774 <p>The following additional capabilities are guaranteed to be supported:</p>
25776 <li><code>YUV_<wbr/>REPROCESSING</code> capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
25777 <code>YUV_<wbr/>REPROCESSING</code>)</li>
25778 <li><code>RAW</code> capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
25779 <code>RAW</code>)</li>
25784 </td> <!-- entry_type -->
25786 <td class="entry_description">
25787 <p>Generally classifies the overall set of the camera device functionality.<wbr/></p>
25790 <td class="entry_units">
25793 <td class="entry_range">
25796 <td class="entry_tags">
25800 <tr class="entries_header">
25801 <th class="th_details" colspan="5">Details</th>
25803 <tr class="entry_cont">
25804 <td class="entry_details" colspan="5">
25805 <p>The supported hardware level is a high-level description of the camera device's
25806 capabilities,<wbr/> summarizing several capabilities into one field.<wbr/> Each level adds additional
25807 features to the previous one,<wbr/> and is always a strict superset of the previous level.<wbr/>
25808 The ordering is <code>LEGACY < LIMITED < FULL < LEVEL_<wbr/>3</code>.<wbr/></p>
25809 <p>Starting from <code>LEVEL_<wbr/>3</code>,<wbr/> the level enumerations are guaranteed to be in increasing
25810 numerical value as well.<wbr/> To check if a given device is at least at a given hardware level,<wbr/>
25811 the following code snippet can be used:</p>
25812 <pre><code>//<wbr/> Returns true if the device supports the required hardware level,<wbr/> or better.<wbr/>
25813 boolean isHardwareLevelSupported(CameraCharacteristics c,<wbr/> int requiredLevel) {
25814 int deviceLevel = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>INFO_<wbr/>SUPPORTED_<wbr/>HARDWARE_<wbr/>LEVEL);
25815 if (deviceLevel == Camera<wbr/>Characteristics.<wbr/>INFO_<wbr/>SUPPORTED_<wbr/>HARDWARE_<wbr/>LEVEL_<wbr/>LEGACY) {
25816 return requiredLevel == deviceLevel;
25818 //<wbr/> deviceLevel is not LEGACY,<wbr/> can use numerical sort
25819 return requiredLevel <= deviceLevel;
25822 <p>At a high level,<wbr/> the levels are:</p>
25824 <li><code>LEGACY</code> devices operate in a backwards-compatibility mode for older
25825 Android devices,<wbr/> and have very limited capabilities.<wbr/></li>
25826 <li><code>LIMITED</code> devices represent the
25827 baseline feature set,<wbr/> and may also include additional capabilities that are
25828 subsets of <code>FULL</code>.<wbr/></li>
25829 <li><code>FULL</code> devices additionally support per-frame manual control of sensor,<wbr/> flash,<wbr/> lens and
25830 post-processing settings,<wbr/> and image capture at a high rate.<wbr/></li>
25831 <li><code>LEVEL_<wbr/>3</code> devices additionally support YUV reprocessing and RAW image capture,<wbr/> along
25832 with additional output stream configurations.<wbr/></li>
25834 <p>See the individual level enums for full descriptions of the supported capabilities.<wbr/> The
25835 <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> entry describes the device's capabilities at a
25836 finer-grain level,<wbr/> if needed.<wbr/> In addition,<wbr/> many controls have their available settings or
25837 ranges defined in individual <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a> entries.<wbr/></p>
25838 <p>Some features are not part of any particular hardware level or capability and must be
25839 queried separately.<wbr/> These include:</p>
25841 <li>Calibrated timestamps (<a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> REALTIME)</li>
25842 <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>
25843 <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>
25844 <li>Optical or electrical image stabilization
25845 (<a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a>,<wbr/>
25846 <a href="#static_android.control.availableVideoStabilizationModes">android.<wbr/>control.<wbr/>available<wbr/>Video<wbr/>Stabilization<wbr/>Modes</a>)</li>
25851 <tr class="entries_header">
25852 <th class="th_details" colspan="5">HAL Implementation Details</th>
25854 <tr class="entry_cont">
25855 <td class="entry_details" colspan="5">
25856 <p>The camera 3 HAL device can implement one of three possible operational modes; LIMITED,<wbr/>
25857 FULL,<wbr/> and LEVEL_<wbr/>3.<wbr/></p>
25858 <p>FULL support or better is expected from new higher-end devices.<wbr/> Limited
25859 mode has hardware requirements roughly in line with those for a camera HAL device v1
25860 implementation,<wbr/> and is expected from older or inexpensive devices.<wbr/> Each level is a strict
25861 superset of the previous level,<wbr/> and they share the same essential operational flow.<wbr/></p>
25862 <p>For full details refer to "S3.<wbr/> Operational Modes" in camera3.<wbr/>h</p>
25863 <p>Camera HAL3+ must not implement LEGACY mode.<wbr/> It is there for backwards compatibility in
25864 the <code>android.<wbr/>hardware.<wbr/>camera2</code> user-facing API only on HALv1 devices,<wbr/> and is implemented
25865 by the camera framework code.<wbr/></p>
25869 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
25870 <!-- end of entry -->
25874 <!-- end of kind -->
25877 <!-- end of section -->
25878 <tr><td colspan="6" id="section_blackLevel" class="section">blackLevel</td></tr>
25881 <tr><td colspan="6" class="kind">controls</td></tr>
25883 <thead class="entries_header">
25885 <th class="th_name">Property Name</th>
25886 <th class="th_type">Type</th>
25887 <th class="th_description">Description</th>
25888 <th class="th_units">Units</th>
25889 <th class="th_range">Range</th>
25890 <th class="th_tags">Tags</th>
25905 <tr class="entry" id="controls_android.blackLevel.lock">
25906 <td class="entry_name
25908 android.<wbr/>black<wbr/>Level.<wbr/>lock
25910 <td class="entry_type">
25911 <span class="entry_type_name entry_type_name_enum">byte</span>
25913 <span class="entry_type_visibility"> [public as boolean]</span>
25916 <span class="entry_type_hwlevel">[full] </span>
25920 <ul class="entry_type_enum">
25922 <span class="entry_type_enum_name">OFF</span>
25925 <span class="entry_type_enum_name">ON</span>
25929 </td> <!-- entry_type -->
25931 <td class="entry_description">
25932 <p>Whether black-level compensation is locked
25933 to its current values,<wbr/> or is free to vary.<wbr/></p>
25936 <td class="entry_units">
25939 <td class="entry_range">
25942 <td class="entry_tags">
25943 <ul class="entry_tags">
25944 <li><a href="#tag_HAL2">HAL2</a></li>
25949 <tr class="entries_header">
25950 <th class="th_details" colspan="5">Details</th>
25952 <tr class="entry_cont">
25953 <td class="entry_details" colspan="5">
25954 <p>When set to <code>true</code> (ON),<wbr/> the values used for black-level
25955 compensation will not change until the lock is set to
25956 <code>false</code> (OFF).<wbr/></p>
25957 <p>Since changes to certain capture parameters (such as
25958 exposure time) may require resetting of black level
25959 compensation,<wbr/> the camera device must report whether setting
25960 the black level lock was successful in the output result
25961 metadata.<wbr/></p>
25962 <p>For example,<wbr/> if a sequence of requests is as follows:</p>
25964 <li>Request 1: Exposure = 10ms,<wbr/> Black level lock = OFF</li>
25965 <li>Request 2: Exposure = 10ms,<wbr/> Black level lock = ON</li>
25966 <li>Request 3: Exposure = 10ms,<wbr/> Black level lock = ON</li>
25967 <li>Request 4: Exposure = 20ms,<wbr/> Black level lock = ON</li>
25968 <li>Request 5: Exposure = 20ms,<wbr/> Black level lock = ON</li>
25969 <li>Request 6: Exposure = 20ms,<wbr/> Black level lock = ON</li>
25971 <p>And the exposure change in Request 4 requires the camera
25972 device to reset the black level offsets,<wbr/> then the output
25973 result metadata is expected to be:</p>
25975 <li>Result 1: Exposure = 10ms,<wbr/> Black level lock = OFF</li>
25976 <li>Result 2: Exposure = 10ms,<wbr/> Black level lock = ON</li>
25977 <li>Result 3: Exposure = 10ms,<wbr/> Black level lock = ON</li>
25978 <li>Result 4: Exposure = 20ms,<wbr/> Black level lock = OFF</li>
25979 <li>Result 5: Exposure = 20ms,<wbr/> Black level lock = ON</li>
25980 <li>Result 6: Exposure = 20ms,<wbr/> Black level lock = ON</li>
25982 <p>This indicates to the application that on frame 4,<wbr/> black
25983 levels were reset due to exposure value changes,<wbr/> and pixel
25984 values may not be consistent across captures.<wbr/></p>
25985 <p>The camera device will maintain the lock to the extent
25986 possible,<wbr/> only overriding the lock to OFF when changes to
25987 other request parameters require a black level recalculation
25988 or reset.<wbr/></p>
25992 <tr class="entries_header">
25993 <th class="th_details" colspan="5">HAL Implementation Details</th>
25995 <tr class="entry_cont">
25996 <td class="entry_details" colspan="5">
25997 <p>If for some reason black level locking is no longer possible
25998 (for example,<wbr/> the analog gain has changed,<wbr/> which forces
25999 black level offsets to be recalculated),<wbr/> then the HAL must
26000 override this request (and it must report 'OFF' when this
26001 does happen) until the next capture for which locking is
26002 possible again.<wbr/></p>
26006 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26007 <!-- end of entry -->
26011 <!-- end of kind -->
26013 <tr><td colspan="6" class="kind">dynamic</td></tr>
26015 <thead class="entries_header">
26017 <th class="th_name">Property Name</th>
26018 <th class="th_type">Type</th>
26019 <th class="th_description">Description</th>
26020 <th class="th_units">Units</th>
26021 <th class="th_range">Range</th>
26022 <th class="th_tags">Tags</th>
26037 <tr class="entry" id="dynamic_android.blackLevel.lock">
26038 <td class="entry_name
26040 android.<wbr/>black<wbr/>Level.<wbr/>lock
26042 <td class="entry_type">
26043 <span class="entry_type_name entry_type_name_enum">byte</span>
26045 <span class="entry_type_visibility"> [public as boolean]</span>
26048 <span class="entry_type_hwlevel">[full] </span>
26052 <ul class="entry_type_enum">
26054 <span class="entry_type_enum_name">OFF</span>
26057 <span class="entry_type_enum_name">ON</span>
26061 </td> <!-- entry_type -->
26063 <td class="entry_description">
26064 <p>Whether black-level compensation is locked
26065 to its current values,<wbr/> or is free to vary.<wbr/></p>
26068 <td class="entry_units">
26071 <td class="entry_range">
26074 <td class="entry_tags">
26075 <ul class="entry_tags">
26076 <li><a href="#tag_HAL2">HAL2</a></li>
26081 <tr class="entries_header">
26082 <th class="th_details" colspan="5">Details</th>
26084 <tr class="entry_cont">
26085 <td class="entry_details" colspan="5">
26086 <p>Whether the black level offset was locked for this frame.<wbr/> Should be
26087 ON if <a href="#controls_android.blackLevel.lock">android.<wbr/>black<wbr/>Level.<wbr/>lock</a> was ON in the capture request,<wbr/> unless
26088 a change in other capture settings forced the camera device to
26089 perform a black level reset.<wbr/></p>
26093 <tr class="entries_header">
26094 <th class="th_details" colspan="5">HAL Implementation Details</th>
26096 <tr class="entry_cont">
26097 <td class="entry_details" colspan="5">
26098 <p>If for some reason black level locking is no longer possible
26099 (for example,<wbr/> the analog gain has changed,<wbr/> which forces
26100 black level offsets to be recalculated),<wbr/> then the HAL must
26101 override this request (and it must report 'OFF' when this
26102 does happen) until the next capture for which locking is
26103 possible again.<wbr/></p>
26107 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26108 <!-- end of entry -->
26112 <!-- end of kind -->
26115 <!-- end of section -->
26116 <tr><td colspan="6" id="section_sync" class="section">sync</td></tr>
26119 <tr><td colspan="6" class="kind">dynamic</td></tr>
26121 <thead class="entries_header">
26123 <th class="th_name">Property Name</th>
26124 <th class="th_type">Type</th>
26125 <th class="th_description">Description</th>
26126 <th class="th_units">Units</th>
26127 <th class="th_range">Range</th>
26128 <th class="th_tags">Tags</th>
26143 <tr class="entry" id="dynamic_android.sync.frameNumber">
26144 <td class="entry_name
26146 android.<wbr/>sync.<wbr/>frame<wbr/>Number
26148 <td class="entry_type">
26149 <span class="entry_type_name entry_type_name_enum">int64</span>
26151 <span class="entry_type_visibility"> [ndk_public]</span>
26154 <span class="entry_type_hwlevel">[legacy] </span>
26158 <ul class="entry_type_enum">
26160 <span class="entry_type_enum_name">CONVERGING</span>
26161 <span class="entry_type_enum_value">-1</span>
26162 <span class="entry_type_enum_notes"><p>The current result is not yet fully synchronized to any request.<wbr/></p>
26163 <p>Synchronization is in progress,<wbr/> and reading metadata from this
26164 result may include a mix of data that have taken effect since the
26165 last synchronization time.<wbr/></p>
26166 <p>In some future result,<wbr/> within <a href="#static_android.sync.maxLatency">android.<wbr/>sync.<wbr/>max<wbr/>Latency</a> frames,<wbr/>
26167 this value will update to the actual frame number frame number
26168 the result is guaranteed to be synchronized to (as long as the
26169 request settings remain constant).<wbr/></p></span>
26172 <span class="entry_type_enum_name">UNKNOWN</span>
26173 <span class="entry_type_enum_value">-2</span>
26174 <span class="entry_type_enum_notes"><p>The current result's synchronization status is unknown.<wbr/></p>
26175 <p>The result may have already converged,<wbr/> or it may be in
26176 progress.<wbr/> Reading from this result may include some mix
26177 of settings from past requests.<wbr/></p>
26178 <p>After a settings change,<wbr/> the new settings will eventually all
26179 take effect for the output buffers and results.<wbr/> However,<wbr/> this
26180 value will not change when that happens.<wbr/> Altering settings
26181 rapidly may provide outcomes using mixes of settings from recent
26182 requests.<wbr/></p>
26183 <p>This value is intended primarily for backwards compatibility with
26184 the older camera implementations (for android.<wbr/>hardware.<wbr/>Camera).<wbr/></p></span>
26188 </td> <!-- entry_type -->
26190 <td class="entry_description">
26191 <p>The frame number corresponding to the last request
26192 with which the output result (metadata + buffers) has been fully
26193 synchronized.<wbr/></p>
26196 <td class="entry_units">
26199 <td class="entry_range">
26200 <p>Either a non-negative value corresponding to a
26201 <code>frame_<wbr/>number</code>,<wbr/> or one of the two enums (CONVERGING /<wbr/> UNKNOWN).<wbr/></p>
26204 <td class="entry_tags">
26205 <ul class="entry_tags">
26206 <li><a href="#tag_V1">V1</a></li>
26211 <tr class="entries_header">
26212 <th class="th_details" colspan="5">Details</th>
26214 <tr class="entry_cont">
26215 <td class="entry_details" colspan="5">
26216 <p>When a request is submitted to the camera device,<wbr/> there is usually a
26217 delay of several frames before the controls get applied.<wbr/> A camera
26218 device may either choose to account for this delay by implementing a
26219 pipeline and carefully submit well-timed atomic control updates,<wbr/> or
26220 it may start streaming control changes that span over several frame
26221 boundaries.<wbr/></p>
26222 <p>In the latter case,<wbr/> whenever a request's settings change relative to
26223 the previous submitted request,<wbr/> the full set of changes may take
26224 multiple frame durations to fully take effect.<wbr/> Some settings may
26225 take effect sooner (in less frame durations) than others.<wbr/></p>
26226 <p>While a set of control changes are being propagated,<wbr/> this value
26227 will be CONVERGING.<wbr/></p>
26228 <p>Once it is fully known that a set of control changes have been
26229 finished propagating,<wbr/> and the resulting updated control settings
26230 have been read back by the camera device,<wbr/> this value will be set
26231 to a non-negative frame number (corresponding to the request to
26232 which the results have synchronized to).<wbr/></p>
26233 <p>Older camera device implementations may not have a way to detect
26234 when all camera controls have been applied,<wbr/> and will always set this
26235 value to UNKNOWN.<wbr/></p>
26236 <p>FULL capability devices will always have this value set to the
26237 frame number of the request corresponding to this result.<wbr/></p>
26238 <p><em>Further details</em>:</p>
26240 <li>Whenever a request differs from the last request,<wbr/> any future
26241 results not yet returned may have this value set to CONVERGING (this
26242 could include any in-progress captures not yet returned by the camera
26243 device,<wbr/> for more details see pipeline considerations below).<wbr/></li>
26244 <li>Submitting a series of multiple requests that differ from the
26245 previous request (e.<wbr/>g.<wbr/> r1,<wbr/> r2,<wbr/> r3 s.<wbr/>t.<wbr/> r1 != r2 != r3)
26246 moves the new synchronization frame to the last non-repeating
26247 request (using the smallest frame number from the contiguous list of
26248 repeating requests).<wbr/></li>
26249 <li>Submitting the same request repeatedly will not change this value
26250 to CONVERGING,<wbr/> if it was already a non-negative value.<wbr/></li>
26251 <li>When this value changes to non-negative,<wbr/> that means that all of the
26252 metadata controls from the request have been applied,<wbr/> all of the
26253 metadata controls from the camera device have been read to the
26254 updated values (into the result),<wbr/> and all of the graphics buffers
26255 corresponding to this result are also synchronized to the request.<wbr/></li>
26257 <p><em>Pipeline considerations</em>:</p>
26258 <p>Submitting a request with updated controls relative to the previously
26259 submitted requests may also invalidate the synchronization state
26260 of all the results corresponding to currently in-flight requests.<wbr/></p>
26261 <p>In other words,<wbr/> results for this current request and up to
26262 <a href="#static_android.request.pipelineMaxDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth</a> prior requests may have their
26263 <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> change to CONVERGING.<wbr/></p>
26267 <tr class="entries_header">
26268 <th class="th_details" colspan="5">HAL Implementation Details</th>
26270 <tr class="entry_cont">
26271 <td class="entry_details" colspan="5">
26272 <p>Using UNKNOWN here is illegal unless <a href="#static_android.sync.maxLatency">android.<wbr/>sync.<wbr/>max<wbr/>Latency</a>
26273 is also UNKNOWN.<wbr/></p>
26274 <p>FULL capability devices should simply set this value to the
26275 <code>frame_<wbr/>number</code> of the request this result corresponds to.<wbr/></p>
26279 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26280 <!-- end of entry -->
26284 <!-- end of kind -->
26286 <tr><td colspan="6" class="kind">static</td></tr>
26288 <thead class="entries_header">
26290 <th class="th_name">Property Name</th>
26291 <th class="th_type">Type</th>
26292 <th class="th_description">Description</th>
26293 <th class="th_units">Units</th>
26294 <th class="th_range">Range</th>
26295 <th class="th_tags">Tags</th>
26310 <tr class="entry" id="static_android.sync.maxLatency">
26311 <td class="entry_name
26313 android.<wbr/>sync.<wbr/>max<wbr/>Latency
26315 <td class="entry_type">
26316 <span class="entry_type_name entry_type_name_enum">int32</span>
26318 <span class="entry_type_visibility"> [public]</span>
26321 <span class="entry_type_hwlevel">[legacy] </span>
26325 <ul class="entry_type_enum">
26327 <span class="entry_type_enum_name">PER_FRAME_CONTROL</span>
26328 <span class="entry_type_enum_value">0</span>
26329 <span class="entry_type_enum_notes"><p>Every frame has the requests immediately applied.<wbr/></p>
26330 <p>Changing controls over multiple requests one after another will
26331 produce results that have those controls applied atomically
26332 each frame.<wbr/></p>
26333 <p>All FULL capability devices will have this as their maxLatency.<wbr/></p></span>
26336 <span class="entry_type_enum_name">UNKNOWN</span>
26337 <span class="entry_type_enum_value">-1</span>
26338 <span class="entry_type_enum_notes"><p>Each new frame has some subset (potentially the entire set)
26339 of the past requests applied to the camera settings.<wbr/></p>
26340 <p>By submitting a series of identical requests,<wbr/> the camera device
26341 will eventually have the camera settings applied,<wbr/> but it is
26342 unknown when that exact point will be.<wbr/></p>
26343 <p>All LEGACY capability devices will have this as their maxLatency.<wbr/></p></span>
26347 </td> <!-- entry_type -->
26349 <td class="entry_description">
26350 <p>The maximum number of frames that can occur after a request
26351 (different than the previous) has been submitted,<wbr/> and before the
26352 result's state becomes synchronized.<wbr/></p>
26355 <td class="entry_units">
26359 <td class="entry_range">
26360 <p>A positive value,<wbr/> PER_<wbr/>FRAME_<wbr/>CONTROL,<wbr/> or UNKNOWN.<wbr/></p>
26363 <td class="entry_tags">
26364 <ul class="entry_tags">
26365 <li><a href="#tag_V1">V1</a></li>
26370 <tr class="entries_header">
26371 <th class="th_details" colspan="5">Details</th>
26373 <tr class="entry_cont">
26374 <td class="entry_details" colspan="5">
26375 <p>This defines the maximum distance (in number of metadata results),<wbr/>
26376 between the frame number of the request that has new controls to apply
26377 and the frame number of the result that has all the controls applied.<wbr/></p>
26378 <p>In other words this acts as an upper boundary for how many frames
26379 must occur before the camera device knows for a fact that the new
26380 submitted camera settings have been applied in outgoing frames.<wbr/></p>
26384 <tr class="entries_header">
26385 <th class="th_details" colspan="5">HAL Implementation Details</th>
26387 <tr class="entry_cont">
26388 <td class="entry_details" colspan="5">
26389 <p>For example if maxLatency was 2,<wbr/></p>
26390 <pre><code>initial request = X (repeating)
26396 where requestN has frameNumber N,<wbr/> and the first of the repeating
26397 initial request's has frameNumber F (and F < 1).<wbr/>
26399 initial result = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == F }
26400 result1 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == F }
26401 result2 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == CONVERGING }
26402 result3 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == CONVERGING }
26403 result4 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == 2 }
26405 where resultN has frameNumber N.<wbr/>
26407 <p>Since <code>result4</code> has a <code>frameNumber == 4</code> and
26408 <code><a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == 2</code>,<wbr/> the distance is clearly
26409 <code>4 - 2 = 2</code>.<wbr/></p>
26410 <p>Use <code>frame_<wbr/>count</code> from camera3_<wbr/>request_<wbr/>t instead of
26411 <a href="#controls_android.request.frameCount">android.<wbr/>request.<wbr/>frame<wbr/>Count</a> or
26412 <code><a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html#getFrameNumber">CaptureResult#getFrameNumber</a></code>.<wbr/></p>
26413 <p>LIMITED devices are strongly encouraged to use a non-negative
26414 value.<wbr/> If UNKNOWN is used here then app developers do not have a way
26415 to know when sensor settings have been applied.<wbr/></p>
26419 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26420 <!-- end of entry -->
26424 <!-- end of kind -->
26427 <!-- end of section -->
26428 <tr><td colspan="6" id="section_reprocess" class="section">reprocess</td></tr>
26431 <tr><td colspan="6" class="kind">controls</td></tr>
26433 <thead class="entries_header">
26435 <th class="th_name">Property Name</th>
26436 <th class="th_type">Type</th>
26437 <th class="th_description">Description</th>
26438 <th class="th_units">Units</th>
26439 <th class="th_range">Range</th>
26440 <th class="th_tags">Tags</th>
26455 <tr class="entry" id="controls_android.reprocess.effectiveExposureFactor">
26456 <td class="entry_name
26458 android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor
26460 <td class="entry_type">
26461 <span class="entry_type_name">float</span>
26463 <span class="entry_type_visibility"> [java_public]</span>
26466 <span class="entry_type_hwlevel">[limited] </span>
26471 </td> <!-- entry_type -->
26473 <td class="entry_description">
26474 <p>The amount of exposure time increase factor applied to the original output
26475 frame by the application processing before sending for reprocessing.<wbr/></p>
26478 <td class="entry_units">
26479 Relative exposure time increase factor.<wbr/>
26482 <td class="entry_range">
26483 <p>>= 1.<wbr/>0</p>
26486 <td class="entry_tags">
26487 <ul class="entry_tags">
26488 <li><a href="#tag_REPROC">REPROC</a></li>
26493 <tr class="entries_header">
26494 <th class="th_details" colspan="5">Details</th>
26496 <tr class="entry_cont">
26497 <td class="entry_details" colspan="5">
26498 <p>This is optional,<wbr/> and will be supported if the camera device supports YUV_<wbr/>REPROCESSING
26499 capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains YUV_<wbr/>REPROCESSING).<wbr/></p>
26500 <p>For some YUV reprocessing use cases,<wbr/> the application may choose to filter the original
26501 output frames to effectively reduce the noise to the same level as a frame that was
26502 captured with longer exposure time.<wbr/> To be more specific,<wbr/> assuming the original captured
26503 images were captured with a sensitivity of S and an exposure time of T,<wbr/> the model in
26504 the camera device is that the amount of noise in the image would be approximately what
26505 would be expected if the original capture parameters had been a sensitivity of
26506 S/<wbr/>effectiveExposureFactor and an exposure time of T*effectiveExposureFactor,<wbr/> rather
26507 than S and T respectively.<wbr/> If the captured images were processed by the application
26508 before being sent for reprocessing,<wbr/> then the application may have used image processing
26509 algorithms and/<wbr/>or multi-frame image fusion to reduce the noise in the
26510 application-processed images (input images).<wbr/> By using the effectiveExposureFactor
26511 control,<wbr/> the application can communicate to the camera device the actual noise level
26512 improvement in the application-processed image.<wbr/> With this information,<wbr/> the camera
26513 device can select appropriate noise reduction and edge enhancement parameters to avoid
26514 excessive noise reduction (<a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a>) and insufficient edge
26515 enhancement (<a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a>) being applied to the reprocessed frames.<wbr/></p>
26516 <p>For example,<wbr/> for multi-frame image fusion use case,<wbr/> the application may fuse
26517 multiple output frames together to a final frame for reprocessing.<wbr/> When N image are
26518 fused into 1 image for reprocessing,<wbr/> the exposure time increase factor could be up to
26519 square root of N (based on a simple photon shot noise model).<wbr/> The camera device will
26520 adjust the reprocessing noise reduction and edge enhancement parameters accordingly to
26521 produce the best quality images.<wbr/></p>
26522 <p>This is relative factor,<wbr/> 1.<wbr/>0 indicates the application hasn't processed the input
26523 buffer in a way that affects its effective exposure time.<wbr/></p>
26524 <p>This control is only effective for YUV reprocessing capture request.<wbr/> For noise
26525 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/>
26526 Similarly,<wbr/> for edge enhancement reprocessing,<wbr/> it is only effective when
26527 <code><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a> != OFF</code>.<wbr/></p>
26532 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26533 <!-- end of entry -->
26537 <!-- end of kind -->
26539 <tr><td colspan="6" class="kind">dynamic</td></tr>
26541 <thead class="entries_header">
26543 <th class="th_name">Property Name</th>
26544 <th class="th_type">Type</th>
26545 <th class="th_description">Description</th>
26546 <th class="th_units">Units</th>
26547 <th class="th_range">Range</th>
26548 <th class="th_tags">Tags</th>
26563 <tr class="entry" id="dynamic_android.reprocess.effectiveExposureFactor">
26564 <td class="entry_name
26566 android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor
26568 <td class="entry_type">
26569 <span class="entry_type_name">float</span>
26571 <span class="entry_type_visibility"> [java_public]</span>
26574 <span class="entry_type_hwlevel">[limited] </span>
26579 </td> <!-- entry_type -->
26581 <td class="entry_description">
26582 <p>The amount of exposure time increase factor applied to the original output
26583 frame by the application processing before sending for reprocessing.<wbr/></p>
26586 <td class="entry_units">
26587 Relative exposure time increase factor.<wbr/>
26590 <td class="entry_range">
26591 <p>>= 1.<wbr/>0</p>
26594 <td class="entry_tags">
26595 <ul class="entry_tags">
26596 <li><a href="#tag_REPROC">REPROC</a></li>
26601 <tr class="entries_header">
26602 <th class="th_details" colspan="5">Details</th>
26604 <tr class="entry_cont">
26605 <td class="entry_details" colspan="5">
26606 <p>This is optional,<wbr/> and will be supported if the camera device supports YUV_<wbr/>REPROCESSING
26607 capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains YUV_<wbr/>REPROCESSING).<wbr/></p>
26608 <p>For some YUV reprocessing use cases,<wbr/> the application may choose to filter the original
26609 output frames to effectively reduce the noise to the same level as a frame that was
26610 captured with longer exposure time.<wbr/> To be more specific,<wbr/> assuming the original captured
26611 images were captured with a sensitivity of S and an exposure time of T,<wbr/> the model in
26612 the camera device is that the amount of noise in the image would be approximately what
26613 would be expected if the original capture parameters had been a sensitivity of
26614 S/<wbr/>effectiveExposureFactor and an exposure time of T*effectiveExposureFactor,<wbr/> rather
26615 than S and T respectively.<wbr/> If the captured images were processed by the application
26616 before being sent for reprocessing,<wbr/> then the application may have used image processing
26617 algorithms and/<wbr/>or multi-frame image fusion to reduce the noise in the
26618 application-processed images (input images).<wbr/> By using the effectiveExposureFactor
26619 control,<wbr/> the application can communicate to the camera device the actual noise level
26620 improvement in the application-processed image.<wbr/> With this information,<wbr/> the camera
26621 device can select appropriate noise reduction and edge enhancement parameters to avoid
26622 excessive noise reduction (<a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a>) and insufficient edge
26623 enhancement (<a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a>) being applied to the reprocessed frames.<wbr/></p>
26624 <p>For example,<wbr/> for multi-frame image fusion use case,<wbr/> the application may fuse
26625 multiple output frames together to a final frame for reprocessing.<wbr/> When N image are
26626 fused into 1 image for reprocessing,<wbr/> the exposure time increase factor could be up to
26627 square root of N (based on a simple photon shot noise model).<wbr/> The camera device will
26628 adjust the reprocessing noise reduction and edge enhancement parameters accordingly to
26629 produce the best quality images.<wbr/></p>
26630 <p>This is relative factor,<wbr/> 1.<wbr/>0 indicates the application hasn't processed the input
26631 buffer in a way that affects its effective exposure time.<wbr/></p>
26632 <p>This control is only effective for YUV reprocessing capture request.<wbr/> For noise
26633 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/>
26634 Similarly,<wbr/> for edge enhancement reprocessing,<wbr/> it is only effective when
26635 <code><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a> != OFF</code>.<wbr/></p>
26640 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26641 <!-- end of entry -->
26645 <!-- end of kind -->
26647 <tr><td colspan="6" class="kind">static</td></tr>
26649 <thead class="entries_header">
26651 <th class="th_name">Property Name</th>
26652 <th class="th_type">Type</th>
26653 <th class="th_description">Description</th>
26654 <th class="th_units">Units</th>
26655 <th class="th_range">Range</th>
26656 <th class="th_tags">Tags</th>
26671 <tr class="entry" id="static_android.reprocess.maxCaptureStall">
26672 <td class="entry_name
26674 android.<wbr/>reprocess.<wbr/>max<wbr/>Capture<wbr/>Stall
26676 <td class="entry_type">
26677 <span class="entry_type_name">int32</span>
26679 <span class="entry_type_visibility"> [java_public]</span>
26682 <span class="entry_type_hwlevel">[limited] </span>
26687 </td> <!-- entry_type -->
26689 <td class="entry_description">
26690 <p>The maximal camera capture pipeline stall (in unit of frame count) introduced by a
26691 reprocess capture request.<wbr/></p>
26694 <td class="entry_units">
26695 Number of frames.<wbr/>
26698 <td class="entry_range">
26702 <td class="entry_tags">
26703 <ul class="entry_tags">
26704 <li><a href="#tag_REPROC">REPROC</a></li>
26709 <tr class="entries_header">
26710 <th class="th_details" colspan="5">Details</th>
26712 <tr class="entry_cont">
26713 <td class="entry_details" colspan="5">
26714 <p>The key describes the maximal interference that one reprocess (input) request
26715 can introduce to the camera simultaneous streaming of regular (output) capture
26716 requests,<wbr/> including repeating requests.<wbr/></p>
26717 <p>When a reprocessing capture request is submitted while a camera output repeating request
26718 (e.<wbr/>g.<wbr/> preview) is being served by the camera device,<wbr/> it may preempt the camera capture
26719 pipeline for at least one frame duration so that the camera device is unable to process
26720 the following capture request in time for the next sensor start of exposure boundary.<wbr/>
26721 When this happens,<wbr/> the application may observe a capture time gap (longer than one frame
26722 duration) between adjacent capture output frames,<wbr/> which usually exhibits as preview
26723 glitch if the repeating request output targets include a preview surface.<wbr/> This key gives
26724 the worst-case number of frame stall introduced by one reprocess request with any kind of
26725 formats/<wbr/>sizes combination.<wbr/></p>
26726 <p>If this key reports 0,<wbr/> it means a reprocess request doesn't introduce any glitch to the
26727 ongoing camera repeating request outputs,<wbr/> as if this reprocess request is never issued.<wbr/></p>
26728 <p>This key is supported if the camera device supports PRIVATE or YUV reprocessing (
26729 i.<wbr/>e.<wbr/> <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains PRIVATE_<wbr/>REPROCESSING or
26730 YUV_<wbr/>REPROCESSING).<wbr/></p>
26735 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26736 <!-- end of entry -->
26740 <!-- end of kind -->
26743 <!-- end of section -->
26744 <tr><td colspan="6" id="section_depth" class="section">depth</td></tr>
26747 <tr><td colspan="6" class="kind">static</td></tr>
26749 <thead class="entries_header">
26751 <th class="th_name">Property Name</th>
26752 <th class="th_type">Type</th>
26753 <th class="th_description">Description</th>
26754 <th class="th_units">Units</th>
26755 <th class="th_range">Range</th>
26756 <th class="th_tags">Tags</th>
26771 <tr class="entry" id="static_android.depth.maxDepthSamples">
26772 <td class="entry_name
26774 android.<wbr/>depth.<wbr/>max<wbr/>Depth<wbr/>Samples
26776 <td class="entry_type">
26777 <span class="entry_type_name">int32</span>
26779 <span class="entry_type_visibility"> [system]</span>
26782 <span class="entry_type_hwlevel">[limited] </span>
26787 </td> <!-- entry_type -->
26789 <td class="entry_description">
26790 <p>Maximum number of points that a depth point cloud may contain.<wbr/></p>
26793 <td class="entry_units">
26796 <td class="entry_range">
26799 <td class="entry_tags">
26800 <ul class="entry_tags">
26801 <li><a href="#tag_DEPTH">DEPTH</a></li>
26806 <tr class="entries_header">
26807 <th class="th_details" colspan="5">Details</th>
26809 <tr class="entry_cont">
26810 <td class="entry_details" colspan="5">
26811 <p>If a camera device supports outputting depth range data in the form of a depth point
26812 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
26813 number of points an output buffer may contain.<wbr/></p>
26814 <p>Any given buffer may contain between 0 and maxDepthSamples points,<wbr/> inclusive.<wbr/>
26815 If output in the depth point cloud format is not supported,<wbr/> this entry will
26816 not be defined.<wbr/></p>
26821 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26822 <!-- end of entry -->
26825 <tr class="entry" id="static_android.depth.availableDepthStreamConfigurations">
26826 <td class="entry_name
26828 android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stream<wbr/>Configurations
26830 <td class="entry_type">
26831 <span class="entry_type_name entry_type_name_enum">int32</span>
26832 <span class="entry_type_container">x</span>
26834 <span class="entry_type_array">
26837 <span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
26840 <span class="entry_type_hwlevel">[limited] </span>
26844 <ul class="entry_type_enum">
26846 <span class="entry_type_enum_name">OUTPUT</span>
26849 <span class="entry_type_enum_name">INPUT</span>
26853 </td> <!-- entry_type -->
26855 <td class="entry_description">
26856 <p>The available depth dataspace stream
26857 configurations that this camera device supports
26858 (i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
26861 <td class="entry_units">
26864 <td class="entry_range">
26867 <td class="entry_tags">
26868 <ul class="entry_tags">
26869 <li><a href="#tag_DEPTH">DEPTH</a></li>
26874 <tr class="entries_header">
26875 <th class="th_details" colspan="5">Details</th>
26877 <tr class="entry_cont">
26878 <td class="entry_details" colspan="5">
26879 <p>These are output stream configurations for use with
26880 dataSpace HAL_<wbr/>DATASPACE_<wbr/>DEPTH.<wbr/> The configurations are
26881 listed as <code>(format,<wbr/> width,<wbr/> height,<wbr/> input?)</code> tuples.<wbr/></p>
26882 <p>Only devices that support depth output for at least
26883 the HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>Y16 dense depth map may include
26884 this entry.<wbr/></p>
26885 <p>A device that also supports the HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>BLOB
26886 sparse depth point cloud must report a single entry for
26887 the format in this list as <code>(HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>BLOB,<wbr/>
26888 <a href="#static_android.depth.maxDepthSamples">android.<wbr/>depth.<wbr/>max<wbr/>Depth<wbr/>Samples</a>,<wbr/> 1,<wbr/> OUTPUT)</code> in addition to
26889 the entries for HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>Y16.<wbr/></p>
26894 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26895 <!-- end of entry -->
26898 <tr class="entry" id="static_android.depth.availableDepthMinFrameDurations">
26899 <td class="entry_name
26901 android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Min<wbr/>Frame<wbr/>Durations
26903 <td class="entry_type">
26904 <span class="entry_type_name">int64</span>
26905 <span class="entry_type_container">x</span>
26907 <span class="entry_type_array">
26910 <span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
26913 <span class="entry_type_hwlevel">[limited] </span>
26918 </td> <!-- entry_type -->
26920 <td class="entry_description">
26921 <p>This lists the minimum frame duration for each
26922 format/<wbr/>size combination for depth output formats.<wbr/></p>
26925 <td class="entry_units">
26926 (format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
26929 <td class="entry_range">
26932 <td class="entry_tags">
26933 <ul class="entry_tags">
26934 <li><a href="#tag_DEPTH">DEPTH</a></li>
26939 <tr class="entries_header">
26940 <th class="th_details" colspan="5">Details</th>
26942 <tr class="entry_cont">
26943 <td class="entry_details" colspan="5">
26944 <p>This should correspond to the frame duration when only that
26945 stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
26946 set to either OFF or FAST.<wbr/></p>
26947 <p>When multiple streams are used in a request,<wbr/> the minimum frame
26948 duration will be max(individual stream min durations).<wbr/></p>
26949 <p>The minimum frame duration of a stream (of a particular format,<wbr/> size)
26950 is the same regardless of whether the stream is input or output.<wbr/></p>
26951 <p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> and
26952 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for more details about
26953 calculating the max frame rate.<wbr/></p>
26954 <p>(Keep in sync with <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>)</p>
26959 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
26960 <!-- end of entry -->
26963 <tr class="entry" id="static_android.depth.availableDepthStallDurations">
26964 <td class="entry_name
26966 android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stall<wbr/>Durations
26968 <td class="entry_type">
26969 <span class="entry_type_name">int64</span>
26970 <span class="entry_type_container">x</span>
26972 <span class="entry_type_array">
26975 <span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
26978 <span class="entry_type_hwlevel">[limited] </span>
26983 </td> <!-- entry_type -->
26985 <td class="entry_description">
26986 <p>This lists the maximum stall duration for each
26987 output format/<wbr/>size combination for depth streams.<wbr/></p>
26990 <td class="entry_units">
26991 (format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
26994 <td class="entry_range">
26997 <td class="entry_tags">
26998 <ul class="entry_tags">
26999 <li><a href="#tag_DEPTH">DEPTH</a></li>
27004 <tr class="entries_header">
27005 <th class="th_details" colspan="5">Details</th>
27007 <tr class="entry_cont">
27008 <td class="entry_details" colspan="5">
27009 <p>A stall duration is how much extra time would get added
27010 to the normal minimum frame duration for a repeating request
27011 that has streams with non-zero stall.<wbr/></p>
27012 <p>This functions similarly to
27013 <a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for depth
27015 <p>All depth output stream formats may have a nonzero stall
27016 duration.<wbr/></p>
27021 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
27022 <!-- end of entry -->
27025 <tr class="entry" id="static_android.depth.depthIsExclusive">
27026 <td class="entry_name
27028 android.<wbr/>depth.<wbr/>depth<wbr/>Is<wbr/>Exclusive
27030 <td class="entry_type">
27031 <span class="entry_type_name entry_type_name_enum">byte</span>
27033 <span class="entry_type_visibility"> [public as boolean]</span>
27036 <span class="entry_type_hwlevel">[limited] </span>
27040 <ul class="entry_type_enum">
27042 <span class="entry_type_enum_name">FALSE</span>
27045 <span class="entry_type_enum_name">TRUE</span>
27049 </td> <!-- entry_type -->
27051 <td class="entry_description">
27052 <p>Indicates whether a capture request may target both a
27053 DEPTH16 /<wbr/> DEPTH_<wbr/>POINT_<wbr/>CLOUD output,<wbr/> and normal color outputs (such as
27054 YUV_<wbr/>420_<wbr/>888,<wbr/> JPEG,<wbr/> or RAW) simultaneously.<wbr/></p>
27057 <td class="entry_units">
27060 <td class="entry_range">
27063 <td class="entry_tags">
27067 <tr class="entries_header">
27068 <th class="th_details" colspan="5">Details</th>
27070 <tr class="entry_cont">
27071 <td class="entry_details" colspan="5">
27072 <p>If TRUE,<wbr/> including both depth and color outputs in a single
27073 capture request is not supported.<wbr/> An application must interleave color
27074 and depth requests.<wbr/> If FALSE,<wbr/> a single request can target both types
27075 of output.<wbr/></p>
27076 <p>Typically,<wbr/> this restriction exists on camera devices that
27077 need to emit a specific pattern or wavelength of light to
27078 measure depth values,<wbr/> which causes the color image to be
27079 corrupted during depth measurement.<wbr/></p>
27084 <tr class="entry_spacer"><td class="entry_spacer" colspan="6"></td></tr>
27085 <!-- end of entry -->
27089 <!-- end of kind -->
27092 <!-- end of section -->
27093 <!-- </namespace> -->
27096 <div class="tags" id="tag_index">
27099 <li id="tag_BC">BC -
27100 Needed for backwards compatibility with old Java API
27102 <ul class="tags_entries">
27103 <li><a href="#controls_android.control.aeAntibandingMode">android.control.aeAntibandingMode</a> (controls)</li>
27104 <li><a href="#controls_android.control.aeExposureCompensation">android.control.aeExposureCompensation</a> (controls)</li>
27105 <li><a href="#controls_android.control.aeLock">android.control.aeLock</a> (controls)</li>
27106 <li><a href="#controls_android.control.aeMode">android.control.aeMode</a> (controls)</li>
27107 <li><a href="#controls_android.control.aeRegions">android.control.aeRegions</a> (controls)</li>
27108 <li><a href="#controls_android.control.aeTargetFpsRange">android.control.aeTargetFpsRange</a> (controls)</li>
27109 <li><a href="#controls_android.control.aePrecaptureTrigger">android.control.aePrecaptureTrigger</a> (controls)</li>
27110 <li><a href="#controls_android.control.afMode">android.control.afMode</a> (controls)</li>
27111 <li><a href="#controls_android.control.afRegions">android.control.afRegions</a> (controls)</li>
27112 <li><a href="#controls_android.control.afTrigger">android.control.afTrigger</a> (controls)</li>
27113 <li><a href="#controls_android.control.awbLock">android.control.awbLock</a> (controls)</li>
27114 <li><a href="#controls_android.control.awbMode">android.control.awbMode</a> (controls)</li>
27115 <li><a href="#controls_android.control.awbRegions">android.control.awbRegions</a> (controls)</li>
27116 <li><a href="#controls_android.control.captureIntent">android.control.captureIntent</a> (controls)</li>
27117 <li><a href="#controls_android.control.effectMode">android.control.effectMode</a> (controls)</li>
27118 <li><a href="#controls_android.control.mode">android.control.mode</a> (controls)</li>
27119 <li><a href="#controls_android.control.sceneMode">android.control.sceneMode</a> (controls)</li>
27120 <li><a href="#controls_android.control.videoStabilizationMode">android.control.videoStabilizationMode</a> (controls)</li>
27121 <li><a href="#static_android.control.aeAvailableAntibandingModes">android.control.aeAvailableAntibandingModes</a> (static)</li>
27122 <li><a href="#static_android.control.aeAvailableModes">android.control.aeAvailableModes</a> (static)</li>
27123 <li><a href="#static_android.control.aeAvailableTargetFpsRanges">android.control.aeAvailableTargetFpsRanges</a> (static)</li>
27124 <li><a href="#static_android.control.aeCompensationRange">android.control.aeCompensationRange</a> (static)</li>
27125 <li><a href="#static_android.control.aeCompensationStep">android.control.aeCompensationStep</a> (static)</li>
27126 <li><a href="#static_android.control.afAvailableModes">android.control.afAvailableModes</a> (static)</li>
27127 <li><a href="#static_android.control.availableEffects">android.control.availableEffects</a> (static)</li>
27128 <li><a href="#static_android.control.availableSceneModes">android.control.availableSceneModes</a> (static)</li>
27129 <li><a href="#static_android.control.availableVideoStabilizationModes">android.control.availableVideoStabilizationModes</a> (static)</li>
27130 <li><a href="#static_android.control.awbAvailableModes">android.control.awbAvailableModes</a> (static)</li>
27131 <li><a href="#static_android.control.maxRegions">android.control.maxRegions</a> (static)</li>
27132 <li><a href="#static_android.control.sceneModeOverrides">android.control.sceneModeOverrides</a> (static)</li>
27133 <li><a href="#static_android.control.aeLockAvailable">android.control.aeLockAvailable</a> (static)</li>
27134 <li><a href="#static_android.control.awbLockAvailable">android.control.awbLockAvailable</a> (static)</li>
27135 <li><a href="#controls_android.flash.mode">android.flash.mode</a> (controls)</li>
27136 <li><a href="#static_android.flash.info.available">android.flash.info.available</a> (static)</li>
27137 <li><a href="#controls_android.jpeg.gpsCoordinates">android.jpeg.gpsCoordinates</a> (controls)</li>
27138 <li><a href="#controls_android.jpeg.gpsProcessingMethod">android.jpeg.gpsProcessingMethod</a> (controls)</li>
27139 <li><a href="#controls_android.jpeg.gpsTimestamp">android.jpeg.gpsTimestamp</a> (controls)</li>
27140 <li><a href="#controls_android.jpeg.orientation">android.jpeg.orientation</a> (controls)</li>
27141 <li><a href="#controls_android.jpeg.quality">android.jpeg.quality</a> (controls)</li>
27142 <li><a href="#controls_android.jpeg.thumbnailQuality">android.jpeg.thumbnailQuality</a> (controls)</li>
27143 <li><a href="#controls_android.jpeg.thumbnailSize">android.jpeg.thumbnailSize</a> (controls)</li>
27144 <li><a href="#static_android.jpeg.availableThumbnailSizes">android.jpeg.availableThumbnailSizes</a> (static)</li>
27145 <li><a href="#controls_android.lens.focusDistance">android.lens.focusDistance</a> (controls)</li>
27146 <li><a href="#static_android.lens.info.availableFocalLengths">android.lens.info.availableFocalLengths</a> (static)</li>
27147 <li><a href="#dynamic_android.lens.focusRange">android.lens.focusRange</a> (dynamic)</li>
27148 <li><a href="#static_android.request.maxNumOutputStreams">android.request.maxNumOutputStreams</a> (static)</li>
27149 <li><a href="#controls_android.scaler.cropRegion">android.scaler.cropRegion</a> (controls)</li>
27150 <li><a href="#static_android.scaler.availableFormats">android.scaler.availableFormats</a> (static)</li>
27151 <li><a href="#static_android.scaler.availableJpegMinDurations">android.scaler.availableJpegMinDurations</a> (static)</li>
27152 <li><a href="#static_android.scaler.availableJpegSizes">android.scaler.availableJpegSizes</a> (static)</li>
27153 <li><a href="#static_android.scaler.availableMaxDigitalZoom">android.scaler.availableMaxDigitalZoom</a> (static)</li>
27154 <li><a href="#static_android.scaler.availableProcessedMinDurations">android.scaler.availableProcessedMinDurations</a> (static)</li>
27155 <li><a href="#static_android.scaler.availableProcessedSizes">android.scaler.availableProcessedSizes</a> (static)</li>
27156 <li><a href="#static_android.scaler.availableRawMinDurations">android.scaler.availableRawMinDurations</a> (static)</li>
27157 <li><a href="#static_android.sensor.info.sensitivityRange">android.sensor.info.sensitivityRange</a> (static)</li>
27158 <li><a href="#static_android.sensor.info.physicalSize">android.sensor.info.physicalSize</a> (static)</li>
27159 <li><a href="#static_android.sensor.info.pixelArraySize">android.sensor.info.pixelArraySize</a> (static)</li>
27160 <li><a href="#static_android.sensor.orientation">android.sensor.orientation</a> (static)</li>
27161 <li><a href="#dynamic_android.sensor.timestamp">android.sensor.timestamp</a> (dynamic)</li>
27162 <li><a href="#controls_android.statistics.faceDetectMode">android.statistics.faceDetectMode</a> (controls)</li>
27163 <li><a href="#static_android.statistics.info.maxFaceCount">android.statistics.info.maxFaceCount</a> (static)</li>
27164 <li><a href="#dynamic_android.statistics.faceIds">android.statistics.faceIds</a> (dynamic)</li>
27165 <li><a href="#dynamic_android.statistics.faceLandmarks">android.statistics.faceLandmarks</a> (dynamic)</li>
27166 <li><a href="#dynamic_android.statistics.faceRectangles">android.statistics.faceRectangles</a> (dynamic)</li>
27167 <li><a href="#dynamic_android.statistics.faceScores">android.statistics.faceScores</a> (dynamic)</li>
27168 <li><a href="#dynamic_android.lens.focalLength">android.lens.focalLength</a> (dynamic)</li>
27169 <li><a href="#dynamic_android.lens.focusDistance">android.lens.focusDistance</a> (dynamic)</li>
27171 </li> <!-- tag_BC -->
27172 <li id="tag_V1">V1 -
27173 New features for first camera 2 release (API1)
27175 <ul class="tags_entries">
27176 <li><a href="#static_android.colorCorrection.availableAberrationModes">android.colorCorrection.availableAberrationModes</a> (static)</li>
27177 <li><a href="#static_android.control.availableHighSpeedVideoConfigurations">android.control.availableHighSpeedVideoConfigurations</a> (static)</li>
27178 <li><a href="#controls_android.edge.mode">android.edge.mode</a> (controls)</li>
27179 <li><a href="#static_android.edge.availableEdgeModes">android.edge.availableEdgeModes</a> (static)</li>
27180 <li><a href="#controls_android.hotPixel.mode">android.hotPixel.mode</a> (controls)</li>
27181 <li><a href="#static_android.hotPixel.availableHotPixelModes">android.hotPixel.availableHotPixelModes</a> (static)</li>
27182 <li><a href="#controls_android.lens.aperture">android.lens.aperture</a> (controls)</li>
27183 <li><a href="#controls_android.lens.filterDensity">android.lens.filterDensity</a> (controls)</li>
27184 <li><a href="#controls_android.lens.focalLength">android.lens.focalLength</a> (controls)</li>
27185 <li><a href="#controls_android.lens.focusDistance">android.lens.focusDistance</a> (controls)</li>
27186 <li><a href="#controls_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a> (controls)</li>
27187 <li><a href="#static_android.lens.info.availableApertures">android.lens.info.availableApertures</a> (static)</li>
27188 <li><a href="#static_android.lens.info.availableFilterDensities">android.lens.info.availableFilterDensities</a> (static)</li>
27189 <li><a href="#static_android.lens.info.availableFocalLengths">android.lens.info.availableFocalLengths</a> (static)</li>
27190 <li><a href="#static_android.lens.info.availableOpticalStabilization">android.lens.info.availableOpticalStabilization</a> (static)</li>
27191 <li><a href="#static_android.lens.info.minimumFocusDistance">android.lens.info.minimumFocusDistance</a> (static)</li>
27192 <li><a href="#static_android.lens.info.shadingMapSize">android.lens.info.shadingMapSize</a> (static)</li>
27193 <li><a href="#static_android.lens.info.focusDistanceCalibration">android.lens.info.focusDistanceCalibration</a> (static)</li>
27194 <li><a href="#dynamic_android.lens.state">android.lens.state</a> (dynamic)</li>
27195 <li><a href="#controls_android.noiseReduction.mode">android.noiseReduction.mode</a> (controls)</li>
27196 <li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.noiseReduction.availableNoiseReductionModes</a> (static)</li>
27197 <li><a href="#controls_android.request.id">android.request.id</a> (controls)</li>
27198 <li><a href="#static_android.scaler.availableMinFrameDurations">android.scaler.availableMinFrameDurations</a> (static)</li>
27199 <li><a href="#static_android.scaler.availableStallDurations">android.scaler.availableStallDurations</a> (static)</li>
27200 <li><a href="#controls_android.sensor.exposureTime">android.sensor.exposureTime</a> (controls)</li>
27201 <li><a href="#controls_android.sensor.frameDuration">android.sensor.frameDuration</a> (controls)</li>
27202 <li><a href="#controls_android.sensor.sensitivity">android.sensor.sensitivity</a> (controls)</li>
27203 <li><a href="#static_android.sensor.info.sensitivityRange">android.sensor.info.sensitivityRange</a> (static)</li>
27204 <li><a href="#static_android.sensor.info.exposureTimeRange">android.sensor.info.exposureTimeRange</a> (static)</li>
27205 <li><a href="#static_android.sensor.info.maxFrameDuration">android.sensor.info.maxFrameDuration</a> (static)</li>
27206 <li><a href="#static_android.sensor.info.physicalSize">android.sensor.info.physicalSize</a> (static)</li>
27207 <li><a href="#static_android.sensor.info.timestampSource">android.sensor.info.timestampSource</a> (static)</li>
27208 <li><a href="#static_android.sensor.maxAnalogSensitivity">android.sensor.maxAnalogSensitivity</a> (static)</li>
27209 <li><a href="#dynamic_android.sensor.rollingShutterSkew">android.sensor.rollingShutterSkew</a> (dynamic)</li>
27210 <li><a href="#controls_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a> (controls)</li>
27211 <li><a href="#static_android.statistics.info.availableHotPixelMapModes">android.statistics.info.availableHotPixelMapModes</a> (static)</li>
27212 <li><a href="#dynamic_android.statistics.hotPixelMap">android.statistics.hotPixelMap</a> (dynamic)</li>
27213 <li><a href="#dynamic_android.sync.frameNumber">android.sync.frameNumber</a> (dynamic)</li>
27214 <li><a href="#static_android.sync.maxLatency">android.sync.maxLatency</a> (static)</li>
27215 <li><a href="#dynamic_android.edge.mode">android.edge.mode</a> (dynamic)</li>
27216 <li><a href="#dynamic_android.hotPixel.mode">android.hotPixel.mode</a> (dynamic)</li>
27217 <li><a href="#dynamic_android.lens.aperture">android.lens.aperture</a> (dynamic)</li>
27218 <li><a href="#dynamic_android.lens.filterDensity">android.lens.filterDensity</a> (dynamic)</li>
27219 <li><a href="#dynamic_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a> (dynamic)</li>
27220 <li><a href="#dynamic_android.noiseReduction.mode">android.noiseReduction.mode</a> (dynamic)</li>
27222 </li> <!-- tag_V1 -->
27223 <li id="tag_RAW">RAW -
27224 Needed for useful RAW image processing and DNG file support
27226 <ul class="tags_entries">
27227 <li><a href="#controls_android.hotPixel.mode">android.hotPixel.mode</a> (controls)</li>
27228 <li><a href="#static_android.hotPixel.availableHotPixelModes">android.hotPixel.availableHotPixelModes</a> (static)</li>
27229 <li><a href="#static_android.sensor.info.activeArraySize">android.sensor.info.activeArraySize</a> (static)</li>
27230 <li><a href="#static_android.sensor.info.colorFilterArrangement">android.sensor.info.colorFilterArrangement</a> (static)</li>
27231 <li><a href="#static_android.sensor.info.pixelArraySize">android.sensor.info.pixelArraySize</a> (static)</li>
27232 <li><a href="#static_android.sensor.info.whiteLevel">android.sensor.info.whiteLevel</a> (static)</li>
27233 <li><a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.sensor.info.preCorrectionActiveArraySize</a> (static)</li>
27234 <li><a href="#static_android.sensor.referenceIlluminant1">android.sensor.referenceIlluminant1</a> (static)</li>
27235 <li><a href="#static_android.sensor.referenceIlluminant2">android.sensor.referenceIlluminant2</a> (static)</li>
27236 <li><a href="#static_android.sensor.calibrationTransform1">android.sensor.calibrationTransform1</a> (static)</li>
27237 <li><a href="#static_android.sensor.calibrationTransform2">android.sensor.calibrationTransform2</a> (static)</li>
27238 <li><a href="#static_android.sensor.colorTransform1">android.sensor.colorTransform1</a> (static)</li>
27239 <li><a href="#static_android.sensor.colorTransform2">android.sensor.colorTransform2</a> (static)</li>
27240 <li><a href="#static_android.sensor.forwardMatrix1">android.sensor.forwardMatrix1</a> (static)</li>
27241 <li><a href="#static_android.sensor.forwardMatrix2">android.sensor.forwardMatrix2</a> (static)</li>
27242 <li><a href="#static_android.sensor.blackLevelPattern">android.sensor.blackLevelPattern</a> (static)</li>
27243 <li><a href="#static_android.sensor.profileHueSatMapDimensions">android.sensor.profileHueSatMapDimensions</a> (static)</li>
27244 <li><a href="#dynamic_android.sensor.neutralColorPoint">android.sensor.neutralColorPoint</a> (dynamic)</li>
27245 <li><a href="#dynamic_android.sensor.noiseProfile">android.sensor.noiseProfile</a> (dynamic)</li>
27246 <li><a href="#dynamic_android.sensor.profileHueSatMap">android.sensor.profileHueSatMap</a> (dynamic)</li>
27247 <li><a href="#dynamic_android.sensor.profileToneCurve">android.sensor.profileToneCurve</a> (dynamic)</li>
27248 <li><a href="#dynamic_android.sensor.greenSplit">android.sensor.greenSplit</a> (dynamic)</li>
27249 <li><a href="#dynamic_android.sensor.dynamicBlackLevel">android.sensor.dynamicBlackLevel</a> (dynamic)</li>
27250 <li><a href="#dynamic_android.sensor.dynamicWhiteLevel">android.sensor.dynamicWhiteLevel</a> (dynamic)</li>
27251 <li><a href="#controls_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a> (controls)</li>
27252 <li><a href="#static_android.statistics.info.availableHotPixelMapModes">android.statistics.info.availableHotPixelMapModes</a> (static)</li>
27253 <li><a href="#dynamic_android.statistics.hotPixelMap">android.statistics.hotPixelMap</a> (dynamic)</li>
27254 <li><a href="#controls_android.statistics.lensShadingMapMode">android.statistics.lensShadingMapMode</a> (controls)</li>
27255 <li><a href="#dynamic_android.hotPixel.mode">android.hotPixel.mode</a> (dynamic)</li>
27257 </li> <!-- tag_RAW -->
27258 <li id="tag_HAL2">HAL2 -
27259 Entry is only used by camera device HAL 2.x
27261 <ul class="tags_entries">
27262 <li><a href="#controls_android.request.inputStreams">android.request.inputStreams</a> (controls)</li>
27263 <li><a href="#controls_android.request.outputStreams">android.request.outputStreams</a> (controls)</li>
27264 <li><a href="#controls_android.request.type">android.request.type</a> (controls)</li>
27265 <li><a href="#static_android.request.maxNumReprocessStreams">android.request.maxNumReprocessStreams</a> (static)</li>
27266 <li><a href="#controls_android.blackLevel.lock">android.blackLevel.lock</a> (controls)</li>
27268 </li> <!-- tag_HAL2 -->
27269 <li id="tag_FULL">FULL -
27270 Entry is required for full hardware level devices, and optional for other hardware levels
27272 <ul class="tags_entries">
27273 <li><a href="#static_android.sensor.maxAnalogSensitivity">android.sensor.maxAnalogSensitivity</a> (static)</li>
27275 </li> <!-- tag_FULL -->
27276 <li id="tag_DEPTH">DEPTH -
27277 Entry is required for the depth capability.
27279 <ul class="tags_entries">
27280 <li><a href="#static_android.lens.poseRotation">android.lens.poseRotation</a> (static)</li>
27281 <li><a href="#static_android.lens.poseTranslation">android.lens.poseTranslation</a> (static)</li>
27282 <li><a href="#static_android.lens.intrinsicCalibration">android.lens.intrinsicCalibration</a> (static)</li>
27283 <li><a href="#static_android.lens.radialDistortion">android.lens.radialDistortion</a> (static)</li>
27284 <li><a href="#static_android.depth.maxDepthSamples">android.depth.maxDepthSamples</a> (static)</li>
27285 <li><a href="#static_android.depth.availableDepthStreamConfigurations">android.depth.availableDepthStreamConfigurations</a> (static)</li>
27286 <li><a href="#static_android.depth.availableDepthMinFrameDurations">android.depth.availableDepthMinFrameDurations</a> (static)</li>
27287 <li><a href="#static_android.depth.availableDepthStallDurations">android.depth.availableDepthStallDurations</a> (static)</li>
27289 </li> <!-- tag_DEPTH -->
27290 <li id="tag_REPROC">REPROC -
27291 Entry is required for the YUV or PRIVATE reprocessing capability.
27293 <ul class="tags_entries">
27294 <li><a href="#controls_android.edge.mode">android.edge.mode</a> (controls)</li>
27295 <li><a href="#static_android.edge.availableEdgeModes">android.edge.availableEdgeModes</a> (static)</li>
27296 <li><a href="#controls_android.noiseReduction.mode">android.noiseReduction.mode</a> (controls)</li>
27297 <li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.noiseReduction.availableNoiseReductionModes</a> (static)</li>
27298 <li><a href="#static_android.request.maxNumInputStreams">android.request.maxNumInputStreams</a> (static)</li>
27299 <li><a href="#static_android.scaler.availableInputOutputFormatsMap">android.scaler.availableInputOutputFormatsMap</a> (static)</li>
27300 <li><a href="#controls_android.reprocess.effectiveExposureFactor">android.reprocess.effectiveExposureFactor</a> (controls)</li>
27301 <li><a href="#static_android.reprocess.maxCaptureStall">android.reprocess.maxCaptureStall</a> (static)</li>
27302 <li><a href="#dynamic_android.edge.mode">android.edge.mode</a> (dynamic)</li>
27303 <li><a href="#dynamic_android.noiseReduction.mode">android.noiseReduction.mode</a> (dynamic)</li>
27305 </li> <!-- tag_REPROC -->
27306 <li id="tag_FUTURE">FUTURE -
27307 Entry is under-specified and is not required for now. This is for book-keeping purpose,
27308 do not implement or use it, it may be revised for future.
27310 <ul class="tags_entries">
27311 <li><a href="#controls_android.demosaic.mode">android.demosaic.mode</a> (controls)</li>
27312 <li><a href="#controls_android.edge.strength">android.edge.strength</a> (controls)</li>
27313 <li><a href="#controls_android.flash.firingPower">android.flash.firingPower</a> (controls)</li>
27314 <li><a href="#controls_android.flash.firingTime">android.flash.firingTime</a> (controls)</li>
27315 <li><a href="#static_android.flash.info.chargeDuration">android.flash.info.chargeDuration</a> (static)</li>
27316 <li><a href="#static_android.flash.colorTemperature">android.flash.colorTemperature</a> (static)</li>
27317 <li><a href="#static_android.flash.maxEnergy">android.flash.maxEnergy</a> (static)</li>
27318 <li><a href="#dynamic_android.jpeg.size">android.jpeg.size</a> (dynamic)</li>
27319 <li><a href="#controls_android.noiseReduction.strength">android.noiseReduction.strength</a> (controls)</li>
27320 <li><a href="#controls_android.request.metadataMode">android.request.metadataMode</a> (controls)</li>
27321 <li><a href="#static_android.sensor.baseGainFactor">android.sensor.baseGainFactor</a> (static)</li>
27322 <li><a href="#dynamic_android.sensor.temperature">android.sensor.temperature</a> (dynamic)</li>
27323 <li><a href="#controls_android.shading.strength">android.shading.strength</a> (controls)</li>
27324 <li><a href="#controls_android.statistics.histogramMode">android.statistics.histogramMode</a> (controls)</li>
27325 <li><a href="#controls_android.statistics.sharpnessMapMode">android.statistics.sharpnessMapMode</a> (controls)</li>
27326 <li><a href="#static_android.statistics.info.histogramBucketCount">android.statistics.info.histogramBucketCount</a> (static)</li>
27327 <li><a href="#static_android.statistics.info.maxHistogramCount">android.statistics.info.maxHistogramCount</a> (static)</li>
27328 <li><a href="#static_android.statistics.info.maxSharpnessMapValue">android.statistics.info.maxSharpnessMapValue</a> (static)</li>
27329 <li><a href="#static_android.statistics.info.sharpnessMapSize">android.statistics.info.sharpnessMapSize</a> (static)</li>
27330 <li><a href="#dynamic_android.statistics.histogram">android.statistics.histogram</a> (dynamic)</li>
27331 <li><a href="#dynamic_android.statistics.sharpnessMap">android.statistics.sharpnessMap</a> (dynamic)</li>
27333 </li> <!-- tag_FUTURE -->
27337 [ <a href="#">top</a> ]