blob: 055ff2a6976cea35ce951b0777dcfc71c6641141 [file] [log] [blame]
<!DOCTYPE html>
<html>
<!-- Copyright (C) 2012 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<!-- automatically generated from html.mako. do NOT edit directly -->
<meta charset="utf-8" />
<title>Android Camera HAL3.4 Properties</title>
<style type="text/css">
body { background-color: #f7f7f7; font-family: Roboto, sans-serif;}
h1 { color: #333333; }
h2 { color: #333333; }
a:link { color: #258aaf; text-decoration: none}
a:hover { color: #459aaf; text-decoration: underline }
a:visited { color: #154a5f; text-decoration: none}
.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}
.kind { color: #eeeeee; font-size: 1.2em; font-weight: bold; padding-left: 1.5em; background-color: #aaaaaa }
.entry { background-color: #f0f0f0 }
.entry_cont { background-color: #f0f0f0 }
.entries_header { background-color: #dddddd; text-align: center}
/* toc style */
.toc_section_header { font-size:1.3em; }
.toc_kind_header { font-size:1.2em; }
.toc_deprecated { text-decoration:line-through; }
/* table column sizes */
table { border-collapse:collapse; table-layout: fixed; width: 100%; word-wrap: break-word }
td,th { border: 1px solid; border-color: #aaaaaa; padding-left: 0.5em; padding-right: 0.5em }
.th_name { width: 20% }
.th_units { width: 10% }
.th_tags { width: 5% }
.th_details { width: 25% }
.th_type { width: 17% }
.th_description { width: 20% }
.th_range { width: 8% }
.th_hal_version { width: 5% }
td { font-size: 0.9em; }
/* hide the first thead, we need it there only to enforce column sizes */
.thead_dummy { visibility: hidden; }
/* Entry flair */
.entry_name { color: #333333; padding-left:1.0em; font-size:1.1em; font-family: monospace; vertical-align:top; }
.entry_name_deprecated { text-decoration:line-through; }
/* Entry type flair */
.entry_type_name { font-size:1.1em; color: #669900; font-weight: bold;}
.entry_type_name_enum:after { color: #669900; font-weight: bold; content:" (enum)" }
.entry_type_visibility { font-weight: bolder; padding-left:1em}
.entry_type_synthetic { font-weight: bolder; color: #996600; }
.entry_type_hwlevel { font-weight: bolder; color: #000066; }
.entry_type_deprecated { font-weight: bolder; color: #4D4D4D; }
.entry_type_enum_name { font-family: monospace; font-weight: bolder; }
.entry_type_enum_notes:before { content:" - " }
.entry_type_enum_notes>p:first-child { display:inline; }
.entry_type_enum_value:before { content:" = " }
.entry_type_enum_value { font-family: monospace; }
.entry ul { margin: 0 0 0 0; list-style-position: inside; padding-left: 0.5em; }
.entry ul li { padding: 0 0 0 0; margin: 0 0 0 0;}
.entry_range_deprecated { font-weight: bolder; }
/* Entry tags flair */
.entry_tags ul { list-style-type: none; }
/* Entry details (full docs) flair */
.entry_details_header { font-weight: bold; background-color: #dddddd;
text-align: center; font-size: 1.1em; margin-left: 0em; margin-right: 0em; }
/* Entry spacer flair */
.entry_spacer { background-color: transparent; border-style: none; height: 0.5em; }
/* TODO: generate abbr element for each tag link? */
/* TODO for each x.y.z try to link it to the entry */
</style>
<style>
{
/* broken...
supposedly there is a bug in chrome that it lays out tables before
it knows its being printed, so the page-break-* styles are ignored
*/
tr { page-break-after: always; page-break-inside: avoid; }
}
</style>
</head>
<body>
<h1>Android Camera HAL3.2 Properties</h1>
<h2>Table of Contents</h2>
<ul class="toc">
<li><a href="#tag_index" class="toc_section_header">Tags</a></li>
<li>
<span class="toc_section_header"><a href="#section_colorCorrection">colorCorrection</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.colorCorrection.mode">android.colorCorrection.mode</a></li>
<li
><a href="#controls_android.colorCorrection.transform">android.colorCorrection.transform</a></li>
<li
><a href="#controls_android.colorCorrection.gains">android.colorCorrection.gains</a></li>
<li
><a href="#controls_android.colorCorrection.aberrationMode">android.colorCorrection.aberrationMode</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.colorCorrection.mode">android.colorCorrection.mode</a></li>
<li
><a href="#dynamic_android.colorCorrection.transform">android.colorCorrection.transform</a></li>
<li
><a href="#dynamic_android.colorCorrection.gains">android.colorCorrection.gains</a></li>
<li
><a href="#dynamic_android.colorCorrection.aberrationMode">android.colorCorrection.aberrationMode</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.colorCorrection.availableAberrationModes">android.colorCorrection.availableAberrationModes</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_control">control</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.control.aeAntibandingMode">android.control.aeAntibandingMode</a></li>
<li
><a href="#controls_android.control.aeExposureCompensation">android.control.aeExposureCompensation</a></li>
<li
><a href="#controls_android.control.aeLock">android.control.aeLock</a></li>
<li
><a href="#controls_android.control.aeMode">android.control.aeMode</a></li>
<li
><a href="#controls_android.control.aeRegions">android.control.aeRegions</a></li>
<li
><a href="#controls_android.control.aeTargetFpsRange">android.control.aeTargetFpsRange</a></li>
<li
><a href="#controls_android.control.aePrecaptureTrigger">android.control.aePrecaptureTrigger</a></li>
<li
><a href="#controls_android.control.afMode">android.control.afMode</a></li>
<li
><a href="#controls_android.control.afRegions">android.control.afRegions</a></li>
<li
><a href="#controls_android.control.afTrigger">android.control.afTrigger</a></li>
<li
><a href="#controls_android.control.awbLock">android.control.awbLock</a></li>
<li
><a href="#controls_android.control.awbMode">android.control.awbMode</a></li>
<li
><a href="#controls_android.control.awbRegions">android.control.awbRegions</a></li>
<li
><a href="#controls_android.control.captureIntent">android.control.captureIntent</a></li>
<li
><a href="#controls_android.control.effectMode">android.control.effectMode</a></li>
<li
><a href="#controls_android.control.mode">android.control.mode</a></li>
<li
><a href="#controls_android.control.sceneMode">android.control.sceneMode</a></li>
<li
><a href="#controls_android.control.videoStabilizationMode">android.control.videoStabilizationMode</a></li>
<li
><a href="#controls_android.control.postRawSensitivityBoost">android.control.postRawSensitivityBoost</a></li>
<li
><a href="#controls_android.control.enableZsl">android.control.enableZsl</a></li>
<li
><a href="#controls_android.control.extendedSceneMode">android.control.extendedSceneMode</a></li>
<li
><a href="#controls_android.control.zoomRatio">android.control.zoomRatio</a></li>
<li
><a href="#controls_android.control.afRegionsSet">android.control.afRegionsSet</a></li>
<li
><a href="#controls_android.control.aeRegionsSet">android.control.aeRegionsSet</a></li>
<li
><a href="#controls_android.control.awbRegionsSet">android.control.awbRegionsSet</a></li>
<li
><a href="#controls_android.control.settingsOverride">android.control.settingsOverride</a></li>
<li
><a href="#controls_android.control.autoframing">android.control.autoframing</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.control.aeAvailableAntibandingModes">android.control.aeAvailableAntibandingModes</a></li>
<li
><a href="#static_android.control.aeAvailableModes">android.control.aeAvailableModes</a></li>
<li
><a href="#static_android.control.aeAvailableTargetFpsRanges">android.control.aeAvailableTargetFpsRanges</a></li>
<li
><a href="#static_android.control.aeCompensationRange">android.control.aeCompensationRange</a></li>
<li
><a href="#static_android.control.aeCompensationStep">android.control.aeCompensationStep</a></li>
<li
><a href="#static_android.control.afAvailableModes">android.control.afAvailableModes</a></li>
<li
><a href="#static_android.control.availableEffects">android.control.availableEffects</a></li>
<li
><a href="#static_android.control.availableSceneModes">android.control.availableSceneModes</a></li>
<li
><a href="#static_android.control.availableVideoStabilizationModes">android.control.availableVideoStabilizationModes</a></li>
<li
><a href="#static_android.control.awbAvailableModes">android.control.awbAvailableModes</a></li>
<li
><a href="#static_android.control.maxRegions">android.control.maxRegions</a></li>
<li
><a href="#static_android.control.maxRegionsAe">android.control.maxRegionsAe</a></li>
<li
><a href="#static_android.control.maxRegionsAwb">android.control.maxRegionsAwb</a></li>
<li
><a href="#static_android.control.maxRegionsAf">android.control.maxRegionsAf</a></li>
<li
><a href="#static_android.control.sceneModeOverrides">android.control.sceneModeOverrides</a></li>
<li
><a href="#static_android.control.availableHighSpeedVideoConfigurations">android.control.availableHighSpeedVideoConfigurations</a></li>
<li
><a href="#static_android.control.aeLockAvailable">android.control.aeLockAvailable</a></li>
<li
><a href="#static_android.control.awbLockAvailable">android.control.awbLockAvailable</a></li>
<li
><a href="#static_android.control.availableModes">android.control.availableModes</a></li>
<li
><a href="#static_android.control.postRawSensitivityBoostRange">android.control.postRawSensitivityBoostRange</a></li>
<li
><a href="#static_android.control.availableExtendedSceneModeMaxSizes">android.control.availableExtendedSceneModeMaxSizes</a></li>
<li
><a href="#static_android.control.availableExtendedSceneModeZoomRatioRanges">android.control.availableExtendedSceneModeZoomRatioRanges</a></li>
<li
><a href="#static_android.control.availableExtendedSceneModeCapabilities">android.control.availableExtendedSceneModeCapabilities</a></li>
<li
><a href="#static_android.control.zoomRatioRange">android.control.zoomRatioRange</a></li>
<li
><a href="#static_android.control.availableHighSpeedVideoConfigurationsMaximumResolution">android.control.availableHighSpeedVideoConfigurationsMaximumResolution</a></li>
<li
><a href="#static_android.control.availableSettingsOverrides">android.control.availableSettingsOverrides</a></li>
<li
><a href="#static_android.control.autoframingAvailable">android.control.autoframingAvailable</a></li>
<li
><a href="#static_android.control.lowLightBoostInfoLuminanceRange">android.control.lowLightBoostInfoLuminanceRange</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
class="toc_deprecated"
><a href="#dynamic_android.control.aePrecaptureId">android.control.aePrecaptureId</a></li>
<li
><a href="#dynamic_android.control.aeAntibandingMode">android.control.aeAntibandingMode</a></li>
<li
><a href="#dynamic_android.control.aeExposureCompensation">android.control.aeExposureCompensation</a></li>
<li
><a href="#dynamic_android.control.aeLock">android.control.aeLock</a></li>
<li
><a href="#dynamic_android.control.aeMode">android.control.aeMode</a></li>
<li
><a href="#dynamic_android.control.aeRegions">android.control.aeRegions</a></li>
<li
><a href="#dynamic_android.control.aeTargetFpsRange">android.control.aeTargetFpsRange</a></li>
<li
><a href="#dynamic_android.control.aePrecaptureTrigger">android.control.aePrecaptureTrigger</a></li>
<li
><a href="#dynamic_android.control.aeState">android.control.aeState</a></li>
<li
><a href="#dynamic_android.control.afMode">android.control.afMode</a></li>
<li
><a href="#dynamic_android.control.afRegions">android.control.afRegions</a></li>
<li
><a href="#dynamic_android.control.afTrigger">android.control.afTrigger</a></li>
<li
><a href="#dynamic_android.control.afState">android.control.afState</a></li>
<li
class="toc_deprecated"
><a href="#dynamic_android.control.afTriggerId">android.control.afTriggerId</a></li>
<li
><a href="#dynamic_android.control.awbLock">android.control.awbLock</a></li>
<li
><a href="#dynamic_android.control.awbMode">android.control.awbMode</a></li>
<li
><a href="#dynamic_android.control.awbRegions">android.control.awbRegions</a></li>
<li
><a href="#dynamic_android.control.captureIntent">android.control.captureIntent</a></li>
<li
><a href="#dynamic_android.control.awbState">android.control.awbState</a></li>
<li
><a href="#dynamic_android.control.effectMode">android.control.effectMode</a></li>
<li
><a href="#dynamic_android.control.mode">android.control.mode</a></li>
<li
><a href="#dynamic_android.control.sceneMode">android.control.sceneMode</a></li>
<li
><a href="#dynamic_android.control.videoStabilizationMode">android.control.videoStabilizationMode</a></li>
<li
><a href="#dynamic_android.control.postRawSensitivityBoost">android.control.postRawSensitivityBoost</a></li>
<li
><a href="#dynamic_android.control.enableZsl">android.control.enableZsl</a></li>
<li
><a href="#dynamic_android.control.afSceneChange">android.control.afSceneChange</a></li>
<li
><a href="#dynamic_android.control.extendedSceneMode">android.control.extendedSceneMode</a></li>
<li
><a href="#dynamic_android.control.zoomRatio">android.control.zoomRatio</a></li>
<li
><a href="#dynamic_android.control.settingsOverride">android.control.settingsOverride</a></li>
<li
><a href="#dynamic_android.control.settingsOverridingFrameNumber">android.control.settingsOverridingFrameNumber</a></li>
<li
><a href="#dynamic_android.control.autoframing">android.control.autoframing</a></li>
<li
><a href="#dynamic_android.control.autoframingState">android.control.autoframingState</a></li>
<li
><a href="#dynamic_android.control.lowLightBoostState">android.control.lowLightBoostState</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_demosaic">demosaic</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.demosaic.mode">android.demosaic.mode</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_edge">edge</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.edge.mode">android.edge.mode</a></li>
<li
><a href="#controls_android.edge.strength">android.edge.strength</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.edge.availableEdgeModes">android.edge.availableEdgeModes</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.edge.mode">android.edge.mode</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_flash">flash</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.flash.firingPower">android.flash.firingPower</a></li>
<li
><a href="#controls_android.flash.firingTime">android.flash.firingTime</a></li>
<li
><a href="#controls_android.flash.mode">android.flash.mode</a></li>
<li
><a href="#controls_android.flash.strengthLevel">android.flash.strengthLevel</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.flash.info.available">android.flash.info.available</a></li>
<li
><a href="#static_android.flash.info.chargeDuration">android.flash.info.chargeDuration</a></li>
<li
><a href="#static_android.flash.info.strengthMaximumLevel">android.flash.info.strengthMaximumLevel</a></li>
<li
><a href="#static_android.flash.info.strengthDefaultLevel">android.flash.info.strengthDefaultLevel</a></li>
<li
><a href="#static_android.flash.colorTemperature">android.flash.colorTemperature</a></li>
<li
><a href="#static_android.flash.maxEnergy">android.flash.maxEnergy</a></li>
<li
><a href="#static_android.flash.singleStrengthMaxLevel">android.flash.singleStrengthMaxLevel</a></li>
<li
><a href="#static_android.flash.singleStrengthDefaultLevel">android.flash.singleStrengthDefaultLevel</a></li>
<li
><a href="#static_android.flash.torchStrengthMaxLevel">android.flash.torchStrengthMaxLevel</a></li>
<li
><a href="#static_android.flash.torchStrengthDefaultLevel">android.flash.torchStrengthDefaultLevel</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.flash.firingPower">android.flash.firingPower</a></li>
<li
><a href="#dynamic_android.flash.firingTime">android.flash.firingTime</a></li>
<li
><a href="#dynamic_android.flash.mode">android.flash.mode</a></li>
<li
><a href="#dynamic_android.flash.state">android.flash.state</a></li>
<li
><a href="#dynamic_android.flash.strengthLevel">android.flash.strengthLevel</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_hotPixel">hotPixel</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.hotPixel.mode">android.hotPixel.mode</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.hotPixel.availableHotPixelModes">android.hotPixel.availableHotPixelModes</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.hotPixel.mode">android.hotPixel.mode</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_jpeg">jpeg</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.jpeg.gpsLocation">android.jpeg.gpsLocation</a></li>
<li
><a href="#controls_android.jpeg.gpsCoordinates">android.jpeg.gpsCoordinates</a></li>
<li
><a href="#controls_android.jpeg.gpsProcessingMethod">android.jpeg.gpsProcessingMethod</a></li>
<li
><a href="#controls_android.jpeg.gpsTimestamp">android.jpeg.gpsTimestamp</a></li>
<li
><a href="#controls_android.jpeg.orientation">android.jpeg.orientation</a></li>
<li
><a href="#controls_android.jpeg.quality">android.jpeg.quality</a></li>
<li
><a href="#controls_android.jpeg.thumbnailQuality">android.jpeg.thumbnailQuality</a></li>
<li
><a href="#controls_android.jpeg.thumbnailSize">android.jpeg.thumbnailSize</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.jpeg.availableThumbnailSizes">android.jpeg.availableThumbnailSizes</a></li>
<li
><a href="#static_android.jpeg.maxSize">android.jpeg.maxSize</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.jpeg.gpsLocation">android.jpeg.gpsLocation</a></li>
<li
><a href="#dynamic_android.jpeg.gpsCoordinates">android.jpeg.gpsCoordinates</a></li>
<li
><a href="#dynamic_android.jpeg.gpsProcessingMethod">android.jpeg.gpsProcessingMethod</a></li>
<li
><a href="#dynamic_android.jpeg.gpsTimestamp">android.jpeg.gpsTimestamp</a></li>
<li
><a href="#dynamic_android.jpeg.orientation">android.jpeg.orientation</a></li>
<li
><a href="#dynamic_android.jpeg.quality">android.jpeg.quality</a></li>
<li
><a href="#dynamic_android.jpeg.size">android.jpeg.size</a></li>
<li
><a href="#dynamic_android.jpeg.thumbnailQuality">android.jpeg.thumbnailQuality</a></li>
<li
><a href="#dynamic_android.jpeg.thumbnailSize">android.jpeg.thumbnailSize</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_lens">lens</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.lens.aperture">android.lens.aperture</a></li>
<li
><a href="#controls_android.lens.filterDensity">android.lens.filterDensity</a></li>
<li
><a href="#controls_android.lens.focalLength">android.lens.focalLength</a></li>
<li
><a href="#controls_android.lens.focusDistance">android.lens.focusDistance</a></li>
<li
><a href="#controls_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.lens.info.availableApertures">android.lens.info.availableApertures</a></li>
<li
><a href="#static_android.lens.info.availableFilterDensities">android.lens.info.availableFilterDensities</a></li>
<li
><a href="#static_android.lens.info.availableFocalLengths">android.lens.info.availableFocalLengths</a></li>
<li
><a href="#static_android.lens.info.availableOpticalStabilization">android.lens.info.availableOpticalStabilization</a></li>
<li
><a href="#static_android.lens.info.hyperfocalDistance">android.lens.info.hyperfocalDistance</a></li>
<li
><a href="#static_android.lens.info.minimumFocusDistance">android.lens.info.minimumFocusDistance</a></li>
<li
><a href="#static_android.lens.info.shadingMapSize">android.lens.info.shadingMapSize</a></li>
<li
><a href="#static_android.lens.info.focusDistanceCalibration">android.lens.info.focusDistanceCalibration</a></li>
<li
><a href="#static_android.lens.facing">android.lens.facing</a></li>
<li
><a href="#static_android.lens.poseRotation">android.lens.poseRotation</a></li>
<li
><a href="#static_android.lens.poseTranslation">android.lens.poseTranslation</a></li>
<li
><a href="#static_android.lens.intrinsicCalibration">android.lens.intrinsicCalibration</a></li>
<li
class="toc_deprecated"
><a href="#static_android.lens.radialDistortion">android.lens.radialDistortion</a></li>
<li
><a href="#static_android.lens.poseReference">android.lens.poseReference</a></li>
<li
><a href="#static_android.lens.distortion">android.lens.distortion</a></li>
<li
><a href="#static_android.lens.distortionMaximumResolution">android.lens.distortionMaximumResolution</a></li>
<li
><a href="#static_android.lens.intrinsicCalibrationMaximumResolution">android.lens.intrinsicCalibrationMaximumResolution</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.lens.aperture">android.lens.aperture</a></li>
<li
><a href="#dynamic_android.lens.filterDensity">android.lens.filterDensity</a></li>
<li
><a href="#dynamic_android.lens.focalLength">android.lens.focalLength</a></li>
<li
><a href="#dynamic_android.lens.focusDistance">android.lens.focusDistance</a></li>
<li
><a href="#dynamic_android.lens.focusRange">android.lens.focusRange</a></li>
<li
><a href="#dynamic_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a></li>
<li
><a href="#dynamic_android.lens.state">android.lens.state</a></li>
<li
><a href="#dynamic_android.lens.poseRotation">android.lens.poseRotation</a></li>
<li
><a href="#dynamic_android.lens.poseTranslation">android.lens.poseTranslation</a></li>
<li
><a href="#dynamic_android.lens.intrinsicCalibration">android.lens.intrinsicCalibration</a></li>
<li
class="toc_deprecated"
><a href="#dynamic_android.lens.radialDistortion">android.lens.radialDistortion</a></li>
<li
><a href="#dynamic_android.lens.distortion">android.lens.distortion</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_noiseReduction">noiseReduction</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.noiseReduction.mode">android.noiseReduction.mode</a></li>
<li
><a href="#controls_android.noiseReduction.strength">android.noiseReduction.strength</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.noiseReduction.availableNoiseReductionModes</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.noiseReduction.mode">android.noiseReduction.mode</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_quirks">quirks</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
class="toc_deprecated"
><a href="#static_android.quirks.meteringCropRegion">android.quirks.meteringCropRegion</a></li>
<li
class="toc_deprecated"
><a href="#static_android.quirks.triggerAfWithAuto">android.quirks.triggerAfWithAuto</a></li>
<li
class="toc_deprecated"
><a href="#static_android.quirks.useZslFormat">android.quirks.useZslFormat</a></li>
<li
class="toc_deprecated"
><a href="#static_android.quirks.usePartialResult">android.quirks.usePartialResult</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
class="toc_deprecated"
><a href="#dynamic_android.quirks.partialResult">android.quirks.partialResult</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_request">request</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
class="toc_deprecated"
><a href="#controls_android.request.frameCount">android.request.frameCount</a></li>
<li
><a href="#controls_android.request.id">android.request.id</a></li>
<li
class="toc_deprecated"
><a href="#controls_android.request.inputStreams">android.request.inputStreams</a></li>
<li
><a href="#controls_android.request.metadataMode">android.request.metadataMode</a></li>
<li
class="toc_deprecated"
><a href="#controls_android.request.outputStreams">android.request.outputStreams</a></li>
<li
class="toc_deprecated"
><a href="#controls_android.request.type">android.request.type</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.request.maxNumOutputStreams">android.request.maxNumOutputStreams</a></li>
<li
><a href="#static_android.request.maxNumOutputRaw">android.request.maxNumOutputRaw</a></li>
<li
><a href="#static_android.request.maxNumOutputProc">android.request.maxNumOutputProc</a></li>
<li
><a href="#static_android.request.maxNumOutputProcStalling">android.request.maxNumOutputProcStalling</a></li>
<li
class="toc_deprecated"
><a href="#static_android.request.maxNumReprocessStreams">android.request.maxNumReprocessStreams</a></li>
<li
><a href="#static_android.request.maxNumInputStreams">android.request.maxNumInputStreams</a></li>
<li
><a href="#static_android.request.pipelineMaxDepth">android.request.pipelineMaxDepth</a></li>
<li
><a href="#static_android.request.partialResultCount">android.request.partialResultCount</a></li>
<li
><a href="#static_android.request.availableCapabilities">android.request.availableCapabilities</a></li>
<li
><a href="#static_android.request.availableRequestKeys">android.request.availableRequestKeys</a></li>
<li
><a href="#static_android.request.availableResultKeys">android.request.availableResultKeys</a></li>
<li
><a href="#static_android.request.availableCharacteristicsKeys">android.request.availableCharacteristicsKeys</a></li>
<li
><a href="#static_android.request.availableSessionKeys">android.request.availableSessionKeys</a></li>
<li
><a href="#static_android.request.availablePhysicalCameraRequestKeys">android.request.availablePhysicalCameraRequestKeys</a></li>
<li
><a href="#static_android.request.characteristicKeysNeedingPermission">android.request.characteristicKeysNeedingPermission</a></li>
<li
><a href="#static_android.request.availableDynamicRangeProfiles">android.request.availableDynamicRangeProfiles</a></li>
<li
><a href="#static_android.request.availableDynamicRangeProfilesMap">android.request.availableDynamicRangeProfilesMap</a></li>
<li
><a href="#static_android.request.recommendedTenBitDynamicRangeProfile">android.request.recommendedTenBitDynamicRangeProfile</a></li>
<li
><a href="#static_android.request.availableColorSpaceProfiles">android.request.availableColorSpaceProfiles</a></li>
<li
><a href="#static_android.request.availableColorSpaceProfilesMap">android.request.availableColorSpaceProfilesMap</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
class="toc_deprecated"
><a href="#dynamic_android.request.frameCount">android.request.frameCount</a></li>
<li
><a href="#dynamic_android.request.id">android.request.id</a></li>
<li
><a href="#dynamic_android.request.metadataMode">android.request.metadataMode</a></li>
<li
class="toc_deprecated"
><a href="#dynamic_android.request.outputStreams">android.request.outputStreams</a></li>
<li
><a href="#dynamic_android.request.pipelineDepth">android.request.pipelineDepth</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_scaler">scaler</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.scaler.cropRegion">android.scaler.cropRegion</a></li>
<li
><a href="#controls_android.scaler.rotateAndCrop">android.scaler.rotateAndCrop</a></li>
<li
><a href="#controls_android.scaler.cropRegionSet">android.scaler.cropRegionSet</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
class="toc_deprecated"
><a href="#static_android.scaler.availableFormats">android.scaler.availableFormats</a></li>
<li
class="toc_deprecated"
><a href="#static_android.scaler.availableJpegMinDurations">android.scaler.availableJpegMinDurations</a></li>
<li
class="toc_deprecated"
><a href="#static_android.scaler.availableJpegSizes">android.scaler.availableJpegSizes</a></li>
<li
><a href="#static_android.scaler.availableMaxDigitalZoom">android.scaler.availableMaxDigitalZoom</a></li>
<li
class="toc_deprecated"
><a href="#static_android.scaler.availableProcessedMinDurations">android.scaler.availableProcessedMinDurations</a></li>
<li
class="toc_deprecated"
><a href="#static_android.scaler.availableProcessedSizes">android.scaler.availableProcessedSizes</a></li>
<li
class="toc_deprecated"
><a href="#static_android.scaler.availableRawMinDurations">android.scaler.availableRawMinDurations</a></li>
<li
class="toc_deprecated"
><a href="#static_android.scaler.availableRawSizes">android.scaler.availableRawSizes</a></li>
<li
><a href="#static_android.scaler.availableInputOutputFormatsMap">android.scaler.availableInputOutputFormatsMap</a></li>
<li
><a href="#static_android.scaler.availableStreamConfigurations">android.scaler.availableStreamConfigurations</a></li>
<li
><a href="#static_android.scaler.availableMinFrameDurations">android.scaler.availableMinFrameDurations</a></li>
<li
><a href="#static_android.scaler.availableStallDurations">android.scaler.availableStallDurations</a></li>
<li
><a href="#static_android.scaler.streamConfigurationMap">android.scaler.streamConfigurationMap</a></li>
<li
><a href="#static_android.scaler.croppingType">android.scaler.croppingType</a></li>
<li
><a href="#static_android.scaler.availableRecommendedStreamConfigurations">android.scaler.availableRecommendedStreamConfigurations</a></li>
<li
><a href="#static_android.scaler.availableRecommendedInputOutputFormatsMap">android.scaler.availableRecommendedInputOutputFormatsMap</a></li>
<li
><a href="#static_android.scaler.mandatoryStreamCombinations">android.scaler.mandatoryStreamCombinations</a></li>
<li
><a href="#static_android.scaler.mandatoryConcurrentStreamCombinations">android.scaler.mandatoryConcurrentStreamCombinations</a></li>
<li
><a href="#static_android.scaler.availableRotateAndCropModes">android.scaler.availableRotateAndCropModes</a></li>
<li
><a href="#static_android.scaler.defaultSecureImageSize">android.scaler.defaultSecureImageSize</a></li>
<li
><a href="#static_android.scaler.physicalCameraMultiResolutionStreamConfigurations">android.scaler.physicalCameraMultiResolutionStreamConfigurations</a></li>
<li
><a href="#static_android.scaler.multiResolutionStreamConfigurationMap">android.scaler.multiResolutionStreamConfigurationMap</a></li>
<li
><a href="#static_android.scaler.availableStreamConfigurationsMaximumResolution">android.scaler.availableStreamConfigurationsMaximumResolution</a></li>
<li
><a href="#static_android.scaler.availableMinFrameDurationsMaximumResolution">android.scaler.availableMinFrameDurationsMaximumResolution</a></li>
<li
><a href="#static_android.scaler.availableStallDurationsMaximumResolution">android.scaler.availableStallDurationsMaximumResolution</a></li>
<li
><a href="#static_android.scaler.streamConfigurationMapMaximumResolution">android.scaler.streamConfigurationMapMaximumResolution</a></li>
<li
><a href="#static_android.scaler.availableInputOutputFormatsMapMaximumResolution">android.scaler.availableInputOutputFormatsMapMaximumResolution</a></li>
<li
><a href="#static_android.scaler.mandatoryMaximumResolutionStreamCombinations">android.scaler.mandatoryMaximumResolutionStreamCombinations</a></li>
<li
><a href="#static_android.scaler.mandatoryTenBitOutputStreamCombinations">android.scaler.mandatoryTenBitOutputStreamCombinations</a></li>
<li
><a href="#static_android.scaler.mandatoryPreviewStabilizationOutputStreamCombinations">android.scaler.mandatoryPreviewStabilizationOutputStreamCombinations</a></li>
<li
><a href="#static_android.scaler.multiResolutionStreamSupported">android.scaler.multiResolutionStreamSupported</a></li>
<li
><a href="#static_android.scaler.availableStreamUseCases">android.scaler.availableStreamUseCases</a></li>
<li
><a href="#static_android.scaler.mandatoryUseCaseStreamCombinations">android.scaler.mandatoryUseCaseStreamCombinations</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.scaler.cropRegion">android.scaler.cropRegion</a></li>
<li
><a href="#dynamic_android.scaler.rotateAndCrop">android.scaler.rotateAndCrop</a></li>
<li
><a href="#dynamic_android.scaler.rawCropRegion">android.scaler.rawCropRegion</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_sensor">sensor</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.sensor.exposureTime">android.sensor.exposureTime</a></li>
<li
><a href="#controls_android.sensor.frameDuration">android.sensor.frameDuration</a></li>
<li
><a href="#controls_android.sensor.sensitivity">android.sensor.sensitivity</a></li>
<li
><a href="#controls_android.sensor.testPatternData">android.sensor.testPatternData</a></li>
<li
><a href="#controls_android.sensor.testPatternMode">android.sensor.testPatternMode</a></li>
<li
><a href="#controls_android.sensor.pixelMode">android.sensor.pixelMode</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.sensor.info.activeArraySize">android.sensor.info.activeArraySize</a></li>
<li
><a href="#static_android.sensor.info.sensitivityRange">android.sensor.info.sensitivityRange</a></li>
<li
><a href="#static_android.sensor.info.colorFilterArrangement">android.sensor.info.colorFilterArrangement</a></li>
<li
><a href="#static_android.sensor.info.exposureTimeRange">android.sensor.info.exposureTimeRange</a></li>
<li
><a href="#static_android.sensor.info.maxFrameDuration">android.sensor.info.maxFrameDuration</a></li>
<li
><a href="#static_android.sensor.info.physicalSize">android.sensor.info.physicalSize</a></li>
<li
><a href="#static_android.sensor.info.pixelArraySize">android.sensor.info.pixelArraySize</a></li>
<li
><a href="#static_android.sensor.info.whiteLevel">android.sensor.info.whiteLevel</a></li>
<li
><a href="#static_android.sensor.info.timestampSource">android.sensor.info.timestampSource</a></li>
<li
><a href="#static_android.sensor.info.lensShadingApplied">android.sensor.info.lensShadingApplied</a></li>
<li
><a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.sensor.info.preCorrectionActiveArraySize</a></li>
<li
><a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.sensor.info.activeArraySizeMaximumResolution</a></li>
<li
><a href="#static_android.sensor.info.pixelArraySizeMaximumResolution">android.sensor.info.pixelArraySizeMaximumResolution</a></li>
<li
><a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.sensor.info.preCorrectionActiveArraySizeMaximumResolution</a></li>
<li
><a href="#static_android.sensor.info.binningFactor">android.sensor.info.binningFactor</a></li>
<li
><a href="#static_android.sensor.referenceIlluminant1">android.sensor.referenceIlluminant1</a></li>
<li
><a href="#static_android.sensor.referenceIlluminant2">android.sensor.referenceIlluminant2</a></li>
<li
><a href="#static_android.sensor.calibrationTransform1">android.sensor.calibrationTransform1</a></li>
<li
><a href="#static_android.sensor.calibrationTransform2">android.sensor.calibrationTransform2</a></li>
<li
><a href="#static_android.sensor.colorTransform1">android.sensor.colorTransform1</a></li>
<li
><a href="#static_android.sensor.colorTransform2">android.sensor.colorTransform2</a></li>
<li
><a href="#static_android.sensor.forwardMatrix1">android.sensor.forwardMatrix1</a></li>
<li
><a href="#static_android.sensor.forwardMatrix2">android.sensor.forwardMatrix2</a></li>
<li
><a href="#static_android.sensor.baseGainFactor">android.sensor.baseGainFactor</a></li>
<li
><a href="#static_android.sensor.blackLevelPattern">android.sensor.blackLevelPattern</a></li>
<li
><a href="#static_android.sensor.maxAnalogSensitivity">android.sensor.maxAnalogSensitivity</a></li>
<li
><a href="#static_android.sensor.orientation">android.sensor.orientation</a></li>
<li
><a href="#static_android.sensor.profileHueSatMapDimensions">android.sensor.profileHueSatMapDimensions</a></li>
<li
><a href="#static_android.sensor.availableTestPatternModes">android.sensor.availableTestPatternModes</a></li>
<li
><a href="#static_android.sensor.opticalBlackRegions">android.sensor.opticalBlackRegions</a></li>
<li
><a href="#static_android.sensor.opaqueRawSize">android.sensor.opaqueRawSize</a></li>
<li
><a href="#static_android.sensor.opaqueRawSizeMaximumResolution">android.sensor.opaqueRawSizeMaximumResolution</a></li>
<li
><a href="#static_android.sensor.readoutTimestamp">android.sensor.readoutTimestamp</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.sensor.exposureTime">android.sensor.exposureTime</a></li>
<li
><a href="#dynamic_android.sensor.frameDuration">android.sensor.frameDuration</a></li>
<li
><a href="#dynamic_android.sensor.sensitivity">android.sensor.sensitivity</a></li>
<li
><a href="#dynamic_android.sensor.timestamp">android.sensor.timestamp</a></li>
<li
><a href="#dynamic_android.sensor.temperature">android.sensor.temperature</a></li>
<li
><a href="#dynamic_android.sensor.neutralColorPoint">android.sensor.neutralColorPoint</a></li>
<li
><a href="#dynamic_android.sensor.noiseProfile">android.sensor.noiseProfile</a></li>
<li
><a href="#dynamic_android.sensor.profileHueSatMap">android.sensor.profileHueSatMap</a></li>
<li
><a href="#dynamic_android.sensor.profileToneCurve">android.sensor.profileToneCurve</a></li>
<li
><a href="#dynamic_android.sensor.greenSplit">android.sensor.greenSplit</a></li>
<li
><a href="#dynamic_android.sensor.testPatternData">android.sensor.testPatternData</a></li>
<li
><a href="#dynamic_android.sensor.testPatternMode">android.sensor.testPatternMode</a></li>
<li
><a href="#dynamic_android.sensor.rollingShutterSkew">android.sensor.rollingShutterSkew</a></li>
<li
><a href="#dynamic_android.sensor.dynamicBlackLevel">android.sensor.dynamicBlackLevel</a></li>
<li
><a href="#dynamic_android.sensor.dynamicWhiteLevel">android.sensor.dynamicWhiteLevel</a></li>
<li
><a href="#dynamic_android.sensor.pixelMode">android.sensor.pixelMode</a></li>
<li
><a href="#dynamic_android.sensor.rawBinningFactorUsed">android.sensor.rawBinningFactorUsed</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_shading">shading</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.shading.mode">android.shading.mode</a></li>
<li
><a href="#controls_android.shading.strength">android.shading.strength</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.shading.mode">android.shading.mode</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.shading.availableModes">android.shading.availableModes</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_statistics">statistics</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.statistics.faceDetectMode">android.statistics.faceDetectMode</a></li>
<li
><a href="#controls_android.statistics.histogramMode">android.statistics.histogramMode</a></li>
<li
><a href="#controls_android.statistics.sharpnessMapMode">android.statistics.sharpnessMapMode</a></li>
<li
><a href="#controls_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a></li>
<li
><a href="#controls_android.statistics.lensShadingMapMode">android.statistics.lensShadingMapMode</a></li>
<li
><a href="#controls_android.statistics.oisDataMode">android.statistics.oisDataMode</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.statistics.info.availableFaceDetectModes">android.statistics.info.availableFaceDetectModes</a></li>
<li
><a href="#static_android.statistics.info.histogramBucketCount">android.statistics.info.histogramBucketCount</a></li>
<li
><a href="#static_android.statistics.info.maxFaceCount">android.statistics.info.maxFaceCount</a></li>
<li
><a href="#static_android.statistics.info.maxHistogramCount">android.statistics.info.maxHistogramCount</a></li>
<li
><a href="#static_android.statistics.info.maxSharpnessMapValue">android.statistics.info.maxSharpnessMapValue</a></li>
<li
><a href="#static_android.statistics.info.sharpnessMapSize">android.statistics.info.sharpnessMapSize</a></li>
<li
><a href="#static_android.statistics.info.availableHotPixelMapModes">android.statistics.info.availableHotPixelMapModes</a></li>
<li
><a href="#static_android.statistics.info.availableLensShadingMapModes">android.statistics.info.availableLensShadingMapModes</a></li>
<li
><a href="#static_android.statistics.info.availableOisDataModes">android.statistics.info.availableOisDataModes</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.statistics.faceDetectMode">android.statistics.faceDetectMode</a></li>
<li
><a href="#dynamic_android.statistics.faceIds">android.statistics.faceIds</a></li>
<li
><a href="#dynamic_android.statistics.faceLandmarks">android.statistics.faceLandmarks</a></li>
<li
><a href="#dynamic_android.statistics.faceRectangles">android.statistics.faceRectangles</a></li>
<li
><a href="#dynamic_android.statistics.faceScores">android.statistics.faceScores</a></li>
<li
><a href="#dynamic_android.statistics.faces">android.statistics.faces</a></li>
<li
><a href="#dynamic_android.statistics.histogram">android.statistics.histogram</a></li>
<li
><a href="#dynamic_android.statistics.histogramMode">android.statistics.histogramMode</a></li>
<li
><a href="#dynamic_android.statistics.sharpnessMap">android.statistics.sharpnessMap</a></li>
<li
><a href="#dynamic_android.statistics.sharpnessMapMode">android.statistics.sharpnessMapMode</a></li>
<li
><a href="#dynamic_android.statistics.lensShadingCorrectionMap">android.statistics.lensShadingCorrectionMap</a></li>
<li
><a href="#dynamic_android.statistics.lensShadingMap">android.statistics.lensShadingMap</a></li>
<li
class="toc_deprecated"
><a href="#dynamic_android.statistics.predictedColorGains">android.statistics.predictedColorGains</a></li>
<li
class="toc_deprecated"
><a href="#dynamic_android.statistics.predictedColorTransform">android.statistics.predictedColorTransform</a></li>
<li
><a href="#dynamic_android.statistics.sceneFlicker">android.statistics.sceneFlicker</a></li>
<li
><a href="#dynamic_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a></li>
<li
><a href="#dynamic_android.statistics.hotPixelMap">android.statistics.hotPixelMap</a></li>
<li
><a href="#dynamic_android.statistics.lensShadingMapMode">android.statistics.lensShadingMapMode</a></li>
<li
><a href="#dynamic_android.statistics.oisDataMode">android.statistics.oisDataMode</a></li>
<li
><a href="#dynamic_android.statistics.oisTimestamps">android.statistics.oisTimestamps</a></li>
<li
><a href="#dynamic_android.statistics.oisXShifts">android.statistics.oisXShifts</a></li>
<li
><a href="#dynamic_android.statistics.oisYShifts">android.statistics.oisYShifts</a></li>
<li
><a href="#dynamic_android.statistics.oisSamples">android.statistics.oisSamples</a></li>
<li
><a href="#dynamic_android.statistics.lensIntrinsicsSamples">android.statistics.lensIntrinsicsSamples</a></li>
<li
><a href="#dynamic_android.statistics.lensIntrinsicTimestamps">android.statistics.lensIntrinsicTimestamps</a></li>
<li
><a href="#dynamic_android.statistics.lensIntrinsicSamples">android.statistics.lensIntrinsicSamples</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_tonemap">tonemap</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.tonemap.curveBlue">android.tonemap.curveBlue</a></li>
<li
><a href="#controls_android.tonemap.curveGreen">android.tonemap.curveGreen</a></li>
<li
><a href="#controls_android.tonemap.curveRed">android.tonemap.curveRed</a></li>
<li
><a href="#controls_android.tonemap.curve">android.tonemap.curve</a></li>
<li
><a href="#controls_android.tonemap.mode">android.tonemap.mode</a></li>
<li
><a href="#controls_android.tonemap.gamma">android.tonemap.gamma</a></li>
<li
><a href="#controls_android.tonemap.presetCurve">android.tonemap.presetCurve</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.tonemap.maxCurvePoints">android.tonemap.maxCurvePoints</a></li>
<li
><a href="#static_android.tonemap.availableToneMapModes">android.tonemap.availableToneMapModes</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.tonemap.curveBlue">android.tonemap.curveBlue</a></li>
<li
><a href="#dynamic_android.tonemap.curveGreen">android.tonemap.curveGreen</a></li>
<li
><a href="#dynamic_android.tonemap.curveRed">android.tonemap.curveRed</a></li>
<li
><a href="#dynamic_android.tonemap.curve">android.tonemap.curve</a></li>
<li
><a href="#dynamic_android.tonemap.mode">android.tonemap.mode</a></li>
<li
><a href="#dynamic_android.tonemap.gamma">android.tonemap.gamma</a></li>
<li
><a href="#dynamic_android.tonemap.presetCurve">android.tonemap.presetCurve</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_led">led</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.led.transmit">android.led.transmit</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.led.transmit">android.led.transmit</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.led.availableLeds">android.led.availableLeds</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_info">info</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.info.supportedHardwareLevel">android.info.supportedHardwareLevel</a></li>
<li
><a href="#static_android.info.version">android.info.version</a></li>
<li
><a href="#static_android.info.supportedBufferManagementVersion">android.info.supportedBufferManagementVersion</a></li>
<li
><a href="#static_android.info.deviceStateSensorOrientationMap">android.info.deviceStateSensorOrientationMap</a></li>
<li
><a href="#static_android.info.deviceStateOrientations">android.info.deviceStateOrientations</a></li>
<li
><a href="#static_android.info.sessionConfigurationQueryVersion">android.info.sessionConfigurationQueryVersion</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_blackLevel">blackLevel</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.blackLevel.lock">android.blackLevel.lock</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.blackLevel.lock">android.blackLevel.lock</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_sync">sync</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.sync.frameNumber">android.sync.frameNumber</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.sync.maxLatency">android.sync.maxLatency</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_reprocess">reprocess</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.reprocess.effectiveExposureFactor">android.reprocess.effectiveExposureFactor</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.reprocess.effectiveExposureFactor">android.reprocess.effectiveExposureFactor</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.reprocess.maxCaptureStall">android.reprocess.maxCaptureStall</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_depth">depth</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.depth.maxDepthSamples">android.depth.maxDepthSamples</a></li>
<li
><a href="#static_android.depth.availableDepthStreamConfigurations">android.depth.availableDepthStreamConfigurations</a></li>
<li
><a href="#static_android.depth.availableDepthMinFrameDurations">android.depth.availableDepthMinFrameDurations</a></li>
<li
><a href="#static_android.depth.availableDepthStallDurations">android.depth.availableDepthStallDurations</a></li>
<li
><a href="#static_android.depth.depthIsExclusive">android.depth.depthIsExclusive</a></li>
<li
><a href="#static_android.depth.availableRecommendedDepthStreamConfigurations">android.depth.availableRecommendedDepthStreamConfigurations</a></li>
<li
><a href="#static_android.depth.availableDynamicDepthStreamConfigurations">android.depth.availableDynamicDepthStreamConfigurations</a></li>
<li
><a href="#static_android.depth.availableDynamicDepthMinFrameDurations">android.depth.availableDynamicDepthMinFrameDurations</a></li>
<li
><a href="#static_android.depth.availableDynamicDepthStallDurations">android.depth.availableDynamicDepthStallDurations</a></li>
<li
><a href="#static_android.depth.availableDepthStreamConfigurationsMaximumResolution">android.depth.availableDepthStreamConfigurationsMaximumResolution</a></li>
<li
><a href="#static_android.depth.availableDepthMinFrameDurationsMaximumResolution">android.depth.availableDepthMinFrameDurationsMaximumResolution</a></li>
<li
><a href="#static_android.depth.availableDepthStallDurationsMaximumResolution">android.depth.availableDepthStallDurationsMaximumResolution</a></li>
<li
><a href="#static_android.depth.availableDynamicDepthStreamConfigurationsMaximumResolution">android.depth.availableDynamicDepthStreamConfigurationsMaximumResolution</a></li>
<li
><a href="#static_android.depth.availableDynamicDepthMinFrameDurationsMaximumResolution">android.depth.availableDynamicDepthMinFrameDurationsMaximumResolution</a></li>
<li
><a href="#static_android.depth.availableDynamicDepthStallDurationsMaximumResolution">android.depth.availableDynamicDepthStallDurationsMaximumResolution</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_logicalMultiCamera">logicalMultiCamera</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.logicalMultiCamera.physicalIds">android.logicalMultiCamera.physicalIds</a></li>
<li
><a href="#static_android.logicalMultiCamera.sensorSyncType">android.logicalMultiCamera.sensorSyncType</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.logicalMultiCamera.activePhysicalId">android.logicalMultiCamera.activePhysicalId</a></li>
<li
><a href="#dynamic_android.logicalMultiCamera.activePhysicalSensorCropRegion">android.logicalMultiCamera.activePhysicalSensorCropRegion</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_distortionCorrection">distortionCorrection</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.distortionCorrection.mode">android.distortionCorrection.mode</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.distortionCorrection.availableModes">android.distortionCorrection.availableModes</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.distortionCorrection.mode">android.distortionCorrection.mode</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_heic">heic</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.heic.info.supported">android.heic.info.supported</a></li>
<li
><a href="#static_android.heic.info.maxJpegAppSegmentsCount">android.heic.info.maxJpegAppSegmentsCount</a></li>
<li
><a href="#static_android.heic.availableHeicStreamConfigurations">android.heic.availableHeicStreamConfigurations</a></li>
<li
><a href="#static_android.heic.availableHeicMinFrameDurations">android.heic.availableHeicMinFrameDurations</a></li>
<li
><a href="#static_android.heic.availableHeicStallDurations">android.heic.availableHeicStallDurations</a></li>
<li
><a href="#static_android.heic.availableHeicStreamConfigurationsMaximumResolution">android.heic.availableHeicStreamConfigurationsMaximumResolution</a></li>
<li
><a href="#static_android.heic.availableHeicMinFrameDurationsMaximumResolution">android.heic.availableHeicMinFrameDurationsMaximumResolution</a></li>
<li
><a href="#static_android.heic.availableHeicStallDurationsMaximumResolution">android.heic.availableHeicStallDurationsMaximumResolution</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_automotive">automotive</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.automotive.lens.facing">android.automotive.lens.facing</a></li>
<li
><a href="#static_android.automotive.location">android.automotive.location</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_extension">extension</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">controls</span>
<ul class="toc_section">
<li
><a href="#controls_android.extension.strength">android.extension.strength</a></li>
</ul>
</li>
<li>
<span class="toc_kind_header">dynamic</span>
<ul class="toc_section">
<li
><a href="#dynamic_android.extension.currentType">android.extension.currentType</a></li>
<li
><a href="#dynamic_android.extension.strength">android.extension.strength</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
<li>
<span class="toc_section_header"><a href="#section_jpegr">jpegr</a></span>
<ul class="toc_section">
<li>
<span class="toc_kind_header">static</span>
<ul class="toc_section">
<li
><a href="#static_android.jpegr.availableJpegRStreamConfigurations">android.jpegr.availableJpegRStreamConfigurations</a></li>
<li
><a href="#static_android.jpegr.availableJpegRMinFrameDurations">android.jpegr.availableJpegRMinFrameDurations</a></li>
<li
><a href="#static_android.jpegr.availableJpegRStallDurations">android.jpegr.availableJpegRStallDurations</a></li>
<li
><a href="#static_android.jpegr.availableJpegRStreamConfigurationsMaximumResolution">android.jpegr.availableJpegRStreamConfigurationsMaximumResolution</a></li>
<li
><a href="#static_android.jpegr.availableJpegRMinFrameDurationsMaximumResolution">android.jpegr.availableJpegRMinFrameDurationsMaximumResolution</a></li>
<li
><a href="#static_android.jpegr.availableJpegRStallDurationsMaximumResolution">android.jpegr.availableJpegRStallDurationsMaximumResolution</a></li>
</ul>
</li>
</ul> <!-- toc_section -->
</li>
</ul>
<h1>Properties</h1>
<table class="properties">
<thead class="thead_dummy">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead> <!-- so that the first occurrence of thead is not
above the first occurrence of tr -->
<!-- <namespace name="android"> -->
<tr><td colspan="7" id="section_colorCorrection" class="section">colorCorrection</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.colorCorrection.mode">
<td class="entry_name
" rowspan="5">
android.<wbr/>color<wbr/>Correction.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">TRANSFORM_MATRIX (v3.2)</span>
<span class="entry_type_enum_notes"><p>Use the <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> matrix
and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> to do color conversion.<wbr/></p>
<p>All advanced white balance adjustments (not specified
by our white balance pipeline) must be disabled.<wbr/></p>
<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
TRANSFORM_<wbr/>MATRIX is ignored.<wbr/> The camera device will override
this value to either FAST or HIGH_<wbr/>QUALITY.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Color correction processing must not slow down
capture rate relative to sensor raw output.<wbr/></p>
<p>Advanced white balance adjustments above and beyond
the specified white balance pipeline may be applied.<wbr/></p>
<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
the camera device uses the last frame's AWB values
(or defaults if AWB has never been run).<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>Color correction processing operates at improved
quality but the capture rate might be reduced (relative to sensor
raw output rate)</p>
<p>Advanced white balance adjustments above and beyond
the specified white balance pipeline may be applied.<wbr/></p>
<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
the camera device uses the last frame's AWB values
(or defaults if AWB has never been run).<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The mode control selects how the image data is converted from the
sensor's native color into linear sRGB color.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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
control is overridden by the AWB routine.<wbr/> When AWB is disabled,<wbr/> the
application controls how the color mapping is performed.<wbr/></p>
<p>We define the expected processing pipeline below.<wbr/> For consistency
across devices,<wbr/> this is always the case with TRANSFORM_<wbr/>MATRIX.<wbr/></p>
<p>When either FAST or HIGH_<wbr/>QUALITY is used,<wbr/> the camera device may
do additional processing but <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
<a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> will still be provided by the
camera device (in the results) and be roughly correct.<wbr/></p>
<p>Switching to TRANSFORM_<wbr/>MATRIX and using the data provided from
FAST or HIGH_<wbr/>QUALITY will yield a picture with the same white point
as what was produced by the camera device in the earlier frame.<wbr/></p>
<p>The expected processing pipeline is as follows:</p>
<p><img alt="White balance processing pipeline" src="images/camera2/metadata/android.colorCorrection.mode/processing_pipeline.png"/></p>
<p>The white balance is encoded by two values,<wbr/> a 4-channel white-balance
gain vector (applied in the Bayer domain),<wbr/> and a 3x3 color transform
matrix (applied after demosaic).<wbr/></p>
<p>The 4-channel white-balance gains are defined as:</p>
<pre><code><a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> = [ R G_<wbr/>even G_<wbr/>odd B ]
</code></pre>
<p>where <code>G_<wbr/>even</code> is the gain for green pixels on even rows of the
output,<wbr/> and <code>G_<wbr/>odd</code> is the gain for green pixels on the odd rows.<wbr/>
These may be identical for a given camera device implementation; if
the camera device does not support a separate gain for even/<wbr/>odd green
channels,<wbr/> it will use the <code>G_<wbr/>even</code> value,<wbr/> and write <code>G_<wbr/>odd</code> equal to
<code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
<p>The matrices for color transforms are defined as a 9-entry vector:</p>
<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 ]
</code></pre>
<p>which define a transform from input sensor colors,<wbr/> <code>P_<wbr/>in = [ r g b ]</code>,<wbr/>
to output linear sRGB,<wbr/> <code>P_<wbr/>out = [ r' g' b' ]</code>,<wbr/></p>
<p>with colors as follows:</p>
<pre><code>r' = I0r + I1g + I2b
g' = I3r + I4g + I5b
b' = I6r + I7g + I8b
</code></pre>
<p>Both the input and output value ranges must match.<wbr/> Overflow/<wbr/>underflow
values are clipped to fit within the range.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must support both FAST and HIGH_<wbr/>QUALITY if color correction control is available
on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
That is,<wbr/> if the highest quality implementation on the camera device does not slow down
capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY should generate the same output.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.colorCorrection.transform">
<td class="entry_name
" rowspan="3">
android.<wbr/>color<wbr/>Correction.<wbr/>transform
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3 x 3
</span>
<span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
<span class="entry_type_hwlevel">[full] </span>
<div class="entry_type_notes">3x3 rational matrix in row-major order</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A color transform matrix to use to transform
from sensor RGB color space to output linear sRGB color space.<wbr/></p>
</td>
<td class="entry_units">
Unitless scale factors
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This matrix is either set by the camera device when the request
<a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not TRANSFORM_<wbr/>MATRIX,<wbr/> or
directly by the application in the request when the
<a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is TRANSFORM_<wbr/>MATRIX.<wbr/></p>
<p>In the latter case,<wbr/> the camera device may round the matrix to account
for precision issues; the final rounded matrix should be reported back
in this matrix result metadata.<wbr/> The transform should keep the magnitude
of the output color values within <code>[0,<wbr/> 1.<wbr/>0]</code> (assuming input color
values is within the normalized range <code>[0,<wbr/> 1.<wbr/>0]</code>),<wbr/> or clipping may occur.<wbr/></p>
<p>The valid range of each matrix element varies on different devices,<wbr/> but
values within [-1.<wbr/>5,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.colorCorrection.gains">
<td class="entry_name
" rowspan="5">
android.<wbr/>color<wbr/>Correction.<wbr/>gains
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public as rggbChannelVector]</span>
<span class="entry_type_hwlevel">[full] </span>
<div class="entry_type_notes">A 1D array of floats for 4 color channel gains</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Gains applying to Bayer raw color channels for
white-balance.<wbr/></p>
</td>
<td class="entry_units">
Unitless gain factors
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>These per-channel gains are either set by the camera device
when the request <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not
TRANSFORM_<wbr/>MATRIX,<wbr/> or directly by the application in the
request when the <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is
TRANSFORM_<wbr/>MATRIX.<wbr/></p>
<p>The gains in the result metadata are the gains actually
applied by the camera device to the current frame.<wbr/></p>
<p>The valid range of gains varies on different devices,<wbr/> but gains
between [1.<wbr/>0,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/> Even if a given
device allows gains below 1.<wbr/>0,<wbr/> this is usually not recommended because
this can create color artifacts.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The 4-channel white-balance gains are defined in
the order of <code>[R G_<wbr/>even G_<wbr/>odd B]</code>,<wbr/> where <code>G_<wbr/>even</code> is the gain
for green pixels on even rows of the output,<wbr/> and <code>G_<wbr/>odd</code>
is the gain for green pixels on the odd rows.<wbr/></p>
<p>If a HAL does not support a separate gain for even/<wbr/>odd green
channels,<wbr/> it must use the <code>G_<wbr/>even</code> value,<wbr/> and write
<code>G_<wbr/>odd</code> equal to <code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.colorCorrection.aberrationMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No aberration correction is applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Aberration correction will not slow down capture rate
relative to sensor raw output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>Aberration correction operates at improved quality but the capture rate might be
reduced (relative to sensor raw output rate)</p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Mode of operation for the chromatic aberration correction algorithm.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Chromatic (color) aberration is caused by the fact that different wavelengths of light
can not focus on the same point after exiting from the lens.<wbr/> This metadata defines
the high level control of chromatic aberration correction algorithm,<wbr/> which aims to
minimize the chromatic artifacts that may occur along the object boundaries in an
image.<wbr/></p>
<p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean that camera device determined aberration
correction will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device will
use the highest-quality aberration correction algorithms,<wbr/> even if it slows down
capture rate.<wbr/> FAST means the camera device will not slow down capture rate when
applying aberration correction.<wbr/></p>
<p>LEGACY devices will always be in FAST mode.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.colorCorrection.mode">
<td class="entry_name
" rowspan="5">
android.<wbr/>color<wbr/>Correction.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">TRANSFORM_MATRIX (v3.2)</span>
<span class="entry_type_enum_notes"><p>Use the <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> matrix
and <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> to do color conversion.<wbr/></p>
<p>All advanced white balance adjustments (not specified
by our white balance pipeline) must be disabled.<wbr/></p>
<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
TRANSFORM_<wbr/>MATRIX is ignored.<wbr/> The camera device will override
this value to either FAST or HIGH_<wbr/>QUALITY.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Color correction processing must not slow down
capture rate relative to sensor raw output.<wbr/></p>
<p>Advanced white balance adjustments above and beyond
the specified white balance pipeline may be applied.<wbr/></p>
<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
the camera device uses the last frame's AWB values
(or defaults if AWB has never been run).<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>Color correction processing operates at improved
quality but the capture rate might be reduced (relative to sensor
raw output rate)</p>
<p>Advanced white balance adjustments above and beyond
the specified white balance pipeline may be applied.<wbr/></p>
<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
the camera device uses the last frame's AWB values
(or defaults if AWB has never been run).<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The mode control selects how the image data is converted from the
sensor's native color into linear sRGB color.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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
control is overridden by the AWB routine.<wbr/> When AWB is disabled,<wbr/> the
application controls how the color mapping is performed.<wbr/></p>
<p>We define the expected processing pipeline below.<wbr/> For consistency
across devices,<wbr/> this is always the case with TRANSFORM_<wbr/>MATRIX.<wbr/></p>
<p>When either FAST or HIGH_<wbr/>QUALITY is used,<wbr/> the camera device may
do additional processing but <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> and
<a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a> will still be provided by the
camera device (in the results) and be roughly correct.<wbr/></p>
<p>Switching to TRANSFORM_<wbr/>MATRIX and using the data provided from
FAST or HIGH_<wbr/>QUALITY will yield a picture with the same white point
as what was produced by the camera device in the earlier frame.<wbr/></p>
<p>The expected processing pipeline is as follows:</p>
<p><img alt="White balance processing pipeline" src="images/camera2/metadata/android.colorCorrection.mode/processing_pipeline.png"/></p>
<p>The white balance is encoded by two values,<wbr/> a 4-channel white-balance
gain vector (applied in the Bayer domain),<wbr/> and a 3x3 color transform
matrix (applied after demosaic).<wbr/></p>
<p>The 4-channel white-balance gains are defined as:</p>
<pre><code><a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> = [ R G_<wbr/>even G_<wbr/>odd B ]
</code></pre>
<p>where <code>G_<wbr/>even</code> is the gain for green pixels on even rows of the
output,<wbr/> and <code>G_<wbr/>odd</code> is the gain for green pixels on the odd rows.<wbr/>
These may be identical for a given camera device implementation; if
the camera device does not support a separate gain for even/<wbr/>odd green
channels,<wbr/> it will use the <code>G_<wbr/>even</code> value,<wbr/> and write <code>G_<wbr/>odd</code> equal to
<code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
<p>The matrices for color transforms are defined as a 9-entry vector:</p>
<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 ]
</code></pre>
<p>which define a transform from input sensor colors,<wbr/> <code>P_<wbr/>in = [ r g b ]</code>,<wbr/>
to output linear sRGB,<wbr/> <code>P_<wbr/>out = [ r' g' b' ]</code>,<wbr/></p>
<p>with colors as follows:</p>
<pre><code>r' = I0r + I1g + I2b
g' = I3r + I4g + I5b
b' = I6r + I7g + I8b
</code></pre>
<p>Both the input and output value ranges must match.<wbr/> Overflow/<wbr/>underflow
values are clipped to fit within the range.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must support both FAST and HIGH_<wbr/>QUALITY if color correction control is available
on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
That is,<wbr/> if the highest quality implementation on the camera device does not slow down
capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY should generate the same output.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.colorCorrection.transform">
<td class="entry_name
" rowspan="3">
android.<wbr/>color<wbr/>Correction.<wbr/>transform
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3 x 3
</span>
<span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
<span class="entry_type_hwlevel">[full] </span>
<div class="entry_type_notes">3x3 rational matrix in row-major order</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A color transform matrix to use to transform
from sensor RGB color space to output linear sRGB color space.<wbr/></p>
</td>
<td class="entry_units">
Unitless scale factors
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This matrix is either set by the camera device when the request
<a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not TRANSFORM_<wbr/>MATRIX,<wbr/> or
directly by the application in the request when the
<a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is TRANSFORM_<wbr/>MATRIX.<wbr/></p>
<p>In the latter case,<wbr/> the camera device may round the matrix to account
for precision issues; the final rounded matrix should be reported back
in this matrix result metadata.<wbr/> The transform should keep the magnitude
of the output color values within <code>[0,<wbr/> 1.<wbr/>0]</code> (assuming input color
values is within the normalized range <code>[0,<wbr/> 1.<wbr/>0]</code>),<wbr/> or clipping may occur.<wbr/></p>
<p>The valid range of each matrix element varies on different devices,<wbr/> but
values within [-1.<wbr/>5,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.colorCorrection.gains">
<td class="entry_name
" rowspan="5">
android.<wbr/>color<wbr/>Correction.<wbr/>gains
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public as rggbChannelVector]</span>
<span class="entry_type_hwlevel">[full] </span>
<div class="entry_type_notes">A 1D array of floats for 4 color channel gains</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Gains applying to Bayer raw color channels for
white-balance.<wbr/></p>
</td>
<td class="entry_units">
Unitless gain factors
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>These per-channel gains are either set by the camera device
when the request <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is not
TRANSFORM_<wbr/>MATRIX,<wbr/> or directly by the application in the
request when the <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> is
TRANSFORM_<wbr/>MATRIX.<wbr/></p>
<p>The gains in the result metadata are the gains actually
applied by the camera device to the current frame.<wbr/></p>
<p>The valid range of gains varies on different devices,<wbr/> but gains
between [1.<wbr/>0,<wbr/> 3.<wbr/>0] are guaranteed not to be clipped.<wbr/> Even if a given
device allows gains below 1.<wbr/>0,<wbr/> this is usually not recommended because
this can create color artifacts.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The 4-channel white-balance gains are defined in
the order of <code>[R G_<wbr/>even G_<wbr/>odd B]</code>,<wbr/> where <code>G_<wbr/>even</code> is the gain
for green pixels on even rows of the output,<wbr/> and <code>G_<wbr/>odd</code>
is the gain for green pixels on the odd rows.<wbr/></p>
<p>If a HAL does not support a separate gain for even/<wbr/>odd green
channels,<wbr/> it must use the <code>G_<wbr/>even</code> value,<wbr/> and write
<code>G_<wbr/>odd</code> equal to <code>G_<wbr/>even</code> in the output result metadata.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.colorCorrection.aberrationMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No aberration correction is applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Aberration correction will not slow down capture rate
relative to sensor raw output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>Aberration correction operates at improved quality but the capture rate might be
reduced (relative to sensor raw output rate)</p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Mode of operation for the chromatic aberration correction algorithm.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Chromatic (color) aberration is caused by the fact that different wavelengths of light
can not focus on the same point after exiting from the lens.<wbr/> This metadata defines
the high level control of chromatic aberration correction algorithm,<wbr/> which aims to
minimize the chromatic artifacts that may occur along the object boundaries in an
image.<wbr/></p>
<p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean that camera device determined aberration
correction will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device will
use the highest-quality aberration correction algorithms,<wbr/> even if it slows down
capture rate.<wbr/> FAST means the camera device will not slow down capture rate when
applying aberration correction.<wbr/></p>
<p>LEGACY devices will always be in FAST mode.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.colorCorrection.availableAberrationModes">
<td class="entry_name
" rowspan="5">
android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.colorCorrection.aberrationMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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
aberration correction modes are available for a device,<wbr/> this list will solely include
OFF mode.<wbr/> All camera devices will support either OFF or FAST mode.<wbr/></p>
<p>Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always list
OFF mode.<wbr/> This includes all FULL level devices.<wbr/></p>
<p>LEGACY devices will always only support FAST mode.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must support both FAST and HIGH_<wbr/>QUALITY if chromatic aberration control is available
on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
That is,<wbr/> if the highest quality implementation on the camera device does not slow down
capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_control" class="section">control</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.control.aeAntibandingMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device will not adjust exposure duration to
avoid banding problems.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">50HZ (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
avoid banding problems with 50Hz illumination sources.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">60HZ (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
avoid banding problems with 60Hz illumination
sources.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device will automatically adapt its
antibanding routine to the current illumination
condition.<wbr/> This is the default mode if AUTO is
available on given camera device.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired setting for the camera device's auto-exposure
algorithm's antibanding compensation.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Some kinds of lighting fixtures,<wbr/> such as some fluorescent
lights,<wbr/> flicker at the rate of the power supply frequency
(60Hz or 50Hz,<wbr/> depending on country).<wbr/> While this is
typically not noticeable to a person,<wbr/> it can be visible to
a camera device.<wbr/> If a camera sets its exposure time to the
wrong value,<wbr/> the flicker may become visible in the
viewfinder as flicker or in a final captured image,<wbr/> as a
set of variable-brightness bands across the image.<wbr/></p>
<p>Therefore,<wbr/> the auto-exposure routines of camera devices
include antibanding routines that ensure that the chosen
exposure value will not cause such banding.<wbr/> The choice of
exposure time depends on the rate of flicker,<wbr/> which the
camera device can detect automatically,<wbr/> or the expected
rate can be selected by the application using this
control.<wbr/></p>
<p>A given camera device may not support all of the possible
options for the antibanding mode.<wbr/> The
<a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a> key contains
the available modes for a given camera device.<wbr/></p>
<p>AUTO mode is the default if it is available on given
camera device.<wbr/> When AUTO mode is not available,<wbr/> the
default will be either 50HZ or 60HZ,<wbr/> and both 50HZ
and 60HZ will be available.<wbr/></p>
<p>If manual exposure control is enabled (by setting
<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/>
then this setting has no effect,<wbr/> and the application must
ensure it selects exposure times that do not cause banding
issues.<wbr/> The <a href="#dynamic_android.statistics.sceneFlicker">android.<wbr/>statistics.<wbr/>scene<wbr/>Flicker</a> key can assist
the application in this.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For all capture request templates,<wbr/> this field must be set
to AUTO if AUTO mode is available.<wbr/> If AUTO is not available,<wbr/>
the default must be either 50HZ or 60HZ,<wbr/> and both 50HZ and
60HZ must be available.<wbr/></p>
<p>If manual exposure control is enabled (by setting
<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/>
then the exposure values provided by the application must not be
adjusted for antibanding.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.aeExposureCompensation">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Adjustment to auto-exposure (AE) target image
brightness.<wbr/></p>
</td>
<td class="entry_units">
Compensation steps
</td>
<td class="entry_range">
<p><a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The adjustment is measured as a count of steps,<wbr/> with the
step size defined by <a href="#static_android.control.aeCompensationStep">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step</a> and the
allowed range by <a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a>.<wbr/></p>
<p>For example,<wbr/> if the exposure value (EV) step is 0.<wbr/>333,<wbr/> '6'
will mean an exposure compensation of +2 EV; -3 will mean an
exposure compensation of -1 EV.<wbr/> One EV represents a doubling
of image brightness.<wbr/> Note that this control will only be
effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>!=</code> OFF.<wbr/> This control
will take effect even when <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> <code>== true</code>.<wbr/></p>
<p>In the event of exposure compensation value being changed,<wbr/> camera device
may take several frames to reach the newly requested exposure target.<wbr/>
During that time,<wbr/> <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> field will be in the SEARCHING
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
change from SEARCHING to either CONVERGED,<wbr/> LOCKED (if AE lock is enabled),<wbr/> or
FLASH_<wbr/>REQUIRED (if the scene is too dark for still capture).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.aeLock">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Lock
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Auto-exposure lock is disabled; the AE algorithm
is free to update its parameters.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>Auto-exposure lock is enabled; the AE algorithm
must not update the exposure and sensitivity parameters
while the lock is active.<wbr/></p>
<p><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a> setting changes
will still take effect while auto-exposure is locked.<wbr/></p>
<p>Some rare LEGACY devices may not support
this,<wbr/> in which case the value will always be overridden to OFF.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether auto-exposure (AE) is currently locked to its latest
calculated values.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to <code>true</code> (ON),<wbr/> the AE algorithm is locked to its latest parameters,<wbr/>
and will not change exposure settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
<p>Note that even when AE is locked,<wbr/> the flash may be fired if
the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is ON_<wbr/>AUTO_<wbr/>FLASH /<wbr/>
ON_<wbr/>ALWAYS_<wbr/>FLASH /<wbr/> ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE.<wbr/></p>
<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
is ON,<wbr/> the camera device will still adjust its exposure value.<wbr/></p>
<p>If AE precapture is triggered (see <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>)
when AE is already locked,<wbr/> the camera device will not change the exposure time
(<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>)
parameters.<wbr/> The flash may be fired if the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>
is ON_<wbr/>AUTO_<wbr/>FLASH/<wbr/>ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE and the scene is too dark.<wbr/> If the
<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/>
Similarly,<wbr/> AE precapture trigger CANCEL has no effect when AE is already locked.<wbr/></p>
<p>When an AE precapture sequence is triggered,<wbr/> AE unlock will not be able to unlock
the AE if AE is locked by the camera device internally during precapture metering
sequence In other words,<wbr/> submitting requests with AE unlock has no effect for an
ongoing precapture metering sequence.<wbr/> Otherwise,<wbr/> the precapture metering sequence
will never succeed in a sequence of preview requests where AE lock is always set
to <code>false</code>.<wbr/></p>
<p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
get locked do not necessarily correspond to the settings that were present in the
latest capture result received from the camera device,<wbr/> since additional captures
and AE updates may have occurred even before the result was sent out.<wbr/> If an
application is switching between automatic and manual control and wishes to eliminate
any flicker during the switch,<wbr/> the following procedure is recommended:</p>
<ol>
<li>Starting in auto-AE mode:</li>
<li>Lock AE</li>
<li>Wait for the first result to be output that has the AE locked</li>
<li>Copy exposure settings from that result into a request,<wbr/> set the request to manual AE</li>
<li>Submit the capture request,<wbr/> proceed to run manual AE as desired.<wbr/></li>
</ol>
<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>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.aeMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is disabled.<wbr/></p>
<p>The application-selected <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> and
<a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are used by the camera
device,<wbr/> along with android.<wbr/>flash.<wbr/>* fields,<wbr/> if there's
a flash unit for this camera device.<wbr/></p>
<p>Note that auto-white balance (AWB) and auto-focus (AF)
behavior is device dependent when AE is in OFF mode.<wbr/>
To have consistent behavior across different devices,<wbr/>
it is recommended to either set AWB and AF to OFF mode
or lock AWB and AF before setting AE to OFF.<wbr/>
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/>
<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>
for more details.<wbr/></p>
<p>LEGACY devices do not support the OFF mode and will
override attempts to use this value to ON.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is active,<wbr/>
with no flash control.<wbr/></p>
<p>The application's values for
<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/> and
<a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are ignored.<wbr/> The
application has control over the various
android.<wbr/>flash.<wbr/>* fields.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON_AUTO_FLASH (v3.2)</span>
<span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
the camera's flash unit,<wbr/> firing it in low-light
conditions.<wbr/></p>
<p>The flash may be fired during a precapture sequence
(triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
may be fired for captures for which the
<a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
STILL_<wbr/>CAPTURE</p></span>
</li>
<li>
<span class="entry_type_enum_name">ON_ALWAYS_FLASH (v3.2)</span>
<span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
the camera's flash unit,<wbr/> always firing it for still
captures.<wbr/></p>
<p>The flash may be fired during a precapture sequence
(triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
will always be fired for captures for which the
<a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
STILL_<wbr/>CAPTURE</p></span>
</li>
<li>
<span class="entry_type_enum_name">ON_AUTO_FLASH_REDEYE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Like ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> but with automatic red eye
reduction.<wbr/></p>
<p>If deemed necessary by the camera device,<wbr/> a red eye
reduction flash will fire during the precapture
sequence.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON_EXTERNAL_FLASH (v3.3)</span>
<span class="entry_type_enum_notes"><p>An external flash has been turned on.<wbr/></p>
<p>It informs the camera device that an external flash has been turned on,<wbr/> and that
metering (and continuous focus if active) should be quickly recalculated to account
for the external flash.<wbr/> Otherwise,<wbr/> this mode acts like ON.<wbr/></p>
<p>When the external flash is turned off,<wbr/> AE mode should be changed to one of the
other available AE modes.<wbr/></p>
<p>If the camera device supports AE external flash mode,<wbr/> <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> must
be FLASH_<wbr/>REQUIRED after the camera device finishes AE scan and it's too dark without
flash.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON_LOW_LIGHT_BOOST_BRIGHTNESS_PRIORITY (v3.9)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Like 'ON' but applies additional brightness boost in low light scenes.<wbr/></p>
<p>When the scene lighting conditions are within the range defined by
<a href="#static_android.control.lowLightBoostInfoLuminanceRange">android.<wbr/>control.<wbr/>low<wbr/>Light<wbr/>Boost<wbr/>Info<wbr/>Luminance<wbr/>Range</a> this mode will apply additional
brightness boost.<wbr/></p>
<p>This mode will automatically adjust the intensity of low light boost applied
according to the scene lighting conditions.<wbr/> A darker scene will receive more boost
while a brighter scene will receive less boost.<wbr/></p>
<p>This mode can ignore the set target frame rate to allow more light to be captured
which can result in choppier motion.<wbr/> The frame rate can extend to lower than the
<a href="#static_android.control.aeAvailableTargetFpsRanges">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Target<wbr/>Fps<wbr/>Ranges</a> but will not go below 10 FPS.<wbr/> This mode
can also increase the sensor sensitivity gain which can result in increased luma
and chroma noise.<wbr/> The sensor sensitivity gain can extend to higher values beyond
<a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a>.<wbr/> This mode may also apply additional
processing to recover details in dark and bright areas of the image,<wbr/>and noise
reduction at high sensitivity gain settings to manage the trade-off between light
sensitivity and capture noise.<wbr/></p>
<p>This mode is restricted to two output surfaces.<wbr/> One output surface type can either
be SurfaceView or TextureView.<wbr/> Another output surface type can either be MediaCodec
or MediaRecorder.<wbr/> This mode cannot be used with a target FPS range higher than 30
FPS.<wbr/></p>
<p>If the session configuration is not supported,<wbr/> the AE mode reported in the
CaptureResult will be 'ON' instead of 'ON_<wbr/>LOW_<wbr/>LIGHT_<wbr/>BOOST_<wbr/>BRIGHTNESS_<wbr/>PRIORITY'.<wbr/></p>
<p>The application can observe the CapturerResult field
<a href="#dynamic_android.control.lowLightBoostState">android.<wbr/>control.<wbr/>low<wbr/>Light<wbr/>Boost<wbr/>State</a> to determine when low light boost is 'ACTIVE' or
'INACTIVE'.<wbr/></p>
<p>The low light boost is 'ACTIVE' once the scene lighting condition is less than the
upper bound lux value defined by <a href="#static_android.control.lowLightBoostInfoLuminanceRange">android.<wbr/>control.<wbr/>low<wbr/>Light<wbr/>Boost<wbr/>Info<wbr/>Luminance<wbr/>Range</a>.<wbr/>
This mode will be 'INACTIVE' once the scene lighting condition is greater than the
upper bound lux value defined by <a href="#static_android.control.lowLightBoostInfoLuminanceRange">android.<wbr/>control.<wbr/>low<wbr/>Light<wbr/>Boost<wbr/>Info<wbr/>Luminance<wbr/>Range</a>.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired mode for the camera device's
auto-exposure routine.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.aeAvailableModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is
AUTO.<wbr/></p>
<p>When set to any of the ON modes,<wbr/> the camera device's
auto-exposure routine is enabled,<wbr/> overriding the
application's selected exposure time,<wbr/> sensor sensitivity,<wbr/>
and frame duration (<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/> and
<a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>).<wbr/> If one of the FLASH modes
is selected,<wbr/> the camera device's flash unit controls are
also overridden.<wbr/></p>
<p>The FLASH modes are only available if the camera device
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>
<p>If flash TORCH mode is desired,<wbr/> this field must be set to
ON or OFF,<wbr/> and <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> set to TORCH.<wbr/></p>
<p>When set to any of the ON modes,<wbr/> the values chosen by the
camera device auto-exposure routine for the overridden
fields for a given capture will be available in its
CaptureResult.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.aeRegions">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>ae<wbr/>Regions
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5 x area_count
</span>
<span class="entry_type_visibility"> [public as meteringRectangle]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of metering areas to use for auto-exposure adjustment.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size or
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size depending on
distortion correction capability and mode
</td>
<td class="entry_range">
<p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> or <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>
depending on distortion correction capability and mode</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Not available if <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a> is 0.<wbr/>
Otherwise will always be present.<wbr/></p>
<p>The maximum number of regions supported by the device is determined by the value
of <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a>.<wbr/></p>
<p>For devices not supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system always follows that of <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> with (0,<wbr/>0) being
the top-left pixel in the active pixel array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>For devices supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system depends on the mode being set.<wbr/>
When the distortion correction mode is OFF,<wbr/> the coordinate system follows
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> with
<code>(0,<wbr/> 0)</code> being the top-left pixel of the pre-correction active array,<wbr/> and
(<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right
pixel in the pre-correction active pixel array.<wbr/>
When the distortion correction mode is not OFF,<wbr/> the coordinate system follows
<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 top-left pixel of the active array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
for every pixel in the area.<wbr/> This means that a large metering area
with the same weight as a smaller area will have more effect in
the metering result.<wbr/> Metering areas can partially overlap and the
camera device will add the weights in the overlap region.<wbr/></p>
<p>The weights are relative to weights of other exposure metering regions,<wbr/> so if only one
region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0
weight is ignored.<wbr/></p>
<p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
camera device.<wbr/></p>
<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
capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
region and output only the intersection rectangle as the metering region in the result
metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
not reported in the result metadata.<wbr/></p>
<p>When setting the AE metering regions,<wbr/> the application must consider the additional
crop resulted from the aspect ratio differences between the preview stream and
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/> For example,<wbr/> if the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> is the full
active array size with 4:3 aspect ratio,<wbr/> and the preview stream is 16:9,<wbr/>
the boundary of AE regions will be [0,<wbr/> y_<wbr/>crop] and
[active_<wbr/>width,<wbr/> active_<wbr/>height - 2 * y_<wbr/>crop] rather than [0,<wbr/> 0] and
[active_<wbr/>width,<wbr/> active_<wbr/>height],<wbr/> where y_<wbr/>crop is the additional crop due to aspect ratio
mismatch.<wbr/></p>
<p>Starting from API level 30,<wbr/> the coordinate system of activeArraySize or
preCorrectionActiveArraySize is used to represent post-zoomRatio field of view,<wbr/> not
pre-zoom field of view.<wbr/> This means that the same aeRegions values at different
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> represent different parts of the scene.<wbr/> The aeRegions
coordinates are relative to the activeArray/<wbr/>preCorrectionActiveArray representing the
zoomed field of view.<wbr/> If <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> is set to 1.<wbr/>0 (default),<wbr/> the same
aeRegions at different <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> still represent the same parts of the
scene as they do before.<wbr/> See <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for details.<wbr/> Whether to use
activeArraySize or preCorrectionActiveArraySize still depends on distortion correction
mode.<wbr/></p>
<p>For camera devices with the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where
<a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a>
<a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> /<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> must be used as the
coordinate system for requests where <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL level representation of MeteringRectangle[] is a
int[5 * area_<wbr/>count].<wbr/>
Every five elements represent a metering region of
(xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
exclusive on xmax and ymax.<wbr/>
HAL must always report metering regions in the coordinate system of pre-correction
active array.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.aeTargetFpsRange">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as rangeInt]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Range over which the auto-exposure routine can
adjust the capture frame rate to maintain good
exposure.<wbr/></p>
</td>
<td class="entry_units">
Frames per second (FPS)
</td>
<td class="entry_range">
<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>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Only constrains auto-exposure (AE) algorithm,<wbr/> not
manual control of <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a> and
<a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>.<wbr/></p>
<p>Note that the actual achievable max framerate also depends on the minimum frame
duration of the output streams.<wbr/> The max frame rate will be
<code>min(aeTargetFpsRange.<wbr/>maxFps,<wbr/> 1 /<wbr/> max(individual stream min durations)</code>.<wbr/> For example,<wbr/>
if the application sets this key to <code>{60,<wbr/> 60}</code>,<wbr/> but the maximum minFrameDuration among
all configured streams is 33ms,<wbr/> the maximum framerate won't be 60fps,<wbr/> but will be
30fps.<wbr/></p>
<p>To start a CaptureSession with a target FPS range different from the
capture request template's default value,<wbr/> the application
is strongly recommended to call
<a href="https://developer.android.com/reference/android/hardware/camera2/params/SessionConfiguration.html#setSessionParameters">SessionConfiguration#setSessionParameters</a>
with the target fps range before creating the capture session.<wbr/> The aeTargetFpsRange is
typically a session parameter.<wbr/> Specifying it at session creation time helps avoid
session reconfiguration delays in cases like 60fps or high speed recording.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.aePrecaptureTrigger">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">IDLE (v3.2)</span>
<span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">START (v3.2)</span>
<span class="entry_type_enum_notes"><p>The precapture metering sequence will be started
by the camera device.<wbr/></p>
<p>The exact effect of the precapture trigger depends on
the current AE mode and state.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CANCEL (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device will cancel any currently active or completed
precapture metering sequence,<wbr/> the auto-exposure routine will return to its
initial state.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether the camera device will trigger a precapture
metering sequence when it processes this request.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry is normally set to IDLE,<wbr/> or is not
included at all in the request settings.<wbr/> When included and
set to START,<wbr/> the camera device will trigger the auto-exposure (AE)
precapture metering sequence.<wbr/></p>
<p>When set to CANCEL,<wbr/> the camera device will cancel any active
precapture metering trigger,<wbr/> and return to its initial AE state.<wbr/>
If a precapture metering sequence is already completed,<wbr/> and the camera
device has implicitly locked the AE for subsequent still capture,<wbr/> the
CANCEL trigger will unlock the AE and return to its initial AE state.<wbr/></p>
<p>The precapture sequence should be triggered before starting a
high-quality still capture for final metering decisions to
be made,<wbr/> and for firing pre-capture flash pulses to estimate
scene brightness and required final capture flash power,<wbr/> when
the flash is enabled.<wbr/></p>
<p>Normally,<wbr/> this entry should be set to START for only a
single request,<wbr/> and the application should wait until the
sequence completes before starting a new one.<wbr/></p>
<p>When a precapture metering sequence is finished,<wbr/> the camera device
may lock the auto-exposure routine internally to be able to accurately expose the
subsequent still capture image (<code><a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE</code>).<wbr/>
For this case,<wbr/> the AE may not resume normal scan if no subsequent still capture is
submitted.<wbr/> To ensure that the AE routine restarts normal scan,<wbr/> the application should
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
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
still capture request after the precapture sequence completes.<wbr/> Alternatively,<wbr/> for
API level 23 or newer devices,<wbr/> the CANCEL can be used to unlock the camera device
internally locked AE if the application doesn't submit a still capture request after
the AE precapture trigger.<wbr/> Note that,<wbr/> the CANCEL was added in API level 23,<wbr/> and must not
be used in devices that have earlier API levels.<wbr/></p>
<p>The exact effect of auto-exposure (AE) precapture trigger
depends on the current AE mode and state; see
<a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> for AE precapture state transition
details.<wbr/></p>
<p>On LEGACY-level devices,<wbr/> the precapture trigger is not supported;
capturing a high-resolution JPEG image will automatically trigger a
precapture sequence before the high-resolution capture,<wbr/> including
potentially firing a pre-capture flash.<wbr/></p>
<p>Using the precapture trigger and the auto-focus trigger <a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>
simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
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
example.<wbr/></p>
<p>If both the precapture and the auto-focus trigger are activated on the same request,<wbr/> then
the camera device will complete them in the optimal order for that device.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL must support triggering the AE precapture trigger while an AF trigger is active
(and vice versa),<wbr/> or at the same time as the AF trigger.<wbr/> It is acceptable for the HAL to
treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.afMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>af<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>The auto-focus routine does not control the lens;
<a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> is controlled by the
application.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.2)</span>
<span class="entry_type_enum_notes"><p>Basic automatic focus mode.<wbr/></p>
<p>In this mode,<wbr/> the lens does not move unless
the autofocus trigger action is called.<wbr/> When that trigger
is activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/></p>
<p>Always supported if lens is not fixed focus.<wbr/></p>
<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
is fixed-focus.<wbr/></p>
<p>Triggering AF_<wbr/>CANCEL resets the lens position to default,<wbr/>
and sets the AF state to INACTIVE.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MACRO (v3.2)</span>
<span class="entry_type_enum_notes"><p>Close-up focusing mode.<wbr/></p>
<p>In this mode,<wbr/> the lens does not move unless the
autofocus trigger action is called.<wbr/> When that trigger is
activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/> This
mode is optimized for focusing on objects very close to
the camera.<wbr/></p>
<p>When that trigger is activated,<wbr/> AF will transition to
ACTIVE_<wbr/>SCAN,<wbr/> then to the outcome of the scan (FOCUSED or
NOT_<wbr/>FOCUSED).<wbr/> Triggering cancel AF resets the lens
position to default,<wbr/> and sets the AF state to
INACTIVE.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CONTINUOUS_VIDEO (v3.2)</span>
<span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
position continually to attempt to provide a
constantly-in-focus image stream.<wbr/></p>
<p>The focusing behavior should be suitable for good quality
video recording; typically this means slower focus
movement and no overshoots.<wbr/> When the AF trigger is not
involved,<wbr/> the AF algorithm should start in INACTIVE state,<wbr/>
and then transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED
states as appropriate.<wbr/> When the AF trigger is activated,<wbr/>
the algorithm should immediately transition into
AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
lens position until a cancel AF trigger is received.<wbr/></p>
<p>Once cancel is received,<wbr/> the algorithm should transition
back to INACTIVE and resume passive scan.<wbr/> Note that this
behavior is not identical to CONTINUOUS_<wbr/>PICTURE,<wbr/> since an
ongoing PASSIVE_<wbr/>SCAN must immediately be
canceled.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CONTINUOUS_PICTURE (v3.2)</span>
<span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
position continually to attempt to provide a
constantly-in-focus image stream.<wbr/></p>
<p>The focusing behavior should be suitable for still image
capture; typically this means focusing as fast as
possible.<wbr/> When the AF trigger is not involved,<wbr/> the AF
algorithm should start in INACTIVE state,<wbr/> and then
transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED states as
appropriate as it attempts to maintain focus.<wbr/> When the AF
trigger is activated,<wbr/> the algorithm should finish its
PASSIVE_<wbr/>SCAN if active,<wbr/> and then transition into
AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
lens position until a cancel AF trigger is received.<wbr/></p>
<p>When the AF cancel trigger is activated,<wbr/> the algorithm
should transition back to INACTIVE and then act as if it
has just been started.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EDOF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Extended depth of field (digital focus) mode.<wbr/></p>
<p>The camera device will produce images with an extended
depth of field automatically; no special focusing
operations need to be done before taking a picture.<wbr/></p>
<p>AF triggers are ignored,<wbr/> and the AF state will always be
INACTIVE.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether auto-focus (AF) is currently enabled,<wbr/> and what
mode it is set to.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.afAvailableModes">android.<wbr/>control.<wbr/>af<wbr/>Available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> = AUTO and the lens is not fixed focus
(i.<wbr/>e.<wbr/> <code><a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> &gt; 0</code>).<wbr/> Also note that
when <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/> the behavior of AF is device
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
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>
<p>If the lens is controlled by the camera device auto-focus algorithm,<wbr/>
the camera device will report the current AF status in <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>
in result metadata.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When afMode is AUTO or MACRO,<wbr/> the lens must not move until an AF trigger is sent in a
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
up with either FOCUSED_<wbr/>LOCKED or NOT_<wbr/>FOCUSED_<wbr/>LOCKED state (see
<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
locked and will not move.<wbr/> If camera movement (e.<wbr/>g.<wbr/> tilting camera) causes the lens to move
after the lens is locked,<wbr/> the HAL must compensate this movement appropriately such that
the same focal plane remains in focus.<wbr/></p>
<p>When afMode is one of the continuous auto focus modes,<wbr/> the HAL is free to start a AF
scan whenever it's not locked.<wbr/> When the lens is locked after an AF trigger
(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
same lock behavior as above.<wbr/></p>
<p>When afMode is OFF,<wbr/> the application controls focus manually.<wbr/> The accuracy of the
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/>
However,<wbr/> the lens must not move regardless of the camera movement for any focus distance
manual control.<wbr/></p>
<p>To put this in concrete terms,<wbr/> if the camera has lens elements which may move based on
camera orientation or motion (e.<wbr/>g.<wbr/> due to gravity),<wbr/> then the HAL must drive the lens to
remain in a fixed position invariant to the camera's orientation or motion,<wbr/> for example,<wbr/>
by using accelerometer measurements in the lens control logic.<wbr/> This is a typical issue
that will arise on camera modules with open-loop VCMs.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.afRegions">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>af<wbr/>Regions
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5 x area_count
</span>
<span class="entry_type_visibility"> [public as meteringRectangle]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of metering areas to use for auto-focus.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size or
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size depending on
distortion correction capability and mode
</td>
<td class="entry_range">
<p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> or <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>
depending on distortion correction capability and mode</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Not available if <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a> is 0.<wbr/>
Otherwise will always be present.<wbr/></p>
<p>The maximum number of focus areas supported by the device is determined by the value
of <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a>.<wbr/></p>
<p>For devices not supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system always follows that of <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> with (0,<wbr/>0) being
the top-left pixel in the active pixel array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>For devices supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system depends on the mode being set.<wbr/>
When the distortion correction mode is OFF,<wbr/> the coordinate system follows
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> with
<code>(0,<wbr/> 0)</code> being the top-left pixel of the pre-correction active array,<wbr/> and
(<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right
pixel in the pre-correction active pixel array.<wbr/>
When the distortion correction mode is not OFF,<wbr/> the coordinate system follows
<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 top-left pixel of the active array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
for every pixel in the area.<wbr/> This means that a large metering area
with the same weight as a smaller area will have more effect in
the metering result.<wbr/> Metering areas can partially overlap and the
camera device will add the weights in the overlap region.<wbr/></p>
<p>The weights are relative to weights of other metering regions,<wbr/> so if only one region
is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0 weight is
ignored.<wbr/></p>
<p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
camera device.<wbr/> The capture result will either be a zero weight region as well,<wbr/> or
the region selected by the camera device as the focus area of interest.<wbr/></p>
<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
capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
region and output only the intersection rectangle as the metering region in the result
metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
not reported in the result metadata.<wbr/></p>
<p>When setting the AF metering regions,<wbr/> the application must consider the additional
crop resulted from the aspect ratio differences between the preview stream and
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/> For example,<wbr/> if the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> is the full
active array size with 4:3 aspect ratio,<wbr/> and the preview stream is 16:9,<wbr/>
the boundary of AF regions will be [0,<wbr/> y_<wbr/>crop] and
[active_<wbr/>width,<wbr/> active_<wbr/>height - 2 * y_<wbr/>crop] rather than [0,<wbr/> 0] and
[active_<wbr/>width,<wbr/> active_<wbr/>height],<wbr/> where y_<wbr/>crop is the additional crop due to aspect ratio
mismatch.<wbr/></p>
<p>Starting from API level 30,<wbr/> the coordinate system of activeArraySize or
preCorrectionActiveArraySize is used to represent post-zoomRatio field of view,<wbr/> not
pre-zoom field of view.<wbr/> This means that the same afRegions values at different
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> represent different parts of the scene.<wbr/> The afRegions
coordinates are relative to the activeArray/<wbr/>preCorrectionActiveArray representing the
zoomed field of view.<wbr/> If <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> is set to 1.<wbr/>0 (default),<wbr/> the same
afRegions at different <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> still represent the same parts of the
scene as they do before.<wbr/> See <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for details.<wbr/> Whether to use
activeArraySize or preCorrectionActiveArraySize still depends on distortion correction
mode.<wbr/></p>
<p>For camera devices with the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where
<a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a>,<wbr/>
<a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> /<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> must be used as the
coordinate system for requests where <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL level representation of MeteringRectangle[] is a
int[5 * area_<wbr/>count].<wbr/>
Every five elements represent a metering region of
(xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
exclusive on xmax and ymax.<wbr/>
HAL must always report metering regions in the coordinate system of pre-correction
active array.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.afTrigger">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>af<wbr/>Trigger
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">IDLE (v3.2)</span>
<span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">START (v3.2)</span>
<span class="entry_type_enum_notes"><p>Autofocus will trigger now.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CANCEL (v3.2)</span>
<span class="entry_type_enum_notes"><p>Autofocus will return to its initial
state,<wbr/> and cancel any currently active trigger.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether the camera device will trigger autofocus for this request.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry is normally set to IDLE,<wbr/> or is not
included at all in the request settings.<wbr/></p>
<p>When included and set to START,<wbr/> the camera device will trigger the
autofocus algorithm.<wbr/> If autofocus is disabled,<wbr/> this trigger has no effect.<wbr/></p>
<p>When set to CANCEL,<wbr/> the camera device will cancel any active trigger,<wbr/>
and return to its initial AF state.<wbr/></p>
<p>Generally,<wbr/> applications should set this entry to START or CANCEL for only a
single capture,<wbr/> and then return it to IDLE (or not set at all).<wbr/> Specifying
START for multiple captures in a row means restarting the AF operation over
and over again.<wbr/></p>
<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>
<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>
simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
changes to <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>,<wbr/> for example.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL must support triggering the AF trigger while an AE precapture trigger is active
(and vice versa),<wbr/> or at the same time as the AE trigger.<wbr/> It is acceptable for the HAL to
treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.awbLock">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>awb<wbr/>Lock
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Auto-white balance lock is disabled; the AWB
algorithm is free to update its parameters if in AUTO
mode.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>Auto-white balance lock is enabled; the AWB
algorithm will not update its parameters while the lock
is active.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether auto-white balance (AWB) is currently locked to its
latest calculated values.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to <code>true</code> (ON),<wbr/> the AWB algorithm is locked to its latest parameters,<wbr/>
and will not change color balance settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
<p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
get locked do not necessarily correspond to the settings that were present in the
latest capture result received from the camera device,<wbr/> since additional captures
and AWB updates may have occurred even before the result was sent out.<wbr/> If an
application is switching between automatic and manual control and wishes to eliminate
any flicker during the switch,<wbr/> the following procedure is recommended:</p>
<ol>
<li>Starting in auto-AWB mode:</li>
<li>Lock AWB</li>
<li>Wait for the first result to be output that has the AWB locked</li>
<li>Copy AWB settings from that result into a request,<wbr/> set the request to manual AWB</li>
<li>Submit the capture request,<wbr/> proceed to run manual AWB as desired.<wbr/></li>
</ol>
<p>Note that AWB lock is only meaningful when
<a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> is in the AUTO mode; in other modes,<wbr/>
AWB is already fixed to a specific setting.<wbr/></p>
<p>Some LEGACY devices may not support ON; the value is then overridden to OFF.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.awbMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>awb<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled.<wbr/></p>
<p>The application-selected color transform matrix
(<a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>) and gains
(<a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a>) are used by the camera
device for manual white balance control.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is active.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INCANDESCENT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses incandescent light as the assumed scene
illumination for white balance.<wbr/></p>
<p>While the exact white balance transforms are up to the
camera device,<wbr/> they will approximately match the CIE
standard illuminant A.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FLUORESCENT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses fluorescent light as the assumed scene
illumination for white balance.<wbr/></p>
<p>While the exact white balance transforms are up to the
camera device,<wbr/> they will approximately match the CIE
standard illuminant F2.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">WARM_FLUORESCENT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses warm fluorescent light as the assumed scene
illumination for white balance.<wbr/></p>
<p>While the exact white balance transforms are up to the
camera device,<wbr/> they will approximately match the CIE
standard illuminant F4.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DAYLIGHT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses daylight light as the assumed scene
illumination for white balance.<wbr/></p>
<p>While the exact white balance transforms are up to the
camera device,<wbr/> they will approximately match the CIE
standard illuminant D65.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CLOUDY_DAYLIGHT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses cloudy daylight light as the assumed scene
illumination for white balance.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">TWILIGHT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses twilight light as the assumed scene
illumination for white balance.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SHADE (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses shade light as the assumed scene
illumination for white balance.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether auto-white balance (AWB) is currently setting the color
transform fields,<wbr/> and what its illumination target
is.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.awbAvailableModes">android.<wbr/>control.<wbr/>awb<wbr/>Available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is AUTO.<wbr/></p>
<p>When set to the AUTO mode,<wbr/> the camera device's auto-white balance
routine is enabled,<wbr/> overriding the application's selected
<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
<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>
is OFF,<wbr/> the behavior of AWB is device dependent.<wbr/> It is recommended to
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
setting AE mode to OFF.<wbr/></p>
<p>When set to the OFF mode,<wbr/> the camera device's auto-white balance
routine is disabled.<wbr/> The application manually controls the white
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>
and <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a>.<wbr/></p>
<p>When set to any other modes,<wbr/> the camera device's auto-white
balance routine is disabled.<wbr/> The camera device uses each
particular illumination target for white balance
adjustment.<wbr/> The application's values for
<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
<a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> are ignored.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.awbRegions">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>awb<wbr/>Regions
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5 x area_count
</span>
<span class="entry_type_visibility"> [public as meteringRectangle]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of metering areas to use for auto-white-balance illuminant
estimation.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size or
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size depending on
distortion correction capability and mode
</td>
<td class="entry_range">
<p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> or <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>
depending on distortion correction capability and mode</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Not available if <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a> is 0.<wbr/>
Otherwise will always be present.<wbr/></p>
<p>The maximum number of regions supported by the device is determined by the value
of <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a>.<wbr/></p>
<p>For devices not supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system always follows that of <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> with (0,<wbr/>0) being
the top-left pixel in the active pixel array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>For devices supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system depends on the mode being set.<wbr/>
When the distortion correction mode is OFF,<wbr/> the coordinate system follows
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> with
<code>(0,<wbr/> 0)</code> being the top-left pixel of the pre-correction active array,<wbr/> and
(<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right
pixel in the pre-correction active pixel array.<wbr/>
When the distortion correction mode is not OFF,<wbr/> the coordinate system follows
<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 top-left pixel of the active array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>The weight must range from 0 to 1000,<wbr/> and represents a weight
for every pixel in the area.<wbr/> This means that a large metering area
with the same weight as a smaller area will have more effect in
the metering result.<wbr/> Metering areas can partially overlap and the
camera device will add the weights in the overlap region.<wbr/></p>
<p>The weights are relative to weights of other white balance metering regions,<wbr/> so if
only one region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with
0 weight is ignored.<wbr/></p>
<p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
camera device.<wbr/></p>
<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
capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
region and output only the intersection rectangle as the metering region in the result
metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
not reported in the result metadata.<wbr/></p>
<p>When setting the AWB metering regions,<wbr/> the application must consider the additional
crop resulted from the aspect ratio differences between the preview stream and
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/> For example,<wbr/> if the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> is the full
active array size with 4:3 aspect ratio,<wbr/> and the preview stream is 16:9,<wbr/>
the boundary of AWB regions will be [0,<wbr/> y_<wbr/>crop] and
[active_<wbr/>width,<wbr/> active_<wbr/>height - 2 * y_<wbr/>crop] rather than [0,<wbr/> 0] and
[active_<wbr/>width,<wbr/> active_<wbr/>height],<wbr/> where y_<wbr/>crop is the additional crop due to aspect ratio
mismatch.<wbr/></p>
<p>Starting from API level 30,<wbr/> the coordinate system of activeArraySize or
preCorrectionActiveArraySize is used to represent post-zoomRatio field of view,<wbr/> not
pre-zoom field of view.<wbr/> This means that the same awbRegions values at different
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> represent different parts of the scene.<wbr/> The awbRegions
coordinates are relative to the activeArray/<wbr/>preCorrectionActiveArray representing the
zoomed field of view.<wbr/> If <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> is set to 1.<wbr/>0 (default),<wbr/> the same
awbRegions at different <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> still represent the same parts of
the scene as they do before.<wbr/> See <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for details.<wbr/> Whether to use
activeArraySize or preCorrectionActiveArraySize still depends on distortion correction
mode.<wbr/></p>
<p>For camera devices with the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where
<a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a>,<wbr/>
<a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> /<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> must be used as the
coordinate system for requests where <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL level representation of MeteringRectangle[] is a
int[5 * area_<wbr/>count].<wbr/>
Every five elements represent a metering region of
(xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
exclusive on xmax and ymax.<wbr/>
HAL must always report metering regions in the coordinate system of pre-correction
active array.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.captureIntent">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>capture<wbr/>Intent
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">CUSTOM (v3.2)</span>
<span class="entry_type_enum_notes"><p>The goal of this request doesn't fall into the other
categories.<wbr/> The camera device will default to preview-like
behavior.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PREVIEW (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for a preview-like use case.<wbr/></p>
<p>The precapture trigger may be used to start off a metering
w/<wbr/>flash sequence.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">STILL_CAPTURE (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for a still capture-type
use case.<wbr/></p>
<p>If the flash unit is under automatic control,<wbr/> it may fire as needed.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VIDEO_RECORD (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for a video recording
use case.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VIDEO_SNAPSHOT (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for a video snapshot (still
image while recording video) use case.<wbr/></p>
<p>The camera device should take the highest-quality image
possible (given the other settings) without disrupting the
frame rate of video recording.<wbr/> </p></span>
</li>
<li>
<span class="entry_type_enum_name">ZERO_SHUTTER_LAG (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for a ZSL usecase; the
application will stream full-resolution images and
reprocess one or several later for a final
capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MANUAL (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for manual capture use case where
the applications want to directly control the capture parameters.<wbr/></p>
<p>For example,<wbr/> the application may wish to manually control
<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>
</li>
<li>
<span class="entry_type_enum_name">MOTION_TRACKING (v3.3)</span>
<span class="entry_type_enum_notes"><p>This request is for a motion tracking use case,<wbr/> where
the application will use camera and inertial sensor data to
locate and track objects in the world.<wbr/></p>
<p>The camera device auto-exposure routine will limit the exposure time
of the camera to no more than 20 milliseconds,<wbr/> to minimize motion blur.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Information to the camera device 3A (auto-exposure,<wbr/>
auto-focus,<wbr/> auto-white balance) routines about the purpose
of this capture,<wbr/> to help the camera device to decide optimal 3A
strategy.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control (except for MANUAL) is only effective if
<code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> != OFF</code> and any 3A routine is active.<wbr/></p>
<p>All intents are supported by all devices,<wbr/> except that:</p>
<ul>
<li>ZERO_<wbr/>SHUTTER_<wbr/>LAG will be supported if <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
PRIVATE_<wbr/>REPROCESSING or YUV_<wbr/>REPROCESSING.<wbr/></li>
<li>MANUAL will be supported if <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
MANUAL_<wbr/>SENSOR.<wbr/></li>
<li>MOTION_<wbr/>TRACKING will be supported if <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
MOTION_<wbr/>TRACKING.<wbr/></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.effectMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>effect<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No color effect will be applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MONO (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "monocolor" effect where the image is mapped into
a single color.<wbr/></p>
<p>This will typically be grayscale.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">NEGATIVE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "photo-negative" effect where the image's colors
are inverted.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SOLARIZE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "solarisation" effect (Sabattier effect) where the
image is wholly or partially reversed in
tone.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SEPIA (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "sepia" effect where the image is mapped into warm
gray,<wbr/> red,<wbr/> and brown tones.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">POSTERIZE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "posterization" effect where the image uses
discrete regions of tone rather than a continuous
gradient of tones.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">WHITEBOARD (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "whiteboard" effect where the image is typically displayed
as regions of white,<wbr/> with black or grey details.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BLACKBOARD (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "blackboard" effect where the image is typically displayed
as regions of black,<wbr/> with white or grey details.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AQUA (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>An "aqua" effect where a blue hue is added to the image.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A special color effect to apply.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.availableEffects">android.<wbr/>control.<wbr/>available<wbr/>Effects</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When this mode is set,<wbr/> a color effect will be applied
to images produced by the camera device.<wbr/> The interpretation
and implementation of these color effects is left to the
implementor of the camera device,<wbr/> and should not be
depended on to be consistent (or present) across all
devices.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Full application control of pipeline.<wbr/></p>
<p>All control by the device's metering and focusing (3A)
routines is disabled,<wbr/> and no other settings in
android.<wbr/>control.<wbr/>* have any effect,<wbr/> except that
<a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> may be used by the camera
device to select post-processing values for processing
blocks that do not allow for manual control,<wbr/> or are not
exposed by the camera API.<wbr/></p>
<p>However,<wbr/> the camera device's 3A routines may continue to
collect statistics and update their internal state so that
when control is switched to AUTO mode,<wbr/> good control values
can be immediately applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.2)</span>
<span class="entry_type_enum_notes"><p>Use settings for each individual 3A routine.<wbr/></p>
<p>Manual control of capture parameters is disabled.<wbr/> All
controls in android.<wbr/>control.<wbr/>* besides sceneMode take
effect.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">USE_SCENE_MODE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Use a specific scene mode.<wbr/></p>
<p>Enabling this disables control.<wbr/>aeMode,<wbr/> control.<wbr/>awbMode and
control.<wbr/>afMode controls; the camera device will ignore
those settings while USE_<wbr/>SCENE_<wbr/>MODE is active (except for
FACE_<wbr/>PRIORITY scene mode).<wbr/> Other control entries are still active.<wbr/>
This setting can only be used if scene mode is supported (i.<wbr/>e.<wbr/>
<a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a>
contain some modes other than DISABLED).<wbr/></p>
<p>For extended scene modes such as BOKEH,<wbr/> please use USE_<wbr/>EXTENDED_<wbr/>SCENE_<wbr/>MODE instead.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">OFF_KEEP_STATE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Same as OFF mode,<wbr/> except that this capture will not be
used by camera device background auto-exposure,<wbr/> auto-white balance and
auto-focus algorithms (3A) to update their statistics.<wbr/></p>
<p>Specifically,<wbr/> the 3A routines are locked to the last
values set from a request with AUTO,<wbr/> OFF,<wbr/> or
USE_<wbr/>SCENE_<wbr/>MODE,<wbr/> and any statistics or state updates
collected from manual captures with OFF_<wbr/>KEEP_<wbr/>STATE will be
discarded by the camera device.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">USE_EXTENDED_SCENE_MODE (v3.5)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Use a specific extended scene mode.<wbr/></p>
<p>When extended scene mode is on,<wbr/> the camera device may override certain control
parameters,<wbr/> such as targetFpsRange,<wbr/> AE,<wbr/> AWB,<wbr/> and AF modes,<wbr/> to achieve best power and
quality tradeoffs.<wbr/> Only the mandatory stream combinations of LIMITED hardware level
are guaranteed.<wbr/></p>
<p>This setting can only be used if extended scene mode is supported (i.<wbr/>e.<wbr/>
android.<wbr/>control.<wbr/>available<wbr/>Extended<wbr/>Scene<wbr/>Modes
contains some modes other than DISABLED).<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Overall mode of 3A (auto-exposure,<wbr/> auto-white-balance,<wbr/> auto-focus) control
routines.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.availableModes">android.<wbr/>control.<wbr/>available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is a top-level 3A control switch.<wbr/> When set to OFF,<wbr/> all 3A control
by the camera device is disabled.<wbr/> The application must set the fields for
capture parameters itself.<wbr/></p>
<p>When set to AUTO,<wbr/> the individual algorithm controls in
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>
<p>When set to USE_<wbr/>SCENE_<wbr/>MODE or USE_<wbr/>EXTENDED_<wbr/>SCENE_<wbr/>MODE,<wbr/> the individual controls in
android.<wbr/>control.<wbr/>* are mostly disabled,<wbr/> and the camera device
implements one of the scene mode or extended scene mode settings (such as ACTION,<wbr/>
SUNSET,<wbr/> PARTY,<wbr/> or BOKEH) as it wishes.<wbr/> The camera device scene mode
3A settings are provided by <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">capture results</a>.<wbr/></p>
<p>When set to OFF_<wbr/>KEEP_<wbr/>STATE,<wbr/> it is similar to OFF mode,<wbr/> the only difference
is that this frame will not be used by camera device background 3A statistics
update,<wbr/> as if this frame is never captured.<wbr/> This mode can be used in the scenario
where the application doesn't want a 3A manual control capture to affect
the subsequent auto 3A capture results.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.sceneMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>scene<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">DISABLED (v3.2)</span>
<span class="entry_type_enum_value">0</span>
<span class="entry_type_enum_notes"><p>Indicates that no scene modes are set for a given capture request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FACE_PRIORITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>If face detection support exists,<wbr/> use face
detection data for auto-focus,<wbr/> auto-white balance,<wbr/> and
auto-exposure routines.<wbr/></p>
<p>If face detection statistics are disabled
(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/>
this should still operate correctly (but will not return
face detection statistics to the framework).<wbr/></p>
<p>Unlike the other scene modes,<wbr/> <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>
remain active when FACE_<wbr/>PRIORITY is set.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ACTION (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving objects.<wbr/></p>
<p>Similar to SPORTS.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PORTRAIT (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for still photos of people.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">LANDSCAPE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for photos of distant macroscopic objects.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">NIGHT (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for low-light settings.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">NIGHT_PORTRAIT (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for still photos of people in low-light
settings.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">THEATRE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings where flash must
remain off.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BEACH (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor beach settings.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SNOW (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor settings containing snow.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SUNSET (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for scenes of the setting sun.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">STEADYPHOTO (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized to avoid blurry photos due to small amounts of
device motion (for example: due to hand shake).<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FIREWORKS (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for nighttime photos of fireworks.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SPORTS (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving people.<wbr/></p>
<p>Similar to ACTION.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PARTY (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings with multiple moving
people.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CANDLELIGHT (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for dim settings where the main light source
is a candle.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BARCODE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for accurately capturing a photo of barcode
for use by camera applications that wish to read the
barcode value.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_SPEED_VIDEO (v3.2)</span>
<span class="entry_type_enum_deprecated">[deprecated]</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[java_public]</span>
<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>
and <a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>
for high speed video recording.<wbr/></p>
<p>Optimized for high speed video recording (frame rate &gt;=60fps) use case.<wbr/></p>
<p>The supported high speed video sizes and fps ranges are specified in
<a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/> To get desired
output frame rates,<wbr/> the application is only allowed to select video size
and fps range combinations listed in this static metadata.<wbr/> The fps range
can be control via <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a>.<wbr/></p>
<p>In this mode,<wbr/> the camera device will override aeMode,<wbr/> awbMode,<wbr/> and afMode to
ON,<wbr/> ON,<wbr/> and CONTINUOUS_<wbr/>VIDEO,<wbr/> respectively.<wbr/> All post-processing block mode
controls will be overridden to be FAST.<wbr/> Therefore,<wbr/> no manual control of capture
and post-processing parameters is possible.<wbr/> All other controls operate the
same as when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == AUTO.<wbr/> This means that all other
android.<wbr/>control.<wbr/>* fields continue to work,<wbr/> such as</p>
<ul>
<li><a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a></li>
<li><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a></li>
<li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
<li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
<li><a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></li>
<li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
<li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
<li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
<li><a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a></li>
<li><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a></li>
<li><a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a></li>
</ul>
<p>Outside of android.<wbr/>control.<wbr/>*,<wbr/> the following controls will work:</p>
<ul>
<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>
<li><a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> (if it is supported)</li>
<li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
<li><a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a></li>
</ul>
<p>For high speed recording use case,<wbr/> the actual maximum supported frame rate may
be lower than what camera can output,<wbr/> depending on the destination Surfaces for
the image data.<wbr/> For example,<wbr/> if the destination surface is from video encoder,<wbr/>
the application need check if the video encoder is capable of supporting the
high frame rate for a given video size,<wbr/> or it will end up with lower recording
frame rate.<wbr/> If the destination surface is from preview window,<wbr/> the preview frame
rate will be bounded by the screen refresh rate.<wbr/></p>
<p>The camera device will only support up to 2 output high speed streams
(processed non-stalling format defined in <a href="#static_android.request.maxNumOutputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Streams</a>)
in this mode.<wbr/> This control will be effective only if all of below conditions are true:</p>
<ul>
<li>The application created no more than maxNumHighSpeedStreams processed non-stalling
format output streams,<wbr/> where maxNumHighSpeedStreams is calculated as
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>
<li>The stream sizes are selected from the sizes reported by
<a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/></li>
<li>No processed non-stalling or raw streams are configured.<wbr/></li>
</ul>
<p>When above conditions are NOT satisfied,<wbr/> the controls of this mode and
<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/>
the camera device will fall back to <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> <code>==</code> AUTO,<wbr/>
and the returned capture result metadata will give the fps range chosen
by the camera device.<wbr/></p>
<p>Switching into or out of this mode may trigger some camera ISP/<wbr/>sensor
reconfigurations,<wbr/> which may introduce extra latency.<wbr/> It is recommended that
the application avoids unnecessary scene mode switch as much as possible.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HDR (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Turn on a device-specific high dynamic range (HDR) mode.<wbr/></p>
<p>In this scene mode,<wbr/> the camera device captures images
that keep a larger range of scene illumination levels
visible in the final image.<wbr/> For example,<wbr/> when taking a
picture of a object in front of a bright window,<wbr/> both
the object and the scene through the window may be
visible when using HDR mode,<wbr/> while in normal AUTO mode,<wbr/>
one or the other may be poorly exposed.<wbr/> As a tradeoff,<wbr/>
HDR mode generally takes much longer to capture a single
image,<wbr/> has no user control,<wbr/> and may have other artifacts
depending on the HDR method used.<wbr/></p>
<p>Therefore,<wbr/> HDR captures operate at a much slower rate
than regular captures.<wbr/></p>
<p>In this mode,<wbr/> on LIMITED or FULL devices,<wbr/> when a request
is made with a <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> of
STILL_<wbr/>CAPTURE,<wbr/> the camera device will capture an image
using a high dynamic range capture technique.<wbr/> On LEGACY
devices,<wbr/> captures that target a JPEG-format output will
be captured with HDR,<wbr/> and the capture intent is not
relevant.<wbr/></p>
<p>The HDR capture may involve the device capturing a burst
of images internally and combining them into one,<wbr/> or it
may involve the device using specialized high dynamic
range capture hardware.<wbr/> In all cases,<wbr/> a single image is
produced in response to a capture request submitted
while in HDR mode.<wbr/></p>
<p>Since substantial post-processing is generally needed to
produce an HDR image,<wbr/> only YUV,<wbr/> PRIVATE,<wbr/> and JPEG
outputs are supported for LIMITED/<wbr/>FULL device HDR
captures,<wbr/> and only JPEG outputs are supported for LEGACY
HDR captures.<wbr/> Using a RAW output for HDR capture is not
supported.<wbr/></p>
<p>Some devices may also support always-on HDR,<wbr/> which
applies HDR processing at full frame rate.<wbr/> For these
devices,<wbr/> intents other than STILL_<wbr/>CAPTURE will also
produce an HDR output with no frame rate impact compared
to normal operation,<wbr/> though the quality may be lower
than for STILL_<wbr/>CAPTURE intents.<wbr/></p>
<p>If SCENE_<wbr/>MODE_<wbr/>HDR is used with unsupported output types
or capture intents,<wbr/> the images captured will be as if
the SCENE_<wbr/>MODE was not enabled at all.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FACE_PRIORITY_LOW_LIGHT (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_notes"><p>Same as FACE_<wbr/>PRIORITY scene mode,<wbr/> except that the camera
device will choose higher sensitivity values (<a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>)
under low light conditions.<wbr/></p>
<p>The camera device may be tuned to expose the images in a reduced
sensitivity range to produce the best quality images.<wbr/> For example,<wbr/>
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/>
the camera device auto-exposure routine tuning process may limit the actual
exposure sensitivity range to [100,<wbr/> 1200] to ensure that the noise level isn't
excessive in order to preserve the image quality.<wbr/> Under this situation,<wbr/> the image under
low light may be under-exposed when the sensor max exposure time (bounded by the
<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
ON_<wbr/>* modes) and effective max sensitivity are reached.<wbr/> This scene mode allows the
camera device auto-exposure routine to increase the sensitivity up to the max
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
dark and the max exposure time is reached.<wbr/> The captured images may be noisier
compared with the images captured in normal FACE_<wbr/>PRIORITY mode; therefore,<wbr/> it is
recommended that the application only use this scene mode when it is capable of
reducing the noise level of the captured images.<wbr/></p>
<p>Unlike the other scene modes,<wbr/> <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>
remain active when FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT is set.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DEVICE_CUSTOM_START (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_value">100</span>
<span class="entry_type_enum_notes"><p>Scene mode values within the range of
<code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
customized scene modes.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DEVICE_CUSTOM_END (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_value">127</span>
<span class="entry_type_enum_notes"><p>Scene mode values within the range of
<code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
customized scene modes.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Control for which scene mode is currently active.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Scene modes are custom camera modes optimized for a certain set of conditions and
capture settings.<wbr/></p>
<p>This is the mode that that is active when
<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
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>
while in use.<wbr/></p>
<p>The interpretation and implementation of these scene modes is left
to the implementor of the camera device.<wbr/> Their behavior will not be
consistent across all devices,<wbr/> and any given device may only implement
a subset of these modes.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL implementations that include scene modes are expected to provide
the per-scene settings to use for <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> in
<a href="#static_android.control.sceneModeOverrides">android.<wbr/>control.<wbr/>scene<wbr/>Mode<wbr/>Overrides</a>.<wbr/></p>
<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/> the
HAL must list supported video size and fps range in
<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/> 1280x720,<wbr/>
if the HAL has two different sensor configurations for normal streaming mode and high
speed streaming,<wbr/> when this scene mode is set/<wbr/>reset in a sequence of capture requests,<wbr/> the
HAL may have to switch between different sensor modes.<wbr/> This mode is deprecated in legacy
HAL3.<wbr/>3,<wbr/> to support high speed video recording,<wbr/> please implement
<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
capability defined in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.videoStabilizationMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Video stabilization is disabled.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>Video stabilization is enabled.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PREVIEW_STABILIZATION (v3.8)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Preview stabilization,<wbr/> where the preview in addition to all other non-RAW streams are
stabilized with the same quality of stabilization,<wbr/> is enabled.<wbr/> This mode aims to give
clients a 'what you see is what you get' effect.<wbr/> In this mode,<wbr/> the FoV reduction will
be a maximum of 20 % both horizontally and vertically
(10% from left,<wbr/> right,<wbr/> top,<wbr/> bottom) for the given zoom ratio /<wbr/> crop region.<wbr/>
The resultant FoV will also be the same across all processed streams
(that have the same aspect ratio).<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether video stabilization is
active.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Video stabilization automatically warps images from
the camera in order to stabilize motion between consecutive frames.<wbr/></p>
<p>If enabled,<wbr/> video stabilization can modify the
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to keep the video stream stabilized.<wbr/></p>
<p>Switching between different video stabilization modes may take several
frames to initialize,<wbr/> the camera device will report the current mode
in capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/>
the video stabilization modes in the first several capture results may
still be "OFF",<wbr/> and it will become "ON" when the initialization is
done.<wbr/></p>
<p>In addition,<wbr/> not all recording sizes or frame rates may be supported for
stabilization by a device that reports stabilization support.<wbr/> It is guaranteed
that an output targeting a MediaRecorder or MediaCodec will be stabilized if
the recording resolution is less than or equal to 1920 x 1080 (width less than
or equal to 1920,<wbr/> height less than or equal to 1080),<wbr/> and the recording
frame rate is less than or equal to 30fps.<wbr/> At other sizes,<wbr/> the CaptureResult
<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a> field will return
OFF if the recording output is not stabilized,<wbr/> or if there are no output
Surface types that can be stabilized.<wbr/></p>
<p>The application is strongly recommended to call
<a href="https://developer.android.com/reference/android/hardware/camera2/params/SessionConfiguration.html#setSessionParameters">SessionConfiguration#setSessionParameters</a>
with the desired video stabilization mode before creating the capture session.<wbr/>
Video stabilization mode is a session parameter on many devices.<wbr/> Specifying
it at session creation time helps avoid reconfiguration delay caused by difference
between the default value and the first CaptureRequest.<wbr/></p>
<p>If a camera device supports both this mode and OIS
(<a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may
produce undesirable interaction,<wbr/> so it is recommended not to enable
both at the same time.<wbr/></p>
<p>If video stabilization is set to "PREVIEW_<wbr/>STABILIZATION",<wbr/>
<a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> is overridden.<wbr/> The camera sub-system may choose
to turn on hardware based image stabilization in addition to software based stabilization
if it deems that appropriate.<wbr/>
This key may be a part of the available session keys,<wbr/> which camera clients may
query via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableSessionKeys">CameraCharacteristics#getAvailableSessionKeys</a>.<wbr/>
If this is the case,<wbr/> changing this key over the life-time of a capture session may
cause delays /<wbr/> glitches.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When this key is set to "PREVIEW_<wbr/>STABILIZATION",<wbr/>
for non-stalling buffers returned without errors,<wbr/> the time interval between notify readout
timestamp and when buffers are returned to the camera framework,<wbr/> must be no more than 1
extra frame interval,<wbr/> relative to the case where this key is set to "OFF".<wbr/></p>
<p>This is in order for look-ahead time period to be short enough
for preview to match video recording for real-time usage.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.postRawSensitivityBoost">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The amount of additional sensitivity boost applied to output images
after RAW sensor data is captured.<wbr/></p>
</td>
<td class="entry_units">
ISO arithmetic units,<wbr/> the same as android.<wbr/>sensor.<wbr/>sensitivity
</td>
<td class="entry_range">
<p><a href="#static_android.control.postRawSensitivityBoostRange">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost<wbr/>Range</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Some camera devices support additional digital sensitivity boosting in the
camera processing pipeline after sensor RAW image is captured.<wbr/>
Such a boost will be applied to YUV/<wbr/>JPEG format output images but will not
have effect on RAW output formats like RAW_<wbr/>SENSOR,<wbr/> RAW10,<wbr/> RAW12 or RAW_<wbr/>OPAQUE.<wbr/></p>
<p>This key will be <code>null</code> for devices that do not support any RAW format
outputs.<wbr/> For devices that do support RAW format outputs,<wbr/> this key will always
present,<wbr/> and if a device does not support post RAW sensitivity boost,<wbr/> it will
list <code>100</code> in this key.<wbr/></p>
<p>If the camera device cannot apply the exact boost requested,<wbr/> it will reduce the
boost to the nearest supported value.<wbr/>
The final boost value used will be available in the output capture result.<wbr/></p>
<p>For devices that support post RAW sensitivity boost,<wbr/> the YUV/<wbr/>JPEG output images
of such device will have the total sensitivity of
<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>
The sensitivity of RAW format images will always be <code><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></code></p>
<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
OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.enableZsl">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>enable<wbr/>Zsl
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Requests with <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE must be captured
after previous requests.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Requests with <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE may or may not be
captured before previous requests.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Allow camera device to enable zero-shutter-lag mode for requests with
<a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If enableZsl is <code>true</code>,<wbr/> the camera device may enable zero-shutter-lag mode for requests with
STILL_<wbr/>CAPTURE capture intent.<wbr/> The camera device may use images captured in the past to
produce output images for a zero-shutter-lag request.<wbr/> The result metadata including the
<a href="#dynamic_android.sensor.timestamp">android.<wbr/>sensor.<wbr/>timestamp</a> reflects the source frames used to produce output images.<wbr/>
Therefore,<wbr/> the contents of the output images and the result metadata may be out of order
compared to previous regular requests.<wbr/> enableZsl does not affect requests with other
capture intents.<wbr/></p>
<p>For example,<wbr/> when requests are submitted in the following order:
Request A: enableZsl is ON,<wbr/> <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> is PREVIEW
Request B: enableZsl is ON,<wbr/> <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> is STILL_<wbr/>CAPTURE</p>
<p>The output images for request B may have contents captured before the output images for
request A,<wbr/> and the result metadata for request B may be older than the result metadata for
request A.<wbr/></p>
<p>Note that when enableZsl is <code>true</code>,<wbr/> it is not guaranteed to get output images captured in
the past for requests with STILL_<wbr/>CAPTURE capture intent.<wbr/></p>
<p>For applications targeting SDK versions O and newer,<wbr/> the value of enableZsl in
TEMPLATE_<wbr/>STILL_<wbr/>CAPTURE template may be <code>true</code>.<wbr/> The value in other templates is always
<code>false</code> if present.<wbr/></p>
<p>For applications targeting SDK versions older than O,<wbr/> the value of enableZsl in all
capture templates is always <code>false</code> if present.<wbr/></p>
<p>For application-operated ZSL,<wbr/> use CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>It is valid for HAL to produce regular output images for requests with STILL_<wbr/>CAPTURE
capture intent.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.extendedSceneMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>extended<wbr/>Scene<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">DISABLED (v3.5)</span>
<span class="entry_type_enum_value">0</span>
<span class="entry_type_enum_notes"><p>Extended scene mode is disabled.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BOKEH_STILL_CAPTURE (v3.5)</span>
<span class="entry_type_enum_notes"><p>High quality bokeh mode is enabled for all non-raw streams (including YUV,<wbr/>
JPEG,<wbr/> and IMPLEMENTATION_<wbr/>DEFINED) when capture intent is STILL_<wbr/>CAPTURE.<wbr/> Due to the
extra image processing,<wbr/> this mode may introduce additional stall to non-raw streams.<wbr/>
This mode should be used in high quality still capture use case.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BOKEH_CONTINUOUS (v3.5)</span>
<span class="entry_type_enum_notes"><p>Bokeh effect must not slow down capture rate relative to sensor raw output,<wbr/>
and the effect is applied to all processed streams no larger than the maximum
streaming dimension.<wbr/> This mode should be used if performance and power are a
priority,<wbr/> such as video recording.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VENDOR_START (v3.5)</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_value">0x40</span>
<span class="entry_type_enum_notes"><p>Vendor defined extended scene modes.<wbr/> These depend on vendor implementation.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether extended scene mode is enabled for a particular capture request.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>5</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>With bokeh mode,<wbr/> the camera device may blur out the parts of scene that are not in
focus,<wbr/> creating a bokeh (or shallow depth of field) effect for people or objects.<wbr/></p>
<p>When set to BOKEH_<wbr/>STILL_<wbr/>CAPTURE mode with STILL_<wbr/>CAPTURE capture intent,<wbr/> due to the extra
processing needed for high quality bokeh effect,<wbr/> the stall may be longer than when
capture intent is not STILL_<wbr/>CAPTURE.<wbr/></p>
<p>When set to BOKEH_<wbr/>STILL_<wbr/>CAPTURE mode with PREVIEW capture intent,<wbr/></p>
<ul>
<li>If the camera device has BURST_<wbr/>CAPTURE capability,<wbr/> the frame rate requirement of
BURST_<wbr/>CAPTURE must still be met.<wbr/></li>
<li>All streams not larger than the maximum streaming dimension for BOKEH_<wbr/>STILL_<wbr/>CAPTURE mode
(queried via <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#CONTROL_AVAILABLE_EXTENDED_SCENE_MODE_CAPABILITIES">Camera<wbr/>Characteristics#CONTROL_<wbr/>AVAILABLE_<wbr/>EXTENDED_<wbr/>SCENE_<wbr/>MODE_<wbr/>CAPABILITIES</a>)
will have preview bokeh effect applied.<wbr/></li>
</ul>
<p>When set to BOKEH_<wbr/>CONTINUOUS mode,<wbr/> configured streams dimension should not exceed this mode's
maximum streaming dimension in order to have bokeh effect applied.<wbr/> Bokeh effect may not
be available for streams larger than the maximum streaming dimension.<wbr/></p>
<p>Switching between different extended scene modes may involve reconfiguration of the camera
pipeline,<wbr/> resulting in long latency.<wbr/> The application should check this key against the
available session keys queried via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableSessionKeys">CameraCharacteristics#getAvailableSessionKeys</a>.<wbr/></p>
<p>For a logical multi-camera,<wbr/> bokeh may be implemented by stereo vision from sub-cameras
with different field of view.<wbr/> As a result,<wbr/> when bokeh mode is enabled,<wbr/> the camera device
may override <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> or <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> and the field of
view may be smaller than when bokeh mode is off.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.zoomRatio">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>zoom<wbr/>Ratio
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired zoom ratio</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.zoomRatioRange">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio<wbr/>Range</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>5</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Instead of using <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> for zoom,<wbr/> the application can now choose to
use this tag to specify the desired zoom level.<wbr/></p>
<p>By using this control,<wbr/> the application gains a simpler way to control zoom,<wbr/> which can
be a combination of optical and digital zoom.<wbr/> For example,<wbr/> a multi-camera system may
contain more than one lens with different focal lengths,<wbr/> and the user can use optical
zoom by switching between lenses.<wbr/> Using zoomRatio has benefits in the scenarios below:</p>
<ul>
<li>Zooming in from a wide-angle lens to a telephoto lens: A floating-point ratio provides
better precision compared to an integer value of <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></li>
<li>Zooming out from a wide lens to an ultrawide lens: zoomRatio supports zoom-out whereas
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> doesn't.<wbr/></li>
</ul>
<p>To illustrate,<wbr/> here are several scenarios of different zoom ratios,<wbr/> crop regions,<wbr/>
and output streams,<wbr/> for a hypothetical camera device with an active array of size
<code>(2000,<wbr/>1500)</code>.<wbr/></p>
<ul>
<li>Camera Configuration:<ul>
<li>Active array size: <code>2000x1500</code> (3 MP,<wbr/> 4:3 aspect ratio)</li>
<li>Output stream #1: <code>640x480</code> (VGA,<wbr/> 4:3 aspect ratio)</li>
<li>Output stream #2: <code>1280x720</code> (720p,<wbr/> 16:9 aspect ratio)</li>
</ul>
</li>
<li>Case #1: 4:3 crop region with 2.<wbr/>0x zoom ratio<ul>
<li>Zoomed field of view: 1/<wbr/>4 of original field of view</li>
<li>Crop region: <code>Rect(0,<wbr/> 0,<wbr/> 2000,<wbr/> 1500) //<wbr/> (left,<wbr/> top,<wbr/> right,<wbr/> bottom)</code> (post zoom)</li>
</ul>
</li>
<li><img alt="4:3 aspect ratio crop diagram" src="images/camera2/metadata/android.control.zoomRatio/zoom-ratio-2-crop-43.png"/><ul>
<li><code>640x480</code> stream source area: <code>(0,<wbr/> 0,<wbr/> 2000,<wbr/> 1500)</code> (equal to crop region)</li>
<li><code>1280x720</code> stream source area: <code>(0,<wbr/> 187,<wbr/> 2000,<wbr/> 1312)</code> (letterboxed)</li>
</ul>
</li>
<li>Case #2: 16:9 crop region with 2.<wbr/>0x zoom.<wbr/><ul>
<li>Zoomed field of view: 1/<wbr/>4 of original field of view</li>
<li>Crop region: <code>Rect(0,<wbr/> 187,<wbr/> 2000,<wbr/> 1312)</code></li>
<li><img alt="16:9 aspect ratio crop diagram" src="images/camera2/metadata/android.control.zoomRatio/zoom-ratio-2-crop-169.png"/></li>
<li><code>640x480</code> stream source area: <code>(250,<wbr/> 187,<wbr/> 1750,<wbr/> 1312)</code> (pillarboxed)</li>
<li><code>1280x720</code> stream source area: <code>(0,<wbr/> 187,<wbr/> 2000,<wbr/> 1312)</code> (equal to crop region)</li>
</ul>
</li>
<li>Case #3: 1:1 crop region with 0.<wbr/>5x zoom out to ultrawide lens.<wbr/><ul>
<li>Zoomed field of view: 4x of original field of view (switched from wide lens to ultrawide lens)</li>
<li>Crop region: <code>Rect(250,<wbr/> 0,<wbr/> 1750,<wbr/> 1500)</code></li>
<li><img alt="1:1 aspect ratio crop diagram" src="images/camera2/metadata/android.control.zoomRatio/zoom-ratio-0.5-crop-11.png"/></li>
<li><code>640x480</code> stream source area: <code>(250,<wbr/> 187,<wbr/> 1750,<wbr/> 1312)</code> (letterboxed)</li>
<li><code>1280x720</code> stream source area: <code>(250,<wbr/> 328,<wbr/> 1750,<wbr/> 1172)</code> (letterboxed)</li>
</ul>
</li>
</ul>
<p>As seen from the graphs above,<wbr/> the coordinate system of cropRegion now changes to the
effective after-zoom field-of-view,<wbr/> and is represented by the rectangle of (0,<wbr/> 0,<wbr/>
activeArrayWith,<wbr/> activeArrayHeight).<wbr/> The same applies to AE/<wbr/>AWB/<wbr/>AF regions,<wbr/> and faces.<wbr/>
This coordinate system change isn't applicable to RAW capture and its related
metadata such as intrinsicCalibration and lensShadingMap.<wbr/></p>
<p>Using the same hypothetical example above,<wbr/> and assuming output stream #1 (640x480) is
the viewfinder stream,<wbr/> the application can achieve 2.<wbr/>0x zoom in one of two ways:</p>
<ul>
<li>zoomRatio = 2.<wbr/>0,<wbr/> scaler.<wbr/>cropRegion = (0,<wbr/> 0,<wbr/> 2000,<wbr/> 1500)</li>
<li>zoomRatio = 1.<wbr/>0 (default),<wbr/> scaler.<wbr/>cropRegion = (500,<wbr/> 375,<wbr/> 1500,<wbr/> 1125)</li>
</ul>
<p>If the application intends to set aeRegions to be top-left quarter of the viewfinder
field-of-view,<wbr/> the <a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a> should be set to (0,<wbr/> 0,<wbr/> 1000,<wbr/> 750) with
zoomRatio set to 2.<wbr/>0.<wbr/> Alternatively,<wbr/> the application can set aeRegions to the equivalent
region of (500,<wbr/> 375,<wbr/> 1000,<wbr/> 750) for zoomRatio of 1.<wbr/>0.<wbr/> If the application doesn't
explicitly set <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> its value defaults to 1.<wbr/>0.<wbr/></p>
<p>One limitation of controlling zoom using zoomRatio is that the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>
must only be used for letterboxing or pillarboxing of the sensor active array,<wbr/> and no
FREEFORM cropping can be used with <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> other than 1.<wbr/>0.<wbr/> If
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> is not 1.<wbr/>0,<wbr/> and <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> is set to be
windowboxing,<wbr/> the camera framework will override the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to be
the active array.<wbr/></p>
<p>In the capture request,<wbr/> if the application sets <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> to a
value != 1.<wbr/>0,<wbr/> the <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> tag in the capture result reflects the
effective zoom ratio achieved by the camera device,<wbr/> and the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>
adjusts for additional crops that are not zoom related.<wbr/> Otherwise,<wbr/> if the application
sets <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> to 1.<wbr/>0,<wbr/> or does not set it at all,<wbr/> the
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> tag in the result metadata will also be 1.<wbr/>0.<wbr/></p>
<p>When the application requests a physical stream for a logical multi-camera,<wbr/> the
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> in the physical camera result metadata will be 1.<wbr/>0,<wbr/> and
the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> tag reflects the amount of zoom and crop done by the
physical camera device.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For all capture request templates,<wbr/> this field must be set to 1.<wbr/>0 in order to have
consistent field of views between different modes.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.afRegionsSet">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>af<wbr/>Regions<wbr/>Set
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [fwk_only as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.2)</span>
<span class="entry_type_enum_notes"><p>AF regions (<a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a>) have not been set by the camera client.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.2)</span>
<span class="entry_type_enum_notes"><p>AF regions (<a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a>) have been set by the camera client.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Framework-only private key which informs camera fwk that the AF regions has been set
by the client and those regions need not be corrected when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is
set to MAXIMUM_<wbr/>RESOLUTION.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This must be set to TRUE by the camera2 java fwk when the camera client sets
<a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.aeRegionsSet">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Regions<wbr/>Set
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [fwk_only as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.2)</span>
<span class="entry_type_enum_notes"><p>AE regions (<a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a>) have not been set by the camera client.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.2)</span>
<span class="entry_type_enum_notes"><p>AE regions (<a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a>) have been set by the camera client.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Framework-only private key which informs camera fwk that the AE regions has been set
by the client and those regions need not be corrected when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is
set to MAXIMUM_<wbr/>RESOLUTION.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This must be set to TRUE by the camera2 java fwk when the camera client sets
<a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.awbRegionsSet">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>awb<wbr/>Regions<wbr/>Set
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [fwk_only as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.2)</span>
<span class="entry_type_enum_notes"><p>AWB regions (<a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a>) have not been set by the camera client.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.2)</span>
<span class="entry_type_enum_notes"><p>AWB regions (<a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a>) have been set by the camera client.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Framework-only private key which informs camera fwk that the AF regions has been set
by the client and those regions need not be corrected when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is
set to MAXIMUM_<wbr/>RESOLUTION.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This must be set to TRUE by the camera2 java fwk when the camera client sets
<a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.settingsOverride">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>settings<wbr/>Override
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.9)</span>
<span class="entry_type_enum_notes"><p>No keys are applied sooner than the other keys when applying CaptureRequest
settings to the camera device.<wbr/> This is the default value.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ZOOM (v3.9)</span>
<span class="entry_type_enum_notes"><p>Zoom related keys are applied sooner than the other keys in the CaptureRequest.<wbr/> The
zoom related keys are:</p>
<ul>
<li><a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a></li>
<li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
<li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
<li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
<li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
</ul>
<p>Even though <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/>
and <a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a> are not directly zoom related,<wbr/> applications
typically scale these regions together with <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to have a
consistent mapping within the current field of view.<wbr/> In this aspect,<wbr/> they are
related to <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> and <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VENDOR_START (v3.9)</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_value">0x4000</span>
<span class="entry_type_enum_notes"><p>Vendor defined settingsOverride.<wbr/> These depend on vendor implementation.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired CaptureRequest settings override with which certain keys are
applied earlier so that they can take effect sooner.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.availableSettingsOverrides">android.<wbr/>control.<wbr/>available<wbr/>Settings<wbr/>Overrides</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>There are some CaptureRequest keys which can be applied earlier than others
when controls within a CaptureRequest aren't required to take effect at the same time.<wbr/>
One such example is zoom.<wbr/> Zoom can be applied at a later stage of the camera pipeline.<wbr/>
As soon as the camera device receives the CaptureRequest,<wbr/> it can apply the requested
zoom value onto an earlier request that's already in the pipeline,<wbr/> thus improves zoom
latency.<wbr/></p>
<p>This key's value in the capture result reflects whether the controls for this capture
are overridden "by" a newer request.<wbr/> This means that if a capture request turns on
settings override,<wbr/> the capture result of an earlier request will contain the key value
of ZOOM.<wbr/> On the other hand,<wbr/> if a capture request has settings override turned on,<wbr/>
but all newer requests have it turned off,<wbr/> the key's value in the capture result will
be OFF because this capture isn't overridden by a newer capture.<wbr/> In the two examples
below,<wbr/> the capture results columns illustrate the settingsOverride values in different
scenarios.<wbr/></p>
<p>Assuming the zoom settings override can speed up by 1 frame,<wbr/> below example illustrates
the speed-up at the start of capture session:</p>
<pre><code>Camera session created
Request 1 (zoom=1.<wbr/>0x,<wbr/> override=ZOOM) -&gt;
Request 2 (zoom=1.<wbr/>2x,<wbr/> override=ZOOM) -&gt;
Request 3 (zoom=1.<wbr/>4x,<wbr/> override=ZOOM) -&gt; Result 1 (zoom=1.<wbr/>2x,<wbr/> override=ZOOM)
Request 4 (zoom=1.<wbr/>6x,<wbr/> override=ZOOM) -&gt; Result 2 (zoom=1.<wbr/>4x,<wbr/> override=ZOOM)
Request 5 (zoom=1.<wbr/>8x,<wbr/> override=ZOOM) -&gt; Result 3 (zoom=1.<wbr/>6x,<wbr/> override=ZOOM)
-&gt; Result 4 (zoom=1.<wbr/>8x,<wbr/> override=ZOOM)
-&gt; Result 5 (zoom=1.<wbr/>8x,<wbr/> override=OFF)
</code></pre>
<p>The application can turn on settings override and use zoom as normal.<wbr/> The example
shows that the later zoom values (1.<wbr/>2x,<wbr/> 1.<wbr/>4x,<wbr/> 1.<wbr/>6x,<wbr/> and 1.<wbr/>8x) overwrite the zoom
values (1.<wbr/>0x,<wbr/> 1.<wbr/>2x,<wbr/> 1.<wbr/>4x,<wbr/> and 1.<wbr/>8x) of earlier requests (#1,<wbr/> #2,<wbr/> #3,<wbr/> and #4).<wbr/></p>
<p>The application must make sure the settings override doesn't interfere with user
journeys requiring simultaneous application of all controls in CaptureRequest on the
requested output targets.<wbr/> For example,<wbr/> if the application takes a still capture using
CameraCaptureSession#capture,<wbr/> and the repeating request immediately sets a different
zoom value using override,<wbr/> the inflight still capture could have its zoom value
overwritten unexpectedly.<wbr/></p>
<p>So the application is strongly recommended to turn off settingsOverride when taking
still/<wbr/>burst captures,<wbr/> and turn it back on when there is only repeating viewfinder
request and no inflight still/<wbr/>burst captures.<wbr/></p>
<p>Below is the example demonstrating the transitions in and out of the
settings override:</p>
<pre><code>Request 1 (zoom=1.<wbr/>0x,<wbr/> override=OFF)
Request 2 (zoom=1.<wbr/>2x,<wbr/> override=OFF)
Request 3 (zoom=1.<wbr/>4x,<wbr/> override=ZOOM) -&gt; Result 1 (zoom=1.<wbr/>0x,<wbr/> override=OFF)
Request 4 (zoom=1.<wbr/>6x,<wbr/> override=ZOOM) -&gt; Result 2 (zoom=1.<wbr/>4x,<wbr/> override=ZOOM)
Request 5 (zoom=1.<wbr/>8x,<wbr/> override=OFF) -&gt; Result 3 (zoom=1.<wbr/>6x,<wbr/> override=ZOOM)
-&gt; Result 4 (zoom=1.<wbr/>6x,<wbr/> override=OFF)
-&gt; Result 5 (zoom=1.<wbr/>8x,<wbr/> override=OFF)
</code></pre>
<p>This example shows that:</p>
<ul>
<li>The application "ramps in" settings override by setting the control to ZOOM.<wbr/>
In the example,<wbr/> request #3 enables zoom settings override.<wbr/> Because the camera device
can speed up applying zoom by 1 frame,<wbr/> the outputs of request #2 has 1.<wbr/>4x zoom,<wbr/> the
value specified in request #3.<wbr/></li>
<li>The application "ramps out" of settings override by setting the control to OFF.<wbr/> In
the example,<wbr/> request #5 changes the override to OFF.<wbr/> Because request #4's zoom
takes effect in result #3,<wbr/> result #4's zoom remains the same until new value takes
effect in result #5.<wbr/></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL must set this value to OFF in all of the Capture templates.<wbr/></p>
<p>Typically the HAL unblocks processCaptureRequest at the same rate as the sensor capture,<wbr/>
and the HAL queues the capture settings in its pipeline when processCaptureRequest
returns.<wbr/> However,<wbr/> when the settings override is enabled,<wbr/> the HAL can optimize the
overridden controls' latency by applying them as soon as processCaptureRequest is
called,<wbr/> rather than when it's unblocked.<wbr/></p>
<p>If zoom settings override is on,<wbr/> when zooming in,<wbr/> the HAL must be able to apply the
zoom related settings at least 1 frame ahead.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.control.autoframing">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>autoframing
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.9)</span>
<span class="entry_type_enum_notes"><p>Disable autoframing.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.9)</span>
<span class="entry_type_enum_notes"><p>Enable autoframing to keep people in the frame's field of view.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.9)</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_notes"><p>Automatically select ON or OFF based on the system level preferences.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Automatic crop,<wbr/> pan and zoom to keep objects in the center of the frame.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Auto-framing is a special mode provided by the camera device to dynamically crop,<wbr/> zoom
or pan the camera feed to try to ensure that the people in a scene occupy a reasonable
portion of the viewport.<wbr/> It is primarily designed to support video calling in
situations where the user isn't directly in front of the device,<wbr/> especially for
wide-angle cameras.<wbr/>
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> and <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> in CaptureResult will be used
to denote the coordinates of the auto-framed region.<wbr/>
Zoom and video stabilization controls are disabled when auto-framing is enabled.<wbr/> The 3A
regions must map the screen coordinates into the scaler crop returned from the capture
result instead of using the active array sensor.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>While auto-framing is ON,<wbr/> the aspect ratio of the auto-framed region must match the
aspect ratio of the configured output stream.<wbr/>
When reporting CaptureResult,<wbr/> SCALER_<wbr/>CROP_<wbr/>REGION might not adequately describe the
actual sensor pixels.<wbr/> In this case,<wbr/> it is acceptable for the returned parameters to only
be an approximation of the image sensor region that is actually used.<wbr/>
When auto-framing is turned off,<wbr/> the transition should be immediate,<wbr/> with no panning or
zooming to transition to the settings requested by the app.<wbr/> When it is turned on,<wbr/> the
transition can be immediate or smooth.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.control.aeAvailableAntibandingModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Not all of the auto-exposure anti-banding modes may be
supported by a given camera device.<wbr/> This field lists the
valid anti-banding modes that the application may request
for this camera device with the
<a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a> control.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.aeAvailableModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Not all the auto-exposure modes may be supported by a
given camera device,<wbr/> especially if no flash unit is
available.<wbr/> This entry lists the valid modes for
<a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> for this camera device.<wbr/></p>
<p>All camera devices support ON,<wbr/> and all camera devices with flash
units support ON_<wbr/>AUTO_<wbr/>FLASH and ON_<wbr/>ALWAYS_<wbr/>FLASH.<wbr/></p>
<p>FULL mode camera devices always support OFF mode,<wbr/>
which enables application control of camera exposure time,<wbr/>
sensitivity,<wbr/> and frame duration.<wbr/></p>
<p>LEGACY mode camera devices never support OFF mode.<wbr/>
LIMITED mode devices support OFF if they support the MANUAL_<wbr/>SENSOR
capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.aeAvailableTargetFpsRanges">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Target<wbr/>Fps<wbr/>Ranges
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2 x n
</span>
<span class="entry_type_visibility"> [public as rangeInt]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">list of pairs of frame rates</div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
this camera device.<wbr/></p>
</td>
<td class="entry_units">
Frames per second (FPS)
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For devices at the LEGACY level or above:</p>
<ul>
<li>
<p>For constant-framerate recording,<wbr/> for each normal
<a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a>,<wbr/> that is,<wbr/> a
<a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> that has
<a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#quality">quality</a> in
the range [<a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_LOW">QUALITY_<wbr/>LOW</a>,<wbr/>
<a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_2160P">QUALITY_<wbr/>2160P</a>],<wbr/> if the profile is
supported by the device and has
<a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate">videoFrameRate</a> <code>x</code>,<wbr/> this list will
always include (<code>x</code>,<wbr/><code>x</code>).<wbr/></p>
</li>
<li>
<p>Also,<wbr/> a camera device must either not support any
<a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a>,<wbr/>
or support at least one
normal <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> that has
<a href="https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate">videoFrameRate</a> <code>x</code> &gt;= 24.<wbr/></p>
</li>
</ul>
<p>For devices at the LIMITED level or above:</p>
<ul>
<li>For devices that advertise NIR color filter arrangement in
<a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a>,<wbr/> this list will always include
(<code>max</code>,<wbr/> <code>max</code>) where <code>max</code> = the maximum output frame rate of the maximum YUV_<wbr/>420_<wbr/>888
output size.<wbr/></li>
<li>For devices advertising any color filter arrangement other than NIR,<wbr/> or devices not
advertising color filter arrangement,<wbr/> this list will always include (<code>min</code>,<wbr/> <code>max</code>) and
(<code>max</code>,<wbr/> <code>max</code>) where <code>min</code> &lt;= 15 and <code>max</code> = the maximum output frame rate of the
maximum YUV_<wbr/>420_<wbr/>888 output size.<wbr/></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must make sure the lower bound and upper bound of each supported targetFpsRange can
be reached.<wbr/> For example,<wbr/> if HAL supports an aeTargetFpsRange of (15,<wbr/> 30),<wbr/> when set by the
application,<wbr/> the camera must be able to reach 15fps in sufficient dark scenes.<wbr/> This way
the application knows the exact range of frame rate it can expect.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.aeCompensationRange">
<td class="entry_name
" rowspan="1">
android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as rangeInt]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum and minimum exposure compensation values for
<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/>
that are supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Range [0,<wbr/>0] indicates that exposure compensation is not supported.<wbr/></p>
<p>For LIMITED and FULL devices,<wbr/> range must follow below requirements if exposure
compensation is supported (<code>range != [0,<wbr/> 0]</code>):</p>
<p><code>Min.<wbr/>exposure compensation * <a href="#static_android.control.aeCompensationStep">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step</a> &lt;= -2 EV</code></p>
<p><code>Max.<wbr/>exposure compensation * <a href="#static_android.control.aeCompensationStep">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step</a> &gt;= 2 EV</code></p>
<p>LEGACY devices may support a smaller range than this.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.aeCompensationStep">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Smallest step by which the exposure compensation
can be changed.<wbr/></p>
</td>
<td class="entry_units">
Exposure Value (EV)
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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
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
that the target EV offset for the auto-exposure routine is -1 EV.<wbr/></p>
<p>One unit of EV compensation changes the brightness of the captured image by a factor
of two.<wbr/> +1 EV doubles the image brightness,<wbr/> while -1 EV halves the image brightness.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This must be less than or equal to 1/<wbr/>2.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.afAvailableModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>af<wbr/>Available<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">List of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of auto-focus (AF) modes for <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> that are
supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Not all the auto-focus modes may be supported by a
given camera device.<wbr/> This entry lists the valid modes for
<a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> for this camera device.<wbr/></p>
<p>All LIMITED and FULL mode camera devices will support OFF mode,<wbr/> and all
camera devices with adjustable focuser units
(<code><a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> &gt; 0</code>) will support AUTO mode.<wbr/></p>
<p>LEGACY devices will support OFF mode only if they support
focusing to infinity (by also setting <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> to
<code>0.<wbr/>0f</code>).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.availableEffects">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>available<wbr/>Effects
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">List of enums (android.<wbr/>control.<wbr/>effect<wbr/>Mode).<wbr/></div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This list contains the color effect modes that can be applied to
images produced by the camera device.<wbr/>
Implementations are not expected to be consistent across all devices.<wbr/>
If no color effect modes are available for a device,<wbr/> this will only list
OFF.<wbr/></p>
<p>A color effect will only be applied if
<a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> != OFF.<wbr/> OFF is always included in this list.<wbr/></p>
<p>This control has no effect on the operation of other control routines such
as auto-exposure,<wbr/> white balance,<wbr/> or focus.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.availableSceneModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">List of enums (android.<wbr/>control.<wbr/>scene<wbr/>Mode).<wbr/></div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.control.sceneMode">android.<wbr/>control.<wbr/>scene<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This list contains scene modes that can be set for the camera device.<wbr/>
Only scene modes that have been fully implemented for the
camera device may be included here.<wbr/> Implementations are not expected
to be consistent across all devices.<wbr/></p>
<p>If no scene modes are supported by the camera device,<wbr/> this
will be set to DISABLED.<wbr/> Otherwise DISABLED will not be listed.<wbr/></p>
<p>FACE_<wbr/>PRIORITY is always listed if face detection is
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> &gt;
0</code>).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.availableVideoStabilizationModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>available<wbr/>Video<wbr/>Stabilization<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">List of enums.<wbr/></div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of video stabilization modes for <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>
that are supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>OFF will always be listed.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.awbAvailableModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>awb<wbr/>Available<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">List of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Not all the auto-white-balance modes may be supported by a
given camera device.<wbr/> This entry lists the valid modes for
<a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> for this camera device.<wbr/></p>
<p>All camera devices will support ON mode.<wbr/></p>
<p>Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always support OFF
mode,<wbr/> which enables application control of white balance,<wbr/> by using
<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
mode camera devices.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.maxRegions">
<td class="entry_name
" rowspan="1">
android.<wbr/>control.<wbr/>max<wbr/>Regions
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of the maximum number of regions that can be used for metering in
auto-exposure (AE),<wbr/> auto-white balance (AWB),<wbr/> and auto-focus (AF);
this corresponds to the maximum number of elements in
<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/>
and <a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Value must be &gt;= 0 for each element.<wbr/> For full-capability devices
this value must be &gt;= 1 for AE and AF.<wbr/> The order of the elements is:
<code>(AE,<wbr/> AWB,<wbr/> AF)</code>.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.maxRegionsAe">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum number of metering regions that can be used by the auto-exposure (AE)
routine.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Value will be &gt;= 0.<wbr/> For FULL-capability devices,<wbr/> this
value will be &gt;= 1.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This corresponds to the maximum allowed number of elements in
<a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry is private to the framework.<wbr/> Fill in
maxRegions to have this entry be automatically populated.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.maxRegionsAwb">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum number of metering regions that can be used by the auto-white balance (AWB)
routine.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Value will be &gt;= 0.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This corresponds to the maximum allowed number of elements in
<a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry is private to the framework.<wbr/> Fill in
maxRegions to have this entry be automatically populated.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.maxRegionsAf">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum number of metering regions that can be used by the auto-focus (AF) routine.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Value will be &gt;= 0.<wbr/> For FULL-capability devices,<wbr/> this
value will be &gt;= 1.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This corresponds to the maximum allowed number of elements in
<a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry is private to the framework.<wbr/> Fill in
maxRegions to have this entry be automatically populated.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.sceneModeOverrides">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>scene<wbr/>Mode<wbr/>Overrides
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3 x length(availableSceneModes)
</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Ordered list of auto-exposure,<wbr/> auto-white balance,<wbr/> and auto-focus
settings to use with each available scene mode.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>For each available scene mode,<wbr/> the list must contain three
entries containing the <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> values used
by the camera device.<wbr/> The entry order is <code>(aeMode,<wbr/> awbMode,<wbr/> afMode)</code>
where aeMode has the lowest index position.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When a scene mode is enabled,<wbr/> the camera device is expected
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/>
and <a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> with its preferred settings for
that scene mode.<wbr/></p>
<p>The order of this list matches that of availableSceneModes,<wbr/>
with 3 entries for each mode.<wbr/> The overrides listed
for FACE_<wbr/>PRIORITY and FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT (if supported) are ignored,<wbr/>
since for that mode the application-set <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> values are
used instead,<wbr/> matching the behavior when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>
is set to AUTO.<wbr/> It is recommended that the FACE_<wbr/>PRIORITY and
FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT (if supported) overrides should be set to 0.<wbr/></p>
<p>For example,<wbr/> if availableSceneModes contains
<code>(FACE_<wbr/>PRIORITY,<wbr/> ACTION,<wbr/> NIGHT)</code>,<wbr/> then the camera framework
expects sceneModeOverrides to have 9 entries formatted like:
<code>(0,<wbr/> 0,<wbr/> 0,<wbr/> ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> AUTO,<wbr/> CONTINUOUS_<wbr/>PICTURE,<wbr/>
ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> INCANDESCENT,<wbr/> AUTO)</code>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>To maintain backward compatibility,<wbr/> this list will be made available
in the static metadata of the camera service.<wbr/> The camera service will
use these values to set <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> when using a scene
mode other than FACE_<wbr/>PRIORITY and FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT (if supported).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.availableHighSpeedVideoConfigurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5 x n
</span>
<span class="entry_type_visibility"> [hidden as highSpeedVideoConfiguration]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of available high speed video size,<wbr/> fps range and max batch size configurations
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>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>For each configuration,<wbr/> the fps_<wbr/>max &gt;= 120fps.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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/>
this metadata will list the supported high speed video size,<wbr/> fps range and max batch size
configurations.<wbr/> All the sizes listed in this configuration will be a subset of the sizes
reported by <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputSizes">StreamConfigurationMap#getOutputSizes</a>
for processed non-stalling formats.<wbr/></p>
<p>For the high speed video use case,<wbr/> the application must
select the video size and fps range from this metadata to configure the recording and
preview streams and setup the recording requests.<wbr/> For example,<wbr/> if the application intends
to do high speed recording,<wbr/> it can select the maximum size reported by this metadata to
configure output streams.<wbr/> Once the size is selected,<wbr/> application can filter this metadata
by selected size and get the supported fps ranges,<wbr/> and use these fps ranges to setup the
recording requests.<wbr/> Note that for the use case of multiple output streams,<wbr/> application
must select one unique size from this metadata to use (e.<wbr/>g.,<wbr/> preview and recording streams
must have the same size).<wbr/> Otherwise,<wbr/> the high speed capture session creation will fail.<wbr/></p>
<p>The min and max fps will be multiple times of 30fps.<wbr/></p>
<p>High speed video streaming extends significant performance pressure to camera hardware,<wbr/>
to achieve efficient high speed streaming,<wbr/> the camera device may have to aggregate
multiple frames together and send to camera device for processing where the request
controls are same for all the frames in this batch.<wbr/> Max batch size indicates
the max possible number of frames the camera device will group together for this high
speed stream configuration.<wbr/> This max batch size will be used to generate a high speed
recording request list by
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>.<wbr/>
The max batch size for each configuration will satisfy below conditions:</p>
<ul>
<li>Each max batch size will be a divisor of its corresponding fps_<wbr/>max /<wbr/> 30.<wbr/> For example,<wbr/>
if max_<wbr/>fps is 300,<wbr/> max batch size will only be 1,<wbr/> 2,<wbr/> 5,<wbr/> or 10.<wbr/></li>
<li>The camera device may choose smaller internal batch size for each configuration,<wbr/> but
the actual batch size will be a divisor of max batch size.<wbr/> For example,<wbr/> if the max batch
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>
<li>The max batch size in each configuration entry must be no larger than 32.<wbr/></li>
</ul>
<p>The camera device doesn't have to support batch mode to achieve high speed video recording,<wbr/>
in such case,<wbr/> batch_<wbr/>size_<wbr/>max will be reported as 1 in each configuration entry.<wbr/></p>
<p>This fps ranges in this configuration list can only be used to create requests
that are submitted to a high speed camera capture session created by
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>.<wbr/>
The fps ranges reported in this metadata must not be used to setup capture requests for
normal capture session,<wbr/> or it will cause request error.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>All the sizes listed in this configuration will be a subset of the sizes reported by
<a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> for processed non-stalling output formats.<wbr/>
Note that for all high speed video configurations,<wbr/> HAL must be able to support a minimum
of two streams,<wbr/> though the application might choose to configure just one stream.<wbr/></p>
<p>The HAL may support multiple sensor modes for high speed outputs,<wbr/> for example,<wbr/> 120fps
sensor mode and 120fps recording,<wbr/> 240fps sensor mode for 240fps recording.<wbr/> The application
usually starts preview first,<wbr/> then starts recording.<wbr/> To avoid sensor mode switch caused
stutter when starting recording as much as possible,<wbr/> the application may want to ensure
the same sensor mode is used for preview and recording.<wbr/> Therefore,<wbr/> The HAL must advertise
the variable fps range [30,<wbr/> fps_<wbr/>max] for each fixed fps range in this configuration list.<wbr/>
For example,<wbr/> if the HAL advertises [120,<wbr/> 120] and [240,<wbr/> 240],<wbr/> the HAL must also advertise
[30,<wbr/> 120] and [30,<wbr/> 240] for each configuration.<wbr/> In doing so,<wbr/> if the application intends to
do 120fps recording,<wbr/> it can select [30,<wbr/> 120] to start preview,<wbr/> and [120,<wbr/> 120] to start
recording.<wbr/> For these variable fps ranges,<wbr/> it's up to the HAL to decide the actual fps
values that are suitable for smooth preview streaming.<wbr/>
If the HAL sees different max_<wbr/>fps values that fall into different sensor modes in a
sequence of requests,<wbr/> the HAL must switch the sensor mode as quick as possible to minimize
the mode switch caused stutter.<wbr/></p>
<p>HAL can also support 60fps preview during high speed recording session by advertising
[60,<wbr/> max_<wbr/>fps] for preview and [max_<wbr/>fps,<wbr/> max_<wbr/>fps] for recording.<wbr/> However,<wbr/> HAL must not
advertise both 30fps preview and 60fps preview for the same recording frame rate.<wbr/></p>
<p>Starting from AIDL ICameraDevice V2,<wbr/> camera HAL must report the valid batch_<wbr/>size_<wbr/>max.<wbr/> The
field will actually be used to generate a high speed recording request list.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.aeLockAvailable">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Lock<wbr/>Available
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether the camera device supports <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Devices with MANUAL_<wbr/>SENSOR capability or BURST_<wbr/>CAPTURE capability will always
list <code>true</code>.<wbr/> This includes FULL devices.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.awbLockAvailable">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>awb<wbr/>Lock<wbr/>Available
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether the camera device supports <a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Devices with MANUAL_<wbr/>POST_<wbr/>PROCESSING capability or BURST_<wbr/>CAPTURE capability will
always list <code>true</code>.<wbr/> This includes FULL devices.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.availableModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>available<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">List of enums (android.<wbr/>control.<wbr/>mode).<wbr/></div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of control modes for <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> that are supported by this camera
device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This list contains control modes that can be set for the camera device.<wbr/>
LEGACY mode devices will always support AUTO mode.<wbr/> LIMITED and FULL
devices will always support OFF,<wbr/> AUTO modes.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.postRawSensitivityBoostRange">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost<wbr/>Range
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as rangeInt]</span>
<div class="entry_type_notes">Range of supported post RAW sensitivity boosts</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Range of boosts for <a href="#controls_android.control.postRawSensitivityBoost">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost</a> supported
by this camera device.<wbr/></p>
</td>
<td class="entry_units">
ISO arithmetic units,<wbr/> the same as android.<wbr/>sensor.<wbr/>sensitivity
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Devices support post RAW sensitivity boost will advertise
<a href="#controls_android.control.postRawSensitivityBoost">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost</a> key for controlling
post RAW sensitivity boost.<wbr/></p>
<p>This key will be <code>null</code> for devices that do not support any RAW format
outputs.<wbr/> For devices that do support RAW format outputs,<wbr/> this key will always
present,<wbr/> and if a device does not support post RAW sensitivity boost,<wbr/> it will
list <code>(100,<wbr/> 100)</code> in this key.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This key is added in legacy HAL3.<wbr/>4.<wbr/> For legacy HAL3.<wbr/>3 or earlier devices,<wbr/> camera
framework will generate this key as <code>(100,<wbr/> 100)</code> if device supports any of RAW output
formats.<wbr/> All legacy HAL3.<wbr/>4 and above devices should list this key if device supports
any of RAW output formats.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.availableExtendedSceneModeMaxSizes">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>available<wbr/>Extended<wbr/>Scene<wbr/>Mode<wbr/>Max<wbr/>Sizes
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3 x n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<div class="entry_type_notes">List of extended scene modes and the corresponding max streaming sizes.<wbr/></div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The list of extended scene modes for <a href="#controls_android.control.extendedSceneMode">android.<wbr/>control.<wbr/>extended<wbr/>Scene<wbr/>Mode</a> that are supported
by this camera device,<wbr/> and each extended scene mode's maximum streaming (non-stall) size
with effect.<wbr/></p>
</td>
<td class="entry_units">
(mode,<wbr/> width,<wbr/> height)
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>5</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For DISABLED mode,<wbr/> the camera behaves normally with no extended scene mode enabled.<wbr/></p>
<p>For BOKEH_<wbr/>STILL_<wbr/>CAPTURE mode,<wbr/> the maximum streaming dimension specifies the limit
under which bokeh is effective when capture intent is PREVIEW.<wbr/> Note that when capture
intent is PREVIEW,<wbr/> the bokeh effect may not be as high in quality compared to
STILL_<wbr/>CAPTURE intent in order to maintain reasonable frame rate.<wbr/> The maximum streaming
dimension must be one of the YUV_<wbr/>420_<wbr/>888 or PRIVATE resolutions in
availableStreamConfigurations,<wbr/> or (0,<wbr/> 0) if preview bokeh is not supported.<wbr/> If the
application configures a stream larger than the maximum streaming dimension,<wbr/> bokeh
effect may not be applied for this stream for PREVIEW intent.<wbr/></p>
<p>For BOKEH_<wbr/>CONTINUOUS mode,<wbr/> the maximum streaming dimension specifies the limit under
which bokeh is effective.<wbr/> This dimension must be one of the YUV_<wbr/>420_<wbr/>888 or PRIVATE
resolutions in availableStreamConfigurations,<wbr/> and if the sensor maximum resolution is
larger than or equal to 1080p,<wbr/> the maximum streaming dimension must be at least 1080p.<wbr/>
If the application configures a stream with larger dimension,<wbr/> the stream may not have
bokeh effect applied.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For available extended scene modes,<wbr/> DISABLED will always be listed.<wbr/></p>
<p>HAL must support at list one non-OFF extended scene mode if extendedSceneMode control is
available on the camera device.<wbr/> For DISABLED mode,<wbr/> the maximum streaming resolution must
be set to (0,<wbr/> 0).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.availableExtendedSceneModeZoomRatioRanges">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>available<wbr/>Extended<wbr/>Scene<wbr/>Mode<wbr/>Zoom<wbr/>Ratio<wbr/>Ranges
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2 x n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<div class="entry_type_notes">Zoom ranges for all supported non-OFF extended scene modes.<wbr/></div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The ranges of supported zoom ratio for non-DISABLED <a href="#controls_android.control.extendedSceneMode">android.<wbr/>control.<wbr/>extended<wbr/>Scene<wbr/>Mode</a>.<wbr/></p>
</td>
<td class="entry_units">
(minZoom,<wbr/> maxZoom)
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>5</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When extended scene mode is set,<wbr/> the camera device may have limited range of zoom ratios
compared to when extended scene mode is DISABLED.<wbr/> This tag lists the zoom ratio ranges
for all supported non-DISABLED extended scene modes,<wbr/> in the same order as in
android.<wbr/>control.<wbr/>available<wbr/>Extended.<wbr/></p>
<p>Range [1.<wbr/>0,<wbr/> 1.<wbr/>0] means that no zoom (optical or digital) is supported.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.availableExtendedSceneModeCapabilities">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>available<wbr/>Extended<wbr/>Scene<wbr/>Mode<wbr/>Capabilities
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as capability]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The list of extended scene modes for <a href="#controls_android.control.extendedSceneMode">android.<wbr/>control.<wbr/>extended<wbr/>Scene<wbr/>Mode</a> that
are supported by this camera device,<wbr/> and each extended scene mode's capabilities such
as maximum streaming size,<wbr/> and supported zoom ratio ranges.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>5</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For DISABLED mode,<wbr/> the camera behaves normally with no extended scene mode enabled.<wbr/></p>
<p>For BOKEH_<wbr/>STILL_<wbr/>CAPTURE mode,<wbr/> the maximum streaming dimension specifies the limit
under which bokeh is effective when capture intent is PREVIEW.<wbr/> Note that when capture
intent is PREVIEW,<wbr/> the bokeh effect may not be as high quality compared to STILL_<wbr/>CAPTURE
intent in order to maintain reasonable frame rate.<wbr/> The maximum streaming dimension must
be one of the YUV_<wbr/>420_<wbr/>888 or PRIVATE resolutions in availableStreamConfigurations,<wbr/> or
(0,<wbr/> 0) if preview bokeh is not supported.<wbr/> If the application configures a stream
larger than the maximum streaming dimension,<wbr/> bokeh effect may not be applied for this
stream for PREVIEW intent.<wbr/></p>
<p>For BOKEH_<wbr/>CONTINUOUS mode,<wbr/> the maximum streaming dimension specifies the limit under
which bokeh is effective.<wbr/> This dimension must be one of the YUV_<wbr/>420_<wbr/>888 or PRIVATE
resolutions in availableStreamConfigurations,<wbr/> and if the sensor maximum resolution is
larger than or equal to 1080p,<wbr/> the maximum streaming dimension must be at least 1080p.<wbr/>
If the application configures a stream with larger dimension,<wbr/> the stream may not have
bokeh effect applied.<wbr/></p>
<p>When extended scene mode is set,<wbr/> the camera device may have limited range of zoom ratios
compared to when the mode is DISABLED.<wbr/> availableExtendedSceneModeCapabilities lists the
zoom ranges for all supported extended modes.<wbr/> A range of (1.<wbr/>0,<wbr/> 1.<wbr/>0) means that no zoom
(optical or digital) is supported.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.zoomRatioRange">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>zoom<wbr/>Ratio<wbr/>Range
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as rangeFloat]</span>
<span class="entry_type_hwlevel">[limited] </span>
<div class="entry_type_notes">The range of zoom ratios that this camera device supports.<wbr/></div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Minimum and maximum zoom ratios supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
A pair of zoom ratio in floating-points: (minZoom,<wbr/> maxZoom)
</td>
<td class="entry_range">
<p>maxZoom &gt;= 1.<wbr/>0 &gt;= minZoom</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>5</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If the camera device supports zoom-out from 1x zoom,<wbr/> minZoom will be less than 1.<wbr/>0,<wbr/> and
setting <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> to values less than 1.<wbr/>0 increases the camera's field
of view.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When the key is reported,<wbr/> the camera device's <a href="#static_android.scaler.availableMaxDigitalZoom">android.<wbr/>scaler.<wbr/>available<wbr/>Max<wbr/>Digital<wbr/>Zoom</a>
must be less than or equal to maxZoom.<wbr/> The camera framework makes sure to always
control zoom via <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>.<wbr/> The <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> tag is only
used to do horizontal or vertical cropping (but not both) to achieve aspect ratio
different than the camera sensor's native aspect ratio.<wbr/></p>
<p>For a logical multi-camera device,<wbr/> this key must either be reported for both the logical
camera device and all its physical sub-cameras,<wbr/> or none of them.<wbr/></p>
<p>When the key is not reported,<wbr/> camera framework derives the application-facing
zoomRatioRange to be (1,<wbr/> <a href="#static_android.scaler.availableMaxDigitalZoom">android.<wbr/>scaler.<wbr/>available<wbr/>Max<wbr/>Digital<wbr/>Zoom</a>).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.availableHighSpeedVideoConfigurationsMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5 x n
</span>
<span class="entry_type_visibility"> [hidden as highSpeedVideoConfiguration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of available high speed video size,<wbr/> fps range and max batch size configurations
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/>
when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>For each configuration,<wbr/> the fps_<wbr/>max &gt;= 120fps.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>,<wbr/> for configurations
which are applicable when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to hal details for <a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.availableSettingsOverrides">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>available<wbr/>Settings<wbr/>Overrides
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of available settings overrides supported by the camera device that can
be used to speed up certain controls.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.control.settingsOverride">android.<wbr/>control.<wbr/>settings<wbr/>Override</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When not all controls within a CaptureRequest are required to take effect
at the same time on the outputs,<wbr/> the camera device may apply certain request keys sooner
to improve latency.<wbr/> This list contains such supported settings overrides.<wbr/> Each settings
override corresponds to a set of CaptureRequest keys that can be sped up when applying.<wbr/></p>
<p>A supported settings override can be passed in via
<a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.html#CONTROL_SETTINGS_OVERRIDE">Capture<wbr/>Request#CONTROL_<wbr/>SETTINGS_<wbr/>OVERRIDE</a>,<wbr/> and the
CaptureRequest keys corresponding to the override are applied as soon as possible,<wbr/> not
bound by per-frame synchronization.<wbr/> See <a href="#controls_android.control.settingsOverride">android.<wbr/>control.<wbr/>settings<wbr/>Override</a> for the
CaptureRequest keys for each override.<wbr/></p>
<p>OFF is always included in this list.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.autoframingAvailable">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>autoframing<wbr/>Available
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.9)</span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.9)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether the camera device supports <a href="#controls_android.control.autoframing">android.<wbr/>control.<wbr/>autoframing</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Will be <code>false</code> if auto-framing is not available.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.control.lowLightBoostInfoLuminanceRange">
<td class="entry_name
" rowspan="1">
android.<wbr/>control.<wbr/>low<wbr/>Light<wbr/>Boost<wbr/>Info<wbr/>Luminance<wbr/>Range
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as rangeFloat]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The operating luminance range of low light boost measured in lux (lx).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>The lower bound indicates the lowest scene luminance value the AE mode
'ON_<wbr/>LOW_<wbr/>LIGHT_<wbr/>BOOST_<wbr/>BRIGHTNESS_<wbr/>PRIORITY' can operate within.<wbr/> Scenes of lower luminance
than this may receive less brightening,<wbr/> increased noise,<wbr/> or artifacts.<wbr/></p>
<p>The upper bound indicates the luminance threshold at the point when the mode is enabled.<wbr/>
For example,<wbr/> 'Range[0.<wbr/>3,<wbr/> 30.<wbr/>0]' defines 0.<wbr/>3 lux being the lowest scene luminance the
mode can reliably support.<wbr/> 30.<wbr/>0 lux represents the threshold when this mode is
activated.<wbr/> Scenes measured at less than or equal to 30 lux will activate low light
boost.<wbr/></p>
<p>If this key is defined,<wbr/> then the AE mode 'ON_<wbr/>LOW_<wbr/>LIGHT_<wbr/>BOOST_<wbr/>BRIGHTNESS_<wbr/>PRIORITY' will
also be present.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.control.aePrecaptureId">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Id
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The ID sent with the latest
CAMERA2_<wbr/>TRIGGER_<wbr/>PRECAPTURE_<wbr/>METERING call</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Must be 0 if no
CAMERA2_<wbr/>TRIGGER_<wbr/>PRECAPTURE_<wbr/>METERING trigger received yet
by HAL.<wbr/> Always updated even if AE algorithm ignores the
trigger</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.aeAntibandingMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device will not adjust exposure duration to
avoid banding problems.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">50HZ (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
avoid banding problems with 50Hz illumination sources.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">60HZ (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device will adjust exposure duration to
avoid banding problems with 60Hz illumination
sources.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device will automatically adapt its
antibanding routine to the current illumination
condition.<wbr/> This is the default mode if AUTO is
available on given camera device.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired setting for the camera device's auto-exposure
algorithm's antibanding compensation.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Some kinds of lighting fixtures,<wbr/> such as some fluorescent
lights,<wbr/> flicker at the rate of the power supply frequency
(60Hz or 50Hz,<wbr/> depending on country).<wbr/> While this is
typically not noticeable to a person,<wbr/> it can be visible to
a camera device.<wbr/> If a camera sets its exposure time to the
wrong value,<wbr/> the flicker may become visible in the
viewfinder as flicker or in a final captured image,<wbr/> as a
set of variable-brightness bands across the image.<wbr/></p>
<p>Therefore,<wbr/> the auto-exposure routines of camera devices
include antibanding routines that ensure that the chosen
exposure value will not cause such banding.<wbr/> The choice of
exposure time depends on the rate of flicker,<wbr/> which the
camera device can detect automatically,<wbr/> or the expected
rate can be selected by the application using this
control.<wbr/></p>
<p>A given camera device may not support all of the possible
options for the antibanding mode.<wbr/> The
<a href="#static_android.control.aeAvailableAntibandingModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Antibanding<wbr/>Modes</a> key contains
the available modes for a given camera device.<wbr/></p>
<p>AUTO mode is the default if it is available on given
camera device.<wbr/> When AUTO mode is not available,<wbr/> the
default will be either 50HZ or 60HZ,<wbr/> and both 50HZ
and 60HZ will be available.<wbr/></p>
<p>If manual exposure control is enabled (by setting
<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/>
then this setting has no effect,<wbr/> and the application must
ensure it selects exposure times that do not cause banding
issues.<wbr/> The <a href="#dynamic_android.statistics.sceneFlicker">android.<wbr/>statistics.<wbr/>scene<wbr/>Flicker</a> key can assist
the application in this.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For all capture request templates,<wbr/> this field must be set
to AUTO if AUTO mode is available.<wbr/> If AUTO is not available,<wbr/>
the default must be either 50HZ or 60HZ,<wbr/> and both 50HZ and
60HZ must be available.<wbr/></p>
<p>If manual exposure control is enabled (by setting
<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/>
then the exposure values provided by the application must not be
adjusted for antibanding.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.aeExposureCompensation">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Adjustment to auto-exposure (AE) target image
brightness.<wbr/></p>
</td>
<td class="entry_units">
Compensation steps
</td>
<td class="entry_range">
<p><a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The adjustment is measured as a count of steps,<wbr/> with the
step size defined by <a href="#static_android.control.aeCompensationStep">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Step</a> and the
allowed range by <a href="#static_android.control.aeCompensationRange">android.<wbr/>control.<wbr/>ae<wbr/>Compensation<wbr/>Range</a>.<wbr/></p>
<p>For example,<wbr/> if the exposure value (EV) step is 0.<wbr/>333,<wbr/> '6'
will mean an exposure compensation of +2 EV; -3 will mean an
exposure compensation of -1 EV.<wbr/> One EV represents a doubling
of image brightness.<wbr/> Note that this control will only be
effective if <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>!=</code> OFF.<wbr/> This control
will take effect even when <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> <code>== true</code>.<wbr/></p>
<p>In the event of exposure compensation value being changed,<wbr/> camera device
may take several frames to reach the newly requested exposure target.<wbr/>
During that time,<wbr/> <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> field will be in the SEARCHING
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
change from SEARCHING to either CONVERGED,<wbr/> LOCKED (if AE lock is enabled),<wbr/> or
FLASH_<wbr/>REQUIRED (if the scene is too dark for still capture).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.aeLock">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Lock
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Auto-exposure lock is disabled; the AE algorithm
is free to update its parameters.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>Auto-exposure lock is enabled; the AE algorithm
must not update the exposure and sensitivity parameters
while the lock is active.<wbr/></p>
<p><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a> setting changes
will still take effect while auto-exposure is locked.<wbr/></p>
<p>Some rare LEGACY devices may not support
this,<wbr/> in which case the value will always be overridden to OFF.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether auto-exposure (AE) is currently locked to its latest
calculated values.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to <code>true</code> (ON),<wbr/> the AE algorithm is locked to its latest parameters,<wbr/>
and will not change exposure settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
<p>Note that even when AE is locked,<wbr/> the flash may be fired if
the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is ON_<wbr/>AUTO_<wbr/>FLASH /<wbr/>
ON_<wbr/>ALWAYS_<wbr/>FLASH /<wbr/> ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE.<wbr/></p>
<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
is ON,<wbr/> the camera device will still adjust its exposure value.<wbr/></p>
<p>If AE precapture is triggered (see <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>)
when AE is already locked,<wbr/> the camera device will not change the exposure time
(<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>)
parameters.<wbr/> The flash may be fired if the <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>
is ON_<wbr/>AUTO_<wbr/>FLASH/<wbr/>ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE and the scene is too dark.<wbr/> If the
<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/>
Similarly,<wbr/> AE precapture trigger CANCEL has no effect when AE is already locked.<wbr/></p>
<p>When an AE precapture sequence is triggered,<wbr/> AE unlock will not be able to unlock
the AE if AE is locked by the camera device internally during precapture metering
sequence In other words,<wbr/> submitting requests with AE unlock has no effect for an
ongoing precapture metering sequence.<wbr/> Otherwise,<wbr/> the precapture metering sequence
will never succeed in a sequence of preview requests where AE lock is always set
to <code>false</code>.<wbr/></p>
<p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
get locked do not necessarily correspond to the settings that were present in the
latest capture result received from the camera device,<wbr/> since additional captures
and AE updates may have occurred even before the result was sent out.<wbr/> If an
application is switching between automatic and manual control and wishes to eliminate
any flicker during the switch,<wbr/> the following procedure is recommended:</p>
<ol>
<li>Starting in auto-AE mode:</li>
<li>Lock AE</li>
<li>Wait for the first result to be output that has the AE locked</li>
<li>Copy exposure settings from that result into a request,<wbr/> set the request to manual AE</li>
<li>Submit the capture request,<wbr/> proceed to run manual AE as desired.<wbr/></li>
</ol>
<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>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.aeMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is disabled.<wbr/></p>
<p>The application-selected <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> and
<a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are used by the camera
device,<wbr/> along with android.<wbr/>flash.<wbr/>* fields,<wbr/> if there's
a flash unit for this camera device.<wbr/></p>
<p>Note that auto-white balance (AWB) and auto-focus (AF)
behavior is device dependent when AE is in OFF mode.<wbr/>
To have consistent behavior across different devices,<wbr/>
it is recommended to either set AWB and AF to OFF mode
or lock AWB and AF before setting AE to OFF.<wbr/>
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/>
<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>
for more details.<wbr/></p>
<p>LEGACY devices do not support the OFF mode and will
override attempts to use this value to ON.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's autoexposure routine is active,<wbr/>
with no flash control.<wbr/></p>
<p>The application's values for
<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/> and
<a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> are ignored.<wbr/> The
application has control over the various
android.<wbr/>flash.<wbr/>* fields.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON_AUTO_FLASH (v3.2)</span>
<span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
the camera's flash unit,<wbr/> firing it in low-light
conditions.<wbr/></p>
<p>The flash may be fired during a precapture sequence
(triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
may be fired for captures for which the
<a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
STILL_<wbr/>CAPTURE</p></span>
</li>
<li>
<span class="entry_type_enum_name">ON_ALWAYS_FLASH (v3.2)</span>
<span class="entry_type_enum_notes"><p>Like ON,<wbr/> except that the camera device also controls
the camera's flash unit,<wbr/> always firing it for still
captures.<wbr/></p>
<p>The flash may be fired during a precapture sequence
(triggered by <a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a>) and
will always be fired for captures for which the
<a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> field is set to
STILL_<wbr/>CAPTURE</p></span>
</li>
<li>
<span class="entry_type_enum_name">ON_AUTO_FLASH_REDEYE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Like ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> but with automatic red eye
reduction.<wbr/></p>
<p>If deemed necessary by the camera device,<wbr/> a red eye
reduction flash will fire during the precapture
sequence.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON_EXTERNAL_FLASH (v3.3)</span>
<span class="entry_type_enum_notes"><p>An external flash has been turned on.<wbr/></p>
<p>It informs the camera device that an external flash has been turned on,<wbr/> and that
metering (and continuous focus if active) should be quickly recalculated to account
for the external flash.<wbr/> Otherwise,<wbr/> this mode acts like ON.<wbr/></p>
<p>When the external flash is turned off,<wbr/> AE mode should be changed to one of the
other available AE modes.<wbr/></p>
<p>If the camera device supports AE external flash mode,<wbr/> <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> must
be FLASH_<wbr/>REQUIRED after the camera device finishes AE scan and it's too dark without
flash.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON_LOW_LIGHT_BOOST_BRIGHTNESS_PRIORITY (v3.9)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Like 'ON' but applies additional brightness boost in low light scenes.<wbr/></p>
<p>When the scene lighting conditions are within the range defined by
<a href="#static_android.control.lowLightBoostInfoLuminanceRange">android.<wbr/>control.<wbr/>low<wbr/>Light<wbr/>Boost<wbr/>Info<wbr/>Luminance<wbr/>Range</a> this mode will apply additional
brightness boost.<wbr/></p>
<p>This mode will automatically adjust the intensity of low light boost applied
according to the scene lighting conditions.<wbr/> A darker scene will receive more boost
while a brighter scene will receive less boost.<wbr/></p>
<p>This mode can ignore the set target frame rate to allow more light to be captured
which can result in choppier motion.<wbr/> The frame rate can extend to lower than the
<a href="#static_android.control.aeAvailableTargetFpsRanges">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Target<wbr/>Fps<wbr/>Ranges</a> but will not go below 10 FPS.<wbr/> This mode
can also increase the sensor sensitivity gain which can result in increased luma
and chroma noise.<wbr/> The sensor sensitivity gain can extend to higher values beyond
<a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a>.<wbr/> This mode may also apply additional
processing to recover details in dark and bright areas of the image,<wbr/>and noise
reduction at high sensitivity gain settings to manage the trade-off between light
sensitivity and capture noise.<wbr/></p>
<p>This mode is restricted to two output surfaces.<wbr/> One output surface type can either
be SurfaceView or TextureView.<wbr/> Another output surface type can either be MediaCodec
or MediaRecorder.<wbr/> This mode cannot be used with a target FPS range higher than 30
FPS.<wbr/></p>
<p>If the session configuration is not supported,<wbr/> the AE mode reported in the
CaptureResult will be 'ON' instead of 'ON_<wbr/>LOW_<wbr/>LIGHT_<wbr/>BOOST_<wbr/>BRIGHTNESS_<wbr/>PRIORITY'.<wbr/></p>
<p>The application can observe the CapturerResult field
<a href="#dynamic_android.control.lowLightBoostState">android.<wbr/>control.<wbr/>low<wbr/>Light<wbr/>Boost<wbr/>State</a> to determine when low light boost is 'ACTIVE' or
'INACTIVE'.<wbr/></p>
<p>The low light boost is 'ACTIVE' once the scene lighting condition is less than the
upper bound lux value defined by <a href="#static_android.control.lowLightBoostInfoLuminanceRange">android.<wbr/>control.<wbr/>low<wbr/>Light<wbr/>Boost<wbr/>Info<wbr/>Luminance<wbr/>Range</a>.<wbr/>
This mode will be 'INACTIVE' once the scene lighting condition is greater than the
upper bound lux value defined by <a href="#static_android.control.lowLightBoostInfoLuminanceRange">android.<wbr/>control.<wbr/>low<wbr/>Light<wbr/>Boost<wbr/>Info<wbr/>Luminance<wbr/>Range</a>.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired mode for the camera device's
auto-exposure routine.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.aeAvailableModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is
AUTO.<wbr/></p>
<p>When set to any of the ON modes,<wbr/> the camera device's
auto-exposure routine is enabled,<wbr/> overriding the
application's selected exposure time,<wbr/> sensor sensitivity,<wbr/>
and frame duration (<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/> and
<a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>).<wbr/> If one of the FLASH modes
is selected,<wbr/> the camera device's flash unit controls are
also overridden.<wbr/></p>
<p>The FLASH modes are only available if the camera device
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>
<p>If flash TORCH mode is desired,<wbr/> this field must be set to
ON or OFF,<wbr/> and <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> set to TORCH.<wbr/></p>
<p>When set to any of the ON modes,<wbr/> the values chosen by the
camera device auto-exposure routine for the overridden
fields for a given capture will be available in its
CaptureResult.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.aeRegions">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>ae<wbr/>Regions
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5 x area_count
</span>
<span class="entry_type_visibility"> [public as meteringRectangle]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of metering areas to use for auto-exposure adjustment.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size or
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size depending on
distortion correction capability and mode
</td>
<td class="entry_range">
<p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> or <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>
depending on distortion correction capability and mode</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Not available if <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a> is 0.<wbr/>
Otherwise will always be present.<wbr/></p>
<p>The maximum number of regions supported by the device is determined by the value
of <a href="#static_android.control.maxRegionsAe">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Ae</a>.<wbr/></p>
<p>For devices not supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system always follows that of <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> with (0,<wbr/>0) being
the top-left pixel in the active pixel array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>For devices supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system depends on the mode being set.<wbr/>
When the distortion correction mode is OFF,<wbr/> the coordinate system follows
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> with
<code>(0,<wbr/> 0)</code> being the top-left pixel of the pre-correction active array,<wbr/> and
(<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right
pixel in the pre-correction active pixel array.<wbr/>
When the distortion correction mode is not OFF,<wbr/> the coordinate system follows
<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 top-left pixel of the active array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
for every pixel in the area.<wbr/> This means that a large metering area
with the same weight as a smaller area will have more effect in
the metering result.<wbr/> Metering areas can partially overlap and the
camera device will add the weights in the overlap region.<wbr/></p>
<p>The weights are relative to weights of other exposure metering regions,<wbr/> so if only one
region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0
weight is ignored.<wbr/></p>
<p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
camera device.<wbr/></p>
<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
capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
region and output only the intersection rectangle as the metering region in the result
metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
not reported in the result metadata.<wbr/></p>
<p>When setting the AE metering regions,<wbr/> the application must consider the additional
crop resulted from the aspect ratio differences between the preview stream and
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/> For example,<wbr/> if the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> is the full
active array size with 4:3 aspect ratio,<wbr/> and the preview stream is 16:9,<wbr/>
the boundary of AE regions will be [0,<wbr/> y_<wbr/>crop] and
[active_<wbr/>width,<wbr/> active_<wbr/>height - 2 * y_<wbr/>crop] rather than [0,<wbr/> 0] and
[active_<wbr/>width,<wbr/> active_<wbr/>height],<wbr/> where y_<wbr/>crop is the additional crop due to aspect ratio
mismatch.<wbr/></p>
<p>Starting from API level 30,<wbr/> the coordinate system of activeArraySize or
preCorrectionActiveArraySize is used to represent post-zoomRatio field of view,<wbr/> not
pre-zoom field of view.<wbr/> This means that the same aeRegions values at different
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> represent different parts of the scene.<wbr/> The aeRegions
coordinates are relative to the activeArray/<wbr/>preCorrectionActiveArray representing the
zoomed field of view.<wbr/> If <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> is set to 1.<wbr/>0 (default),<wbr/> the same
aeRegions at different <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> still represent the same parts of the
scene as they do before.<wbr/> See <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for details.<wbr/> Whether to use
activeArraySize or preCorrectionActiveArraySize still depends on distortion correction
mode.<wbr/></p>
<p>For camera devices with the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where
<a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a>
<a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> /<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> must be used as the
coordinate system for requests where <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL level representation of MeteringRectangle[] is a
int[5 * area_<wbr/>count].<wbr/>
Every five elements represent a metering region of
(xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
exclusive on xmax and ymax.<wbr/>
HAL must always report metering regions in the coordinate system of pre-correction
active array.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.aeTargetFpsRange">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as rangeInt]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Range over which the auto-exposure routine can
adjust the capture frame rate to maintain good
exposure.<wbr/></p>
</td>
<td class="entry_units">
Frames per second (FPS)
</td>
<td class="entry_range">
<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>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Only constrains auto-exposure (AE) algorithm,<wbr/> not
manual control of <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a> and
<a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>.<wbr/></p>
<p>Note that the actual achievable max framerate also depends on the minimum frame
duration of the output streams.<wbr/> The max frame rate will be
<code>min(aeTargetFpsRange.<wbr/>maxFps,<wbr/> 1 /<wbr/> max(individual stream min durations)</code>.<wbr/> For example,<wbr/>
if the application sets this key to <code>{60,<wbr/> 60}</code>,<wbr/> but the maximum minFrameDuration among
all configured streams is 33ms,<wbr/> the maximum framerate won't be 60fps,<wbr/> but will be
30fps.<wbr/></p>
<p>To start a CaptureSession with a target FPS range different from the
capture request template's default value,<wbr/> the application
is strongly recommended to call
<a href="https://developer.android.com/reference/android/hardware/camera2/params/SessionConfiguration.html#setSessionParameters">SessionConfiguration#setSessionParameters</a>
with the target fps range before creating the capture session.<wbr/> The aeTargetFpsRange is
typically a session parameter.<wbr/> Specifying it at session creation time helps avoid
session reconfiguration delays in cases like 60fps or high speed recording.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.aePrecaptureTrigger">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">IDLE (v3.2)</span>
<span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">START (v3.2)</span>
<span class="entry_type_enum_notes"><p>The precapture metering sequence will be started
by the camera device.<wbr/></p>
<p>The exact effect of the precapture trigger depends on
the current AE mode and state.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CANCEL (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device will cancel any currently active or completed
precapture metering sequence,<wbr/> the auto-exposure routine will return to its
initial state.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether the camera device will trigger a precapture
metering sequence when it processes this request.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry is normally set to IDLE,<wbr/> or is not
included at all in the request settings.<wbr/> When included and
set to START,<wbr/> the camera device will trigger the auto-exposure (AE)
precapture metering sequence.<wbr/></p>
<p>When set to CANCEL,<wbr/> the camera device will cancel any active
precapture metering trigger,<wbr/> and return to its initial AE state.<wbr/>
If a precapture metering sequence is already completed,<wbr/> and the camera
device has implicitly locked the AE for subsequent still capture,<wbr/> the
CANCEL trigger will unlock the AE and return to its initial AE state.<wbr/></p>
<p>The precapture sequence should be triggered before starting a
high-quality still capture for final metering decisions to
be made,<wbr/> and for firing pre-capture flash pulses to estimate
scene brightness and required final capture flash power,<wbr/> when
the flash is enabled.<wbr/></p>
<p>Normally,<wbr/> this entry should be set to START for only a
single request,<wbr/> and the application should wait until the
sequence completes before starting a new one.<wbr/></p>
<p>When a precapture metering sequence is finished,<wbr/> the camera device
may lock the auto-exposure routine internally to be able to accurately expose the
subsequent still capture image (<code><a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE</code>).<wbr/>
For this case,<wbr/> the AE may not resume normal scan if no subsequent still capture is
submitted.<wbr/> To ensure that the AE routine restarts normal scan,<wbr/> the application should
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
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
still capture request after the precapture sequence completes.<wbr/> Alternatively,<wbr/> for
API level 23 or newer devices,<wbr/> the CANCEL can be used to unlock the camera device
internally locked AE if the application doesn't submit a still capture request after
the AE precapture trigger.<wbr/> Note that,<wbr/> the CANCEL was added in API level 23,<wbr/> and must not
be used in devices that have earlier API levels.<wbr/></p>
<p>The exact effect of auto-exposure (AE) precapture trigger
depends on the current AE mode and state; see
<a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> for AE precapture state transition
details.<wbr/></p>
<p>On LEGACY-level devices,<wbr/> the precapture trigger is not supported;
capturing a high-resolution JPEG image will automatically trigger a
precapture sequence before the high-resolution capture,<wbr/> including
potentially firing a pre-capture flash.<wbr/></p>
<p>Using the precapture trigger and the auto-focus trigger <a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>
simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
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
example.<wbr/></p>
<p>If both the precapture and the auto-focus trigger are activated on the same request,<wbr/> then
the camera device will complete them in the optimal order for that device.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL must support triggering the AE precapture trigger while an AF trigger is active
(and vice versa),<wbr/> or at the same time as the AF trigger.<wbr/> It is acceptable for the HAL to
treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.aeState">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>ae<wbr/>State
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">INACTIVE (v3.2)</span>
<span class="entry_type_enum_notes"><p>AE is off or recently reset.<wbr/></p>
<p>When a camera device is opened,<wbr/> it starts in
this state.<wbr/> This is a transient state,<wbr/> the camera device may skip reporting
this state in capture result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SEARCHING (v3.2)</span>
<span class="entry_type_enum_notes"><p>AE doesn't yet have a good set of control values
for the current scene.<wbr/></p>
<p>This is a transient state,<wbr/> the camera device may skip
reporting this state in capture result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CONVERGED (v3.2)</span>
<span class="entry_type_enum_notes"><p>AE has a good set of control values for the
current scene.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">LOCKED (v3.2)</span>
<span class="entry_type_enum_notes"><p>AE has been locked.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FLASH_REQUIRED (v3.2)</span>
<span class="entry_type_enum_notes"><p>AE has a good set of control values,<wbr/> but flash
needs to be fired for good quality still
capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PRECAPTURE (v3.2)</span>
<span class="entry_type_enum_notes"><p>AE has been asked to do a precapture sequence
and is currently executing it.<wbr/></p>
<p>Precapture can be triggered through setting
<a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> to START.<wbr/> Currently
active and completed (if it causes camera device internal AE lock) precapture
metering sequence can be canceled through setting
<a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> to CANCEL.<wbr/></p>
<p>Once PRECAPTURE completes,<wbr/> AE will transition to CONVERGED
or FLASH_<wbr/>REQUIRED as appropriate.<wbr/> This is a transient
state,<wbr/> the camera device may skip reporting this state in
capture result.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Current state of the auto-exposure (AE) algorithm.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Switching between or enabling AE modes (<a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a>) always
resets the AE state to INACTIVE.<wbr/> Similarly,<wbr/> switching between <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>,<wbr/>
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
the algorithm states to INACTIVE.<wbr/></p>
<p>The camera device can do several state transitions between two results,<wbr/> if it is
allowed by the state transition table.<wbr/> For example: INACTIVE may never actually be
seen in a result.<wbr/></p>
<p>The state in the result is the state for this image (in sync with this image): if
AE state becomes CONVERGED,<wbr/> then the image data associated with this result should
be good to use.<wbr/></p>
<p>Below are state transition tables for different AE modes.<wbr/></p>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Camera device auto exposure algorithm is disabled</td>
</tr>
</tbody>
</table>
<p>When <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is AE_<wbr/>MODE_<wbr/>ON*:</p>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Camera device initiates AE scan</td>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;">Values changing</td>
</tr>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">Values locked</td>
</tr>
<tr>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;">Camera device finishes AE scan</td>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Good values,<wbr/> not changing</td>
</tr>
<tr>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;">Camera device finishes AE scan</td>
<td style="text-align: center;">FLASH_<wbr/>REQUIRED</td>
<td style="text-align: center;">Converged but too dark w/<wbr/>o flash</td>
</tr>
<tr>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">Values locked</td>
</tr>
<tr>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Camera device initiates AE scan</td>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;">Values changing</td>
</tr>
<tr>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">Values locked</td>
</tr>
<tr>
<td style="text-align: center;">FLASH_<wbr/>REQUIRED</td>
<td style="text-align: center;">Camera device initiates AE scan</td>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;">Values changing</td>
</tr>
<tr>
<td style="text-align: center;">FLASH_<wbr/>REQUIRED</td>
<td style="text-align: center;"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">Values locked</td>
</tr>
<tr>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;">Values not good after unlock</td>
</tr>
<tr>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Values good after unlock</td>
</tr>
<tr>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;"><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
<td style="text-align: center;">FLASH_<wbr/>REQUIRED</td>
<td style="text-align: center;">Exposure good,<wbr/> but too dark</td>
</tr>
<tr>
<td style="text-align: center;">PRECAPTURE</td>
<td style="text-align: center;">Sequence done.<wbr/> <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is OFF</td>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Ready for high-quality capture</td>
</tr>
<tr>
<td style="text-align: center;">PRECAPTURE</td>
<td style="text-align: center;">Sequence done.<wbr/> <a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a> is ON</td>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">Ready for high-quality capture</td>
</tr>
<tr>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">aeLock is ON and aePrecaptureTrigger is START</td>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">Precapture trigger is ignored when AE is already locked</td>
</tr>
<tr>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">aeLock is ON and aePrecaptureTrigger is CANCEL</td>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">Precapture trigger is ignored when AE is already locked</td>
</tr>
<tr>
<td style="text-align: center;">Any state (excluding LOCKED)</td>
<td style="text-align: center;"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is START</td>
<td style="text-align: center;">PRECAPTURE</td>
<td style="text-align: center;">Start AE precapture metering sequence</td>
</tr>
<tr>
<td style="text-align: center;">Any state (excluding LOCKED)</td>
<td style="text-align: center;"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is CANCEL</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Currently active precapture metering sequence is canceled</td>
</tr>
</tbody>
</table>
<p>If the camera device supports AE external flash mode (ON_<wbr/>EXTERNAL_<wbr/>FLASH is included in
<a href="#static_android.control.aeAvailableModes">android.<wbr/>control.<wbr/>ae<wbr/>Available<wbr/>Modes</a>),<wbr/> <a href="#dynamic_android.control.aeState">android.<wbr/>control.<wbr/>ae<wbr/>State</a> must be FLASH_<wbr/>REQUIRED after
the camera device finishes AE scan and it's too dark without flash.<wbr/></p>
<p>For the above table,<wbr/> the camera device may skip reporting any state changes that happen
without application intervention (i.<wbr/>e.<wbr/> mode switch,<wbr/> trigger,<wbr/> locking).<wbr/> Any state that
can be skipped in that manner is called a transient state.<wbr/></p>
<p>For example,<wbr/> for above AE modes (AE_<wbr/>MODE_<wbr/>ON*),<wbr/> in addition to the state transitions
listed in above table,<wbr/> it is also legal for the camera device to skip one or more
transient states between two results.<wbr/> See below table for examples:</p>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Camera device finished AE scan</td>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Values are already good,<wbr/> transient states are skipped by camera device.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">Any state (excluding LOCKED)</td>
<td style="text-align: center;"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is START,<wbr/> sequence done</td>
<td style="text-align: center;">FLASH_<wbr/>REQUIRED</td>
<td style="text-align: center;">Converged but too dark w/<wbr/>o flash after a precapture sequence,<wbr/> transient states are skipped by camera device.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">Any state (excluding LOCKED)</td>
<td style="text-align: center;"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is START,<wbr/> sequence done</td>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Converged after a precapture sequence,<wbr/> transient states are skipped by camera device.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">Any state (excluding LOCKED)</td>
<td style="text-align: center;"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is CANCEL,<wbr/> converged</td>
<td style="text-align: center;">FLASH_<wbr/>REQUIRED</td>
<td style="text-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>
</tr>
<tr>
<td style="text-align: center;">Any state (excluding LOCKED)</td>
<td style="text-align: center;"><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a> is CANCEL,<wbr/> converged</td>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Converged after a precapture sequences canceled,<wbr/> transient states are skipped by camera device.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Camera device finished AE scan</td>
<td style="text-align: center;">FLASH_<wbr/>REQUIRED</td>
<td style="text-align: center;">Converged but too dark w/<wbr/>o flash after a new scan,<wbr/> transient states are skipped by camera device.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">FLASH_<wbr/>REQUIRED</td>
<td style="text-align: center;">Camera device finished AE scan</td>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Converged after a new scan,<wbr/> transient states are skipped by camera device.<wbr/></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.afMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>af<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>The auto-focus routine does not control the lens;
<a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> is controlled by the
application.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.2)</span>
<span class="entry_type_enum_notes"><p>Basic automatic focus mode.<wbr/></p>
<p>In this mode,<wbr/> the lens does not move unless
the autofocus trigger action is called.<wbr/> When that trigger
is activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/></p>
<p>Always supported if lens is not fixed focus.<wbr/></p>
<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
is fixed-focus.<wbr/></p>
<p>Triggering AF_<wbr/>CANCEL resets the lens position to default,<wbr/>
and sets the AF state to INACTIVE.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MACRO (v3.2)</span>
<span class="entry_type_enum_notes"><p>Close-up focusing mode.<wbr/></p>
<p>In this mode,<wbr/> the lens does not move unless the
autofocus trigger action is called.<wbr/> When that trigger is
activated,<wbr/> AF will transition to ACTIVE_<wbr/>SCAN,<wbr/> then to
the outcome of the scan (FOCUSED or NOT_<wbr/>FOCUSED).<wbr/> This
mode is optimized for focusing on objects very close to
the camera.<wbr/></p>
<p>When that trigger is activated,<wbr/> AF will transition to
ACTIVE_<wbr/>SCAN,<wbr/> then to the outcome of the scan (FOCUSED or
NOT_<wbr/>FOCUSED).<wbr/> Triggering cancel AF resets the lens
position to default,<wbr/> and sets the AF state to
INACTIVE.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CONTINUOUS_VIDEO (v3.2)</span>
<span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
position continually to attempt to provide a
constantly-in-focus image stream.<wbr/></p>
<p>The focusing behavior should be suitable for good quality
video recording; typically this means slower focus
movement and no overshoots.<wbr/> When the AF trigger is not
involved,<wbr/> the AF algorithm should start in INACTIVE state,<wbr/>
and then transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED
states as appropriate.<wbr/> When the AF trigger is activated,<wbr/>
the algorithm should immediately transition into
AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
lens position until a cancel AF trigger is received.<wbr/></p>
<p>Once cancel is received,<wbr/> the algorithm should transition
back to INACTIVE and resume passive scan.<wbr/> Note that this
behavior is not identical to CONTINUOUS_<wbr/>PICTURE,<wbr/> since an
ongoing PASSIVE_<wbr/>SCAN must immediately be
canceled.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CONTINUOUS_PICTURE (v3.2)</span>
<span class="entry_type_enum_notes"><p>In this mode,<wbr/> the AF algorithm modifies the lens
position continually to attempt to provide a
constantly-in-focus image stream.<wbr/></p>
<p>The focusing behavior should be suitable for still image
capture; typically this means focusing as fast as
possible.<wbr/> When the AF trigger is not involved,<wbr/> the AF
algorithm should start in INACTIVE state,<wbr/> and then
transition into PASSIVE_<wbr/>SCAN and PASSIVE_<wbr/>FOCUSED states as
appropriate as it attempts to maintain focus.<wbr/> When the AF
trigger is activated,<wbr/> the algorithm should finish its
PASSIVE_<wbr/>SCAN if active,<wbr/> and then transition into
AF_<wbr/>FOCUSED or AF_<wbr/>NOT_<wbr/>FOCUSED as appropriate,<wbr/> and lock the
lens position until a cancel AF trigger is received.<wbr/></p>
<p>When the AF cancel trigger is activated,<wbr/> the algorithm
should transition back to INACTIVE and then act as if it
has just been started.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EDOF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Extended depth of field (digital focus) mode.<wbr/></p>
<p>The camera device will produce images with an extended
depth of field automatically; no special focusing
operations need to be done before taking a picture.<wbr/></p>
<p>AF triggers are ignored,<wbr/> and the AF state will always be
INACTIVE.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether auto-focus (AF) is currently enabled,<wbr/> and what
mode it is set to.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.afAvailableModes">android.<wbr/>control.<wbr/>af<wbr/>Available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> = AUTO and the lens is not fixed focus
(i.<wbr/>e.<wbr/> <code><a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> &gt; 0</code>).<wbr/> Also note that
when <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/> the behavior of AF is device
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
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>
<p>If the lens is controlled by the camera device auto-focus algorithm,<wbr/>
the camera device will report the current AF status in <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>
in result metadata.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When afMode is AUTO or MACRO,<wbr/> the lens must not move until an AF trigger is sent in a
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
up with either FOCUSED_<wbr/>LOCKED or NOT_<wbr/>FOCUSED_<wbr/>LOCKED state (see
<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
locked and will not move.<wbr/> If camera movement (e.<wbr/>g.<wbr/> tilting camera) causes the lens to move
after the lens is locked,<wbr/> the HAL must compensate this movement appropriately such that
the same focal plane remains in focus.<wbr/></p>
<p>When afMode is one of the continuous auto focus modes,<wbr/> the HAL is free to start a AF
scan whenever it's not locked.<wbr/> When the lens is locked after an AF trigger
(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
same lock behavior as above.<wbr/></p>
<p>When afMode is OFF,<wbr/> the application controls focus manually.<wbr/> The accuracy of the
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/>
However,<wbr/> the lens must not move regardless of the camera movement for any focus distance
manual control.<wbr/></p>
<p>To put this in concrete terms,<wbr/> if the camera has lens elements which may move based on
camera orientation or motion (e.<wbr/>g.<wbr/> due to gravity),<wbr/> then the HAL must drive the lens to
remain in a fixed position invariant to the camera's orientation or motion,<wbr/> for example,<wbr/>
by using accelerometer measurements in the lens control logic.<wbr/> This is a typical issue
that will arise on camera modules with open-loop VCMs.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.afRegions">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>af<wbr/>Regions
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5 x area_count
</span>
<span class="entry_type_visibility"> [public as meteringRectangle]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of metering areas to use for auto-focus.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size or
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size depending on
distortion correction capability and mode
</td>
<td class="entry_range">
<p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> or <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>
depending on distortion correction capability and mode</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Not available if <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a> is 0.<wbr/>
Otherwise will always be present.<wbr/></p>
<p>The maximum number of focus areas supported by the device is determined by the value
of <a href="#static_android.control.maxRegionsAf">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Af</a>.<wbr/></p>
<p>For devices not supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system always follows that of <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> with (0,<wbr/>0) being
the top-left pixel in the active pixel array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>For devices supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system depends on the mode being set.<wbr/>
When the distortion correction mode is OFF,<wbr/> the coordinate system follows
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> with
<code>(0,<wbr/> 0)</code> being the top-left pixel of the pre-correction active array,<wbr/> and
(<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right
pixel in the pre-correction active pixel array.<wbr/>
When the distortion correction mode is not OFF,<wbr/> the coordinate system follows
<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 top-left pixel of the active array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>The weight must be within <code>[0,<wbr/> 1000]</code>,<wbr/> and represents a weight
for every pixel in the area.<wbr/> This means that a large metering area
with the same weight as a smaller area will have more effect in
the metering result.<wbr/> Metering areas can partially overlap and the
camera device will add the weights in the overlap region.<wbr/></p>
<p>The weights are relative to weights of other metering regions,<wbr/> so if only one region
is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with 0 weight is
ignored.<wbr/></p>
<p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
camera device.<wbr/> The capture result will either be a zero weight region as well,<wbr/> or
the region selected by the camera device as the focus area of interest.<wbr/></p>
<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
capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
region and output only the intersection rectangle as the metering region in the result
metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
not reported in the result metadata.<wbr/></p>
<p>When setting the AF metering regions,<wbr/> the application must consider the additional
crop resulted from the aspect ratio differences between the preview stream and
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/> For example,<wbr/> if the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> is the full
active array size with 4:3 aspect ratio,<wbr/> and the preview stream is 16:9,<wbr/>
the boundary of AF regions will be [0,<wbr/> y_<wbr/>crop] and
[active_<wbr/>width,<wbr/> active_<wbr/>height - 2 * y_<wbr/>crop] rather than [0,<wbr/> 0] and
[active_<wbr/>width,<wbr/> active_<wbr/>height],<wbr/> where y_<wbr/>crop is the additional crop due to aspect ratio
mismatch.<wbr/></p>
<p>Starting from API level 30,<wbr/> the coordinate system of activeArraySize or
preCorrectionActiveArraySize is used to represent post-zoomRatio field of view,<wbr/> not
pre-zoom field of view.<wbr/> This means that the same afRegions values at different
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> represent different parts of the scene.<wbr/> The afRegions
coordinates are relative to the activeArray/<wbr/>preCorrectionActiveArray representing the
zoomed field of view.<wbr/> If <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> is set to 1.<wbr/>0 (default),<wbr/> the same
afRegions at different <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> still represent the same parts of the
scene as they do before.<wbr/> See <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for details.<wbr/> Whether to use
activeArraySize or preCorrectionActiveArraySize still depends on distortion correction
mode.<wbr/></p>
<p>For camera devices with the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where
<a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a>,<wbr/>
<a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> /<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> must be used as the
coordinate system for requests where <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL level representation of MeteringRectangle[] is a
int[5 * area_<wbr/>count].<wbr/>
Every five elements represent a metering region of
(xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
exclusive on xmax and ymax.<wbr/>
HAL must always report metering regions in the coordinate system of pre-correction
active array.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.afTrigger">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>af<wbr/>Trigger
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">IDLE (v3.2)</span>
<span class="entry_type_enum_notes"><p>The trigger is idle.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">START (v3.2)</span>
<span class="entry_type_enum_notes"><p>Autofocus will trigger now.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CANCEL (v3.2)</span>
<span class="entry_type_enum_notes"><p>Autofocus will return to its initial
state,<wbr/> and cancel any currently active trigger.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether the camera device will trigger autofocus for this request.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry is normally set to IDLE,<wbr/> or is not
included at all in the request settings.<wbr/></p>
<p>When included and set to START,<wbr/> the camera device will trigger the
autofocus algorithm.<wbr/> If autofocus is disabled,<wbr/> this trigger has no effect.<wbr/></p>
<p>When set to CANCEL,<wbr/> the camera device will cancel any active trigger,<wbr/>
and return to its initial AF state.<wbr/></p>
<p>Generally,<wbr/> applications should set this entry to START or CANCEL for only a
single capture,<wbr/> and then return it to IDLE (or not set at all).<wbr/> Specifying
START for multiple captures in a row means restarting the AF operation over
and over again.<wbr/></p>
<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>
<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>
simultaneously is allowed.<wbr/> However,<wbr/> since these triggers often require cooperation between
the auto-focus and auto-exposure routines (for example,<wbr/> the may need to be enabled for a
focus sweep),<wbr/> the camera device may delay acting on a later trigger until the previous
trigger has been fully handled.<wbr/> This may lead to longer intervals between the trigger and
changes to <a href="#dynamic_android.control.afState">android.<wbr/>control.<wbr/>af<wbr/>State</a>,<wbr/> for example.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL must support triggering the AF trigger while an AE precapture trigger is active
(and vice versa),<wbr/> or at the same time as the AE trigger.<wbr/> It is acceptable for the HAL to
treat these as two consecutive triggers,<wbr/> for example handling the AF trigger and then the
AE trigger.<wbr/> Or the HAL may choose to optimize the case with both triggers fired at once,<wbr/>
to minimize the latency for converging both focus and exposure/<wbr/>flash usage.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.afState">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>af<wbr/>State
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">INACTIVE (v3.2)</span>
<span class="entry_type_enum_notes"><p>AF is off or has not yet tried to scan/<wbr/>been asked
to scan.<wbr/></p>
<p>When a camera device is opened,<wbr/> it starts in this
state.<wbr/> This is a transient state,<wbr/> the camera device may
skip reporting this state in capture
result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PASSIVE_SCAN (v3.2)</span>
<span class="entry_type_enum_notes"><p>AF is currently performing an AF scan initiated the
camera device in a continuous autofocus mode.<wbr/></p>
<p>Only used by CONTINUOUS_<wbr/>* AF modes.<wbr/> This is a transient
state,<wbr/> the camera device may skip reporting this state in
capture result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PASSIVE_FOCUSED (v3.2)</span>
<span class="entry_type_enum_notes"><p>AF currently believes it is in focus,<wbr/> but may
restart scanning at any time.<wbr/></p>
<p>Only used by CONTINUOUS_<wbr/>* AF modes.<wbr/> This is a transient
state,<wbr/> the camera device may skip reporting this state in
capture result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ACTIVE_SCAN (v3.2)</span>
<span class="entry_type_enum_notes"><p>AF is performing an AF scan because it was
triggered by AF trigger.<wbr/></p>
<p>Only used by AUTO or MACRO AF modes.<wbr/> This is a transient
state,<wbr/> the camera device may skip reporting this state in
capture result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FOCUSED_LOCKED (v3.2)</span>
<span class="entry_type_enum_notes"><p>AF believes it is focused correctly and has locked
focus.<wbr/></p>
<p>This state is reached only after an explicit START AF trigger has been
sent (<a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>),<wbr/> when good focus has been obtained.<wbr/></p>
<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
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>
</li>
<li>
<span class="entry_type_enum_name">NOT_FOCUSED_LOCKED (v3.2)</span>
<span class="entry_type_enum_notes"><p>AF has failed to focus successfully and has locked
focus.<wbr/></p>
<p>This state is reached only after an explicit START AF trigger has been
sent (<a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a>),<wbr/> when good focus cannot be obtained.<wbr/></p>
<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
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>
</li>
<li>
<span class="entry_type_enum_name">PASSIVE_UNFOCUSED (v3.2)</span>
<span class="entry_type_enum_notes"><p>AF finished a passive scan without finding focus,<wbr/>
and may restart scanning at any time.<wbr/></p>
<p>Only used by CONTINUOUS_<wbr/>* AF modes.<wbr/> This is a transient state,<wbr/> the camera
device may skip reporting this state in capture result.<wbr/></p>
<p>LEGACY camera devices do not support this state.<wbr/> When a passive
scan has finished,<wbr/> it will always go to PASSIVE_<wbr/>FOCUSED.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Current state of auto-focus (AF) algorithm.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Switching between or enabling AF modes (<a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a>) always
resets the AF state to INACTIVE.<wbr/> Similarly,<wbr/> switching between <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>,<wbr/>
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
the algorithm states to INACTIVE.<wbr/></p>
<p>The camera device can do several state transitions between two results,<wbr/> if it is
allowed by the state transition table.<wbr/> For example: INACTIVE may never actually be
seen in a result.<wbr/></p>
<p>The state in the result is the state for this image (in sync with this image): if
AF state becomes FOCUSED,<wbr/> then the image data associated with this result should
be sharp.<wbr/></p>
<p>Below are state transition tables for different AF modes.<wbr/></p>
<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>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Never changes</td>
</tr>
</tbody>
</table>
<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>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">ACTIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Start AF sweep,<wbr/> Lens now moving</td>
</tr>
<tr>
<td style="text-align: center;">ACTIVE_<wbr/>SCAN</td>
<td style="text-align: center;">AF sweep done</td>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Focused,<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">ACTIVE_<wbr/>SCAN</td>
<td style="text-align: center;">AF sweep done</td>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Not focused,<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">ACTIVE_<wbr/>SCAN</td>
<td style="text-align: center;">AF_<wbr/>CANCEL</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Cancel/<wbr/>reset AF,<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>CANCEL</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Cancel/<wbr/>reset AF</td>
</tr>
<tr>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">ACTIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Start new sweep,<wbr/> Lens now moving</td>
</tr>
<tr>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>CANCEL</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Cancel/<wbr/>reset AF</td>
</tr>
<tr>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">ACTIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Start new sweep,<wbr/> Lens now moving</td>
</tr>
<tr>
<td style="text-align: center;">Any state</td>
<td style="text-align: center;">Mode change</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;"></td>
</tr>
</tbody>
</table>
<p>For the above table,<wbr/> the camera device may skip reporting any state changes that happen
without application intervention (i.<wbr/>e.<wbr/> mode switch,<wbr/> trigger,<wbr/> locking).<wbr/> Any state that
can be skipped in that manner is called a transient state.<wbr/></p>
<p>For example,<wbr/> for these AF modes (AF_<wbr/>MODE_<wbr/>AUTO and AF_<wbr/>MODE_<wbr/>MACRO),<wbr/> in addition to the
state transitions listed in above table,<wbr/> it is also legal for the camera device to skip
one or more transient states between two results.<wbr/> See below table for examples:</p>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Focus is already good or good after a scan,<wbr/> lens is now locked.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Focus failed after a scan,<wbr/> lens is now locked.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Focus is already good or good after a scan,<wbr/> lens is now locked.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Focus is good after a scan,<wbr/> lens is not locked.<wbr/></td>
</tr>
</tbody>
</table>
<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>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Camera device initiates new scan</td>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Start AF scan,<wbr/> Lens now moving</td>
</tr>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF state query,<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Camera device completes current scan</td>
<td style="text-align: center;">PASSIVE_<wbr/>FOCUSED</td>
<td style="text-align: center;">End AF scan,<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Camera device fails current scan</td>
<td style="text-align: center;">PASSIVE_<wbr/>UNFOCUSED</td>
<td style="text-align: center;">End AF scan,<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Immediate transition,<wbr/> if focus is good.<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Immediate transition,<wbr/> if focus is bad.<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">AF_<wbr/>CANCEL</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Reset lens position,<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>FOCUSED</td>
<td style="text-align: center;">Camera device initiates new scan</td>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Start AF scan,<wbr/> Lens now moving</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>UNFOCUSED</td>
<td style="text-align: center;">Camera device initiates new scan</td>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Start AF scan,<wbr/> Lens now moving</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>FOCUSED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Immediate transition,<wbr/> lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>UNFOCUSED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Immediate transition,<wbr/> lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">No effect</td>
</tr>
<tr>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>CANCEL</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Restart AF scan</td>
</tr>
<tr>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">No effect</td>
</tr>
<tr>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>CANCEL</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Restart AF scan</td>
</tr>
</tbody>
</table>
<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>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Camera device initiates new scan</td>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Start AF scan,<wbr/> Lens now moving</td>
</tr>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF state query,<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Camera device completes current scan</td>
<td style="text-align: center;">PASSIVE_<wbr/>FOCUSED</td>
<td style="text-align: center;">End AF scan,<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Camera device fails current scan</td>
<td style="text-align: center;">PASSIVE_<wbr/>UNFOCUSED</td>
<td style="text-align: center;">End AF scan,<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Eventual transition once the focus is good.<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Eventual transition if cannot find focus.<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">AF_<wbr/>CANCEL</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Reset lens position,<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>FOCUSED</td>
<td style="text-align: center;">Camera device initiates new scan</td>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Start AF scan,<wbr/> Lens now moving</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>UNFOCUSED</td>
<td style="text-align: center;">Camera device initiates new scan</td>
<td style="text-align: center;">PASSIVE_<wbr/>SCAN</td>
<td style="text-align: center;">Start AF scan,<wbr/> Lens now moving</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>FOCUSED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Immediate trans.<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">PASSIVE_<wbr/>UNFOCUSED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">Immediate trans.<wbr/> Lens now locked</td>
</tr>
<tr>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">No effect</td>
</tr>
<tr>
<td style="text-align: center;">FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>CANCEL</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Restart AF scan</td>
</tr>
<tr>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">No effect</td>
</tr>
<tr>
<td style="text-align: center;">NOT_<wbr/>FOCUSED_<wbr/>LOCKED</td>
<td style="text-align: center;">AF_<wbr/>CANCEL</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Restart AF scan</td>
</tr>
</tbody>
</table>
<p>When switch between AF_<wbr/>MODE_<wbr/>CONTINUOUS_<wbr/>* (CAF modes) and AF_<wbr/>MODE_<wbr/>AUTO/<wbr/>AF_<wbr/>MODE_<wbr/>MACRO
(AUTO modes),<wbr/> the initial INACTIVE or PASSIVE_<wbr/>SCAN states may be skipped by the
camera device.<wbr/> When a trigger is included in a mode switch request,<wbr/> the trigger
will be evaluated in the context of the new mode in the request.<wbr/>
See below table for examples:</p>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">any state</td>
<td style="text-align: center;">CAF--&gt;AUTO mode switch</td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Mode switch without trigger,<wbr/> initial state must be INACTIVE</td>
</tr>
<tr>
<td style="text-align: center;">any state</td>
<td style="text-align: center;">CAF--&gt;AUTO mode switch with AF_<wbr/>TRIGGER</td>
<td style="text-align: center;">trigger-reachable states from INACTIVE</td>
<td style="text-align: center;">Mode switch with trigger,<wbr/> INACTIVE is skipped</td>
</tr>
<tr>
<td style="text-align: center;">any state</td>
<td style="text-align: center;">AUTO--&gt;CAF mode switch</td>
<td style="text-align: center;">passively reachable states from INACTIVE</td>
<td style="text-align: center;">Mode switch without trigger,<wbr/> passive transient state is skipped</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.afTriggerId">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>control.<wbr/>af<wbr/>Trigger<wbr/>Id
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The ID sent with the latest
CAMERA2_<wbr/>TRIGGER_<wbr/>AUTOFOCUS call</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Must be 0 if no CAMERA2_<wbr/>TRIGGER_<wbr/>AUTOFOCUS trigger
received yet by HAL.<wbr/> Always updated even if AF algorithm
ignores the trigger</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.awbLock">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>awb<wbr/>Lock
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Auto-white balance lock is disabled; the AWB
algorithm is free to update its parameters if in AUTO
mode.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>Auto-white balance lock is enabled; the AWB
algorithm will not update its parameters while the lock
is active.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether auto-white balance (AWB) is currently locked to its
latest calculated values.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to <code>true</code> (ON),<wbr/> the AWB algorithm is locked to its latest parameters,<wbr/>
and will not change color balance settings until the lock is set to <code>false</code> (OFF).<wbr/></p>
<p>Since the camera device has a pipeline of in-flight requests,<wbr/> the settings that
get locked do not necessarily correspond to the settings that were present in the
latest capture result received from the camera device,<wbr/> since additional captures
and AWB updates may have occurred even before the result was sent out.<wbr/> If an
application is switching between automatic and manual control and wishes to eliminate
any flicker during the switch,<wbr/> the following procedure is recommended:</p>
<ol>
<li>Starting in auto-AWB mode:</li>
<li>Lock AWB</li>
<li>Wait for the first result to be output that has the AWB locked</li>
<li>Copy AWB settings from that result into a request,<wbr/> set the request to manual AWB</li>
<li>Submit the capture request,<wbr/> proceed to run manual AWB as desired.<wbr/></li>
</ol>
<p>Note that AWB lock is only meaningful when
<a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> is in the AUTO mode; in other modes,<wbr/>
AWB is already fixed to a specific setting.<wbr/></p>
<p>Some LEGACY devices may not support ON; the value is then overridden to OFF.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.awbMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>awb<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled.<wbr/></p>
<p>The application-selected color transform matrix
(<a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>) and gains
(<a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a>) are used by the camera
device for manual white balance control.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is active.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INCANDESCENT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses incandescent light as the assumed scene
illumination for white balance.<wbr/></p>
<p>While the exact white balance transforms are up to the
camera device,<wbr/> they will approximately match the CIE
standard illuminant A.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FLUORESCENT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses fluorescent light as the assumed scene
illumination for white balance.<wbr/></p>
<p>While the exact white balance transforms are up to the
camera device,<wbr/> they will approximately match the CIE
standard illuminant F2.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">WARM_FLUORESCENT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses warm fluorescent light as the assumed scene
illumination for white balance.<wbr/></p>
<p>While the exact white balance transforms are up to the
camera device,<wbr/> they will approximately match the CIE
standard illuminant F4.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DAYLIGHT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses daylight light as the assumed scene
illumination for white balance.<wbr/></p>
<p>While the exact white balance transforms are up to the
camera device,<wbr/> they will approximately match the CIE
standard illuminant D65.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CLOUDY_DAYLIGHT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses cloudy daylight light as the assumed scene
illumination for white balance.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">TWILIGHT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses twilight light as the assumed scene
illumination for white balance.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SHADE (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device's auto-white balance routine is disabled;
the camera device uses shade light as the assumed scene
illumination for white balance.<wbr/></p>
<p>The application's values for <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> are ignored.<wbr/>
For devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability,<wbr/> the
values used by the camera device for the transform and gains
will be available in the capture result for this request.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether auto-white balance (AWB) is currently setting the color
transform fields,<wbr/> and what its illumination target
is.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.awbAvailableModes">android.<wbr/>control.<wbr/>awb<wbr/>Available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control is only effective if <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> is AUTO.<wbr/></p>
<p>When set to the AUTO mode,<wbr/> the camera device's auto-white balance
routine is enabled,<wbr/> overriding the application's selected
<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
<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>
is OFF,<wbr/> the behavior of AWB is device dependent.<wbr/> It is recommended to
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
setting AE mode to OFF.<wbr/></p>
<p>When set to the OFF mode,<wbr/> the camera device's auto-white balance
routine is disabled.<wbr/> The application manually controls the white
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>
and <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a>.<wbr/></p>
<p>When set to any other modes,<wbr/> the camera device's auto-white
balance routine is disabled.<wbr/> The camera device uses each
particular illumination target for white balance
adjustment.<wbr/> The application's values for
<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
<a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> are ignored.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.awbRegions">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>awb<wbr/>Regions
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5 x area_count
</span>
<span class="entry_type_visibility"> [public as meteringRectangle]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of metering areas to use for auto-white-balance illuminant
estimation.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates within android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size or
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size depending on
distortion correction capability and mode
</td>
<td class="entry_range">
<p>Coordinates must be between <code>[(0,<wbr/>0),<wbr/> (width,<wbr/> height))</code> of
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> or <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>
depending on distortion correction capability and mode</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Not available if <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a> is 0.<wbr/>
Otherwise will always be present.<wbr/></p>
<p>The maximum number of regions supported by the device is determined by the value
of <a href="#static_android.control.maxRegionsAwb">android.<wbr/>control.<wbr/>max<wbr/>Regions<wbr/>Awb</a>.<wbr/></p>
<p>For devices not supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system always follows that of <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> with (0,<wbr/>0) being
the top-left pixel in the active pixel array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>For devices supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system depends on the mode being set.<wbr/>
When the distortion correction mode is OFF,<wbr/> the coordinate system follows
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> with
<code>(0,<wbr/> 0)</code> being the top-left pixel of the pre-correction active array,<wbr/> and
(<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right
pixel in the pre-correction active pixel array.<wbr/>
When the distortion correction mode is not OFF,<wbr/> the coordinate system follows
<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 top-left pixel of the active array,<wbr/> and
(<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>width - 1,<wbr/>
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/>height - 1) being the bottom-right pixel in the
active pixel array.<wbr/></p>
<p>The weight must range from 0 to 1000,<wbr/> and represents a weight
for every pixel in the area.<wbr/> This means that a large metering area
with the same weight as a smaller area will have more effect in
the metering result.<wbr/> Metering areas can partially overlap and the
camera device will add the weights in the overlap region.<wbr/></p>
<p>The weights are relative to weights of other white balance metering regions,<wbr/> so if
only one region is used,<wbr/> all non-zero weights will have the same effect.<wbr/> A region with
0 weight is ignored.<wbr/></p>
<p>If all regions have 0 weight,<wbr/> then no specific metering area needs to be used by the
camera device.<wbr/></p>
<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
capture result metadata,<wbr/> the camera device will ignore the sections outside the crop
region and output only the intersection rectangle as the metering region in the result
metadata.<wbr/> If the region is entirely outside the crop region,<wbr/> it will be ignored and
not reported in the result metadata.<wbr/></p>
<p>When setting the AWB metering regions,<wbr/> the application must consider the additional
crop resulted from the aspect ratio differences between the preview stream and
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/> For example,<wbr/> if the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> is the full
active array size with 4:3 aspect ratio,<wbr/> and the preview stream is 16:9,<wbr/>
the boundary of AWB regions will be [0,<wbr/> y_<wbr/>crop] and
[active_<wbr/>width,<wbr/> active_<wbr/>height - 2 * y_<wbr/>crop] rather than [0,<wbr/> 0] and
[active_<wbr/>width,<wbr/> active_<wbr/>height],<wbr/> where y_<wbr/>crop is the additional crop due to aspect ratio
mismatch.<wbr/></p>
<p>Starting from API level 30,<wbr/> the coordinate system of activeArraySize or
preCorrectionActiveArraySize is used to represent post-zoomRatio field of view,<wbr/> not
pre-zoom field of view.<wbr/> This means that the same awbRegions values at different
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> represent different parts of the scene.<wbr/> The awbRegions
coordinates are relative to the activeArray/<wbr/>preCorrectionActiveArray representing the
zoomed field of view.<wbr/> If <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> is set to 1.<wbr/>0 (default),<wbr/> the same
awbRegions at different <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> still represent the same parts of
the scene as they do before.<wbr/> See <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for details.<wbr/> Whether to use
activeArraySize or preCorrectionActiveArraySize still depends on distortion correction
mode.<wbr/></p>
<p>For camera devices with the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where
<a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a>,<wbr/>
<a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> /<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> must be used as the
coordinate system for requests where <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL level representation of MeteringRectangle[] is a
int[5 * area_<wbr/>count].<wbr/>
Every five elements represent a metering region of
(xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax,<wbr/> weight).<wbr/>
The rectangle is defined to be inclusive on xmin and ymin,<wbr/> but
exclusive on xmax and ymax.<wbr/>
HAL must always report metering regions in the coordinate system of pre-correction
active array.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.captureIntent">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>capture<wbr/>Intent
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">CUSTOM (v3.2)</span>
<span class="entry_type_enum_notes"><p>The goal of this request doesn't fall into the other
categories.<wbr/> The camera device will default to preview-like
behavior.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PREVIEW (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for a preview-like use case.<wbr/></p>
<p>The precapture trigger may be used to start off a metering
w/<wbr/>flash sequence.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">STILL_CAPTURE (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for a still capture-type
use case.<wbr/></p>
<p>If the flash unit is under automatic control,<wbr/> it may fire as needed.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VIDEO_RECORD (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for a video recording
use case.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VIDEO_SNAPSHOT (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for a video snapshot (still
image while recording video) use case.<wbr/></p>
<p>The camera device should take the highest-quality image
possible (given the other settings) without disrupting the
frame rate of video recording.<wbr/> </p></span>
</li>
<li>
<span class="entry_type_enum_name">ZERO_SHUTTER_LAG (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for a ZSL usecase; the
application will stream full-resolution images and
reprocess one or several later for a final
capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MANUAL (v3.2)</span>
<span class="entry_type_enum_notes"><p>This request is for manual capture use case where
the applications want to directly control the capture parameters.<wbr/></p>
<p>For example,<wbr/> the application may wish to manually control
<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>
</li>
<li>
<span class="entry_type_enum_name">MOTION_TRACKING (v3.3)</span>
<span class="entry_type_enum_notes"><p>This request is for a motion tracking use case,<wbr/> where
the application will use camera and inertial sensor data to
locate and track objects in the world.<wbr/></p>
<p>The camera device auto-exposure routine will limit the exposure time
of the camera to no more than 20 milliseconds,<wbr/> to minimize motion blur.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Information to the camera device 3A (auto-exposure,<wbr/>
auto-focus,<wbr/> auto-white balance) routines about the purpose
of this capture,<wbr/> to help the camera device to decide optimal 3A
strategy.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control (except for MANUAL) is only effective if
<code><a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> != OFF</code> and any 3A routine is active.<wbr/></p>
<p>All intents are supported by all devices,<wbr/> except that:</p>
<ul>
<li>ZERO_<wbr/>SHUTTER_<wbr/>LAG will be supported if <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
PRIVATE_<wbr/>REPROCESSING or YUV_<wbr/>REPROCESSING.<wbr/></li>
<li>MANUAL will be supported if <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
MANUAL_<wbr/>SENSOR.<wbr/></li>
<li>MOTION_<wbr/>TRACKING will be supported if <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
MOTION_<wbr/>TRACKING.<wbr/></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.awbState">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>awb<wbr/>State
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">INACTIVE (v3.2)</span>
<span class="entry_type_enum_notes"><p>AWB is not in auto mode,<wbr/> or has not yet started metering.<wbr/></p>
<p>When a camera device is opened,<wbr/> it starts in this
state.<wbr/> This is a transient state,<wbr/> the camera device may
skip reporting this state in capture
result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SEARCHING (v3.2)</span>
<span class="entry_type_enum_notes"><p>AWB doesn't yet have a good set of control
values for the current scene.<wbr/></p>
<p>This is a transient state,<wbr/> the camera device
may skip reporting this state in capture result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CONVERGED (v3.2)</span>
<span class="entry_type_enum_notes"><p>AWB has a good set of control values for the
current scene.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">LOCKED (v3.2)</span>
<span class="entry_type_enum_notes"><p>AWB has been locked.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Current state of auto-white balance (AWB) algorithm.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Switching between or enabling AWB modes (<a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>) always
resets the AWB state to INACTIVE.<wbr/> Similarly,<wbr/> switching between <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a>,<wbr/>
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
the algorithm states to INACTIVE.<wbr/></p>
<p>The camera device can do several state transitions between two results,<wbr/> if it is
allowed by the state transition table.<wbr/> So INACTIVE may never actually be seen in
a result.<wbr/></p>
<p>The state in the result is the state for this image (in sync with this image): if
AWB state becomes CONVERGED,<wbr/> then the image data associated with this result should
be good to use.<wbr/></p>
<p>Below are state transition tables for different AWB modes.<wbr/></p>
<p>When <code><a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> != AWB_<wbr/>MODE_<wbr/>AUTO</code>:</p>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Camera device auto white balance algorithm is disabled</td>
</tr>
</tbody>
</table>
<p>When <a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a> is AWB_<wbr/>MODE_<wbr/>AUTO:</p>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Camera device initiates AWB scan</td>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;">Values changing</td>
</tr>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is ON</td>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">Values locked</td>
</tr>
<tr>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;">Camera device finishes AWB scan</td>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Good values,<wbr/> not changing</td>
</tr>
<tr>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is ON</td>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">Values locked</td>
</tr>
<tr>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Camera device initiates AWB scan</td>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;">Values changing</td>
</tr>
<tr>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is ON</td>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;">Values locked</td>
</tr>
<tr>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is OFF</td>
<td style="text-align: center;">SEARCHING</td>
<td style="text-align: center;">Values not good after unlock</td>
</tr>
</tbody>
</table>
<p>For the above table,<wbr/> the camera device may skip reporting any state changes that happen
without application intervention (i.<wbr/>e.<wbr/> mode switch,<wbr/> trigger,<wbr/> locking).<wbr/> Any state that
can be skipped in that manner is called a transient state.<wbr/></p>
<p>For example,<wbr/> for this AWB mode (AWB_<wbr/>MODE_<wbr/>AUTO),<wbr/> in addition to the state transitions
listed in above table,<wbr/> it is also legal for the camera device to skip one or more
transient states between two results.<wbr/> See below table for examples:</p>
<table>
<thead>
<tr>
<th style="text-align: center;">State</th>
<th style="text-align: center;">Transition Cause</th>
<th style="text-align: center;">New State</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">INACTIVE</td>
<td style="text-align: center;">Camera device finished AWB scan</td>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Values are already good,<wbr/> transient states are skipped by camera device.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">LOCKED</td>
<td style="text-align: center;"><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a> is OFF</td>
<td style="text-align: center;">CONVERGED</td>
<td style="text-align: center;">Values good after unlock,<wbr/> transient states are skipped by camera device.<wbr/></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.effectMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>effect<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No color effect will be applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MONO (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "monocolor" effect where the image is mapped into
a single color.<wbr/></p>
<p>This will typically be grayscale.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">NEGATIVE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "photo-negative" effect where the image's colors
are inverted.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SOLARIZE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "solarisation" effect (Sabattier effect) where the
image is wholly or partially reversed in
tone.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SEPIA (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "sepia" effect where the image is mapped into warm
gray,<wbr/> red,<wbr/> and brown tones.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">POSTERIZE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "posterization" effect where the image uses
discrete regions of tone rather than a continuous
gradient of tones.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">WHITEBOARD (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "whiteboard" effect where the image is typically displayed
as regions of white,<wbr/> with black or grey details.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BLACKBOARD (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>A "blackboard" effect where the image is typically displayed
as regions of black,<wbr/> with white or grey details.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AQUA (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>An "aqua" effect where a blue hue is added to the image.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A special color effect to apply.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.availableEffects">android.<wbr/>control.<wbr/>available<wbr/>Effects</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When this mode is set,<wbr/> a color effect will be applied
to images produced by the camera device.<wbr/> The interpretation
and implementation of these color effects is left to the
implementor of the camera device,<wbr/> and should not be
depended on to be consistent (or present) across all
devices.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Full application control of pipeline.<wbr/></p>
<p>All control by the device's metering and focusing (3A)
routines is disabled,<wbr/> and no other settings in
android.<wbr/>control.<wbr/>* have any effect,<wbr/> except that
<a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> may be used by the camera
device to select post-processing values for processing
blocks that do not allow for manual control,<wbr/> or are not
exposed by the camera API.<wbr/></p>
<p>However,<wbr/> the camera device's 3A routines may continue to
collect statistics and update their internal state so that
when control is switched to AUTO mode,<wbr/> good control values
can be immediately applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.2)</span>
<span class="entry_type_enum_notes"><p>Use settings for each individual 3A routine.<wbr/></p>
<p>Manual control of capture parameters is disabled.<wbr/> All
controls in android.<wbr/>control.<wbr/>* besides sceneMode take
effect.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">USE_SCENE_MODE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Use a specific scene mode.<wbr/></p>
<p>Enabling this disables control.<wbr/>aeMode,<wbr/> control.<wbr/>awbMode and
control.<wbr/>afMode controls; the camera device will ignore
those settings while USE_<wbr/>SCENE_<wbr/>MODE is active (except for
FACE_<wbr/>PRIORITY scene mode).<wbr/> Other control entries are still active.<wbr/>
This setting can only be used if scene mode is supported (i.<wbr/>e.<wbr/>
<a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a>
contain some modes other than DISABLED).<wbr/></p>
<p>For extended scene modes such as BOKEH,<wbr/> please use USE_<wbr/>EXTENDED_<wbr/>SCENE_<wbr/>MODE instead.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">OFF_KEEP_STATE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Same as OFF mode,<wbr/> except that this capture will not be
used by camera device background auto-exposure,<wbr/> auto-white balance and
auto-focus algorithms (3A) to update their statistics.<wbr/></p>
<p>Specifically,<wbr/> the 3A routines are locked to the last
values set from a request with AUTO,<wbr/> OFF,<wbr/> or
USE_<wbr/>SCENE_<wbr/>MODE,<wbr/> and any statistics or state updates
collected from manual captures with OFF_<wbr/>KEEP_<wbr/>STATE will be
discarded by the camera device.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">USE_EXTENDED_SCENE_MODE (v3.5)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Use a specific extended scene mode.<wbr/></p>
<p>When extended scene mode is on,<wbr/> the camera device may override certain control
parameters,<wbr/> such as targetFpsRange,<wbr/> AE,<wbr/> AWB,<wbr/> and AF modes,<wbr/> to achieve best power and
quality tradeoffs.<wbr/> Only the mandatory stream combinations of LIMITED hardware level
are guaranteed.<wbr/></p>
<p>This setting can only be used if extended scene mode is supported (i.<wbr/>e.<wbr/>
android.<wbr/>control.<wbr/>available<wbr/>Extended<wbr/>Scene<wbr/>Modes
contains some modes other than DISABLED).<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Overall mode of 3A (auto-exposure,<wbr/> auto-white-balance,<wbr/> auto-focus) control
routines.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.availableModes">android.<wbr/>control.<wbr/>available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is a top-level 3A control switch.<wbr/> When set to OFF,<wbr/> all 3A control
by the camera device is disabled.<wbr/> The application must set the fields for
capture parameters itself.<wbr/></p>
<p>When set to AUTO,<wbr/> the individual algorithm controls in
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>
<p>When set to USE_<wbr/>SCENE_<wbr/>MODE or USE_<wbr/>EXTENDED_<wbr/>SCENE_<wbr/>MODE,<wbr/> the individual controls in
android.<wbr/>control.<wbr/>* are mostly disabled,<wbr/> and the camera device
implements one of the scene mode or extended scene mode settings (such as ACTION,<wbr/>
SUNSET,<wbr/> PARTY,<wbr/> or BOKEH) as it wishes.<wbr/> The camera device scene mode
3A settings are provided by <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">capture results</a>.<wbr/></p>
<p>When set to OFF_<wbr/>KEEP_<wbr/>STATE,<wbr/> it is similar to OFF mode,<wbr/> the only difference
is that this frame will not be used by camera device background 3A statistics
update,<wbr/> as if this frame is never captured.<wbr/> This mode can be used in the scenario
where the application doesn't want a 3A manual control capture to affect
the subsequent auto 3A capture results.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.sceneMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>scene<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">DISABLED (v3.2)</span>
<span class="entry_type_enum_value">0</span>
<span class="entry_type_enum_notes"><p>Indicates that no scene modes are set for a given capture request.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FACE_PRIORITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>If face detection support exists,<wbr/> use face
detection data for auto-focus,<wbr/> auto-white balance,<wbr/> and
auto-exposure routines.<wbr/></p>
<p>If face detection statistics are disabled
(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/>
this should still operate correctly (but will not return
face detection statistics to the framework).<wbr/></p>
<p>Unlike the other scene modes,<wbr/> <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>
remain active when FACE_<wbr/>PRIORITY is set.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ACTION (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving objects.<wbr/></p>
<p>Similar to SPORTS.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PORTRAIT (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for still photos of people.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">LANDSCAPE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for photos of distant macroscopic objects.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">NIGHT (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for low-light settings.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">NIGHT_PORTRAIT (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for still photos of people in low-light
settings.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">THEATRE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings where flash must
remain off.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BEACH (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor beach settings.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SNOW (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for bright,<wbr/> outdoor settings containing snow.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SUNSET (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for scenes of the setting sun.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">STEADYPHOTO (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized to avoid blurry photos due to small amounts of
device motion (for example: due to hand shake).<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FIREWORKS (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for nighttime photos of fireworks.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SPORTS (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for photos of quickly moving people.<wbr/></p>
<p>Similar to ACTION.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PARTY (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for dim,<wbr/> indoor settings with multiple moving
people.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CANDLELIGHT (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for dim settings where the main light source
is a candle.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BARCODE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optimized for accurately capturing a photo of barcode
for use by camera applications that wish to read the
barcode value.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_SPEED_VIDEO (v3.2)</span>
<span class="entry_type_enum_deprecated">[deprecated]</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[java_public]</span>
<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>
and <a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>
for high speed video recording.<wbr/></p>
<p>Optimized for high speed video recording (frame rate &gt;=60fps) use case.<wbr/></p>
<p>The supported high speed video sizes and fps ranges are specified in
<a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/> To get desired
output frame rates,<wbr/> the application is only allowed to select video size
and fps range combinations listed in this static metadata.<wbr/> The fps range
can be control via <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a>.<wbr/></p>
<p>In this mode,<wbr/> the camera device will override aeMode,<wbr/> awbMode,<wbr/> and afMode to
ON,<wbr/> ON,<wbr/> and CONTINUOUS_<wbr/>VIDEO,<wbr/> respectively.<wbr/> All post-processing block mode
controls will be overridden to be FAST.<wbr/> Therefore,<wbr/> no manual control of capture
and post-processing parameters is possible.<wbr/> All other controls operate the
same as when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == AUTO.<wbr/> This means that all other
android.<wbr/>control.<wbr/>* fields continue to work,<wbr/> such as</p>
<ul>
<li><a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a></li>
<li><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a></li>
<li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
<li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
<li><a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></li>
<li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
<li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
<li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
<li><a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a></li>
<li><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a></li>
<li><a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a></li>
</ul>
<p>Outside of android.<wbr/>control.<wbr/>*,<wbr/> the following controls will work:</p>
<ul>
<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>
<li><a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> (if it is supported)</li>
<li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
<li><a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a></li>
</ul>
<p>For high speed recording use case,<wbr/> the actual maximum supported frame rate may
be lower than what camera can output,<wbr/> depending on the destination Surfaces for
the image data.<wbr/> For example,<wbr/> if the destination surface is from video encoder,<wbr/>
the application need check if the video encoder is capable of supporting the
high frame rate for a given video size,<wbr/> or it will end up with lower recording
frame rate.<wbr/> If the destination surface is from preview window,<wbr/> the preview frame
rate will be bounded by the screen refresh rate.<wbr/></p>
<p>The camera device will only support up to 2 output high speed streams
(processed non-stalling format defined in <a href="#static_android.request.maxNumOutputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Streams</a>)
in this mode.<wbr/> This control will be effective only if all of below conditions are true:</p>
<ul>
<li>The application created no more than maxNumHighSpeedStreams processed non-stalling
format output streams,<wbr/> where maxNumHighSpeedStreams is calculated as
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>
<li>The stream sizes are selected from the sizes reported by
<a href="#static_android.control.availableHighSpeedVideoConfigurations">android.<wbr/>control.<wbr/>available<wbr/>High<wbr/>Speed<wbr/>Video<wbr/>Configurations</a>.<wbr/></li>
<li>No processed non-stalling or raw streams are configured.<wbr/></li>
</ul>
<p>When above conditions are NOT satisfied,<wbr/> the controls of this mode and
<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/>
the camera device will fall back to <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> <code>==</code> AUTO,<wbr/>
and the returned capture result metadata will give the fps range chosen
by the camera device.<wbr/></p>
<p>Switching into or out of this mode may trigger some camera ISP/<wbr/>sensor
reconfigurations,<wbr/> which may introduce extra latency.<wbr/> It is recommended that
the application avoids unnecessary scene mode switch as much as possible.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HDR (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Turn on a device-specific high dynamic range (HDR) mode.<wbr/></p>
<p>In this scene mode,<wbr/> the camera device captures images
that keep a larger range of scene illumination levels
visible in the final image.<wbr/> For example,<wbr/> when taking a
picture of a object in front of a bright window,<wbr/> both
the object and the scene through the window may be
visible when using HDR mode,<wbr/> while in normal AUTO mode,<wbr/>
one or the other may be poorly exposed.<wbr/> As a tradeoff,<wbr/>
HDR mode generally takes much longer to capture a single
image,<wbr/> has no user control,<wbr/> and may have other artifacts
depending on the HDR method used.<wbr/></p>
<p>Therefore,<wbr/> HDR captures operate at a much slower rate
than regular captures.<wbr/></p>
<p>In this mode,<wbr/> on LIMITED or FULL devices,<wbr/> when a request
is made with a <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> of
STILL_<wbr/>CAPTURE,<wbr/> the camera device will capture an image
using a high dynamic range capture technique.<wbr/> On LEGACY
devices,<wbr/> captures that target a JPEG-format output will
be captured with HDR,<wbr/> and the capture intent is not
relevant.<wbr/></p>
<p>The HDR capture may involve the device capturing a burst
of images internally and combining them into one,<wbr/> or it
may involve the device using specialized high dynamic
range capture hardware.<wbr/> In all cases,<wbr/> a single image is
produced in response to a capture request submitted
while in HDR mode.<wbr/></p>
<p>Since substantial post-processing is generally needed to
produce an HDR image,<wbr/> only YUV,<wbr/> PRIVATE,<wbr/> and JPEG
outputs are supported for LIMITED/<wbr/>FULL device HDR
captures,<wbr/> and only JPEG outputs are supported for LEGACY
HDR captures.<wbr/> Using a RAW output for HDR capture is not
supported.<wbr/></p>
<p>Some devices may also support always-on HDR,<wbr/> which
applies HDR processing at full frame rate.<wbr/> For these
devices,<wbr/> intents other than STILL_<wbr/>CAPTURE will also
produce an HDR output with no frame rate impact compared
to normal operation,<wbr/> though the quality may be lower
than for STILL_<wbr/>CAPTURE intents.<wbr/></p>
<p>If SCENE_<wbr/>MODE_<wbr/>HDR is used with unsupported output types
or capture intents,<wbr/> the images captured will be as if
the SCENE_<wbr/>MODE was not enabled at all.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FACE_PRIORITY_LOW_LIGHT (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_notes"><p>Same as FACE_<wbr/>PRIORITY scene mode,<wbr/> except that the camera
device will choose higher sensitivity values (<a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>)
under low light conditions.<wbr/></p>
<p>The camera device may be tuned to expose the images in a reduced
sensitivity range to produce the best quality images.<wbr/> For example,<wbr/>
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/>
the camera device auto-exposure routine tuning process may limit the actual
exposure sensitivity range to [100,<wbr/> 1200] to ensure that the noise level isn't
excessive in order to preserve the image quality.<wbr/> Under this situation,<wbr/> the image under
low light may be under-exposed when the sensor max exposure time (bounded by the
<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
ON_<wbr/>* modes) and effective max sensitivity are reached.<wbr/> This scene mode allows the
camera device auto-exposure routine to increase the sensitivity up to the max
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
dark and the max exposure time is reached.<wbr/> The captured images may be noisier
compared with the images captured in normal FACE_<wbr/>PRIORITY mode; therefore,<wbr/> it is
recommended that the application only use this scene mode when it is capable of
reducing the noise level of the captured images.<wbr/></p>
<p>Unlike the other scene modes,<wbr/> <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>
remain active when FACE_<wbr/>PRIORITY_<wbr/>LOW_<wbr/>LIGHT is set.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DEVICE_CUSTOM_START (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_value">100</span>
<span class="entry_type_enum_notes"><p>Scene mode values within the range of
<code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
customized scene modes.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DEVICE_CUSTOM_END (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_value">127</span>
<span class="entry_type_enum_notes"><p>Scene mode values within the range of
<code>[DEVICE_<wbr/>CUSTOM_<wbr/>START,<wbr/> DEVICE_<wbr/>CUSTOM_<wbr/>END]</code> are reserved for device specific
customized scene modes.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Control for which scene mode is currently active.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.availableSceneModes">android.<wbr/>control.<wbr/>available<wbr/>Scene<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Scene modes are custom camera modes optimized for a certain set of conditions and
capture settings.<wbr/></p>
<p>This is the mode that that is active when
<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
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>
while in use.<wbr/></p>
<p>The interpretation and implementation of these scene modes is left
to the implementor of the camera device.<wbr/> Their behavior will not be
consistent across all devices,<wbr/> and any given device may only implement
a subset of these modes.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL implementations that include scene modes are expected to provide
the per-scene settings to use for <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> in
<a href="#static_android.control.sceneModeOverrides">android.<wbr/>control.<wbr/>scene<wbr/>Mode<wbr/>Overrides</a>.<wbr/></p>
<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/> the
HAL must list supported video size and fps range in
<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/> 1280x720,<wbr/>
if the HAL has two different sensor configurations for normal streaming mode and high
speed streaming,<wbr/> when this scene mode is set/<wbr/>reset in a sequence of capture requests,<wbr/> the
HAL may have to switch between different sensor modes.<wbr/> This mode is deprecated in legacy
HAL3.<wbr/>3,<wbr/> to support high speed video recording,<wbr/> please implement
<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
capability defined in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.videoStabilizationMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Video stabilization is disabled.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>Video stabilization is enabled.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PREVIEW_STABILIZATION (v3.8)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Preview stabilization,<wbr/> where the preview in addition to all other non-RAW streams are
stabilized with the same quality of stabilization,<wbr/> is enabled.<wbr/> This mode aims to give
clients a 'what you see is what you get' effect.<wbr/> In this mode,<wbr/> the FoV reduction will
be a maximum of 20 % both horizontally and vertically
(10% from left,<wbr/> right,<wbr/> top,<wbr/> bottom) for the given zoom ratio /<wbr/> crop region.<wbr/>
The resultant FoV will also be the same across all processed streams
(that have the same aspect ratio).<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether video stabilization is
active.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Video stabilization automatically warps images from
the camera in order to stabilize motion between consecutive frames.<wbr/></p>
<p>If enabled,<wbr/> video stabilization can modify the
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to keep the video stream stabilized.<wbr/></p>
<p>Switching between different video stabilization modes may take several
frames to initialize,<wbr/> the camera device will report the current mode
in capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/>
the video stabilization modes in the first several capture results may
still be "OFF",<wbr/> and it will become "ON" when the initialization is
done.<wbr/></p>
<p>In addition,<wbr/> not all recording sizes or frame rates may be supported for
stabilization by a device that reports stabilization support.<wbr/> It is guaranteed
that an output targeting a MediaRecorder or MediaCodec will be stabilized if
the recording resolution is less than or equal to 1920 x 1080 (width less than
or equal to 1920,<wbr/> height less than or equal to 1080),<wbr/> and the recording
frame rate is less than or equal to 30fps.<wbr/> At other sizes,<wbr/> the CaptureResult
<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a> field will return
OFF if the recording output is not stabilized,<wbr/> or if there are no output
Surface types that can be stabilized.<wbr/></p>
<p>The application is strongly recommended to call
<a href="https://developer.android.com/reference/android/hardware/camera2/params/SessionConfiguration.html#setSessionParameters">SessionConfiguration#setSessionParameters</a>
with the desired video stabilization mode before creating the capture session.<wbr/>
Video stabilization mode is a session parameter on many devices.<wbr/> Specifying
it at session creation time helps avoid reconfiguration delay caused by difference
between the default value and the first CaptureRequest.<wbr/></p>
<p>If a camera device supports both this mode and OIS
(<a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may
produce undesirable interaction,<wbr/> so it is recommended not to enable
both at the same time.<wbr/></p>
<p>If video stabilization is set to "PREVIEW_<wbr/>STABILIZATION",<wbr/>
<a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> is overridden.<wbr/> The camera sub-system may choose
to turn on hardware based image stabilization in addition to software based stabilization
if it deems that appropriate.<wbr/>
This key may be a part of the available session keys,<wbr/> which camera clients may
query via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableSessionKeys">CameraCharacteristics#getAvailableSessionKeys</a>.<wbr/>
If this is the case,<wbr/> changing this key over the life-time of a capture session may
cause delays /<wbr/> glitches.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When this key is set to "PREVIEW_<wbr/>STABILIZATION",<wbr/>
for non-stalling buffers returned without errors,<wbr/> the time interval between notify readout
timestamp and when buffers are returned to the camera framework,<wbr/> must be no more than 1
extra frame interval,<wbr/> relative to the case where this key is set to "OFF".<wbr/></p>
<p>This is in order for look-ahead time period to be short enough
for preview to match video recording for real-time usage.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.postRawSensitivityBoost">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The amount of additional sensitivity boost applied to output images
after RAW sensor data is captured.<wbr/></p>
</td>
<td class="entry_units">
ISO arithmetic units,<wbr/> the same as android.<wbr/>sensor.<wbr/>sensitivity
</td>
<td class="entry_range">
<p><a href="#static_android.control.postRawSensitivityBoostRange">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost<wbr/>Range</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Some camera devices support additional digital sensitivity boosting in the
camera processing pipeline after sensor RAW image is captured.<wbr/>
Such a boost will be applied to YUV/<wbr/>JPEG format output images but will not
have effect on RAW output formats like RAW_<wbr/>SENSOR,<wbr/> RAW10,<wbr/> RAW12 or RAW_<wbr/>OPAQUE.<wbr/></p>
<p>This key will be <code>null</code> for devices that do not support any RAW format
outputs.<wbr/> For devices that do support RAW format outputs,<wbr/> this key will always
present,<wbr/> and if a device does not support post RAW sensitivity boost,<wbr/> it will
list <code>100</code> in this key.<wbr/></p>
<p>If the camera device cannot apply the exact boost requested,<wbr/> it will reduce the
boost to the nearest supported value.<wbr/>
The final boost value used will be available in the output capture result.<wbr/></p>
<p>For devices that support post RAW sensitivity boost,<wbr/> the YUV/<wbr/>JPEG output images
of such device will have the total sensitivity of
<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>
The sensitivity of RAW format images will always be <code><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></code></p>
<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
OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.enableZsl">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>enable<wbr/>Zsl
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Requests with <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE must be captured
after previous requests.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Requests with <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE may or may not be
captured before previous requests.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Allow camera device to enable zero-shutter-lag mode for requests with
<a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> == STILL_<wbr/>CAPTURE.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If enableZsl is <code>true</code>,<wbr/> the camera device may enable zero-shutter-lag mode for requests with
STILL_<wbr/>CAPTURE capture intent.<wbr/> The camera device may use images captured in the past to
produce output images for a zero-shutter-lag request.<wbr/> The result metadata including the
<a href="#dynamic_android.sensor.timestamp">android.<wbr/>sensor.<wbr/>timestamp</a> reflects the source frames used to produce output images.<wbr/>
Therefore,<wbr/> the contents of the output images and the result metadata may be out of order
compared to previous regular requests.<wbr/> enableZsl does not affect requests with other
capture intents.<wbr/></p>
<p>For example,<wbr/> when requests are submitted in the following order:
Request A: enableZsl is ON,<wbr/> <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> is PREVIEW
Request B: enableZsl is ON,<wbr/> <a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a> is STILL_<wbr/>CAPTURE</p>
<p>The output images for request B may have contents captured before the output images for
request A,<wbr/> and the result metadata for request B may be older than the result metadata for
request A.<wbr/></p>
<p>Note that when enableZsl is <code>true</code>,<wbr/> it is not guaranteed to get output images captured in
the past for requests with STILL_<wbr/>CAPTURE capture intent.<wbr/></p>
<p>For applications targeting SDK versions O and newer,<wbr/> the value of enableZsl in
TEMPLATE_<wbr/>STILL_<wbr/>CAPTURE template may be <code>true</code>.<wbr/> The value in other templates is always
<code>false</code> if present.<wbr/></p>
<p>For applications targeting SDK versions older than O,<wbr/> the value of enableZsl in all
capture templates is always <code>false</code> if present.<wbr/></p>
<p>For application-operated ZSL,<wbr/> use CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>It is valid for HAL to produce regular output images for requests with STILL_<wbr/>CAPTURE
capture intent.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.afSceneChange">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>af<wbr/>Scene<wbr/>Change
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">NOT_DETECTED (v3.3)</span>
<span class="entry_type_enum_notes"><p>Scene change is not detected within the AF region(s).<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DETECTED (v3.3)</span>
<span class="entry_type_enum_notes"><p>Scene change is detected within the AF region(s).<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether a significant scene change is detected within the currently-set AF
region(s).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When the camera focus routine detects a change in the scene it is looking at,<wbr/>
such as a large shift in camera viewpoint,<wbr/> significant motion in the scene,<wbr/> or a
significant illumination change,<wbr/> this value will be set to DETECTED for a single capture
result.<wbr/> Otherwise the value will be NOT_<wbr/>DETECTED.<wbr/> The threshold for detection is similar
to what would trigger a new passive focus scan to begin in CONTINUOUS autofocus modes.<wbr/></p>
<p>This key will be available if the camera device advertises this key via <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureResultKeys">CameraCharacteristics#getAvailableCaptureResultKeys</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.extendedSceneMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>extended<wbr/>Scene<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">DISABLED (v3.5)</span>
<span class="entry_type_enum_value">0</span>
<span class="entry_type_enum_notes"><p>Extended scene mode is disabled.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BOKEH_STILL_CAPTURE (v3.5)</span>
<span class="entry_type_enum_notes"><p>High quality bokeh mode is enabled for all non-raw streams (including YUV,<wbr/>
JPEG,<wbr/> and IMPLEMENTATION_<wbr/>DEFINED) when capture intent is STILL_<wbr/>CAPTURE.<wbr/> Due to the
extra image processing,<wbr/> this mode may introduce additional stall to non-raw streams.<wbr/>
This mode should be used in high quality still capture use case.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BOKEH_CONTINUOUS (v3.5)</span>
<span class="entry_type_enum_notes"><p>Bokeh effect must not slow down capture rate relative to sensor raw output,<wbr/>
and the effect is applied to all processed streams no larger than the maximum
streaming dimension.<wbr/> This mode should be used if performance and power are a
priority,<wbr/> such as video recording.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VENDOR_START (v3.5)</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_value">0x40</span>
<span class="entry_type_enum_notes"><p>Vendor defined extended scene modes.<wbr/> These depend on vendor implementation.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether extended scene mode is enabled for a particular capture request.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>5</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>With bokeh mode,<wbr/> the camera device may blur out the parts of scene that are not in
focus,<wbr/> creating a bokeh (or shallow depth of field) effect for people or objects.<wbr/></p>
<p>When set to BOKEH_<wbr/>STILL_<wbr/>CAPTURE mode with STILL_<wbr/>CAPTURE capture intent,<wbr/> due to the extra
processing needed for high quality bokeh effect,<wbr/> the stall may be longer than when
capture intent is not STILL_<wbr/>CAPTURE.<wbr/></p>
<p>When set to BOKEH_<wbr/>STILL_<wbr/>CAPTURE mode with PREVIEW capture intent,<wbr/></p>
<ul>
<li>If the camera device has BURST_<wbr/>CAPTURE capability,<wbr/> the frame rate requirement of
BURST_<wbr/>CAPTURE must still be met.<wbr/></li>
<li>All streams not larger than the maximum streaming dimension for BOKEH_<wbr/>STILL_<wbr/>CAPTURE mode
(queried via <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#CONTROL_AVAILABLE_EXTENDED_SCENE_MODE_CAPABILITIES">Camera<wbr/>Characteristics#CONTROL_<wbr/>AVAILABLE_<wbr/>EXTENDED_<wbr/>SCENE_<wbr/>MODE_<wbr/>CAPABILITIES</a>)
will have preview bokeh effect applied.<wbr/></li>
</ul>
<p>When set to BOKEH_<wbr/>CONTINUOUS mode,<wbr/> configured streams dimension should not exceed this mode's
maximum streaming dimension in order to have bokeh effect applied.<wbr/> Bokeh effect may not
be available for streams larger than the maximum streaming dimension.<wbr/></p>
<p>Switching between different extended scene modes may involve reconfiguration of the camera
pipeline,<wbr/> resulting in long latency.<wbr/> The application should check this key against the
available session keys queried via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableSessionKeys">CameraCharacteristics#getAvailableSessionKeys</a>.<wbr/></p>
<p>For a logical multi-camera,<wbr/> bokeh may be implemented by stereo vision from sub-cameras
with different field of view.<wbr/> As a result,<wbr/> when bokeh mode is enabled,<wbr/> the camera device
may override <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> or <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> and the field of
view may be smaller than when bokeh mode is off.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.zoomRatio">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>zoom<wbr/>Ratio
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired zoom ratio</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.zoomRatioRange">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio<wbr/>Range</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>5</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Instead of using <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> for zoom,<wbr/> the application can now choose to
use this tag to specify the desired zoom level.<wbr/></p>
<p>By using this control,<wbr/> the application gains a simpler way to control zoom,<wbr/> which can
be a combination of optical and digital zoom.<wbr/> For example,<wbr/> a multi-camera system may
contain more than one lens with different focal lengths,<wbr/> and the user can use optical
zoom by switching between lenses.<wbr/> Using zoomRatio has benefits in the scenarios below:</p>
<ul>
<li>Zooming in from a wide-angle lens to a telephoto lens: A floating-point ratio provides
better precision compared to an integer value of <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></li>
<li>Zooming out from a wide lens to an ultrawide lens: zoomRatio supports zoom-out whereas
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> doesn't.<wbr/></li>
</ul>
<p>To illustrate,<wbr/> here are several scenarios of different zoom ratios,<wbr/> crop regions,<wbr/>
and output streams,<wbr/> for a hypothetical camera device with an active array of size
<code>(2000,<wbr/>1500)</code>.<wbr/></p>
<ul>
<li>Camera Configuration:<ul>
<li>Active array size: <code>2000x1500</code> (3 MP,<wbr/> 4:3 aspect ratio)</li>
<li>Output stream #1: <code>640x480</code> (VGA,<wbr/> 4:3 aspect ratio)</li>
<li>Output stream #2: <code>1280x720</code> (720p,<wbr/> 16:9 aspect ratio)</li>
</ul>
</li>
<li>Case #1: 4:3 crop region with 2.<wbr/>0x zoom ratio<ul>
<li>Zoomed field of view: 1/<wbr/>4 of original field of view</li>
<li>Crop region: <code>Rect(0,<wbr/> 0,<wbr/> 2000,<wbr/> 1500) //<wbr/> (left,<wbr/> top,<wbr/> right,<wbr/> bottom)</code> (post zoom)</li>
</ul>
</li>
<li><img alt="4:3 aspect ratio crop diagram" src="images/camera2/metadata/android.control.zoomRatio/zoom-ratio-2-crop-43.png"/><ul>
<li><code>640x480</code> stream source area: <code>(0,<wbr/> 0,<wbr/> 2000,<wbr/> 1500)</code> (equal to crop region)</li>
<li><code>1280x720</code> stream source area: <code>(0,<wbr/> 187,<wbr/> 2000,<wbr/> 1312)</code> (letterboxed)</li>
</ul>
</li>
<li>Case #2: 16:9 crop region with 2.<wbr/>0x zoom.<wbr/><ul>
<li>Zoomed field of view: 1/<wbr/>4 of original field of view</li>
<li>Crop region: <code>Rect(0,<wbr/> 187,<wbr/> 2000,<wbr/> 1312)</code></li>
<li><img alt="16:9 aspect ratio crop diagram" src="images/camera2/metadata/android.control.zoomRatio/zoom-ratio-2-crop-169.png"/></li>
<li><code>640x480</code> stream source area: <code>(250,<wbr/> 187,<wbr/> 1750,<wbr/> 1312)</code> (pillarboxed)</li>
<li><code>1280x720</code> stream source area: <code>(0,<wbr/> 187,<wbr/> 2000,<wbr/> 1312)</code> (equal to crop region)</li>
</ul>
</li>
<li>Case #3: 1:1 crop region with 0.<wbr/>5x zoom out to ultrawide lens.<wbr/><ul>
<li>Zoomed field of view: 4x of original field of view (switched from wide lens to ultrawide lens)</li>
<li>Crop region: <code>Rect(250,<wbr/> 0,<wbr/> 1750,<wbr/> 1500)</code></li>
<li><img alt="1:1 aspect ratio crop diagram" src="images/camera2/metadata/android.control.zoomRatio/zoom-ratio-0.5-crop-11.png"/></li>
<li><code>640x480</code> stream source area: <code>(250,<wbr/> 187,<wbr/> 1750,<wbr/> 1312)</code> (letterboxed)</li>
<li><code>1280x720</code> stream source area: <code>(250,<wbr/> 328,<wbr/> 1750,<wbr/> 1172)</code> (letterboxed)</li>
</ul>
</li>
</ul>
<p>As seen from the graphs above,<wbr/> the coordinate system of cropRegion now changes to the
effective after-zoom field-of-view,<wbr/> and is represented by the rectangle of (0,<wbr/> 0,<wbr/>
activeArrayWith,<wbr/> activeArrayHeight).<wbr/> The same applies to AE/<wbr/>AWB/<wbr/>AF regions,<wbr/> and faces.<wbr/>
This coordinate system change isn't applicable to RAW capture and its related
metadata such as intrinsicCalibration and lensShadingMap.<wbr/></p>
<p>Using the same hypothetical example above,<wbr/> and assuming output stream #1 (640x480) is
the viewfinder stream,<wbr/> the application can achieve 2.<wbr/>0x zoom in one of two ways:</p>
<ul>
<li>zoomRatio = 2.<wbr/>0,<wbr/> scaler.<wbr/>cropRegion = (0,<wbr/> 0,<wbr/> 2000,<wbr/> 1500)</li>
<li>zoomRatio = 1.<wbr/>0 (default),<wbr/> scaler.<wbr/>cropRegion = (500,<wbr/> 375,<wbr/> 1500,<wbr/> 1125)</li>
</ul>
<p>If the application intends to set aeRegions to be top-left quarter of the viewfinder
field-of-view,<wbr/> the <a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a> should be set to (0,<wbr/> 0,<wbr/> 1000,<wbr/> 750) with
zoomRatio set to 2.<wbr/>0.<wbr/> Alternatively,<wbr/> the application can set aeRegions to the equivalent
region of (500,<wbr/> 375,<wbr/> 1000,<wbr/> 750) for zoomRatio of 1.<wbr/>0.<wbr/> If the application doesn't
explicitly set <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> its value defaults to 1.<wbr/>0.<wbr/></p>
<p>One limitation of controlling zoom using zoomRatio is that the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>
must only be used for letterboxing or pillarboxing of the sensor active array,<wbr/> and no
FREEFORM cropping can be used with <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> other than 1.<wbr/>0.<wbr/> If
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> is not 1.<wbr/>0,<wbr/> and <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> is set to be
windowboxing,<wbr/> the camera framework will override the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to be
the active array.<wbr/></p>
<p>In the capture request,<wbr/> if the application sets <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> to a
value != 1.<wbr/>0,<wbr/> the <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> tag in the capture result reflects the
effective zoom ratio achieved by the camera device,<wbr/> and the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>
adjusts for additional crops that are not zoom related.<wbr/> Otherwise,<wbr/> if the application
sets <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> to 1.<wbr/>0,<wbr/> or does not set it at all,<wbr/> the
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> tag in the result metadata will also be 1.<wbr/>0.<wbr/></p>
<p>When the application requests a physical stream for a logical multi-camera,<wbr/> the
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> in the physical camera result metadata will be 1.<wbr/>0,<wbr/> and
the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> tag reflects the amount of zoom and crop done by the
physical camera device.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For all capture request templates,<wbr/> this field must be set to 1.<wbr/>0 in order to have
consistent field of views between different modes.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.settingsOverride">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>settings<wbr/>Override
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.9)</span>
<span class="entry_type_enum_notes"><p>No keys are applied sooner than the other keys when applying CaptureRequest
settings to the camera device.<wbr/> This is the default value.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ZOOM (v3.9)</span>
<span class="entry_type_enum_notes"><p>Zoom related keys are applied sooner than the other keys in the CaptureRequest.<wbr/> The
zoom related keys are:</p>
<ul>
<li><a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a></li>
<li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
<li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
<li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
<li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
</ul>
<p>Even though <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/>
and <a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a> are not directly zoom related,<wbr/> applications
typically scale these regions together with <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to have a
consistent mapping within the current field of view.<wbr/> In this aspect,<wbr/> they are
related to <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> and <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VENDOR_START (v3.9)</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_value">0x4000</span>
<span class="entry_type_enum_notes"><p>Vendor defined settingsOverride.<wbr/> These depend on vendor implementation.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired CaptureRequest settings override with which certain keys are
applied earlier so that they can take effect sooner.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.control.availableSettingsOverrides">android.<wbr/>control.<wbr/>available<wbr/>Settings<wbr/>Overrides</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>There are some CaptureRequest keys which can be applied earlier than others
when controls within a CaptureRequest aren't required to take effect at the same time.<wbr/>
One such example is zoom.<wbr/> Zoom can be applied at a later stage of the camera pipeline.<wbr/>
As soon as the camera device receives the CaptureRequest,<wbr/> it can apply the requested
zoom value onto an earlier request that's already in the pipeline,<wbr/> thus improves zoom
latency.<wbr/></p>
<p>This key's value in the capture result reflects whether the controls for this capture
are overridden "by" a newer request.<wbr/> This means that if a capture request turns on
settings override,<wbr/> the capture result of an earlier request will contain the key value
of ZOOM.<wbr/> On the other hand,<wbr/> if a capture request has settings override turned on,<wbr/>
but all newer requests have it turned off,<wbr/> the key's value in the capture result will
be OFF because this capture isn't overridden by a newer capture.<wbr/> In the two examples
below,<wbr/> the capture results columns illustrate the settingsOverride values in different
scenarios.<wbr/></p>
<p>Assuming the zoom settings override can speed up by 1 frame,<wbr/> below example illustrates
the speed-up at the start of capture session:</p>
<pre><code>Camera session created
Request 1 (zoom=1.<wbr/>0x,<wbr/> override=ZOOM) -&gt;
Request 2 (zoom=1.<wbr/>2x,<wbr/> override=ZOOM) -&gt;
Request 3 (zoom=1.<wbr/>4x,<wbr/> override=ZOOM) -&gt; Result 1 (zoom=1.<wbr/>2x,<wbr/> override=ZOOM)
Request 4 (zoom=1.<wbr/>6x,<wbr/> override=ZOOM) -&gt; Result 2 (zoom=1.<wbr/>4x,<wbr/> override=ZOOM)
Request 5 (zoom=1.<wbr/>8x,<wbr/> override=ZOOM) -&gt; Result 3 (zoom=1.<wbr/>6x,<wbr/> override=ZOOM)
-&gt; Result 4 (zoom=1.<wbr/>8x,<wbr/> override=ZOOM)
-&gt; Result 5 (zoom=1.<wbr/>8x,<wbr/> override=OFF)
</code></pre>
<p>The application can turn on settings override and use zoom as normal.<wbr/> The example
shows that the later zoom values (1.<wbr/>2x,<wbr/> 1.<wbr/>4x,<wbr/> 1.<wbr/>6x,<wbr/> and 1.<wbr/>8x) overwrite the zoom
values (1.<wbr/>0x,<wbr/> 1.<wbr/>2x,<wbr/> 1.<wbr/>4x,<wbr/> and 1.<wbr/>8x) of earlier requests (#1,<wbr/> #2,<wbr/> #3,<wbr/> and #4).<wbr/></p>
<p>The application must make sure the settings override doesn't interfere with user
journeys requiring simultaneous application of all controls in CaptureRequest on the
requested output targets.<wbr/> For example,<wbr/> if the application takes a still capture using
CameraCaptureSession#capture,<wbr/> and the repeating request immediately sets a different
zoom value using override,<wbr/> the inflight still capture could have its zoom value
overwritten unexpectedly.<wbr/></p>
<p>So the application is strongly recommended to turn off settingsOverride when taking
still/<wbr/>burst captures,<wbr/> and turn it back on when there is only repeating viewfinder
request and no inflight still/<wbr/>burst captures.<wbr/></p>
<p>Below is the example demonstrating the transitions in and out of the
settings override:</p>
<pre><code>Request 1 (zoom=1.<wbr/>0x,<wbr/> override=OFF)
Request 2 (zoom=1.<wbr/>2x,<wbr/> override=OFF)
Request 3 (zoom=1.<wbr/>4x,<wbr/> override=ZOOM) -&gt; Result 1 (zoom=1.<wbr/>0x,<wbr/> override=OFF)
Request 4 (zoom=1.<wbr/>6x,<wbr/> override=ZOOM) -&gt; Result 2 (zoom=1.<wbr/>4x,<wbr/> override=ZOOM)
Request 5 (zoom=1.<wbr/>8x,<wbr/> override=OFF) -&gt; Result 3 (zoom=1.<wbr/>6x,<wbr/> override=ZOOM)
-&gt; Result 4 (zoom=1.<wbr/>6x,<wbr/> override=OFF)
-&gt; Result 5 (zoom=1.<wbr/>8x,<wbr/> override=OFF)
</code></pre>
<p>This example shows that:</p>
<ul>
<li>The application "ramps in" settings override by setting the control to ZOOM.<wbr/>
In the example,<wbr/> request #3 enables zoom settings override.<wbr/> Because the camera device
can speed up applying zoom by 1 frame,<wbr/> the outputs of request #2 has 1.<wbr/>4x zoom,<wbr/> the
value specified in request #3.<wbr/></li>
<li>The application "ramps out" of settings override by setting the control to OFF.<wbr/> In
the example,<wbr/> request #5 changes the override to OFF.<wbr/> Because request #4's zoom
takes effect in result #3,<wbr/> result #4's zoom remains the same until new value takes
effect in result #5.<wbr/></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL must set this value to OFF in all of the Capture templates.<wbr/></p>
<p>Typically the HAL unblocks processCaptureRequest at the same rate as the sensor capture,<wbr/>
and the HAL queues the capture settings in its pipeline when processCaptureRequest
returns.<wbr/> However,<wbr/> when the settings override is enabled,<wbr/> the HAL can optimize the
overridden controls' latency by applying them as soon as processCaptureRequest is
called,<wbr/> rather than when it's unblocked.<wbr/></p>
<p>If zoom settings override is on,<wbr/> when zooming in,<wbr/> the HAL must be able to apply the
zoom related settings at least 1 frame ahead.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.settingsOverridingFrameNumber">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>settings<wbr/>Overriding<wbr/>Frame<wbr/>Number
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The frame number of the newer request overriding this capture.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Must be equal to the frame number of the result if this capture isn't
overridden by a newer request,<wbr/> i.<wbr/>e.<wbr/> if <a href="#controls_android.control.settingsOverride">android.<wbr/>control.<wbr/>settings<wbr/>Override</a> is OFF
in the capture result.<wbr/> On the other hand,<wbr/> if the capture is overridden by a newer
request,<wbr/> the value of this tag (unsigned) must be larger than the frame number of
the capture result.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.autoframing">
<td class="entry_name
" rowspan="5">
android.<wbr/>control.<wbr/>autoframing
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.9)</span>
<span class="entry_type_enum_notes"><p>Disable autoframing.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.9)</span>
<span class="entry_type_enum_notes"><p>Enable autoframing to keep people in the frame's field of view.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.9)</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_notes"><p>Automatically select ON or OFF based on the system level preferences.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Automatic crop,<wbr/> pan and zoom to keep objects in the center of the frame.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Auto-framing is a special mode provided by the camera device to dynamically crop,<wbr/> zoom
or pan the camera feed to try to ensure that the people in a scene occupy a reasonable
portion of the viewport.<wbr/> It is primarily designed to support video calling in
situations where the user isn't directly in front of the device,<wbr/> especially for
wide-angle cameras.<wbr/>
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> and <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> in CaptureResult will be used
to denote the coordinates of the auto-framed region.<wbr/>
Zoom and video stabilization controls are disabled when auto-framing is enabled.<wbr/> The 3A
regions must map the screen coordinates into the scaler crop returned from the capture
result instead of using the active array sensor.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>While auto-framing is ON,<wbr/> the aspect ratio of the auto-framed region must match the
aspect ratio of the configured output stream.<wbr/>
When reporting CaptureResult,<wbr/> SCALER_<wbr/>CROP_<wbr/>REGION might not adequately describe the
actual sensor pixels.<wbr/> In this case,<wbr/> it is acceptable for the returned parameters to only
be an approximation of the image sensor region that is actually used.<wbr/>
When auto-framing is turned off,<wbr/> the transition should be immediate,<wbr/> with no panning or
zooming to transition to the settings requested by the app.<wbr/> When it is turned on,<wbr/> the
transition can be immediate or smooth.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.autoframingState">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>autoframing<wbr/>State
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">INACTIVE (v3.9)</span>
<span class="entry_type_enum_notes"><p>Auto-framing is inactive.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FRAMING (v3.9)</span>
<span class="entry_type_enum_notes"><p>Auto-framing is in process - either zooming in,<wbr/> zooming out or pan is taking place.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CONVERGED (v3.9)</span>
<span class="entry_type_enum_notes"><p>Auto-framing has reached a stable state (frame/<wbr/>fov is not being adjusted).<wbr/> The state
may transition back to FRAMING if the scene changes.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Current state of auto-framing.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When the camera doesn't have auto-framing available (i.<wbr/>e
<code><a href="#static_android.control.autoframingAvailable">android.<wbr/>control.<wbr/>autoframing<wbr/>Available</a></code> == false) or it is not enabled (i.<wbr/>e
<code><a href="#controls_android.control.autoframing">android.<wbr/>control.<wbr/>autoframing</a></code> == OFF),<wbr/> the state will always be INACTIVE.<wbr/>
Other states indicate the current auto-framing state:</p>
<ul>
<li>When <code><a href="#controls_android.control.autoframing">android.<wbr/>control.<wbr/>autoframing</a></code> is set to ON,<wbr/> auto-framing will take
place.<wbr/> While the frame is aligning itself to center the object (doing things like
zooming in,<wbr/> zooming out or pan),<wbr/> the state will be FRAMING.<wbr/></li>
<li>When field of view is not being adjusted anymore and has reached a stable state,<wbr/> the
state will be CONVERGED.<wbr/></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.control.lowLightBoostState">
<td class="entry_name
" rowspan="3">
android.<wbr/>control.<wbr/>low<wbr/>Light<wbr/>Boost<wbr/>State
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">INACTIVE (v3.9)</span>
<span class="entry_type_enum_notes"><p>The AE mode 'ON_<wbr/>LOW_<wbr/>LIGHT_<wbr/>BOOST_<wbr/>BRIGHTNESS_<wbr/>PRIORITY' is enabled but not applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ACTIVE (v3.9)</span>
<span class="entry_type_enum_notes"><p>The AE mode 'ON_<wbr/>LOW_<wbr/>LIGHT_<wbr/>BOOST_<wbr/>BRIGHTNESS_<wbr/>PRIORITY' is enabled and applied.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Current state of the low light boost AE mode.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When low light boost is enabled by setting the AE mode to
'ON_<wbr/>LOW_<wbr/>LIGHT_<wbr/>BOOST_<wbr/>BRIGHTNESS_<wbr/>PRIORITY',<wbr/> it can dynamically apply a low light
boost when the light level threshold is exceeded.<wbr/></p>
<p>This state indicates when low light boost is 'ACTIVE' and applied.<wbr/> Similarly,<wbr/> it can
indicate when it is not being applied by returning 'INACTIVE'.<wbr/></p>
<p>This key will be absent from the CaptureResult if AE mode is not set to
'ON_<wbr/>LOW_<wbr/>LIGHT_<wbr/>BOOST_<wbr/>BRIGHTNESS_<wbr/>PRIORITY.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_demosaic" class="section">demosaic</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.demosaic.mode">
<td class="entry_name
" rowspan="1">
android.<wbr/>demosaic.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [system]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Minimal or no slowdown of frame rate compared to
Bayer RAW output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>Improved processing quality but the frame rate might be slowed down
relative to raw output.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Controls the quality of the demosaicing
processing.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_edge" class="section">edge</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.edge.mode">
<td class="entry_name
" rowspan="5">
android.<wbr/>edge.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No edge enhancement is applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Apply edge enhancement at a quality level that does not slow down frame rate
relative to sensor output.<wbr/> It may be the same as OFF if edge enhancement will
slow down frame rate relative to sensor.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<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>
</li>
<li>
<span class="entry_type_enum_name">ZERO_SHUTTER_LAG (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Edge enhancement is applied at different
levels for different output streams,<wbr/> 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 edge enhancement applied,<wbr/> while higher-resolution streams have no edge
enhancement applied.<wbr/> The level of edge enhancement for low-resolution streams is tuned
so that frame rate is not impacted,<wbr/> and the quality is equal to or better than FAST
(since it is only applied to lower-resolution outputs,<wbr/> quality may improve from FAST).<wbr/></p>
<p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
high-resolution buffers must not have edge enhancement applied to maximize efficiency of
preview and to avoid double-applying enhancement when reprocessed,<wbr/> while low-resolution
buffers (used for recording or preview,<wbr/> generally) need edge enhancement applied for
reasonable preview quality.<wbr/></p>
<p>This mode is guaranteed to be supported by devices that support either the
YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
(<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operation mode for edge
enhancement.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.edge.availableEdgeModes">android.<wbr/>edge.<wbr/>available<wbr/>Edge<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Edge enhancement improves sharpness and details in the captured image.<wbr/> OFF means
no enhancement will be applied by the camera device.<wbr/></p>
<p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined enhancement
will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the
camera device will use the highest-quality enhancement algorithms,<wbr/>
even if it slows down capture rate.<wbr/> FAST means the camera device will
not slow down capture rate when applying edge enhancement.<wbr/> FAST may be the same as OFF if
edge enhancement will slow down capture rate.<wbr/> Every output stream will have a similar
amount of enhancement applied.<wbr/></p>
<p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
buffer of high-resolution images during preview and reprocess image(s) from that buffer
into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
edge enhancement to low-resolution streams (below maximum recording resolution) to
maximize preview quality,<wbr/> but does not apply edge enhancement to high-resolution streams,<wbr/>
since those will be reprocessed later if necessary.<wbr/></p>
<p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera
device will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV-domain edge enhancement,<wbr/> respectively.<wbr/>
The camera device may adjust its internal edge enhancement parameters for best
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>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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
adjust the internal edge enhancement reduction parameters appropriately to get the best
quality images.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.edge.strength">
<td class="entry_name
" rowspan="1">
android.<wbr/>edge.<wbr/>strength
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Control the amount of edge enhancement
applied to the images</p>
</td>
<td class="entry_units">
1-10; 10 is maximum sharpening
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.edge.availableEdgeModes">
<td class="entry_name
" rowspan="5">
android.<wbr/>edge.<wbr/>available<wbr/>Edge<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[full] </span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Full-capability camera devices must always support OFF; camera devices that support
YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING will list ZERO_<wbr/>SHUTTER_<wbr/>LAG; all devices will
list FAST.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must support both FAST and HIGH_<wbr/>QUALITY if edge enhancement control is available
on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
That is,<wbr/> if the highest quality implementation on the camera device does not slow down
capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.edge.mode">
<td class="entry_name
" rowspan="5">
android.<wbr/>edge.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No edge enhancement is applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Apply edge enhancement at a quality level that does not slow down frame rate
relative to sensor output.<wbr/> It may be the same as OFF if edge enhancement will
slow down frame rate relative to sensor.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<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>
</li>
<li>
<span class="entry_type_enum_name">ZERO_SHUTTER_LAG (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Edge enhancement is applied at different
levels for different output streams,<wbr/> 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 edge enhancement applied,<wbr/> while higher-resolution streams have no edge
enhancement applied.<wbr/> The level of edge enhancement for low-resolution streams is tuned
so that frame rate is not impacted,<wbr/> and the quality is equal to or better than FAST
(since it is only applied to lower-resolution outputs,<wbr/> quality may improve from FAST).<wbr/></p>
<p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
high-resolution buffers must not have edge enhancement applied to maximize efficiency of
preview and to avoid double-applying enhancement when reprocessed,<wbr/> while low-resolution
buffers (used for recording or preview,<wbr/> generally) need edge enhancement applied for
reasonable preview quality.<wbr/></p>
<p>This mode is guaranteed to be supported by devices that support either the
YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
(<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operation mode for edge
enhancement.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.edge.availableEdgeModes">android.<wbr/>edge.<wbr/>available<wbr/>Edge<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Edge enhancement improves sharpness and details in the captured image.<wbr/> OFF means
no enhancement will be applied by the camera device.<wbr/></p>
<p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined enhancement
will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the
camera device will use the highest-quality enhancement algorithms,<wbr/>
even if it slows down capture rate.<wbr/> FAST means the camera device will
not slow down capture rate when applying edge enhancement.<wbr/> FAST may be the same as OFF if
edge enhancement will slow down capture rate.<wbr/> Every output stream will have a similar
amount of enhancement applied.<wbr/></p>
<p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
buffer of high-resolution images during preview and reprocess image(s) from that buffer
into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
edge enhancement to low-resolution streams (below maximum recording resolution) to
maximize preview quality,<wbr/> but does not apply edge enhancement to high-resolution streams,<wbr/>
since those will be reprocessed later if necessary.<wbr/></p>
<p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera
device will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV-domain edge enhancement,<wbr/> respectively.<wbr/>
The camera device may adjust its internal edge enhancement parameters for best
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>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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
adjust the internal edge enhancement reduction parameters appropriately to get the best
quality images.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_flash" class="section">flash</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.flash.firingPower">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>firing<wbr/>Power
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Power for flash firing/<wbr/>torch</p>
</td>
<td class="entry_units">
10 is max power; 0 is no flash.<wbr/> Linear
</td>
<td class="entry_range">
<p>0 - 10</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Power for snapshot may use a different scale than
for torch mode.<wbr/> Only one entry for torch mode will be
used</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.flash.firingTime">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>firing<wbr/>Time
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Firing time of flash relative to start of
exposure</p>
</td>
<td class="entry_units">
nanoseconds
</td>
<td class="entry_range">
<p>0-(exposure time-flash duration)</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Clamped to (0,<wbr/> exposure time - flash
duration).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.flash.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Do not fire the flash for this capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SINGLE (v3.2)</span>
<span class="entry_type_enum_notes"><p>If the flash is available and charged,<wbr/> fire flash
for this capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">TORCH (v3.2)</span>
<span class="entry_type_enum_notes"><p>Transition flash to continuously on.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired mode for for the camera device's flash control.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control is only effective when flash unit is available
(<code><a href="#static_android.flash.info.available">android.<wbr/>flash.<wbr/>info.<wbr/>available</a> == true</code>).<wbr/></p>
<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/>
Otherwise,<wbr/> the camera device auto-exposure related flash control (ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/>
ON_<wbr/>ALWAYS_<wbr/>FLASH,<wbr/> or ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE) will override this control.<wbr/></p>
<p>When set to OFF,<wbr/> the camera device will not fire flash for this capture.<wbr/></p>
<p>When set to SINGLE,<wbr/> the camera device will fire flash regardless of the camera
device's auto-exposure routine's result.<wbr/> When used in still capture case,<wbr/> this
control should be used along with auto-exposure (AE) precapture metering sequence
(<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>
<p>When set to TORCH,<wbr/> the flash will be on continuously.<wbr/> This mode can be used
for use cases such as preview,<wbr/> auto-focus assist,<wbr/> still capture,<wbr/> or video recording.<wbr/></p>
<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>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.flash.strengthLevel">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>strength<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Flash strength level to be used when manual flash control is active.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><code>[1-android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level]</code> when the <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> is
set to TORCH;
<code>[1-android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level]</code> when the <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> is
set to SINGLE</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Flash strength level to use in capture mode i.<wbr/>e.<wbr/> when the applications control
flash with either SINGLE or TORCH mode.<wbr/></p>
<p>Use android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level and
android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level to check whether the device supports
flash strength control or not.<wbr/>
If the values of android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level and
android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level are greater than 1,<wbr/>
then the device supports manual flash strength control.<wbr/></p>
<p>If the <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> <code>==</code> TORCH the value must be &gt;= 1
and &lt;= android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level.<wbr/>
If the application doesn't set the key and
android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level &gt; 1,<wbr/>
then the flash will be fired at the default level set by HAL in
android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Default<wbr/>Level.<wbr/>
If the <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> <code>==</code> SINGLE,<wbr/> then the value must be &gt;= 1
and &lt;= android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level.<wbr/>
If the application does not set this key and
android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level &gt; 1,<wbr/>
then the flash will be fired at the default level set by HAL
in android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Default<wbr/>Level.<wbr/>
If <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is set to any of ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> ON_<wbr/>ALWAYS_<wbr/>FLASH,<wbr/>
ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE,<wbr/> ON_<wbr/>EXTERNAL_<wbr/>FLASH values,<wbr/> then the strengthLevel will be ignored.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.flash.info.available">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>info.<wbr/>available
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether this camera device has a
flash unit.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Will be <code>false</code> if no flash is available.<wbr/></p>
<p>If there is no flash unit,<wbr/> none of the flash controls do
anything.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.flash.info.chargeDuration">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>info.<wbr/>charge<wbr/>Duration
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Time taken before flash can fire
again</p>
</td>
<td class="entry_units">
nanoseconds
</td>
<td class="entry_range">
<p>0-1e9</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>1 second too long/<wbr/>too short for recharge? Should
this be power-dependent?</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.flash.info.strengthMaximumLevel">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>info.<wbr/>strength<wbr/>Maximum<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum flashlight brightness level.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>8</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If this value is greater than 1,<wbr/> then the device supports controlling the
flashlight brightness level via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#turnOnTorchWithStrengthLevel">CameraManager#turnOnTorchWithStrengthLevel</a>.<wbr/>
If this value is equal to 1,<wbr/> flashlight brightness control is not supported.<wbr/>
The value for this key will be null for devices with no flash unit.<wbr/></p>
<p>The maximum value is guaranteed to be safe to use for an indefinite duration in
terms of device flashlight lifespan,<wbr/> but may be too bright for comfort for many
use cases.<wbr/> Use the default torch brightness value to avoid problems with an
over-bright flashlight.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.flash.info.strengthDefaultLevel">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>info.<wbr/>strength<wbr/>Default<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Default flashlight brightness level to be set via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#turnOnTorchWithStrengthLevel">CameraManager#turnOnTorchWithStrengthLevel</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>8</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If flash unit is available this will be greater than or equal to 1 and less
or equal to <code><a href="#static_android.flash.info.strengthMaximumLevel">android.<wbr/>flash.<wbr/>info.<wbr/>strength<wbr/>Maximum<wbr/>Level</a></code>.<wbr/></p>
<p>Setting flashlight brightness above the default level
(i.<wbr/>e.<wbr/><code><a href="#static_android.flash.info.strengthDefaultLevel">android.<wbr/>flash.<wbr/>info.<wbr/>strength<wbr/>Default<wbr/>Level</a></code>) may make the device more
likely to reach thermal throttling conditions and slow down,<wbr/> or drain the
battery quicker than normal.<wbr/> To minimize such issues,<wbr/> it is recommended to
start the flashlight at this default brightness until a user explicitly requests
a brighter level.<wbr/>
Note that the value for this key will be null for devices with no flash unit.<wbr/>
The default level should always be &gt; 0.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.flash.colorTemperature">
<td class="entry_name
" rowspan="1">
android.<wbr/>flash.<wbr/>color<wbr/>Temperature
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The x,<wbr/>y whitepoint of the
flash</p>
</td>
<td class="entry_units">
pair of floats
</td>
<td class="entry_range">
<p>0-1 for both</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.flash.maxEnergy">
<td class="entry_name
" rowspan="1">
android.<wbr/>flash.<wbr/>max<wbr/>Energy
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Max energy output of the flash for a full
power single flash</p>
</td>
<td class="entry_units">
lumen-seconds
</td>
<td class="entry_range">
<p>&gt;= 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.flash.singleStrengthMaxLevel">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum flash brightness level for manual flash control in SINGLE mode.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Maximum flash brightness level in camera capture mode and
<a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> set to SINGLE.<wbr/>
Value will be &gt; 1 if the manual flash strength control feature is supported,<wbr/>
otherwise the value will be equal to 1.<wbr/>
Note that this level is just a number of supported levels (the granularity of control).<wbr/>
There is no actual physical power units tied to this level.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.flash.singleStrengthDefaultLevel">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>single<wbr/>Strength<wbr/>Default<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Default flash brightness level for manual flash control in SINGLE mode.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If flash unit is available this will be greater than or equal to 1 and less
or equal to <code>android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level</code>.<wbr/>
Note for devices that do not support the manual flash strength control
feature,<wbr/> this level will always be equal to 1.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.flash.torchStrengthMaxLevel">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum flash brightness level for manual flash control in TORCH mode</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Maximum flash brightness level in camera capture mode and
<a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> set to TORCH.<wbr/>
Value will be &gt; 1 if the manual flash strength control feature is supported,<wbr/>
otherwise the value will be equal to 1.<wbr/></p>
<p>Note that this level is just a number of supported levels(the granularity of control).<wbr/>
There is no actual physical power units tied to this level.<wbr/>
There is no relation between android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level and
android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level i.<wbr/>e.<wbr/> the ratio of
android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level:android.<wbr/>flash.<wbr/>info.<wbr/>singleStrengthMaxLevel
is not guaranteed to be the ratio of actual brightness.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.flash.torchStrengthDefaultLevel">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>torch<wbr/>Strength<wbr/>Default<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Default flash brightness level for manual flash control in TORCH mode</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If flash unit is available this will be greater than or equal to 1 and less
or equal to android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level.<wbr/>
Note for the devices that do not support the manual flash strength control feature,<wbr/>
this level will always be equal to 1.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.flash.firingPower">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>firing<wbr/>Power
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Power for flash firing/<wbr/>torch</p>
</td>
<td class="entry_units">
10 is max power; 0 is no flash.<wbr/> Linear
</td>
<td class="entry_range">
<p>0 - 10</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Power for snapshot may use a different scale than
for torch mode.<wbr/> Only one entry for torch mode will be
used</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.flash.firingTime">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>firing<wbr/>Time
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Firing time of flash relative to start of
exposure</p>
</td>
<td class="entry_units">
nanoseconds
</td>
<td class="entry_range">
<p>0-(exposure time-flash duration)</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Clamped to (0,<wbr/> exposure time - flash
duration).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.flash.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Do not fire the flash for this capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SINGLE (v3.2)</span>
<span class="entry_type_enum_notes"><p>If the flash is available and charged,<wbr/> fire flash
for this capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">TORCH (v3.2)</span>
<span class="entry_type_enum_notes"><p>Transition flash to continuously on.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired mode for for the camera device's flash control.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control is only effective when flash unit is available
(<code><a href="#static_android.flash.info.available">android.<wbr/>flash.<wbr/>info.<wbr/>available</a> == true</code>).<wbr/></p>
<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/>
Otherwise,<wbr/> the camera device auto-exposure related flash control (ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/>
ON_<wbr/>ALWAYS_<wbr/>FLASH,<wbr/> or ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE) will override this control.<wbr/></p>
<p>When set to OFF,<wbr/> the camera device will not fire flash for this capture.<wbr/></p>
<p>When set to SINGLE,<wbr/> the camera device will fire flash regardless of the camera
device's auto-exposure routine's result.<wbr/> When used in still capture case,<wbr/> this
control should be used along with auto-exposure (AE) precapture metering sequence
(<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>
<p>When set to TORCH,<wbr/> the flash will be on continuously.<wbr/> This mode can be used
for use cases such as preview,<wbr/> auto-focus assist,<wbr/> still capture,<wbr/> or video recording.<wbr/></p>
<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>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.flash.state">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>state
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">UNAVAILABLE (v3.2)</span>
<span class="entry_type_enum_notes"><p>No flash on camera.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CHARGING (v3.2)</span>
<span class="entry_type_enum_notes"><p>Flash is charging and cannot be fired.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">READY (v3.2)</span>
<span class="entry_type_enum_notes"><p>Flash is ready to fire.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FIRED (v3.2)</span>
<span class="entry_type_enum_notes"><p>Flash fired for this capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PARTIAL (v3.2)</span>
<span class="entry_type_enum_notes"><p>Flash partially illuminated this frame.<wbr/></p>
<p>This is usually due to the next or previous frame having
the flash fire,<wbr/> and the flash spilling into this capture
due to hardware limitations.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Current state of the flash
unit.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When the camera device doesn't have flash unit
(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/>
Other states indicate the current flash status.<wbr/></p>
<p>In certain conditions,<wbr/> this will be available on LEGACY devices:</p>
<ul>
<li>Flash-less cameras always return UNAVAILABLE.<wbr/></li>
<li>Using <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> <code>==</code> ON_<wbr/>ALWAYS_<wbr/>FLASH
will always return FIRED.<wbr/></li>
<li>Using <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> <code>==</code> TORCH
will always return FIRED.<wbr/></li>
</ul>
<p>In all other conditions the state will not be available on
LEGACY devices (i.<wbr/>e.<wbr/> it will be <code>null</code>).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.flash.strengthLevel">
<td class="entry_name
" rowspan="3">
android.<wbr/>flash.<wbr/>strength<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Flash strength level to be used when manual flash control is active.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><code>[1-android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level]</code> when the <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> is
set to TORCH;
<code>[1-android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level]</code> when the <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> is
set to SINGLE</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Flash strength level to use in capture mode i.<wbr/>e.<wbr/> when the applications control
flash with either SINGLE or TORCH mode.<wbr/></p>
<p>Use android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level and
android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level to check whether the device supports
flash strength control or not.<wbr/>
If the values of android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level and
android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level are greater than 1,<wbr/>
then the device supports manual flash strength control.<wbr/></p>
<p>If the <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> <code>==</code> TORCH the value must be &gt;= 1
and &lt;= android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level.<wbr/>
If the application doesn't set the key and
android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Max<wbr/>Level &gt; 1,<wbr/>
then the flash will be fired at the default level set by HAL in
android.<wbr/>flash.<wbr/>info.<wbr/>torch<wbr/>Strength<wbr/>Default<wbr/>Level.<wbr/>
If the <a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> <code>==</code> SINGLE,<wbr/> then the value must be &gt;= 1
and &lt;= android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level.<wbr/>
If the application does not set this key and
android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Max<wbr/>Level &gt; 1,<wbr/>
then the flash will be fired at the default level set by HAL
in android.<wbr/>flash.<wbr/>info.<wbr/>single<wbr/>Strength<wbr/>Default<wbr/>Level.<wbr/>
If <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is set to any of ON_<wbr/>AUTO_<wbr/>FLASH,<wbr/> ON_<wbr/>ALWAYS_<wbr/>FLASH,<wbr/>
ON_<wbr/>AUTO_<wbr/>FLASH_<wbr/>REDEYE,<wbr/> ON_<wbr/>EXTERNAL_<wbr/>FLASH values,<wbr/> then the strengthLevel will be ignored.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_hotPixel" class="section">hotPixel</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.hotPixel.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>hot<wbr/>Pixel.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No hot pixel correction is applied.<wbr/></p>
<p>The frame rate must not be reduced relative to sensor raw output
for this option.<wbr/></p>
<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>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Hot pixel correction is applied,<wbr/> without reducing frame
rate relative to sensor raw output.<wbr/></p>
<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>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>High-quality hot pixel correction is applied,<wbr/> at a cost
of possibly reduced frame rate relative to sensor raw output.<wbr/></p>
<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>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operational mode for hot pixel correction.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.hotPixel.availableHotPixelModes">android.<wbr/>hot<wbr/>Pixel.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Hotpixel correction interpolates out,<wbr/> or otherwise removes,<wbr/> pixels
that do not accurately measure the incoming light (i.<wbr/>e.<wbr/> pixels that
are stuck at an arbitrary value or are oversensitive).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.hotPixel.availableHotPixelModes">
<td class="entry_name
" rowspan="5">
android.<wbr/>hot<wbr/>Pixel.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.hotPixel.mode">android.<wbr/>hot<wbr/>Pixel.<wbr/>mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>FULL mode camera devices will always support FAST.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>To avoid performance issues,<wbr/> there will be significantly fewer hot
pixels than actual pixels on the camera sensor.<wbr/>
HAL must support both FAST and HIGH_<wbr/>QUALITY if hot pixel correction control is available
on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
That is,<wbr/> if the highest quality implementation on the camera device does not slow down
capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.hotPixel.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>hot<wbr/>Pixel.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No hot pixel correction is applied.<wbr/></p>
<p>The frame rate must not be reduced relative to sensor raw output
for this option.<wbr/></p>
<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>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Hot pixel correction is applied,<wbr/> without reducing frame
rate relative to sensor raw output.<wbr/></p>
<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>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>High-quality hot pixel correction is applied,<wbr/> at a cost
of possibly reduced frame rate relative to sensor raw output.<wbr/></p>
<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>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operational mode for hot pixel correction.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.hotPixel.availableHotPixelModes">android.<wbr/>hot<wbr/>Pixel.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Hotpixel correction interpolates out,<wbr/> or otherwise removes,<wbr/> pixels
that do not accurately measure the incoming light (i.<wbr/>e.<wbr/> pixels that
are stuck at an arbitrary value or are oversensitive).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_jpeg" class="section">jpeg</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.jpeg.gpsLocation">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>gps<wbr/>Location
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [java_public as location]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A location object to use when generating image GPS metadata.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Setting a location object in a request will include the GPS coordinates of the location
into any JPEG images captured based on the request.<wbr/> These coordinates can then be
viewed by anyone who receives the JPEG image.<wbr/></p>
<p>This tag is also used for HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.jpeg.gpsCoordinates">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>gps<wbr/>Coordinates
</td>
<td class="entry_type">
<span class="entry_type_name">double</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">latitude,<wbr/> longitude,<wbr/> altitude.<wbr/> First two in degrees,<wbr/> the third in meters</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>GPS coordinates to include in output JPEG
EXIF.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>(-180 - 180],<wbr/> [-90,<wbr/>90],<wbr/> [-inf,<wbr/> inf]</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This tag is also used for HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.jpeg.gpsProcessingMethod">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>gps<wbr/>Processing<wbr/>Method
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [ndk_public as string]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>32 characters describing GPS algorithm to
include in EXIF.<wbr/></p>
</td>
<td class="entry_units">
UTF-8 null-terminated string
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This tag is also used for HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.jpeg.gpsTimestamp">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>gps<wbr/>Timestamp
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Time GPS fix was made to include in
EXIF.<wbr/></p>
</td>
<td class="entry_units">
UTC in seconds since January 1,<wbr/> 1970
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This tag is also used for HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.jpeg.orientation">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>orientation
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The orientation for a JPEG image.<wbr/></p>
</td>
<td class="entry_units">
Degrees in multiples of 90
</td>
<td class="entry_range">
<p>0,<wbr/> 90,<wbr/> 180,<wbr/> 270</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The clockwise rotation angle in degrees,<wbr/> relative to the orientation
to the camera,<wbr/> that the JPEG picture needs to be rotated by,<wbr/> to be viewed
upright.<wbr/></p>
<p>Camera devices may either encode this value into the JPEG EXIF header,<wbr/> or
rotate the image data to match this orientation.<wbr/> When the image data is rotated,<wbr/>
the thumbnail data will also be rotated.<wbr/></p>
<p>Note that this orientation is relative to the orientation of the camera sensor,<wbr/> given
by <a href="#static_android.sensor.orientation">android.<wbr/>sensor.<wbr/>orientation</a>.<wbr/></p>
<p>To translate from the device orientation given by the Android sensor APIs for camera
sensors which are not EXTERNAL,<wbr/> the following sample code may be used:</p>
<pre><code>private int getJpegOrientation(CameraCharacteristics c,<wbr/> int deviceOrientation) {
if (deviceOrientation == android.<wbr/>view.<wbr/>Orientation<wbr/>Event<wbr/>Listener.<wbr/>ORIENTATION_<wbr/>UNKNOWN) return 0;
int sensorOrientation = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>SENSOR_<wbr/>ORIENTATION);
//<wbr/> Round device orientation to a multiple of 90
deviceOrientation = (deviceOrientation + 45) /<wbr/> 90 * 90;
//<wbr/> Reverse device orientation for front-facing cameras
boolean facingFront = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING) == Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING_<wbr/>FRONT;
if (facingFront) deviceOrientation = -deviceOrientation;
//<wbr/> Calculate desired JPEG orientation relative to camera orientation to make
//<wbr/> the image upright relative to the device orientation
int jpegOrientation = (sensorOrientation + deviceOrientation + 360) % 360;
return jpegOrientation;
}
</code></pre>
<p>For EXTERNAL cameras the sensor orientation will always be set to 0 and the facing will
also be set to EXTERNAL.<wbr/> The above code is not relevant in such case.<wbr/></p>
<p>This tag is also used to describe the orientation of the HEIC image capture,<wbr/> in which
case the rotation is reflected by
<a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>,<wbr/> and not by
rotating the image data itself.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.jpeg.quality">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>quality
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Compression quality of the final JPEG
image.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>1-100; larger is higher quality</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>85-95 is typical usage range.<wbr/> This tag is also used to describe the quality
of the HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.jpeg.thumbnailQuality">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Quality
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Compression quality of JPEG
thumbnail.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>1-100; larger is higher quality</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This tag is also used to describe the quality of the HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.jpeg.thumbnailSize">
<td class="entry_name
" rowspan="5">
android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Size
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as size]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Resolution of embedded JPEG thumbnail.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.jpeg.availableThumbnailSizes">android.<wbr/>jpeg.<wbr/>available<wbr/>Thumbnail<wbr/>Sizes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to (0,<wbr/> 0) value,<wbr/> the JPEG EXIF will not contain thumbnail,<wbr/>
but the captured JPEG will still be a valid image.<wbr/></p>
<p>For best results,<wbr/> when issuing a request for a JPEG image,<wbr/> the thumbnail size selected
should have the same aspect ratio as the main JPEG output.<wbr/></p>
<p>If the thumbnail image aspect ratio differs from the JPEG primary image aspect
ratio,<wbr/> the camera device creates the thumbnail by cropping it from the primary image.<wbr/>
For example,<wbr/> if the primary image has 4:3 aspect ratio,<wbr/> the thumbnail image has
16:9 aspect ratio,<wbr/> the primary image will be cropped vertically (letterbox) to
generate the thumbnail image.<wbr/> The thumbnail image will always have a smaller Field
Of View (FOV) than the primary image when aspect ratios differ.<wbr/></p>
<p>When an <a href="#controls_android.jpeg.orientation">android.<wbr/>jpeg.<wbr/>orientation</a> of non-zero degree is requested,<wbr/>
the camera device will handle thumbnail rotation in one of the following ways:</p>
<ul>
<li>Set the <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>
and keep jpeg and thumbnail image data unrotated.<wbr/></li>
<li>Rotate the jpeg and thumbnail image data and not set
<a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>.<wbr/> In this
case,<wbr/> LIMITED or FULL hardware level devices will report rotated thumbnail size in
capture result,<wbr/> so the width and height will be interchanged if 90 or 270 degree
orientation is requested.<wbr/> LEGACY device will always report unrotated thumbnail
size.<wbr/></li>
</ul>
<p>The tag is also used as thumbnail size for HEIC image format capture,<wbr/> in which case the
the thumbnail rotation is reflected by
<a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>,<wbr/> and not by
rotating the thumbnail data itself.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL must not squeeze or stretch the downscaled primary image to generate thumbnail.<wbr/>
The cropping must be done on the primary jpeg image rather than the sensor pre-correction
active array.<wbr/> The stream cropping rule specified by "S5.<wbr/> Cropping" in camera3.<wbr/>h doesn't
apply to the thumbnail image cropping.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.jpeg.availableThumbnailSizes">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>available<wbr/>Thumbnail<wbr/>Sizes
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2 x n
</span>
<span class="entry_type_visibility"> [public as size]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of JPEG thumbnail sizes for <a href="#controls_android.jpeg.thumbnailSize">android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Size</a> supported by this
camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This list will include at least one non-zero resolution,<wbr/> plus <code>(0,<wbr/>0)</code> for indicating no
thumbnail should be generated.<wbr/></p>
<p>Below conditions will be satisfied for this size list:</p>
<ul>
<li>The sizes will be sorted by increasing pixel area (width x height).<wbr/>
If several resolutions have the same area,<wbr/> they will be sorted by increasing width.<wbr/></li>
<li>The aspect ratio of the largest thumbnail size will be same as the
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/>
The largest size is defined as the size that has the largest pixel area
in a given size list.<wbr/></li>
<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
one corresponding size that has the same aspect ratio in availableThumbnailSizes,<wbr/>
and vice versa.<wbr/></li>
<li>All non-<code>(0,<wbr/> 0)</code> sizes will have non-zero widths and heights.<wbr/></li>
</ul>
<p>This list is also used as supported thumbnail sizes for HEIC image format capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.jpeg.maxSize">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>max<wbr/>Size
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum size in bytes for the compressed
JPEG buffer,<wbr/> in default sensor pixel mode (see <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a>)</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Must be large enough to fit any JPEG produced by
the camera</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is used for sizing the gralloc buffers for
JPEG</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.jpeg.gpsLocation">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>gps<wbr/>Location
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [java_public as location]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A location object to use when generating image GPS metadata.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Setting a location object in a request will include the GPS coordinates of the location
into any JPEG images captured based on the request.<wbr/> These coordinates can then be
viewed by anyone who receives the JPEG image.<wbr/></p>
<p>This tag is also used for HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.jpeg.gpsCoordinates">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>gps<wbr/>Coordinates
</td>
<td class="entry_type">
<span class="entry_type_name">double</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">latitude,<wbr/> longitude,<wbr/> altitude.<wbr/> First two in degrees,<wbr/> the third in meters</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>GPS coordinates to include in output JPEG
EXIF.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>(-180 - 180],<wbr/> [-90,<wbr/>90],<wbr/> [-inf,<wbr/> inf]</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This tag is also used for HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.jpeg.gpsProcessingMethod">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>gps<wbr/>Processing<wbr/>Method
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [ndk_public as string]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>32 characters describing GPS algorithm to
include in EXIF.<wbr/></p>
</td>
<td class="entry_units">
UTF-8 null-terminated string
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This tag is also used for HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.jpeg.gpsTimestamp">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>gps<wbr/>Timestamp
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Time GPS fix was made to include in
EXIF.<wbr/></p>
</td>
<td class="entry_units">
UTC in seconds since January 1,<wbr/> 1970
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This tag is also used for HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.jpeg.orientation">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>orientation
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The orientation for a JPEG image.<wbr/></p>
</td>
<td class="entry_units">
Degrees in multiples of 90
</td>
<td class="entry_range">
<p>0,<wbr/> 90,<wbr/> 180,<wbr/> 270</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The clockwise rotation angle in degrees,<wbr/> relative to the orientation
to the camera,<wbr/> that the JPEG picture needs to be rotated by,<wbr/> to be viewed
upright.<wbr/></p>
<p>Camera devices may either encode this value into the JPEG EXIF header,<wbr/> or
rotate the image data to match this orientation.<wbr/> When the image data is rotated,<wbr/>
the thumbnail data will also be rotated.<wbr/></p>
<p>Note that this orientation is relative to the orientation of the camera sensor,<wbr/> given
by <a href="#static_android.sensor.orientation">android.<wbr/>sensor.<wbr/>orientation</a>.<wbr/></p>
<p>To translate from the device orientation given by the Android sensor APIs for camera
sensors which are not EXTERNAL,<wbr/> the following sample code may be used:</p>
<pre><code>private int getJpegOrientation(CameraCharacteristics c,<wbr/> int deviceOrientation) {
if (deviceOrientation == android.<wbr/>view.<wbr/>Orientation<wbr/>Event<wbr/>Listener.<wbr/>ORIENTATION_<wbr/>UNKNOWN) return 0;
int sensorOrientation = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>SENSOR_<wbr/>ORIENTATION);
//<wbr/> Round device orientation to a multiple of 90
deviceOrientation = (deviceOrientation + 45) /<wbr/> 90 * 90;
//<wbr/> Reverse device orientation for front-facing cameras
boolean facingFront = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING) == Camera<wbr/>Characteristics.<wbr/>LENS_<wbr/>FACING_<wbr/>FRONT;
if (facingFront) deviceOrientation = -deviceOrientation;
//<wbr/> Calculate desired JPEG orientation relative to camera orientation to make
//<wbr/> the image upright relative to the device orientation
int jpegOrientation = (sensorOrientation + deviceOrientation + 360) % 360;
return jpegOrientation;
}
</code></pre>
<p>For EXTERNAL cameras the sensor orientation will always be set to 0 and the facing will
also be set to EXTERNAL.<wbr/> The above code is not relevant in such case.<wbr/></p>
<p>This tag is also used to describe the orientation of the HEIC image capture,<wbr/> in which
case the rotation is reflected by
<a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>,<wbr/> and not by
rotating the image data itself.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.jpeg.quality">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>quality
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Compression quality of the final JPEG
image.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>1-100; larger is higher quality</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>85-95 is typical usage range.<wbr/> This tag is also used to describe the quality
of the HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.jpeg.size">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>size
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The size of the compressed JPEG image,<wbr/> in
bytes</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&gt;= 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If no JPEG output is produced for the request,<wbr/>
this must be 0.<wbr/></p>
<p>Otherwise,<wbr/> this describes the real size of the compressed
JPEG image placed in the output stream.<wbr/> More specifically,<wbr/>
if <a href="#static_android.jpeg.maxSize">android.<wbr/>jpeg.<wbr/>max<wbr/>Size</a> = 1000000,<wbr/> and a specific capture
has <a href="#dynamic_android.jpeg.size">android.<wbr/>jpeg.<wbr/>size</a> = 500000,<wbr/> then the output buffer from
the JPEG stream will be 1000000 bytes,<wbr/> of which the first
500000 make up the real data.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.jpeg.thumbnailQuality">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Quality
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Compression quality of JPEG
thumbnail.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>1-100; larger is higher quality</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This tag is also used to describe the quality of the HEIC image capture.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.jpeg.thumbnailSize">
<td class="entry_name
" rowspan="5">
android.<wbr/>jpeg.<wbr/>thumbnail<wbr/>Size
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as size]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Resolution of embedded JPEG thumbnail.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.jpeg.availableThumbnailSizes">android.<wbr/>jpeg.<wbr/>available<wbr/>Thumbnail<wbr/>Sizes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to (0,<wbr/> 0) value,<wbr/> the JPEG EXIF will not contain thumbnail,<wbr/>
but the captured JPEG will still be a valid image.<wbr/></p>
<p>For best results,<wbr/> when issuing a request for a JPEG image,<wbr/> the thumbnail size selected
should have the same aspect ratio as the main JPEG output.<wbr/></p>
<p>If the thumbnail image aspect ratio differs from the JPEG primary image aspect
ratio,<wbr/> the camera device creates the thumbnail by cropping it from the primary image.<wbr/>
For example,<wbr/> if the primary image has 4:3 aspect ratio,<wbr/> the thumbnail image has
16:9 aspect ratio,<wbr/> the primary image will be cropped vertically (letterbox) to
generate the thumbnail image.<wbr/> The thumbnail image will always have a smaller Field
Of View (FOV) than the primary image when aspect ratios differ.<wbr/></p>
<p>When an <a href="#controls_android.jpeg.orientation">android.<wbr/>jpeg.<wbr/>orientation</a> of non-zero degree is requested,<wbr/>
the camera device will handle thumbnail rotation in one of the following ways:</p>
<ul>
<li>Set the <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>
and keep jpeg and thumbnail image data unrotated.<wbr/></li>
<li>Rotate the jpeg and thumbnail image data and not set
<a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>.<wbr/> In this
case,<wbr/> LIMITED or FULL hardware level devices will report rotated thumbnail size in
capture result,<wbr/> so the width and height will be interchanged if 90 or 270 degree
orientation is requested.<wbr/> LEGACY device will always report unrotated thumbnail
size.<wbr/></li>
</ul>
<p>The tag is also used as thumbnail size for HEIC image format capture,<wbr/> in which case the
the thumbnail rotation is reflected by
<a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION">EXIF orientation flag</a>,<wbr/> and not by
rotating the thumbnail data itself.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL must not squeeze or stretch the downscaled primary image to generate thumbnail.<wbr/>
The cropping must be done on the primary jpeg image rather than the sensor pre-correction
active array.<wbr/> The stream cropping rule specified by "S5.<wbr/> Cropping" in camera3.<wbr/>h doesn't
apply to the thumbnail image cropping.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_lens" class="section">lens</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.lens.aperture">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>aperture
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired lens aperture size,<wbr/> as a ratio of lens focal length to the
effective aperture diameter.<wbr/></p>
</td>
<td class="entry_units">
The f-number (f/<wbr/>N)
</td>
<td class="entry_range">
<p><a href="#static_android.lens.info.availableApertures">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Apertures</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Setting this value is only supported on the camera devices that have a variable
aperture lens.<wbr/></p>
<p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/>
this can be set along with <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/> and <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>
to achieve manual exposure control.<wbr/></p>
<p>The requested aperture value may take several frames to reach the
requested value; the camera device will report the current (intermediate)
aperture size in capture result metadata while the aperture is changing.<wbr/>
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>
<p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is one of
the ON modes,<wbr/> this will be overridden by the camera device
auto-exposure algorithm,<wbr/> the overridden values are then provided
back to the user in the corresponding result.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.lens.filterDensity">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>filter<wbr/>Density
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired setting for the lens neutral density filter(s).<wbr/></p>
</td>
<td class="entry_units">
Exposure Value (EV)
</td>
<td class="entry_range">
<p><a href="#static_android.lens.info.availableFilterDensities">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Filter<wbr/>Densities</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control will not be supported on most camera devices.<wbr/></p>
<p>Lens filters are typically used to lower the amount of light the
sensor is exposed to (measured in steps of EV).<wbr/> As used here,<wbr/> an EV
step is the standard logarithmic representation,<wbr/> which are
non-negative,<wbr/> and inversely proportional to the amount of light
hitting the sensor.<wbr/> For example,<wbr/> setting this to 0 would result
in no reduction of the incoming light,<wbr/> and setting this to 2 would
mean that the filter is set to reduce incoming light by two stops
(allowing 1/<wbr/>4 of the prior amount of light to the sensor).<wbr/></p>
<p>It may take several frames before the lens filter density changes
to the requested value.<wbr/> While the filter density is still changing,<wbr/>
<a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will be set to MOVING.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.lens.focalLength">
<td class="entry_name
" rowspan="5">
android.<wbr/>lens.<wbr/>focal<wbr/>Length
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired lens focal length; used for optical zoom.<wbr/></p>
</td>
<td class="entry_units">
Millimeters
</td>
<td class="entry_range">
<p><a href="#static_android.lens.info.availableFocalLengths">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Focal<wbr/>Lengths</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This setting controls the physical focal length of the camera
device's lens.<wbr/> Changing the focal length changes the field of
view of the camera device,<wbr/> and is usually used for optical zoom.<wbr/></p>
<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
setting won't be applied instantaneously,<wbr/> and it may take several
frames before the lens can change to the requested focal length.<wbr/>
While the focal length is still changing,<wbr/> <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will
be set to MOVING.<wbr/></p>
<p>Optical zoom via this control will not be supported on most devices.<wbr/> Starting from API
level 30,<wbr/> the camera device may combine optical and digital zoom through the
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> control.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For a logical camera device supporting both optical and digital zoom,<wbr/> if focalLength and
cropRegion change in the same request,<wbr/> the camera device must make sure that the new
focalLength and cropRegion take effect in the same frame.<wbr/> This is to make sure that there
is no visible field-of-view jump during zoom.<wbr/> For example,<wbr/> if cropRegion is applied
immediately,<wbr/> but focalLength takes more than 1 frame to take effect,<wbr/> the camera device
will delay the cropRegion so that it's synchronized with focalLength.<wbr/></p>
<p>Starting from API level 30,<wbr/> it's strongly recommended for HAL to implement the
combination of optical and digital zoom using the new <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> API,<wbr/> in
lieu of using <a href="#controls_android.lens.focalLength">android.<wbr/>lens.<wbr/>focal<wbr/>Length</a> and <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.lens.focusDistance">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>focus<wbr/>Distance
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Desired distance to plane of sharpest focus,<wbr/>
measured from frontmost surface of the lens.<wbr/></p>
</td>
<td class="entry_units">
See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
</td>
<td class="entry_range">
<p>&gt;= 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control can be used for setting manual focus,<wbr/> on devices that support
the MANUAL_<wbr/>SENSOR capability and have a variable-focus lens (see
<a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a>).<wbr/></p>
<p>A value of <code>0.<wbr/>0f</code> means infinity focus.<wbr/> The value set will be clamped to
<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>
<p>Like <a href="#controls_android.lens.focalLength">android.<wbr/>lens.<wbr/>focal<wbr/>Length</a>,<wbr/> this setting won't be applied
instantaneously,<wbr/> and it may take several frames before the lens
can move to the requested focus distance.<wbr/> While the lens is still moving,<wbr/>
<a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will be set to MOVING.<wbr/></p>
<p>LEGACY devices support at most setting this to <code>0.<wbr/>0f</code>
for infinity focus.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.lens.opticalStabilizationMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Optical stabilization is unavailable.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optical stabilization is enabled.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Sets whether the camera device uses optical image stabilization (OIS)
when capturing images.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>OIS is used to compensate for motion blur due to small
movements of the camera during capture.<wbr/> Unlike digital image
stabilization (<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> OIS
makes use of mechanical elements to stabilize the camera
sensor,<wbr/> and thus allows for longer exposure times before
camera shake becomes apparent.<wbr/></p>
<p>Switching between different optical stabilization modes may take several
frames to initialize,<wbr/> the camera device will report the current mode in
capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/> the
optical stabilization modes in the first several capture results may still
be "OFF",<wbr/> and it will become "ON" when the initialization is done.<wbr/></p>
<p>If a camera device supports both OIS and digital image stabilization
(<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may produce undesirable
interaction,<wbr/> so it is recommended not to enable both at the same time.<wbr/></p>
<p>If <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a> is set to "PREVIEW_<wbr/>STABILIZATION",<wbr/>
<a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> is overridden.<wbr/> The camera sub-system may choose
to turn on hardware based image stabilization in addition to software based stabilization
if it deems that appropriate.<wbr/> This key's value in the capture result will reflect which
OIS mode was chosen.<wbr/></p>
<p>Not all devices will support OIS; see
<a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a> for
available controls.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.lens.info.availableApertures">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Apertures
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of aperture size values for <a href="#controls_android.lens.aperture">android.<wbr/>lens.<wbr/>aperture</a> that are
supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
The aperture f-number
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If the camera device doesn't support a variable lens aperture,<wbr/>
this list will contain only one value,<wbr/> which is the fixed aperture size.<wbr/></p>
<p>If the camera device supports a variable aperture,<wbr/> the aperture values
in this list will be sorted in ascending order.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.info.availableFilterDensities">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Filter<wbr/>Densities
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of neutral density filter values for
<a href="#controls_android.lens.filterDensity">android.<wbr/>lens.<wbr/>filter<wbr/>Density</a> that are supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
Exposure value (EV)
</td>
<td class="entry_range">
<p>Values are &gt;= 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If a neutral density filter is not supported by this camera device,<wbr/>
this list will contain only 0.<wbr/> Otherwise,<wbr/> this list will include every
filter density supported by the camera device,<wbr/> in ascending order.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.info.availableFocalLengths">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Focal<wbr/>Lengths
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">The list of available focal lengths</div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
device.<wbr/></p>
</td>
<td class="entry_units">
Millimeters
</td>
<td class="entry_range">
<p>Values are &gt; 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If optical zoom is not supported,<wbr/> this list will only contain
a single value corresponding to the fixed focal length of the
device.<wbr/> Otherwise,<wbr/> this list will include every focal length supported
by the camera device,<wbr/> in ascending order.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.info.availableOpticalStabilization">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[limited] </span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of optical image stabilization (OIS) modes for
<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>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If OIS is not supported by a given camera device,<wbr/> this list will
contain only OFF.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.info.hyperfocalDistance">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>info.<wbr/>hyperfocal<wbr/>Distance
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Hyperfocal distance for this lens.<wbr/></p>
</td>
<td class="entry_units">
See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
</td>
<td class="entry_range">
<p>If lens is fixed focus,<wbr/> &gt;= 0.<wbr/> If lens has focuser unit,<wbr/> the value is
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>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If the lens is not fixed focus,<wbr/> the camera device will report this
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>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.info.minimumFocusDistance">
<td class="entry_name
" rowspan="5">
android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Shortest distance from frontmost surface
of the lens that can be brought into sharp focus.<wbr/></p>
</td>
<td class="entry_units">
See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
</td>
<td class="entry_range">
<p>&gt;= 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If the lens is fixed-focus,<wbr/> this will be
0.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Mandatory for FULL devices; LIMITED devices
must always set this value to 0 for fixed-focus; and may omit
the minimum focus distance otherwise.<wbr/></p>
<p>This field is also mandatory for all devices advertising
the MANUAL_<wbr/>SENSOR capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.info.shadingMapSize">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [ndk_public as size]</span>
<span class="entry_type_hwlevel">[full] </span>
<div class="entry_type_notes">width and height (N,<wbr/> M) of lens shading map provided by the camera device.<wbr/></div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Dimensions of lens shading map.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Both values &gt;= 1</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The map should be on the order of 30-40 rows and columns,<wbr/> and
must be smaller than 64x64.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.info.focusDistanceCalibration">
<td class="entry_name
" rowspan="5">
android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">UNCALIBRATED (v3.2)</span>
<span class="entry_type_enum_notes"><p>The lens focus distance is not accurate,<wbr/> and the units used for
<a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> do not correspond to any physical units.<wbr/></p>
<p>Setting the lens to the same focus distance on separate occasions may
result in a different real focus distance,<wbr/> depending on factors such
as the orientation of the device,<wbr/> the age of the focusing mechanism,<wbr/>
and the device temperature.<wbr/> The focus distance value will still be
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
represents the farthest focus.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">APPROXIMATE (v3.2)</span>
<span class="entry_type_enum_notes"><p>The lens focus distance is measured in diopters.<wbr/></p>
<p>However,<wbr/> setting the lens to the same focus distance
on separate occasions may result in a different real
focus distance,<wbr/> depending on factors such as the
orientation of the device,<wbr/> the age of the focusing
mechanism,<wbr/> and the device temperature.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CALIBRATED (v3.2)</span>
<span class="entry_type_enum_notes"><p>The lens focus distance is measured in diopters,<wbr/> and
is calibrated.<wbr/></p>
<p>The lens mechanism is calibrated so that setting the
same focus distance is repeatable on multiple
occasions with good accuracy,<wbr/> and the focus distance
corresponds to the real physical distance to the plane
of best focus.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The lens focus distance calibration quality.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The lens focus distance calibration quality determines the reliability of
focus related metadata entries,<wbr/> i.<wbr/>e.<wbr/> <a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a>,<wbr/>
<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
<a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a>.<wbr/></p>
<p>APPROXIMATE and CALIBRATED devices report the focus metadata in
units of diopters (1/<wbr/>meter),<wbr/> so <code>0.<wbr/>0f</code> represents focusing at infinity,<wbr/>
and increasing positive numbers represent focusing closer and closer
to the camera device.<wbr/> The focus distance control also uses diopters
on these devices.<wbr/></p>
<p>UNCALIBRATED devices do not use units that are directly comparable
to any real physical measurement,<wbr/> but <code>0.<wbr/>0f</code> still represents farthest
focus,<wbr/> and <a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a> represents the
nearest focus the device can achieve.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For devices advertise APPROXIMATE quality or higher,<wbr/> diopters 0 (infinity
focus) must work.<wbr/> When autofocus is disabled (<a href="#controls_android.control.afMode">android.<wbr/>control.<wbr/>af<wbr/>Mode</a> == OFF)
and the lens focus distance is set to 0 diopters
(<a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> == 0),<wbr/> the lens will move to focus at infinity
and is stably focused at infinity even if the device tilts.<wbr/> It may take the
lens some time to move; during the move the lens state should be MOVING and
the output diopter value should be changing toward 0.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.facing">
<td class="entry_name
" rowspan="1">
android.<wbr/>lens.<wbr/>facing
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FRONT (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the same direction as the device's screen.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BACK (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the opposite direction as the device's screen.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTERNAL (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device is an external camera,<wbr/> and has no fixed facing relative to the
device's screen.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Direction the camera faces relative to
device screen.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.poseRotation">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>pose<wbr/>Rotation
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The orientation of the camera relative to the sensor
coordinate system.<wbr/></p>
</td>
<td class="entry_units">
Quaternion coefficients
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The four coefficients that describe the quaternion
rotation from the Android sensor coordinate system to a
camera-aligned coordinate system where the X-axis is
aligned with the long side of the image sensor,<wbr/> the Y-axis
is aligned with the short side of the image sensor,<wbr/> and
the Z-axis is aligned with the optical axis of the sensor.<wbr/></p>
<p>To convert from the quaternion coefficients <code>(x,<wbr/>y,<wbr/>z,<wbr/>w)</code>
to the axis of rotation <code>(a_<wbr/>x,<wbr/> a_<wbr/>y,<wbr/> a_<wbr/>z)</code> and rotation
amount <code>theta</code>,<wbr/> the following formulas can be used:</p>
<pre><code> theta = 2 * acos(w)
a_<wbr/>x = x /<wbr/> sin(theta/<wbr/>2)
a_<wbr/>y = y /<wbr/> sin(theta/<wbr/>2)
a_<wbr/>z = z /<wbr/> sin(theta/<wbr/>2)
</code></pre>
<p>To create a 3x3 rotation matrix that applies the rotation
defined by this quaternion,<wbr/> the following matrix can be
used:</p>
<pre><code>R = [ 1 - 2y^2 - 2z^2,<wbr/> 2xy - 2zw,<wbr/> 2xz + 2yw,<wbr/>
2xy + 2zw,<wbr/> 1 - 2x^2 - 2z^2,<wbr/> 2yz - 2xw,<wbr/>
2xz - 2yw,<wbr/> 2yz + 2xw,<wbr/> 1 - 2x^2 - 2y^2 ]
</code></pre>
<p>This matrix can then be used to apply the rotation to a
column vector point with</p>
<p><code>p' = Rp</code></p>
<p>where <code>p</code> is in the device sensor coordinate system,<wbr/> and
<code>p'</code> is in the camera-oriented coordinate system.<wbr/></p>
<p>If <a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a> is UNDEFINED,<wbr/> the quaternion rotation cannot
be accurately represented by the camera device,<wbr/> and will be represented by
default values matching its default facing.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.poseTranslation">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>pose<wbr/>Translation
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Position of the camera optical center.<wbr/></p>
</td>
<td class="entry_units">
Meters
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The position of the camera device's lens optical center,<wbr/>
as a three-dimensional vector <code>(x,<wbr/>y,<wbr/>z)</code>.<wbr/></p>
<p>Prior to Android P,<wbr/> or when <a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a> is PRIMARY_<wbr/>CAMERA,<wbr/> this position
is relative to the optical center of the largest camera device facing in the same
direction as this camera,<wbr/> in the <a href="https://developer.android.com/reference/android/hardware/SensorEvent.html">Android sensor
coordinate axes</a>.<wbr/> Note that only the axis definitions are shared with the sensor
coordinate system,<wbr/> but not the origin.<wbr/></p>
<p>If this device is the largest or only camera device with a given facing,<wbr/> then this
position will be <code>(0,<wbr/> 0,<wbr/> 0)</code>; a camera device with a lens optical center located 3 cm
from the main sensor along the +X axis (to the right from the user's perspective) will
report <code>(0.<wbr/>03,<wbr/> 0,<wbr/> 0)</code>.<wbr/> Note that this means that,<wbr/> for many computer vision
applications,<wbr/> the position needs to be negated to convert it to a translation from the
camera to the origin.<wbr/></p>
<p>To transform a pixel coordinates between two cameras facing the same direction,<wbr/> first
the source camera <a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a> must be corrected for.<wbr/> Then the source
camera <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> needs to be applied,<wbr/> followed by the
<a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> of the source camera,<wbr/> the translation of the source camera
relative to the destination camera,<wbr/> the <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> of the destination
camera,<wbr/> and finally the inverse of <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> of the destination
camera.<wbr/> This obtains a radial-distortion-free coordinate in the destination camera pixel
coordinates.<wbr/></p>
<p>To compare this against a real image from the destination camera,<wbr/> the destination camera
image then needs to be corrected for radial distortion before comparison or sampling.<wbr/></p>
<p>When <a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a> is GYROSCOPE,<wbr/> then this position is relative to
the center of the primary gyroscope on the device.<wbr/> The axis definitions are the same as
with PRIMARY_<wbr/>CAMERA.<wbr/></p>
<p>When <a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a> is UNDEFINED,<wbr/> this position cannot be accurately
represented by the camera device,<wbr/> and will be represented as <code>(0,<wbr/> 0,<wbr/> 0)</code>.<wbr/></p>
<p>When <a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a> is AUTOMOTIVE,<wbr/> then this position is relative to the
origin of the automotive sensor coordinate system,<wbr/> which is at the center of the rear
axle.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.intrinsicCalibration">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The parameters for this camera device's intrinsic
calibration.<wbr/></p>
</td>
<td class="entry_units">
Pixels in the
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size
coordinate system.<wbr/>
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The five calibration parameters that describe the
transform from camera-centric 3D coordinates to sensor
pixel coordinates:</p>
<pre><code>[f_<wbr/>x,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>x,<wbr/> c_<wbr/>y,<wbr/> s]
</code></pre>
<p>Where <code>f_<wbr/>x</code> and <code>f_<wbr/>y</code> are the horizontal and vertical
focal lengths,<wbr/> <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code> is the position of the optical
axis,<wbr/> and <code>s</code> is a skew parameter for the sensor plane not
being aligned with the lens plane.<wbr/></p>
<p>These are typically used within a transformation matrix K:</p>
<pre><code>K = [ f_<wbr/>x,<wbr/> s,<wbr/> c_<wbr/>x,<wbr/>
0,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>y,<wbr/>
0 0,<wbr/> 1 ]
</code></pre>
<p>which can then be combined with the camera pose rotation
<code>R</code> and translation <code>t</code> (<a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> and
<a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>,<wbr/> respectively) to calculate the
complete transform from world coordinates to pixel
coordinates:</p>
<pre><code>P = [ K 0 * [ R -Rt
0 1 ] 0 1 ]
</code></pre>
<p>(Note the negation of poseTranslation when mapping from camera
to world coordinates,<wbr/> and multiplication by the rotation).<wbr/></p>
<p>With <code>p_<wbr/>w</code> being a point in the world coordinate system
and <code>p_<wbr/>s</code> being a point in the camera active pixel array
coordinate system,<wbr/> and with the mapping including the
homogeneous division by z:</p>
<pre><code> p_<wbr/>h = (x_<wbr/>h,<wbr/> y_<wbr/>h,<wbr/> z_<wbr/>h) = P p_<wbr/>w
p_<wbr/>s = p_<wbr/>h /<wbr/> z_<wbr/>h
</code></pre>
<p>so <code>[x_<wbr/>s,<wbr/> y_<wbr/>s]</code> is the pixel coordinates of the world
point,<wbr/> <code>z_<wbr/>s = 1</code>,<wbr/> and <code>w_<wbr/>s</code> is a measurement of disparity
(depth) in pixel coordinates.<wbr/></p>
<p>Note that the coordinate system for this transform is the
<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/>
where <code>(0,<wbr/>0)</code> is the top-left of the
preCorrectionActiveArraySize rectangle.<wbr/> Once the pose and
intrinsic calibration transforms have been applied to a
world point,<wbr/> then the <a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a>
transform needs to be applied,<wbr/> and the result adjusted to
be in the <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> coordinate
system (where <code>(0,<wbr/> 0)</code> is the top-left of the
activeArraySize rectangle),<wbr/> to determine the final pixel
coordinate of the world point for processed (non-RAW)
output buffers.<wbr/></p>
<p>For camera devices,<wbr/> the center of pixel <code>(x,<wbr/>y)</code> is located at
coordinate <code>(x + 0.<wbr/>5,<wbr/> y + 0.<wbr/>5)</code>.<wbr/> So on a device with a
precorrection active array of size <code>(10,<wbr/>10)</code>,<wbr/> the valid pixel
indices go from <code>(0,<wbr/>0)-(9,<wbr/>9)</code>,<wbr/> and an perfectly-built camera would
have an optical center at the exact center of the pixel grid,<wbr/> at
coordinates <code>(5.<wbr/>0,<wbr/> 5.<wbr/>0)</code>,<wbr/> which is the top-left corner of pixel
<code>(5,<wbr/>5)</code>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.radialDistortion">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>lens.<wbr/>radial<wbr/>Distortion
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
6
</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The correction coefficients to correct for this camera device's
radial and tangential lens distortion.<wbr/></p>
</td>
<td class="entry_units">
Unitless coefficients.<wbr/>
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Four radial distortion coefficients <code>[kappa_<wbr/>0,<wbr/> kappa_<wbr/>1,<wbr/> kappa_<wbr/>2,<wbr/>
kappa_<wbr/>3]</code> and two tangential distortion coefficients
<code>[kappa_<wbr/>4,<wbr/> kappa_<wbr/>5]</code> that can be used to correct the
lens's geometric distortion with the mapping equations:</p>
<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 ) +
kappa_<wbr/>4 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>5 * ( r^2 + 2 * x_<wbr/>i^2 )
y_<wbr/>c = y_<wbr/>i * ( kappa_<wbr/>0 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
kappa_<wbr/>5 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>4 * ( r^2 + 2 * y_<wbr/>i^2 )
</code></pre>
<p>Here,<wbr/> <code>[x_<wbr/>c,<wbr/> y_<wbr/>c]</code> are the coordinates to sample in the
input image that correspond to the pixel values in the
corrected image at the coordinate <code>[x_<wbr/>i,<wbr/> y_<wbr/>i]</code>:</p>
<pre><code> correctedImage(x_<wbr/>i,<wbr/> y_<wbr/>i) = sample_<wbr/>at(x_<wbr/>c,<wbr/> y_<wbr/>c,<wbr/> inputImage)
</code></pre>
<p>The pixel coordinates are defined in a normalized
coordinate system related to the
<a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> calibration fields.<wbr/>
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
lens optical center <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code>.<wbr/> The maximum magnitudes
of both x and y coordinates are normalized to be 1 at the
edge further from the optical center,<wbr/> so the range
for both dimensions is <code>-1 &lt;= x &lt;= 1</code>.<wbr/></p>
<p>Finally,<wbr/> <code>r</code> represents the radial distance from the
optical center,<wbr/> <code>r^2 = x_<wbr/>i^2 + y_<wbr/>i^2</code>,<wbr/> and its magnitude
is therefore no larger than <code>|<wbr/>r|<wbr/> &lt;= sqrt(2)</code>.<wbr/></p>
<p>The distortion model used is the Brown-Conrady model.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.poseReference">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>pose<wbr/>Reference
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">PRIMARY_CAMERA (v3.3)</span>
<span class="entry_type_enum_notes"><p>The value of <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a> is relative to the optical center of
the largest camera device facing the same direction as this camera.<wbr/></p>
<p>This is the default value for API levels before Android P.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">GYROSCOPE (v3.3)</span>
<span class="entry_type_enum_notes"><p>The value of <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a> is relative to the position of the
primary gyroscope of this Android device.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">UNDEFINED (v3.5)</span>
<span class="entry_type_enum_notes"><p>The camera device cannot represent the values of <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>
and <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> accurately enough.<wbr/> One such example is a camera device
on the cover of a foldable phone: in order to measure the pose translation and rotation,<wbr/>
some kind of hinge position sensor would be needed.<wbr/></p>
<p>The value of <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a> must be all zeros,<wbr/> and
<a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> must be values matching its default facing.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTOMOTIVE (v3.8)</span>
<span class="entry_type_enum_notes"><p>The value of <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a> is relative to the origin of the
automotive sensor coordinate system,<wbr/> which is at the center of the rear axle.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The origin for <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>,<wbr/> and the accuracy of
<a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a> and <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Different calibration methods and use cases can produce better or worse results
depending on the selected coordinate origin.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.distortion">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>distortion
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The correction coefficients to correct for this camera device's
radial and tangential lens distortion.<wbr/></p>
<p>Replaces the deprecated <a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a> field,<wbr/> which was
inconsistently defined.<wbr/></p>
</td>
<td class="entry_units">
Unitless coefficients.<wbr/>
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Three radial distortion coefficients <code>[kappa_<wbr/>1,<wbr/> kappa_<wbr/>2,<wbr/>
kappa_<wbr/>3]</code> and two tangential distortion coefficients
<code>[kappa_<wbr/>4,<wbr/> kappa_<wbr/>5]</code> that can be used to correct the
lens's geometric distortion with the mapping equations:</p>
<pre><code> x_<wbr/>c = x_<wbr/>i * ( 1 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
kappa_<wbr/>4 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>5 * ( r^2 + 2 * x_<wbr/>i^2 )
y_<wbr/>c = y_<wbr/>i * ( 1 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
kappa_<wbr/>5 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>4 * ( r^2 + 2 * y_<wbr/>i^2 )
</code></pre>
<p>Here,<wbr/> <code>[x_<wbr/>c,<wbr/> y_<wbr/>c]</code> are the coordinates to sample in the
input image that correspond to the pixel values in the
corrected image at the coordinate <code>[x_<wbr/>i,<wbr/> y_<wbr/>i]</code>:</p>
<pre><code> correctedImage(x_<wbr/>i,<wbr/> y_<wbr/>i) = sample_<wbr/>at(x_<wbr/>c,<wbr/> y_<wbr/>c,<wbr/> inputImage)
</code></pre>
<p>The pixel coordinates are defined in a coordinate system
related to the <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a>
calibration fields; see that entry for details of the mapping stages.<wbr/>
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 lens optical center <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code>,<wbr/> and
the range of the coordinates depends on the focal length
terms of the intrinsic calibration.<wbr/></p>
<p>Finally,<wbr/> <code>r</code> represents the radial distance from the
optical center,<wbr/> <code>r^2 = x_<wbr/>i^2 + y_<wbr/>i^2</code>.<wbr/></p>
<p>The distortion model used is the Brown-Conrady model.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.distortionMaximumResolution">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>distortion<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The correction coefficients to correct for this camera device's
radial and tangential lens distortion for a
CaptureRequest with <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
Unitless coefficients.<wbr/>
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a>,<wbr/> when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.lens.intrinsicCalibrationMaximumResolution">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The parameters for this camera device's intrinsic
calibration when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
Pixels in the
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution
coordinate system.<wbr/>
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a>,<wbr/> when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.lens.aperture">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>aperture
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired lens aperture size,<wbr/> as a ratio of lens focal length to the
effective aperture diameter.<wbr/></p>
</td>
<td class="entry_units">
The f-number (f/<wbr/>N)
</td>
<td class="entry_range">
<p><a href="#static_android.lens.info.availableApertures">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Apertures</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Setting this value is only supported on the camera devices that have a variable
aperture lens.<wbr/></p>
<p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is OFF,<wbr/>
this can be set along with <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/> and <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a>
to achieve manual exposure control.<wbr/></p>
<p>The requested aperture value may take several frames to reach the
requested value; the camera device will report the current (intermediate)
aperture size in capture result metadata while the aperture is changing.<wbr/>
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>
<p>When this is supported and <a href="#controls_android.control.aeMode">android.<wbr/>control.<wbr/>ae<wbr/>Mode</a> is one of
the ON modes,<wbr/> this will be overridden by the camera device
auto-exposure algorithm,<wbr/> the overridden values are then provided
back to the user in the corresponding result.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.lens.filterDensity">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>filter<wbr/>Density
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired setting for the lens neutral density filter(s).<wbr/></p>
</td>
<td class="entry_units">
Exposure Value (EV)
</td>
<td class="entry_range">
<p><a href="#static_android.lens.info.availableFilterDensities">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Filter<wbr/>Densities</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control will not be supported on most camera devices.<wbr/></p>
<p>Lens filters are typically used to lower the amount of light the
sensor is exposed to (measured in steps of EV).<wbr/> As used here,<wbr/> an EV
step is the standard logarithmic representation,<wbr/> which are
non-negative,<wbr/> and inversely proportional to the amount of light
hitting the sensor.<wbr/> For example,<wbr/> setting this to 0 would result
in no reduction of the incoming light,<wbr/> and setting this to 2 would
mean that the filter is set to reduce incoming light by two stops
(allowing 1/<wbr/>4 of the prior amount of light to the sensor).<wbr/></p>
<p>It may take several frames before the lens filter density changes
to the requested value.<wbr/> While the filter density is still changing,<wbr/>
<a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will be set to MOVING.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.lens.focalLength">
<td class="entry_name
" rowspan="5">
android.<wbr/>lens.<wbr/>focal<wbr/>Length
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired lens focal length; used for optical zoom.<wbr/></p>
</td>
<td class="entry_units">
Millimeters
</td>
<td class="entry_range">
<p><a href="#static_android.lens.info.availableFocalLengths">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Focal<wbr/>Lengths</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This setting controls the physical focal length of the camera
device's lens.<wbr/> Changing the focal length changes the field of
view of the camera device,<wbr/> and is usually used for optical zoom.<wbr/></p>
<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
setting won't be applied instantaneously,<wbr/> and it may take several
frames before the lens can change to the requested focal length.<wbr/>
While the focal length is still changing,<wbr/> <a href="#dynamic_android.lens.state">android.<wbr/>lens.<wbr/>state</a> will
be set to MOVING.<wbr/></p>
<p>Optical zoom via this control will not be supported on most devices.<wbr/> Starting from API
level 30,<wbr/> the camera device may combine optical and digital zoom through the
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> control.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For a logical camera device supporting both optical and digital zoom,<wbr/> if focalLength and
cropRegion change in the same request,<wbr/> the camera device must make sure that the new
focalLength and cropRegion take effect in the same frame.<wbr/> This is to make sure that there
is no visible field-of-view jump during zoom.<wbr/> For example,<wbr/> if cropRegion is applied
immediately,<wbr/> but focalLength takes more than 1 frame to take effect,<wbr/> the camera device
will delay the cropRegion so that it's synchronized with focalLength.<wbr/></p>
<p>Starting from API level 30,<wbr/> it's strongly recommended for HAL to implement the
combination of optical and digital zoom using the new <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> API,<wbr/> in
lieu of using <a href="#controls_android.lens.focalLength">android.<wbr/>lens.<wbr/>focal<wbr/>Length</a> and <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.lens.focusDistance">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>focus<wbr/>Distance
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Desired distance to plane of sharpest focus,<wbr/>
measured from frontmost surface of the lens.<wbr/></p>
</td>
<td class="entry_units">
See android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details
</td>
<td class="entry_range">
<p>&gt;= 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Should be zero for fixed-focus cameras</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.lens.focusRange">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>focus<wbr/>Range
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as pairFloatFloat]</span>
<span class="entry_type_hwlevel">[limited] </span>
<div class="entry_type_notes">Range of scene distances that are in focus</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The range of scene distances that are in
sharp focus (depth of field).<wbr/></p>
</td>
<td class="entry_units">
A pair of focus distances in diopters: (near,<wbr/>
far); see android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration for details.<wbr/>
</td>
<td class="entry_range">
<p>&gt;=0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If variable focus not supported,<wbr/> can still report
fixed depth of field range</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.lens.opticalStabilizationMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Optical stabilization is unavailable.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Optical stabilization is enabled.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Sets whether the camera device uses optical image stabilization (OIS)
when capturing images.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>OIS is used to compensate for motion blur due to small
movements of the camera during capture.<wbr/> Unlike digital image
stabilization (<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> OIS
makes use of mechanical elements to stabilize the camera
sensor,<wbr/> and thus allows for longer exposure times before
camera shake becomes apparent.<wbr/></p>
<p>Switching between different optical stabilization modes may take several
frames to initialize,<wbr/> the camera device will report the current mode in
capture result metadata.<wbr/> For example,<wbr/> When "ON" mode is requested,<wbr/> the
optical stabilization modes in the first several capture results may still
be "OFF",<wbr/> and it will become "ON" when the initialization is done.<wbr/></p>
<p>If a camera device supports both OIS and digital image stabilization
(<a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a>),<wbr/> turning both modes on may produce undesirable
interaction,<wbr/> so it is recommended not to enable both at the same time.<wbr/></p>
<p>If <a href="#controls_android.control.videoStabilizationMode">android.<wbr/>control.<wbr/>video<wbr/>Stabilization<wbr/>Mode</a> is set to "PREVIEW_<wbr/>STABILIZATION",<wbr/>
<a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> is overridden.<wbr/> The camera sub-system may choose
to turn on hardware based image stabilization in addition to software based stabilization
if it deems that appropriate.<wbr/> This key's value in the capture result will reflect which
OIS mode was chosen.<wbr/></p>
<p>Not all devices will support OIS; see
<a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a> for
available controls.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.lens.state">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>state
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">STATIONARY (v3.2)</span>
<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/>
<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>
</li>
<li>
<span class="entry_type_enum_name">MOVING (v3.2)</span>
<span class="entry_type_enum_notes"><p>One or several of 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/>
<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
currently changing.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Current lens status.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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/>
<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/>
they may take several frames to reach the requested values.<wbr/> This state indicates
the current status of the lens parameters.<wbr/></p>
<p>When the state is STATIONARY,<wbr/> the lens parameters are not changing.<wbr/> This could be
either because the parameters are all fixed,<wbr/> or because the lens has had enough
time to reach the most recently-requested values.<wbr/>
If all these lens parameters are not changeable for a camera device,<wbr/> as listed below:</p>
<ul>
<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
<a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a> parameter will always be 0.<wbr/></li>
<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/>
which means the optical zoom is not supported.<wbr/></li>
<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>
<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>
</ul>
<p>Then this state will always be STATIONARY.<wbr/></p>
<p>When the state is MOVING,<wbr/> it indicates that at least one of the lens parameters
is changing.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.lens.poseRotation">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>pose<wbr/>Rotation
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The orientation of the camera relative to the sensor
coordinate system.<wbr/></p>
</td>
<td class="entry_units">
Quaternion coefficients
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The four coefficients that describe the quaternion
rotation from the Android sensor coordinate system to a
camera-aligned coordinate system where the X-axis is
aligned with the long side of the image sensor,<wbr/> the Y-axis
is aligned with the short side of the image sensor,<wbr/> and
the Z-axis is aligned with the optical axis of the sensor.<wbr/></p>
<p>To convert from the quaternion coefficients <code>(x,<wbr/>y,<wbr/>z,<wbr/>w)</code>
to the axis of rotation <code>(a_<wbr/>x,<wbr/> a_<wbr/>y,<wbr/> a_<wbr/>z)</code> and rotation
amount <code>theta</code>,<wbr/> the following formulas can be used:</p>
<pre><code> theta = 2 * acos(w)
a_<wbr/>x = x /<wbr/> sin(theta/<wbr/>2)
a_<wbr/>y = y /<wbr/> sin(theta/<wbr/>2)
a_<wbr/>z = z /<wbr/> sin(theta/<wbr/>2)
</code></pre>
<p>To create a 3x3 rotation matrix that applies the rotation
defined by this quaternion,<wbr/> the following matrix can be
used:</p>
<pre><code>R = [ 1 - 2y^2 - 2z^2,<wbr/> 2xy - 2zw,<wbr/> 2xz + 2yw,<wbr/>
2xy + 2zw,<wbr/> 1 - 2x^2 - 2z^2,<wbr/> 2yz - 2xw,<wbr/>
2xz - 2yw,<wbr/> 2yz + 2xw,<wbr/> 1 - 2x^2 - 2y^2 ]
</code></pre>
<p>This matrix can then be used to apply the rotation to a
column vector point with</p>
<p><code>p' = Rp</code></p>
<p>where <code>p</code> is in the device sensor coordinate system,<wbr/> and
<code>p'</code> is in the camera-oriented coordinate system.<wbr/></p>
<p>If <a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a> is UNDEFINED,<wbr/> the quaternion rotation cannot
be accurately represented by the camera device,<wbr/> and will be represented by
default values matching its default facing.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.lens.poseTranslation">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>pose<wbr/>Translation
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Position of the camera optical center.<wbr/></p>
</td>
<td class="entry_units">
Meters
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The position of the camera device's lens optical center,<wbr/>
as a three-dimensional vector <code>(x,<wbr/>y,<wbr/>z)</code>.<wbr/></p>
<p>Prior to Android P,<wbr/> or when <a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a> is PRIMARY_<wbr/>CAMERA,<wbr/> this position
is relative to the optical center of the largest camera device facing in the same
direction as this camera,<wbr/> in the <a href="https://developer.android.com/reference/android/hardware/SensorEvent.html">Android sensor
coordinate axes</a>.<wbr/> Note that only the axis definitions are shared with the sensor
coordinate system,<wbr/> but not the origin.<wbr/></p>
<p>If this device is the largest or only camera device with a given facing,<wbr/> then this
position will be <code>(0,<wbr/> 0,<wbr/> 0)</code>; a camera device with a lens optical center located 3 cm
from the main sensor along the +X axis (to the right from the user's perspective) will
report <code>(0.<wbr/>03,<wbr/> 0,<wbr/> 0)</code>.<wbr/> Note that this means that,<wbr/> for many computer vision
applications,<wbr/> the position needs to be negated to convert it to a translation from the
camera to the origin.<wbr/></p>
<p>To transform a pixel coordinates between two cameras facing the same direction,<wbr/> first
the source camera <a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a> must be corrected for.<wbr/> Then the source
camera <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> needs to be applied,<wbr/> followed by the
<a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> of the source camera,<wbr/> the translation of the source camera
relative to the destination camera,<wbr/> the <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> of the destination
camera,<wbr/> and finally the inverse of <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> of the destination
camera.<wbr/> This obtains a radial-distortion-free coordinate in the destination camera pixel
coordinates.<wbr/></p>
<p>To compare this against a real image from the destination camera,<wbr/> the destination camera
image then needs to be corrected for radial distortion before comparison or sampling.<wbr/></p>
<p>When <a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a> is GYROSCOPE,<wbr/> then this position is relative to
the center of the primary gyroscope on the device.<wbr/> The axis definitions are the same as
with PRIMARY_<wbr/>CAMERA.<wbr/></p>
<p>When <a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a> is UNDEFINED,<wbr/> this position cannot be accurately
represented by the camera device,<wbr/> and will be represented as <code>(0,<wbr/> 0,<wbr/> 0)</code>.<wbr/></p>
<p>When <a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a> is AUTOMOTIVE,<wbr/> then this position is relative to the
origin of the automotive sensor coordinate system,<wbr/> which is at the center of the rear
axle.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.lens.intrinsicCalibration">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The parameters for this camera device's intrinsic
calibration.<wbr/></p>
</td>
<td class="entry_units">
Pixels in the
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size
coordinate system.<wbr/>
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The five calibration parameters that describe the
transform from camera-centric 3D coordinates to sensor
pixel coordinates:</p>
<pre><code>[f_<wbr/>x,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>x,<wbr/> c_<wbr/>y,<wbr/> s]
</code></pre>
<p>Where <code>f_<wbr/>x</code> and <code>f_<wbr/>y</code> are the horizontal and vertical
focal lengths,<wbr/> <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code> is the position of the optical
axis,<wbr/> and <code>s</code> is a skew parameter for the sensor plane not
being aligned with the lens plane.<wbr/></p>
<p>These are typically used within a transformation matrix K:</p>
<pre><code>K = [ f_<wbr/>x,<wbr/> s,<wbr/> c_<wbr/>x,<wbr/>
0,<wbr/> f_<wbr/>y,<wbr/> c_<wbr/>y,<wbr/>
0 0,<wbr/> 1 ]
</code></pre>
<p>which can then be combined with the camera pose rotation
<code>R</code> and translation <code>t</code> (<a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> and
<a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>,<wbr/> respectively) to calculate the
complete transform from world coordinates to pixel
coordinates:</p>
<pre><code>P = [ K 0 * [ R -Rt
0 1 ] 0 1 ]
</code></pre>
<p>(Note the negation of poseTranslation when mapping from camera
to world coordinates,<wbr/> and multiplication by the rotation).<wbr/></p>
<p>With <code>p_<wbr/>w</code> being a point in the world coordinate system
and <code>p_<wbr/>s</code> being a point in the camera active pixel array
coordinate system,<wbr/> and with the mapping including the
homogeneous division by z:</p>
<pre><code> p_<wbr/>h = (x_<wbr/>h,<wbr/> y_<wbr/>h,<wbr/> z_<wbr/>h) = P p_<wbr/>w
p_<wbr/>s = p_<wbr/>h /<wbr/> z_<wbr/>h
</code></pre>
<p>so <code>[x_<wbr/>s,<wbr/> y_<wbr/>s]</code> is the pixel coordinates of the world
point,<wbr/> <code>z_<wbr/>s = 1</code>,<wbr/> and <code>w_<wbr/>s</code> is a measurement of disparity
(depth) in pixel coordinates.<wbr/></p>
<p>Note that the coordinate system for this transform is the
<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/>
where <code>(0,<wbr/>0)</code> is the top-left of the
preCorrectionActiveArraySize rectangle.<wbr/> Once the pose and
intrinsic calibration transforms have been applied to a
world point,<wbr/> then the <a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a>
transform needs to be applied,<wbr/> and the result adjusted to
be in the <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> coordinate
system (where <code>(0,<wbr/> 0)</code> is the top-left of the
activeArraySize rectangle),<wbr/> to determine the final pixel
coordinate of the world point for processed (non-RAW)
output buffers.<wbr/></p>
<p>For camera devices,<wbr/> the center of pixel <code>(x,<wbr/>y)</code> is located at
coordinate <code>(x + 0.<wbr/>5,<wbr/> y + 0.<wbr/>5)</code>.<wbr/> So on a device with a
precorrection active array of size <code>(10,<wbr/>10)</code>,<wbr/> the valid pixel
indices go from <code>(0,<wbr/>0)-(9,<wbr/>9)</code>,<wbr/> and an perfectly-built camera would
have an optical center at the exact center of the pixel grid,<wbr/> at
coordinates <code>(5.<wbr/>0,<wbr/> 5.<wbr/>0)</code>,<wbr/> which is the top-left corner of pixel
<code>(5,<wbr/>5)</code>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.lens.radialDistortion">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>lens.<wbr/>radial<wbr/>Distortion
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
6
</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The correction coefficients to correct for this camera device's
radial and tangential lens distortion.<wbr/></p>
</td>
<td class="entry_units">
Unitless coefficients.<wbr/>
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Four radial distortion coefficients <code>[kappa_<wbr/>0,<wbr/> kappa_<wbr/>1,<wbr/> kappa_<wbr/>2,<wbr/>
kappa_<wbr/>3]</code> and two tangential distortion coefficients
<code>[kappa_<wbr/>4,<wbr/> kappa_<wbr/>5]</code> that can be used to correct the
lens's geometric distortion with the mapping equations:</p>
<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 ) +
kappa_<wbr/>4 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>5 * ( r^2 + 2 * x_<wbr/>i^2 )
y_<wbr/>c = y_<wbr/>i * ( kappa_<wbr/>0 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
kappa_<wbr/>5 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>4 * ( r^2 + 2 * y_<wbr/>i^2 )
</code></pre>
<p>Here,<wbr/> <code>[x_<wbr/>c,<wbr/> y_<wbr/>c]</code> are the coordinates to sample in the
input image that correspond to the pixel values in the
corrected image at the coordinate <code>[x_<wbr/>i,<wbr/> y_<wbr/>i]</code>:</p>
<pre><code> correctedImage(x_<wbr/>i,<wbr/> y_<wbr/>i) = sample_<wbr/>at(x_<wbr/>c,<wbr/> y_<wbr/>c,<wbr/> inputImage)
</code></pre>
<p>The pixel coordinates are defined in a normalized
coordinate system related to the
<a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> calibration fields.<wbr/>
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
lens optical center <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code>.<wbr/> The maximum magnitudes
of both x and y coordinates are normalized to be 1 at the
edge further from the optical center,<wbr/> so the range
for both dimensions is <code>-1 &lt;= x &lt;= 1</code>.<wbr/></p>
<p>Finally,<wbr/> <code>r</code> represents the radial distance from the
optical center,<wbr/> <code>r^2 = x_<wbr/>i^2 + y_<wbr/>i^2</code>,<wbr/> and its magnitude
is therefore no larger than <code>|<wbr/>r|<wbr/> &lt;= sqrt(2)</code>.<wbr/></p>
<p>The distortion model used is the Brown-Conrady model.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.lens.distortion">
<td class="entry_name
" rowspan="3">
android.<wbr/>lens.<wbr/>distortion
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The correction coefficients to correct for this camera device's
radial and tangential lens distortion.<wbr/></p>
<p>Replaces the deprecated <a href="#static_android.lens.radialDistortion">android.<wbr/>lens.<wbr/>radial<wbr/>Distortion</a> field,<wbr/> which was
inconsistently defined.<wbr/></p>
</td>
<td class="entry_units">
Unitless coefficients.<wbr/>
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Three radial distortion coefficients <code>[kappa_<wbr/>1,<wbr/> kappa_<wbr/>2,<wbr/>
kappa_<wbr/>3]</code> and two tangential distortion coefficients
<code>[kappa_<wbr/>4,<wbr/> kappa_<wbr/>5]</code> that can be used to correct the
lens's geometric distortion with the mapping equations:</p>
<pre><code> x_<wbr/>c = x_<wbr/>i * ( 1 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
kappa_<wbr/>4 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>5 * ( r^2 + 2 * x_<wbr/>i^2 )
y_<wbr/>c = y_<wbr/>i * ( 1 + kappa_<wbr/>1 * r^2 + kappa_<wbr/>2 * r^4 + kappa_<wbr/>3 * r^6 ) +
kappa_<wbr/>5 * (2 * x_<wbr/>i * y_<wbr/>i) + kappa_<wbr/>4 * ( r^2 + 2 * y_<wbr/>i^2 )
</code></pre>
<p>Here,<wbr/> <code>[x_<wbr/>c,<wbr/> y_<wbr/>c]</code> are the coordinates to sample in the
input image that correspond to the pixel values in the
corrected image at the coordinate <code>[x_<wbr/>i,<wbr/> y_<wbr/>i]</code>:</p>
<pre><code> correctedImage(x_<wbr/>i,<wbr/> y_<wbr/>i) = sample_<wbr/>at(x_<wbr/>c,<wbr/> y_<wbr/>c,<wbr/> inputImage)
</code></pre>
<p>The pixel coordinates are defined in a coordinate system
related to the <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a>
calibration fields; see that entry for details of the mapping stages.<wbr/>
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 lens optical center <code>[c_<wbr/>x,<wbr/> c_<wbr/>y]</code>,<wbr/> and
the range of the coordinates depends on the focal length
terms of the intrinsic calibration.<wbr/></p>
<p>Finally,<wbr/> <code>r</code> represents the radial distance from the
optical center,<wbr/> <code>r^2 = x_<wbr/>i^2 + y_<wbr/>i^2</code>.<wbr/></p>
<p>The distortion model used is the Brown-Conrady model.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_noiseReduction" class="section">noiseReduction</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.noiseReduction.mode">
<td class="entry_name
" rowspan="5">
android.<wbr/>noise<wbr/>Reduction.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No noise reduction is applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Noise reduction is applied without reducing frame rate relative to sensor
output.<wbr/> It may be the same as OFF if noise reduction will reduce frame rate
relative to sensor.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>High-quality noise reduction is applied,<wbr/> at the cost of possibly reduced frame
rate relative to sensor output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MINIMAL (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>MINIMAL noise reduction is applied without reducing frame rate relative to
sensor output.<wbr/> </p></span>
</li>
<li>
<span class="entry_type_enum_name">ZERO_SHUTTER_LAG (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Noise reduction is applied at different levels for different output streams,<wbr/>
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 reduction applied,<wbr/> while higher-resolution streams have MINIMAL (if
supported) or no noise reduction applied (if MINIMAL is not supported.<wbr/>) The degree of
noise reduction for low-resolution streams is tuned so that frame rate is not impacted,<wbr/>
and the quality is equal to or better than FAST (since it is only applied to
lower-resolution outputs,<wbr/> quality may improve from FAST).<wbr/></p>
<p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
high-resolution buffers must not have noise reduction applied to maximize efficiency of
preview and to avoid over-applying noise filtering when reprocessing,<wbr/> while
low-resolution buffers (used for recording or preview,<wbr/> generally) need noise reduction
applied for reasonable preview quality.<wbr/></p>
<p>This mode is guaranteed to be supported by devices that support either the
YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
(<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Mode of operation for the noise reduction algorithm.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The noise reduction algorithm attempts to improve image quality by removing
excessive noise added by the capture process,<wbr/> especially in dark conditions.<wbr/></p>
<p>OFF means no noise reduction will be applied by the camera device,<wbr/> for both raw and
YUV domain.<wbr/></p>
<p>MINIMAL means that only sensor raw domain basic noise reduction is enabled ,<wbr/>to remove
demosaicing or other processing artifacts.<wbr/> For YUV_<wbr/>REPROCESSING,<wbr/> MINIMAL is same as OFF.<wbr/>
This mode is optional,<wbr/> may not be support by all devices.<wbr/> The application should check
<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>
<p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined noise filtering
will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device
will use the highest-quality noise filtering algorithms,<wbr/>
even if it slows down capture rate.<wbr/> FAST means the camera device will not
slow down capture rate when applying noise filtering.<wbr/> FAST may be the same as MINIMAL if
MINIMAL is listed,<wbr/> or the same as OFF if any noise filtering will slow down capture rate.<wbr/>
Every output stream will have a similar amount of enhancement applied.<wbr/></p>
<p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
buffer of high-resolution images during preview and reprocess image(s) from that buffer
into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
noise reduction to low-resolution streams (below maximum recording resolution) to maximize
preview quality,<wbr/> but does not apply noise reduction to high-resolution streams,<wbr/> since
those will be reprocessed later if necessary.<wbr/></p>
<p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera device
will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV domain noise reduction,<wbr/> respectively.<wbr/> The camera device
may adjust the noise reduction parameters for best image quality based on the
<a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a> if it is set.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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
adjust the internal noise reduction parameters appropriately to get the best quality
images.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.noiseReduction.strength">
<td class="entry_name
" rowspan="1">
android.<wbr/>noise<wbr/>Reduction.<wbr/>strength
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Control the amount of noise reduction
applied to the images</p>
</td>
<td class="entry_units">
1-10; 10 is max noise reduction
</td>
<td class="entry_range">
<p>1 - 10</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.noiseReduction.availableNoiseReductionModes">
<td class="entry_name
" rowspan="5">
android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[limited] </span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of noise reduction modes for <a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a> that are supported
by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Full-capability camera devices will always support OFF and FAST.<wbr/></p>
<p>Camera devices that support YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING will support
ZERO_<wbr/>SHUTTER_<wbr/>LAG.<wbr/></p>
<p>Legacy-capability camera devices will only support FAST mode.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must support both FAST and HIGH_<wbr/>QUALITY if noise reduction control is available
on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
That is,<wbr/> if the highest quality implementation on the camera device does not slow down
capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.noiseReduction.mode">
<td class="entry_name
" rowspan="5">
android.<wbr/>noise<wbr/>Reduction.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No noise reduction is applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Noise reduction is applied without reducing frame rate relative to sensor
output.<wbr/> It may be the same as OFF if noise reduction will reduce frame rate
relative to sensor.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>High-quality noise reduction is applied,<wbr/> at the cost of possibly reduced frame
rate relative to sensor output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MINIMAL (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>MINIMAL noise reduction is applied without reducing frame rate relative to
sensor output.<wbr/> </p></span>
</li>
<li>
<span class="entry_type_enum_name">ZERO_SHUTTER_LAG (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Noise reduction is applied at different levels for different output streams,<wbr/>
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 reduction applied,<wbr/> while higher-resolution streams have MINIMAL (if
supported) or no noise reduction applied (if MINIMAL is not supported.<wbr/>) The degree of
noise reduction for low-resolution streams is tuned so that frame rate is not impacted,<wbr/>
and the quality is equal to or better than FAST (since it is only applied to
lower-resolution outputs,<wbr/> quality may improve from FAST).<wbr/></p>
<p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
with YUV or PRIVATE reprocessing,<wbr/> where the application continuously captures
high-resolution intermediate buffers into a circular buffer,<wbr/> from which a final image is
produced via reprocessing when a user takes a picture.<wbr/> For such a use case,<wbr/> the
high-resolution buffers must not have noise reduction applied to maximize efficiency of
preview and to avoid over-applying noise filtering when reprocessing,<wbr/> while
low-resolution buffers (used for recording or preview,<wbr/> generally) need noise reduction
applied for reasonable preview quality.<wbr/></p>
<p>This mode is guaranteed to be supported by devices that support either the
YUV_<wbr/>REPROCESSING or PRIVATE_<wbr/>REPROCESSING capabilities
(<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> lists either of those capabilities) and it will
be the default mode for CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Mode of operation for the noise reduction algorithm.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The noise reduction algorithm attempts to improve image quality by removing
excessive noise added by the capture process,<wbr/> especially in dark conditions.<wbr/></p>
<p>OFF means no noise reduction will be applied by the camera device,<wbr/> for both raw and
YUV domain.<wbr/></p>
<p>MINIMAL means that only sensor raw domain basic noise reduction is enabled ,<wbr/>to remove
demosaicing or other processing artifacts.<wbr/> For YUV_<wbr/>REPROCESSING,<wbr/> MINIMAL is same as OFF.<wbr/>
This mode is optional,<wbr/> may not be support by all devices.<wbr/> The application should check
<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>
<p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined noise filtering
will be applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device
will use the highest-quality noise filtering algorithms,<wbr/>
even if it slows down capture rate.<wbr/> FAST means the camera device will not
slow down capture rate when applying noise filtering.<wbr/> FAST may be the same as MINIMAL if
MINIMAL is listed,<wbr/> or the same as OFF if any noise filtering will slow down capture rate.<wbr/>
Every output stream will have a similar amount of enhancement applied.<wbr/></p>
<p>ZERO_<wbr/>SHUTTER_<wbr/>LAG is meant to be used by applications that maintain a continuous circular
buffer of high-resolution images during preview and reprocess image(s) from that buffer
into a final capture when triggered by the user.<wbr/> In this mode,<wbr/> the camera device applies
noise reduction to low-resolution streams (below maximum recording resolution) to maximize
preview quality,<wbr/> but does not apply noise reduction to high-resolution streams,<wbr/> since
those will be reprocessed later if necessary.<wbr/></p>
<p>For YUV_<wbr/>REPROCESSING,<wbr/> these FAST/<wbr/>HIGH_<wbr/>QUALITY modes both mean that the camera device
will apply FAST/<wbr/>HIGH_<wbr/>QUALITY YUV domain noise reduction,<wbr/> respectively.<wbr/> The camera device
may adjust the noise reduction parameters for best image quality based on the
<a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a> if it is set.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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
adjust the internal noise reduction parameters appropriately to get the best quality
images.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_quirks" class="section">quirks</td></tr>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.quirks.meteringCropRegion">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>quirks.<wbr/>metering<wbr/>Crop<wbr/>Region
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>If set to 1,<wbr/> the camera service does not
scale 'normalized' coordinates with respect to the crop
region.<wbr/> This applies to metering input (a{e,<wbr/>f,<wbr/>wb}Region
and output (face rectangles).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Normalized coordinates refer to those in the
(-1000,<wbr/>1000) range mentioned in the
android.<wbr/>hardware.<wbr/>Camera API.<wbr/></p>
<p>HAL implementations should instead always use and emit
sensor array-relative coordinates for all region data.<wbr/> Does
not need to be listed in static metadata.<wbr/> Support will be
removed in future versions of camera service.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.quirks.triggerAfWithAuto">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>quirks.<wbr/>trigger<wbr/>Af<wbr/>With<wbr/>Auto
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>If set to 1,<wbr/> then the camera service always
switches to FOCUS_<wbr/>MODE_<wbr/>AUTO before issuing a AF
trigger.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL implementations should implement AF trigger
modes for AUTO,<wbr/> MACRO,<wbr/> CONTINUOUS_<wbr/>FOCUS,<wbr/> and
CONTINUOUS_<wbr/>PICTURE modes instead of using this flag.<wbr/> Does
not need to be listed in static metadata.<wbr/> Support will be
removed in future versions of camera service</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.quirks.useZslFormat">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>quirks.<wbr/>use<wbr/>Zsl<wbr/>Format
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>If set to 1,<wbr/> the camera service uses
CAMERA2_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>ZSL instead of
HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>IMPLEMENTATION_<wbr/>DEFINED for the zero
shutter lag stream</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL implementations should use gralloc usage flags
to determine that a stream will be used for
zero-shutter-lag,<wbr/> instead of relying on an explicit
format setting.<wbr/> Does not need to be listed in static
metadata.<wbr/> Support will be removed in future versions of
camera service.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.quirks.usePartialResult">
<td class="entry_name
entry_name_deprecated
" rowspan="5">
android.<wbr/>quirks.<wbr/>use<wbr/>Partial<wbr/>Result
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [hidden]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>If set to 1,<wbr/> the HAL will always split result
metadata for a single capture into multiple buffers,<wbr/>
returned using multiple process_<wbr/>capture_<wbr/>result calls.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Does not need to be listed in static
metadata.<wbr/> Support for partial results will be reworked in
future versions of camera service.<wbr/> This quirk will stop
working at that point; DO NOT USE without careful
consideration of future support.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to <code>camera3_<wbr/>capture_<wbr/>result::partial_<wbr/>result</code>
for information on how to implement partial results.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.quirks.partialResult">
<td class="entry_name
entry_name_deprecated
" rowspan="5">
android.<wbr/>quirks.<wbr/>partial<wbr/>Result
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [hidden as boolean]</span>
<span class="entry_type_deprecated">[deprecated] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FINAL (v3.2)</span>
<span class="entry_type_enum_notes"><p>The last or only metadata result buffer
for this capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PARTIAL (v3.2)</span>
<span class="entry_type_enum_notes"><p>A partial buffer of result metadata for this
capture.<wbr/> More result buffers for this capture will be sent
by the camera device,<wbr/> the last of which will be marked
FINAL.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether a result given to the framework is the
final one for the capture,<wbr/> or only a partial that contains a
subset of the full set of dynamic metadata
values.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
<p>Optional.<wbr/> Default value is FINAL.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The entries in the result metadata buffers for a
single capture may not overlap,<wbr/> except for this entry.<wbr/> The
FINAL buffers must retain FIFO ordering relative to the
requests that generate them,<wbr/> so the FINAL buffer for frame 3 must
always be sent to the framework after the FINAL buffer for frame 2,<wbr/> and
before the FINAL buffer for frame 4.<wbr/> PARTIAL buffers may be returned
in any order relative to other frames,<wbr/> but all PARTIAL buffers for a given
capture must arrive before the FINAL buffer for that capture.<wbr/> This entry may
only be used by the camera device if quirks.<wbr/>usePartialResult is set to 1.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to <code>camera3_<wbr/>capture_<wbr/>result::partial_<wbr/>result</code>
for information on how to implement partial results.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_request" class="section">request</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.request.frameCount">
<td class="entry_name
entry_name_deprecated
" rowspan="1">
android.<wbr/>request.<wbr/>frame<wbr/>Count
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A frame counter set by the framework.<wbr/> Must
be maintained unchanged in output frame.<wbr/> This value monotonically
increases with every new result (that is,<wbr/> each new result has a unique
frameCount value).<wbr/></p>
</td>
<td class="entry_units">
incrementing integer
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
<p>Any int.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.request.id">
<td class="entry_name
" rowspan="1">
android.<wbr/>request.<wbr/>id
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [hidden]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An application-specified ID for the current
request.<wbr/> Must be maintained unchanged in output
frame</p>
</td>
<td class="entry_units">
arbitrary integer assigned by application
</td>
<td class="entry_range">
<p>Any int</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.request.inputStreams">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>request.<wbr/>input<wbr/>Streams
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List which camera reprocess stream is used
for the source of reprocessing data.<wbr/></p>
</td>
<td class="entry_units">
List of camera reprocess stream IDs
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
<p>Typically,<wbr/> only one entry allowed,<wbr/> must be a valid reprocess stream ID.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HAL2">HAL2</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Only meaningful when <a href="#controls_android.request.type">android.<wbr/>request.<wbr/>type</a> ==
REPROCESS.<wbr/> Ignored otherwise</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.request.metadataMode">
<td class="entry_name
" rowspan="1">
android.<wbr/>request.<wbr/>metadata<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [system]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">NONE (v3.2)</span>
<span class="entry_type_enum_notes"><p>No metadata should be produced on output,<wbr/> except
for application-bound buffer data.<wbr/> If no
application-bound streams exist,<wbr/> no frame should be
placed in the output frame queue.<wbr/> If such streams
exist,<wbr/> a frame should be placed on the output queue
with null metadata but with the necessary output buffer
information.<wbr/> Timestamp information should still be
included with any output stream buffers</p></span>
</li>
<li>
<span class="entry_type_enum_name">FULL (v3.2)</span>
<span class="entry_type_enum_notes"><p>All metadata should be produced.<wbr/> Statistics will
only be produced if they are separately
enabled</p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>How much metadata to produce on
output</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.request.outputStreams">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>request.<wbr/>output<wbr/>Streams
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Lists which camera output streams image data
from this capture must be sent to</p>
</td>
<td class="entry_units">
List of camera stream IDs
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
<p>List must only include streams that have been
created</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HAL2">HAL2</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If no output streams are listed,<wbr/> then the image
data should simply be discarded.<wbr/> The image data must
still be captured for metadata and statistics production,<wbr/>
and the lens and flash must operate as requested.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.request.type">
<td class="entry_name
entry_name_deprecated
" rowspan="1">
android.<wbr/>request.<wbr/>type
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">CAPTURE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Capture a new image from the imaging hardware,<wbr/>
and process it according to the
settings</p></span>
</li>
<li>
<span class="entry_type_enum_name">REPROCESS (v3.2)</span>
<span class="entry_type_enum_notes"><p>Process previously captured data; the
<a href="#controls_android.request.inputStreams">android.<wbr/>request.<wbr/>input<wbr/>Streams</a> parameter determines the
source reprocessing stream.<wbr/> TODO: Mark dynamic metadata
needed for reprocessing with [RP]</p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The type of the request; either CAPTURE or
REPROCESS.<wbr/> For legacy HAL3,<wbr/> this tag is redundant.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HAL2">HAL2</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.request.maxNumOutputStreams">
<td class="entry_name
" rowspan="3">
android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Streams
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum numbers of different types of output streams
that can be configured and used simultaneously by a camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>For processed (and stalling) format streams,<wbr/> &gt;= 1.<wbr/></p>
<p>For Raw format (either stalling or non-stalling) streams,<wbr/> &gt;= 0.<wbr/></p>
<p>For processed (but not stalling) format streams,<wbr/> &gt;= 3
for FULL mode devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL</code>);
&gt;= 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>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is a 3 element tuple that contains the max number of output simultaneous
streams for raw sensor,<wbr/> processed (but not stalling),<wbr/> and processed (and stalling)
formats respectively.<wbr/> For example,<wbr/> assuming that JPEG is typically a processed and
stalling stream,<wbr/> if max raw sensor format output stream number is 1,<wbr/> max YUV streams
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>
<p>This lists the upper bound of the number of output streams supported by
the camera device.<wbr/> Using more streams simultaneously may require more hardware and
CPU resources that will consume more power.<wbr/> The image format for an output stream can
be any supported format provided by <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a>.<wbr/>
The formats defined in <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> can be categorized
into the 3 stream types as below:</p>
<ul>
<li>Processed (but stalling): any non-RAW format with a stallDurations &gt; 0.<wbr/>
Typically <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">JPEG format</a>.<wbr/></li>
<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>
<li>Processed (but not-stalling): any non-RAW format without a stall duration.<wbr/> Typically
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">YUV_<wbr/>420_<wbr/>888</a>,<wbr/>
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#NV21">NV21</a>,<wbr/> <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YV12">YV12</a>,<wbr/> or <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#Y8">Y8</a> .<wbr/></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.maxNumOutputRaw">
<td class="entry_name
" rowspan="3">
android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Raw
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum numbers of different types of output streams
that can be configured and used simultaneously by a camera device
for any <code>RAW</code> formats.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&gt;= 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This value contains the max number of output simultaneous
streams from the raw sensor.<wbr/></p>
<p>This lists the upper bound of the number of output streams supported by
the camera device.<wbr/> Using more streams simultaneously may require more hardware and
CPU resources that will consume more power.<wbr/> The image format for this kind of an output stream can
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>
<p>In particular,<wbr/> a <code>RAW</code> format is typically one of:</p>
<ul>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">RAW_<wbr/>SENSOR</a></li>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW10">RAW10</a></li>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW12">RAW12</a></li>
</ul>
<p>LEGACY mode devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> <code>==</code> LEGACY)
never support raw streams.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.maxNumOutputProc">
<td class="entry_name
" rowspan="3">
android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Proc
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum numbers of different types of output streams
that can be configured and used simultaneously by a camera device
for any processed (but not-stalling) formats.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&gt;= 3
for FULL mode devices (<code><a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL</code>);
&gt;= 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>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This value contains the max number of output simultaneous
streams for any processed (but not-stalling) formats.<wbr/></p>
<p>This lists the upper bound of the number of output streams supported by
the camera device.<wbr/> Using more streams simultaneously may require more hardware and
CPU resources that will consume more power.<wbr/> The image format for this kind of an output stream can
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>
<p>Processed (but not-stalling) is defined as any non-RAW format without a stall duration.<wbr/>
Typically:</p>
<ul>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">YUV_<wbr/>420_<wbr/>888</a></li>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#NV21">NV21</a></li>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YV12">YV12</a></li>
<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>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#Y8">Y8</a></li>
</ul>
<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
processed format -- it will return 0 for a non-stalling stream.<wbr/></p>
<p>LEGACY devices will support at least 2 processing/<wbr/>non-stalling streams.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.maxNumOutputProcStalling">
<td class="entry_name
" rowspan="3">
android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Output<wbr/>Proc<wbr/>Stalling
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum numbers of different types of output streams
that can be configured and used simultaneously by a camera device
for any processed (and stalling) formats.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&gt;= 1</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This value contains the max number of output simultaneous
streams for any processed (but not-stalling) formats.<wbr/></p>
<p>This lists the upper bound of the number of output streams supported by
the camera device.<wbr/> Using more streams simultaneously may require more hardware and
CPU resources that will consume more power.<wbr/> The image format for this kind of an output stream can
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>
<p>A processed and stalling format is defined as any non-RAW format with a stallDurations
&gt; 0.<wbr/> Typically only the <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">JPEG format</a> is a stalling format.<wbr/></p>
<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
processed format -- it will return a non-0 value for a stalling stream.<wbr/></p>
<p>LEGACY devices will support up to 1 processing/<wbr/>stalling stream.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.maxNumReprocessStreams">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Reprocess<wbr/>Streams
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
1
</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>How many reprocessing streams of any type
can be allocated at the same time.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
<p>&gt;= 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HAL2">HAL2</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Only used by HAL2.<wbr/>x.<wbr/></p>
<p>When set to 0,<wbr/> it means no reprocess stream is supported.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.maxNumInputStreams">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Input<wbr/>Streams
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum numbers of any type of input streams
that can be configured and used simultaneously by a camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>0 or 1.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to 0,<wbr/> it means no input stream is supported.<wbr/></p>
<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
input stream,<wbr/> there must be at least one output stream configured to to receive the
reprocessed images.<wbr/></p>
<p>When an input stream and some output streams are used in a reprocessing request,<wbr/>
only the input buffer will be used to produce these output stream buffers,<wbr/> and a
new sensor image will not be captured.<wbr/></p>
<p>For example,<wbr/> for Zero Shutter Lag (ZSL) still capture use case,<wbr/> the input
stream image format will be PRIVATE,<wbr/> the associated output stream image format
should be JPEG.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For the reprocessing flow and controls,<wbr/> see
hardware/<wbr/>libhardware/<wbr/>include/<wbr/>hardware/<wbr/>camera3.<wbr/>h Section 10 for more details.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.pipelineMaxDepth">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Specifies the number of maximum pipeline stages a frame
has to go through from when it's exposed to when it's available
to the framework.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A typical minimum value for this is 2 (one stage to expose,<wbr/>
one stage to readout) from the sensor.<wbr/> The ISP then usually adds
its own stages to do custom HW processing.<wbr/> Further stages may be
added by SW processing.<wbr/></p>
<p>Depending on what settings are used (e.<wbr/>g.<wbr/> YUV,<wbr/> JPEG) and what
processing is enabled (e.<wbr/>g.<wbr/> face detection),<wbr/> the actual pipeline
depth (specified by <a href="#dynamic_android.request.pipelineDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Depth</a>) may be less than
the max pipeline depth.<wbr/></p>
<p>A pipeline depth of X stages is equivalent to a pipeline latency of
X frame intervals.<wbr/></p>
<p>This value will normally be 8 or less,<wbr/> however,<wbr/> for high speed capture session,<wbr/>
the max pipeline depth will be up to 8 x size of high speed capture request list.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This value should be 4 or less,<wbr/> expect for the high speed recording session,<wbr/> where the
max batch sizes may be larger than 1.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.partialResultCount">
<td class="entry_name
" rowspan="3">
android.<wbr/>request.<wbr/>partial<wbr/>Result<wbr/>Count
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Defines how many sub-components
a result will be composed of.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&gt;= 1</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>In order to combat the pipeline latency,<wbr/> partial results
may be delivered to the application layer from the camera device as
soon as they are available.<wbr/></p>
<p>Optional; defaults to 1.<wbr/> A value of 1 means that partial
results are not supported,<wbr/> and only the final TotalCaptureResult will
be produced by the camera device.<wbr/></p>
<p>A typical use case for this might be: after requesting an
auto-focus (AF) lock the new AF state might be available 50%
of the way through the pipeline.<wbr/> The camera device could
then immediately dispatch this state via a partial result to
the application,<wbr/> and the rest of the metadata via later
partial results.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.availableCapabilities">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>available<wbr/>Capabilities
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">BACKWARD_COMPATIBLE (v3.2)</span>
<span class="entry_type_enum_notes"><p>The minimal set of capabilities that every camera
device (regardless of <a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a>)
supports.<wbr/></p>
<p>This capability is listed by all normal devices,<wbr/> and
indicates that the camera device has a feature set
that's comparable to the baseline requirements for the
older android.<wbr/>hardware.<wbr/>Camera API.<wbr/></p>
<p>Devices with the DEPTH_<wbr/>OUTPUT capability might not list this
capability,<wbr/> indicating that they support only depth measurement,<wbr/>
not standard color output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MANUAL_SENSOR (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device can be manually controlled (3A algorithms such
as auto-exposure,<wbr/> and auto-focus can be bypassed).<wbr/>
The camera device supports basic manual control of the sensor image
acquisition related stages.<wbr/> This means the following controls are
guaranteed to be supported:</p>
<ul>
<li>Manual frame duration control<ul>
<li><a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a></li>
<li><a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a></li>
</ul>
</li>
<li>Manual exposure control<ul>
<li><a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a></li>
<li><a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a></li>
</ul>
</li>
<li>Manual sensitivity control<ul>
<li><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></li>
<li><a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a></li>
</ul>
</li>
<li>Manual lens control (if the lens is adjustable)<ul>
<li>android.<wbr/>lens.<wbr/>*</li>
</ul>
</li>
<li>Manual flash control (if a flash unit is present)<ul>
<li>android.<wbr/>flash.<wbr/>*</li>
</ul>
</li>
<li>Manual black level locking<ul>
<li><a href="#controls_android.blackLevel.lock">android.<wbr/>black<wbr/>Level.<wbr/>lock</a></li>
</ul>
</li>
<li>Auto exposure lock<ul>
<li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
</ul>
</li>
</ul>
<p>If any of the above 3A algorithms are enabled,<wbr/> then the camera
device will accurately report the values applied by 3A in the
result.<wbr/></p>
<p>A given camera device may also support additional manual sensor controls,<wbr/>
but this capability only covers the above list of controls.<wbr/></p>
<p>If this is supported,<wbr/> <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> will
additionally return a min frame duration that is greater than
zero for each supported size-format combination.<wbr/></p>
<p>For camera devices with LOGICAL_<wbr/>MULTI_<wbr/>CAMERA capability,<wbr/> when the underlying active
physical camera switches,<wbr/> exposureTime,<wbr/> sensitivity,<wbr/> and lens properties may change
even if AE/<wbr/>AF is locked.<wbr/> However,<wbr/> the overall auto exposure and auto focus experience
for users will be consistent.<wbr/> Refer to LOGICAL_<wbr/>MULTI_<wbr/>CAMERA capability for details.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MANUAL_POST_PROCESSING (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device post-processing stages can be manually controlled.<wbr/>
The camera device supports basic manual control of the image post-processing
stages.<wbr/> This means the following controls are guaranteed to be supported:</p>
<ul>
<li>
<p>Manual tonemap control</p>
<ul>
<li><a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a></li>
<li><a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a></li>
<li><a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></li>
<li><a href="#controls_android.tonemap.gamma">android.<wbr/>tonemap.<wbr/>gamma</a></li>
<li><a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a></li>
</ul>
</li>
<li>
<p>Manual white balance control</p>
<ul>
<li><a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a></li>
<li><a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a></li>
</ul>
</li>
<li>Manual lens shading map control<ul>
<li><a href="#controls_android.shading.mode">android.<wbr/>shading.<wbr/>mode</a></li>
<li><a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a></li>
<li><a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a></li>
<li><a href="#static_android.lens.info.shadingMapSize">android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size</a></li>
</ul>
</li>
<li>Manual aberration correction control (if aberration correction is supported)<ul>
<li><a href="#controls_android.colorCorrection.aberrationMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode</a></li>
<li><a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a></li>
</ul>
</li>
<li>Auto white balance lock<ul>
<li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
</ul>
</li>
</ul>
<p>If auto white balance is enabled,<wbr/> then the camera device
will accurately report the values applied by AWB in the result.<wbr/></p>
<p>A given camera device may also support additional post-processing
controls,<wbr/> but this capability only covers the above list of controls.<wbr/></p>
<p>For camera devices with LOGICAL_<wbr/>MULTI_<wbr/>CAMERA capability,<wbr/> when underlying active
physical camera switches,<wbr/> tonemap,<wbr/> white balance,<wbr/> and shading map may change even if
awb is locked.<wbr/> However,<wbr/> the overall post-processing experience for users will be
consistent.<wbr/> Refer to LOGICAL_<wbr/>MULTI_<wbr/>CAMERA capability for details.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">RAW (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device supports outputting RAW buffers and
metadata for interpreting them.<wbr/></p>
<p>Devices supporting the RAW capability allow both for
saving DNG files,<wbr/> and for direct application processing of
raw sensor images.<wbr/></p>
<ul>
<li>RAW_<wbr/>SENSOR is supported as an output format.<wbr/></li>
<li>The maximum available resolution for RAW_<wbr/>SENSOR streams
will match either the value in
<a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a> or
<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>
<li>All DNG-related optional metadata entries are provided
by the camera device.<wbr/></li>
</ul></span>
</li>
<li>
<span class="entry_type_enum_name">PRIVATE_REPROCESSING (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[java_public]</span>
<span class="entry_type_enum_notes"><p>The camera device supports the Zero Shutter Lag reprocessing use case.<wbr/></p>
<ul>
<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>
<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/>
that is,<wbr/> <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> is included in the lists of
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>
<li><a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getValidOutputFormatsForInput">StreamConfigurationMap#getValidOutputFormatsForInput</a>
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>
<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>
<li>Using <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> does not cause a frame rate drop
relative to the sensor's maximum capture rate (at that resolution).<wbr/></li>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> will be reprocessable into both
<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>
<li>For a MONOCHROME camera supporting Y8 format,<wbr/> <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> will be reprocessable into
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#Y8">ImageFormat#Y8</a>.<wbr/></li>
<li>The maximum available resolution for PRIVATE streams
(both input/<wbr/>output) will match the maximum available
resolution of JPEG streams.<wbr/></li>
<li>Static metadata <a href="#static_android.reprocess.maxCaptureStall">android.<wbr/>reprocess.<wbr/>max<wbr/>Capture<wbr/>Stall</a>.<wbr/></li>
<li>Only below controls are effective for reprocessing requests and
will be present in capture results,<wbr/> other controls in reprocess
requests will be ignored by the camera device.<wbr/><ul>
<li>android.<wbr/>jpeg.<wbr/>*</li>
<li><a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a></li>
<li><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a></li>
</ul>
</li>
<li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a> and
<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>
</ul></span>
</li>
<li>
<span class="entry_type_enum_name">READ_SENSOR_SETTINGS (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device supports accurately reporting the sensor settings for many of
the sensor controls while the built-in 3A algorithm is running.<wbr/> This allows
reporting of sensor settings even when these settings cannot be manually changed.<wbr/></p>
<p>The values reported for the following controls are guaranteed to be available
in the CaptureResult,<wbr/> including when 3A is enabled:</p>
<ul>
<li>Exposure control<ul>
<li><a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a></li>
</ul>
</li>
<li>Sensitivity control<ul>
<li><a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a></li>
</ul>
</li>
<li>Lens controls (if the lens is adjustable)<ul>
<li><a href="#controls_android.lens.focusDistance">android.<wbr/>lens.<wbr/>focus<wbr/>Distance</a></li>
<li><a href="#controls_android.lens.aperture">android.<wbr/>lens.<wbr/>aperture</a></li>
</ul>
</li>
</ul>
<p>This capability is a subset of the MANUAL_<wbr/>SENSOR control capability,<wbr/> and will
always be included if the MANUAL_<wbr/>SENSOR capability is available.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BURST_CAPTURE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device supports capturing high-resolution images at &gt;= 20 frames per
second,<wbr/> in at least the uncompressed YUV format,<wbr/> when post-processing settings are
set to FAST.<wbr/> Additionally,<wbr/> all image resolutions less than 24 megapixels can be
captured at &gt;= 10 frames per second.<wbr/> Here,<wbr/> 'high resolution' means at least 8
megapixels,<wbr/> or the maximum resolution of the device,<wbr/> whichever is smaller.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">YUV_REPROCESSING (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[java_public]</span>
<span class="entry_type_enum_notes"><p>The camera device supports the YUV_<wbr/>420_<wbr/>888 reprocessing use case,<wbr/> similar as
PRIVATE_<wbr/>REPROCESSING,<wbr/> This capability requires the camera device to support the
following:</p>
<ul>
<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>
<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/> YUV_<wbr/>420_<wbr/>888 is included in the lists of 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>
<li><a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getValidOutputFormatsForInput">StreamConfigurationMap#getValidOutputFormatsForInput</a>
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>
<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>
<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 relative to the sensor's maximum capture rate (at that resolution).<wbr/></li>
<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
<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>
<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
maximum available resolution of <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a> streams.<wbr/></li>
<li>For a MONOCHROME camera with Y8 format support,<wbr/> all the requirements mentioned
above for YUV_<wbr/>420_<wbr/>888 apply for Y8 format as well.<wbr/></li>
<li>Static metadata <a href="#static_android.reprocess.maxCaptureStall">android.<wbr/>reprocess.<wbr/>max<wbr/>Capture<wbr/>Stall</a>.<wbr/></li>
<li>Only the below controls are effective for reprocessing requests and will be present
in capture results.<wbr/> The reprocess requests are from the original capture results
that 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> output buffers.<wbr/> All other controls in the
reprocess requests will be ignored by the camera device.<wbr/><ul>
<li>android.<wbr/>jpeg.<wbr/>*</li>
<li><a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a></li>
<li><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a></li>
<li><a href="#controls_android.reprocess.effectiveExposureFactor">android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor</a></li>
</ul>
</li>
<li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.<wbr/>noise<wbr/>Reduction.<wbr/>available<wbr/>Noise<wbr/>Reduction<wbr/>Modes</a> and
<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>
</ul></span>
</li>
<li>
<span class="entry_type_enum_name">DEPTH_OUTPUT (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device can produce depth measurements from its field of view.<wbr/></p>
<p>This capability requires the camera device to support the following:</p>
<ul>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#DEPTH16">ImageFormat#DEPTH16</a> is supported as
an output format.<wbr/></li>
<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 output format.<wbr/></li>
<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/> will
list the following calibration metadata entries in both <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a>
and <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">CaptureResult</a>:<ul>
<li><a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a></li>
<li><a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a></li>
<li><a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a></li>
<li><a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a></li>
</ul>
</li>
<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>
<li>As of Android P,<wbr/> the <a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a> entry is listed by this device.<wbr/></li>
<li>A LIMITED camera with only the DEPTH_<wbr/>OUTPUT capability does not have to support
normal YUV_<wbr/>420_<wbr/>888,<wbr/> Y8,<wbr/> JPEG,<wbr/> and PRIV-format outputs.<wbr/> It only has to support the
DEPTH16 format.<wbr/></li>
</ul>
<p>Generally,<wbr/> depth output operates at a slower frame rate than standard color capture,<wbr/>
so the DEPTH16 and DEPTH_<wbr/>POINT_<wbr/>CLOUD formats will commonly have a stall duration that
should be accounted for (see <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a>).<wbr/>
On a device that supports both depth and color-based output,<wbr/> to enable smooth preview,<wbr/>
using a repeating burst is recommended,<wbr/> where a depth-output target is only included
once every N frames,<wbr/> where N is the ratio between preview output rate and depth output
rate,<wbr/> including depth stall time.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CONSTRAINED_HIGH_SPEED_VIDEO (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[java_public]</span>
<span class="entry_type_enum_notes"><p>The device supports constrained high speed video recording (frame rate &gt;=120fps) use
case.<wbr/> The camera device will support high speed capture session created by <a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>,<wbr/> which
only accepts high speed request lists created by <a href="https://developer.android.com/reference/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession.html#createHighSpeedRequestList">CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList</a>.<wbr/></p>
<p>A camera device can still support high speed video streaming by advertising the high
speed 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 capture request per frame control and synchronization requirements will apply
to the high speed fps ranges,<wbr/> the same as all other fps ranges.<wbr/> This capability
describes the capability of a specialized operating mode with many limitations (see
below),<wbr/> which is only targeted at high speed video recording.<wbr/></p>
<p>The supported high speed video sizes and fps ranges are specified in <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoFpsRanges">StreamConfigurationMap#getHighSpeedVideoFpsRanges</a>.<wbr/>
To get desired output frame rates,<wbr/> the application is only allowed to select video
size and FPS range combinations provided by <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoSizes">StreamConfigurationMap#getHighSpeedVideoSizes</a>.<wbr/> 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>
<p>In this capability,<wbr/> the camera device will override aeMode,<wbr/> awbMode,<wbr/> and afMode to
ON,<wbr/> AUTO,<wbr/> and CONTINUOUS_<wbr/>VIDEO,<wbr/> respectively.<wbr/> All post-processing block mode
controls will be overridden to be FAST.<wbr/> Therefore,<wbr/> no manual control of capture
and post-processing parameters is possible.<wbr/> All other controls operate the
same as when <a href="#controls_android.control.mode">android.<wbr/>control.<wbr/>mode</a> == AUTO.<wbr/> This means that all other
android.<wbr/>control.<wbr/>* fields continue to work,<wbr/> such as</p>
<ul>
<li><a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a></li>
<li><a href="#controls_android.control.aeExposureCompensation">android.<wbr/>control.<wbr/>ae<wbr/>Exposure<wbr/>Compensation</a></li>
<li><a href="#controls_android.control.aeLock">android.<wbr/>control.<wbr/>ae<wbr/>Lock</a></li>
<li><a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a></li>
<li><a href="#controls_android.control.effectMode">android.<wbr/>control.<wbr/>effect<wbr/>Mode</a></li>
<li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
<li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
<li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
<li><a href="#controls_android.control.afTrigger">android.<wbr/>control.<wbr/>af<wbr/>Trigger</a></li>
<li><a href="#controls_android.control.aePrecaptureTrigger">android.<wbr/>control.<wbr/>ae<wbr/>Precapture<wbr/>Trigger</a></li>
<li><a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a></li>
</ul>
<p>Outside of android.<wbr/>control.<wbr/>*,<wbr/> the following controls will work:</p>
<ul>
<li><a href="#controls_android.flash.mode">android.<wbr/>flash.<wbr/>mode</a> (TORCH mode only,<wbr/> automatic flash for still capture will not
work since aeMode is ON)</li>
<li><a href="#controls_android.lens.opticalStabilizationMode">android.<wbr/>lens.<wbr/>optical<wbr/>Stabilization<wbr/>Mode</a> (if it is supported)</li>
<li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
<li><a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> (if it is supported)</li>
</ul>
<p>For high speed recording use case,<wbr/> the actual maximum supported frame rate may
be lower than what camera can output,<wbr/> depending on the destination Surfaces for
the image data.<wbr/> For example,<wbr/> if the destination surface is from video encoder,<wbr/>
the application need check if the video encoder is capable of supporting the
high frame rate for a given video size,<wbr/> or it will end up with lower recording
frame rate.<wbr/> If the destination surface is from preview window,<wbr/> the actual preview frame
rate will be bounded by the screen refresh rate.<wbr/></p>
<p>The camera device will only support up to 2 high speed simultaneous output surfaces
(preview and recording surfaces) in this mode.<wbr/> Above controls will be effective only
if all of below conditions are true:</p>
<ul>
<li>The application creates a camera capture session with no more than 2 surfaces via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>.<wbr/> The
targeted surfaces must be preview surface (either from <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 recording
surface(either from <a href="https://developer.android.com/reference/android/media/MediaRecorder.html#getSurface">MediaRecorder#getSurface</a> or <a href="https://developer.android.com/reference/android/media/MediaCodec.html#createInputSurface">MediaCodec#createInputSurface</a>).<wbr/></li>
<li>The stream sizes are selected from the sizes reported by
<a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoSizes">StreamConfigurationMap#getHighSpeedVideoSizes</a>.<wbr/></li>
<li>The FPS ranges are selected from <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoFpsRanges">StreamConfigurationMap#getHighSpeedVideoFpsRanges</a>.<wbr/></li>
</ul>
<p>When above conditions are NOT satisfied,<wbr/>
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>
will fail.<wbr/></p>
<p>Switching to a FPS range that has different maximum FPS may trigger some camera device
reconfigurations,<wbr/> which may introduce extra latency.<wbr/> It is recommended that
the application avoids unnecessary maximum target FPS changes as much as possible
during high speed streaming.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MOTION_TRACKING (v3.3)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device supports the MOTION_<wbr/>TRACKING value for
<a href="#controls_android.control.captureIntent">android.<wbr/>control.<wbr/>capture<wbr/>Intent</a>,<wbr/> which limits maximum exposure time to 20 ms.<wbr/></p>
<p>This limits the motion blur of capture images,<wbr/> resulting in better image tracking
results for use cases such as image stabilization or augmented reality.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">LOGICAL_MULTI_CAMERA (v3.3)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device is a logical camera backed by two or more physical cameras.<wbr/></p>
<p>In API level 28,<wbr/> the physical cameras must also be exposed to the application via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#getCameraIdList">CameraManager#getCameraIdList</a>.<wbr/></p>
<p>Starting from API level 29:</p>
<ul>
<li>Some or all physical cameras may not be independently exposed to the application,<wbr/>
in which case the physical camera IDs will not be available in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#getCameraIdList">CameraManager#getCameraIdList</a>.<wbr/> But the
application can still query the physical cameras' characteristics by calling
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#getCameraCharacteristics">CameraManager#getCameraCharacteristics</a>.<wbr/></li>
<li>If a physical camera is hidden from camera ID list,<wbr/> the mandatory stream
combinations for that physical camera must be supported through the logical camera
using physical streams.<wbr/> One exception is that in API level 30,<wbr/> a physical camera
may become unavailable via
<a href="https://developer.android.com/reference/CameraManager/AvailabilityCallback.html#onPhysicalCameraUnavailable">AvailabilityCallback#onPhysicalCameraUnavailable</a>
callback.<wbr/></li>
</ul>
<p>Combinations of logical and physical streams,<wbr/> or physical streams from different
physical cameras are not guaranteed.<wbr/> However,<wbr/> if the camera device supports
<a href="https://developer.android.com/reference/CameraManager.html#isSessionConfigurationWithParametersSupported">CameraManager#isSessionConfigurationWithParametersSupported</a>,<wbr/>
application must be able to query whether a stream combination involving physical
streams is supported by calling
<a href="https://developer.android.com/reference/CameraManager.html#isSessionConfigurationWithParametersSupported">CameraManager#isSessionConfigurationWithParametersSupported</a>.<wbr/></p>
<p>Camera application shouldn't assume that there are at most 1 rear camera and 1 front
camera in the system.<wbr/> For an application that switches between front and back cameras,<wbr/>
the recommendation is to switch between the first rear camera and the first front
camera in the list of supported camera devices.<wbr/></p>
<p>This capability requires the camera device to support the following:</p>
<ul>
<li>The IDs of underlying physical cameras are returned via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getPhysicalCameraIds">CameraCharacteristics#getPhysicalCameraIds</a>.<wbr/></li>
<li>This camera device must list static metadata
<a href="#static_android.logicalMultiCamera.sensorSyncType">android.<wbr/>logical<wbr/>Multi<wbr/>Camera.<wbr/>sensor<wbr/>Sync<wbr/>Type</a> in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a>.<wbr/></li>
<li>The underlying physical cameras' static metadata must list the following entries,<wbr/>
so that the application can correlate pixels from the physical streams:<ul>
<li><a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a></li>
<li><a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a></li>
<li><a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a></li>
<li><a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a></li>
<li><a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a></li>
</ul>
</li>
<li>The SENSOR_<wbr/>INFO_<wbr/>TIMESTAMP_<wbr/>SOURCE of the logical device and physical devices must be
the same.<wbr/></li>
<li>The logical camera must be LIMITED or higher device.<wbr/></li>
</ul>
<p>A logical camera device's dynamic metadata may contain
<a href="#dynamic_android.logicalMultiCamera.activePhysicalId">android.<wbr/>logical<wbr/>Multi<wbr/>Camera.<wbr/>active<wbr/>Physical<wbr/>Id</a> to notify the application of the current
active physical camera Id.<wbr/> An active physical camera is the physical camera from which
the logical camera's main image data outputs (YUV or RAW) and metadata come from.<wbr/>
In addition,<wbr/> this serves as an indication which physical camera is used to output to
a RAW stream,<wbr/> or in case only physical cameras support RAW,<wbr/> which physical RAW stream
the application should request.<wbr/></p>
<p>Logical camera's static metadata tags below describe the default active physical
camera.<wbr/> An active physical camera is default if it's used when application directly
uses requests built from a template.<wbr/> All templates will default to the same active
physical camera.<wbr/></p>
<ul>
<li><a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a></li>
<li><a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a></li>
<li><a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a></li>
<li><a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a></li>
<li><a href="#static_android.sensor.info.physicalSize">android.<wbr/>sensor.<wbr/>info.<wbr/>physical<wbr/>Size</a></li>
<li><a href="#static_android.sensor.info.whiteLevel">android.<wbr/>sensor.<wbr/>info.<wbr/>white<wbr/>Level</a></li>
<li><a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a></li>
<li><a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a></li>
<li><a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a></li>
<li><a href="#static_android.sensor.calibrationTransform1">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform1</a></li>
<li><a href="#static_android.sensor.calibrationTransform2">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform2</a></li>
<li><a href="#static_android.sensor.colorTransform1">android.<wbr/>sensor.<wbr/>color<wbr/>Transform1</a></li>
<li><a href="#static_android.sensor.colorTransform2">android.<wbr/>sensor.<wbr/>color<wbr/>Transform2</a></li>
<li><a href="#static_android.sensor.forwardMatrix1">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix1</a></li>
<li><a href="#static_android.sensor.forwardMatrix2">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2</a></li>
<li><a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a></li>
<li><a href="#static_android.sensor.maxAnalogSensitivity">android.<wbr/>sensor.<wbr/>max<wbr/>Analog<wbr/>Sensitivity</a></li>
<li><a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a></li>
<li><a href="#static_android.sensor.availableTestPatternModes">android.<wbr/>sensor.<wbr/>available<wbr/>Test<wbr/>Pattern<wbr/>Modes</a></li>
<li><a href="#static_android.lens.info.hyperfocalDistance">android.<wbr/>lens.<wbr/>info.<wbr/>hyperfocal<wbr/>Distance</a></li>
<li><a href="#static_android.lens.info.minimumFocusDistance">android.<wbr/>lens.<wbr/>info.<wbr/>minimum<wbr/>Focus<wbr/>Distance</a></li>
<li><a href="#static_android.lens.info.focusDistanceCalibration">android.<wbr/>lens.<wbr/>info.<wbr/>focus<wbr/>Distance<wbr/>Calibration</a></li>
<li><a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a></li>
<li><a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a></li>
<li><a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a></li>
<li><a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a></li>
<li><a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a></li>
</ul>
<p>The field of view of non-RAW physical streams must not be smaller than that of the
non-RAW logical streams,<wbr/> or the maximum field-of-view of the physical camera,<wbr/>
whichever is smaller.<wbr/> The application should check the physical capture result
metadata for how the physical streams are cropped or zoomed.<wbr/> More specifically,<wbr/> given
the physical camera result metadata,<wbr/> the effective horizontal field-of-view of the
physical camera is:</p>
<pre><code>fov = 2 * atan2(cropW * sensorW /<wbr/> (2 * zoomRatio * activeArrayW),<wbr/> focalLength)
</code></pre>
<p>where the equation parameters are the physical camera's crop region width,<wbr/> physical
sensor width,<wbr/> zoom ratio,<wbr/> active array width,<wbr/> and focal length respectively.<wbr/> Typically
the physical stream of active physical camera has the same field-of-view as the
logical streams.<wbr/> However,<wbr/> the same may not be true for physical streams from
non-active physical cameras.<wbr/> For example,<wbr/> if the logical camera has a wide-ultrawide
configuration where the wide lens is the default,<wbr/> when the crop region is set to the
logical camera's active array size,<wbr/> (and the zoom ratio set to 1.<wbr/>0 starting from
Android 11),<wbr/> a physical stream for the ultrawide camera may prefer outputting images
with larger field-of-view than that of the wide camera for better stereo matching
margin or more robust motion tracking.<wbr/> At the same time,<wbr/> the physical non-RAW streams'
field of view must not be smaller than the requested crop region and zoom ratio,<wbr/> as
long as it's within the physical lens' capability.<wbr/> For example,<wbr/> for a logical camera
with wide-tele lens configuration where the wide lens is the default,<wbr/> if the logical
camera's crop region is set to maximum size,<wbr/> and zoom ratio set to 1.<wbr/>0,<wbr/> the physical
stream for the tele lens will be configured to its maximum size crop region (no zoom).<wbr/></p>
<p><em>Deprecated:</em> Prior to Android 11,<wbr/> the field of view of all non-RAW physical streams
cannot be larger than that of non-RAW logical streams.<wbr/> If the logical camera has a
wide-ultrawide lens configuration where the wide lens is the default,<wbr/> when the logical
camera's crop region is set to maximum size,<wbr/> the FOV of the physical streams for the
ultrawide lens will be the same as the logical stream,<wbr/> by making the crop region
smaller than its active array size to compensate for the smaller focal length.<wbr/></p>
<p>For a logical camera,<wbr/> typically the underlying physical cameras have different RAW
capabilities (such as resolution or CFA pattern).<wbr/> There are two ways for the
application to capture RAW images from the logical camera:</p>
<ul>
<li>If the logical camera has RAW capability,<wbr/> the application can create and use RAW
streams in the same way as before.<wbr/> In case a RAW stream is configured,<wbr/> to maintain
backward compatibility,<wbr/> the camera device makes sure the default active physical
camera remains active and does not switch to other physical cameras.<wbr/> (One exception
is that,<wbr/> if the logical camera consists of identical image sensors and advertises
multiple focalLength due to different lenses,<wbr/> the camera device may generate RAW
images from different physical cameras based on the focalLength being set by the
application.<wbr/>) This backward-compatible approach usually results in loss of optical
zoom,<wbr/> to telephoto lens or to ultrawide lens.<wbr/></li>
<li>Alternatively,<wbr/> if supported by the device,<wbr/>
<a href="https://developer.android.com/reference/android/hardware/camera2/MultiResolutionImageReader.html">MultiResolutionImageReader</a>
can be used to capture RAW images from one of the underlying physical cameras (
depending on current zoom level).<wbr/> Because different physical cameras may have
different RAW characteristics,<wbr/> the application needs to use the characteristics
and result metadata of the active physical camera for the relevant RAW metadata.<wbr/></li>
</ul>
<p>The capture request and result metadata tags required for backward compatible camera
functionalities will be solely based on the logical camera capability.<wbr/> On the other
hand,<wbr/> the use of manual capture controls (sensor or post-processing) with a
logical camera may result in unexpected behavior when the HAL decides to switch
between physical cameras with different characteristics under the hood.<wbr/> For example,<wbr/>
when the application manually sets exposure time and sensitivity while zooming in,<wbr/>
the brightness of the camera images may suddenly change because HAL switches from one
physical camera to the other.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MONOCHROME (v3.3)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device is a monochrome camera that doesn't contain a color filter array,<wbr/>
and for YUV_<wbr/>420_<wbr/>888 stream,<wbr/> the pixel values on U and V planes are all 128.<wbr/></p>
<p>A MONOCHROME camera must support the guaranteed stream combinations required for
its device level and capabilities.<wbr/> Additionally,<wbr/> if the monochrome camera device
supports Y8 format,<wbr/> all mandatory stream combination requirements related to <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">YUV_<wbr/>420_<wbr/>888</a> apply
to <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#Y8">Y8</a> as well.<wbr/> There are no
mandatory stream combination requirements with regard to
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#Y8">Y8</a> for Bayer camera devices.<wbr/></p>
<p>Starting from Android Q,<wbr/> the SENSOR_<wbr/>INFO_<wbr/>COLOR_<wbr/>FILTER_<wbr/>ARRANGEMENT of a MONOCHROME
camera will be either MONO or NIR.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SECURE_IMAGE_DATA (v3.4)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device is capable of writing image data into a region of memory
inaccessible to Android userspace or the Android kernel,<wbr/> and only accessible to
trusted execution environments (TEE).<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SYSTEM_CAMERA (v3.5)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device is only accessible by Android's system components and privileged
applications.<wbr/> Processes need to have the android.<wbr/>permission.<wbr/>SYSTEM_<wbr/>CAMERA in
addition to android.<wbr/>permission.<wbr/>CAMERA in order to connect to this camera device.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">OFFLINE_PROCESSING (v3.5)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[java_public]</span>
<span class="entry_type_enum_notes"><p>The camera device supports the OFFLINE_<wbr/>PROCESSING use case.<wbr/></p>
<p>With OFFLINE_<wbr/>PROCESSING capability,<wbr/> the application can switch an ongoing
capture session to offline mode by calling the
CameraCaptureSession#switchToOffline method and specify streams to be kept in offline
mode.<wbr/> The camera will then stop currently active repeating requests,<wbr/> prepare for
some requests to go into offline mode,<wbr/> and return an offline session object.<wbr/> After
the switchToOffline call returns,<wbr/> the original capture session is in closed state as
if the CameraCaptureSession#close method has been called.<wbr/>
In the offline mode,<wbr/> all inflight requests will continue to be processed in the
background,<wbr/> and the application can immediately close the camera or create a new
capture session without losing those requests' output images and capture results.<wbr/></p>
<p>While the camera device is processing offline requests,<wbr/> it
might not be able to support all stream configurations it can support
without offline requests.<wbr/> When that happens,<wbr/> the createCaptureSession
method call will fail.<wbr/> The following stream configurations are guaranteed to work
without hitting the resource busy exception:</p>
<ul>
<li>One ongoing offline session: target one output surface of YUV or
JPEG format,<wbr/> any resolution.<wbr/></li>
<li>The active camera capture session:<ol>
<li>One preview surface (SurfaceView or SurfaceTexture) up to 1920 width</li>
<li>One YUV ImageReader surface up to 1920 width</li>
<li>One Jpeg ImageReader,<wbr/> any resolution: the camera device is
allowed to slow down JPEG output speed by 50% if there is any ongoing offline
session.<wbr/></li>
<li>If the device supports PRIVATE_<wbr/>REPROCESSING,<wbr/> one pair of ImageWriter/<wbr/>ImageReader
surfaces of private format,<wbr/> with the same resolution that is larger or equal to
the JPEG ImageReader resolution above.<wbr/></li>
</ol>
</li>
<li>Alternatively,<wbr/> the active camera session above can be replaced by an legacy
<a href="https://developer.android.com/reference/android/hardware/Camera.html">Camera</a> with the following parameter settings:<ol>
<li>Preview size up to 1920 width</li>
<li>Preview callback size up to 1920 width</li>
<li>Video size up to 1920 width</li>
<li>Picture size,<wbr/> any resolution: the camera device is
allowed to slow down JPEG output speed by 50% if there is any ongoing offline
session.<wbr/></li>
</ol>
</li>
</ul></span>
</li>
<li>
<span class="entry_type_enum_name">ULTRA_HIGH_RESOLUTION_SENSOR (v3.6)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>This camera device is capable of producing ultra high resolution images in
addition to the image sizes described in the
<a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a>.<wbr/>
It can operate in 'default' mode and 'max resolution' mode.<wbr/> It generally does this
by binning pixels in 'default' mode and not binning them in 'max resolution' mode.<wbr/>
<code><a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a></code> describes the streams supported in 'default'
mode.<wbr/>
The stream configurations supported in 'max resolution' mode are described by
<code><a href="#static_android.scaler.streamConfigurationMapMaximumResolution">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map<wbr/>Maximum<wbr/>Resolution</a></code>.<wbr/>
The maximum resolution mode pixel array size of a camera device
(<code><a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a></code>) with this capability,<wbr/>
will be at least 24 megapixels.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">REMOSAIC_REPROCESSING (v3.6)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[java_public]</span>
<span class="entry_type_enum_notes"><p>The device supports reprocessing from the <code>RAW_<wbr/>SENSOR</code> format with a bayer pattern
given by <a href="#static_android.sensor.info.binningFactor">android.<wbr/>sensor.<wbr/>info.<wbr/>binning<wbr/>Factor</a> (m x n group of pixels with the same
color filter) to a remosaiced regular bayer pattern.<wbr/></p>
<p>This capability will only be present for devices with
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability.<wbr/> When
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
devices do not advertise this capability,<wbr/>
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">ImageFormat#RAW_<wbr/>SENSOR</a> images will already have a
regular bayer pattern.<wbr/></p>
<p>If a <code>RAW_<wbr/>SENSOR</code> stream is requested along with another non-RAW stream in a
<a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.html">CaptureRequest</a> (if multiple streams are supported
when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>),<wbr/>
the <code>RAW_<wbr/>SENSOR</code> stream will have a regular bayer pattern.<wbr/></p>
<p>This capability requires the camera device to support the following :</p>
<ul>
<li>The <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html">StreamConfigurationMap</a> mentioned below
refers to the one,<wbr/> described by
<code><a href="#static_android.scaler.streamConfigurationMapMaximumResolution">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map<wbr/>Maximum<wbr/>Resolution</a></code>.<wbr/></li>
<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>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">ImageFormat#RAW_<wbr/>SENSOR</a> is supported as an output/<wbr/>input
format,<wbr/> that is,<wbr/> <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">ImageFormat#RAW_<wbr/>SENSOR</a> is included in the
lists of 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>
<li><a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getValidOutputFormatsForInput">StreamConfigurationMap#getValidOutputFormatsForInput</a>
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>
<li>Each size returned by <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getInputSizes">getInputSizes(ImageFormat.<wbr/>RAW_<wbr/>SENSOR)</a> is also included in <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputSizes">getOutputSizes(ImageFormat.<wbr/>RAW_<wbr/>SENSOR)</a></li>
<li>Using <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">ImageFormat#RAW_<wbr/>SENSOR</a> does not cause a frame rate
drop relative to the sensor's maximum capture rate (at that resolution).<wbr/></li>
<li>No CaptureRequest controls will be applicable when a request has an input target
with <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">ImageFormat#RAW_<wbr/>SENSOR</a> format.<wbr/></li>
</ul></span>
</li>
<li>
<span class="entry_type_enum_name">DYNAMIC_RANGE_TEN_BIT (v3.8)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[java_public]</span>
<span class="entry_type_enum_notes"><p>The device supports one or more 10-bit camera outputs according to the dynamic range
profiles specified in
<a href="https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#getSupportedProfiles">DynamicRangeProfiles#getSupportedProfiles</a>.<wbr/>
They can be configured as part of the capture session initialization via
<a href="https://developer.android.com/reference/android/hardware/camera2/params/OutputConfiguration.html#setDynamicRangeProfile">OutputConfiguration#setDynamicRangeProfile</a>.<wbr/>
Cameras that enable this capability must also support the following:</p>
<ul>
<li>Profile <a href="https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#HLG10">DynamicRangeProfiles#HLG10</a></li>
<li>All mandatory stream combinations for this specific capability as per
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#10-bit-output-additional-guaranteed-configurations">documentation</a></li>
<li>In case the device is not able to capture some combination of supported
standard 8-bit and/<wbr/>or 10-bit dynamic range profiles within the same capture request,<wbr/>
then those constraints must be listed in
<a href="https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#getProfileCaptureRequestConstraints">DynamicRangeProfiles#getProfileCaptureRequestConstraints</a></li>
<li>Recommended dynamic range profile listed in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_RECOMMENDED_TEN_BIT_DYNAMIC_RANGE_PROFILE">Camera<wbr/>Characteristics#REQUEST_<wbr/>RECOMMENDED_<wbr/>TEN_<wbr/>BIT_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILE</a>.<wbr/></li>
</ul></span>
</li>
<li>
<span class="entry_type_enum_name">STREAM_USE_CASE (v3.8)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>The camera device supports selecting a per-stream use case via
<a href="https://developer.android.com/reference/android/hardware/camera2/params/OutputConfiguration.html#setStreamUseCase">OutputConfiguration#setStreamUseCase</a>
so that the device can optimize camera pipeline parameters such as tuning,<wbr/> sensor
mode,<wbr/> or ISP settings for a specific user scenario.<wbr/>
Some sample usages of this capability are:</p>
<ul>
<li>Distinguish high quality YUV captures from a regular YUV stream where
the image quality may not be as good as the JPEG stream,<wbr/> or</li>
<li>Use one stream to serve multiple purposes: viewfinder,<wbr/> video recording and
still capture.<wbr/> This is common with applications that wish to apply edits equally
to preview,<wbr/> saved images,<wbr/> and saved videos.<wbr/></li>
</ul>
<p>This capability requires the camera device to support the following
stream use cases:</p>
<ul>
<li>DEFAULT for backward compatibility where the application doesn't set
a stream use case</li>
<li>PREVIEW for live viewfinder and in-app image analysis</li>
<li>STILL_<wbr/>CAPTURE for still photo capture</li>
<li>VIDEO_<wbr/>RECORD for recording video clips</li>
<li>PREVIEW_<wbr/>VIDEO_<wbr/>STILL for one single stream used for viewfinder,<wbr/> video
recording,<wbr/> and still capture.<wbr/></li>
<li>VIDEO_<wbr/>CALL for long running video calls</li>
</ul>
<p><a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#SCALER_AVAILABLE_STREAM_USE_CASES">Camera<wbr/>Characteristics#SCALER_<wbr/>AVAILABLE_<wbr/>STREAM_<wbr/>USE_<wbr/>CASES</a>
lists all of the supported stream use cases.<wbr/></p>
<p>Refer to the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#stream-use-case-capability-additional-guaranteed-configurations">guideline</a>
for the mandatory stream combinations involving stream use cases,<wbr/> which can also be
queried via <a href="https://developer.android.com/reference/android/hardware/camera2/params/MandatoryStreamCombination.html">MandatoryStreamCombination</a>.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">COLOR_SPACE_PROFILES (v3.9)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[java_public]</span>
<span class="entry_type_enum_notes"><p>The device supports querying the possible combinations of color spaces,<wbr/> image
formats,<wbr/> and dynamic range profiles supported by the camera and requesting a
particular color space for a session via
<a href="https://developer.android.com/reference/android/hardware/camera2/params/SessionConfiguration.html#setColorSpace">SessionConfiguration#setColorSpace</a>.<wbr/></p>
<p>Cameras that enable this capability may or may not also implement dynamic range
profiles.<wbr/> If they don't,<wbr/>
<a href="https://developer.android.com/reference/android/hardware/camera2/params/ColorSpaceProfiles.html#getSupportedDynamicRangeProfiles">ColorSpaceProfiles#getSupportedDynamicRangeProfiles</a>
will return only
<a href="https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#STANDARD">DynamicRangeProfiles#STANDARD</a> and
<a href="https://developer.android.com/reference/android/hardware/camera2/params/ColorSpaceProfiles.html#getSupportedColorSpacesForDynamicRange">ColorSpaceProfiles#getSupportedColorSpacesForDynamicRange</a>
will assume support of the
<a href="https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#STANDARD">DynamicRangeProfiles#STANDARD</a>
profile in all combinations of color spaces and image formats.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of capabilities that this camera device
advertises as fully supporting.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A capability is a contract that the camera device makes in order
to be able to satisfy one or more use cases.<wbr/></p>
<p>Listing a capability guarantees that the whole set of features
required to support a common use will all be available.<wbr/></p>
<p>Using a subset of the functionality provided by an unsupported
capability may be possible on a specific camera device implementation;
to do this query each of <a href="#static_android.request.availableRequestKeys">android.<wbr/>request.<wbr/>available<wbr/>Request<wbr/>Keys</a>,<wbr/>
<a href="#static_android.request.availableResultKeys">android.<wbr/>request.<wbr/>available<wbr/>Result<wbr/>Keys</a>,<wbr/>
<a href="#static_android.request.availableCharacteristicsKeys">android.<wbr/>request.<wbr/>available<wbr/>Characteristics<wbr/>Keys</a>.<wbr/></p>
<p>The following capabilities are guaranteed to be available on
<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> <code>==</code> FULL devices:</p>
<ul>
<li>MANUAL_<wbr/>SENSOR</li>
<li>MANUAL_<wbr/>POST_<wbr/>PROCESSING</li>
</ul>
<p>Other capabilities may be available on either FULL or LIMITED
devices,<wbr/> but the application should query this key to be sure.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Additional constraint details per-capability will be available
in the Compatibility Test Suite.<wbr/></p>
<p>Minimum baseline requirements required for the
BACKWARD_<wbr/>COMPATIBLE capability are not explicitly listed.<wbr/>
Instead refer to "BC" tags and the camera CTS tests in the
android.<wbr/>hardware.<wbr/>camera2.<wbr/>cts package.<wbr/></p>
<p>Listed controls that can be either request or result (e.<wbr/>g.<wbr/>
<a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a>) must be available both in the
request and the result in order to be considered to be
capability-compliant.<wbr/></p>
<p>For example,<wbr/> if the HAL claims to support MANUAL control,<wbr/>
then exposure time must be configurable via the request <em>and</em>
the actual exposure applied must be available via
the result.<wbr/></p>
<p>If MANUAL_<wbr/>SENSOR is omitted,<wbr/> the HAL may choose to omit the
<a href="#static_android.scaler.availableMinFrameDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Min<wbr/>Frame<wbr/>Durations</a> static property entirely.<wbr/></p>
<p>For PRIVATE_<wbr/>REPROCESSING and YUV_<wbr/>REPROCESSING capabilities,<wbr/> see
hardware/<wbr/>libhardware/<wbr/>include/<wbr/>hardware/<wbr/>camera3.<wbr/>h Section 10 for more information.<wbr/></p>
<p>Devices that support the MANUAL_<wbr/>SENSOR capability must support the
CAMERA3_<wbr/>TEMPLATE_<wbr/>MANUAL template defined in camera3.<wbr/>h.<wbr/></p>
<p>Devices that support the PRIVATE_<wbr/>REPROCESSING capability or the
YUV_<wbr/>REPROCESSING capability must support the
CAMERA3_<wbr/>TEMPLATE_<wbr/>ZERO_<wbr/>SHUTTER_<wbr/>LAG template defined in camera3.<wbr/>h.<wbr/></p>
<p>For DEPTH_<wbr/>OUTPUT,<wbr/> the depth-format keys
<a href="#static_android.depth.availableDepthStreamConfigurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stream<wbr/>Configurations</a>,<wbr/>
<a href="#static_android.depth.availableDepthMinFrameDurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Min<wbr/>Frame<wbr/>Durations</a>,<wbr/>
<a href="#static_android.depth.availableDepthStallDurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stall<wbr/>Durations</a> must be available,<wbr/> in
addition to the other keys explicitly mentioned in the DEPTH_<wbr/>OUTPUT
enum notes.<wbr/> The entry <a href="#static_android.depth.maxDepthSamples">android.<wbr/>depth.<wbr/>max<wbr/>Depth<wbr/>Samples</a> must be available
if the DEPTH_<wbr/>POINT_<wbr/>CLOUD format is supported (HAL pixel format BLOB,<wbr/> dataspace
DEPTH).<wbr/></p>
<p>For a camera device with LOGICAL_<wbr/>MULTI_<wbr/>CAMERA capability,<wbr/> it should operate in the
same way as a physical camera device based on its hardware level and capabilities.<wbr/>
It's recommended that its feature set is superset of that of individual physical cameras.<wbr/></p>
<ul>
<li>
<p>In camera1 API,<wbr/> to maintain application compatibility,<wbr/> for each camera facing,<wbr/> there
may be one or more {logical_<wbr/>camera_<wbr/>id,<wbr/> physical_<wbr/>camera_<wbr/>1_<wbr/>id,<wbr/> physical_<wbr/>camera_<wbr/>2_<wbr/>id,<wbr/> ...<wbr/>}
combinations,<wbr/> where logical_<wbr/>camera_<wbr/>id is composed of physical_<wbr/>camera_<wbr/>N_<wbr/>id,<wbr/> camera
framework will only advertise one camera id
(within the combinations for the particular facing) that is frontmost in the HAL
published camera id list.<wbr/>
For example,<wbr/> if HAL advertises 6 back facing camera IDs (ID0 to ID5),<wbr/> among which ID4
and ID5 are logical cameras backed by ID0+ID1 and ID2+ID3 respectively.<wbr/> In this case,<wbr/>
only ID0 will be available for camera1 API to use.<wbr/></p>
</li>
<li>
<p>Camera HAL is strongly recommended to advertise camera devices with best feature,<wbr/>
power,<wbr/> performance,<wbr/> and latency tradeoffs at the front of the camera id list.<wbr/></p>
</li>
<li>
<p>Camera HAL may switch between physical cameras depending on focalLength,<wbr/> cropRegion,<wbr/> or
zoomRatio.<wbr/> If physical cameras have different sizes,<wbr/> HAL must maintain a single logical
camera active<wbr/>Array<wbr/>Size/<wbr/>pixel<wbr/>Array<wbr/>Size/<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size,<wbr/> and must do proper
mapping between logical camera and underlying physical cameras for all related metadata
tags,<wbr/> such as crop region,<wbr/> zoomRatio,<wbr/> 3A regions,<wbr/> and intrinsicCalibration.<wbr/></p>
</li>
<li>
<p>Starting from HIDL ICameraDevice version 3.<wbr/>5,<wbr/> camera HAL must support
isStreamCombinationSupported for application to query whether a particular logical and
physical streams combination are supported.<wbr/></p>
</li>
</ul>
<p>A MONOCHROME camera device must also advertise BACKWARD_<wbr/>COMPATIBLE capability,<wbr/> and must
not advertise MANUAL_<wbr/>POST_<wbr/>PROCESSING capability.<wbr/></p>
<ul>
<li>
<p>To maintain backward compatibility,<wbr/> the camera device must support all
BACKWARD_<wbr/>COMPATIBLE required keys.<wbr/> The <a href="#static_android.control.awbAvailableModes">android.<wbr/>control.<wbr/>awb<wbr/>Available<wbr/>Modes</a> key only contains
AUTO,<wbr/> and <a href="#dynamic_android.control.awbState">android.<wbr/>control.<wbr/>awb<wbr/>State</a> are either CONVERGED or LOCKED depending on
<a href="#controls_android.control.awbLock">android.<wbr/>control.<wbr/>awb<wbr/>Lock</a>.<wbr/></p>
</li>
<li>
<p><a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a>,<wbr/> <a href="#controls_android.colorCorrection.transform">android.<wbr/>color<wbr/>Correction.<wbr/>transform</a>,<wbr/> and
<a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> must not be in available request and result keys.<wbr/>
As a result,<wbr/> the camera device cannot be a FULL device.<wbr/> However,<wbr/> the HAL can
still advertise other individual capabilities.<wbr/></p>
</li>
<li>
<p>If the device supports tonemap control,<wbr/> only <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> is used.<wbr/>
CurveGreen and curveBlue are no-ops.<wbr/></p>
</li>
</ul>
<p>In Android API level 28,<wbr/> a MONOCHROME camera device must not have RAW capability.<wbr/> From
API level 29,<wbr/> a camera is allowed to have both MONOCHROME and RAW capabilities.<wbr/></p>
<p>To support the legacy API to ICameraDevice 3.<wbr/>x shim layer,<wbr/> devices advertising
OFFLINE_<wbr/>PROCESSING capability must also support configuring an input stream of the same
size as the picture size if:</p>
<ul>
<li>The device supports PRIVATE_<wbr/>REPROCESSING capability</li>
<li>The device's maximal JPEG resolution can reach 30 FPS min frame duration</li>
<li>The device does not support HAL based ZSL (<a href="#controls_android.control.enableZsl">android.<wbr/>control.<wbr/>enable<wbr/>Zsl</a>)</li>
</ul>
<p>For devices which support SYSTEM_<wbr/>CAMERA and LOGICAL_<wbr/>MULTI_<wbr/>CAMERA capabilities:</p>
<p>Hidden physical camera ids[1] must not be be shared[2] between public camera devices
and camera devices advertising SYSTEM_<wbr/>CAMERA capability.<wbr/></p>
<p>[1] - Camera device ids which are advertised in the
ANDROID_<wbr/>LOGICAL_<wbr/>MULTI_<wbr/>CAMERA_<wbr/>PHYSICAL_<wbr/>IDS list,<wbr/> and not available through
ICamera<wbr/>Provider.<wbr/>get<wbr/>Camera<wbr/>Id<wbr/>List().<wbr/></p>
<p>[2] - The ANDROID_<wbr/>LOGICAL_<wbr/>MULTI_<wbr/>CAMERA_<wbr/>PHYSICAL_<wbr/>IDS lists,<wbr/> must not have common
camera ids.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.availableRequestKeys">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>available<wbr/>Request<wbr/>Keys
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A list of all keys that the camera device has available
to use with <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.html">CaptureRequest</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Attempting to set a key into a CaptureRequest that is not
listed here will result in an invalid request and will be rejected
by the camera device.<wbr/></p>
<p>This field can be used to query the feature set of a camera device
at a more granular level than capabilities.<wbr/> This is especially
important for optional keys that are not listed under any capability
in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Vendor tags can be listed here.<wbr/> Vendor tag metadata should also
use the extensions C api (refer to camera3.<wbr/>h for more details).<wbr/></p>
<p>Setting/<wbr/>getting vendor tags will be checked against the metadata
vendor extensions API and not against this field.<wbr/></p>
<p>The HAL must not consume any request tags that are not listed either
here or in the vendor tag list.<wbr/></p>
<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#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.availableResultKeys">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>available<wbr/>Result<wbr/>Keys
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A list of all keys that the camera device has available to use with <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html">CaptureResult</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Attempting to get a key from a CaptureResult that is not
listed here will always return a <code>null</code> value.<wbr/> Getting a key from
a CaptureResult that is listed here will generally never return a <code>null</code>
value.<wbr/></p>
<p>The following keys may return <code>null</code> unless they are enabled:</p>
<ul>
<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>
</ul>
<p>(Those sometimes-null keys will nevertheless be listed here
if they are available.<wbr/>)</p>
<p>This field can be used to query the feature set of a camera device
at a more granular level than capabilities.<wbr/> This is especially
important for optional keys that are not listed under any capability
in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Tags listed here must always have an entry in the result metadata,<wbr/>
even if that size is 0 elements.<wbr/> Only array-type tags (e.<wbr/>g.<wbr/> lists,<wbr/>
matrices,<wbr/> strings) are allowed to have 0 elements.<wbr/></p>
<p>Vendor tags can be listed here.<wbr/> Vendor tag metadata should also
use the extensions C api (refer to camera3.<wbr/>h for more details).<wbr/></p>
<p>Setting/<wbr/>getting vendor tags will be checked against the metadata
vendor extensions API and not against this field.<wbr/></p>
<p>The HAL must not produce any result tags that are not listed either
here or in the vendor tag list.<wbr/></p>
<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>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.availableCharacteristicsKeys">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>available<wbr/>Characteristics<wbr/>Keys
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A list of all keys that the camera device has available to use with <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry follows the same rules as
<a href="#static_android.request.availableResultKeys">android.<wbr/>request.<wbr/>available<wbr/>Result<wbr/>Keys</a> (except that it applies for
CameraCharacteristics instead of CaptureResult).<wbr/> See above for more
details.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Keys listed here must always have an entry in the static info metadata,<wbr/>
even if that size is 0 elements.<wbr/> Only array-type tags (e.<wbr/>g.<wbr/> lists,<wbr/>
matrices,<wbr/> strings) are allowed to have 0 elements.<wbr/></p>
<p>Vendor tags can listed here.<wbr/> Vendor tag metadata should also use
the extensions C api (refer to camera3.<wbr/>h for more details).<wbr/></p>
<p>Setting/<wbr/>getting vendor tags will be checked against the metadata
vendor extensions API and not against this field.<wbr/></p>
<p>The HAL must not have any tags in its static info that are not listed
either here or in the vendor tag list.<wbr/></p>
<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#getKeys">CameraCharacteristics#getKeys</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.availableSessionKeys">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>available<wbr/>Session<wbr/>Keys
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A subset of the available request keys that the camera device
can pass as part of the capture session initialization.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is a subset of <a href="#static_android.request.availableRequestKeys">android.<wbr/>request.<wbr/>available<wbr/>Request<wbr/>Keys</a> which
contains a list of keys that are difficult to apply per-frame and
can result in unexpected delays when modified during the capture session
lifetime.<wbr/> Typical examples include parameters that require a
time-consuming hardware re-configuration or internal camera pipeline
change.<wbr/> For performance reasons we advise clients to pass their initial
values as part of
<a href="https://developer.android.com/reference/SessionConfiguration.html#setSessionParameters">SessionConfiguration#setSessionParameters</a>.<wbr/>
Once the camera capture session is enabled it is also recommended to avoid
changing them from their initial values set in
<a href="https://developer.android.com/reference/SessionConfiguration.html#setSessionParameters">SessionConfiguration#setSessionParameters</a>.<wbr/>
Control over session parameters can still be exerted in capture requests
but clients should be aware and expect delays during their application.<wbr/>
An example usage scenario could look like this:</p>
<ul>
<li>The camera client starts by querying the session parameter key list via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableSessionKeys">CameraCharacteristics#getAvailableSessionKeys</a>.<wbr/></li>
<li>Before triggering the capture session create sequence,<wbr/> a capture request
must be built via
<a href="https://developer.android.com/reference/CameraDevice.html#createCaptureRequest">CameraDevice#createCaptureRequest</a>
using an appropriate template matching the particular use case.<wbr/></li>
<li>The client should go over the list of session parameters and check
whether some of the keys listed matches with the parameters that
they intend to modify as part of the first capture request.<wbr/></li>
<li>If there is no such match,<wbr/> the capture request can be passed
unmodified to
<a href="https://developer.android.com/reference/SessionConfiguration.html#setSessionParameters">SessionConfiguration#setSessionParameters</a>.<wbr/></li>
<li>If matches do exist,<wbr/> the client should update the respective values
and pass the request to
<a href="https://developer.android.com/reference/SessionConfiguration.html#setSessionParameters">SessionConfiguration#setSessionParameters</a>.<wbr/></li>
<li>After the capture session initialization completes the session parameter
key list can continue to serve as reference when posting or updating
further requests.<wbr/> As mentioned above further changes to session
parameters should ideally be avoided,<wbr/> if updates are necessary
however clients could expect a delay/<wbr/>glitch during the
parameter switch.<wbr/></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a> is part of the session parameters and constrained high
speed mode is enabled,<wbr/> then only modifications of the maximum framerate value will be
monitored by the framework and can trigger camera re-configuration.<wbr/> For more information
about framerate ranges during constrained high speed sessions see
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createConstrainedHighSpeedCaptureSession">CameraDevice#createConstrainedHighSpeedCaptureSession</a>.<wbr/>
Vendor tags can be listed here.<wbr/> Vendor tag metadata should also
use the extensions C api (refer to
android.<wbr/>hardware.<wbr/>camera.<wbr/>device.<wbr/>V3_<wbr/>4.<wbr/>Stream<wbr/>Configuration.<wbr/>session<wbr/>Params for more details).<wbr/></p>
<p>Setting/<wbr/>getting vendor tags will be checked against the metadata
vendor extensions API and not against this field.<wbr/></p>
<p>The HAL must not consume any request tags in the session parameters that
are not listed either here or in the vendor tag list.<wbr/></p>
<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#getAvailableSessionKeys">CameraCharacteristics#getAvailableSessionKeys</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.availablePhysicalCameraRequestKeys">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>available<wbr/>Physical<wbr/>Camera<wbr/>Request<wbr/>Keys
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A subset of the available request keys that can be overridden for
physical devices backing a logical multi-camera.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is a subset of <a href="#static_android.request.availableRequestKeys">android.<wbr/>request.<wbr/>available<wbr/>Request<wbr/>Keys</a> which contains a list
of keys that can be overridden using
<a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.Builder.html#setPhysicalCameraKey">Builder#setPhysicalCameraKey</a>.<wbr/>
The respective value of such request key can be obtained by calling
<a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.Builder.html#getPhysicalCameraKey">Builder#getPhysicalCameraKey</a>.<wbr/>
Capture requests that contain individual physical device requests must be built via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice.html#createCaptureRequest(int,">Set)</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Vendor tags can be listed here.<wbr/> Vendor tag metadata should also
use the extensions C api (refer to
android.<wbr/>hardware.<wbr/>camera.<wbr/>device.<wbr/>V3_<wbr/>4.<wbr/>Capture<wbr/>Request.<wbr/>physical<wbr/>Camera<wbr/>Settings for more
details).<wbr/></p>
<p>Setting/<wbr/>getting vendor tags will be checked against the metadata
vendor extensions API and not against this field.<wbr/></p>
<p>The HAL must not consume any request tags in the session parameters that
are not listed either here or in the vendor tag list.<wbr/></p>
<p>There should be no overlap between this set of keys and the available session keys
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableSessionKeys">CameraCharacteristics#getAvailableSessionKeys</a> along
with any other controls that can have impact on the dual-camera sync.<wbr/></p>
<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#getAvailablePhysicalCameraRequestKeys">CameraCharacteristics#getAvailablePhysicalCameraRequestKeys</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.characteristicKeysNeedingPermission">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>characteristic<wbr/>Keys<wbr/>Needing<wbr/>Permission
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [hidden]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A list of camera characteristics keys that are only available
in case the camera client has camera permission.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The entry contains a subset of
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getKeys">CameraCharacteristics#getKeys</a> that require camera clients
to acquire the <a href="https://developer.android.com/reference/android/Manifest/permission.html#CAMERA">permission#CAMERA</a> permission before calling
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#getCameraCharacteristics">CameraManager#getCameraCharacteristics</a>.<wbr/> If the
permission is not held by the camera client,<wbr/> then the values of the respective properties
will not be present in <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly,<wbr/> camera service will overwrite any previous values.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.availableDynamicRangeProfiles">
<td class="entry_name
" rowspan="3">
android.<wbr/>request.<wbr/>available<wbr/>Dynamic<wbr/>Range<wbr/>Profiles
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public as dynamicRangeProfiles]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Devices supporting the 10-bit output capability
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>TEN_<wbr/>BIT</a>
must list their supported dynamic range profiles along with capture request
constraints for specific profile combinations.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Camera clients can retrieve the list of supported 10-bit dynamic range profiles by calling
<a href="https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#getSupportedProfiles">DynamicRangeProfiles#getSupportedProfiles</a>.<wbr/>
Any of them can be configured by setting OutputConfiguration dynamic range profile in
<a href="https://developer.android.com/reference/android/hardware/camera2/params/OutputConfiguration.html#setDynamicRangeProfile">OutputConfiguration#setDynamicRangeProfile</a>.<wbr/>
Clients can also check if there are any constraints that limit the combination
of supported profiles that can be referenced within a single capture request by calling
<a href="https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#getProfileCaptureRequestConstraints">DynamicRangeProfiles#getProfileCaptureRequestConstraints</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.availableDynamicRangeProfilesMap">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>available<wbr/>Dynamic<wbr/>Range<wbr/>Profiles<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 3
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">STANDARD (v3.8)</span>
<span class="entry_type_enum_value">0x1</span>
<span class="entry_type_enum_notes"><p>8-bit SDR profile which is the default for all non 10-bit output capable devices.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HLG10 (v3.8)</span>
<span class="entry_type_enum_value">0x2</span>
<span class="entry_type_enum_notes"><p>10-bit pixel samples encoded using the Hybrid log-gamma transfer function.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HDR10 (v3.8)</span>
<span class="entry_type_enum_value">0x4</span>
<span class="entry_type_enum_notes"><p>10-bit pixel samples encoded using the SMPTE ST 2084 transfer function.<wbr/>
This profile utilizes internal static metadata to increase the quality
of the capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HDR10_PLUS (v3.8)</span>
<span class="entry_type_enum_value">0x8</span>
<span class="entry_type_enum_notes"><p>10-bit pixel samples encoded using the SMPTE ST 2084 transfer function.<wbr/>
In contrast to HDR10,<wbr/> this profile uses internal per-frame metadata
to further enhance the quality of the capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DOLBY_VISION_10B_HDR_REF (v3.8)</span>
<span class="entry_type_enum_value">0x10</span>
<span class="entry_type_enum_notes"><p>This is a camera mode for Dolby Vision capture optimized for a more scene
accurate capture.<wbr/> This would typically differ from what a specific device
might want to tune for a consumer optimized Dolby Vision general capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DOLBY_VISION_10B_HDR_REF_PO (v3.8)</span>
<span class="entry_type_enum_value">0x20</span>
<span class="entry_type_enum_notes"><p>This is the power optimized mode for 10-bit Dolby Vision HDR Reference Mode.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DOLBY_VISION_10B_HDR_OEM (v3.8)</span>
<span class="entry_type_enum_value">0x40</span>
<span class="entry_type_enum_notes"><p>This is the camera mode for the default Dolby Vision capture mode for the
specific device.<wbr/> This would be tuned by each specific device for consumer
pleasing results that resonate with their particular audience.<wbr/> We expect
that each specific device would have a different look for their default
Dolby Vision capture.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DOLBY_VISION_10B_HDR_OEM_PO (v3.8)</span>
<span class="entry_type_enum_value">0x80</span>
<span class="entry_type_enum_notes"><p>This is the power optimized mode for 10-bit Dolby Vision HDR device specific
capture Mode.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DOLBY_VISION_8B_HDR_REF (v3.8)</span>
<span class="entry_type_enum_value">0x100</span>
<span class="entry_type_enum_notes"><p>This is the 8-bit version of the Dolby Vision reference capture mode optimized
for scene accuracy.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DOLBY_VISION_8B_HDR_REF_PO (v3.8)</span>
<span class="entry_type_enum_value">0x200</span>
<span class="entry_type_enum_notes"><p>This is the power optimized mode for 8-bit Dolby Vision HDR Reference Mode.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DOLBY_VISION_8B_HDR_OEM (v3.8)</span>
<span class="entry_type_enum_value">0x400</span>
<span class="entry_type_enum_notes"><p>This is the 8-bit version of device specific tuned and optimized Dolby Vision
capture mode.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DOLBY_VISION_8B_HDR_OEM_PO (v3.8)</span>
<span class="entry_type_enum_value">0x800</span>
<span class="entry_type_enum_notes"><p>This is the power optimized mode for 8-bit Dolby Vision HDR device specific
capture Mode.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MAX (v3.8)</span>
<span class="entry_type_enum_value">0x1000</span>
<span class="entry_type_enum_notes"></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A map of all available 10-bit dynamic range profiles along with their
capture request constraints.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>8</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Devices supporting the 10-bit output capability
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>TEN_<wbr/>BIT</a>
must list their supported dynamic range profiles.<wbr/> In case the camera is not able to
support every possible profile combination within a single capture request,<wbr/> then the
constraints must be listed here as well.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array contains three entries per supported profile:
1) The supported dynamic profile value.<wbr/> Do note that
ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>STANDARD is assumed to be always
present and must not be listed.<wbr/>
2) A bitmap combination of all supported profiles that can be referenced at the same
time within a single capture request.<wbr/> Do note that a value of 0 means that there are
no constraints and all combinations are supported.<wbr/>
3) A flag indicating the presence of an internal lookahead functionality that
can increase the streaming latency by more than 3 buffers.<wbr/> The value 0 will indicate
that latency doesn't exceed 3 buffers,<wbr/> everything different than 0 will indicate
latency that is beyond 3 buffers.<wbr/> In case the flag is set,<wbr/> then Camera clients will be
advised to avoid configuring this profile for camera latency sensitive outputs such as
preview.<wbr/> Do note,<wbr/> that such extra latency must not be present for the HLG10 profile.<wbr/></p>
<p>For example if we assume that a device exists that can only support HLG10,<wbr/> HDR10 and
HDR10_<wbr/>PLUS from the possible 10-bit profiles with the following capture constraints:
1) HLG10 can be included in any capture request without constraints.<wbr/>
2) HDR10 and HDR10_<wbr/>PLUS can only be referenced together and/<wbr/>or with HLG10 but not with
STANDARD.<wbr/>
In the same example,<wbr/> HLG10 and HDR10 will not have additional lookahead latency,<wbr/> and
HDR10+ will have latency that exceeds 3 buffers.<wbr/>
The resulting array should look like this:
[ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>HLG10,<wbr/> 0,<wbr/> 0,<wbr/>
ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>HDR10,<wbr/>
(ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>HDR10 |<wbr/>
ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>HLG10 |<wbr/>
ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>HDR10_<wbr/>PLUS),<wbr/> 0,<wbr/>
ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>HDR10_<wbr/>PLUS,<wbr/>
(ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>HDR10_<wbr/>PLUS |<wbr/>
ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>HLG10 |<wbr/>
ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>HDR10),<wbr/> 1]</p>
<p>Camera providers must ensure that each processed buffer from a stream configured with the
HDR10 dynamic range profile includes SMPTE ST 2086 static metadata by calling
'android::hardware::graphics::mapper::V4_<wbr/>0::IMapper::set' before returning the buffer.<wbr/></p>
<p>Camera providers must ensure that each processed buffer from a stream configured
with HDR10_<wbr/>PLUS dynamic range profile includes SMPTE ST 2094-40 dynamic
metadata by calling 'android::hardware::graphics::mapper::V4_<wbr/>0::IMapper::set' before
returning the buffer.<wbr/></p>
<p>Camera providers must ensure that each processed buffer from a stream configured
with any of the 10-bit Dolby Vision dynamic range profiles includes SMPTE ST 2094-10
dynamic metadata by calling 'android::hardware::graphics::mapper::V4_<wbr/>0::IMapper::set'
before returning the buffer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.recommendedTenBitDynamicRangeProfile">
<td class="entry_name
" rowspan="3">
android.<wbr/>request.<wbr/>recommended<wbr/>Ten<wbr/>Bit<wbr/>Dynamic<wbr/>Range<wbr/>Profile
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [java_public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Recommended 10-bit dynamic range profile.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>8</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Devices supporting the 10-bit output capability
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>TEN_<wbr/>BIT</a>
must list a 10-bit supported dynamic range profile that is expected to perform
optimally in terms of image quality,<wbr/> power and performance.<wbr/>
The value advertised can be used as a hint by camera clients when configuring the dynamic
range profile when calling
<a href="https://developer.android.com/reference/android/hardware/camera2/params/OutputConfiguration.html#setDynamicRangeProfile">OutputConfiguration#setDynamicRangeProfile</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.availableColorSpaceProfiles">
<td class="entry_name
" rowspan="3">
android.<wbr/>request.<wbr/>available<wbr/>Color<wbr/>Space<wbr/>Profiles
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public as colorSpaceProfiles]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An interface for querying the color space profiles supported by a camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A color space profile is a combination of a color space,<wbr/> an image format,<wbr/> and a dynamic
range profile.<wbr/> Camera clients can retrieve the list of supported color spaces by calling
<a href="https://developer.android.com/reference/android/hardware/camera2/params/ColorSpaceProfiles.html#getSupportedColorSpaces">ColorSpaceProfiles#getSupportedColorSpaces</a> or
<a href="https://developer.android.com/reference/android/hardware/camera2/params/ColorSpaceProfiles.html#getSupportedColorSpacesForDynamicRange">ColorSpaceProfiles#getSupportedColorSpacesForDynamicRange</a>.<wbr/>
If a camera does not support the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>TEN_<wbr/>BIT</a>
capability,<wbr/> the dynamic range profile will always be
<a href="https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#STANDARD">DynamicRangeProfiles#STANDARD</a>.<wbr/> Color space
capabilities are queried in combination with an <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html">ImageFormat</a>.<wbr/>
If a camera client wants to know the general color space capabilities of a camera device
regardless of image format,<wbr/> it can specify <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#UNKNOWN">ImageFormat#UNKNOWN</a>.<wbr/>
The color space for a session can be configured by setting the SessionConfiguration
color space via <a href="https://developer.android.com/reference/android/hardware/camera2/params/SessionConfiguration.html#setColorSpace">SessionConfiguration#setColorSpace</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.request.availableColorSpaceProfilesMap">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>available<wbr/>Color<wbr/>Space<wbr/>Profiles<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 3
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">UNSPECIFIED (v3.9)</span>
<span class="entry_type_enum_value">-1</span>
<span class="entry_type_enum_notes"><p>Default value,<wbr/> when not explicitly specified.<wbr/> The Camera device will choose the color
space to employ.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SRGB (v3.9)</span>
<span class="entry_type_enum_hidden">[system]</span>
<span class="entry_type_enum_value">0</span>
<span class="entry_type_enum_notes"><p>RGB color space sRGB standardized as IEC 61966-2.<wbr/>1:1999.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">DISPLAY_P3 (v3.9)</span>
<span class="entry_type_enum_hidden">[system]</span>
<span class="entry_type_enum_value">7</span>
<span class="entry_type_enum_notes"><p>RGB color space Display P3 based on SMPTE RP 431-2-2007 and IEC 61966-2.<wbr/>1:1999.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BT2020_HLG (v3.9)</span>
<span class="entry_type_enum_hidden">[system]</span>
<span class="entry_type_enum_value">16</span>
<span class="entry_type_enum_notes"><p>RGB color space BT.<wbr/>2100 standardized as Hybrid Log Gamma encoding.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A list of all possible color space profiles supported by a camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A color space profile is a combination of a color space,<wbr/> an image format,<wbr/> and a dynamic range
profile.<wbr/> If a camera does not support the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>TEN_<wbr/>BIT</a>
capability,<wbr/> the dynamic range profile will always be
<a href="https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#STANDARD">DynamicRangeProfiles#STANDARD</a>.<wbr/> Camera clients can
use <a href="https://developer.android.com/reference/android/hardware/camera2/params/SessionConfiguration.html#setColorSpace">SessionConfiguration#setColorSpace</a> to select
a color space.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array contains three entries per supported profile:</p>
<p>1) The supported color space.<wbr/>
2) An image format which can be used with this color space.<wbr/>
3) A bitmap of all compatible dynamic range profiles,<wbr/> if the device is HDR-capable.<wbr/></p>
<p>The possible values for #1 are the positive values of the
ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>COLOR_<wbr/>SPACE_<wbr/>PROFILES_<wbr/>MAP_<wbr/><em> enum,<wbr/> which is equivalent to
<a href="https://developer.android.com/reference/android/graphics/ColorSpace/Named.html">Named</a> and its ordinals.<wbr/> UNSPECIFIED should not be
used here.<wbr/> It should be noted that not all <a href="https://developer.android.com/reference/android/graphics/ColorSpace/Named.html">Named</a>
values are supported,<wbr/> only those in the
ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>COLOR_<wbr/>SPACE_<wbr/>PROFILES_<wbr/>MAP_<wbr/></em> enum.<wbr/></p>
<p>The possible values for #2 consist of the public-facing image/<wbr/>pixel formats,<wbr/> found at
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html">ImageFormat</a> and <a href="https://developer.android.com/reference/android/graphics/PixelFormat.html">PixelFormat</a>.<wbr/> Each map
to a HAL pixel format except for <a href="https://developer.android.com/reference/android/graphics/ImageFormat/JPEG.html">JPEG</a>,<wbr/>
<a href="https://developer.android.com/reference/android/graphics/ImageFormat/HEIC.html">HEIC</a>,<wbr/> and
<a href="https://developer.android.com/reference/android/graphics/ImageFormat/DEPTH_JPEG.html">DEPTH_<wbr/>JPEG</a>.<wbr/> Depth formats besides DEPTH_<wbr/>JPEG are
not applicable and should not be specified.<wbr/> If there are no constraints on the type of
image format a color space is compatible with,<wbr/> this can be
<a href="https://developer.android.com/reference/android/graphics/ImageFormat/UNKNOWN.html">UNKNOWN</a>.<wbr/></p>
<p>If the device is not HDR-capable,<wbr/> #3 should always be
ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>STANDARD.<wbr/> Otherwise,<wbr/> #3 should be a
bitmap of the compatible ANDROID_<wbr/>REQUEST_<wbr/>AVAILABLE_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILES_<wbr/>* values.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.request.frameCount">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>request.<wbr/>frame<wbr/>Count
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [hidden]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A frame counter set by the framework.<wbr/> This value monotonically
increases with every new result (that is,<wbr/> each new result has a unique
frameCount value).<wbr/></p>
</td>
<td class="entry_units">
count of frames
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
<p>&gt; 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Reset on release()</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.request.id">
<td class="entry_name
" rowspan="1">
android.<wbr/>request.<wbr/>id
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [hidden]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An application-specified ID for the current
request.<wbr/> Must be maintained unchanged in output
frame</p>
</td>
<td class="entry_units">
arbitrary integer assigned by application
</td>
<td class="entry_range">
<p>Any int</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.request.metadataMode">
<td class="entry_name
" rowspan="1">
android.<wbr/>request.<wbr/>metadata<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [system]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">NONE (v3.2)</span>
<span class="entry_type_enum_notes"><p>No metadata should be produced on output,<wbr/> except
for application-bound buffer data.<wbr/> If no
application-bound streams exist,<wbr/> no frame should be
placed in the output frame queue.<wbr/> If such streams
exist,<wbr/> a frame should be placed on the output queue
with null metadata but with the necessary output buffer
information.<wbr/> Timestamp information should still be
included with any output stream buffers</p></span>
</li>
<li>
<span class="entry_type_enum_name">FULL (v3.2)</span>
<span class="entry_type_enum_notes"><p>All metadata should be produced.<wbr/> Statistics will
only be produced if they are separately
enabled</p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>How much metadata to produce on
output</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.request.outputStreams">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>request.<wbr/>output<wbr/>Streams
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Lists which camera output streams image data
from this capture must be sent to</p>
</td>
<td class="entry_units">
List of camera stream IDs
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
<p>List must only include streams that have been
created</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HAL2">HAL2</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If no output streams are listed,<wbr/> then the image
data should simply be discarded.<wbr/> The image data must
still be captured for metadata and statistics production,<wbr/>
and the lens and flash must operate as requested.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.request.pipelineDepth">
<td class="entry_name
" rowspan="5">
android.<wbr/>request.<wbr/>pipeline<wbr/>Depth
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Specifies the number of pipeline stages the frame went
through from when it was exposed to when the final completed result
was available to the framework.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&lt;= <a href="#static_android.request.pipelineMaxDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Depending on what settings are used in the request,<wbr/> and
what streams are configured,<wbr/> the data may undergo less processing,<wbr/>
and some pipeline stages skipped.<wbr/></p>
<p>See <a href="#static_android.request.pipelineMaxDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth</a> for more details.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This value must always represent the accurate count of how many
pipeline stages were actually used.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_scaler" class="section">scaler</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.scaler.cropRegion">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>crop<wbr/>Region
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public as rectangle]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired region of the sensor to read out for this capture.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates relative to
android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size or
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size depending on distortion correction
capability and mode
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control can be used to implement digital zoom.<wbr/></p>
<p>For devices not supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system always follows that of <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 top-left pixel of the active array.<wbr/></p>
<p>For devices supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate system
depends on the mode being set.<wbr/> When the distortion correction mode is OFF,<wbr/> the
coordinate system follows <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> with <code>(0,<wbr/>
0)</code> being the top-left pixel of the pre-correction active array.<wbr/> When the distortion
correction mode is not OFF,<wbr/> the coordinate system follows
<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 top-left pixel of the
active array.<wbr/></p>
<p>Output streams use this rectangle to produce their output,<wbr/> cropping to a smaller region
if necessary to maintain the stream's aspect ratio,<wbr/> then scaling the sensor input to
match the output's configured resolution.<wbr/></p>
<p>The crop region is usually applied after the RAW to other color space (e.<wbr/>g.<wbr/> YUV)
conversion.<wbr/> As a result RAW streams are not croppable unless supported by the
camera device.<wbr/> See <a href="#static_android.scaler.availableStreamUseCases">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Use<wbr/>Cases</a>#CROPPED_<wbr/>RAW for details.<wbr/></p>
<p>For non-raw streams,<wbr/> any additional per-stream cropping will be done to maximize the
final pixel area of the stream.<wbr/></p>
<p>For example,<wbr/> if the crop region is set to a 4:3 aspect ratio,<wbr/> then 4:3 streams will use
the exact crop region.<wbr/> 16:9 streams will further crop vertically (letterbox).<wbr/></p>
<p>Conversely,<wbr/> if the crop region is set to a 16:9,<wbr/> then 4:3 outputs will crop horizontally
(pillarbox),<wbr/> and 16:9 streams will match exactly.<wbr/> These additional crops will be
centered within the crop region.<wbr/></p>
<p>To illustrate,<wbr/> here are several scenarios of different crop regions and output streams,<wbr/>
for a hypothetical camera device with an active array of size <code>(2000,<wbr/>1500)</code>.<wbr/> Note that
several of these examples use non-centered crop regions for ease of illustration; such
regions are only supported on devices with FREEFORM capability
(<a href="#static_android.scaler.croppingType">android.<wbr/>scaler.<wbr/>cropping<wbr/>Type</a> <code>== FREEFORM</code>),<wbr/> but this does not affect the way the crop
rules work otherwise.<wbr/></p>
<ul>
<li>Camera Configuration:<ul>
<li>Active array size: <code>2000x1500</code> (3 MP,<wbr/> 4:3 aspect ratio)</li>
<li>Output stream #1: <code>640x480</code> (VGA,<wbr/> 4:3 aspect ratio)</li>
<li>Output stream #2: <code>1280x720</code> (720p,<wbr/> 16:9 aspect ratio)</li>
</ul>
</li>
<li>Case #1: 4:3 crop region with 2x digital zoom<ul>
<li>Crop region: <code>Rect(500,<wbr/> 375,<wbr/> 1500,<wbr/> 1125) //<wbr/> (left,<wbr/> top,<wbr/> right,<wbr/> bottom)</code></li>
<li><img alt="4:3 aspect ratio crop diagram" src="images/camera2/metadata/android.scaler.cropRegion/crop-region-43-ratio.png"/></li>
<li><code>640x480</code> stream source area: <code>(500,<wbr/> 375,<wbr/> 1500,<wbr/> 1125)</code> (equal to crop region)</li>
<li><code>1280x720</code> stream source area: <code>(500,<wbr/> 469,<wbr/> 1500,<wbr/> 1031)</code> (letterboxed)</li>
</ul>
</li>
<li>Case #2: 16:9 crop region with ~1.<wbr/>5x digital zoom.<wbr/><ul>
<li>Crop region: <code>Rect(500,<wbr/> 375,<wbr/> 1833,<wbr/> 1125)</code></li>
<li><img alt="16:9 aspect ratio crop diagram" src="images/camera2/metadata/android.scaler.cropRegion/crop-region-169-ratio.png"/></li>
<li><code>640x480</code> stream source area: <code>(666,<wbr/> 375,<wbr/> 1666,<wbr/> 1125)</code> (pillarboxed)</li>
<li><code>1280x720</code> stream source area: <code>(500,<wbr/> 375,<wbr/> 1833,<wbr/> 1125)</code> (equal to crop region)</li>
</ul>
</li>
<li>Case #3: 1:1 crop region with ~2.<wbr/>6x digital zoom.<wbr/><ul>
<li>Crop region: <code>Rect(500,<wbr/> 375,<wbr/> 1250,<wbr/> 1125)</code></li>
<li><img alt="1:1 aspect ratio crop diagram" src="images/camera2/metadata/android.scaler.cropRegion/crop-region-11-ratio.png"/></li>
<li><code>640x480</code> stream source area: <code>(500,<wbr/> 469,<wbr/> 1250,<wbr/> 1031)</code> (letterboxed)</li>
<li><code>1280x720</code> stream source area: <code>(500,<wbr/> 543,<wbr/> 1250,<wbr/> 957)</code> (letterboxed)</li>
</ul>
</li>
<li>Case #4: Replace <code>640x480</code> stream with <code>1024x1024</code> stream,<wbr/> with 4:3 crop region:<ul>
<li>Crop region: <code>Rect(500,<wbr/> 375,<wbr/> 1500,<wbr/> 1125)</code></li>
<li><img alt="Square output, 4:3 aspect ratio crop diagram" src="images/camera2/metadata/android.scaler.cropRegion/crop-region-43-square-ratio.png"/></li>
<li><code>1024x1024</code> stream source area: <code>(625,<wbr/> 375,<wbr/> 1375,<wbr/> 1125)</code> (pillarboxed)</li>
<li><code>1280x720</code> stream source area: <code>(500,<wbr/> 469,<wbr/> 1500,<wbr/> 1031)</code> (letterboxed)</li>
<li>Note that in this case,<wbr/> neither of the two outputs is a subset of the other,<wbr/> with
each containing image data the other doesn't have.<wbr/></li>
</ul>
</li>
</ul>
<p>If the coordinate system is <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> the width and height
of the crop region cannot be set to be smaller than
<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
<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>
<p>If the coordinate system is <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> the width
and height of the crop region cannot be set to be smaller than
<code>floor( preCorrectionActiveArraySize.<wbr/>width /<wbr/> <a href="#static_android.scaler.availableMaxDigitalZoom">android.<wbr/>scaler.<wbr/>available<wbr/>Max<wbr/>Digital<wbr/>Zoom</a> )</code>
and
<code>floor( preCorrectionActiveArraySize.<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>
<p>The camera device may adjust the crop region to account for rounding and other hardware
requirements; the final crop region used will be included in the output capture result.<wbr/></p>
<p>The camera sensor output aspect ratio depends on factors such as output stream
combination and <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a>,<wbr/> and shouldn't be adjusted by using
this control.<wbr/> And the camera device will treat different camera sensor output sizes
(potentially with in-sensor crop) as the same crop of
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/> As a result,<wbr/> the application shouldn't assume the
maximum crop region always maps to the same aspect ratio or field of view for the
sensor output.<wbr/></p>
<p>Starting from API level 30,<wbr/> it's strongly recommended to use <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>
to take advantage of better support for zoom with logical multi-camera.<wbr/> The benefits
include better precision with optical-digital zoom combination,<wbr/> and ability to do
zoom-out from 1.<wbr/>0x.<wbr/> When using <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for zoom,<wbr/> the crop region in
the capture request should be left as the default activeArray size.<wbr/> The
coordinate system is post-zoom,<wbr/> meaning that the activeArraySize or
preCorrectionActiveArraySize covers the camera device's field of view "after" zoom.<wbr/> See
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for details.<wbr/></p>
<p>For camera devices with the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a></p>
<p><a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> /<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> must be used as the
coordinate system for requests where <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The output streams must maintain square pixels at all
times,<wbr/> no matter what the relative aspect ratios of the
crop region and the stream are.<wbr/> Negative values for
corner are allowed for raw output if full pixel array is
larger than active pixel array.<wbr/> Width and height may be
rounded to nearest larger supportable width,<wbr/> especially
for raw output,<wbr/> where only a few fixed scales may be
possible.<wbr/></p>
<p>If <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> is supported by the HAL,<wbr/> the HAL must report the zoom
ratio via <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> and change the coordinate system such that
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a> or <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>(depending on whether <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> is supported) is used to
represent the camera field-of-view after zoom.<wbr/> see <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for
details.<wbr/></p>
<p>HAL2.<wbr/>x uses only (x,<wbr/> y,<wbr/> width)</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.scaler.rotateAndCrop">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>rotate<wbr/>And<wbr/>Crop
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">NONE (v3.5)</span>
<span class="entry_type_enum_notes"><p>No rotate and crop is applied.<wbr/> Processed outputs are in the sensor orientation.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">90 (v3.5)</span>
<span class="entry_type_enum_notes"><p>Processed images are rotated by 90 degrees clockwise,<wbr/> and then cropped
to the original aspect ratio.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">180 (v3.5)</span>
<span class="entry_type_enum_notes"><p>Processed images are rotated by 180 degrees.<wbr/> Since the aspect ratio does not
change,<wbr/> no cropping is performed.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">270 (v3.5)</span>
<span class="entry_type_enum_notes"><p>Processed images are rotated by 270 degrees clockwise,<wbr/> and then cropped
to the original aspect ratio.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.5)</span>
<span class="entry_type_enum_notes"><p>The camera API automatically selects the best concrete value for
rotate-and-crop based on the application's support for resizability and the current
multi-window mode.<wbr/></p>
<p>If the application does not support resizing but the display mode for its main
Activity is not in a typical orientation,<wbr/> the camera API will set <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>90</code>
or some other supported rotation value,<wbr/> depending on device configuration,<wbr/>
to ensure preview and captured images are correctly shown to the user.<wbr/> Otherwise,<wbr/>
<code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>NONE</code> will be selected.<wbr/></p>
<p>When a value other than NONE is selected,<wbr/> several metadata fields will also be parsed
differently to ensure that coordinates are correctly handled for features like drawing
face detection boxes or passing in tap-to-focus coordinates.<wbr/> The camera API will
convert positions in the active array coordinate system to/<wbr/>from the cropped-and-rotated
coordinate system to make the operation transparent for applications.<wbr/></p>
<p>No coordinate mapping will be done when the application selects a non-AUTO mode.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether a rotation-and-crop operation is applied to processed
outputs from the camera.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.scaler.availableRotateAndCropModes">android.<wbr/>scaler.<wbr/>available<wbr/>Rotate<wbr/>And<wbr/>Crop<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>5</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control is primarily intended to help camera applications with no support for
multi-window modes to work correctly on devices where multi-window scenarios are
unavoidable,<wbr/> such as foldables or other devices with variable display geometry or more
free-form window placement (such as laptops,<wbr/> which often place portrait-orientation apps
in landscape with pillarboxing).<wbr/></p>
<p>If supported,<wbr/> the default value is <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>AUTO</code>,<wbr/> which allows the camera API
to enable backwards-compatibility support for applications that do not support resizing
/<wbr/> multi-window modes,<wbr/> when the device is in fact in a multi-window mode (such as inset
portrait on laptops,<wbr/> or on a foldable device in some fold states).<wbr/> In addition,<wbr/>
<code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>NONE</code> and <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>90</code> will always be available if this control
is supported by the device.<wbr/> If not supported,<wbr/> devices API level 30 or higher will always
list only <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>NONE</code>.<wbr/></p>
<p>When <code>CROP_<wbr/>AUTO</code> is in use,<wbr/> and the camera API activates backward-compatibility mode,<wbr/>
several metadata fields will also be parsed differently to ensure that coordinates are
correctly handled for features like drawing face detection boxes or passing in
tap-to-focus coordinates.<wbr/> The camera API will convert positions in the active array
coordinate system to/<wbr/>from the cropped-and-rotated coordinate system to make the
operation transparent for applications.<wbr/> The following controls are affected:</p>
<ul>
<li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
<li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
<li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
<li><a href="#dynamic_android.statistics.faces">android.<wbr/>statistics.<wbr/>faces</a></li>
</ul>
<p>Capture results will contain the actual value selected by the API;
<code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>AUTO</code> will never be seen in a capture result.<wbr/></p>
<p>Applications can also select their preferred cropping mode,<wbr/> either to opt out of the
backwards-compatibility treatment,<wbr/> or to use the cropping feature themselves as needed.<wbr/>
In this case,<wbr/> no coordinate translation will be done automatically,<wbr/> and all controls
will continue to use the normal active array coordinates.<wbr/></p>
<p>Cropping and rotating is done after the application of digital zoom (via either
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> or <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>),<wbr/> but before each individual
output is further cropped and scaled.<wbr/> It only affects processed outputs such as
YUV,<wbr/> PRIVATE,<wbr/> and JPEG.<wbr/> It has no effect on RAW outputs.<wbr/></p>
<p>When <code>CROP_<wbr/>90</code> or <code>CROP_<wbr/>270</code> are selected,<wbr/> there is a significant loss to the field of
view.<wbr/> For example,<wbr/> with a 4:3 aspect ratio output of 1600x1200,<wbr/> <code>CROP_<wbr/>90</code> will still
produce 1600x1200 output,<wbr/> but these buffers are cropped from a vertical 3:4 slice at the
center of the 4:3 area,<wbr/> then rotated to be 4:3,<wbr/> and then upscaled to 1600x1200.<wbr/> Only
56.<wbr/>25% of the original FOV is still visible.<wbr/> In general,<wbr/> for an aspect ratio of <code>w:h</code>,<wbr/>
the crop and rotate operation leaves <code>(h/<wbr/>w)^2</code> of the field of view visible.<wbr/> For 16:9,<wbr/>
this is ~31.<wbr/>6%.<wbr/></p>
<p>As a visual example,<wbr/> the figure below shows the effect of <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>90</code> on the
outputs for the following parameters:</p>
<ul>
<li>Sensor active array: <code>2000x1500</code></li>
<li>Crop region: top-left: <code>(500,<wbr/> 375)</code>,<wbr/> size: <code>(1000,<wbr/> 750)</code> (4:3 aspect ratio)</li>
<li>Output streams: YUV <code>640x480</code> and YUV <code>1280x720</code></li>
<li><code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>90</code></li>
</ul>
<p><img alt="Effect of ROTATE_AND_CROP_90" src="images/camera2/metadata/android.scaler.rotateAndCrop/crop-region-rotate-90-43-ratio.png"/></p>
<p>With these settings,<wbr/> the regions of the active array covered by the output streams are:</p>
<ul>
<li>640x480 stream crop: top-left: <code>(219,<wbr/> 375)</code>,<wbr/> size: <code>(562,<wbr/> 750)</code></li>
<li>1280x720 stream crop: top-left: <code>(289,<wbr/> 375)</code>,<wbr/> size: <code>(422,<wbr/> 750)</code></li>
</ul>
<p>Since the buffers are rotated,<wbr/> the buffers as seen by the application are:</p>
<ul>
<li>640x480 stream: top-left: <code>(781,<wbr/> 375)</code> on active array,<wbr/> size: <code>(640,<wbr/> 480)</code>,<wbr/> downscaled 1.<wbr/>17x from sensor pixels</li>
<li>1280x720 stream: top-left: <code>(711,<wbr/> 375)</code> on active array,<wbr/> size: <code>(1280,<wbr/> 720)</code>,<wbr/> upscaled 1.<wbr/>71x from sensor pixels</li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>AUTO will never be sent to the HAL,<wbr/> though it must be set as the default
value in all the capture request templates by the HAL.<wbr/> The camera service will
translate AUTO to a specific rotation value based on the current application's
multi-window state and its support of resizability.<wbr/></p>
<p>The HAL also does not need to consider coordinate transforms for ROTATE_<wbr/>AND_<wbr/>CROP - all
capture request and result fields should be kept in the active array coordinate frame.<wbr/>
Any translation required to implement ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>AUTO will be handled by the camera
service.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.scaler.cropRegionSet">
<td class="entry_name
" rowspan="3">
android.<wbr/>scaler.<wbr/>crop<wbr/>Region<wbr/>Set
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [fwk_only as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Crop region (<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>) has not been set by the
camera client.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Scaler crop regions (<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>) has been set by the camera
client.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Framework-only private key which informs camera fwk that the scaler crop region
(<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>) has been set by the client and it need
not be corrected when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to MAXIMUM_<wbr/>RESOLUTION.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This must be set to TRUE by the camera2 java fwk when the camera client sets
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.scaler.availableFormats">
<td class="entry_name
entry_name_deprecated
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Formats
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [hidden as imageFormat]</span>
<span class="entry_type_deprecated">[deprecated] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">RAW16 (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_value">0x20</span>
<span class="entry_type_enum_notes"><p>RAW16 is a standard,<wbr/> cross-platform format for raw image
buffers with 16-bit pixels.<wbr/></p>
<p>Buffers of this format are typically expected to have a
Color Filter Array (CFA) layout,<wbr/> which is given in
<a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a>.<wbr/> Sensors with
CFAs that are not representable by a format in
<a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a> should not
use this format.<wbr/></p>
<p>Buffers of this format will also follow the constraints given for
RAW_<wbr/>OPAQUE buffers,<wbr/> but with relaxed performance constraints.<wbr/></p>
<p>This format is intended to give users access to the full contents
of the buffers coming directly from the image sensor prior to any
cropping or scaling operations,<wbr/> and all coordinate systems for
metadata used for this format are relative to the size of the
active region of the image sensor before any geometric distortion
correction has been applied (i.<wbr/>e.<wbr/>
<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
dimensions for this format are limited to the full dimensions of
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
<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
only supported output size).<wbr/></p>
<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 performance guarantees.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">RAW_OPAQUE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_value">0x24</span>
<span class="entry_type_enum_notes"><p>RAW_<wbr/>OPAQUE (or
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_PRIVATE">RAW_<wbr/>PRIVATE</a>
as referred in public API) is a format for raw image buffers
coming from an image sensor.<wbr/></p>
<p>The actual structure of buffers of this format is
platform-specific,<wbr/> but must follow several constraints:</p>
<ol>
<li>No image post-processing operations may have been applied to
buffers of this type.<wbr/> These buffers contain raw image data coming
directly from the image sensor.<wbr/></li>
<li>If a buffer of this format is passed to the camera device for
reprocessing,<wbr/> the resulting images will be identical to the images
produced if the buffer had come directly from the sensor and was
processed with the same settings.<wbr/></li>
</ol>
<p>The intended use for this format is to allow access to the native
raw format buffers coming directly from the camera sensor without
any additional conversions or decrease in framerate.<wbr/></p>
<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
performance guarantees.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">YV12 (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_value">0x32315659</span>
<span class="entry_type_enum_notes"><p>YCrCb 4:2:0 Planar</p></span>
</li>
<li>
<span class="entry_type_enum_name">YCrCb_420_SP (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_value">0x11</span>
<span class="entry_type_enum_notes"><p>NV21</p></span>
</li>
<li>
<span class="entry_type_enum_name">IMPLEMENTATION_DEFINED (v3.2)</span>
<span class="entry_type_enum_value">0x22</span>
<span class="entry_type_enum_notes"><p>System internal format,<wbr/> not application-accessible</p></span>
</li>
<li>
<span class="entry_type_enum_name">YCbCr_420_888 (v3.2)</span>
<span class="entry_type_enum_value">0x23</span>
<span class="entry_type_enum_notes"><p>Flexible YUV420 Format</p></span>
</li>
<li>
<span class="entry_type_enum_name">BLOB (v3.2)</span>
<span class="entry_type_enum_value">0x21</span>
<span class="entry_type_enum_notes"><p>JPEG format</p></span>
</li>
<li>
<span class="entry_type_enum_name">RAW10 (v3.4)</span>
<span class="entry_type_enum_value">0x25</span>
<span class="entry_type_enum_notes"><p>RAW10</p></span>
</li>
<li>
<span class="entry_type_enum_name">RAW12 (v3.4)</span>
<span class="entry_type_enum_value">0x26</span>
<span class="entry_type_enum_notes"><p>RAW12</p></span>
</li>
<li>
<span class="entry_type_enum_name">Y8 (v3.4)</span>
<span class="entry_type_enum_value">0x20203859</span>
<span class="entry_type_enum_notes"><p>Y8</p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The list of image formats that are supported by this
camera device for output streams.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>All camera devices will support JPEG and YUV_<wbr/>420_<wbr/>888 formats.<wbr/></p>
<p>When set to YUV_<wbr/>420_<wbr/>888,<wbr/> application can access the YUV420 data directly.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>These format values are from HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>* in
system/<wbr/>core/<wbr/>libsystem/<wbr/>include/<wbr/>system/<wbr/>graphics-base.<wbr/>h.<wbr/></p>
<p>When IMPLEMENTATION_<wbr/>DEFINED is used,<wbr/> the platform
gralloc module will select a format based on the usage flags provided
by the camera HAL device and the other endpoint of the stream.<wbr/> It is
usually used by preview and recording streams,<wbr/> where the application doesn't
need access the image data.<wbr/></p>
<p>YCb<wbr/>Cr_<wbr/>420_<wbr/>888 format must be supported by the HAL.<wbr/> When an image stream
needs CPU/<wbr/>application direct access,<wbr/> this format will be used.<wbr/> For a MONOCHROME
camera device,<wbr/> the pixel value of Cb and Cr planes is 128.<wbr/></p>
<p>The BLOB format must be supported by the HAL.<wbr/> This is used for the JPEG stream.<wbr/></p>
<p>A RAW_<wbr/>OPAQUE buffer should contain only pixel data.<wbr/> It is strongly
recommended that any information used by the camera device when
processing images is fully expressed by the result metadata
for that image buffer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableJpegMinDurations">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>scaler.<wbr/>available<wbr/>Jpeg<wbr/>Min<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [hidden]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The minimum frame duration that is supported
for each resolution in <a href="#static_android.scaler.availableJpegSizes">android.<wbr/>scaler.<wbr/>available<wbr/>Jpeg<wbr/>Sizes</a>.<wbr/></p>
</td>
<td class="entry_units">
Nanoseconds
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
<p>TODO: Remove property.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This corresponds to the minimum steady-state frame duration when only
that JPEG stream is active and captured in a burst,<wbr/> with all
processing (typically in android.<wbr/>*.<wbr/>mode) set to FAST.<wbr/></p>
<p>When multiple streams are configured,<wbr/> the minimum
frame duration will be &gt;= max(individual stream min
durations)</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableJpegSizes">
<td class="entry_name
entry_name_deprecated
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Jpeg<wbr/>Sizes
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 2
</span>
<span class="entry_type_visibility"> [hidden as size]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The JPEG resolutions that are supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
<p>TODO: Remove property.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The resolutions are listed as <code>(width,<wbr/> height)</code> pairs.<wbr/> All camera devices will support
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>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL must include 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/>
and should include half/<wbr/>quarter of sensor maximum resolution.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableMaxDigitalZoom">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Max<wbr/>Digital<wbr/>Zoom
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum ratio between both active area width
and crop region width,<wbr/> and active area height and
crop region height,<wbr/> for <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></p>
</td>
<td class="entry_units">
Zoom scale factor
</td>
<td class="entry_range">
<p>&gt;=1</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This represents the maximum amount of zooming possible by
the camera device,<wbr/> or equivalently,<wbr/> the minimum cropping
window size.<wbr/></p>
<p>Crop regions that have a width or height that is smaller
than this ratio allows will be rounded up to the minimum
allowed size by the camera device.<wbr/></p>
<p>Starting from API level 30,<wbr/> when using <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> to zoom in or out,<wbr/>
the application must use <a href="#static_android.control.zoomRatioRange">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio<wbr/>Range</a> to query both the minimum and
maximum zoom ratio.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If the HAL supports <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> this value must be equal to or less than
the maximum supported zoomRatio specified in <a href="#static_android.control.zoomRatioRange">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio<wbr/>Range</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableProcessedMinDurations">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>scaler.<wbr/>available<wbr/>Processed<wbr/>Min<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [hidden]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>For each available processed output size (defined in
<a href="#static_android.scaler.availableProcessedSizes">android.<wbr/>scaler.<wbr/>available<wbr/>Processed<wbr/>Sizes</a>),<wbr/> this property lists the
minimum supportable frame duration for that size.<wbr/></p>
</td>
<td class="entry_units">
Nanoseconds
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This should correspond to the frame duration when only that processed
stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
set to FAST.<wbr/></p>
<p>When multiple streams are configured,<wbr/> the minimum frame duration will
be &gt;= max(individual stream min durations).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableProcessedSizes">
<td class="entry_name
entry_name_deprecated
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Processed<wbr/>Sizes
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 2
</span>
<span class="entry_type_visibility"> [hidden as size]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The resolutions available for use with
processed output streams,<wbr/> such as YV12,<wbr/> NV12,<wbr/> and
platform opaque YUV/<wbr/>RGB streams to the GPU or video
encoders.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The resolutions are listed as <code>(width,<wbr/> height)</code> pairs.<wbr/></p>
<p>For a given use case,<wbr/> the actual maximum supported resolution
may be lower than what is listed here,<wbr/> depending on the destination
Surface for the image data.<wbr/> For example,<wbr/> for recording video,<wbr/>
the video encoder chosen may have a maximum size limit (e.<wbr/>g.<wbr/> 1080p)
smaller than what the camera (e.<wbr/>g.<wbr/> maximum resolution is 3264x2448)
can provide.<wbr/></p>
<p>Please reference the documentation for the image data destination to
check if it limits the maximum size for image data.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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/>
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>
and each below resolution if it is smaller than or equal to the sensor
maximum resolution (if they are not listed in JPEG sizes already):</p>
<ul>
<li>240p (320 x 240)</li>
<li>480p (640 x 480)</li>
<li>720p (1280 x 720)</li>
<li>1080p (1920 x 1080)</li>
</ul>
<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/>
the HAL only has to list up to the maximum video size supported by the devices.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableRawMinDurations">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>scaler.<wbr/>available<wbr/>Raw<wbr/>Min<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>For each available raw output size (defined in
<a href="#static_android.scaler.availableRawSizes">android.<wbr/>scaler.<wbr/>available<wbr/>Raw<wbr/>Sizes</a>),<wbr/> this property lists the minimum
supportable frame duration for that size.<wbr/></p>
</td>
<td class="entry_units">
Nanoseconds
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Should correspond to the frame duration when only the raw stream is
active.<wbr/></p>
<p>When multiple streams are configured,<wbr/> the minimum
frame duration will be &gt;= max(individual stream min
durations)</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableRawSizes">
<td class="entry_name
entry_name_deprecated
" rowspan="1">
android.<wbr/>scaler.<wbr/>available<wbr/>Raw<wbr/>Sizes
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 2
</span>
<span class="entry_type_visibility"> [system as size]</span>
<span class="entry_type_deprecated">[deprecated] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The resolutions available for use with raw
sensor output streams,<wbr/> listed as width,<wbr/>
height</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableInputOutputFormatsMap">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [hidden as reprocessFormatsMap]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The mapping of image formats that are supported by this
camera device for input streams,<wbr/> to their corresponding output formats.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>All camera devices with at least 1
<a href="#static_android.request.maxNumInputStreams">android.<wbr/>request.<wbr/>max<wbr/>Num<wbr/>Input<wbr/>Streams</a> will have at least one
available input format.<wbr/></p>
<p>The camera device will support the following map of formats,<wbr/>
if its dependent capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>) is supported:</p>
<table>
<thead>
<tr>
<th style="text-align: left;">Input Format</th>
<th style="text-align: left;">Output Format</th>
<th style="text-align: left;">Capability</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a></td>
<td style="text-align: left;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
<td style="text-align: left;">PRIVATE_<wbr/>REPROCESSING</td>
</tr>
<tr>
<td style="text-align: left;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a></td>
<td style="text-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>
<td style="text-align: left;">PRIVATE_<wbr/>REPROCESSING</td>
</tr>
<tr>
<td style="text-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>
<td style="text-align: left;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
<td style="text-align: left;">YUV_<wbr/>REPROCESSING</td>
</tr>
<tr>
<td style="text-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>
<td style="text-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>
<td style="text-align: left;">YUV_<wbr/>REPROCESSING</td>
</tr>
</tbody>
</table>
<p>PRIVATE refers to a device-internal format that is not directly application-visible.<wbr/> A
PRIVATE input surface can be acquired by <a href="https://developer.android.com/reference/android/media/ImageReader.html#newInstance">ImageReader#newInstance</a>
with <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> as the format.<wbr/></p>
<p>For a PRIVATE_<wbr/>REPROCESSING-capable camera device,<wbr/> using the PRIVATE format as either input
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>
<p>Attempting to configure an input stream with output streams not
listed as available in this map is not valid.<wbr/></p>
<p>Additionally,<wbr/> if the camera device is MONOCHROME with Y8 support,<wbr/> it will also support
the following map of formats if its dependent capability
(<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>) is supported:</p>
<table>
<thead>
<tr>
<th style="text-align: left;">Input Format</th>
<th style="text-align: left;">Output Format</th>
<th style="text-align: left;">Capability</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a></td>
<td style="text-align: left;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#Y8">ImageFormat#Y8</a></td>
<td style="text-align: left;">PRIVATE_<wbr/>REPROCESSING</td>
</tr>
<tr>
<td style="text-align: left;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#Y8">ImageFormat#Y8</a></td>
<td style="text-align: left;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
<td style="text-align: left;">YUV_<wbr/>REPROCESSING</td>
</tr>
<tr>
<td style="text-align: left;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#Y8">ImageFormat#Y8</a></td>
<td style="text-align: left;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#Y8">ImageFormat#Y8</a></td>
<td style="text-align: left;">YUV_<wbr/>REPROCESSING</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For the formats,<wbr/> see <code>system/<wbr/>core/<wbr/>libsystem/<wbr/>include/<wbr/>system/<wbr/>graphics-base.<wbr/>h</code> for a
definition of the image format enumerations.<wbr/> The PRIVATE format refers to the
HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>IMPLEMENTATION_<wbr/>DEFINED format.<wbr/> The HAL could determine
the actual format by using the gralloc usage flags.<wbr/>
For ZSL use case in particular,<wbr/> the HAL could choose appropriate format (partially
processed YUV or RAW based format) by checking the format and GRALLOC_<wbr/>USAGE_<wbr/>HW_<wbr/>CAMERA_<wbr/>ZSL.<wbr/>
See camera3.<wbr/>h for more details.<wbr/></p>
<p>This value is encoded as a variable-size array-of-arrays.<wbr/>
The inner array always contains <code>[format,<wbr/> length,<wbr/> ...<wbr/>]</code> where
<code>...<wbr/></code> has <code>length</code> elements.<wbr/> An inner array is followed by another
inner array if the total metadata entry size hasn't yet been exceeded.<wbr/></p>
<p>A code sample to read/<wbr/>write this encoding (with a device that
supports reprocessing IMPLEMENTATION_<wbr/>DEFINED to YUV_<wbr/>420_<wbr/>888,<wbr/> and JPEG,<wbr/>
and reprocessing YUV_<wbr/>420_<wbr/>888 to YUV_<wbr/>420_<wbr/>888 and JPEG):</p>
<pre><code>//<wbr/> reading
int32_<wbr/>t* contents = &amp;entry.<wbr/>i32[0];
for (size_<wbr/>t i = 0; i &lt; entry.<wbr/>count; ) {
int32_<wbr/>t format = contents[i++];
int32_<wbr/>t length = contents[i++];
int32_<wbr/>t output_<wbr/>formats[length];
memcpy(&amp;output_<wbr/>formats[0],<wbr/> &amp;contents[i],<wbr/>
length * sizeof(int32_<wbr/>t));
i += length;
}
//<wbr/> writing (static example,<wbr/> PRIVATE_<wbr/>REPROCESSING + YUV_<wbr/>REPROCESSING)
int32_<wbr/>t[] contents = {
IMPLEMENTATION_<wbr/>DEFINED,<wbr/> 2,<wbr/> YUV_<wbr/>420_<wbr/>888,<wbr/> BLOB,<wbr/>
YUV_<wbr/>420_<wbr/>888,<wbr/> 2,<wbr/> YUV_<wbr/>420_<wbr/>888,<wbr/> BLOB,<wbr/>
};
update_<wbr/>camera_<wbr/>metadata_<wbr/>entry(metadata,<wbr/> index,<wbr/> &amp;contents[0],<wbr/>
sizeof(contents)/<wbr/>sizeof(contents[0]),<wbr/> &amp;updated_<wbr/>entry);
</code></pre>
<p>If the HAL claims to support any of the capabilities listed in the
above details,<wbr/> then it must also support all the input-output
combinations listed for that capability.<wbr/> It can optionally support
additional formats if it so chooses.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableStreamConfigurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OUTPUT (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">INPUT (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available stream configurations that this
camera device supports
(i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The configurations are listed as <code>(format,<wbr/> width,<wbr/> height,<wbr/> input?)</code>
tuples.<wbr/></p>
<p>For a given use case,<wbr/> the actual maximum supported resolution
may be lower than what is listed here,<wbr/> depending on the destination
Surface for the image data.<wbr/> For example,<wbr/> for recording video,<wbr/>
the video encoder chosen may have a maximum size limit (e.<wbr/>g.<wbr/> 1080p)
smaller than what the camera (e.<wbr/>g.<wbr/> maximum resolution is 3264x2448)
can provide.<wbr/></p>
<p>Please reference the documentation for the image data destination to
check if it limits the maximum size for image data.<wbr/></p>
<p>Not all output formats may be supported in a configuration with
an input stream of a particular format.<wbr/> For more details,<wbr/> see
<a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a>.<wbr/></p>
<p>For applications targeting SDK version older than 31,<wbr/> the following table
describes the minimum required output stream configurations based on the hardware level
(<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a>):</p>
<table>
<thead>
<tr>
<th style="text-align: center;">Format</th>
<th style="text-align: center;">Size</th>
<th style="text-align: center;">Hardware Level</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;"><a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">1920x1080 (1080p)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;">if 1080p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">1280x720 (720)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;">if 720p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">640x480 (480p)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;">if 480p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">320x240 (240p)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;">if 240p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;">YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;">all output sizes available for JPEG</td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;">all output sizes available for JPEG,<wbr/> up to the maximum video size</td>
<td style="text-align: center;">LIMITED</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">IMPLEMENTATION_<wbr/>DEFINED</td>
<td style="text-align: center;">same as YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;"></td>
</tr>
</tbody>
</table>
<p>For applications targeting SDK version 31 or newer,<wbr/> if the mobile device declares to be
media performance class 12 or higher by setting
<a href="https://developer.android.com/reference/android/os/Build.VERSION.html#MEDIA_PERFORMANCE_CLASS">VERSION#MEDIA_<wbr/>PERFORMANCE_<wbr/>CLASS</a> to be 31 or larger,<wbr/>
the primary camera devices (first rear/<wbr/>front camera in the camera ID list) will not
support JPEG sizes smaller than 1080p.<wbr/> If the application configures a JPEG stream
smaller than 1080p,<wbr/> the camera device will round up the JPEG image size to at least
1080p.<wbr/> The requirements for IMPLEMENTATION_<wbr/>DEFINED and YUV_<wbr/>420_<wbr/>888 stay the same.<wbr/>
This new minimum required output stream configurations are illustrated by the table below:</p>
<table>
<thead>
<tr>
<th style="text-align: center;">Format</th>
<th style="text-align: center;">Size</th>
<th style="text-align: center;">Hardware Level</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;"><a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">1920x1080 (1080p)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;">if 1080p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;">YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;"><a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;">1920x1080 (1080p)</td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;">if 1080p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;">YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;">1280x720 (720)</td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;">if 720p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;">YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;">640x480 (480p)</td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;">if 480p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;">YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;">320x240 (240p)</td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;">if 240p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;">YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;">all output sizes available for FULL hardware level,<wbr/> up to the maximum video size</td>
<td style="text-align: center;">LIMITED</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">IMPLEMENTATION_<wbr/>DEFINED</td>
<td style="text-align: center;">same as YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;"></td>
</tr>
</tbody>
</table>
<p>For applications targeting SDK version 31 or newer,<wbr/> if the mobile device doesn't declare
to be media performance class 12 or better by setting
<a href="https://developer.android.com/reference/android/os/Build.VERSION.html#MEDIA_PERFORMANCE_CLASS">VERSION#MEDIA_<wbr/>PERFORMANCE_<wbr/>CLASS</a> to be 31 or larger,<wbr/>
or if the camera device isn't a primary rear/<wbr/>front camera,<wbr/> the minimum required output
stream configurations are the same as for applications targeting SDK version older than
31.<wbr/></p>
<p>Refer to <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> for additional
mandatory stream configurations on a per-capability basis.<wbr/></p>
<p>Exception on 176x144 (QCIF) resolution: camera devices usually have a fixed capability for
downscaling from larger resolution to smaller,<wbr/> and the QCIF resolution sometimes is not
fully supported due to this limitation on devices with high-resolution image sensors.<wbr/>
Therefore,<wbr/> trying to configure a QCIF resolution stream together with any other
stream larger than 1920x1080 resolution (either width or height) might not be supported,<wbr/>
and capture session creation will fail if it is not.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>It is recommended (but not mandatory) to also include half/<wbr/>quarter
of sensor maximum resolution for JPEG formats (regardless of hardware
level).<wbr/></p>
<p>(The following is a rewording of the above required table):</p>
<p>For JPEG format,<wbr/> the sizes may be restricted by below conditions:</p>
<ul>
<li>The HAL may choose the aspect ratio of each Jpeg size to be one of well known ones
(e.<wbr/>g.<wbr/> 4:3,<wbr/> 16:9,<wbr/> 3:2 etc.<wbr/>).<wbr/> If the sensor maximum resolution
(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/>
it does not have to be included in the supported JPEG sizes.<wbr/></li>
<li>Some hardware JPEG encoders may have pixel boundary alignment requirements,<wbr/> such as
the dimensions being a multiple of 16.<wbr/></li>
</ul>
<p>Therefore,<wbr/> the maximum JPEG size may be smaller than sensor maximum resolution.<wbr/>
However,<wbr/> the largest JPEG size must be as close as possible to the sensor maximum
resolution given above constraints.<wbr/> It is required that after aspect ratio adjustments,<wbr/>
additional size reduction due to other issues must be less than 3% in area.<wbr/> For example,<wbr/>
if the sensor maximum resolution is 3280x2464,<wbr/> if the maximum JPEG size has aspect
ratio 4:3,<wbr/> the JPEG encoder alignment requirement is 16,<wbr/> the maximum JPEG size will be
3264x2448.<wbr/></p>
<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/>
the HAL must include all YUV_<wbr/>420_<wbr/>888 sizes that have JPEG sizes listed
here as output streams.<wbr/></p>
<p>It must also include each below resolution if it is smaller than or
equal to the sensor maximum resolution (for both YUV_<wbr/>420_<wbr/>888 and JPEG
formats),<wbr/> as output streams:</p>
<ul>
<li>240p (320 x 240)</li>
<li>480p (640 x 480)</li>
<li>720p (1280 x 720)</li>
<li>1080p (1920 x 1080)</li>
</ul>
<p>Note that for primary cameras (first rear/<wbr/>front facing camera in the camera ID list)
on a device with <a href="https://developer.android.com/reference/android/os/Build.VERSION.html#MEDIA_PERFORMANCE_CLASS">VERSION#MEDIA_<wbr/>PERFORMANCE_<wbr/>CLASS</a> set to
31 or larger,<wbr/> camera framework filters out JPEG sizes smaller than 1080p depending on
applications' targetSdkLevel.<wbr/> The camera HAL must still support the smaller JPEG sizes
to maintain backward compatibility.<wbr/></p>
<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/>
the HAL only has to list up to the maximum video size
supported by the device.<wbr/></p>
<p>Regardless of hardware level,<wbr/> every output resolution available for
YUV_<wbr/>420_<wbr/>888 must also be available for IMPLEMENTATION_<wbr/>DEFINED.<wbr/></p>
<p>This supersedes the following fields,<wbr/> which are now deprecated:</p>
<ul>
<li>availableFormats</li>
<li>available[Processed,<wbr/>Raw,<wbr/>Jpeg]Sizes</li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableMinFrameDurations">
<td class="entry_name
" rowspan="3">
android.<wbr/>scaler.<wbr/>available<wbr/>Min<wbr/>Frame<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the minimum frame duration for each
format/<wbr/>size combination.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This should correspond to the frame duration when only that
stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
set to either OFF or FAST.<wbr/></p>
<p>When multiple streams are used in a request,<wbr/> the minimum frame
duration will be max(individual stream min durations).<wbr/></p>
<p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> and
<a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for more details about
calculating the max frame rate.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableStallDurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the maximum stall duration for each
output format/<wbr/>size combination.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A stall duration is how much extra time would get added
to the normal minimum frame duration for a repeating request
that has streams with non-zero stall.<wbr/></p>
<p>For example,<wbr/> consider JPEG captures which have the following
characteristics:</p>
<ul>
<li>JPEG streams act like processed YUV streams in requests for which
they are not included; in requests in which they are directly
referenced,<wbr/> they act as JPEG streams.<wbr/> This is because supporting a
JPEG stream requires the underlying YUV data to always be ready for
use by a JPEG encoder,<wbr/> but the encoder will only be used (and impact
frame duration) on requests that actually reference a JPEG stream.<wbr/></li>
<li>The JPEG processor can run concurrently to the rest of the camera
pipeline,<wbr/> but cannot process more than 1 capture at a time.<wbr/></li>
</ul>
<p>In other words,<wbr/> using a repeating YUV request would result
in a steady frame rate (let's say it's 30 FPS).<wbr/> If a single
JPEG request is submitted periodically,<wbr/> the frame rate will stay
at 30 FPS (as long as we wait for the previous JPEG to return each
time).<wbr/> If we try to submit a repeating YUV + JPEG request,<wbr/> then
the frame rate will drop from 30 FPS.<wbr/></p>
<p>In general,<wbr/> submitting a new request with a non-0 stall time
stream will <em>not</em> cause a frame rate drop unless there are still
outstanding buffers for that stream from previous requests.<wbr/></p>
<p>Submitting a repeating request with streams (call this <code>S</code>)
is the same as setting the minimum frame duration from
the normal minimum frame duration corresponding to <code>S</code>,<wbr/> added with
the maximum stall duration for <code>S</code>.<wbr/></p>
<p>If interleaving requests with and without a stall duration,<wbr/>
a request will stall by the maximum of the remaining times
for each can-stall stream with outstanding buffers.<wbr/></p>
<p>This means that a stalling request will not have an exposure start
until the stall has completed.<wbr/></p>
<p>This should correspond to the stall duration when only that stream is
active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode) set to FAST
or OFF.<wbr/> Setting any of the processing modes to HIGH_<wbr/>QUALITY
effectively results in an indeterminate stall duration for all
streams in a request (the regular stall calculation rules are
ignored).<wbr/></p>
<p>The following formats may always have a stall duration:</p>
<ul>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></li>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">ImageFormat#RAW_<wbr/>SENSOR</a></li>
</ul>
<p>The following formats will never have a stall duration:</p>
<ul>
<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>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW10">ImageFormat#RAW10</a></li>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW12">ImageFormat#RAW12</a></li>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#Y8">ImageFormat#Y8</a></li>
</ul>
<p>All other formats may or may not have an allowed stall duration on
a per-capability basis; refer to <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>
for more details.<wbr/></p>
<p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> for more information about
calculating the max frame rate (absent stalls).<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If possible,<wbr/> it is recommended that all non-JPEG formats
(such as RAW16) should not have a stall duration.<wbr/> RAW10,<wbr/> RAW12,<wbr/> RAW_<wbr/>OPAQUE
and IMPLEMENTATION_<wbr/>DEFINED must not have stall durations.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.streamConfigurationMap">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public as streamConfigurationMap]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available stream configurations that this
camera device supports; also includes the minimum frame durations
and the stall durations for each format/<wbr/>size combination.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>All camera devices will support sensor maximum resolution (defined by
<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>
<p>For a given use case,<wbr/> the actual maximum supported resolution
may be lower than what is listed here,<wbr/> depending on the destination
Surface for the image data.<wbr/> For example,<wbr/> for recording video,<wbr/>
the video encoder chosen may have a maximum size limit (e.<wbr/>g.<wbr/> 1080p)
smaller than what the camera (e.<wbr/>g.<wbr/> maximum resolution is 3264x2448)
can provide.<wbr/></p>
<p>Please reference the documentation for the image data destination to
check if it limits the maximum size for image data.<wbr/></p>
<p>For applications targeting SDK version older than 31,<wbr/> the following table
describes the minimum required output stream configurations based on the
hardware level (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a>):</p>
<table>
<thead>
<tr>
<th style="text-align: center;">Format</th>
<th style="text-align: center;">Size</th>
<th style="text-align: center;">Hardware Level</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
<td style="text-align: center;"><a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> (*1)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
<td style="text-align: center;">1920x1080 (1080p)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;">if 1080p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
<td style="text-align: center;">1280x720 (720p)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;">if 720p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
<td style="text-align: center;">640x480 (480p)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;">if 480p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-align: center;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
<td style="text-align: center;">320x240 (240p)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;">if 240p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-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>
<td style="text-align: center;">all output sizes available for JPEG</td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-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>
<td style="text-align: center;">all output sizes available for JPEG,<wbr/> up to the maximum video size</td>
<td style="text-align: center;">LIMITED</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a></td>
<td style="text-align: center;">same as YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;"></td>
</tr>
</tbody>
</table>
<p>For applications targeting SDK version 31 or newer,<wbr/> if the mobile device declares to be
media performance class 12 or higher by setting
<a href="https://developer.android.com/reference/android/os/Build.VERSION.html#MEDIA_PERFORMANCE_CLASS">VERSION#MEDIA_<wbr/>PERFORMANCE_<wbr/>CLASS</a> to be 31 or larger,<wbr/>
the primary camera devices (first rear/<wbr/>front camera in the camera ID list) will not
support JPEG sizes smaller than 1080p.<wbr/> If the application configures a JPEG stream
smaller than 1080p,<wbr/> the camera device will round up the JPEG image size to at least
1080p.<wbr/> The requirements for IMPLEMENTATION_<wbr/>DEFINED and YUV_<wbr/>420_<wbr/>888 stay the same.<wbr/>
This new minimum required output stream configurations are illustrated by the table below:</p>
<table>
<thead>
<tr>
<th style="text-align: center;">Format</th>
<th style="text-align: center;">Size</th>
<th style="text-align: center;">Hardware Level</th>
<th style="text-align: center;">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
<td style="text-align: center;"><a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> (*1)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">ImageFormat#JPEG</a></td>
<td style="text-align: center;">1920x1080 (1080p)</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;">if 1080p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-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>
<td style="text-align: center;"><a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a></td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-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>
<td style="text-align: center;">1920x1080 (1080p)</td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;">if 1080p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-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>
<td style="text-align: center;">1280x720 (720)</td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;">if 720p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-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>
<td style="text-align: center;">640x480 (480p)</td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;">if 480p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-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>
<td style="text-align: center;">320x240 (240p)</td>
<td style="text-align: center;">FULL</td>
<td style="text-align: center;">if 240p &lt;= activeArraySize</td>
</tr>
<tr>
<td style="text-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>
<td style="text-align: center;">all output sizes available for FULL hardware level,<wbr/> up to the maximum video size</td>
<td style="text-align: center;">LIMITED</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;"><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a></td>
<td style="text-align: center;">same as YUV_<wbr/>420_<wbr/>888</td>
<td style="text-align: center;">Any</td>
<td style="text-align: center;"></td>
</tr>
</tbody>
</table>
<p>For applications targeting SDK version 31 or newer,<wbr/> if the mobile device doesn't declare
to be media performance class 12 or better by setting
<a href="https://developer.android.com/reference/android/os/Build.VERSION.html#MEDIA_PERFORMANCE_CLASS">VERSION#MEDIA_<wbr/>PERFORMANCE_<wbr/>CLASS</a> to be 31 or larger,<wbr/>
or if the camera device isn't a primary rear/<wbr/>front camera,<wbr/> the minimum required output
stream configurations are the same as for applications targeting SDK version older than
31.<wbr/></p>
<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#legacy-level-guaranteed-configurations">the table</a>
for additional mandatory stream configurations on a per-capability basis.<wbr/></p>
<p>*1: For JPEG format,<wbr/> the sizes may be restricted by below conditions:</p>
<ul>
<li>The HAL may choose the aspect ratio of each Jpeg size to be one of well known ones
(e.<wbr/>g.<wbr/> 4:3,<wbr/> 16:9,<wbr/> 3:2 etc.<wbr/>).<wbr/> If the sensor maximum resolution
(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/>
it does not have to be included in the supported JPEG sizes.<wbr/></li>
<li>Some hardware JPEG encoders may have pixel boundary alignment requirements,<wbr/> such as
the dimensions being a multiple of 16.<wbr/>
Therefore,<wbr/> the maximum JPEG size may be smaller than sensor maximum resolution.<wbr/>
However,<wbr/> the largest JPEG size will be as close as possible to the sensor maximum
resolution given above constraints.<wbr/> It is required that after aspect ratio adjustments,<wbr/>
additional size reduction due to other issues must be less than 3% in area.<wbr/> For example,<wbr/>
if the sensor maximum resolution is 3280x2464,<wbr/> if the maximum JPEG size has aspect
ratio 4:3,<wbr/> and the JPEG encoder alignment requirement is 16,<wbr/> the maximum JPEG size will be
3264x2448.<wbr/></li>
</ul>
<p>Exception on 176x144 (QCIF) resolution: camera devices usually have a fixed capability on
downscaling from larger resolution to smaller ones,<wbr/> and the QCIF resolution can sometimes
not be fully supported due to this limitation on devices with high-resolution image
sensors.<wbr/> Therefore,<wbr/> trying to configure a QCIF resolution stream together with any other
stream larger than 1920x1080 resolution (either width or height) might not be supported,<wbr/>
and capture session creation will fail if it is not.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly
(it is synthetic and will not be available at the HAL layer);
set the <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> instead.<wbr/></p>
<p>Not all output formats may be supported in a configuration with
an input stream of a particular format.<wbr/> For more details,<wbr/> see
<a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a>.<wbr/></p>
<p>It is recommended (but not mandatory) to also include half/<wbr/>quarter
of sensor maximum resolution for JPEG formats (regardless of hardware
level).<wbr/></p>
<p>(The following is a rewording of the above required table):</p>
<p>The HAL must include 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>
<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/>
the HAL must include all YUV_<wbr/>420_<wbr/>888 sizes that have JPEG sizes listed
here as output streams.<wbr/></p>
<p>It must also include each below resolution if it is smaller than or
equal to the sensor maximum resolution (for both YUV_<wbr/>420_<wbr/>888 and JPEG
formats),<wbr/> as output streams:</p>
<ul>
<li>240p (320 x 240)</li>
<li>480p (640 x 480)</li>
<li>720p (1280 x 720)</li>
<li>1080p (1920 x 1080)</li>
</ul>
<p>Note that for Performance Class 12 or higher primary cameras (first rear/<wbr/>front facing
camera in the camera ID list),<wbr/> camera framework filters out JPEG sizes smaller than
1080p depending on applications' targetSdkLevel.<wbr/> The camera HAL must still support the
smaller JPEG sizes to maintain backward compatibility.<wbr/></p>
<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/>
the HAL only has to list up to the maximum video size
supported by the device.<wbr/></p>
<p>Regardless of hardware level,<wbr/> every output resolution available for
YUV_<wbr/>420_<wbr/>888 must also be available for IMPLEMENTATION_<wbr/>DEFINED.<wbr/></p>
<p>This supersedes the following fields,<wbr/> which are now deprecated:</p>
<ul>
<li>availableFormats</li>
<li>available[Processed,<wbr/>Raw,<wbr/>Jpeg]Sizes</li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.croppingType">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>cropping<wbr/>Type
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">CENTER_ONLY (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device only supports centered crop regions.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FREEFORM (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device supports arbitrarily chosen crop regions.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The crop type that this camera device supports.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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
device that only supports CENTER_<wbr/>ONLY cropping,<wbr/> the camera device will move the
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>)
and keep the crop region width and height unchanged.<wbr/> The camera device will return the
final used crop region in metadata result <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></p>
<p>Camera devices that support FREEFORM cropping will support any crop region that
is inside of the active array.<wbr/> The camera device will apply the same crop region and
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>
<p>Starting from API level 30,<wbr/></p>
<ul>
<li>If the camera device supports FREEFORM cropping,<wbr/> in order to do FREEFORM cropping,<wbr/> the
application must set <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> to 1.<wbr/>0,<wbr/> and use <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>
for zoom.<wbr/></li>
<li>To do CENTER_<wbr/>ONLY zoom,<wbr/> the application has below 2 options:<ol>
<li>Set <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> to 1.<wbr/>0; adjust zoom by <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>.<wbr/></li>
<li>Adjust zoom by <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>; use <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to crop
the field of view vertically (letterboxing) or horizontally (pillarboxing),<wbr/> but not
windowboxing.<wbr/></li>
</ol>
</li>
<li>Setting <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> to values different than 1.<wbr/>0 and
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to be windowboxing at the same time are not supported.<wbr/> In this
case,<wbr/> the camera framework will override the <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> to be the active
array.<wbr/></li>
</ul>
<p>LEGACY capability devices will only support CENTER_<wbr/>ONLY cropping.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If the HAL supports <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> this tag must be set to CENTER_<wbr/>ONLY.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableRecommendedStreamConfigurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Recommended<wbr/>Stream<wbr/>Configurations
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 5
</span>
<span class="entry_type_visibility"> [ndk_public as recommendedStreamConfiguration]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">PREVIEW (v3.4)</span>
<span class="entry_type_enum_value">0x0</span>
<span class="entry_type_enum_notes"><p>Preview must only include non-stalling processed stream configurations with
output formats like
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888">Image<wbr/>Format#YUV_<wbr/>420_<wbr/>888</a>,<wbr/>
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a>,<wbr/> etc.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">RECORD (v3.4)</span>
<span class="entry_type_enum_value">0x1</span>
<span class="entry_type_enum_notes"><p>Video record must include stream configurations that match the advertised
supported media profiles <a href="https://developer.android.com/reference/android/media/CamcorderProfile.html">CamcorderProfile</a> with
IMPLEMENTATION_<wbr/>DEFINED format.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VIDEO_SNAPSHOT (v3.4)</span>
<span class="entry_type_enum_value">0x2</span>
<span class="entry_type_enum_notes"><p>Video snapshot must include stream configurations at least as big as
the maximum RECORD resolutions and only with
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">JPEG output format</a>.<wbr/>
Additionally the configurations shouldn't cause preview glitches and also be able to
run at 30 fps.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SNAPSHOT (v3.4)</span>
<span class="entry_type_enum_value">0x3</span>
<span class="entry_type_enum_notes"><p>Recommended snapshot stream configurations must include at least one with
size close to <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> and
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">JPEG output format</a>.<wbr/>
Taking into account restrictions on aspect ratio,<wbr/> alignment etc.<wbr/> the area of the
maximum suggested size shouldn’t be less than 97% of the sensor array size area.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ZSL (v3.4)</span>
<span class="entry_type_enum_value">0x4</span>
<span class="entry_type_enum_notes"><p>If supported,<wbr/> recommended input stream configurations must only be advertised with
ZSL along with other processed and/<wbr/>or stalling output formats.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">RAW (v3.4)</span>
<span class="entry_type_enum_value">0x5</span>
<span class="entry_type_enum_notes"><p>If supported,<wbr/> recommended raw stream configurations must only include RAW based
output formats.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">LOW_LATENCY_SNAPSHOT (v3.4)</span>
<span class="entry_type_enum_value">0x6</span>
<span class="entry_type_enum_notes"><p>If supported,<wbr/> the recommended low latency stream configurations must have
end-to-end latency that does not exceed 200 ms.<wbr/> under standard operating conditions
(reasonable light levels,<wbr/> not loaded system) and using template
TEMPLATE_<wbr/>STILL_<wbr/>CAPTURE.<wbr/> This is primarily for listing configurations for the
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG">JPEG output format</a>
however other supported output formats can be added as well.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PUBLIC_END (v3.4)</span>
<span class="entry_type_enum_value">0x7</span>
</li>
<li>
<span class="entry_type_enum_name">10BIT_OUTPUT (v3.8)</span>
<span class="entry_type_enum_value">0x8</span>
<span class="entry_type_enum_notes"><p>If supported,<wbr/> the recommended 10-bit output stream configurations must include
a subset of the advertised <a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#YCBCR_P010">ImageFormat#YCBCR_<wbr/>P010</a> and
<a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#PRIVATE">ImageFormat#PRIVATE</a> outputs that are optimized for power
and performance when registered along with a supported 10-bit dynamic range profile.<wbr/>
see android.<wbr/>hardware.<wbr/>camera2.<wbr/>params.<wbr/>Output<wbr/>Configuration#set<wbr/>Dynamic<wbr/>Range<wbr/>Profile for
details.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PUBLIC_END_3_8 (v3.8)</span>
<span class="entry_type_enum_value">0x9</span>
</li>
<li>
<span class="entry_type_enum_name">VENDOR_START (v3.4)</span>
<span class="entry_type_enum_value">0x18</span>
<span class="entry_type_enum_notes"><p>Vendor defined use cases.<wbr/> These depend on the vendor implementation.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Recommended stream configurations for common client use cases.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Optional subset of the <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> that contains
similar tuples listed as
(i.<wbr/>e.<wbr/> width,<wbr/> height,<wbr/> format,<wbr/> output/<wbr/>input stream,<wbr/> usecase bit field).<wbr/>
Camera devices will be able to suggest particular stream configurations which are
power and performance efficient for specific use cases.<wbr/> For more information about
retrieving the suggestions see
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getRecommendedStreamConfigurationMap">CameraCharacteristics#getRecommendedStreamConfigurationMap</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>There are some requirements that need to be considered regarding the usecases and the
suggested configurations:</p>
<ul>
<li>If <a href="#static_android.scaler.availableRecommendedStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Recommended<wbr/>Stream<wbr/>Configurations</a> is set,<wbr/> then recommended
stream configurations must be present for all mandatory usecases PREVIEW,<wbr/>
SNAPSHOT,<wbr/> RECORD,<wbr/> VIDEO_<wbr/>SNAPSHOT.<wbr/> ZSL and RAW are
required depending on device capabilities see <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></li>
<li>Non-existing usecases and non-vendor usecases within the range
(RAW : VENDOR_<wbr/>START] are prohibited as well as stream configurations not
present in the exhaustive <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> list.<wbr/></li>
</ul>
<p>For example,<wbr/> in case the camera device supports only 4K and 1080p and both resolutions are
recommended for the mandatory usecases except preview which can run efficiently only
on 1080p.<wbr/> The array may look like this:</p>
<p>[3840,<wbr/> 2160,<wbr/> HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>IMPLEMENTATION_<wbr/>DEFINED,<wbr/>
ANDROID_<wbr/>SCALER_<wbr/>AVAILABLE_<wbr/>STREAM_<wbr/>CONFIGURATIONS_<wbr/>OUTPUT,<wbr/>
(1&lt;&lt; ANDROID_<wbr/>SCALER_<wbr/>AVAILABLE_<wbr/>RECOMMENDED_<wbr/>STREAM_<wbr/>CONFIGURATIONS_<wbr/>RECORD |<wbr/>
1&lt;&lt; ANDROID_<wbr/>SCALER_<wbr/>AVAILABLE_<wbr/>RECOMMENDED_<wbr/>STREAM_<wbr/>CONFIGURATIONS_<wbr/>SNAPSHOT |<wbr/>
1&lt;&lt; ANDROID_<wbr/>SCALER_<wbr/>AVAILABLE_<wbr/>RECOMMENDED_<wbr/>STREAM_<wbr/>CONFIGURATIONS_<wbr/>VIDEO_<wbr/>SNAPSHOT),<wbr/></p>
<p>1920,<wbr/> 1080,<wbr/> HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>IMPLEMENTATION_<wbr/>DEFINED,<wbr/>
ANDROID_<wbr/>SCALER_<wbr/>AVAILABLE_<wbr/>STREAM_<wbr/>CONFIGURATIONS_<wbr/>OUTPUT,<wbr/>
(1&lt;&lt; ANDROID_<wbr/>SCALER_<wbr/>AVAILABLE_<wbr/>RECOMMENDED_<wbr/>STREAM_<wbr/>CONFIGURATIONS_<wbr/>PREVIEW |<wbr/>
1&lt;&lt; ANDROID_<wbr/>SCALER_<wbr/>AVAILABLE_<wbr/>RECOMMENDED_<wbr/>STREAM_<wbr/>CONFIGURATIONS_<wbr/>RECORD |<wbr/>
1&lt;&lt; ANDROID_<wbr/>SCALER_<wbr/>AVAILABLE_<wbr/>RECOMMENDED_<wbr/>STREAM_<wbr/>CONFIGURATIONS_<wbr/>SNAPSHOT |<wbr/>
1&lt;&lt; ANDROID_<wbr/>SCALER_<wbr/>AVAILABLE_<wbr/>RECOMMENDED_<wbr/>STREAM_<wbr/>CONFIGURATIONS_<wbr/>VIDEO_<wbr/>SNAPSHOT)]</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableRecommendedInputOutputFormatsMap">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Recommended<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [ndk_public as reprocessFormatsMap]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Recommended mappings of image formats that are supported by this
camera device for input streams,<wbr/> to their corresponding output formats.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is a recommended subset of the complete list of mappings found in
<a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a>.<wbr/> The same requirements apply here as well.<wbr/>
The list however doesn't need to contain all available and supported mappings.<wbr/> Instead of
this developers must list only recommended and efficient entries.<wbr/>
If set,<wbr/> the information will be available in the ZERO_<wbr/>SHUTTER_<wbr/>LAG recommended stream
configuration see
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getRecommendedStreamConfigurationMap">CameraCharacteristics#getRecommendedStreamConfigurationMap</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For a code sample of the required data encoding please check
<a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.mandatoryStreamCombinations">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>mandatory<wbr/>Stream<wbr/>Combinations
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [java_public as mandatoryStreamCombination]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of mandatory stream combinations generated according to the camera device
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#INFO_SUPPORTED_HARDWARE_LEVEL">Camera<wbr/>Characteristics#INFO_<wbr/>SUPPORTED_<wbr/>HARDWARE_<wbr/>LEVEL</a>
and <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES</a>.<wbr/>
This is an app-readable conversion of the mandatory stream combination
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#legacy-level-guaranteed-configurations">tables</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array of
<a href="https://developer.android.com/reference/android/hardware/camera2/params/MandatoryStreamCombination.html">combinations</a> is
generated according to the documented
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#legacy-level-guaranteed-configurations">guideline</a>.<wbr/>
based on specific device level and capabilities.<wbr/>
Clients can use the array as a quick reference to find an appropriate camera stream
combination.<wbr/>
As per documentation,<wbr/> the stream combinations with given PREVIEW,<wbr/> RECORD and
MAXIMUM resolutions and anything smaller from the list given by
<a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputSizes">StreamConfigurationMap#getOutputSizes</a> are
guaranteed to work.<wbr/>
For a physical camera not independently exposed in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#getCameraIdList">CameraManager#getCameraIdList</a>,<wbr/> the mandatory stream
combinations for that physical camera Id are also generated,<wbr/> so that the application can
configure them as physical streams via the logical camera.<wbr/>
The mandatory stream combination array will be {@code null} in case the device is not
backward compatible.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly
(it is synthetic and will not be available at the HAL layer).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.mandatoryConcurrentStreamCombinations">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>mandatory<wbr/>Concurrent<wbr/>Stream<wbr/>Combinations
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [java_public as mandatoryStreamCombination]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of mandatory concurrent stream combinations.<wbr/>
This is an app-readable conversion of the concurrent mandatory stream combination
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#concurrent-stream-guaranteed-configurations">tables</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array of
<a href="https://developer.android.com/reference/android/hardware/camera2/params/MandatoryStreamCombination.html">combinations</a> is
generated according to the documented
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#concurrent-stream-guaranteed-configurations">guideline</a>
for each device which has its Id present in the set returned by
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#getConcurrentCameraIds">CameraManager#getConcurrentCameraIds</a>.<wbr/>
Clients can use the array as a quick reference to find an appropriate camera stream
combination.<wbr/>
The mandatory stream combination array will be {@code null} in case the device is not a
part of at least one set of combinations returned by
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#getConcurrentCameraIds">CameraManager#getConcurrentCameraIds</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly
(it is synthetic and will not be available at the HAL layer).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableRotateAndCropModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>scaler.<wbr/>available<wbr/>Rotate<wbr/>And<wbr/>Crop<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of rotate-and-crop modes for <a href="#controls_android.scaler.rotateAndCrop">android.<wbr/>scaler.<wbr/>rotate<wbr/>And<wbr/>Crop</a> that are supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.scaler.rotateAndCrop">android.<wbr/>scaler.<wbr/>rotate<wbr/>And<wbr/>Crop</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>5</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry lists the valid modes for <a href="#controls_android.scaler.rotateAndCrop">android.<wbr/>scaler.<wbr/>rotate<wbr/>And<wbr/>Crop</a> for this camera device.<wbr/></p>
<p>Starting with API level 30,<wbr/> all devices will list at least <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>NONE</code>.<wbr/>
Devices with support for rotate-and-crop will additionally list at least
<code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>AUTO</code> and <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>90</code>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.defaultSecureImageSize">
<td class="entry_name
" rowspan="3">
android.<wbr/>scaler.<wbr/>default<wbr/>Secure<wbr/>Image<wbr/>Size
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as size]</span>
<div class="entry_type_notes">width/<wbr/>height for the default secure image data size</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Default YUV/<wbr/>PRIVATE size to use for requesting secure image buffers.<wbr/></p>
</td>
<td class="entry_units">
Pixels
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry lists the default size supported in the secure camera mode.<wbr/> This entry is
optional on devices support the SECURE_<wbr/>IMAGE_<wbr/>DATA capability.<wbr/> This entry will be null
if the camera device does not list SECURE_<wbr/>IMAGE_<wbr/>DATA capability.<wbr/></p>
<p>When the key is present,<wbr/> only a PRIVATE/<wbr/>YUV output of the specified size is guaranteed
to be supported by the camera HAL in the secure camera mode.<wbr/> Any other format or
resolutions might not be supported.<wbr/> Use
<a href="https://developer.android.com/reference/CameraManager.html#isSessionConfigurationWithParametersSupported">CameraManager#isSessionConfigurationWithParametersSupported</a>
API to query if a secure session configuration is supported if the device supports this
API.<wbr/></p>
<p>If this key returns null on a device with SECURE_<wbr/>IMAGE_<wbr/>DATA capability,<wbr/> the application
can assume all output sizes listed in the
<a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html">StreamConfigurationMap</a>
are supported.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.physicalCameraMultiResolutionStreamConfigurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>physical<wbr/>Camera<wbr/>Multi<wbr/>Resolution<wbr/>Stream<wbr/>Configurations
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OUTPUT (v3.6)</span>
</li>
<li>
<span class="entry_type_enum_name">INPUT (v3.6)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available multi-resolution stream configurations that this
physical camera device supports
(i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This list contains a subset of the parent logical camera's multi-resolution stream
configurations which belong to this physical camera,<wbr/> and it will advertise and will only
advertise the maximum supported resolutions for a particular format.<wbr/></p>
<p>If this camera device isn't a physical camera device constituting a logical camera,<wbr/>
but a standalone <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
camera,<wbr/> this field represents the multi-resolution input/<wbr/>output stream configurations of
default mode and max resolution modes.<wbr/> The sizes will be the maximum resolution of a
particular format for default mode and max resolution mode.<wbr/></p>
<p>This field will only be advertised if the device is a physical camera of a
logical multi-camera device or an ultra high resolution sensor camera.<wbr/> For a logical
multi-camera,<wbr/> the camera API will derive the logical camera’s multi-resolution stream
configurations from all physical cameras.<wbr/> For an ultra high resolution sensor camera,<wbr/> this
is used directly as the camera’s multi-resolution stream configurations.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If this field contains input stream configurations,<wbr/> and the camera device is a physical
camera (not a standalone ultra-high resolution camera),<wbr/> the
<a href="#dynamic_android.logicalMultiCamera.activePhysicalId">android.<wbr/>logical<wbr/>Multi<wbr/>Camera.<wbr/>active<wbr/>Physical<wbr/>Id</a> tag must be set to the physical camera Id in
the physical camera result metadata.<wbr/> This is to make sure during multi-resolution
reprocessing,<wbr/> the camera HAL is notified of which physical camera the reprocessing
request comes from.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.multiResolutionStreamConfigurationMap">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>multi<wbr/>Resolution<wbr/>Stream<wbr/>Configuration<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public as multiResolutionStreamConfigurationMap]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The multi-resolution stream configurations supported by this logical camera
or ultra high resolution sensor camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Multi-resolution streams can be used by a LOGICAL_<wbr/>MULTI_<wbr/>CAMERA or an
ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR camera where the images sent or received can vary in
resolution per frame.<wbr/> This is useful in cases where the camera device's effective full
resolution changes depending on factors such as the current zoom level,<wbr/> lighting
condition,<wbr/> focus distance,<wbr/> or pixel mode.<wbr/></p>
<ul>
<li>For a logical multi-camera implementing optical zoom,<wbr/> at different zoom level,<wbr/> a
different physical camera may be active,<wbr/> resulting in different full-resolution image
sizes.<wbr/></li>
<li>For an ultra high resolution camera,<wbr/> depending on whether the camera operates in default
mode,<wbr/> or maximum resolution mode,<wbr/> the output full-size images may be of either binned
resolution or maximum resolution.<wbr/></li>
</ul>
<p>To use multi-resolution output streams,<wbr/> the supported formats can be queried by <a href="https://developer.android.com/reference/android/hardware/camera2/params/MultiResolutionStreamConfigurationMap.html#getOutputFormats">MultiResolutionStreamConfigurationMap#getOutputFormats</a>.<wbr/>
A <a href="https://developer.android.com/reference/android/hardware/camera2/MultiResolutionImageReader.html">MultiResolutionImageReader</a> can then be created for a
supported format with the MultiResolutionStreamInfo group queried by <a href="https://developer.android.com/reference/android/hardware/camera2/params/MultiResolutionStreamConfigurationMap.html#getOutputInfo">MultiResolutionStreamConfigurationMap#getOutputInfo</a>.<wbr/></p>
<p>If a camera device supports multi-resolution output streams for a particular format,<wbr/> for
each of its mandatory stream combinations,<wbr/> the camera device will support using a
MultiResolutionImageReader for the MAXIMUM stream of supported formats.<wbr/> Refer to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#legacy-level-additional-guaranteed-combinations-with-multiresolutionoutputs">the table</a>
for additional details.<wbr/></p>
<p>To use multi-resolution input streams,<wbr/> the supported formats can be queried by <a href="https://developer.android.com/reference/android/hardware/camera2/params/MultiResolutionStreamConfigurationMap.html#getInputFormats">MultiResolutionStreamConfigurationMap#getInputFormats</a>.<wbr/>
A reprocessable CameraCaptureSession can then be created using an <a href="https://developer.android.com/reference/android/hardware/camera2/params/InputConfiguration.html">InputConfiguration</a> constructed with
the input MultiResolutionStreamInfo group,<wbr/> queried by <a href="https://developer.android.com/reference/android/hardware/camera2/params/MultiResolutionStreamConfigurationMap.html#getInputInfo">MultiResolutionStreamConfigurationMap#getInputInfo</a>.<wbr/></p>
<p>If a camera device supports multi-resolution {@code YUV} input and multi-resolution
{@code YUV} output,<wbr/> or multi-resolution {@code PRIVATE} input and multi-resolution
{@code PRIVATE} output,<wbr/> {@code JPEG} and {@code YUV} are guaranteed to be supported
multi-resolution output stream formats.<wbr/> Refer to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#legacy-level-additional-guaranteed-combinations-with-multiresolutionoutputs">the table</a>
for details about the additional mandatory stream combinations in this case.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly
(it is synthetic and will not be available at the HAL layer).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableStreamConfigurationsMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OUTPUT (v3.6)</span>
</li>
<li>
<span class="entry_type_enum_name">INPUT (v3.6)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available stream configurations that this
camera device supports (i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream) for a
CaptureRequest with <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a>,<wbr/> for configurations
which are applicable when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
<p>Not all output formats may be supported in a configuration with
an input stream of a particular format.<wbr/> For more details,<wbr/> see
<a href="#static_android.scaler.availableInputOutputFormatsMapMaximumResolution">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map<wbr/>Maximum<wbr/>Resolution</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to hal_<wbr/>details for <a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableMinFrameDurationsMaximumResolution">
<td class="entry_name
" rowspan="3">
android.<wbr/>scaler.<wbr/>available<wbr/>Min<wbr/>Frame<wbr/>Durations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the minimum frame duration for each
format/<wbr/>size combination when the camera device is sent a CaptureRequest with
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.scaler.availableMinFrameDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Min<wbr/>Frame<wbr/>Durations</a>,<wbr/> for configurations
which are applicable when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
<p>When multiple streams are used in a request (if supported,<wbr/> when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a>
is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>),<wbr/> the
minimum frame duration will be max(individual stream min durations).<wbr/></p>
<p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> and
<a href="#static_android.scaler.availableStallDurationsMaximumResolution">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations<wbr/>Maximum<wbr/>Resolution</a> for more details about
calculating the max frame rate.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableStallDurationsMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the maximum stall duration for each
output format/<wbr/>size combination when CaptureRequests are submitted with
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.scaler.availableMinFrameDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Min<wbr/>Frame<wbr/>Durations</a>,<wbr/> for configurations
which are applicable when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If possible,<wbr/> it is recommended that all non-JPEG formats
(such as RAW16) should not have a stall duration.<wbr/> RAW10,<wbr/> RAW12,<wbr/> RAW_<wbr/>OPAQUE
and IMPLEMENTATION_<wbr/>DEFINED must not have stall durations.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.streamConfigurationMapMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public as streamConfigurationMap]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available stream configurations that this
camera device supports when given a CaptureRequest with <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a>
set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>;
also includes the minimum frame durations
and the stall durations for each format/<wbr/>size combination.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> for CaptureRequests where
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly
(it is synthetic and will not be available at the HAL layer);
set the <a href="#static_android.scaler.availableStreamConfigurationsMaximumResolution">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations<wbr/>Maximum<wbr/>Resolution</a> instead.<wbr/></p>
<p>Not all output formats may be supported in a configuration with
an input stream of a particular format.<wbr/> For more details,<wbr/> see
<a href="#static_android.scaler.availableInputOutputFormatsMapMaximumResolution">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map<wbr/>Maximum<wbr/>Resolution</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableInputOutputFormatsMapMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [hidden as reprocessFormatsMap]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The mapping of image formats that are supported by this
camera device for input streams,<wbr/> to their corresponding output formats,<wbr/> when
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a> for CaptureRequests where
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to hal details for <a href="#static_android.scaler.availableInputOutputFormatsMapMaximumResolution">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map<wbr/>Maximum<wbr/>Resolution</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.mandatoryMaximumResolutionStreamCombinations">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>mandatory<wbr/>Maximum<wbr/>Resolution<wbr/>Stream<wbr/>Combinations
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [java_public as mandatoryStreamCombination]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of mandatory stream combinations which are applicable when
<a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.html">CaptureRequest</a> has <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> set
to <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/>
This is an app-readable conversion of the maximum resolution mandatory stream combination
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#additional-guaranteed-combinations-for-ultra-high-resolution-sensors">tables</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array of
<a href="https://developer.android.com/reference/android/hardware/camera2/params/MandatoryStreamCombination.html">combinations</a> is
generated according to the documented
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#additional-guaranteed-combinations-for-ultra-high-resolution-sensors">guideline</a>
for each device which has the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability.<wbr/>
Clients can use the array as a quick reference to find an appropriate camera stream
combination.<wbr/>
The mandatory stream combination array will be {@code null} in case the device is not an
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
device.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly
(it is synthetic and will not be available at the HAL layer).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.mandatoryTenBitOutputStreamCombinations">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>mandatory<wbr/>Ten<wbr/>Bit<wbr/>Output<wbr/>Stream<wbr/>Combinations
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [java_public as mandatoryStreamCombination]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of mandatory stream combinations which are applicable when device support the
10-bit output capability
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>TEN_<wbr/>BIT</a>
This is an app-readable conversion of the 10 bit output mandatory stream combination
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#10-bit-output-additional-guaranteed-configurations">tables</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array of
<a href="https://developer.android.com/reference/android/hardware/camera2/params/MandatoryStreamCombination.html">combinations</a> is
generated according to the documented
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#10-bit-output-additional-guaranteed-configurations">guideline</a>
for each device which has the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>TEN_<wbr/>BIT</a>
capability.<wbr/>
Clients can use the array as a quick reference to find an appropriate camera stream
combination.<wbr/>
The mandatory stream combination array will be {@code null} in case the device is not an
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>DYNAMIC_<wbr/>RANGE_<wbr/>TEN_<wbr/>BIT</a>
device.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly
(it is synthetic and will not be available at the HAL layer).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.mandatoryPreviewStabilizationOutputStreamCombinations">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>mandatory<wbr/>Preview<wbr/>Stabilization<wbr/>Output<wbr/>Stream<wbr/>Combinations
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [java_public as mandatoryStreamCombination]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of mandatory stream combinations which are applicable when device lists
{@code PREVIEW_<wbr/>STABILIZATION} in <a href="#static_android.control.availableVideoStabilizationModes">android.<wbr/>control.<wbr/>available<wbr/>Video<wbr/>Stabilization<wbr/>Modes</a>.<wbr/>
This is an app-readable conversion of the preview stabilization mandatory stream
combination
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#preview-stabilization-guaranteed-stream-configurations">tables</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array of
<a href="https://developer.android.com/reference/android/hardware/camera2/params/MandatoryStreamCombination.html">combinations</a> is
generated according to the documented
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#preview-stabilization-guaranteed-stream-configurations">guideline</a>
for each device which supports {@code PREVIEW_<wbr/>STABILIZATION}
Clients can use the array as a quick reference to find an appropriate camera stream
combination.<wbr/>
The mandatory stream combination array will be {@code null} in case the device does not
list {@code PREVIEW_<wbr/>STABILIZATION} in <a href="#static_android.control.availableVideoStabilizationModes">android.<wbr/>control.<wbr/>available<wbr/>Video<wbr/>Stabilization<wbr/>Modes</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly
(it is synthetic and will not be available at the HAL layer).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.multiResolutionStreamSupported">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>multi<wbr/>Resolution<wbr/>Stream<wbr/>Supported
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [ndk_public as boolean]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.6)</span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.6)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether the camera device supports multi-resolution input or output streams</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A logical multi-camera or an ultra high resolution camera may support multi-resolution
input or output streams.<wbr/> With multi-resolution output streams,<wbr/> the camera device is able
to output different resolution images depending on the current active physical camera or
pixel mode.<wbr/> With multi-resolution input streams,<wbr/> the camera device can reprocess images
of different resolutions from different physical cameras or sensor pixel modes.<wbr/></p>
<p>When set to TRUE:</p>
<ul>
<li>For a logical multi-camera,<wbr/> the camera framework derives
<a href="#static_android.scaler.multiResolutionStreamConfigurationMap">android.<wbr/>scaler.<wbr/>multi<wbr/>Resolution<wbr/>Stream<wbr/>Configuration<wbr/>Map</a> by combining the
<a href="#static_android.scaler.physicalCameraMultiResolutionStreamConfigurations">android.<wbr/>scaler.<wbr/>physical<wbr/>Camera<wbr/>Multi<wbr/>Resolution<wbr/>Stream<wbr/>Configurations</a> from its physical
cameras.<wbr/></li>
<li>For an ultra-high resolution sensor camera,<wbr/> the camera framework directly copies
the value of <a href="#static_android.scaler.physicalCameraMultiResolutionStreamConfigurations">android.<wbr/>scaler.<wbr/>physical<wbr/>Camera<wbr/>Multi<wbr/>Resolution<wbr/>Stream<wbr/>Configurations</a> to
<a href="#static_android.scaler.multiResolutionStreamConfigurationMap">android.<wbr/>scaler.<wbr/>multi<wbr/>Resolution<wbr/>Stream<wbr/>Configuration<wbr/>Map</a>.<wbr/></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For the HAL to claim support for multi-resolution streams:</p>
<ul>
<li>The HAL must support the buffer management API by setting
supportedBufferManagementVersion to HIDL_<wbr/>DEVICE_<wbr/>3_<wbr/>5.<wbr/></li>
<li>For a logical multi-camera,<wbr/> when combined from all its physical cameras,<wbr/> there must be
at a minimum one input or output stream format with at least two different
physicalCameraMultiResolutionStreamConfigurations entries for that format.<wbr/></li>
<li>For an ultra high resolution sensor camera,<wbr/> for each supported multi-resolution format,<wbr/>
the physicalCameraMultiResolutionStreamConfigurations must contain both the largest stream
configuration within the <a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a> and the largest stream
configuration within the <a href="#static_android.scaler.streamConfigurationMapMaximumResolution">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map<wbr/>Maximum<wbr/>Resolution</a>.<wbr/></li>
<li>If the HAL advertises multi-resolution input stream support for a particular format
(namely PRIVATE,<wbr/> or YUV),<wbr/> the logical multi-camera or ultra high resolution sensor camera
must have the corresponding reprocessing capabilities (PRIVATE_<wbr/>REPROCESSING,<wbr/>
or YUV_<wbr/>REPROCESSING respectively).<wbr/> The camera HAL must support reprocessing the
multi-resolution input stream to the output formats specified in the camera's
<a href="#static_android.scaler.availableInputOutputFormatsMap">android.<wbr/>scaler.<wbr/>available<wbr/>Input<wbr/>Output<wbr/>Formats<wbr/>Map</a>.<wbr/></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.availableStreamUseCases">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Use<wbr/>Cases
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">DEFAULT (v3.8)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_value">0x0</span>
<span class="entry_type_enum_notes"><p>Default stream use case.<wbr/></p>
<p>This use case is the same as when the application doesn't set any use case for
the stream.<wbr/> The camera device uses the properties of the output target,<wbr/> such as
format,<wbr/> dataSpace,<wbr/> or surface class type,<wbr/> to optimize the image processing pipeline.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PREVIEW (v3.8)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_value">0x1</span>
<span class="entry_type_enum_notes"><p>Live stream shown to the user.<wbr/></p>
<p>Optimized for performance and usability as a viewfinder,<wbr/> but not necessarily for
image quality.<wbr/> The output is not meant to be persisted as saved images or video.<wbr/></p>
<p>No stall if android.<wbr/>control.<wbr/>* are set to FAST.<wbr/> There may be stall if
they are set to HIGH_<wbr/>QUALITY.<wbr/> This use case has the same behavior as the
default SurfaceView and SurfaceTexture targets.<wbr/> Additionally,<wbr/> this use case can be
used for in-app image analysis.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">STILL_CAPTURE (v3.8)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_value">0x2</span>
<span class="entry_type_enum_notes"><p>Still photo capture.<wbr/></p>
<p>Optimized for high-quality high-resolution capture,<wbr/> and not expected to maintain
preview-like frame rates.<wbr/></p>
<p>The stream may have stalls regardless of whether android.<wbr/>control.<wbr/>* is HIGH_<wbr/>QUALITY.<wbr/>
This use case has the same behavior as the default JPEG and RAW related formats.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VIDEO_RECORD (v3.8)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_value">0x3</span>
<span class="entry_type_enum_notes"><p>Recording video clips.<wbr/></p>
<p>Optimized for high-quality video capture,<wbr/> including high-quality image stabilization
if supported by the device and enabled by the application.<wbr/> As a result,<wbr/> may produce
output frames with a substantial lag from real time,<wbr/> to allow for highest-quality
stabilization or other processing.<wbr/> As such,<wbr/> such an output is not suitable for drawing
to screen directly,<wbr/> and is expected to be persisted to disk or similar for later
playback or processing.<wbr/> Only streams that set the VIDEO_<wbr/>RECORD use case are guaranteed
to have video stabilization applied when the video stabilization control is set
to ON,<wbr/> as opposed to PREVIEW_<wbr/>STABILIZATION.<wbr/></p>
<p>This use case has the same behavior as the default MediaRecorder and MediaCodec
targets.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PREVIEW_VIDEO_STILL (v3.8)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_value">0x4</span>
<span class="entry_type_enum_notes"><p>One single stream used for combined purposes of preview,<wbr/> video,<wbr/> and still capture.<wbr/></p>
<p>For such multi-purpose streams,<wbr/> the camera device aims to make the best tradeoff
between the individual use cases.<wbr/> For example,<wbr/> the STILL_<wbr/>CAPTURE use case by itself
may have stalls for achieving best image quality.<wbr/> But if combined with PREVIEW and
VIDEO_<wbr/>RECORD,<wbr/> the camera device needs to trade off the additional image processing
for speed so that preview and video recording aren't slowed down.<wbr/></p>
<p>Similarly,<wbr/> VIDEO_<wbr/>RECORD may produce frames with a substantial lag,<wbr/> but
PREVIEW_<wbr/>VIDEO_<wbr/>STILL must have minimal output delay.<wbr/> This means that to enable video
stabilization with this use case,<wbr/> the device must support and the app must select the
PREVIEW_<wbr/>STABILIZATION mode for video stabilization.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VIDEO_CALL (v3.8)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_value">0x5</span>
<span class="entry_type_enum_notes"><p>Long-running video call optimized for both power efficiency and video quality.<wbr/></p>
<p>The camera sensor may run in a lower-resolution mode to reduce power consumption
at the cost of some image and digital zoom quality.<wbr/> Unlike VIDEO_<wbr/>RECORD,<wbr/> VIDEO_<wbr/>CALL
outputs are expected to work in dark conditions,<wbr/> so are usually accompanied with
variable frame rate settings to allow sufficient exposure time in low light.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CROPPED_RAW (v3.9)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_value">0x6</span>
<span class="entry_type_enum_notes"><p>Cropped RAW stream when the client chooses to crop the field of view.<wbr/></p>
<p>Certain types of image sensors can run in binned modes in order to improve signal to
noise ratio while capturing frames.<wbr/> However,<wbr/> at certain zoom levels and /<wbr/> or when
other scene conditions are deemed fit,<wbr/> the camera sub-system may choose to un-bin and
remosaic the sensor's output.<wbr/> This results in a RAW frame which is cropped in field
of view and yet has the same number of pixels as full field of view RAW,<wbr/> thereby
improving image detail.<wbr/></p>
<p>The resultant field of view of the RAW stream will be greater than or equal to
croppable non-RAW streams.<wbr/> The effective crop region for this RAW stream will be
reflected in the CaptureResult key <a href="#dynamic_android.scaler.rawCropRegion">android.<wbr/>scaler.<wbr/>raw<wbr/>Crop<wbr/>Region</a>.<wbr/></p>
<p>If this stream use case is set on a non-RAW stream,<wbr/> i.<wbr/>e.<wbr/> not one of :</p>
<ul>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR">RAW_<wbr/>SENSOR</a></li>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW10">RAW10</a></li>
<li><a href="https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW12">RAW12</a></li>
</ul>
<p>session configuration is not guaranteed to succeed.<wbr/></p>
<p>This stream use case may not be supported on some devices.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">VENDOR_START (v3.8)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_hidden">[hidden]</span>
<span class="entry_type_enum_value">0x10000</span>
<span class="entry_type_enum_notes"><p>Vendor defined use cases.<wbr/> These depend on the vendor implementation.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The stream use cases supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>8</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The stream use case indicates the purpose of a particular camera stream from
the end-user perspective.<wbr/> Some examples of camera use cases are: preview stream for
live viewfinder shown to the user,<wbr/> still capture for generating high quality photo
capture,<wbr/> video record for encoding the camera output for the purpose of future playback,<wbr/>
and video call for live realtime video conferencing.<wbr/></p>
<p>With this flag,<wbr/> the camera device can optimize the image processing pipeline
parameters,<wbr/> such as tuning,<wbr/> sensor mode,<wbr/> and ISP settings,<wbr/> independent of
the properties of the immediate camera output surface.<wbr/> For example,<wbr/> if the output
surface is a SurfaceTexture,<wbr/> the stream use case flag can be used to indicate whether
the camera frames eventually go to display,<wbr/> video encoder,<wbr/>
still image capture,<wbr/> or all of them combined.<wbr/></p>
<p>The application sets the use case of a camera stream by calling
<a href="https://developer.android.com/reference/android/hardware/camera2/params/OutputConfiguration.html#setStreamUseCase">OutputConfiguration#setStreamUseCase</a>.<wbr/></p>
<p>A camera device with
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>STREAM_<wbr/>USE_<wbr/>CASE</a>
capability must support the following stream use cases:</p>
<ul>
<li>DEFAULT</li>
<li>PREVIEW</li>
<li>STILL_<wbr/>CAPTURE</li>
<li>VIDEO_<wbr/>RECORD</li>
<li>PREVIEW_<wbr/>VIDEO_<wbr/>STILL</li>
<li>VIDEO_<wbr/>CALL</li>
</ul>
<p>The guaranteed stream combinations related to stream use case for a camera device with
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>STREAM_<wbr/>USE_<wbr/>CASE</a>
capability is documented in the camera device
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#stream-use-case-capability-additional-guaranteed-configurations">guideline</a>.<wbr/>
The application is strongly recommended to use one of the guaranteed stream combinations.<wbr/>
If the application creates a session with a stream combination not in the guaranteed
list,<wbr/> or with mixed DEFAULT and non-DEFAULT use cases within the same session,<wbr/>
the camera device may ignore some stream use cases due to hardware constraints
and implementation details.<wbr/></p>
<p>For stream combinations not covered by the stream use case mandatory lists,<wbr/> such as
reprocessable session,<wbr/> constrained high speed session,<wbr/> or RAW stream combinations,<wbr/> the
application should leave stream use cases within the session as DEFAULT.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The camera HAL must support DEFAULT stream use case to handle scenarios where the
application doesn't explicitly set a stream's use case flag,<wbr/> in which case the camera
framework sets it to DEFAULT.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.scaler.mandatoryUseCaseStreamCombinations">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>mandatory<wbr/>Use<wbr/>Case<wbr/>Stream<wbr/>Combinations
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [java_public as mandatoryStreamCombination]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of mandatory stream combinations with stream use cases.<wbr/>
This is an app-readable conversion of the mandatory stream combination
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#stream-use-case-capability-additional-guaranteed-configurations">tables</a>
with each stream's use case being set.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array of
<a href="https://developer.android.com/reference/android/hardware/camera2/params/MandatoryStreamCombination.html">combinations</a> is
generated according to the documented
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#stream-use-case-capability-additional-guaranteed-configurations">guildeline</a>
for a camera device with
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>STREAM_<wbr/>USE_<wbr/>CASE</a>
capability.<wbr/>
The mandatory stream combination array will be {@code null} in case the device doesn't
have <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE">Camera<wbr/>Characteristics#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>STREAM_<wbr/>USE_<wbr/>CASE</a>
capability.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly
(it is synthetic and will not be available at the HAL layer).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.scaler.cropRegion">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>crop<wbr/>Region
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public as rectangle]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The desired region of the sensor to read out for this capture.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates relative to
android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size or
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size depending on distortion correction
capability and mode
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control can be used to implement digital zoom.<wbr/></p>
<p>For devices not supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system always follows that of <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 top-left pixel of the active array.<wbr/></p>
<p>For devices supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate system
depends on the mode being set.<wbr/> When the distortion correction mode is OFF,<wbr/> the
coordinate system follows <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> with <code>(0,<wbr/>
0)</code> being the top-left pixel of the pre-correction active array.<wbr/> When the distortion
correction mode is not OFF,<wbr/> the coordinate system follows
<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 top-left pixel of the
active array.<wbr/></p>
<p>Output streams use this rectangle to produce their output,<wbr/> cropping to a smaller region
if necessary to maintain the stream's aspect ratio,<wbr/> then scaling the sensor input to
match the output's configured resolution.<wbr/></p>
<p>The crop region is usually applied after the RAW to other color space (e.<wbr/>g.<wbr/> YUV)
conversion.<wbr/> As a result RAW streams are not croppable unless supported by the
camera device.<wbr/> See <a href="#static_android.scaler.availableStreamUseCases">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Use<wbr/>Cases</a>#CROPPED_<wbr/>RAW for details.<wbr/></p>
<p>For non-raw streams,<wbr/> any additional per-stream cropping will be done to maximize the
final pixel area of the stream.<wbr/></p>
<p>For example,<wbr/> if the crop region is set to a 4:3 aspect ratio,<wbr/> then 4:3 streams will use
the exact crop region.<wbr/> 16:9 streams will further crop vertically (letterbox).<wbr/></p>
<p>Conversely,<wbr/> if the crop region is set to a 16:9,<wbr/> then 4:3 outputs will crop horizontally
(pillarbox),<wbr/> and 16:9 streams will match exactly.<wbr/> These additional crops will be
centered within the crop region.<wbr/></p>
<p>To illustrate,<wbr/> here are several scenarios of different crop regions and output streams,<wbr/>
for a hypothetical camera device with an active array of size <code>(2000,<wbr/>1500)</code>.<wbr/> Note that
several of these examples use non-centered crop regions for ease of illustration; such
regions are only supported on devices with FREEFORM capability
(<a href="#static_android.scaler.croppingType">android.<wbr/>scaler.<wbr/>cropping<wbr/>Type</a> <code>== FREEFORM</code>),<wbr/> but this does not affect the way the crop
rules work otherwise.<wbr/></p>
<ul>
<li>Camera Configuration:<ul>
<li>Active array size: <code>2000x1500</code> (3 MP,<wbr/> 4:3 aspect ratio)</li>
<li>Output stream #1: <code>640x480</code> (VGA,<wbr/> 4:3 aspect ratio)</li>
<li>Output stream #2: <code>1280x720</code> (720p,<wbr/> 16:9 aspect ratio)</li>
</ul>
</li>
<li>Case #1: 4:3 crop region with 2x digital zoom<ul>
<li>Crop region: <code>Rect(500,<wbr/> 375,<wbr/> 1500,<wbr/> 1125) //<wbr/> (left,<wbr/> top,<wbr/> right,<wbr/> bottom)</code></li>
<li><img alt="4:3 aspect ratio crop diagram" src="images/camera2/metadata/android.scaler.cropRegion/crop-region-43-ratio.png"/></li>
<li><code>640x480</code> stream source area: <code>(500,<wbr/> 375,<wbr/> 1500,<wbr/> 1125)</code> (equal to crop region)</li>
<li><code>1280x720</code> stream source area: <code>(500,<wbr/> 469,<wbr/> 1500,<wbr/> 1031)</code> (letterboxed)</li>
</ul>
</li>
<li>Case #2: 16:9 crop region with ~1.<wbr/>5x digital zoom.<wbr/><ul>
<li>Crop region: <code>Rect(500,<wbr/> 375,<wbr/> 1833,<wbr/> 1125)</code></li>
<li><img alt="16:9 aspect ratio crop diagram" src="images/camera2/metadata/android.scaler.cropRegion/crop-region-169-ratio.png"/></li>
<li><code>640x480</code> stream source area: <code>(666,<wbr/> 375,<wbr/> 1666,<wbr/> 1125)</code> (pillarboxed)</li>
<li><code>1280x720</code> stream source area: <code>(500,<wbr/> 375,<wbr/> 1833,<wbr/> 1125)</code> (equal to crop region)</li>
</ul>
</li>
<li>Case #3: 1:1 crop region with ~2.<wbr/>6x digital zoom.<wbr/><ul>
<li>Crop region: <code>Rect(500,<wbr/> 375,<wbr/> 1250,<wbr/> 1125)</code></li>
<li><img alt="1:1 aspect ratio crop diagram" src="images/camera2/metadata/android.scaler.cropRegion/crop-region-11-ratio.png"/></li>
<li><code>640x480</code> stream source area: <code>(500,<wbr/> 469,<wbr/> 1250,<wbr/> 1031)</code> (letterboxed)</li>
<li><code>1280x720</code> stream source area: <code>(500,<wbr/> 543,<wbr/> 1250,<wbr/> 957)</code> (letterboxed)</li>
</ul>
</li>
<li>Case #4: Replace <code>640x480</code> stream with <code>1024x1024</code> stream,<wbr/> with 4:3 crop region:<ul>
<li>Crop region: <code>Rect(500,<wbr/> 375,<wbr/> 1500,<wbr/> 1125)</code></li>
<li><img alt="Square output, 4:3 aspect ratio crop diagram" src="images/camera2/metadata/android.scaler.cropRegion/crop-region-43-square-ratio.png"/></li>
<li><code>1024x1024</code> stream source area: <code>(625,<wbr/> 375,<wbr/> 1375,<wbr/> 1125)</code> (pillarboxed)</li>
<li><code>1280x720</code> stream source area: <code>(500,<wbr/> 469,<wbr/> 1500,<wbr/> 1031)</code> (letterboxed)</li>
<li>Note that in this case,<wbr/> neither of the two outputs is a subset of the other,<wbr/> with
each containing image data the other doesn't have.<wbr/></li>
</ul>
</li>
</ul>
<p>If the coordinate system is <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> the width and height
of the crop region cannot be set to be smaller than
<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
<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>
<p>If the coordinate system is <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> the width
and height of the crop region cannot be set to be smaller than
<code>floor( preCorrectionActiveArraySize.<wbr/>width /<wbr/> <a href="#static_android.scaler.availableMaxDigitalZoom">android.<wbr/>scaler.<wbr/>available<wbr/>Max<wbr/>Digital<wbr/>Zoom</a> )</code>
and
<code>floor( preCorrectionActiveArraySize.<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>
<p>The camera device may adjust the crop region to account for rounding and other hardware
requirements; the final crop region used will be included in the output capture result.<wbr/></p>
<p>The camera sensor output aspect ratio depends on factors such as output stream
combination and <a href="#controls_android.control.aeTargetFpsRange">android.<wbr/>control.<wbr/>ae<wbr/>Target<wbr/>Fps<wbr/>Range</a>,<wbr/> and shouldn't be adjusted by using
this control.<wbr/> And the camera device will treat different camera sensor output sizes
(potentially with in-sensor crop) as the same crop of
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/> As a result,<wbr/> the application shouldn't assume the
maximum crop region always maps to the same aspect ratio or field of view for the
sensor output.<wbr/></p>
<p>Starting from API level 30,<wbr/> it's strongly recommended to use <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>
to take advantage of better support for zoom with logical multi-camera.<wbr/> The benefits
include better precision with optical-digital zoom combination,<wbr/> and ability to do
zoom-out from 1.<wbr/>0x.<wbr/> When using <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for zoom,<wbr/> the crop region in
the capture request should be left as the default activeArray size.<wbr/> The
coordinate system is post-zoom,<wbr/> meaning that the activeArraySize or
preCorrectionActiveArraySize covers the camera device's field of view "after" zoom.<wbr/> See
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for details.<wbr/></p>
<p>For camera devices with the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a></p>
<p><a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> /<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> must be used as the
coordinate system for requests where <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The output streams must maintain square pixels at all
times,<wbr/> no matter what the relative aspect ratios of the
crop region and the stream are.<wbr/> Negative values for
corner are allowed for raw output if full pixel array is
larger than active pixel array.<wbr/> Width and height may be
rounded to nearest larger supportable width,<wbr/> especially
for raw output,<wbr/> where only a few fixed scales may be
possible.<wbr/></p>
<p>If <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> is supported by the HAL,<wbr/> the HAL must report the zoom
ratio via <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> and change the coordinate system such that
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a> or <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>(depending on whether <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> is supported) is used to
represent the camera field-of-view after zoom.<wbr/> see <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for
details.<wbr/></p>
<p>HAL2.<wbr/>x uses only (x,<wbr/> y,<wbr/> width)</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.scaler.rotateAndCrop">
<td class="entry_name
" rowspan="5">
android.<wbr/>scaler.<wbr/>rotate<wbr/>And<wbr/>Crop
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">NONE (v3.5)</span>
<span class="entry_type_enum_notes"><p>No rotate and crop is applied.<wbr/> Processed outputs are in the sensor orientation.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">90 (v3.5)</span>
<span class="entry_type_enum_notes"><p>Processed images are rotated by 90 degrees clockwise,<wbr/> and then cropped
to the original aspect ratio.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">180 (v3.5)</span>
<span class="entry_type_enum_notes"><p>Processed images are rotated by 180 degrees.<wbr/> Since the aspect ratio does not
change,<wbr/> no cropping is performed.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">270 (v3.5)</span>
<span class="entry_type_enum_notes"><p>Processed images are rotated by 270 degrees clockwise,<wbr/> and then cropped
to the original aspect ratio.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">AUTO (v3.5)</span>
<span class="entry_type_enum_notes"><p>The camera API automatically selects the best concrete value for
rotate-and-crop based on the application's support for resizability and the current
multi-window mode.<wbr/></p>
<p>If the application does not support resizing but the display mode for its main
Activity is not in a typical orientation,<wbr/> the camera API will set <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>90</code>
or some other supported rotation value,<wbr/> depending on device configuration,<wbr/>
to ensure preview and captured images are correctly shown to the user.<wbr/> Otherwise,<wbr/>
<code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>NONE</code> will be selected.<wbr/></p>
<p>When a value other than NONE is selected,<wbr/> several metadata fields will also be parsed
differently to ensure that coordinates are correctly handled for features like drawing
face detection boxes or passing in tap-to-focus coordinates.<wbr/> The camera API will
convert positions in the active array coordinate system to/<wbr/>from the cropped-and-rotated
coordinate system to make the operation transparent for applications.<wbr/></p>
<p>No coordinate mapping will be done when the application selects a non-AUTO mode.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether a rotation-and-crop operation is applied to processed
outputs from the camera.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.scaler.availableRotateAndCropModes">android.<wbr/>scaler.<wbr/>available<wbr/>Rotate<wbr/>And<wbr/>Crop<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>5</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control is primarily intended to help camera applications with no support for
multi-window modes to work correctly on devices where multi-window scenarios are
unavoidable,<wbr/> such as foldables or other devices with variable display geometry or more
free-form window placement (such as laptops,<wbr/> which often place portrait-orientation apps
in landscape with pillarboxing).<wbr/></p>
<p>If supported,<wbr/> the default value is <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>AUTO</code>,<wbr/> which allows the camera API
to enable backwards-compatibility support for applications that do not support resizing
/<wbr/> multi-window modes,<wbr/> when the device is in fact in a multi-window mode (such as inset
portrait on laptops,<wbr/> or on a foldable device in some fold states).<wbr/> In addition,<wbr/>
<code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>NONE</code> and <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>90</code> will always be available if this control
is supported by the device.<wbr/> If not supported,<wbr/> devices API level 30 or higher will always
list only <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>NONE</code>.<wbr/></p>
<p>When <code>CROP_<wbr/>AUTO</code> is in use,<wbr/> and the camera API activates backward-compatibility mode,<wbr/>
several metadata fields will also be parsed differently to ensure that coordinates are
correctly handled for features like drawing face detection boxes or passing in
tap-to-focus coordinates.<wbr/> The camera API will convert positions in the active array
coordinate system to/<wbr/>from the cropped-and-rotated coordinate system to make the
operation transparent for applications.<wbr/> The following controls are affected:</p>
<ul>
<li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
<li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
<li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
<li><a href="#dynamic_android.statistics.faces">android.<wbr/>statistics.<wbr/>faces</a></li>
</ul>
<p>Capture results will contain the actual value selected by the API;
<code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>AUTO</code> will never be seen in a capture result.<wbr/></p>
<p>Applications can also select their preferred cropping mode,<wbr/> either to opt out of the
backwards-compatibility treatment,<wbr/> or to use the cropping feature themselves as needed.<wbr/>
In this case,<wbr/> no coordinate translation will be done automatically,<wbr/> and all controls
will continue to use the normal active array coordinates.<wbr/></p>
<p>Cropping and rotating is done after the application of digital zoom (via either
<a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> or <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>),<wbr/> but before each individual
output is further cropped and scaled.<wbr/> It only affects processed outputs such as
YUV,<wbr/> PRIVATE,<wbr/> and JPEG.<wbr/> It has no effect on RAW outputs.<wbr/></p>
<p>When <code>CROP_<wbr/>90</code> or <code>CROP_<wbr/>270</code> are selected,<wbr/> there is a significant loss to the field of
view.<wbr/> For example,<wbr/> with a 4:3 aspect ratio output of 1600x1200,<wbr/> <code>CROP_<wbr/>90</code> will still
produce 1600x1200 output,<wbr/> but these buffers are cropped from a vertical 3:4 slice at the
center of the 4:3 area,<wbr/> then rotated to be 4:3,<wbr/> and then upscaled to 1600x1200.<wbr/> Only
56.<wbr/>25% of the original FOV is still visible.<wbr/> In general,<wbr/> for an aspect ratio of <code>w:h</code>,<wbr/>
the crop and rotate operation leaves <code>(h/<wbr/>w)^2</code> of the field of view visible.<wbr/> For 16:9,<wbr/>
this is ~31.<wbr/>6%.<wbr/></p>
<p>As a visual example,<wbr/> the figure below shows the effect of <code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>90</code> on the
outputs for the following parameters:</p>
<ul>
<li>Sensor active array: <code>2000x1500</code></li>
<li>Crop region: top-left: <code>(500,<wbr/> 375)</code>,<wbr/> size: <code>(1000,<wbr/> 750)</code> (4:3 aspect ratio)</li>
<li>Output streams: YUV <code>640x480</code> and YUV <code>1280x720</code></li>
<li><code>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>90</code></li>
</ul>
<p><img alt="Effect of ROTATE_AND_CROP_90" src="images/camera2/metadata/android.scaler.rotateAndCrop/crop-region-rotate-90-43-ratio.png"/></p>
<p>With these settings,<wbr/> the regions of the active array covered by the output streams are:</p>
<ul>
<li>640x480 stream crop: top-left: <code>(219,<wbr/> 375)</code>,<wbr/> size: <code>(562,<wbr/> 750)</code></li>
<li>1280x720 stream crop: top-left: <code>(289,<wbr/> 375)</code>,<wbr/> size: <code>(422,<wbr/> 750)</code></li>
</ul>
<p>Since the buffers are rotated,<wbr/> the buffers as seen by the application are:</p>
<ul>
<li>640x480 stream: top-left: <code>(781,<wbr/> 375)</code> on active array,<wbr/> size: <code>(640,<wbr/> 480)</code>,<wbr/> downscaled 1.<wbr/>17x from sensor pixels</li>
<li>1280x720 stream: top-left: <code>(711,<wbr/> 375)</code> on active array,<wbr/> size: <code>(1280,<wbr/> 720)</code>,<wbr/> upscaled 1.<wbr/>71x from sensor pixels</li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>AUTO will never be sent to the HAL,<wbr/> though it must be set as the default
value in all the capture request templates by the HAL.<wbr/> The camera service will
translate AUTO to a specific rotation value based on the current application's
multi-window state and its support of resizability.<wbr/></p>
<p>The HAL also does not need to consider coordinate transforms for ROTATE_<wbr/>AND_<wbr/>CROP - all
capture request and result fields should be kept in the active array coordinate frame.<wbr/>
Any translation required to implement ROTATE_<wbr/>AND_<wbr/>CROP_<wbr/>AUTO will be handled by the camera
service.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.scaler.rawCropRegion">
<td class="entry_name
" rowspan="3">
android.<wbr/>scaler.<wbr/>raw<wbr/>Crop<wbr/>Region
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public as rectangle]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The region of the sensor that corresponds to the RAW read out for this
capture when the stream use case of a RAW stream is set to CROPPED_<wbr/>RAW.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates relative to
android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size or
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size depending on distortion correction
capability and mode
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The coordinate system follows that of <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>
<p>This CaptureResult key will be set when the corresponding CaptureRequest has a RAW target
with stream use case set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SCALER_AVAILABLE_STREAM_USE_CASES_CROPPED_RAW">Camera<wbr/>Metadata#SCALER_<wbr/>AVAILABLE_<wbr/>STREAM_<wbr/>USE_<wbr/>CASES_<wbr/>CROPPED_<wbr/>RAW</a>,<wbr/>
otherwise it will be {@code null}.<wbr/>
The value of this key specifies the region of the sensor used for the RAW capture and can
be used to calculate the corresponding field of view of RAW streams.<wbr/>
This field of view will always be &gt;= field of view for (processed) non-RAW streams for the
capture.<wbr/> Note: The region specified may not necessarily be centered.<wbr/></p>
<p>For example: Assume a camera device has a pre correction active array size of
{@code {0,<wbr/> 0,<wbr/> 1500,<wbr/> 2000}}.<wbr/> If the RAW_<wbr/>CROP_<wbr/>REGION is {@code {500,<wbr/> 375,<wbr/> 1500,<wbr/> 1125}},<wbr/> that
corresponds to a centered crop of 1/<wbr/>4th of the full field of view RAW stream.<wbr/></p>
<p>The metadata keys which describe properties of RAW frames:</p>
<ul>
<li><a href="#dynamic_android.statistics.hotPixelMap">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map</a></li>
<li><a href="#dynamic_android.statistics.lensShadingCorrectionMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Correction<wbr/>Map</a></li>
<li><a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a></li>
<li><a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a></li>
<li><a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a></li>
<li><a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a></li>
<li><a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a></li>
</ul>
<p>should be interpreted in the effective after raw crop field-of-view coordinate system.<wbr/>
In this coordinate system,<wbr/>
{preCorrectionActiveArraySize.<wbr/>left,<wbr/> preCorrectionActiveArraySize.<wbr/>top} corresponds to the
the top left corner of the cropped RAW frame and
{preCorrectionActiveArraySize.<wbr/>right,<wbr/> preCorrectionActiveArraySize.<wbr/>bottom} corresponds to
the bottom right corner.<wbr/> Client applications must use the values of the keys
in the CaptureResult metadata if present.<wbr/></p>
<p>Crop regions (android.<wbr/>scaler.<wbr/>Crop<wbr/>Region),<wbr/> AE/<wbr/>AWB/<wbr/>AF regions and face coordinates still
use the <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> coordinate system as usual.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_sensor" class="section">sensor</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.sensor.exposureTime">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>exposure<wbr/>Time
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Duration each pixel is exposed to
light.<wbr/></p>
</td>
<td class="entry_units">
Nanoseconds
</td>
<td class="entry_range">
<p><a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If the sensor can't expose this exact duration,<wbr/> it will shorten the
duration exposed to the nearest possible value (rather than expose longer).<wbr/>
The final exposure time used will be available in the output capture result.<wbr/></p>
<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
OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.sensor.frameDuration">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>frame<wbr/>Duration
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Duration from start of frame readout to
start of next frame readout.<wbr/></p>
</td>
<td class="entry_units">
Nanoseconds
</td>
<td class="entry_range">
<p>See <a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a>,<wbr/> <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html">StreamConfigurationMap</a>.<wbr/>
The duration is capped to <code>max(duration,<wbr/> exposureTime + overhead)</code>.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The maximum frame rate that can be supported by a camera subsystem is
a function of many factors:</p>
<ul>
<li>Requested resolutions of output image streams</li>
<li>Availability of binning /<wbr/> skipping modes on the imager</li>
<li>The bandwidth of the imager interface</li>
<li>The bandwidth of the various ISP processing blocks</li>
</ul>
<p>Since these factors can vary greatly between different ISPs and
sensors,<wbr/> the camera abstraction tries to represent the bandwidth
restrictions with as simple a model as possible.<wbr/></p>
<p>The model presented has the following characteristics:</p>
<ul>
<li>The image sensor is always configured to output the smallest
resolution possible given the application's requested output stream
sizes.<wbr/> The smallest resolution is defined as being at least as large
as the largest requested output stream size; the camera pipeline must
never digitally upsample sensor data when the crop region covers the
whole sensor.<wbr/> In general,<wbr/> this means that if only small output stream
resolutions are configured,<wbr/> the sensor can provide a higher frame
rate.<wbr/></li>
<li>Since any request may use any or all the currently configured
output streams,<wbr/> the sensor and ISP must be configured to support
scaling a single capture to all the streams at the same time.<wbr/> This
means the camera pipeline must be ready to produce the largest
requested output size without any delay.<wbr/> Therefore,<wbr/> the overall
frame rate of a given configured stream set is governed only by the
largest requested stream resolution.<wbr/></li>
<li>Using more than one output stream in a request does not affect the
frame duration.<wbr/></li>
<li>Certain format-streams may need to do additional background processing
before data is consumed/<wbr/>produced by that stream.<wbr/> These processors
can run concurrently to the rest of the camera pipeline,<wbr/> but
cannot process more than 1 capture at a time.<wbr/></li>
</ul>
<p>The necessary information for the application,<wbr/> given the model above,<wbr/> is provided via
<a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>.<wbr/>
These are used to determine the maximum frame rate /<wbr/> minimum frame duration that is
possible for a given stream configuration.<wbr/></p>
<p>Specifically,<wbr/> the application can use the following rules to
determine the minimum frame duration it can request from the camera
device:</p>
<ol>
<li>Let the set of currently configured input/<wbr/>output streams be called <code>S</code>.<wbr/></li>
<li>Find the minimum frame durations for each stream in <code>S</code>,<wbr/> by looking it up in <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>
(with its respective size/<wbr/>format).<wbr/> Let this set of frame durations be called <code>F</code>.<wbr/></li>
<li>For any given request <code>R</code>,<wbr/> the minimum frame duration allowed for <code>R</code> is the maximum
out of all values in <code>F</code>.<wbr/> Let the streams used in <code>R</code> be called <code>S_<wbr/>r</code>.<wbr/></li>
</ol>
<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>
using its respective size/<wbr/>format),<wbr/> then the frame duration in <code>F</code> determines the steady
state frame rate that the application will get if it uses <code>R</code> as a repeating request.<wbr/> Let
this special kind of request be called <code>Rsimple</code>.<wbr/></p>
<p>A repeating request <code>Rsimple</code> can be <em>occasionally</em> interleaved by a single capture of a
new request <code>Rstall</code> (which has at least one in-use stream with a non-0 stall time) and if
<code>Rstall</code> has the same minimum frame duration this will not cause a frame rate loss if all
buffers from the previous <code>Rstall</code> have already been delivered.<wbr/></p>
<p>For more details about stalling,<wbr/> see <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a>.<wbr/></p>
<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
OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
<p><em>Note:</em> Prior to Android 13,<wbr/> this field was described as measuring the duration from
start of frame exposure to start of next frame exposure,<wbr/> which doesn't reflect the
definition from sensor manufacturer.<wbr/> A mobile sensor defines the frame duration as
intervals between sensor readouts.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For more details about stalling,<wbr/> see
<a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.sensor.sensitivity">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>sensitivity
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The amount of gain applied to sensor data
before processing.<wbr/></p>
</td>
<td class="entry_units">
ISO arithmetic units
</td>
<td class="entry_range">
<p><a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The sensitivity is the standard ISO sensitivity value,<wbr/>
as defined in ISO 12232:2006.<wbr/></p>
<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
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
is guaranteed to use only analog amplification for applying the gain.<wbr/></p>
<p>If the camera device cannot apply the exact sensitivity
requested,<wbr/> it will reduce the gain to the nearest supported
value.<wbr/> The final sensitivity used will be available in the
output capture result.<wbr/></p>
<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
OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
<p>Note that for devices supporting postRawSensitivityBoost,<wbr/> the total sensitivity applied
to the final processed image is the combination of <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> and
<a href="#controls_android.control.postRawSensitivityBoost">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost</a>.<wbr/> In case the application uses the sensor
sensitivity from last capture result of an auto request for a manual request,<wbr/> in order
to achieve the same brightness in the output image,<wbr/> the application should also
set postRawSensitivityBoost.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>ISO 12232:2006 REI method is acceptable.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.sensor.testPatternData">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A pixel <code>[R,<wbr/> G_<wbr/>even,<wbr/> G_<wbr/>odd,<wbr/> B]</code> that supplies the test pattern
when <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a> is SOLID_<wbr/>COLOR.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Each color channel is treated as an unsigned 32-bit integer.<wbr/>
The camera device then uses the most significant X bits
that correspond to how many bits are in its Bayer raw sensor
output.<wbr/></p>
<p>For example,<wbr/> a sensor with RAW10 Bayer output would use the
10 most significant bits from each color channel.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.sensor.testPatternMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No test pattern mode is used,<wbr/> and the camera
device returns captures from the image sensor.<wbr/></p>
<p>This is the default if the key is not set.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SOLID_COLOR (v3.2)</span>
<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
respective color channel provided in
<a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a>.<wbr/></p>
<p>For example:</p>
<pre><code><a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a> = [0,<wbr/> 0xFFFFFFFF,<wbr/> 0xFFFFFFFF,<wbr/> 0]
</code></pre>
<p>All green pixels are 100% green.<wbr/> All red/<wbr/>blue pixels are black.<wbr/></p>
<pre><code><a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a> = [0xFFFFFFFF,<wbr/> 0,<wbr/> 0xFFFFFFFF,<wbr/> 0]
</code></pre>
<p>All red pixels are 100% red.<wbr/> Only the odd green pixels
are 100% green.<wbr/> All blue pixels are 100% black.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">COLOR_BARS (v3.2)</span>
<span class="entry_type_enum_notes"><p>All pixel data is replaced with an 8-bar color pattern.<wbr/></p>
<p>The vertical bars (left-to-right) are as follows:</p>
<ul>
<li>100% white</li>
<li>yellow</li>
<li>cyan</li>
<li>green</li>
<li>magenta</li>
<li>red</li>
<li>blue</li>
<li>black</li>
</ul>
<p>In general the image would look like the following:</p>
<pre><code>W Y C G M R B K
W Y C G M R B K
W Y C G M R B K
W Y C G M R B K
W Y C G M R B K
.<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
.<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
.<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
(B = Blue,<wbr/> K = Black)
</code></pre>
<p>Each bar should take up 1/<wbr/>8 of the sensor pixel array width.<wbr/>
When this is not possible,<wbr/> the bar size should be rounded
down to the nearest integer and the pattern can repeat
on the right side.<wbr/></p>
<p>Each bar's height must always take up the full sensor
pixel array height.<wbr/></p>
<p>Each pixel in this test pattern must be set to either
0% intensity or 100% intensity.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">COLOR_BARS_FADE_TO_GRAY (v3.2)</span>
<span class="entry_type_enum_notes"><p>The test pattern is similar to COLOR_<wbr/>BARS,<wbr/> except that
each bar should start at its specified color at the top,<wbr/>
and fade to gray at the bottom.<wbr/></p>
<p>Furthermore each bar is further subdivided into a left and
right half.<wbr/> The left half should have a smooth gradient,<wbr/>
and the right half should have a quantized gradient.<wbr/></p>
<p>In particular,<wbr/> the right half's should consist of blocks of the
same color for 1/<wbr/>16th active sensor pixel array width.<wbr/></p>
<p>The least significant bits in the quantized gradient should
be copied from the most significant bits of the smooth gradient.<wbr/></p>
<p>The height of each bar should always be a multiple of 128.<wbr/>
When this is not the case,<wbr/> the pattern should repeat at the bottom
of the image.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PN9 (v3.2)</span>
<span class="entry_type_enum_notes"><p>All pixel data is replaced by a pseudo-random sequence
generated from a PN9 512-bit sequence (typically implemented
in hardware with a linear feedback shift register).<wbr/></p>
<p>The generator should be reset at the beginning of each frame,<wbr/>
and thus each subsequent raw frame with this test pattern should
be exactly the same as the last.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BLACK (v3.6)</span>
<span class="entry_type_enum_hidden">[test]</span>
<span class="entry_type_enum_notes"><p>All pixel data is replaced by 0% intensity (black) values.<wbr/></p>
<p>This test pattern is identical to SOLID_<wbr/>COLOR with a value of <code>[0,<wbr/> 0,<wbr/> 0,<wbr/> 0]</code> for
<a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a>.<wbr/> It is recommended that devices implement full
SOLID_<wbr/>COLOR support instead,<wbr/> but BLACK can be used to provide minimal support for a
test pattern suitable for privacy use cases.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CUSTOM1 (v3.2)</span>
<span class="entry_type_enum_value">256</span>
<span class="entry_type_enum_notes"><p>The first custom test pattern.<wbr/> All custom patterns that are
available only on this camera device are at least this numeric
value.<wbr/></p>
<p>All of the custom test patterns will be static
(that is the raw image must not vary from frame to frame).<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>When enabled,<wbr/> the sensor sends a test pattern instead of
doing a real exposure from the camera.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.sensor.availableTestPatternModes">android.<wbr/>sensor.<wbr/>available<wbr/>Test<wbr/>Pattern<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When a test pattern is enabled,<wbr/> all manual sensor controls specified
by android.<wbr/>sensor.<wbr/>* will be ignored.<wbr/> All other controls should
work as normal.<wbr/></p>
<p>For example,<wbr/> if manual flash is enabled,<wbr/> flash firing should still
occur (and that the test pattern remain unmodified,<wbr/> since the flash
would not actually affect it).<wbr/></p>
<p>Defaults to OFF.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>All test patterns are specified in the Bayer domain.<wbr/></p>
<p>The HAL may choose to substitute test patterns from the sensor
with test patterns from on-device memory.<wbr/> In that case,<wbr/> it should be
indistinguishable to the ISP whether the data came from the
sensor interconnect bus (such as CSI2) or memory.<wbr/></p>
<p>For privacy use cases,<wbr/> if the camera device:</p>
<ul>
<li>supports SOLID_<wbr/>COLOR or BLACK test patterns,<wbr/></li>
<li>is a logical multi-camera,<wbr/> and</li>
<li>lists testPatternMode as a physical request key,<wbr/></li>
</ul>
<p>Each physical camera must support the same SOLID_<wbr/>COLOR and/<wbr/>or BLACK test patterns
as the logical camera.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.sensor.pixelMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">DEFAULT (v3.6)</span>
<span class="entry_type_enum_notes"><p>This is the default sensor pixel mode.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MAXIMUM_RESOLUTION (v3.6)</span>
<span class="entry_type_enum_notes"><p>In this mode,<wbr/> sensors typically do not bin pixels,<wbr/> as a result can offer larger
image sizes.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Switches sensor pixel mode between maximum resolution mode and default mode.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This key controls whether the camera sensor operates in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>
mode or not.<wbr/> By default,<wbr/> all camera devices operate in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_DEFAULT">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>DEFAULT</a> mode.<wbr/>
When operating in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_DEFAULT">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>DEFAULT</a> mode,<wbr/> sensors
would typically perform pixel binning in order to improve low light
performance,<wbr/> noise reduction etc.<wbr/> However,<wbr/> in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>
mode,<wbr/> sensors typically operate in unbinned mode allowing for a larger image size.<wbr/>
The stream configurations supported in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>
mode are also different from those of
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_DEFAULT">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>DEFAULT</a> mode.<wbr/>
They can be queried through
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#get">CameraCharacteristics#get</a> with
<a href="https://developer.android.com/reference/CameraCharacteristics.html#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION">Camera<wbr/>Characteristics#SCALER_<wbr/>STREAM_<wbr/>CONFIGURATION_<wbr/>MAP_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/>
Unless reported by both
<a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html">StreamConfigurationMap</a>s,<wbr/> the outputs from
<code><a href="#static_android.scaler.streamConfigurationMapMaximumResolution">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map<wbr/>Maximum<wbr/>Resolution</a></code> and
<code><a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a></code>
must not be mixed in the same CaptureRequest.<wbr/> In other words,<wbr/> these outputs are
exclusive to each other.<wbr/>
This key does not need to be set for reprocess requests.<wbr/>
This key will be be present on devices supporting the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability.<wbr/> It may also be present on devices which do not support the aforementioned
capability.<wbr/> In that case:</p>
<ul>
<li>
<p>The mandatory stream combinations listed in
<a href="#static_android.scaler.mandatoryMaximumResolutionStreamCombinations">android.<wbr/>scaler.<wbr/>mandatory<wbr/>Maximum<wbr/>Resolution<wbr/>Stream<wbr/>Combinations</a> would not apply.<wbr/></p>
</li>
<li>
<p>The bayer pattern of {@code RAW} streams when
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>
is selected will be the one listed in <a href="#static_android.sensor.info.binningFactor">android.<wbr/>sensor.<wbr/>info.<wbr/>binning<wbr/>Factor</a>.<wbr/></p>
</li>
<li>
<p>The following keys will always be present:</p>
<ul>
<li><a href="#static_android.scaler.streamConfigurationMapMaximumResolution">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map<wbr/>Maximum<wbr/>Resolution</a></li>
<li><a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a></li>
<li><a href="#static_android.sensor.info.pixelArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a></li>
<li><a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a></li>
</ul>
</li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.sensor.info.activeArraySize">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public as rectangle]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">Four ints defining the active pixel rectangle</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The area of the image sensor which corresponds to active pixels after any geometric
distortion correction has been applied.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates on the image sensor
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is the rectangle representing the size of the active region of the sensor (i.<wbr/>e.<wbr/>
the region that actually receives light from the scene) after any geometric correction
has been applied,<wbr/> and should be treated as the maximum size in pixels of any of the
image output formats aside from the raw formats.<wbr/></p>
<p>This rectangle is defined relative to the full pixel array; (0,<wbr/>0) is the top-left of
the full pixel array,<wbr/> and the size of the full pixel array is given by
<a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
<p>The coordinate system for most other keys that list pixel coordinates,<wbr/> including
<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
this field,<wbr/> with <code>(0,<wbr/> 0)</code> being the top-left of this rectangle.<wbr/></p>
<p>The active array may be smaller than the full pixel array,<wbr/> since the full array may
include black calibration pixels or other inactive regions.<wbr/></p>
<p>For devices that do not support <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the active
array must be the same as <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>
<p>For devices that support <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the active array must
be enclosed by <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/> The difference between
pre-correction active array and active array accounts for scaling or cropping caused
by lens geometric distortion correction.<wbr/></p>
<p>In general,<wbr/> application should always refer to active array size for controls like
metering regions or crop region.<wbr/> Two exceptions are when the application is dealing with
RAW image buffers (RAW_<wbr/>SENSOR,<wbr/> RAW10,<wbr/> RAW12 etc),<wbr/> or when application explicitly set
<a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> to OFF.<wbr/> In these cases,<wbr/> application should refer
to <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>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This array contains <code>(xmin,<wbr/> ymin,<wbr/> width,<wbr/> height)</code>.<wbr/> The <code>(xmin,<wbr/> ymin)</code> must be
&gt;= <code>(0,<wbr/>0)</code>.<wbr/>
The <code>(width,<wbr/> height)</code> must be &lt;= <code><a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a></code>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.sensitivityRange">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as rangeInt]</span>
<span class="entry_type_hwlevel">[full] </span>
<div class="entry_type_notes">Range of supported sensitivities</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Range of sensitivities for <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> supported by this
camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Min &lt;= 100,<wbr/> Max &gt;= 800</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The values are the standard ISO sensitivity values,<wbr/>
as defined in ISO 12232:2006.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.colorFilterArrangement">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">RGGB (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">GRBG (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">GBRG (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">BGGR (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">RGB (v3.2)</span>
<span class="entry_type_enum_notes"><p>Sensor is not Bayer; output has 3 16-bit
values for each pixel,<wbr/> instead of just 1 16-bit value
per pixel.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MONO (v3.4)</span>
<span class="entry_type_enum_notes"><p>Sensor doesn't have any Bayer color filter.<wbr/>
Such sensor captures visible light in monochrome.<wbr/> The exact weighting and
wavelengths captured is not specified,<wbr/> but generally only includes the visible
frequencies.<wbr/> This value implies a MONOCHROME camera.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">NIR (v3.4)</span>
<span class="entry_type_enum_notes"><p>Sensor has a near infrared filter capturing light with wavelength between
roughly 750nm and 1400nm,<wbr/> and the same filter covers the whole sensor array.<wbr/> This
value implies a MONOCHROME camera.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The arrangement of color filters on sensor;
represents the colors in the top-left 2x2 section of
the sensor,<wbr/> in reading order,<wbr/> for a Bayer camera,<wbr/> or the
light spectrum it captures for MONOCHROME camera.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Starting from Android Q,<wbr/> the colorFilterArrangement for a MONOCHROME camera must be
single color patterns,<wbr/> such as MONO or NIR.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.exposureTimeRange">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as rangeLong]</span>
<span class="entry_type_hwlevel">[full] </span>
<div class="entry_type_notes">nanoseconds</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The range of image exposure times for <a href="#controls_android.sensor.exposureTime">android.<wbr/>sensor.<wbr/>exposure<wbr/>Time</a> supported
by this camera device.<wbr/></p>
</td>
<td class="entry_units">
Nanoseconds
</td>
<td class="entry_range">
<p>The minimum exposure time will be less than 100 us.<wbr/> For FULL
capability devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/>
the maximum exposure time will be greater than 100ms.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For FULL capability devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/>
The maximum of the range SHOULD be at least 1 second (1e9),<wbr/> MUST be at least
100ms.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.maxFrameDuration">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum possible frame duration (minimum frame rate) for
<a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> that is supported this camera device.<wbr/></p>
</td>
<td class="entry_units">
Nanoseconds
</td>
<td class="entry_range">
<p>For FULL capability devices
(<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/> at least 100ms.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Attempting to use frame durations beyond the maximum will result in the frame
duration being clipped to the maximum.<wbr/> See that control for a full definition of frame
durations.<wbr/></p>
<p>Refer to <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>
for the minimum frame duration values.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For FULL capability devices (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> == FULL),<wbr/>
The maximum of the range SHOULD be at least
1 second (1e9),<wbr/> MUST be at least 100ms (100e6).<wbr/></p>
<p><a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a> must be greater or
equal to the <a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a> max
value (since exposure time overrides frame duration).<wbr/></p>
<p>Available minimum frame durations for JPEG must be no greater
than that of the YUV_<wbr/>420_<wbr/>888/<wbr/>IMPLEMENTATION_<wbr/>DEFINED
minimum frame durations (for that respective size).<wbr/></p>
<p>Since JPEG processing is considered offline and can take longer than
a single uncompressed capture,<wbr/> refer to
<a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a>
for details about encoding this scenario.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.physicalSize">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>info.<wbr/>physical<wbr/>Size
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as sizeF]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">width x height</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The physical dimensions of the full pixel
array.<wbr/></p>
</td>
<td class="entry_units">
Millimeters
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is the physical size of the sensor pixel
array defined by <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Needed for FOV calculation for old API</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.pixelArraySize">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as size]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Dimensions of the full pixel array,<wbr/> possibly
including black calibration pixels.<wbr/></p>
</td>
<td class="entry_units">
Pixels
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The pixel count of the full pixel array of the image sensor,<wbr/> which covers
<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
the raw buffers produced by this sensor.<wbr/></p>
<p>If a camera device supports raw sensor formats,<wbr/> either this or
<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
output formats listed in <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html">StreamConfigurationMap</a>
(this depends on whether or not the image sensor returns buffers containing pixels that
are not part of the active array region for blacklevel calibration or other purposes).<wbr/></p>
<p>Some parts of the full pixel array may not receive light from the scene,<wbr/>
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
defines the rectangle of active pixels that will be included in processed image
formats.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.whiteLevel">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>info.<wbr/>white<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum raw value output by sensor.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&gt; 255 (8-bit output)</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This specifies the fully-saturated encoding level for the raw
sample values from the sensor.<wbr/> This is typically caused by the
sensor becoming highly non-linear or clipping.<wbr/> The minimum for
each channel is specified by the offset in the
<a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> key.<wbr/></p>
<p>The white level is typically determined either by sensor bit depth
(8-14 bits is expected),<wbr/> or by the point where the sensor response
becomes too non-linear to be useful.<wbr/> The default value for this is
maximum representable value for a 16-bit raw sample (2^16 - 1).<wbr/></p>
<p>The white level values of captured images may vary for different
capture settings (e.<wbr/>g.,<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>).<wbr/> This key
represents a coarse approximation for such case.<wbr/> It is recommended
to use <a href="#dynamic_android.sensor.dynamicWhiteLevel">android.<wbr/>sensor.<wbr/>dynamic<wbr/>White<wbr/>Level</a> for captures when supported
by the camera device,<wbr/> which provides more accurate white level values.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The full bit depth of the sensor must be available in the raw data,<wbr/>
so the value for linear sensors should not be significantly lower
than maximum raw value supported,<wbr/> i.<wbr/>e.<wbr/> 2^(sensor bits per pixel).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.timestampSource">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">UNKNOWN (v3.2)</span>
<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/> but can
not be compared to timestamps from other subsystems (e.<wbr/>g.<wbr/> accelerometer,<wbr/> gyro etc.<wbr/>),<wbr/>
or other instances of the same or different camera devices in the same system with
accuracy.<wbr/> However,<wbr/> the timestamps are roughly in the same timebase as
<a href="https://developer.android.com/reference/android/os/SystemClock.html#uptimeMillis">SystemClock#uptimeMillis</a>.<wbr/> The accuracy is sufficient for tasks
like A/<wbr/>V synchronization for video recording,<wbr/> at least,<wbr/> and the timestamps can be
directly used together with timestamps from the audio subsystem for that task.<wbr/></p>
<p>Timestamps between streams and results for a single camera instance are comparable,<wbr/>
and the timestamps for all buffers and the result metadata generated by a single
capture are identical.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">REALTIME (v3.2)</span>
<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
<a href="https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtimeNanos">SystemClock#elapsedRealtimeNanos</a>,<wbr/>
and they can be compared to other timestamps using that base.<wbr/></p>
<p>When buffers from a REALTIME device are passed directly to a video encoder from the
camera,<wbr/> automatic compensation is done to account for differing timebases of the
audio and camera subsystems.<wbr/> If the application is receiving buffers and then later
sending them to a video encoder or other application where they are compared with
audio subsystem timestamps or similar,<wbr/> this compensation is not present.<wbr/> In those
cases,<wbr/> applications need to adjust the timestamps themselves.<wbr/> Since <a href="https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtimeNanos">SystemClock#elapsedRealtimeNanos</a> and <a href="https://developer.android.com/reference/android/os/SystemClock.html#uptimeMillis">SystemClock#uptimeMillis</a> only diverge while the device is asleep,<wbr/> an
offset between the two sources can be measured once per active session and applied
to timestamps for sufficient accuracy for A/<wbr/>V sync.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The time base source for sensor capture start timestamps.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The timestamps provided for captures are always in nanoseconds and monotonic,<wbr/> but
may not based on a time source that can be compared to other system time sources.<wbr/></p>
<p>This characteristic defines the source for the timestamps,<wbr/> and therefore whether they
can be compared against other system time sources/<wbr/>timestamps.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For camera devices implement UNKNOWN,<wbr/> the camera framework expects that the timestamp
source to be SYSTEM_<wbr/>TIME_<wbr/>MONOTONIC.<wbr/> For camera devices implement REALTIME,<wbr/> the camera
framework expects that the timestamp source to be SYSTEM_<wbr/>TIME_<wbr/>BOOTTIME.<wbr/> See
system/<wbr/>core/<wbr/>include/<wbr/>utils/<wbr/>Timers.<wbr/>h for the definition of SYSTEM_<wbr/>TIME_<wbr/>MONOTONIC and
SYSTEM_<wbr/>TIME_<wbr/>BOOTTIME.<wbr/> Note that HAL must follow above expectation; otherwise video
recording might suffer unexpected behavior.<wbr/></p>
<p>Also,<wbr/> camera devices which implement REALTIME must pass the ITS sensor fusion test which
tests the alignment between camera timestamps and gyro sensor timestamps.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.lensShadingApplied">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether the RAW images output from this camera device are subject to
lens shading correction.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If TRUE,<wbr/> all images produced by the camera device in the RAW image formats will
have lens shading correction already applied to it.<wbr/> If FALSE,<wbr/> the images will
not be adjusted for lens shading correction.<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 formats.<wbr/></p>
<p>This key will be <code>null</code> for all devices do not report this information.<wbr/>
Devices with RAW capability will always report this information in this key.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.preCorrectionActiveArraySize">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public as rectangle]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">Four ints defining the active pixel rectangle</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The area of the image sensor which corresponds to active pixels prior to the
application of any geometric distortion correction.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates on the image sensor
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is the rectangle representing the size of the active region of the sensor (i.<wbr/>e.<wbr/>
the region that actually receives light from the scene) before any geometric correction
has been applied,<wbr/> and should be treated as the active region rectangle for any of the
raw formats.<wbr/> All metadata associated with raw processing (e.<wbr/>g.<wbr/> the lens shading
correction map,<wbr/> and radial distortion fields) treats the top,<wbr/> left of this rectangle as
the origin,<wbr/> (0,<wbr/>0).<wbr/></p>
<p>The size of this region determines the maximum field of view and the maximum number of
pixels that an image from this sensor can contain,<wbr/> prior to the application of
geometric distortion correction.<wbr/> The effective maximum pixel dimensions of a
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>
field,<wbr/> and the effective maximum field of view for a post-distortion-corrected image
can be calculated by applying the geometric distortion correction fields to this
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>
<p>E.<wbr/>g.<wbr/> to calculate position of a pixel,<wbr/> (x,<wbr/>y),<wbr/> in a processed YUV output image with the
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/>
(x',<wbr/> y'),<wbr/> in the raw pixel array with dimensions given in
<a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>:</p>
<ol>
<li>Choose a pixel (x',<wbr/> y') within the active array region of the raw buffer given in
<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
to be outside of the FOV,<wbr/> and will not be shown in the processed output image.<wbr/></li>
<li>Apply geometric distortion correction to get the post-distortion pixel coordinate,<wbr/>
(x_<wbr/>i,<wbr/> y_<wbr/>i).<wbr/> When applying geometric correction metadata,<wbr/> note that metadata for raw
buffers is defined relative to the top,<wbr/> left of the
<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>
<li>If the resulting corrected pixel coordinate is within the region given in
<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
processed output image buffer is <code>(x_<wbr/>i - activeArray.<wbr/>left,<wbr/> y_<wbr/>i - activeArray.<wbr/>top)</code>,<wbr/>
when the top,<wbr/> left coordinate of that buffer is treated as (0,<wbr/> 0).<wbr/></li>
</ol>
<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>
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/>
<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
correction doesn't change the pixel coordinate,<wbr/> the resulting pixel selected in
pixel coordinates would be x,<wbr/>y = (25,<wbr/> 25) relative to the top,<wbr/>left of the raw buffer
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)
relative to the top,<wbr/>left of post-processed YUV output buffer with dimensions given in
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
<p>The currently supported fields that correct for geometric distortion are:</p>
<ol>
<li><a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a>.<wbr/></li>
</ol>
<p>If the camera device doesn't support geometric distortion correction,<wbr/> or all of the
geometric distortion fields are no-ops,<wbr/> this rectangle will be the same as the
post-distortion-corrected rectangle given in <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
<p>This rectangle is defined relative to the full pixel array; (0,<wbr/>0) is the top-left of
the full pixel array,<wbr/> and the size of the full pixel array is given by
<a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
<p>The pre-correction active array may be smaller than the full pixel array,<wbr/> since the
full array may include black calibration pixels or other inactive regions.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This array contains <code>(xmin,<wbr/> ymin,<wbr/> width,<wbr/> height)</code>.<wbr/> The <code>(xmin,<wbr/> ymin)</code> must be
&gt;= <code>(0,<wbr/>0)</code>.<wbr/>
The <code>(width,<wbr/> height)</code> must be &lt;= <code><a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a></code>.<wbr/></p>
<p>If omitted by the HAL implementation,<wbr/> the camera framework will assume that this is
the same as the post-correction active array region given in
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.activeArraySizeMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public as rectangle]</span>
<div class="entry_type_notes">Four ints defining the active pixel rectangle</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The area of the image sensor which corresponds to active pixels after any geometric
distortion correction has been applied,<wbr/> when the sensor runs in maximum resolution mode.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates on the image sensor
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a>
is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/>
Refer to <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a> for details,<wbr/> with sensor array related keys
replaced with their
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>
counterparts.<wbr/>
This key will only be present for devices which advertise the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This array contains <code>(xmin,<wbr/> ymin,<wbr/> width,<wbr/> height)</code>.<wbr/> The <code>(xmin,<wbr/> ymin)</code> must be
&gt;= <code>(0,<wbr/>0)</code>.<wbr/>
The <code>(width,<wbr/> height)</code> must be &lt;= <code><a href="#static_android.sensor.info.pixelArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a></code>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.pixelArraySizeMaximumResolution">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as size]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Dimensions of the full pixel array,<wbr/> possibly
including black calibration pixels,<wbr/> when the sensor runs in maximum resolution mode.<wbr/>
Analogous to <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>,<wbr/> when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is
set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
Pixels
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The pixel count of the full pixel array of the image sensor,<wbr/> which covers
<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
the raw buffers produced by this sensor,<wbr/> when it runs in maximum resolution mode.<wbr/> That
is,<wbr/> when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/>
This key will only be present for devices which advertise the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public as rectangle]</span>
<div class="entry_type_notes">Four ints defining the active pixel rectangle</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The area of the image sensor which corresponds to active pixels prior to the
application of any geometric distortion correction,<wbr/> when the sensor runs in maximum
resolution mode.<wbr/> This key must be used for crop /<wbr/> metering regions,<wbr/> only when
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates on the image sensor
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/>
when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/>
This key will only be present for devices which advertise the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This array contains <code>(xmin,<wbr/> ymin,<wbr/> width,<wbr/> height)</code>.<wbr/> The <code>(xmin,<wbr/> ymin)</code> must be
&gt;= <code>(0,<wbr/>0)</code>.<wbr/>
The <code>(width,<wbr/> height)</code> must be &lt;= <code><a href="#static_android.sensor.info.pixelArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a></code>.<wbr/></p>
<p>If omitted by the HAL implementation,<wbr/> the camera framework will assume that this is
the same as the post-correction active array region given in
<a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.info.binningFactor">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>info.<wbr/>binning<wbr/>Factor
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [public as size]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Dimensions of the group of pixels which are under the same color filter.<wbr/>
This specifies the width and height (pair of integers) of the group of pixels which fall
under the same color filter for ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION sensors.<wbr/></p>
</td>
<td class="entry_units">
Pixels
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Sensors can have pixels grouped together under the same color filter in order
to improve various aspects of imaging such as noise reduction,<wbr/> low light
performance etc.<wbr/> These groups can be of various sizes such as 2X2 (quad bayer),<wbr/>
3X3 (nona-bayer).<wbr/> This key specifies the length and width of the pixels grouped under
the same color filter.<wbr/>
In case the device has the
<a href="https://developer.android.com/reference/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability :</p>
<ul>
<li>This key will not be present if REMOSAIC_<wbr/>REPROCESSING is not supported,<wbr/> since RAW
images will have a regular bayer pattern.<wbr/></li>
</ul>
<p>In case the device does not have the
<a href="https://developer.android.com/reference/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability :</p>
<ul>
<li>This key will be present if
<a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a>,<wbr/> since RAW
images may not necessarily have a regular bayer pattern when
<a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.referenceIlluminant1">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">DAYLIGHT (v3.2)</span>
<span class="entry_type_enum_value">1</span>
</li>
<li>
<span class="entry_type_enum_name">FLUORESCENT (v3.2)</span>
<span class="entry_type_enum_value">2</span>
</li>
<li>
<span class="entry_type_enum_name">TUNGSTEN (v3.2)</span>
<span class="entry_type_enum_value">3</span>
<span class="entry_type_enum_notes"><p>Incandescent light</p></span>
</li>
<li>
<span class="entry_type_enum_name">FLASH (v3.2)</span>
<span class="entry_type_enum_value">4</span>
</li>
<li>
<span class="entry_type_enum_name">FINE_WEATHER (v3.2)</span>
<span class="entry_type_enum_value">9</span>
</li>
<li>
<span class="entry_type_enum_name">CLOUDY_WEATHER (v3.2)</span>
<span class="entry_type_enum_value">10</span>
</li>
<li>
<span class="entry_type_enum_name">SHADE (v3.2)</span>
<span class="entry_type_enum_value">11</span>
</li>
<li>
<span class="entry_type_enum_name">DAYLIGHT_FLUORESCENT (v3.2)</span>
<span class="entry_type_enum_value">12</span>
<span class="entry_type_enum_notes"><p>D 5700 - 7100K</p></span>
</li>
<li>
<span class="entry_type_enum_name">DAY_WHITE_FLUORESCENT (v3.2)</span>
<span class="entry_type_enum_value">13</span>
<span class="entry_type_enum_notes"><p>N 4600 - 5400K</p></span>
</li>
<li>
<span class="entry_type_enum_name">COOL_WHITE_FLUORESCENT (v3.2)</span>
<span class="entry_type_enum_value">14</span>
<span class="entry_type_enum_notes"><p>W 3900 - 4500K</p></span>
</li>
<li>
<span class="entry_type_enum_name">WHITE_FLUORESCENT (v3.2)</span>
<span class="entry_type_enum_value">15</span>
<span class="entry_type_enum_notes"><p>WW 3200 - 3700K</p></span>
</li>
<li>
<span class="entry_type_enum_name">STANDARD_A (v3.2)</span>
<span class="entry_type_enum_value">17</span>
</li>
<li>
<span class="entry_type_enum_name">STANDARD_B (v3.2)</span>
<span class="entry_type_enum_value">18</span>
</li>
<li>
<span class="entry_type_enum_name">STANDARD_C (v3.2)</span>
<span class="entry_type_enum_value">19</span>
</li>
<li>
<span class="entry_type_enum_name">D55 (v3.2)</span>
<span class="entry_type_enum_value">20</span>
</li>
<li>
<span class="entry_type_enum_name">D65 (v3.2)</span>
<span class="entry_type_enum_value">21</span>
</li>
<li>
<span class="entry_type_enum_name">D75 (v3.2)</span>
<span class="entry_type_enum_value">22</span>
</li>
<li>
<span class="entry_type_enum_name">D50 (v3.2)</span>
<span class="entry_type_enum_value">23</span>
</li>
<li>
<span class="entry_type_enum_name">ISO_STUDIO_TUNGSTEN (v3.2)</span>
<span class="entry_type_enum_value">24</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The standard reference illuminant used as the scene light source when
calculating the <a href="#static_android.sensor.colorTransform1">android.<wbr/>sensor.<wbr/>color<wbr/>Transform1</a>,<wbr/>
<a href="#static_android.sensor.calibrationTransform1">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform1</a>,<wbr/> and
<a href="#static_android.sensor.forwardMatrix1">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix1</a> matrices.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The values in this key correspond to the values defined for the
EXIF LightSource tag.<wbr/> These illuminants are standard light sources
that are often used calibrating camera devices.<wbr/></p>
<p>If this key is present,<wbr/> then <a href="#static_android.sensor.colorTransform1">android.<wbr/>sensor.<wbr/>color<wbr/>Transform1</a>,<wbr/>
<a href="#static_android.sensor.calibrationTransform1">android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform1</a>,<wbr/> and
<a href="#static_android.sensor.forwardMatrix1">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix1</a> will also be present.<wbr/></p>
<p>Some devices may choose to provide a second set of calibration
information for improved quality,<wbr/> including
<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a> and its corresponding matrices.<wbr/></p>
<p>Starting from Android Q,<wbr/> this key will not be present for a MONOCHROME camera,<wbr/> even if
the camera device has RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The first reference illuminant (<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>)
and corresponding matrices must be present to support the RAW capability
and DNG output.<wbr/></p>
<p>When producing raw images with a color profile that has only been
calibrated against a single light source,<wbr/> it is valid to omit
<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a> along with the
<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/>
and <a href="#static_android.sensor.forwardMatrix2">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2</a> matrices.<wbr/></p>
<p>If only <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a> is included,<wbr/> it should be
chosen so that it is representative of typical scene lighting.<wbr/> In
general,<wbr/> D50 or DAYLIGHT will be chosen for this case.<wbr/></p>
<p>If both <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a> and
<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a> are included,<wbr/> they should be
chosen to represent the typical range of scene lighting conditions.<wbr/>
In general,<wbr/> low color temperature illuminant such as Standard-A will
be chosen for the first reference illuminant and a higher color
temperature illuminant such as D65 will be chosen for the second
reference illuminant.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.referenceIlluminant2">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The standard reference illuminant used as the scene light source when
calculating the <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/> and
<a href="#static_android.sensor.forwardMatrix2">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2</a> matrices.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>See <a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a> for more details.<wbr/></p>
<p>If this key is present,<wbr/> then <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/> and
<a href="#static_android.sensor.forwardMatrix2">android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2</a> will also be present.<wbr/></p>
<p>Starting from Android Q,<wbr/> this key will not be present for a MONOCHROME camera,<wbr/> even if
the camera device has RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.calibrationTransform1">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform1
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3 x 3
</span>
<span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
<div class="entry_type_notes">3x3 matrix in row-major-order</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A per-device calibration transform matrix that maps from the
reference sensor colorspace to the actual device sensor colorspace.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This matrix is used to correct for per-device variations in the
sensor colorspace,<wbr/> and is used for processing raw buffer data.<wbr/></p>
<p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
contains a per-device calibration transform that maps colors
from reference sensor color space (i.<wbr/>e.<wbr/> the "golden module"
colorspace) into this camera device's native sensor color
space under the first reference illuminant
(<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>).<wbr/></p>
<p>Starting from Android Q,<wbr/> this key will not be present for a MONOCHROME camera,<wbr/> even if
the camera device has RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.calibrationTransform2">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>calibration<wbr/>Transform2
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3 x 3
</span>
<span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
<div class="entry_type_notes">3x3 matrix in row-major-order</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A per-device calibration transform matrix that maps from the
reference sensor colorspace to the actual device sensor colorspace
(this is the colorspace of the raw buffer data).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This matrix is used to correct for per-device variations in the
sensor colorspace,<wbr/> and is used for processing raw buffer data.<wbr/></p>
<p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
contains a per-device calibration transform that maps colors
from reference sensor color space (i.<wbr/>e.<wbr/> the "golden module"
colorspace) into this camera device's native sensor color
space under the second reference illuminant
(<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a>).<wbr/></p>
<p>This matrix will only be present if the second reference
illuminant is present.<wbr/></p>
<p>Starting from Android Q,<wbr/> this key will not be present for a MONOCHROME camera,<wbr/> even if
the camera device has RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.colorTransform1">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>color<wbr/>Transform1
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3 x 3
</span>
<span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
<div class="entry_type_notes">3x3 matrix in row-major-order</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A matrix that transforms color values from CIE XYZ color space to
reference sensor color space.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This matrix is used to convert from the standard CIE XYZ color
space to the reference sensor colorspace,<wbr/> and is used when processing
raw buffer data.<wbr/></p>
<p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
contains a color transform matrix that maps colors from the CIE
XYZ color space to the reference sensor color space (i.<wbr/>e.<wbr/> the
"golden module" colorspace) under the first reference illuminant
(<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>).<wbr/></p>
<p>The white points chosen in both the reference sensor color space
and the CIE XYZ colorspace when calculating this transform will
match the standard white point for the first reference illuminant
(i.<wbr/>e.<wbr/> no chromatic adaptation will be applied by this transform).<wbr/></p>
<p>Starting from Android Q,<wbr/> this key will not be present for a MONOCHROME camera,<wbr/> even if
the camera device has RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.colorTransform2">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>color<wbr/>Transform2
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3 x 3
</span>
<span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
<div class="entry_type_notes">3x3 matrix in row-major-order</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A matrix that transforms color values from CIE XYZ color space to
reference sensor color space.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This matrix is used to convert from the standard CIE XYZ color
space to the reference sensor colorspace,<wbr/> and is used when processing
raw buffer data.<wbr/></p>
<p>The matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and
contains a color transform matrix that maps colors from the CIE
XYZ color space to the reference sensor color space (i.<wbr/>e.<wbr/> the
"golden module" colorspace) under the second reference illuminant
(<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a>).<wbr/></p>
<p>The white points chosen in both the reference sensor color space
and the CIE XYZ colorspace when calculating this transform will
match the standard white point for the second reference illuminant
(i.<wbr/>e.<wbr/> no chromatic adaptation will be applied by this transform).<wbr/></p>
<p>This matrix will only be present if the second reference
illuminant is present.<wbr/></p>
<p>Starting from Android Q,<wbr/> this key will not be present for a MONOCHROME camera,<wbr/> even if
the camera device has RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.forwardMatrix1">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix1
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3 x 3
</span>
<span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
<div class="entry_type_notes">3x3 matrix in row-major-order</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A matrix that transforms white balanced camera colors from the reference
sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This matrix is used to convert to the standard CIE XYZ colorspace,<wbr/> and
is used when processing raw buffer data.<wbr/></p>
<p>This matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and contains
a color transform matrix that maps white balanced colors from the
reference sensor color space to the CIE XYZ color space with a D50 white
point.<wbr/></p>
<p>Under the first reference illuminant (<a href="#static_android.sensor.referenceIlluminant1">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant1</a>)
this matrix is chosen so that the standard white point for this reference
illuminant in the reference sensor colorspace is mapped to D50 in the
CIE XYZ colorspace.<wbr/></p>
<p>Starting from Android Q,<wbr/> this key will not be present for a MONOCHROME camera,<wbr/> even if
the camera device has RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.forwardMatrix2">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>forward<wbr/>Matrix2
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3 x 3
</span>
<span class="entry_type_visibility"> [public as colorSpaceTransform]</span>
<div class="entry_type_notes">3x3 matrix in row-major-order</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A matrix that transforms white balanced camera colors from the reference
sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This matrix is used to convert to the standard CIE XYZ colorspace,<wbr/> and
is used when processing raw buffer data.<wbr/></p>
<p>This matrix is expressed as a 3x3 matrix in row-major-order,<wbr/> and contains
a color transform matrix that maps white balanced colors from the
reference sensor color space to the CIE XYZ color space with a D50 white
point.<wbr/></p>
<p>Under the second reference illuminant (<a href="#static_android.sensor.referenceIlluminant2">android.<wbr/>sensor.<wbr/>reference<wbr/>Illuminant2</a>)
this matrix is chosen so that the standard white point for this reference
illuminant in the reference sensor colorspace is mapped to D50 in the
CIE XYZ colorspace.<wbr/></p>
<p>This matrix will only be present if the second reference
illuminant is present.<wbr/></p>
<p>Starting from Android Q,<wbr/> this key will not be present for a MONOCHROME camera,<wbr/> even if
the camera device has RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.baseGainFactor">
<td class="entry_name
" rowspan="1">
android.<wbr/>sensor.<wbr/>base<wbr/>Gain<wbr/>Factor
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Gain factor from electrons to raw units when
ISO=100</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.blackLevelPattern">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public as blackLevelPattern]</span>
<div class="entry_type_notes">2x2 raw count block</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A fixed black level offset for each of the color filter arrangement
(CFA) mosaic channels.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&gt;= 0 for each.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This key specifies the zero light value for each of the CFA mosaic
channels in the camera sensor.<wbr/> The maximal value output by the
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>
<p>The values are given in the same order as channels listed for the CFA
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
nth value given corresponds to the black level offset for the nth
color channel listed in the CFA.<wbr/></p>
<p>The black level values of captured images may vary for different
capture settings (e.<wbr/>g.,<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>).<wbr/> This key
represents a coarse approximation for such case.<wbr/> It is recommended to
use <a href="#dynamic_android.sensor.dynamicBlackLevel">android.<wbr/>sensor.<wbr/>dynamic<wbr/>Black<wbr/>Level</a> or use pixels from
<a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> directly for captures when
supported by the camera device,<wbr/> which provides more accurate black
level values.<wbr/> For raw capture in particular,<wbr/> it is recommended to use
pixels from <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> to calculate black
level values for each frame.<wbr/></p>
<p>For a MONOCHROME camera device,<wbr/> all of the 2x2 channels must have the same values.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The values are given in row-column scan order,<wbr/> with the first value
corresponding to the element of the CFA in row=0,<wbr/> column=0.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.maxAnalogSensitivity">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>max<wbr/>Analog<wbr/>Sensitivity
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum sensitivity that is implemented
purely through analog gain.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_FULL">FULL</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> values less than or
equal to this,<wbr/> all applied gain must be analog.<wbr/> For
values above this,<wbr/> the gain applied can be a mix of analog and
digital.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.orientation">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>orientation
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Clockwise angle through which the output image needs to be rotated to be
upright on the device screen in its native orientation.<wbr/></p>
</td>
<td class="entry_units">
Degrees of clockwise rotation; always a multiple of
90
</td>
<td class="entry_range">
<p>0,<wbr/> 90,<wbr/> 180,<wbr/> 270</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Also defines the direction of rolling shutter readout,<wbr/> which is from top to bottom in
the sensor's coordinate system.<wbr/></p>
<p>Starting with Android API level 32,<wbr/> camera clients that query the orientation via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#get">CameraCharacteristics#get</a> on foldable devices which
include logical cameras can receive a value that can dynamically change depending on the
device/<wbr/>fold state.<wbr/>
Clients are advised to not cache or store the orientation value of such logical sensors.<wbr/>
In case repeated queries to CameraCharacteristics are not preferred,<wbr/> then clients can
also access the entire mapping from device state to sensor orientation in
<a href="https://developer.android.com/reference/android/hardware/camera2/params/DeviceStateSensorOrientationMap.html">DeviceStateSensorOrientationMap</a>.<wbr/>
Do note that a dynamically changing sensor orientation value in camera characteristics
will not be the best way to establish the orientation per frame.<wbr/> Clients that want to
know the sensor orientation of a particular captured frame should query the
<a href="#dynamic_android.logicalMultiCamera.activePhysicalId">android.<wbr/>logical<wbr/>Multi<wbr/>Camera.<wbr/>active<wbr/>Physical<wbr/>Id</a> from the corresponding capture result and
check the respective physical camera orientation.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.profileHueSatMapDimensions">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map<wbr/>Dimensions
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3
</span>
<span class="entry_type_visibility"> [system]</span>
<div class="entry_type_notes">Number of samples for hue,<wbr/> saturation,<wbr/> and value</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The number of input samples for each dimension of
<a href="#dynamic_android.sensor.profileHueSatMap">android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Hue &gt;= 1,<wbr/>
Saturation &gt;= 2,<wbr/>
Value &gt;= 1</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The number of input samples for the hue,<wbr/> saturation,<wbr/> and value
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
dimensions given is hue,<wbr/> saturation,<wbr/> value; where hue is the 0th
element.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.availableTestPatternModes">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>available<wbr/>Test<wbr/>Pattern<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public]</span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of sensor test pattern modes for <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a>
supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Defaults to OFF,<wbr/> and always includes OFF if defined.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>All custom modes must be &gt;= CUSTOM1.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.opticalBlackRegions">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x num_regions
</span>
<span class="entry_type_visibility"> [public as rectangle]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of disjoint rectangles indicating the sensor
optically shielded black pixel regions.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>In most camera sensors,<wbr/> the active array is surrounded by some
optically shielded pixel areas.<wbr/> By blocking light,<wbr/> these pixels
provides a reliable black reference for black level compensation
in active array region.<wbr/></p>
<p>This key provides a list of disjoint rectangles specifying the
regions of optically shielded (with metal shield) black pixel
regions if the camera device is capable of reading out these black
pixels in the output raw images.<wbr/> In comparison to the fixed black
level values reported by <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a>,<wbr/> this key
may provide a more accurate way for the application to calculate
black level of each captured raw images.<wbr/></p>
<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
<a href="#dynamic_android.sensor.dynamicWhiteLevel">android.<wbr/>sensor.<wbr/>dynamic<wbr/>White<wbr/>Level</a> will also be reported.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This array contains (xmin,<wbr/> ymin,<wbr/> width,<wbr/> height).<wbr/> The (xmin,<wbr/> ymin)
must be &gt;= (0,<wbr/>0) and &lt;=
<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
&lt;= <a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/> Each region must be
outside the region reported by
<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>
<p>The HAL must report minimal number of disjoint regions for the
optically shielded back pixel regions.<wbr/> For example,<wbr/> if a region can
be covered by one rectangle,<wbr/> the HAL must not split this region into
multiple rectangles.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.opaqueRawSize">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>opaque<wbr/>Raw<wbr/>Size
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 3
</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Size in bytes for all the listed opaque RAW buffer sizes</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Must be large enough to fit the opaque RAW of corresponding size produced by
the camera</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This configurations are listed as <code>(width,<wbr/> height,<wbr/> size_<wbr/>in_<wbr/>bytes)</code> tuples.<wbr/>
This is used for sizing the gralloc buffers for opaque RAW buffers.<wbr/>
All RAW_<wbr/>OPAQUE output stream configuration listed in
<a href="#static_android.scaler.availableStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stream<wbr/>Configurations</a> will have a corresponding tuple in
this key.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This key is added in legacy HAL3.<wbr/>4.<wbr/></p>
<p>For legacy HAL3.<wbr/>4 or above: devices advertising RAW_<wbr/>OPAQUE format output must list this
key.<wbr/> For legacy HAL3.<wbr/>3 or earlier devices: if RAW_<wbr/>OPAQUE ouput is advertised,<wbr/> camera
framework will derive this key by assuming each pixel takes two bytes and no padding bytes
between rows.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.opaqueRawSizeMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>opaque<wbr/>Raw<wbr/>Size<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 3
</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Size in bytes for all the listed opaque RAW buffer sizes when
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Must be large enough to fit the opaque RAW of corresponding size produced by
the camera</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to <a href="#static_android.sensor.opaqueRawSize">android.<wbr/>sensor.<wbr/>opaque<wbr/>Raw<wbr/>Size</a> for details.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to <a href="#static_android.sensor.opaqueRawSize">android.<wbr/>sensor.<wbr/>opaque<wbr/>Raw<wbr/>Size</a> for details.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.sensor.readoutTimestamp">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>readout<wbr/>Timestamp
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [fwk_java_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">NOT_SUPPORTED (v3.8)</span>
<span class="entry_type_enum_notes"><p>This camera device doesn't support readout timestamp and onReadoutStarted
callback.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HARDWARE (v3.8)</span>
<span class="entry_type_enum_notes"><p>This camera device supports the onReadoutStarted callback as well as outputting
readout timestamps.<wbr/> The readout timestamp is generated by the camera hardware and it
has the same accuracy and timing characteristics of the start-of-exposure time.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether or not the camera device supports readout timestamp and
{@code onReadoutStarted} callback.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>8</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If this tag is {@code HARDWARE},<wbr/> the camera device calls
<a href="https://developer.android.com/reference/CameraCaptureSession/CaptureCallback.html#onReadoutStarted">CaptureCallback#onReadoutStarted</a> in addition to the
<a href="https://developer.android.com/reference/CameraCaptureSession/CaptureCallback.html#onCaptureStarted">CaptureCallback#onCaptureStarted</a> callback for each capture.<wbr/>
The timestamp passed into the callback is the start of camera image readout rather than
the start of the exposure.<wbr/> The timestamp source of
<a href="https://developer.android.com/reference/CameraCaptureSession/CaptureCallback.html#onReadoutStarted">CaptureCallback#onReadoutStarted</a> is the same as that of
<a href="https://developer.android.com/reference/CameraCaptureSession/CaptureCallback.html#onCaptureStarted">CaptureCallback#onCaptureStarted</a>.<wbr/></p>
<p>In addition,<wbr/> the application can switch an output surface's timestamp from start of
exposure to start of readout by calling
<a href="https://developer.android.com/reference/android/hardware/camera2/params/OutputConfiguration.html#setReadoutTimestampEnabled">OutputConfiguration#setReadoutTimestampEnabled</a>.<wbr/></p>
<p>The readout timestamp is beneficial for video recording,<wbr/> because the encoder favors
uniform timestamps,<wbr/> and the readout timestamps better reflect the cadence camera sensors
output data.<wbr/></p>
<p>Note that the camera device produces the start-of-exposure and start-of-readout callbacks
together.<wbr/> As a result,<wbr/> the <a href="https://developer.android.com/reference/CameraCaptureSession/CaptureCallback.html#onReadoutStarted">CaptureCallback#onReadoutStarted</a>
is called right after <a href="https://developer.android.com/reference/CameraCaptureSession/CaptureCallback.html#onCaptureStarted">CaptureCallback#onCaptureStarted</a>.<wbr/> The
difference in start-of-readout and start-of-exposure is the sensor exposure time,<wbr/> plus
certain constant offset.<wbr/> The offset is usually due to camera sensor level crop,<wbr/> and it is
generally constant over time for the same set of output resolutions and capture settings.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This property is populated by the camera framework and must not be set at the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.sensor.exposureTime">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>exposure<wbr/>Time
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Duration each pixel is exposed to
light.<wbr/></p>
</td>
<td class="entry_units">
Nanoseconds
</td>
<td class="entry_range">
<p><a href="#static_android.sensor.info.exposureTimeRange">android.<wbr/>sensor.<wbr/>info.<wbr/>exposure<wbr/>Time<wbr/>Range</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If the sensor can't expose this exact duration,<wbr/> it will shorten the
duration exposed to the nearest possible value (rather than expose longer).<wbr/>
The final exposure time used will be available in the output capture result.<wbr/></p>
<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
OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.frameDuration">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>frame<wbr/>Duration
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Duration from start of frame readout to
start of next frame readout.<wbr/></p>
</td>
<td class="entry_units">
Nanoseconds
</td>
<td class="entry_range">
<p>See <a href="#static_android.sensor.info.maxFrameDuration">android.<wbr/>sensor.<wbr/>info.<wbr/>max<wbr/>Frame<wbr/>Duration</a>,<wbr/> <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html">StreamConfigurationMap</a>.<wbr/>
The duration is capped to <code>max(duration,<wbr/> exposureTime + overhead)</code>.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The maximum frame rate that can be supported by a camera subsystem is
a function of many factors:</p>
<ul>
<li>Requested resolutions of output image streams</li>
<li>Availability of binning /<wbr/> skipping modes on the imager</li>
<li>The bandwidth of the imager interface</li>
<li>The bandwidth of the various ISP processing blocks</li>
</ul>
<p>Since these factors can vary greatly between different ISPs and
sensors,<wbr/> the camera abstraction tries to represent the bandwidth
restrictions with as simple a model as possible.<wbr/></p>
<p>The model presented has the following characteristics:</p>
<ul>
<li>The image sensor is always configured to output the smallest
resolution possible given the application's requested output stream
sizes.<wbr/> The smallest resolution is defined as being at least as large
as the largest requested output stream size; the camera pipeline must
never digitally upsample sensor data when the crop region covers the
whole sensor.<wbr/> In general,<wbr/> this means that if only small output stream
resolutions are configured,<wbr/> the sensor can provide a higher frame
rate.<wbr/></li>
<li>Since any request may use any or all the currently configured
output streams,<wbr/> the sensor and ISP must be configured to support
scaling a single capture to all the streams at the same time.<wbr/> This
means the camera pipeline must be ready to produce the largest
requested output size without any delay.<wbr/> Therefore,<wbr/> the overall
frame rate of a given configured stream set is governed only by the
largest requested stream resolution.<wbr/></li>
<li>Using more than one output stream in a request does not affect the
frame duration.<wbr/></li>
<li>Certain format-streams may need to do additional background processing
before data is consumed/<wbr/>produced by that stream.<wbr/> These processors
can run concurrently to the rest of the camera pipeline,<wbr/> but
cannot process more than 1 capture at a time.<wbr/></li>
</ul>
<p>The necessary information for the application,<wbr/> given the model above,<wbr/> is provided via
<a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>.<wbr/>
These are used to determine the maximum frame rate /<wbr/> minimum frame duration that is
possible for a given stream configuration.<wbr/></p>
<p>Specifically,<wbr/> the application can use the following rules to
determine the minimum frame duration it can request from the camera
device:</p>
<ol>
<li>Let the set of currently configured input/<wbr/>output streams be called <code>S</code>.<wbr/></li>
<li>Find the minimum frame durations for each stream in <code>S</code>,<wbr/> by looking it up in <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>
(with its respective size/<wbr/>format).<wbr/> Let this set of frame durations be called <code>F</code>.<wbr/></li>
<li>For any given request <code>R</code>,<wbr/> the minimum frame duration allowed for <code>R</code> is the maximum
out of all values in <code>F</code>.<wbr/> Let the streams used in <code>R</code> be called <code>S_<wbr/>r</code>.<wbr/></li>
</ol>
<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>
using its respective size/<wbr/>format),<wbr/> then the frame duration in <code>F</code> determines the steady
state frame rate that the application will get if it uses <code>R</code> as a repeating request.<wbr/> Let
this special kind of request be called <code>Rsimple</code>.<wbr/></p>
<p>A repeating request <code>Rsimple</code> can be <em>occasionally</em> interleaved by a single capture of a
new request <code>Rstall</code> (which has at least one in-use stream with a non-0 stall time) and if
<code>Rstall</code> has the same minimum frame duration this will not cause a frame rate loss if all
buffers from the previous <code>Rstall</code> have already been delivered.<wbr/></p>
<p>For more details about stalling,<wbr/> see <a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration">StreamConfigurationMap#getOutputStallDuration</a>.<wbr/></p>
<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
OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
<p><em>Note:</em> Prior to Android 13,<wbr/> this field was described as measuring the duration from
start of frame exposure to start of next frame exposure,<wbr/> which doesn't reflect the
definition from sensor manufacturer.<wbr/> A mobile sensor defines the frame duration as
intervals between sensor readouts.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For more details about stalling,<wbr/> see
<a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.sensitivity">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>sensitivity
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The amount of gain applied to sensor data
before processing.<wbr/></p>
</td>
<td class="entry_units">
ISO arithmetic units
</td>
<td class="entry_range">
<p><a href="#static_android.sensor.info.sensitivityRange">android.<wbr/>sensor.<wbr/>info.<wbr/>sensitivity<wbr/>Range</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The sensitivity is the standard ISO sensitivity value,<wbr/>
as defined in ISO 12232:2006.<wbr/></p>
<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
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
is guaranteed to use only analog amplification for applying the gain.<wbr/></p>
<p>If the camera device cannot apply the exact sensitivity
requested,<wbr/> it will reduce the gain to the nearest supported
value.<wbr/> The final sensitivity used will be available in the
output capture result.<wbr/></p>
<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
OFF; otherwise the auto-exposure algorithm will override this value.<wbr/></p>
<p>Note that for devices supporting postRawSensitivityBoost,<wbr/> the total sensitivity applied
to the final processed image is the combination of <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a> and
<a href="#controls_android.control.postRawSensitivityBoost">android.<wbr/>control.<wbr/>post<wbr/>Raw<wbr/>Sensitivity<wbr/>Boost</a>.<wbr/> In case the application uses the sensor
sensitivity from last capture result of an auto request for a manual request,<wbr/> in order
to achieve the same brightness in the output image,<wbr/> the application should also
set postRawSensitivityBoost.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>ISO 12232:2006 REI method is acceptable.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.timestamp">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>timestamp
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Time at start of exposure of first
row of the image sensor active array,<wbr/> in nanoseconds.<wbr/></p>
</td>
<td class="entry_units">
Nanoseconds
</td>
<td class="entry_range">
<p>&gt; 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The timestamps are also included in all image
buffers produced for the same capture,<wbr/> and will be identical
on all the outputs.<wbr/></p>
<p>When <a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> UNKNOWN,<wbr/>
the timestamps measure time since an unspecified starting point,<wbr/>
and are monotonically increasing.<wbr/> They can be compared with the
timestamps for other captures from the same camera device,<wbr/> but are
not guaranteed to be comparable to any other time source.<wbr/></p>
<p>When <a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> REALTIME,<wbr/> the
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
be compared to other timestamps from other subsystems that
are using that base.<wbr/></p>
<p>For reprocessing,<wbr/> the timestamp will match the start of exposure of
the input image,<wbr/> i.<wbr/>e.<wbr/> <a href="https://developer.android.com/reference/CaptureResult.html#SENSOR_TIMESTAMP">the
timestamp</a> in the TotalCaptureResult that was used to create the
reprocess capture request.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>All timestamps must be in reference to the kernel's
CLOCK_<wbr/>BOOTTIME monotonic clock,<wbr/> which properly accounts for
time spent asleep.<wbr/> This allows for synchronization with
sensors that continue to operate while the system is
otherwise asleep.<wbr/></p>
<p>If <a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> REALTIME,<wbr/>
The timestamp must be synchronized with the timestamps from other
sensor subsystems that are using the same timebase.<wbr/></p>
<p>For reprocessing,<wbr/> the input image's start of exposure can be looked up
with <a href="#dynamic_android.sensor.timestamp">android.<wbr/>sensor.<wbr/>timestamp</a> from the metadata included in the
capture request.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.temperature">
<td class="entry_name
" rowspan="1">
android.<wbr/>sensor.<wbr/>temperature
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The temperature of the sensor,<wbr/> sampled at the time
exposure began for this frame.<wbr/></p>
<p>The thermal diode being queried should be inside the sensor PCB,<wbr/> or
somewhere close to it.<wbr/></p>
</td>
<td class="entry_units">
Celsius
</td>
<td class="entry_range">
<p>Optional.<wbr/> This value is missing if no temperature is available.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.neutralColorPoint">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>neutral<wbr/>Color<wbr/>Point
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The estimated camera neutral color in the native sensor colorspace at
the time of capture.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This value gives the neutral color point encoded as an RGB value in the
native sensor color space.<wbr/> The neutral color point indicates the
currently estimated white point of the scene illumination.<wbr/> It can be
used to interpolate between the provided color transforms when
processing raw sensor data.<wbr/></p>
<p>The order of the values is R,<wbr/> G,<wbr/> B; where R is in the lowest index.<wbr/></p>
<p>Starting from Android Q,<wbr/> this key will not be present for a MONOCHROME camera,<wbr/> even if
the camera device has RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.noiseProfile">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>noise<wbr/>Profile
</td>
<td class="entry_type">
<span class="entry_type_name">double</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2 x CFA Channels
</span>
<span class="entry_type_visibility"> [public as pairDoubleDouble]</span>
<div class="entry_type_notes">Pairs of noise model coefficients</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Noise model coefficients for each CFA mosaic channel.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This key contains two noise model coefficients for each CFA channel
corresponding to the sensor amplification (S) and sensor readout
noise (O).<wbr/> These are given as pairs of coefficients for each channel
in the same order as channels listed for the CFA layout key
(see <a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a>).<wbr/> This is
represented as an array of Pair&lt;Double,<wbr/> Double&gt;,<wbr/> where
the first member of the Pair at index n is the S coefficient and the
second member is the O coefficient for the nth color channel in the CFA.<wbr/></p>
<p>These coefficients are used in a two parameter noise model to describe
the amount of noise present in the image for each CFA channel.<wbr/> The
noise model used here is:</p>
<p>N(x) = sqrt(Sx + O)</p>
<p>Where x represents the recorded signal of a CFA channel normalized to
the range [0,<wbr/> 1],<wbr/> and S and O are the noise model coefficients for
that channel.<wbr/></p>
<p>A more detailed description of the noise model can be found in the
Adobe DNG specification for the NoiseProfile tag.<wbr/></p>
<p>For a MONOCHROME camera,<wbr/> there is only one color channel.<wbr/> So the noise model coefficients
will only contain one S and one O.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For a CFA layout of RGGB,<wbr/> the list of coefficients would be given as
an array of doubles S0,<wbr/>O0,<wbr/>S1,<wbr/>O1,...,<wbr/> where S0 and O0 are the coefficients
for the red channel,<wbr/> S1 and O1 are the coefficients for the first green
channel,<wbr/> etc.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.profileHueSatMap">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
hue_samples x saturation_samples x value_samples x 3
</span>
<span class="entry_type_visibility"> [system]</span>
<div class="entry_type_notes">Mapping for hue,<wbr/> saturation,<wbr/> and value</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A mapping containing a hue shift,<wbr/> saturation scale,<wbr/> and value scale
for each pixel.<wbr/></p>
</td>
<td class="entry_units">
The hue shift is given in degrees; saturation and value scale factors are
unitless and are between 0 and 1 inclusive
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>hue_<wbr/>samples,<wbr/> saturation_<wbr/>samples,<wbr/> and value_<wbr/>samples are given in
<a href="#static_android.sensor.profileHueSatMapDimensions">android.<wbr/>sensor.<wbr/>profile<wbr/>Hue<wbr/>Sat<wbr/>Map<wbr/>Dimensions</a>.<wbr/></p>
<p>Each entry of this map contains three floats corresponding to the
hue shift,<wbr/> saturation scale,<wbr/> and value scale,<wbr/> respectively; where the
hue shift has the lowest index.<wbr/> The map entries are stored in the key
in nested loop order,<wbr/> with the value divisions in the outer loop,<wbr/> the
hue divisions in the middle loop,<wbr/> and the saturation divisions in the
inner loop.<wbr/> All zero input saturation entries are required to have a
value scale factor of 1.<wbr/>0.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.profileToneCurve">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>profile<wbr/>Tone<wbr/>Curve
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
samples x 2
</span>
<span class="entry_type_visibility"> [system]</span>
<div class="entry_type_notes">Samples defining a spline for a tone-mapping curve</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A list of x,<wbr/>y samples defining a tone-mapping curve for gamma adjustment.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Each sample has an input range of <code>[0,<wbr/> 1]</code> and an output range of
<code>[0,<wbr/> 1]</code>.<wbr/> The first sample is required to be <code>(0,<wbr/> 0)</code>,<wbr/> and the last
sample is required to be <code>(1,<wbr/> 1)</code>.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This key contains a default tone curve that can be applied while
processing the image as a starting point for user adjustments.<wbr/>
The curve is specified as a list of value pairs in linear gamma.<wbr/>
The curve is interpolated using a cubic spline.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.greenSplit">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>green<wbr/>Split
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The worst-case divergence between Bayer green channels.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&gt;= 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This value is an estimate of the worst case split between the
Bayer green channels in the red and blue rows in the sensor color
filter array.<wbr/></p>
<p>The green split is calculated as follows:</p>
<ol>
<li>A 5x5 pixel (or larger) window W within the active sensor array is
chosen.<wbr/> The term 'pixel' here is taken to mean a group of 4 Bayer
mosaic channels (R,<wbr/> Gr,<wbr/> Gb,<wbr/> B).<wbr/> The location and size of the window
chosen is implementation defined,<wbr/> and should be chosen to provide a
green split estimate that is both representative of the entire image
for this camera sensor,<wbr/> and can be calculated quickly.<wbr/></li>
<li>The arithmetic mean of the green channels from the red
rows (mean_<wbr/>Gr) within W is computed.<wbr/></li>
<li>The arithmetic mean of the green channels from the blue
rows (mean_<wbr/>Gb) within W is computed.<wbr/></li>
<li>The maximum ratio R of the two means is computed as follows:
<code>R = max((mean_<wbr/>Gr + 1)/<wbr/>(mean_<wbr/>Gb + 1),<wbr/> (mean_<wbr/>Gb + 1)/<wbr/>(mean_<wbr/>Gr + 1))</code></li>
</ol>
<p>The ratio R is the green split divergence reported for this property,<wbr/>
which represents how much the green channels differ in the mosaic
pattern.<wbr/> This value is typically used to determine the treatment of
the green mosaic channels when demosaicing.<wbr/></p>
<p>The green split value can be roughly interpreted as follows:</p>
<ul>
<li>R &lt; 1.<wbr/>03 is a negligible split (&lt;3% divergence).<wbr/></li>
<li>1.<wbr/>20 &lt;= R &gt;= 1.<wbr/>03 will require some software
correction to avoid demosaic errors (3-20% divergence).<wbr/></li>
<li>R &gt; 1.<wbr/>20 will require strong software correction to produce
a usable image (&gt;20% divergence).<wbr/></li>
</ul>
<p>Starting from Android Q,<wbr/> this key will not be present for a MONOCHROME camera,<wbr/> even if
the camera device has RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The green split given may be a static value based on prior
characterization of the camera sensor using the green split
calculation method given here over a large,<wbr/> representative,<wbr/> sample
set of images.<wbr/> Other methods of calculation that produce equivalent
results,<wbr/> and can be interpreted in the same manner,<wbr/> may be used.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.testPatternData">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A pixel <code>[R,<wbr/> G_<wbr/>even,<wbr/> G_<wbr/>odd,<wbr/> B]</code> that supplies the test pattern
when <a href="#controls_android.sensor.testPatternMode">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode</a> is SOLID_<wbr/>COLOR.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Each color channel is treated as an unsigned 32-bit integer.<wbr/>
The camera device then uses the most significant X bits
that correspond to how many bits are in its Bayer raw sensor
output.<wbr/></p>
<p>For example,<wbr/> a sensor with RAW10 Bayer output would use the
10 most significant bits from each color channel.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.testPatternMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No test pattern mode is used,<wbr/> and the camera
device returns captures from the image sensor.<wbr/></p>
<p>This is the default if the key is not set.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SOLID_COLOR (v3.2)</span>
<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
respective color channel provided in
<a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a>.<wbr/></p>
<p>For example:</p>
<pre><code><a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a> = [0,<wbr/> 0xFFFFFFFF,<wbr/> 0xFFFFFFFF,<wbr/> 0]
</code></pre>
<p>All green pixels are 100% green.<wbr/> All red/<wbr/>blue pixels are black.<wbr/></p>
<pre><code><a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a> = [0xFFFFFFFF,<wbr/> 0,<wbr/> 0xFFFFFFFF,<wbr/> 0]
</code></pre>
<p>All red pixels are 100% red.<wbr/> Only the odd green pixels
are 100% green.<wbr/> All blue pixels are 100% black.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">COLOR_BARS (v3.2)</span>
<span class="entry_type_enum_notes"><p>All pixel data is replaced with an 8-bar color pattern.<wbr/></p>
<p>The vertical bars (left-to-right) are as follows:</p>
<ul>
<li>100% white</li>
<li>yellow</li>
<li>cyan</li>
<li>green</li>
<li>magenta</li>
<li>red</li>
<li>blue</li>
<li>black</li>
</ul>
<p>In general the image would look like the following:</p>
<pre><code>W Y C G M R B K
W Y C G M R B K
W Y C G M R B K
W Y C G M R B K
W Y C G M R B K
.<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
.<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
.<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/> .<wbr/>
(B = Blue,<wbr/> K = Black)
</code></pre>
<p>Each bar should take up 1/<wbr/>8 of the sensor pixel array width.<wbr/>
When this is not possible,<wbr/> the bar size should be rounded
down to the nearest integer and the pattern can repeat
on the right side.<wbr/></p>
<p>Each bar's height must always take up the full sensor
pixel array height.<wbr/></p>
<p>Each pixel in this test pattern must be set to either
0% intensity or 100% intensity.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">COLOR_BARS_FADE_TO_GRAY (v3.2)</span>
<span class="entry_type_enum_notes"><p>The test pattern is similar to COLOR_<wbr/>BARS,<wbr/> except that
each bar should start at its specified color at the top,<wbr/>
and fade to gray at the bottom.<wbr/></p>
<p>Furthermore each bar is further subdivided into a left and
right half.<wbr/> The left half should have a smooth gradient,<wbr/>
and the right half should have a quantized gradient.<wbr/></p>
<p>In particular,<wbr/> the right half's should consist of blocks of the
same color for 1/<wbr/>16th active sensor pixel array width.<wbr/></p>
<p>The least significant bits in the quantized gradient should
be copied from the most significant bits of the smooth gradient.<wbr/></p>
<p>The height of each bar should always be a multiple of 128.<wbr/>
When this is not the case,<wbr/> the pattern should repeat at the bottom
of the image.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PN9 (v3.2)</span>
<span class="entry_type_enum_notes"><p>All pixel data is replaced by a pseudo-random sequence
generated from a PN9 512-bit sequence (typically implemented
in hardware with a linear feedback shift register).<wbr/></p>
<p>The generator should be reset at the beginning of each frame,<wbr/>
and thus each subsequent raw frame with this test pattern should
be exactly the same as the last.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">BLACK (v3.6)</span>
<span class="entry_type_enum_hidden">[test]</span>
<span class="entry_type_enum_notes"><p>All pixel data is replaced by 0% intensity (black) values.<wbr/></p>
<p>This test pattern is identical to SOLID_<wbr/>COLOR with a value of <code>[0,<wbr/> 0,<wbr/> 0,<wbr/> 0]</code> for
<a href="#controls_android.sensor.testPatternData">android.<wbr/>sensor.<wbr/>test<wbr/>Pattern<wbr/>Data</a>.<wbr/> It is recommended that devices implement full
SOLID_<wbr/>COLOR support instead,<wbr/> but BLACK can be used to provide minimal support for a
test pattern suitable for privacy use cases.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CUSTOM1 (v3.2)</span>
<span class="entry_type_enum_value">256</span>
<span class="entry_type_enum_notes"><p>The first custom test pattern.<wbr/> All custom patterns that are
available only on this camera device are at least this numeric
value.<wbr/></p>
<p>All of the custom test patterns will be static
(that is the raw image must not vary from frame to frame).<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>When enabled,<wbr/> the sensor sends a test pattern instead of
doing a real exposure from the camera.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.sensor.availableTestPatternModes">android.<wbr/>sensor.<wbr/>available<wbr/>Test<wbr/>Pattern<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When a test pattern is enabled,<wbr/> all manual sensor controls specified
by android.<wbr/>sensor.<wbr/>* will be ignored.<wbr/> All other controls should
work as normal.<wbr/></p>
<p>For example,<wbr/> if manual flash is enabled,<wbr/> flash firing should still
occur (and that the test pattern remain unmodified,<wbr/> since the flash
would not actually affect it).<wbr/></p>
<p>Defaults to OFF.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>All test patterns are specified in the Bayer domain.<wbr/></p>
<p>The HAL may choose to substitute test patterns from the sensor
with test patterns from on-device memory.<wbr/> In that case,<wbr/> it should be
indistinguishable to the ISP whether the data came from the
sensor interconnect bus (such as CSI2) or memory.<wbr/></p>
<p>For privacy use cases,<wbr/> if the camera device:</p>
<ul>
<li>supports SOLID_<wbr/>COLOR or BLACK test patterns,<wbr/></li>
<li>is a logical multi-camera,<wbr/> and</li>
<li>lists testPatternMode as a physical request key,<wbr/></li>
</ul>
<p>Each physical camera must support the same SOLID_<wbr/>COLOR and/<wbr/>or BLACK test patterns
as the logical camera.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.rollingShutterSkew">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>rolling<wbr/>Shutter<wbr/>Skew
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Duration between the start of exposure for the first row of the image sensor,<wbr/>
and the start of exposure for one past the last row of the image sensor.<wbr/></p>
</td>
<td class="entry_units">
Nanoseconds
</td>
<td class="entry_range">
<p>&gt;= 0 and &lt;
<a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration">StreamConfigurationMap#getOutputMinFrameDuration</a>.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is the exposure time skew between the first and <code>(last+1)</code> row exposure start times.<wbr/> The
first row and the last row are the first and last rows inside of the
<a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
<p>For typical camera sensors that use rolling shutters,<wbr/> this is also equivalent to the frame
readout time.<wbr/></p>
<p>If the image sensor is operating in a binned or cropped mode due to the current output
target resolutions,<wbr/> it's possible this skew is reported to be larger than the exposure
time,<wbr/> for example,<wbr/> since it is based on the full array even if a partial array is read
out.<wbr/> Be sure to scale the number to cover the section of the sensor actually being used
for the outputs you care about.<wbr/> So if your output covers N rows of the active array of
height H,<wbr/> scale this value by N/<wbr/>H to get the total skew for that viewport.<wbr/></p>
<p><em>Note:</em> Prior to Android 11,<wbr/> this field was described as measuring duration from
first to last row of the image sensor,<wbr/> which is not equal to the frame readout time for a
rolling shutter sensor.<wbr/> Implementations generally reported the latter value,<wbr/> so to resolve
the inconsistency,<wbr/> the description has been updated to range from (first,<wbr/> last+1) row
exposure start,<wbr/> instead.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The HAL must report <code>0</code> if the sensor is using global shutter,<wbr/> where all pixels begin
exposure at the same time.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.dynamicBlackLevel">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>dynamic<wbr/>Black<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public]</span>
<div class="entry_type_notes">2x2 raw count block</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A per-frame dynamic black level offset for each of the color filter
arrangement (CFA) mosaic channels.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&gt;= 0 for each.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Camera sensor black levels may vary dramatically for different
capture settings (e.<wbr/>g.<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>).<wbr/> The fixed black
level reported by <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> may be too
inaccurate to represent the actual value on a per-frame basis.<wbr/> The
camera device internal pipeline relies on reliable black level values
to process the raw images appropriately.<wbr/> To get the best image
quality,<wbr/> the camera device may choose to estimate the per frame black
level values either based on optically shielded black regions
(<a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a>) or its internal model.<wbr/></p>
<p>This key reports the camera device estimated per-frame zero light
value for each of the CFA mosaic channels in the camera sensor.<wbr/> The
<a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> may only represent a coarse
approximation of the actual black level values.<wbr/> This value is the
black level used in camera device internal image processing pipeline
and generally more accurate than the fixed black level values.<wbr/>
However,<wbr/> since they are estimated values by the camera device,<wbr/> they
may not be as accurate as the black level values calculated from the
optical black pixels reported by <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a>.<wbr/></p>
<p>The values are given in the same order as channels listed for the CFA
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
nth value given corresponds to the black level offset for the nth
color channel listed in the CFA.<wbr/></p>
<p>For a MONOCHROME camera,<wbr/> all of the 2x2 channels must have the same values.<wbr/></p>
<p>This key will be available if <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> is available or the
camera device advertises this key via <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureResultKeys">CameraCharacteristics#getAvailableCaptureResultKeys</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The values are given in row-column scan order,<wbr/> with the first value
corresponding to the element of the CFA in row=0,<wbr/> column=0.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.dynamicWhiteLevel">
<td class="entry_name
" rowspan="5">
android.<wbr/>sensor.<wbr/>dynamic<wbr/>White<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum raw value output by sensor for this frame.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&gt;= 0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Since the <a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a> may change for different
capture settings (e.<wbr/>g.,<wbr/> <a href="#controls_android.sensor.sensitivity">android.<wbr/>sensor.<wbr/>sensitivity</a>),<wbr/> the white
level will change accordingly.<wbr/> This key is similar to
<a href="#static_android.sensor.info.whiteLevel">android.<wbr/>sensor.<wbr/>info.<wbr/>white<wbr/>Level</a>,<wbr/> but specifies the camera device
estimated white level for each frame.<wbr/></p>
<p>This key will be available if <a href="#static_android.sensor.opticalBlackRegions">android.<wbr/>sensor.<wbr/>optical<wbr/>Black<wbr/>Regions</a> is
available or the camera device advertises this key via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The full bit depth of the sensor must be available in the raw data,<wbr/>
so the value for linear sensors should not be significantly lower
than maximum raw value supported,<wbr/> i.<wbr/>e.<wbr/> 2^(sensor bits per pixel).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.pixelMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">DEFAULT (v3.6)</span>
<span class="entry_type_enum_notes"><p>This is the default sensor pixel mode.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">MAXIMUM_RESOLUTION (v3.6)</span>
<span class="entry_type_enum_notes"><p>In this mode,<wbr/> sensors typically do not bin pixels,<wbr/> as a result can offer larger
image sizes.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Switches sensor pixel mode between maximum resolution mode and default mode.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This key controls whether the camera sensor operates in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>
mode or not.<wbr/> By default,<wbr/> all camera devices operate in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_DEFAULT">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>DEFAULT</a> mode.<wbr/>
When operating in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_DEFAULT">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>DEFAULT</a> mode,<wbr/> sensors
would typically perform pixel binning in order to improve low light
performance,<wbr/> noise reduction etc.<wbr/> However,<wbr/> in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>
mode,<wbr/> sensors typically operate in unbinned mode allowing for a larger image size.<wbr/>
The stream configurations supported in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>
mode are also different from those of
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_DEFAULT">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>DEFAULT</a> mode.<wbr/>
They can be queried through
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#get">CameraCharacteristics#get</a> with
<a href="https://developer.android.com/reference/CameraCharacteristics.html#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION">Camera<wbr/>Characteristics#SCALER_<wbr/>STREAM_<wbr/>CONFIGURATION_<wbr/>MAP_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/>
Unless reported by both
<a href="https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html">StreamConfigurationMap</a>s,<wbr/> the outputs from
<code><a href="#static_android.scaler.streamConfigurationMapMaximumResolution">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map<wbr/>Maximum<wbr/>Resolution</a></code> and
<code><a href="#static_android.scaler.streamConfigurationMap">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map</a></code>
must not be mixed in the same CaptureRequest.<wbr/> In other words,<wbr/> these outputs are
exclusive to each other.<wbr/>
This key does not need to be set for reprocess requests.<wbr/>
This key will be be present on devices supporting the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability.<wbr/> It may also be present on devices which do not support the aforementioned
capability.<wbr/> In that case:</p>
<ul>
<li>
<p>The mandatory stream combinations listed in
<a href="#static_android.scaler.mandatoryMaximumResolutionStreamCombinations">android.<wbr/>scaler.<wbr/>mandatory<wbr/>Maximum<wbr/>Resolution<wbr/>Stream<wbr/>Combinations</a> would not apply.<wbr/></p>
</li>
<li>
<p>The bayer pattern of {@code RAW} streams when
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>
is selected will be the one listed in <a href="#static_android.sensor.info.binningFactor">android.<wbr/>sensor.<wbr/>info.<wbr/>binning<wbr/>Factor</a>.<wbr/></p>
</li>
<li>
<p>The following keys will always be present:</p>
<ul>
<li><a href="#static_android.scaler.streamConfigurationMapMaximumResolution">android.<wbr/>scaler.<wbr/>stream<wbr/>Configuration<wbr/>Map<wbr/>Maximum<wbr/>Resolution</a></li>
<li><a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a></li>
<li><a href="#static_android.sensor.info.pixelArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a></li>
<li><a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a></li>
</ul>
</li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.sensor.rawBinningFactorUsed">
<td class="entry_name
" rowspan="3">
android.<wbr/>sensor.<wbr/>raw<wbr/>Binning<wbr/>Factor<wbr/>Used
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">TRUE (v3.6)</span>
<span class="entry_type_enum_notes"><p>The <code>RAW</code> targets in this capture have <a href="#static_android.sensor.info.binningFactor">android.<wbr/>sensor.<wbr/>info.<wbr/>binning<wbr/>Factor</a> as the
bayer pattern.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FALSE (v3.6)</span>
<span class="entry_type_enum_notes"><p>The <code>RAW</code> targets have a regular bayer pattern in this capture.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether <code>RAW</code> images requested have their bayer pattern as described by
<a href="#static_android.sensor.info.binningFactor">android.<wbr/>sensor.<wbr/>info.<wbr/>binning<wbr/>Factor</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This key will only be present in devices advertising the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability which also advertise <code>REMOSAIC_<wbr/>REPROCESSING</code> capability.<wbr/> On all other devices
RAW targets will have a regular bayer pattern.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_shading" class="section">shading</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.shading.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>shading.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No lens shading correction is applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Apply lens shading corrections,<wbr/> without slowing
frame rate relative to sensor raw output</p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>Apply high-quality lens shading correction,<wbr/> at the
cost of possibly reduced frame rate.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Quality of lens shading correction applied
to the image data.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.shading.availableModes">android.<wbr/>shading.<wbr/>available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to OFF mode,<wbr/> no lens shading correction will be applied by the
camera device,<wbr/> and an identity lens shading map data will be provided
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
shading map with size of <code>[ 4,<wbr/> 3 ]</code>,<wbr/>
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
map shown below:</p>
<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/>
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/>
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/>
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/>
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/>
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 ]
</code></pre>
<p>When set to other modes,<wbr/> lens shading correction will be applied by the camera
device.<wbr/> Applications can request lens shading map data by setting
<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
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
data will be the one applied by the camera device for this capture request.<wbr/></p>
<p>The shading map data may depend on the auto-exposure (AE) and AWB statistics,<wbr/> therefore
the reliability of the map data may be affected by the AE and AWB algorithms.<wbr/> When AE and
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>
OFF),<wbr/> to get best results,<wbr/> it is recommended that the applications wait for the AE and AWB
to be converged before using the returned shading map data.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.shading.strength">
<td class="entry_name
" rowspan="1">
android.<wbr/>shading.<wbr/>strength
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Control the amount of shading correction
applied to the images</p>
</td>
<td class="entry_units">
unitless: 1-10; 10 is full shading
compensation
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.shading.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>shading.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>No lens shading correction is applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Apply lens shading corrections,<wbr/> without slowing
frame rate relative to sensor raw output</p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>Apply high-quality lens shading correction,<wbr/> at the
cost of possibly reduced frame rate.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Quality of lens shading correction applied
to the image data.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.shading.availableModes">android.<wbr/>shading.<wbr/>available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to OFF mode,<wbr/> no lens shading correction will be applied by the
camera device,<wbr/> and an identity lens shading map data will be provided
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
shading map with size of <code>[ 4,<wbr/> 3 ]</code>,<wbr/>
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
map shown below:</p>
<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/>
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/>
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/>
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/>
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/>
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 ]
</code></pre>
<p>When set to other modes,<wbr/> lens shading correction will be applied by the camera
device.<wbr/> Applications can request lens shading map data by setting
<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
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
data will be the one applied by the camera device for this capture request.<wbr/></p>
<p>The shading map data may depend on the auto-exposure (AE) and AWB statistics,<wbr/> therefore
the reliability of the map data may be affected by the AE and AWB algorithms.<wbr/> When AE and
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>
OFF),<wbr/> to get best results,<wbr/> it is recommended that the applications wait for the AE and AWB
to be converged before using the returned shading map data.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.shading.availableModes">
<td class="entry_name
" rowspan="5">
android.<wbr/>shading.<wbr/>available<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">List of enums (android.<wbr/>shading.<wbr/>mode).<wbr/></div>
</td> <!-- entry_type -->
<td class="entry_description">
<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>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.shading.mode">android.<wbr/>shading.<wbr/>mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This list contains lens shading modes that can be set for the camera device.<wbr/>
Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always
list OFF and FAST mode.<wbr/> This includes all FULL level devices.<wbr/>
LEGACY devices will always only support FAST mode.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must support both FAST and HIGH_<wbr/>QUALITY if lens shading correction control is
available on the camera device,<wbr/> but the underlying implementation can be the same for
both modes.<wbr/> That is,<wbr/> if the highest quality implementation on the camera device does not
slow down capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_statistics" class="section">statistics</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.statistics.faceDetectMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Do not include face detection statistics in capture
results.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SIMPLE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Return face rectangle and confidence values only.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FULL (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Return all face
metadata.<wbr/></p>
<p>In this mode,<wbr/> face rectangles,<wbr/> scores,<wbr/> landmarks,<wbr/> and face IDs are all valid.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operating mode for the face detector
unit.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.statistics.info.availableFaceDetectModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Face<wbr/>Detect<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Whether face detection is enabled,<wbr/> and whether it
should output just the basic fields or the full set of
fields.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>SIMPLE mode must fill in <a href="#dynamic_android.statistics.faceRectangles">android.<wbr/>statistics.<wbr/>face<wbr/>Rectangles</a> and
<a href="#dynamic_android.statistics.faceScores">android.<wbr/>statistics.<wbr/>face<wbr/>Scores</a>.<wbr/>
FULL mode must also fill in <a href="#dynamic_android.statistics.faceIds">android.<wbr/>statistics.<wbr/>face<wbr/>Ids</a>,<wbr/> and
<a href="#dynamic_android.statistics.faceLandmarks">android.<wbr/>statistics.<wbr/>face<wbr/>Landmarks</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.statistics.histogramMode">
<td class="entry_name
" rowspan="1">
android.<wbr/>statistics.<wbr/>histogram<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [system as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operating mode for histogram
generation</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.statistics.sharpnessMapMode">
<td class="entry_name
" rowspan="1">
android.<wbr/>statistics.<wbr/>sharpness<wbr/>Map<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [system as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operating mode for sharpness map
generation</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.statistics.hotPixelMapMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Hot pixel map production is disabled.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>Hot pixel map production is enabled.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operating mode for hot pixel map generation.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<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>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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/>
If set to <code>false</code>,<wbr/> no hot pixel map will be returned.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.statistics.lensShadingMapMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Do not include a lens shading map in the capture result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>Include a lens shading map in the capture result.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether the camera device will output the lens
shading map in output result metadata.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<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>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to ON,<wbr/>
<a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> will be provided in
the output result metadata.<wbr/></p>
<p>ON is always supported on devices with the RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.statistics.oisDataMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>ois<wbr/>Data<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.3)</span>
<span class="entry_type_enum_notes"><p>Do not include OIS data in the capture result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.3)</span>
<span class="entry_type_enum_notes"><p>Include OIS data in the capture result.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A control for selecting whether optical stabilization (OIS) position
information is included in output result metadata.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.statistics.info.availableOisDataModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Ois<wbr/>Data<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Since optical image stabilization generally involves motion much faster than the duration
of individual image exposure,<wbr/> multiple OIS samples can be included for a single capture
result.<wbr/> For example,<wbr/> if the OIS reporting operates at 200 Hz,<wbr/> a typical camera operating
at 30fps may have 6-7 OIS samples per capture result.<wbr/> This information can be combined
with the rolling shutter skew to account for lens motion during image exposure in
post-processing algorithms.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.statistics.info.availableFaceDetectModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Face<wbr/>Detect<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">List of enums from android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>OFF is always supported.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.statistics.info.histogramBucketCount">
<td class="entry_name
" rowspan="1">
android.<wbr/>statistics.<wbr/>info.<wbr/>histogram<wbr/>Bucket<wbr/>Count
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Number of histogram buckets
supported</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>&gt;= 64</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.statistics.info.maxFaceCount">
<td class="entry_name
" rowspan="1">
android.<wbr/>statistics.<wbr/>info.<wbr/>max<wbr/>Face<wbr/>Count
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum number of simultaneously detectable
faces.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>0 for cameras without available face detection; otherwise:
<code>&gt;=4</code> for LIMITED or FULL hwlevel devices or
<code>&gt;0</code> for LEGACY devices.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.statistics.info.maxHistogramCount">
<td class="entry_name
" rowspan="1">
android.<wbr/>statistics.<wbr/>info.<wbr/>max<wbr/>Histogram<wbr/>Count
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum value possible for a histogram
bucket</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.statistics.info.maxSharpnessMapValue">
<td class="entry_name
" rowspan="1">
android.<wbr/>statistics.<wbr/>info.<wbr/>max<wbr/>Sharpness<wbr/>Map<wbr/>Value
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [system]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum value possible for a sharpness map
region.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.statistics.info.sharpnessMapSize">
<td class="entry_name
" rowspan="1">
android.<wbr/>statistics.<wbr/>info.<wbr/>sharpness<wbr/>Map<wbr/>Size
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2
</span>
<span class="entry_type_visibility"> [system as size]</span>
<div class="entry_type_notes">width x height</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Dimensions of the sharpness
map</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Must be at least 32 x 32</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.statistics.info.availableHotPixelMapModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Hot<wbr/>Pixel<wbr/>Map<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.statistics.hotPixelMapMode">android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If no hotpixel map output is available for this camera device,<wbr/> this will contain only
<code>false</code>.<wbr/></p>
<p>ON is always supported on devices with the RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.statistics.info.availableLensShadingMapModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Lens<wbr/>Shading<wbr/>Map<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<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
are supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.statistics.lensShadingMapMode">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If no lens shading map output is available for this camera device,<wbr/> this key will
contain only OFF.<wbr/></p>
<p>ON is always supported on devices with the RAW capability.<wbr/>
LEGACY mode devices will always only support OFF.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.statistics.info.availableOisDataModes">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Ois<wbr/>Data<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of OIS data output modes for <a href="#controls_android.statistics.oisDataMode">android.<wbr/>statistics.<wbr/>ois<wbr/>Data<wbr/>Mode</a> that
are supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.statistics.oisDataMode">android.<wbr/>statistics.<wbr/>ois<wbr/>Data<wbr/>Mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If no OIS data output is available for this camera device,<wbr/> this key will
contain only OFF.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.statistics.faceDetectMode">
<td class="entry_name
" rowspan="5">
android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Do not include face detection statistics in capture
results.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SIMPLE (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Return face rectangle and confidence values only.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FULL (v3.2)</span>
<span class="entry_type_enum_optional">[optional]</span>
<span class="entry_type_enum_notes"><p>Return all face
metadata.<wbr/></p>
<p>In this mode,<wbr/> face rectangles,<wbr/> scores,<wbr/> landmarks,<wbr/> and face IDs are all valid.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operating mode for the face detector
unit.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.statistics.info.availableFaceDetectModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Face<wbr/>Detect<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Whether face detection is enabled,<wbr/> and whether it
should output just the basic fields or the full set of
fields.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>SIMPLE mode must fill in <a href="#dynamic_android.statistics.faceRectangles">android.<wbr/>statistics.<wbr/>face<wbr/>Rectangles</a> and
<a href="#dynamic_android.statistics.faceScores">android.<wbr/>statistics.<wbr/>face<wbr/>Scores</a>.<wbr/>
FULL mode must also fill in <a href="#dynamic_android.statistics.faceIds">android.<wbr/>statistics.<wbr/>face<wbr/>Ids</a>,<wbr/> and
<a href="#dynamic_android.statistics.faceLandmarks">android.<wbr/>statistics.<wbr/>face<wbr/>Landmarks</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.faceIds">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>face<wbr/>Ids
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of unique IDs for detected faces.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Each detected face is given a unique ID that is valid for as long as the face is visible
to the camera device.<wbr/> A face that leaves the field of view and later returns may be
assigned a new ID.<wbr/></p>
<p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> == FULL</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.faceLandmarks">
<td class="entry_name
" rowspan="5">
android.<wbr/>statistics.<wbr/>face<wbr/>Landmarks
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 6
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">(leftEyeX,<wbr/> leftEyeY,<wbr/> rightEyeX,<wbr/> rightEyeY,<wbr/> mouthX,<wbr/> mouthY)</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of landmarks for detected
faces.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For devices not supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system always follows that of <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 top-left pixel of the active array.<wbr/></p>
<p>For devices supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system depends on the mode being set.<wbr/>
When the distortion correction mode is OFF,<wbr/> the coordinate system follows
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> with
<code>(0,<wbr/> 0)</code> being the top-left pixel of the pre-correction active array.<wbr/>
When the distortion correction mode is not OFF,<wbr/> the coordinate system follows
<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 top-left pixel of the active array.<wbr/></p>
<p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> == FULL.<wbr/></p>
<p>Starting from API level 30,<wbr/> the coordinate system of activeArraySize or
preCorrectionActiveArraySize is used to represent post-zoomRatio field of view,<wbr/> not
pre-zoomRatio field of view.<wbr/> This means that if the relative position of faces and
the camera device doesn't change,<wbr/> when zooming in by increasing
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> the face landmarks move farther away from the center of the
activeArray or preCorrectionActiveArray.<wbr/> If <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> is set to 1.<wbr/>0
(default),<wbr/> the face landmarks coordinates won't change as <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>
changes.<wbr/> See <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for details.<wbr/> Whether to use activeArraySize or
preCorrectionActiveArraySize still depends on distortion correction mode.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must always report face landmarks in the coordinate system of pre-correction
active array.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.faceRectangles">
<td class="entry_name
" rowspan="5">
android.<wbr/>statistics.<wbr/>face<wbr/>Rectangles
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as rectangle]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<div class="entry_type_notes">(xmin,<wbr/> ymin,<wbr/> xmax,<wbr/> ymax).<wbr/> (0,<wbr/>0) is top-left of active pixel area</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of the bounding rectangles for detected
faces.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For devices not supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system always follows that of <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 top-left pixel of the active array.<wbr/></p>
<p>For devices supporting <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> control,<wbr/> the coordinate
system depends on the mode being set.<wbr/>
When the distortion correction mode is OFF,<wbr/> the coordinate system follows
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> with
<code>(0,<wbr/> 0)</code> being the top-left pixel of the pre-correction active array.<wbr/>
When the distortion correction mode is not OFF,<wbr/> the coordinate system follows
<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 top-left pixel of the active array.<wbr/></p>
<p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> != OFF.<wbr/></p>
<p>Starting from API level 30,<wbr/> the coordinate system of activeArraySize or
preCorrectionActiveArraySize is used to represent post-zoomRatio field of view,<wbr/> not
pre-zoomRatio field of view.<wbr/> This means that if the relative position of faces and
the camera device doesn't change,<wbr/> when zooming in by increasing
<a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> the face rectangles grow larger and move farther away from
the center of the activeArray or preCorrectionActiveArray.<wbr/> If <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>
is set to 1.<wbr/>0 (default),<wbr/> the face rectangles won't change as <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a>
changes.<wbr/> See <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a> for details.<wbr/> Whether to use activeArraySize or
preCorrectionActiveArraySize still depends on distortion correction mode.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must always report face rectangles in the coordinate system of pre-correction
active array.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.faceScores">
<td class="entry_name
" rowspan="5">
android.<wbr/>statistics.<wbr/>face<wbr/>Scores
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of the face confidence scores for
detected faces</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>1-100</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_BC">BC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Only available if <a href="#controls_android.statistics.faceDetectMode">android.<wbr/>statistics.<wbr/>face<wbr/>Detect<wbr/>Mode</a> != OFF.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The value should be meaningful (for example,<wbr/> setting 100 at
all times is illegal).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.faces">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>faces
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [java_public as face]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[legacy] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of the faces detected through camera face detection
in this capture.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.histogram">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>histogram
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 3
</span>
<span class="entry_type_visibility"> [system]</span>
<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>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A 3-channel histogram based on the raw
sensor data</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The k'th bucket (0-based) covers the input range
(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/>
(k + 1) * w /<wbr/> N ).<wbr/> If only a monochrome sharpness map is
supported,<wbr/> all channels should have the same data</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.histogramMode">
<td class="entry_name
" rowspan="1">
android.<wbr/>statistics.<wbr/>histogram<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [system as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operating mode for histogram
generation</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.sharpnessMap">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>sharpness<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x m x 3
</span>
<span class="entry_type_visibility"> [system]</span>
<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>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A 3-channel sharpness map,<wbr/> based on the raw
sensor data</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If only a monochrome sharpness map is supported,<wbr/>
all channels should have the same data</p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.sharpnessMapMode">
<td class="entry_name
" rowspan="1">
android.<wbr/>statistics.<wbr/>sharpness<wbr/>Map<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [system as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operating mode for sharpness map
generation</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_FUTURE">FUTURE</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.lensShadingCorrectionMap">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Correction<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [java_public as lensShadingMap]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The shading map is a low-resolution floating-point map
that lists the coefficients used to correct for vignetting,<wbr/> for each
Bayer color channel.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Each gain factor is &gt;= 1</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The map provided here is the same map that is used by the camera device to
correct both color shading and vignetting for output non-RAW images.<wbr/></p>
<p>When there is no lens shading correction applied to RAW
output images (<a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a> <code>==</code>
false),<wbr/> this map is the complete lens shading correction
map; when there is some lens shading correction applied to
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
correction map that needs to be applied to get shading
corrected images that match the camera device's output for
non-RAW formats.<wbr/></p>
<p>For a complete shading correction map,<wbr/> the least shaded
section of the image will have a gain factor of 1; all
other sections will have gains above 1.<wbr/></p>
<p>When <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> = TRANSFORM_<wbr/>MATRIX,<wbr/> the map
will take into account the colorCorrection settings.<wbr/></p>
<p>The shading map is for the entire active pixel array,<wbr/> and is not
affected by the crop region specified in the request.<wbr/> Each shading map
entry is the value of the shading compensation map over a specific
pixel on the sensor.<wbr/> Specifically,<wbr/> with a (N x M) resolution shading
map,<wbr/> and an active pixel array size (W x H),<wbr/> shading map entry
(x,<wbr/>y) ϵ (0 ...<wbr/> N-1,<wbr/> 0 ...<wbr/> M-1) is the value of the shading map at
pixel ( ((W-1)/<wbr/>(N-1)) * x,<wbr/> ((H-1)/<wbr/>(M-1)) * y) for the four color channels.<wbr/>
The map is assumed to be bilinearly interpolated between the sample points.<wbr/></p>
<p>The channel order is [R,<wbr/> Geven,<wbr/> Godd,<wbr/> B],<wbr/> where Geven is the green
channel for the even rows of a Bayer pattern,<wbr/> and Godd is the odd rows.<wbr/>
The shading map is stored in a fully interleaved format.<wbr/></p>
<p>The shading map will generally have on the order of 30-40 rows and columns,<wbr/>
and will be smaller than 64x64.<wbr/></p>
<p>As an example,<wbr/> given a very small map defined as:</p>
<pre><code>width,<wbr/>height = [ 4,<wbr/> 3 ]
values =
[ 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/>
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/>
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/>
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/>
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/>
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 ]
</code></pre>
<p>The low-resolution scaling map images for each channel are
(displayed using nearest-neighbor interpolation):</p>
<p><img alt="Red lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png"/>
<img alt="Green (even rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png"/>
<img alt="Green (odd rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png"/>
<img alt="Blue lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png"/></p>
<p>As a visualization only,<wbr/> inverting the full-color map to recover an
image of a gray wall (using bicubic interpolation for visual quality) as captured by the sensor gives:</p>
<p><img alt="Image of a uniform white wall (inverse shading map)" src="images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png"/></p>
<p>For a MONOCHROME camera,<wbr/> all of the 2x2 channels must have the same values.<wbr/> An example
shading map for such a camera is defined as:</p>
<pre><code><a href="#static_android.lens.info.shadingMapSize">android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size</a> = [ 4,<wbr/> 3 ]
<a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> =
[ 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/>
1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/>
1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/>
1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/>
1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/>
1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3 ]
</code></pre>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.lensShadingMap">
<td class="entry_name
" rowspan="5">
android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n x m
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[full] </span>
<div class="entry_type_notes">2D array of float gain factors per channel to correct lens shading</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The shading map is a low-resolution floating-point map
that lists the coefficients used to correct for vignetting and color shading,<wbr/>
for each Bayer color channel of RAW image data.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Each gain factor is &gt;= 1</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The map provided here is the same map that is used by the camera device to
correct both color shading and vignetting for output non-RAW images.<wbr/></p>
<p>When there is no lens shading correction applied to RAW
output images (<a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a> <code>==</code>
false),<wbr/> this map is the complete lens shading correction
map; when there is some lens shading correction applied to
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
correction map that needs to be applied to get shading
corrected images that match the camera device's output for
non-RAW formats.<wbr/></p>
<p>For a complete shading correction map,<wbr/> the least shaded
section of the image will have a gain factor of 1; all
other sections will have gains above 1.<wbr/></p>
<p>When <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> = TRANSFORM_<wbr/>MATRIX,<wbr/> the map
will take into account the colorCorrection settings.<wbr/></p>
<p>The shading map is for the entire active pixel array,<wbr/> and is not
affected by the crop region specified in the request.<wbr/> Each shading map
entry is the value of the shading compensation map over a specific
pixel on the sensor.<wbr/> Specifically,<wbr/> with a (N x M) resolution shading
map,<wbr/> and an active pixel array size (W x H),<wbr/> shading map entry
(x,<wbr/>y) ϵ (0 ...<wbr/> N-1,<wbr/> 0 ...<wbr/> M-1) is the value of the shading map at
pixel ( ((W-1)/<wbr/>(N-1)) * x,<wbr/> ((H-1)/<wbr/>(M-1)) * y) for the four color channels.<wbr/>
The map is assumed to be bilinearly interpolated between the sample points.<wbr/></p>
<p>For a Bayer camera,<wbr/> the channel order is [R,<wbr/> Geven,<wbr/> Godd,<wbr/> B],<wbr/> where Geven is
the green channel for the even rows of a Bayer pattern,<wbr/> and Godd is the odd rows.<wbr/>
The shading map is stored in a fully interleaved format,<wbr/> and its size
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>
<p>The shading map will generally have on the order of 30-40 rows and columns,<wbr/>
and will be smaller than 64x64.<wbr/></p>
<p>As an example,<wbr/> given a very small map for a Bayer camera defined as:</p>
<pre><code><a href="#static_android.lens.info.shadingMapSize">android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size</a> = [ 4,<wbr/> 3 ]
<a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> =
[ 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/>
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/>
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/>
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/>
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/>
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 ]
</code></pre>
<p>The low-resolution scaling map images for each channel are
(displayed using nearest-neighbor interpolation):</p>
<p><img alt="Red lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png"/>
<img alt="Green (even rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png"/>
<img alt="Green (odd rows) lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png"/>
<img alt="Blue lens shading map" src="images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png"/></p>
<p>As a visualization only,<wbr/> inverting the full-color map to recover an
image of a gray wall (using bicubic interpolation for visual quality)
as captured by the sensor gives:</p>
<p><img alt="Image of a uniform white wall (inverse shading map)" src="images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png"/></p>
<p>For a MONOCHROME camera,<wbr/> all of the 2x2 channels must have the same values.<wbr/> An example
shading map for such a camera is defined as:</p>
<pre><code><a href="#static_android.lens.info.shadingMapSize">android.<wbr/>lens.<wbr/>info.<wbr/>shading<wbr/>Map<wbr/>Size</a> = [ 4,<wbr/> 3 ]
<a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> =
[ 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/>
1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/>
1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/> 1.<wbr/>1,<wbr/>
1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>0,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/>
1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/>
1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>2,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3,<wbr/> 1.<wbr/>3 ]
</code></pre>
<p>Note that the RAW image data might be subject to lens shading
correction not reported on this map.<wbr/> Query
<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
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>
is TRUE,<wbr/> the RAW image data is subject to partial or full lens shading
correction.<wbr/> In the case full lens shading correction is applied to RAW
images,<wbr/> the gain factor map reported in this key will contain all 1.<wbr/>0 gains.<wbr/>
In other words,<wbr/> the map reported in this key is the remaining lens shading
that needs to be applied on the RAW image to get images without lens shading
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
formats.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The lens shading map calculation may depend on exposure and white balance statistics.<wbr/>
When AE and 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> OFF),<wbr/> the HAL
may have all the information it need to generate most accurate lens shading map.<wbr/> When
AE or AWB are in manual mode
(<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
may be adversely impacted by manual exposure or white balance parameters.<wbr/> To avoid
generating unreliable shading map data,<wbr/> the HAL may choose to lock the shading map with
the latest known good map generated when the AE and AWB are in AUTO modes.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.predictedColorGains">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>statistics.<wbr/>predicted<wbr/>Color<wbr/>Gains
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [hidden]</span>
<span class="entry_type_deprecated">[deprecated] </span>
<div class="entry_type_notes">A 1D array of floats for 4 color channel gains</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The best-fit color channel gains calculated
by the camera device's statistics units for the current output frame.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This may be different than the gains used for this frame,<wbr/>
since statistics processing on data from a new frame
typically completes after the transform has already been
applied to that frame.<wbr/></p>
<p>The 4 channel gains are defined in Bayer domain,<wbr/>
see <a href="#controls_android.colorCorrection.gains">android.<wbr/>color<wbr/>Correction.<wbr/>gains</a> for details.<wbr/></p>
<p>This value should always be calculated by the auto-white balance (AWB) block,<wbr/>
regardless of the android.<wbr/>control.<wbr/>* current values.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.predictedColorTransform">
<td class="entry_name
entry_name_deprecated
" rowspan="3">
android.<wbr/>statistics.<wbr/>predicted<wbr/>Color<wbr/>Transform
</td>
<td class="entry_type">
<span class="entry_type_name">rational</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
3 x 3
</span>
<span class="entry_type_visibility"> [hidden]</span>
<span class="entry_type_deprecated">[deprecated] </span>
<div class="entry_type_notes">3x3 rational matrix in row-major order</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The best-fit color transform matrix estimate
calculated by the camera device's statistics units for the current
output frame.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><span class="entry_range_deprecated">Deprecated</span>. Do not use.</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The camera device will provide the estimate from its
statistics unit on the white balance transforms to use
for the next frame.<wbr/> These are the values the camera device believes
are the best fit for the current output frame.<wbr/> This may
be different than the transform used for this frame,<wbr/> since
statistics processing on data from a new frame typically
completes after the transform has already been applied to
that frame.<wbr/></p>
<p>These estimates must be provided for all frames,<wbr/> even if
capture settings and color transforms are set by the application.<wbr/></p>
<p>This value should always be calculated by the auto-white balance (AWB) block,<wbr/>
regardless of the android.<wbr/>control.<wbr/>* current values.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.sceneFlicker">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>scene<wbr/>Flicker
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">NONE (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device does not detect any flickering illumination
in the current scene.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">50HZ (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device detects illumination flickering at 50Hz
in the current scene.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">60HZ (v3.2)</span>
<span class="entry_type_enum_notes"><p>The camera device detects illumination flickering at 60Hz
in the current scene.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The camera device estimated scene illumination lighting
frequency.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Many light sources,<wbr/> such as most fluorescent lights,<wbr/> flicker at a rate
that depends on the local utility power standards.<wbr/> This flicker must be
accounted for by auto-exposure routines to avoid artifacts in captured images.<wbr/>
The camera device uses this entry to tell the application what the scene
illuminant frequency is.<wbr/></p>
<p>When manual exposure control is enabled
(<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> ==
OFF</code>),<wbr/> the <a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a> doesn't perform
antibanding,<wbr/> and the application can ensure it selects
exposure times that do not cause banding issues by looking
into this metadata field.<wbr/> See
<a href="#controls_android.control.aeAntibandingMode">android.<wbr/>control.<wbr/>ae<wbr/>Antibanding<wbr/>Mode</a> for more details.<wbr/></p>
<p>Reports NONE if there doesn't appear to be flickering illumination.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.hotPixelMapMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Hot pixel map production is disabled.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>Hot pixel map production is enabled.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Operating mode for hot pixel map generation.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<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>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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/>
If set to <code>false</code>,<wbr/> no hot pixel map will be returned.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.hotPixelMap">
<td class="entry_name
" rowspan="5">
android.<wbr/>statistics.<wbr/>hot<wbr/>Pixel<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2 x n
</span>
<span class="entry_type_visibility"> [public as point]</span>
<div class="entry_type_notes">list of coordinates based on android.<wbr/>sensor.<wbr/>pixel<wbr/>Array<wbr/>Size</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of <code>(x,<wbr/> y)</code> coordinates of hot/<wbr/>defective pixels on the sensor.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>n &lt;= number of pixels on the sensor.<wbr/>
The <code>(x,<wbr/> y)</code> coordinates must be bounded by
<a href="#static_android.sensor.info.pixelArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pixel<wbr/>Array<wbr/>Size</a>.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A coordinate <code>(x,<wbr/> y)</code> must lie between <code>(0,<wbr/> 0)</code>,<wbr/> and
<code>(width - 1,<wbr/> height - 1)</code> (inclusive),<wbr/> which are the top-left and
bottom-right of the pixel array,<wbr/> respectively.<wbr/> The width and
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/>
This may include hot pixels that lie outside of the active array
bounds given by <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A hotpixel map contains the coordinates of pixels on the camera
sensor that do report valid values (usually due to defects in
the camera sensor).<wbr/> This includes pixels that are stuck at certain
values,<wbr/> or have a response that does not accurately encode the
incoming light from the scene.<wbr/></p>
<p>To avoid performance issues,<wbr/> there should be significantly fewer hot
pixels than actual pixels on the camera sensor.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.lensShadingMapMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
<span class="entry_type_enum_notes"><p>Do not include a lens shading map in the capture result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
<span class="entry_type_enum_notes"><p>Include a lens shading map in the capture result.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether the camera device will output the lens
shading map in output result metadata.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<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>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_RAW">RAW</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to ON,<wbr/>
<a href="#dynamic_android.statistics.lensShadingMap">android.<wbr/>statistics.<wbr/>lens<wbr/>Shading<wbr/>Map</a> will be provided in
the output result metadata.<wbr/></p>
<p>ON is always supported on devices with the RAW capability.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.oisDataMode">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>ois<wbr/>Data<wbr/>Mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.3)</span>
<span class="entry_type_enum_notes"><p>Do not include OIS data in the capture result.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.3)</span>
<span class="entry_type_enum_notes"><p>Include OIS data in the capture result.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A control for selecting whether optical stabilization (OIS) position
information is included in output result metadata.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.statistics.info.availableOisDataModes">android.<wbr/>statistics.<wbr/>info.<wbr/>available<wbr/>Ois<wbr/>Data<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Since optical image stabilization generally involves motion much faster than the duration
of individual image exposure,<wbr/> multiple OIS samples can be included for a single capture
result.<wbr/> For example,<wbr/> if the OIS reporting operates at 200 Hz,<wbr/> a typical camera operating
at 30fps may have 6-7 OIS samples per capture result.<wbr/> This information can be combined
with the rolling shutter skew to account for lens motion during image exposure in
post-processing algorithms.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.oisTimestamps">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>ois<wbr/>Timestamps
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of timestamps of OIS samples,<wbr/> in nanoseconds.<wbr/></p>
</td>
<td class="entry_units">
nanoseconds
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array contains the timestamps of OIS samples.<wbr/> The timestamps are in the same
timebase as and comparable to <a href="#dynamic_android.sensor.timestamp">android.<wbr/>sensor.<wbr/>timestamp</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.oisXShifts">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>ois<wbr/>XShifts
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of shifts of OIS samples,<wbr/> in x direction.<wbr/></p>
</td>
<td class="entry_units">
Pixels in active array.<wbr/>
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array contains the amount of shifts in x direction,<wbr/> in pixels,<wbr/> based on OIS samples.<wbr/>
A positive value is a shift from left to right in the pre-correction active array
coordinate system.<wbr/> For example,<wbr/> if the optical center is (1000,<wbr/> 500) in pre-correction
active array coordinates,<wbr/> a shift of (3,<wbr/> 0) puts the new optical center at (1003,<wbr/> 500).<wbr/></p>
<p>The number of shifts must match the number of timestamps in
<a href="#dynamic_android.statistics.oisTimestamps">android.<wbr/>statistics.<wbr/>ois<wbr/>Timestamps</a>.<wbr/></p>
<p>The OIS samples are not affected by whether lens distortion correction is enabled (on
supporting devices).<wbr/> They are always reported in pre-correction active array coordinates,<wbr/>
since the scaling of OIS shifts would depend on the specific spot on the sensor the shift
is needed.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.oisYShifts">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>ois<wbr/>YShifts
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of shifts of OIS samples,<wbr/> in y direction.<wbr/></p>
</td>
<td class="entry_units">
Pixels in active array.<wbr/>
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array contains the amount of shifts in y direction,<wbr/> in pixels,<wbr/> based on OIS samples.<wbr/>
A positive value is a shift from top to bottom in pre-correction active array coordinate
system.<wbr/> For example,<wbr/> if the optical center is (1000,<wbr/> 500) in active array coordinates,<wbr/> a
shift of (0,<wbr/> 5) puts the new optical center at (1000,<wbr/> 505).<wbr/></p>
<p>The number of shifts must match the number of timestamps in
<a href="#dynamic_android.statistics.oisTimestamps">android.<wbr/>statistics.<wbr/>ois<wbr/>Timestamps</a>.<wbr/></p>
<p>The OIS samples are not affected by whether lens distortion correction is enabled (on
supporting devices).<wbr/> They are always reported in pre-correction active array coordinates,<wbr/>
since the scaling of OIS shifts would depend on the specific spot on the sensor the shift
is needed.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.oisSamples">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>ois<wbr/>Samples
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [java_public as oisSample]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of optical stabilization (OIS) position samples.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Each OIS sample contains the timestamp and the amount of shifts in x and y direction,<wbr/>
in pixels,<wbr/> of the OIS sample.<wbr/></p>
<p>A positive value for a shift in x direction is a shift from left to right in the
pre-correction active array coordinate system.<wbr/> For example,<wbr/> if the optical center is
(1000,<wbr/> 500) in pre-correction active array coordinates,<wbr/> a shift of (3,<wbr/> 0) puts the new
optical center at (1003,<wbr/> 500).<wbr/></p>
<p>A positive value for a shift in y direction is a shift from top to bottom in
pre-correction active array coordinate system.<wbr/> For example,<wbr/> if the optical center is
(1000,<wbr/> 500) in active array coordinates,<wbr/> a shift of (0,<wbr/> 5) puts the new optical center at
(1000,<wbr/> 505).<wbr/></p>
<p>The OIS samples are not affected by whether lens distortion correction is enabled (on
supporting devices).<wbr/> They are always reported in pre-correction active array coordinates,<wbr/>
since the scaling of OIS shifts would depend on the specific spot on the sensor the shift
is needed.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.lensIntrinsicsSamples">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>lens<wbr/>Intrinsics<wbr/>Samples
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [java_public as lensIntrinsicsSample]</span>
<span class="entry_type_synthetic">[synthetic] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of intra-frame lens intrinsic samples.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Contains an array of intra-frame <a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a> updates.<wbr/> This must
not be confused or compared to <a href="#dynamic_android.statistics.oisSamples">android.<wbr/>statistics.<wbr/>ois<wbr/>Samples</a>.<wbr/> Although OIS could be the
main driver,<wbr/> all relevant factors such as focus distance and optical zoom must also
be included.<wbr/> Do note that OIS samples must not be applied on top of the lens intrinsic
samples.<wbr/>
Support for this capture result can be queried via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureResultKeys">CameraCharacteristics#getAvailableCaptureResultKeys</a>.<wbr/>
If available,<wbr/> clients can expect multiple samples per capture result.<wbr/> The specific
amount will depend on current frame duration and sampling rate.<wbr/> Generally a sampling rate
greater than or equal to 200Hz is considered sufficient for high quality results.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.lensIntrinsicTimestamps">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>lens<wbr/>Intrinsic<wbr/>Timestamps
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of timestamps of lens intrinsics samples,<wbr/> in nanoseconds.<wbr/></p>
</td>
<td class="entry_units">
nanoseconds
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The array contains the timestamps of lens intrinsics samples.<wbr/> The timestamps are in the
same timebase as and comparable to <a href="#dynamic_android.sensor.timestamp">android.<wbr/>sensor.<wbr/>timestamp</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.statistics.lensIntrinsicSamples">
<td class="entry_name
" rowspan="3">
android.<wbr/>statistics.<wbr/>lens<wbr/>Intrinsic<wbr/>Samples
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
5 x n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>An array of intra-frame lens intrinsics.<wbr/></p>
</td>
<td class="entry_units">
Pixels in the android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size coordinate system.<wbr/>
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The data layout and contents of individual array entries matches with
<a href="#static_android.lens.intrinsicCalibration">android.<wbr/>lens.<wbr/>intrinsic<wbr/>Calibration</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_tonemap" class="section">tonemap</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.tonemap.curveBlue">
<td class="entry_name
" rowspan="3">
android.<wbr/>tonemap.<wbr/>curve<wbr/>Blue
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 2
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[full] </span>
<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>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the blue
channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
CONTRAST_<wbr/>CURVE.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.tonemap.curveGreen">
<td class="entry_name
" rowspan="3">
android.<wbr/>tonemap.<wbr/>curve<wbr/>Green
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 2
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[full] </span>
<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>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the green
channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
CONTRAST_<wbr/>CURVE.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.tonemap.curveRed">
<td class="entry_name
" rowspan="5">
android.<wbr/>tonemap.<wbr/>curve<wbr/>Red
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 2
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[full] </span>
<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>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the red
channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
CONTRAST_<wbr/>CURVE.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>0-1 on both input and output coordinates,<wbr/> normalized
as a floating-point value such that 0 == black and 1 == white.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Each channel's curve is defined by an array of control points:</p>
<pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> =
[ P0in,<wbr/> P0out,<wbr/> P1in,<wbr/> P1out,<wbr/> P2in,<wbr/> P2out,<wbr/> P3in,<wbr/> P3out,<wbr/> ...,<wbr/> PNin,<wbr/> PNout ]
2 &lt;= N &lt;= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
<p>These are sorted in order of increasing <code>Pin</code>; it is
required that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
define a complete mapping.<wbr/> For input values between control points,<wbr/>
the camera device must linearly interpolate between the control
points.<wbr/></p>
<p>Each curve can have an independent number of points,<wbr/> and the number
of points can be less than max (that is,<wbr/> the request doesn't have to
always provide a curve with number of points equivalent to
<a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
<p>For devices with MONOCHROME capability,<wbr/> all three channels must have the same set of
control points.<wbr/></p>
<p>A few examples,<wbr/> and their corresponding graphical mappings; these
only specify the red channel and the precision is limited to 4
digits,<wbr/> for conciseness.<wbr/></p>
<p>Linear mapping:</p>
<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 ]
</code></pre>
<p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
<p>Invert mapping:</p>
<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 ]
</code></pre>
<p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
<p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
<pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
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/>
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/>
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/>
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 ]
</code></pre>
<p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
<p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
<pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
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/>
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/>
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/>
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 ]
</code></pre>
<p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For good quality of mapping,<wbr/> at least 128 control points are
preferred.<wbr/></p>
<p>A typical use case of this would be a gamma-1/<wbr/>2.<wbr/>2 curve,<wbr/> with as many
control points used as are available.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.tonemap.curve">
<td class="entry_name
" rowspan="5">
android.<wbr/>tonemap.<wbr/>curve
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [java_public as tonemapCurve]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a>
is CONTRAST_<wbr/>CURVE.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The tonemapCurve consist of three curves for each of red,<wbr/> green,<wbr/> and blue
channels respectively.<wbr/> The following example uses the red channel as an
example.<wbr/> The same logic applies to green and blue channel.<wbr/>
Each channel's curve is defined by an array of control points:</p>
<pre><code>curveRed =
[ 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) ]
2 &lt;= N &lt;= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
<p>These are sorted in order of increasing <code>Pin</code>; it is always
guaranteed that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
define a complete mapping.<wbr/> For input values between control points,<wbr/>
the camera device must linearly interpolate between the control
points.<wbr/></p>
<p>Each curve can have an independent number of points,<wbr/> and the number
of points can be less than max (that is,<wbr/> the request doesn't have to
always provide a curve with number of points equivalent to
<a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
<p>For devices with MONOCHROME capability,<wbr/> all three channels must have the same set of
control points.<wbr/></p>
<p>A few examples,<wbr/> and their corresponding graphical mappings; these
only specify the red channel and the precision is limited to 4
digits,<wbr/> for conciseness.<wbr/></p>
<p>Linear mapping:</p>
<pre><code>curveRed = [ (0,<wbr/> 0),<wbr/> (1.<wbr/>0,<wbr/> 1.<wbr/>0) ]
</code></pre>
<p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
<p>Invert mapping:</p>
<pre><code>curveRed = [ (0,<wbr/> 1.<wbr/>0),<wbr/> (1.<wbr/>0,<wbr/> 0) ]
</code></pre>
<p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
<p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
<pre><code>curveRed = [
(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/>
(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/>
(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/>
(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) ]
</code></pre>
<p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
<p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
<pre><code>curveRed = [
(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/>
(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/>
(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/>
(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) ]
</code></pre>
<p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry is created by the framework from the curveRed,<wbr/> curveGreen and
curveBlue entries.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.tonemap.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>tonemap.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">CONTRAST_CURVE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Use the tone mapping curve specified in
the <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>* entries.<wbr/></p>
<p>All color enhancement and tonemapping must be disabled,<wbr/> except
for applying the tonemapping curve specified by
<a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/></p>
<p>Must not slow down frame rate relative to raw
sensor output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Advanced gamma mapping and color enhancement may be applied,<wbr/> without
reducing frame rate compared to raw sensor output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>High-quality gamma mapping and color enhancement will be applied,<wbr/> at
the cost of possibly reduced frame rate compared to raw sensor output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">GAMMA_VALUE (v3.2)</span>
<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 perform
tonemapping.<wbr/></p>
<p>All color enhancement and tonemapping must be disabled,<wbr/> except
for applying the tonemapping curve specified by <a href="#controls_android.tonemap.gamma">android.<wbr/>tonemap.<wbr/>gamma</a>.<wbr/></p>
<p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PRESET_CURVE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Use the preset tonemapping curve specified in
<a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a> to perform tonemapping.<wbr/></p>
<p>All color enhancement and tonemapping must be disabled,<wbr/> except
for applying the tonemapping curve specified by
<a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a>.<wbr/></p>
<p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>High-level global contrast/<wbr/>gamma/<wbr/>tonemapping control.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.tonemap.availableToneMapModes">android.<wbr/>tonemap.<wbr/>available<wbr/>Tone<wbr/>Map<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When switching to an application-defined contrast curve by setting
<a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> to CONTRAST_<wbr/>CURVE,<wbr/> the curve is defined
per-channel with a set of <code>(in,<wbr/> out)</code> points that specify the
mapping from input high-bit-depth pixel value to the output
low-bit-depth value.<wbr/> Since the actual pixel ranges of both input
and output may change depending on the camera pipeline,<wbr/> the values
are specified by normalized floating-point numbers.<wbr/></p>
<p>More-complex color mapping operations such as 3D color look-up
tables,<wbr/> selective chroma enhancement,<wbr/> or other non-linear color
transforms will be disabled when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
CONTRAST_<wbr/>CURVE.<wbr/></p>
<p>When using either FAST or HIGH_<wbr/>QUALITY,<wbr/> the camera device will
emit its own tonemap curve in <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/>
These values are always available,<wbr/> and as close as possible to the
actually used nonlinear/<wbr/>nonglobal transforms.<wbr/></p>
<p>If a request is sent with CONTRAST_<wbr/>CURVE with the camera device's
provided curve in FAST or HIGH_<wbr/>QUALITY,<wbr/> the image's tonemap will be
roughly the same.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.tonemap.gamma">
<td class="entry_name
" rowspan="3">
android.<wbr/>tonemap.<wbr/>gamma
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
GAMMA_<wbr/>VALUE</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The tonemap curve will be defined the following formula:</p>
<ul>
<li>OUT = pow(IN,<wbr/> 1.<wbr/>0 /<wbr/> gamma)</li>
</ul>
<p>where IN and OUT is the input pixel value scaled to range [0.<wbr/>0,<wbr/> 1.<wbr/>0],<wbr/>
pow is the power function and gamma is the gamma value specified by this
key.<wbr/></p>
<p>The same curve will be applied to all color channels.<wbr/> The camera device
may clip the input gamma value to its supported range.<wbr/> The actual applied
value will be returned in capture result.<wbr/></p>
<p>The valid range of gamma value varies on different devices,<wbr/> but values
within [1.<wbr/>0,<wbr/> 5.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="controls_android.tonemap.presetCurve">
<td class="entry_name
" rowspan="3">
android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">SRGB (v3.2)</span>
<span class="entry_type_enum_notes"><p>Tonemapping curve is defined by sRGB</p></span>
</li>
<li>
<span class="entry_type_enum_name">REC709 (v3.2)</span>
<span class="entry_type_enum_notes"><p>Tonemapping curve is defined by ITU-R BT.<wbr/>709</p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
PRESET_<wbr/>CURVE</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The tonemap curve will be defined by specified standard.<wbr/></p>
<p>sRGB (approximated by 16 control points):</p>
<p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
<p>Rec.<wbr/> 709 (approximated by 16 control points):</p>
<p><img alt="Rec. 709 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/rec709_tonemap.png"/></p>
<p>Note that above figures show a 16 control points approximation of preset
curves.<wbr/> Camera devices may apply a different approximation to the curve.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.tonemap.maxCurvePoints">
<td class="entry_name
" rowspan="5">
android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum number of supported points in the
tonemap curve that can be used for <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<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
less than this maximum,<wbr/> the camera device will resample the curve to its internal
representation,<wbr/> using linear interpolation.<wbr/></p>
<p>The output curves in the result metadata may have a different number
of points than the input curves,<wbr/> and will represent the actual
hardware curves used as closely as possible when linearly interpolated.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This value must be at least 64.<wbr/> This should be at least 128.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.tonemap.availableToneMapModes">
<td class="entry_name
" rowspan="5">
android.<wbr/>tonemap.<wbr/>available<wbr/>Tone<wbr/>Map<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<span class="entry_type_hwlevel">[full] </span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of tonemapping modes for <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> that are supported by this camera
device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Camera devices that support the MANUAL_<wbr/>POST_<wbr/>PROCESSING capability will always contain
at least one of below mode combinations:</p>
<ul>
<li>CONTRAST_<wbr/>CURVE,<wbr/> FAST and HIGH_<wbr/>QUALITY</li>
<li>GAMMA_<wbr/>VALUE,<wbr/> PRESET_<wbr/>CURVE,<wbr/> FAST and HIGH_<wbr/>QUALITY</li>
</ul>
<p>This includes all FULL level devices.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must support both FAST and HIGH_<wbr/>QUALITY if automatic tonemap control is available
on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
That is,<wbr/> if the highest quality implementation on the camera device does not slow down
capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.tonemap.curveBlue">
<td class="entry_name
" rowspan="3">
android.<wbr/>tonemap.<wbr/>curve<wbr/>Blue
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 2
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[full] </span>
<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>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the blue
channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
CONTRAST_<wbr/>CURVE.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.tonemap.curveGreen">
<td class="entry_name
" rowspan="3">
android.<wbr/>tonemap.<wbr/>curve<wbr/>Green
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 2
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[full] </span>
<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>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the green
channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
CONTRAST_<wbr/>CURVE.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>See <a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> for more details.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.tonemap.curveRed">
<td class="entry_name
" rowspan="5">
android.<wbr/>tonemap.<wbr/>curve<wbr/>Red
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 2
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[full] </span>
<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>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve for the red
channel,<wbr/> to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
CONTRAST_<wbr/>CURVE.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>0-1 on both input and output coordinates,<wbr/> normalized
as a floating-point value such that 0 == black and 1 == white.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Each channel's curve is defined by an array of control points:</p>
<pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> =
[ P0in,<wbr/> P0out,<wbr/> P1in,<wbr/> P1out,<wbr/> P2in,<wbr/> P2out,<wbr/> P3in,<wbr/> P3out,<wbr/> ...,<wbr/> PNin,<wbr/> PNout ]
2 &lt;= N &lt;= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
<p>These are sorted in order of increasing <code>Pin</code>; it is
required that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
define a complete mapping.<wbr/> For input values between control points,<wbr/>
the camera device must linearly interpolate between the control
points.<wbr/></p>
<p>Each curve can have an independent number of points,<wbr/> and the number
of points can be less than max (that is,<wbr/> the request doesn't have to
always provide a curve with number of points equivalent to
<a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
<p>For devices with MONOCHROME capability,<wbr/> all three channels must have the same set of
control points.<wbr/></p>
<p>A few examples,<wbr/> and their corresponding graphical mappings; these
only specify the red channel and the precision is limited to 4
digits,<wbr/> for conciseness.<wbr/></p>
<p>Linear mapping:</p>
<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 ]
</code></pre>
<p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
<p>Invert mapping:</p>
<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 ]
</code></pre>
<p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
<p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
<pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
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/>
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/>
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/>
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 ]
</code></pre>
<p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
<p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
<pre><code><a href="#controls_android.tonemap.curveRed">android.<wbr/>tonemap.<wbr/>curve<wbr/>Red</a> = [
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/>
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/>
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/>
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 ]
</code></pre>
<p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For good quality of mapping,<wbr/> at least 128 control points are
preferred.<wbr/></p>
<p>A typical use case of this would be a gamma-1/<wbr/>2.<wbr/>2 curve,<wbr/> with as many
control points used as are available.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.tonemap.curve">
<td class="entry_name
" rowspan="5">
android.<wbr/>tonemap.<wbr/>curve
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [java_public as tonemapCurve]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[full] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping /<wbr/> contrast /<wbr/> gamma curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a>
is CONTRAST_<wbr/>CURVE.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The tonemapCurve consist of three curves for each of red,<wbr/> green,<wbr/> and blue
channels respectively.<wbr/> The following example uses the red channel as an
example.<wbr/> The same logic applies to green and blue channel.<wbr/>
Each channel's curve is defined by an array of control points:</p>
<pre><code>curveRed =
[ 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) ]
2 &lt;= N &lt;= <a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a></code></pre>
<p>These are sorted in order of increasing <code>Pin</code>; it is always
guaranteed that input values 0.<wbr/>0 and 1.<wbr/>0 are included in the list to
define a complete mapping.<wbr/> For input values between control points,<wbr/>
the camera device must linearly interpolate between the control
points.<wbr/></p>
<p>Each curve can have an independent number of points,<wbr/> and the number
of points can be less than max (that is,<wbr/> the request doesn't have to
always provide a curve with number of points equivalent to
<a href="#static_android.tonemap.maxCurvePoints">android.<wbr/>tonemap.<wbr/>max<wbr/>Curve<wbr/>Points</a>).<wbr/></p>
<p>For devices with MONOCHROME capability,<wbr/> all three channels must have the same set of
control points.<wbr/></p>
<p>A few examples,<wbr/> and their corresponding graphical mappings; these
only specify the red channel and the precision is limited to 4
digits,<wbr/> for conciseness.<wbr/></p>
<p>Linear mapping:</p>
<pre><code>curveRed = [ (0,<wbr/> 0),<wbr/> (1.<wbr/>0,<wbr/> 1.<wbr/>0) ]
</code></pre>
<p><img alt="Linear mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png"/></p>
<p>Invert mapping:</p>
<pre><code>curveRed = [ (0,<wbr/> 1.<wbr/>0),<wbr/> (1.<wbr/>0,<wbr/> 0) ]
</code></pre>
<p><img alt="Inverting mapping curve" src="images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png"/></p>
<p>Gamma 1/<wbr/>2.<wbr/>2 mapping,<wbr/> with 16 control points:</p>
<pre><code>curveRed = [
(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/>
(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/>
(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/>
(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) ]
</code></pre>
<p><img alt="Gamma = 1/2.2 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png"/></p>
<p>Standard sRGB gamma mapping,<wbr/> per IEC 61966-2-1:1999,<wbr/> with 16 control points:</p>
<pre><code>curveRed = [
(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/>
(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/>
(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/>
(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) ]
</code></pre>
<p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This entry is created by the framework from the curveRed,<wbr/> curveGreen and
curveBlue entries.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.tonemap.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>tonemap.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">CONTRAST_CURVE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Use the tone mapping curve specified in
the <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>* entries.<wbr/></p>
<p>All color enhancement and tonemapping must be disabled,<wbr/> except
for applying the tonemapping curve specified by
<a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/></p>
<p>Must not slow down frame rate relative to raw
sensor output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.2)</span>
<span class="entry_type_enum_notes"><p>Advanced gamma mapping and color enhancement may be applied,<wbr/> without
reducing frame rate compared to raw sensor output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.2)</span>
<span class="entry_type_enum_notes"><p>High-quality gamma mapping and color enhancement will be applied,<wbr/> at
the cost of possibly reduced frame rate compared to raw sensor output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">GAMMA_VALUE (v3.2)</span>
<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 perform
tonemapping.<wbr/></p>
<p>All color enhancement and tonemapping must be disabled,<wbr/> except
for applying the tonemapping curve specified by <a href="#controls_android.tonemap.gamma">android.<wbr/>tonemap.<wbr/>gamma</a>.<wbr/></p>
<p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">PRESET_CURVE (v3.2)</span>
<span class="entry_type_enum_notes"><p>Use the preset tonemapping curve specified in
<a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a> to perform tonemapping.<wbr/></p>
<p>All color enhancement and tonemapping must be disabled,<wbr/> except
for applying the tonemapping curve specified by
<a href="#controls_android.tonemap.presetCurve">android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve</a>.<wbr/></p>
<p>Must not slow down frame rate relative to raw sensor output.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>High-level global contrast/<wbr/>gamma/<wbr/>tonemapping control.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.tonemap.availableToneMapModes">android.<wbr/>tonemap.<wbr/>available<wbr/>Tone<wbr/>Map<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When switching to an application-defined contrast curve by setting
<a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> to CONTRAST_<wbr/>CURVE,<wbr/> the curve is defined
per-channel with a set of <code>(in,<wbr/> out)</code> points that specify the
mapping from input high-bit-depth pixel value to the output
low-bit-depth value.<wbr/> Since the actual pixel ranges of both input
and output may change depending on the camera pipeline,<wbr/> the values
are specified by normalized floating-point numbers.<wbr/></p>
<p>More-complex color mapping operations such as 3D color look-up
tables,<wbr/> selective chroma enhancement,<wbr/> or other non-linear color
transforms will be disabled when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
CONTRAST_<wbr/>CURVE.<wbr/></p>
<p>When using either FAST or HIGH_<wbr/>QUALITY,<wbr/> the camera device will
emit its own tonemap curve in <a href="#controls_android.tonemap.curve">android.<wbr/>tonemap.<wbr/>curve</a>.<wbr/>
These values are always available,<wbr/> and as close as possible to the
actually used nonlinear/<wbr/>nonglobal transforms.<wbr/></p>
<p>If a request is sent with CONTRAST_<wbr/>CURVE with the camera device's
provided curve in FAST or HIGH_<wbr/>QUALITY,<wbr/> the image's tonemap will be
roughly the same.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.tonemap.gamma">
<td class="entry_name
" rowspan="3">
android.<wbr/>tonemap.<wbr/>gamma
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
GAMMA_<wbr/>VALUE</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The tonemap curve will be defined the following formula:</p>
<ul>
<li>OUT = pow(IN,<wbr/> 1.<wbr/>0 /<wbr/> gamma)</li>
</ul>
<p>where IN and OUT is the input pixel value scaled to range [0.<wbr/>0,<wbr/> 1.<wbr/>0],<wbr/>
pow is the power function and gamma is the gamma value specified by this
key.<wbr/></p>
<p>The same curve will be applied to all color channels.<wbr/> The camera device
may clip the input gamma value to its supported range.<wbr/> The actual applied
value will be returned in capture result.<wbr/></p>
<p>The valid range of gamma value varies on different devices,<wbr/> but values
within [1.<wbr/>0,<wbr/> 5.<wbr/>0] are guaranteed not to be clipped.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.tonemap.presetCurve">
<td class="entry_name
" rowspan="3">
android.<wbr/>tonemap.<wbr/>preset<wbr/>Curve
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">SRGB (v3.2)</span>
<span class="entry_type_enum_notes"><p>Tonemapping curve is defined by sRGB</p></span>
</li>
<li>
<span class="entry_type_enum_name">REC709 (v3.2)</span>
<span class="entry_type_enum_notes"><p>Tonemapping curve is defined by ITU-R BT.<wbr/>709</p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Tonemapping curve to use when <a href="#controls_android.tonemap.mode">android.<wbr/>tonemap.<wbr/>mode</a> is
PRESET_<wbr/>CURVE</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The tonemap curve will be defined by specified standard.<wbr/></p>
<p>sRGB (approximated by 16 control points):</p>
<p><img alt="sRGB tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png"/></p>
<p>Rec.<wbr/> 709 (approximated by 16 control points):</p>
<p><img alt="Rec. 709 tonemapping curve" src="images/camera2/metadata/android.tonemap.curveRed/rec709_tonemap.png"/></p>
<p>Note that above figures show a 16 control points approximation of preset
curves.<wbr/> Camera devices may apply a different approximation to the curve.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_led" class="section">led</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.led.transmit">
<td class="entry_name
" rowspan="1">
android.<wbr/>led.<wbr/>transmit
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [hidden as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This LED is nominally used to indicate to the user
that the camera is powered on and may be streaming images back to the
Application Processor.<wbr/> In certain rare circumstances,<wbr/> the OS may
disable this when video is processed locally and not transmitted to
any untrusted applications.<wbr/></p>
<p>In particular,<wbr/> the LED <em>must</em> always be on when the data could be
transmitted off the device.<wbr/> The LED <em>should</em> always be on whenever
data is stored locally on the device.<wbr/></p>
<p>The LED <em>may</em> be off if a trusted application is using the data that
doesn't violate the above rules.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.led.transmit">
<td class="entry_name
" rowspan="1">
android.<wbr/>led.<wbr/>transmit
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [hidden as boolean]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This LED is nominally used to indicate to the user
that the camera is powered on and may be streaming images back to the
Application Processor.<wbr/> In certain rare circumstances,<wbr/> the OS may
disable this when video is processed locally and not transmitted to
any untrusted applications.<wbr/></p>
<p>In particular,<wbr/> the LED <em>must</em> always be on when the data could be
transmitted off the device.<wbr/> The LED <em>should</em> always be on whenever
data is stored locally on the device.<wbr/></p>
<p>The LED <em>may</em> be off if a trusted application is using the data that
doesn't violate the above rules.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.led.availableLeds">
<td class="entry_name
" rowspan="1">
android.<wbr/>led.<wbr/>available<wbr/>Leds
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [hidden]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">TRANSMIT (v3.2)</span>
<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>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A list of camera LEDs that are available on this system.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_info" class="section">info</td></tr>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.info.supportedHardwareLevel">
<td class="entry_name
" rowspan="5">
android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">LIMITED (v3.2)</span>
<span class="entry_type_enum_notes"><p>This camera device does not have enough capabilities to qualify as a <code>FULL</code> device or
better.<wbr/></p>
<p>Only the stream configurations listed in the <code>LEGACY</code> and <code>LIMITED</code>
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#limited-level-additional-guaranteed-configurations">tables</a>
in the documentation are guaranteed to be supported.<wbr/></p>
<p>All <code>LIMITED</code> devices support the <code>BACKWARDS_<wbr/>COMPATIBLE</code> capability,<wbr/> indicating basic
support for color image capture.<wbr/> The only exception is that the device may
alternatively support only the <code>DEPTH_<wbr/>OUTPUT</code> capability,<wbr/> if it can only output depth
measurements and not color images.<wbr/></p>
<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>
to lock exposure metering (and calculate flash power,<wbr/> for cameras with flash) before
capturing a high-quality still image.<wbr/></p>
<p>A <code>LIMITED</code> device that only lists the <code>BACKWARDS_<wbr/>COMPATIBLE</code> capability is only
required to support full-automatic operation and post-processing (<code>OFF</code> is not
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
<a href="#controls_android.control.awbMode">android.<wbr/>control.<wbr/>awb<wbr/>Mode</a>)</p>
<p>Additional capabilities may optionally be supported by a <code>LIMITED</code>-level device,<wbr/> and
can be checked for in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FULL (v3.2)</span>
<span class="entry_type_enum_notes"><p>This camera device is capable of supporting advanced imaging applications.<wbr/></p>
<p>The stream configurations listed in the <code>FULL</code>,<wbr/> <code>LEGACY</code> and <code>LIMITED</code>
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#full-level-additional-guaranteed-configurations">tables</a>
in the documentation are guaranteed to be supported.<wbr/></p>
<p>A <code>FULL</code> device will support below capabilities:</p>
<ul>
<li><code>BURST_<wbr/>CAPTURE</code> capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
<code>BURST_<wbr/>CAPTURE</code>)</li>
<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>
<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>
<li>Manual post-processing control (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
<code>MANUAL_<wbr/>POST_<wbr/>PROCESSING</code>)</li>
<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>
<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>
</ul>
<p>Note:
Pre-API level 23,<wbr/> FULL devices also supported arbitrary cropping region
(<a href="#static_android.scaler.croppingType">android.<wbr/>scaler.<wbr/>cropping<wbr/>Type</a> <code>== FREEFORM</code>); this requirement was relaxed in API level
23,<wbr/> and <code>FULL</code> devices may only support <code>CENTERED</code> cropping.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">LEGACY (v3.2)</span>
<span class="entry_type_enum_notes"><p>This camera device is running in backward compatibility mode.<wbr/></p>
<p>Only the stream configurations listed in the <code>LEGACY</code>
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#legacy-level-guaranteed-configurations">table</a>
in the documentation are supported.<wbr/></p>
<p>A <code>LEGACY</code> device does not support per-frame control,<wbr/> manual sensor control,<wbr/> manual
post-processing,<wbr/> arbitrary cropping regions,<wbr/> and has relaxed performance constraints.<wbr/>
No additional capabilities beyond <code>BACKWARD_<wbr/>COMPATIBLE</code> will ever be listed by a
<code>LEGACY</code> device in <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a>.<wbr/></p>
<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>
devices.<wbr/> Instead,<wbr/> every request that includes a JPEG-format output target is treated
as triggering a still capture,<wbr/> internally executing a precapture trigger.<wbr/> This may
fire the flash for flash power metering during precapture,<wbr/> and then fire the flash
for the final capture,<wbr/> if a flash is available on the device and the AE mode is set to
enable the flash.<wbr/></p>
<p>Devices that initially shipped with Android version <a href="https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#Q">Q</a> or newer will not include any LEGACY-level devices.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">3 (v3.2)</span>
<span class="entry_type_enum_notes"><p>This camera device is capable of YUV reprocessing and RAW data capture,<wbr/> in addition to
FULL-level capabilities.<wbr/></p>
<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
<code>LIMITED</code>
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#level-3-additional-guaranteed-configurations">tables</a>
in the documentation are guaranteed to be supported.<wbr/></p>
<p>The following additional capabilities are guaranteed to be supported:</p>
<ul>
<li><code>YUV_<wbr/>REPROCESSING</code> capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
<code>YUV_<wbr/>REPROCESSING</code>)</li>
<li><code>RAW</code> capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains
<code>RAW</code>)</li>
</ul></span>
</li>
<li>
<span class="entry_type_enum_name">EXTERNAL (v3.3)</span>
<span class="entry_type_enum_notes"><p>This camera device is backed by an external camera connected to this Android device.<wbr/></p>
<p>The device has capability identical to a LIMITED level device,<wbr/> with the following
exceptions:</p>
<ul>
<li>The device may not report lens/<wbr/>sensor related information such as<ul>
<li><a href="#controls_android.lens.focalLength">android.<wbr/>lens.<wbr/>focal<wbr/>Length</a></li>
<li><a href="#static_android.lens.info.hyperfocalDistance">android.<wbr/>lens.<wbr/>info.<wbr/>hyperfocal<wbr/>Distance</a></li>
<li><a href="#static_android.sensor.info.physicalSize">android.<wbr/>sensor.<wbr/>info.<wbr/>physical<wbr/>Size</a></li>
<li><a href="#static_android.sensor.info.whiteLevel">android.<wbr/>sensor.<wbr/>info.<wbr/>white<wbr/>Level</a></li>
<li><a href="#static_android.sensor.blackLevelPattern">android.<wbr/>sensor.<wbr/>black<wbr/>Level<wbr/>Pattern</a></li>
<li><a href="#static_android.sensor.info.colorFilterArrangement">android.<wbr/>sensor.<wbr/>info.<wbr/>color<wbr/>Filter<wbr/>Arrangement</a></li>
<li><a href="#dynamic_android.sensor.rollingShutterSkew">android.<wbr/>sensor.<wbr/>rolling<wbr/>Shutter<wbr/>Skew</a></li>
</ul>
</li>
<li>The device will report 0 for <a href="#static_android.sensor.orientation">android.<wbr/>sensor.<wbr/>orientation</a></li>
<li>The device has less guarantee on stable framerate,<wbr/> as the framerate partly depends
on the external camera being used.<wbr/></li>
</ul></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Generally classifies the overall set of the camera device functionality.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The supported hardware level is a high-level description of the camera device's
capabilities,<wbr/> summarizing several capabilities into one field.<wbr/> Each level adds additional
features to the previous one,<wbr/> and is always a strict superset of the previous level.<wbr/>
The ordering is <code>LEGACY &lt; LIMITED &lt; FULL &lt; LEVEL_<wbr/>3</code>.<wbr/></p>
<p>Starting from <code>LEVEL_<wbr/>3</code>,<wbr/> the level enumerations are guaranteed to be in increasing
numerical value as well.<wbr/> To check if a given device is at least at a given hardware level,<wbr/>
the following code snippet can be used:</p>
<pre><code>//<wbr/> Returns true if the device supports the required hardware level,<wbr/> or better.<wbr/>
boolean isHardwareLevelSupported(CameraCharacteristics c,<wbr/> int requiredLevel) {
final int[] sortedHwLevels = {
Camera<wbr/>Characteristics.<wbr/>INFO_<wbr/>SUPPORTED_<wbr/>HARDWARE_<wbr/>LEVEL_<wbr/>LEGACY,<wbr/>
Camera<wbr/>Characteristics.<wbr/>INFO_<wbr/>SUPPORTED_<wbr/>HARDWARE_<wbr/>LEVEL_<wbr/>EXTERNAL,<wbr/>
Camera<wbr/>Characteristics.<wbr/>INFO_<wbr/>SUPPORTED_<wbr/>HARDWARE_<wbr/>LEVEL_<wbr/>LIMITED,<wbr/>
Camera<wbr/>Characteristics.<wbr/>INFO_<wbr/>SUPPORTED_<wbr/>HARDWARE_<wbr/>LEVEL_<wbr/>FULL,<wbr/>
Camera<wbr/>Characteristics.<wbr/>INFO_<wbr/>SUPPORTED_<wbr/>HARDWARE_<wbr/>LEVEL_<wbr/>3
};
int deviceLevel = c.<wbr/>get(Camera<wbr/>Characteristics.<wbr/>INFO_<wbr/>SUPPORTED_<wbr/>HARDWARE_<wbr/>LEVEL);
if (requiredLevel == deviceLevel) {
return true;
}
for (int sortedlevel : sortedHwLevels) {
if (sortedlevel == requiredLevel) {
return true;
} else if (sortedlevel == deviceLevel) {
return false;
}
}
return false; //<wbr/> Should never reach here
}
</code></pre>
<p>At a high level,<wbr/> the levels are:</p>
<ul>
<li><code>LEGACY</code> devices operate in a backwards-compatibility mode for older
Android devices,<wbr/> and have very limited capabilities.<wbr/></li>
<li><code>LIMITED</code> devices represent the
baseline feature set,<wbr/> and may also include additional capabilities that are
subsets of <code>FULL</code>.<wbr/></li>
<li><code>FULL</code> devices additionally support per-frame manual control of sensor,<wbr/> flash,<wbr/> lens and
post-processing settings,<wbr/> and image capture at a high rate.<wbr/></li>
<li><code>LEVEL_<wbr/>3</code> devices additionally support YUV reprocessing and RAW image capture,<wbr/> along
with additional output stream configurations.<wbr/></li>
<li><code>EXTERNAL</code> devices are similar to <code>LIMITED</code> devices with exceptions like some sensor or
lens information not reported or less stable framerates.<wbr/></li>
</ul>
<p>See the individual level enums for full descriptions of the supported capabilities.<wbr/> The
<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> entry describes the device's capabilities at a
finer-grain level,<wbr/> if needed.<wbr/> In addition,<wbr/> many controls have their available settings or
ranges defined in individual entries from <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html">CameraCharacteristics</a>.<wbr/></p>
<p>Some features are not part of any particular hardware level or capability and must be
queried separately.<wbr/> These include:</p>
<ul>
<li>Calibrated timestamps (<a href="#static_android.sensor.info.timestampSource">android.<wbr/>sensor.<wbr/>info.<wbr/>timestamp<wbr/>Source</a> <code>==</code> REALTIME)</li>
<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>
<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>
<li>Optical or electrical image stabilization
(<a href="#static_android.lens.info.availableOpticalStabilization">android.<wbr/>lens.<wbr/>info.<wbr/>available<wbr/>Optical<wbr/>Stabilization</a>,<wbr/>
<a href="#static_android.control.availableVideoStabilizationModes">android.<wbr/>control.<wbr/>available<wbr/>Video<wbr/>Stabilization<wbr/>Modes</a>)</li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A camera HALv3 device can implement one of three possible operational modes; LIMITED,<wbr/>
FULL,<wbr/> and LEVEL_<wbr/>3.<wbr/></p>
<p>FULL support or better is expected from new higher-end devices.<wbr/> Limited
mode has hardware requirements roughly in line with those for a camera HAL device v1
implementation,<wbr/> and is expected from older or inexpensive devices.<wbr/> Each level is a strict
superset of the previous level,<wbr/> and they share the same essential operational flow.<wbr/></p>
<p>For full details refer to "S3.<wbr/> Operational Modes" in camera3.<wbr/>h</p>
<p>Camera HAL3+ must not implement LEGACY mode.<wbr/> It is there for backwards compatibility in
the <code>android.<wbr/>hardware.<wbr/>camera2</code> user-facing API only on legacy HALv1 devices,<wbr/> and is
implemented by the camera framework code.<wbr/></p>
<p>EXTERNAL level devices have lower performance bar in CTS since the performance might depend
on the external camera being used and is not fully controlled by the device manufacturer.<wbr/>
The ITS test suite is exempted for the same reason.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.info.version">
<td class="entry_name
" rowspan="5">
android.<wbr/>info.<wbr/>version
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [public as string]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>A short string for manufacturer version information about the camera device,<wbr/> such as
ISP hardware,<wbr/> sensors,<wbr/> etc.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This can be used in <a href="https://developer.android.com/reference/android/media/ExifInterface.html#TAG_IMAGE_DESCRIPTION">TAG_<wbr/>IMAGE_<wbr/>DESCRIPTION</a>
in jpeg EXIF.<wbr/> This key may be absent if no version information is available on the
device.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The string must consist of only alphanumeric characters,<wbr/> punctuation,<wbr/> and
whitespace,<wbr/> i.<wbr/>e.<wbr/> it must match regular expression "[\p{Alnum}\p{Punct}\p{Space}]*".<wbr/>
It must not exceed 256 characters.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.info.supportedBufferManagementVersion">
<td class="entry_name
" rowspan="3">
android.<wbr/>info.<wbr/>supported<wbr/>Buffer<wbr/>Management<wbr/>Version
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [system]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">HIDL_DEVICE_3_5 (v3.4)</span>
<span class="entry_type_enum_notes"><p>This camera device supports and opts in to the buffer management APIs provided by
HIDL ICameraDevice version 3.<wbr/>5.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">SESSION_CONFIGURABLE (v3.9)</span>
<span class="entry_type_enum_notes"><p>This camera device supports the buffer management APIs provided by AIDL ICameraDevice
version 1.<wbr/> It also supports the ICameraDeviceSession.<wbr/>configureStreamsV2 call to
inform the camera framework whether HAL buffer manager must be used for the
particular session configured.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The version of buffer management API this camera device supports and opts into.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When this key is not present,<wbr/> camera framework will interact with this camera device
without any buffer management HAL API.<wbr/> When this key is present and camera framework
supports the buffer management API version,<wbr/> camera framework will interact with camera
HAL using such version of buffer management API.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.info.deviceStateSensorOrientationMap">
<td class="entry_name
" rowspan="3">
android.<wbr/>info.<wbr/>device<wbr/>State<wbr/>Sensor<wbr/>Orientation<wbr/>Map
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_visibility"> [java_public as deviceStateSensorOrientationMap]</span>
<span class="entry_type_synthetic">[synthetic] </span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the mapping between a device folding state and
specific camera sensor orientation for logical cameras on a foldable device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Logical cameras on foldable devices can support sensors with different orientation
values.<wbr/> The orientation value may need to change depending on the specific folding
state.<wbr/> Information about the mapping between the device folding state and the
sensor orientation can be obtained in
<a href="https://developer.android.com/reference/android/hardware/camera2/params/DeviceStateSensorOrientationMap.html">DeviceStateSensorOrientationMap</a>.<wbr/>
Device state orientation maps are optional and maybe present on devices that support
<a href="#controls_android.scaler.rotateAndCrop">android.<wbr/>scaler.<wbr/>rotate<wbr/>And<wbr/>Crop</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.info.deviceStateOrientations">
<td class="entry_name
" rowspan="3">
android.<wbr/>info.<wbr/>device<wbr/>State<wbr/>Orientations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
2 x n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
</td>
<td class="entry_units">
(device fold state,<wbr/> sensor orientation) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>7</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must populate the array with
(hardware::camera::provider::V2_<wbr/>5::DeviceState,<wbr/> sensorOrientation) pairs for each
supported device state bitwise combination.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.info.sessionConfigurationQueryVersion">
<td class="entry_name
" rowspan="3">
android.<wbr/>info.<wbr/>session<wbr/>Configuration<wbr/>Query<wbr/>Version
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_visibility"> [fwk_java_public as versionCode]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">UPSIDE_DOWN_CAKE (v3.2)</span>
<span class="entry_type_enum_value">34</span>
</li>
<li>
<span class="entry_type_enum_name">VANILLA_ICE_CREAM (v3.2)</span>
<span class="entry_type_enum_value">35</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The version of the session configuration query
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#isSessionConfigurationWithParametersSupported">CameraManager#isSessionConfigurationWithParametersSupported</a>
API</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The possible values in this key correspond to the values defined in
android.<wbr/>os.<wbr/>Build.<wbr/>VERSION_<wbr/>CODES.<wbr/> Each version defines a set of feature combinations the
camera device must reliably report whether they are supported via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#isSessionConfigurationWithParametersSupported">CameraManager#isSessionConfigurationWithParametersSupported</a>
API.<wbr/> And the version is always less or equal to android.<wbr/>os.<wbr/>Build.<wbr/>VERSION.<wbr/>SDK_<wbr/>INT.<wbr/></p>
<p>If set to UPSIDE_<wbr/>DOWN_<wbr/>CAKE,<wbr/> this camera device doesn't support
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#isSessionConfigurationWithParametersSupported">CameraManager#isSessionConfigurationWithParametersSupported</a>.<wbr/>
Calling the method for this camera ID throws an UnsupportedOperationException.<wbr/></p>
<p>If set to VANILLA_<wbr/>ICE_<wbr/>CREAM,<wbr/> the application can call
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraManager.html#isSessionConfigurationWithParametersSupported">CameraManager#isSessionConfigurationWithParametersSupported</a>
to check if the combinations of below features are supported.<wbr/></p>
<ul>
<li>A subset of LIMITED-level device stream combinations.<wbr/></li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: center;">Target 1</th>
<th style="text-align: center;">Size</th>
<th style="text-align: center;">Target 2</th>
<th style="text-align: center;">Size</th>
<th style="text-align: center;">Sample use case(s)</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">MAXIMUM</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;">Simple preview,<wbr/> GPU video processing,<wbr/> or no-preview video recording.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">PREVIEW</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S720P</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">MAXIMUM</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;">In-application video/<wbr/>image processing.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">PREVIEW</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S720P</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">PREVIEW</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">MAXIMUM</td>
<td style="text-align: center;">Standard still imaging.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">MAXIMUM</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">MAXIMUM</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S720P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">MAXIMUM</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S720P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">PREVIEW</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">MAXIMUM</td>
<td style="text-align: center;">In-app processing plus still capture.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">MAXIMUM</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">MAXIMUM</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S720P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">MAXIMUM</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S720P</td>
<td style="text-align: center;">JPEG</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">PREVIEW</td>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">PREVIEW</td>
<td style="text-align: center;">Standard recording.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S720P</td>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S720P</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">PREVIEW</td>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">PREVIEW</td>
<td style="text-align: center;">Preview plus in-app processing.<wbr/></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S1440P</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S1080P</td>
<td style="text-align: center;"></td>
</tr>
<tr>
<td style="text-align: center;">PRIV</td>
<td style="text-align: center;">S720P</td>
<td style="text-align: center;">YUV</td>
<td style="text-align: center;">S720P</td>
<td style="text-align: center;"></td>
</tr>
</tbody>
</table>
<pre><code>- {@code MAXIMUM} size refers to the camera device's maximum output resolution for
that format from {@code StreamConfigurationMap#getOutputSizes}.<wbr/> {@code PREVIEW} size
refers to the best size match to the device's screen resolution,<wbr/> or to 1080p
(@code 1920x1080},<wbr/> whichever is smaller.<wbr/> Both sizes are guaranteed to be supported.<wbr/>
- {@code S1440P} refers to {@code 1920x1440 (4:3)} and {@code 2560x1440 (16:9)}.<wbr/>
{@code S1080P} refers to {@code 1440x1080 (4:3)} and {@code 1920x1080 (16:9)}.<wbr/>
And {@code S720P} refers to {@code 960x720 (4:3)} and {@code 1280x720 (16:9)}.<wbr/>
- If a combination contains a S1440P,<wbr/> S1080P,<wbr/> or S720P stream,<wbr/>
both 4:3 and 16:9 aspect ratio sizes can be queried.<wbr/> For example,<wbr/> for the
stream combination of {PRIV,<wbr/> S1440P,<wbr/> JPEG,<wbr/> MAXIMUM},<wbr/> and if MAXIMUM ==
4032 x 3024,<wbr/> the application will be able to query both
{PRIV,<wbr/> 1920 x 1440,<wbr/> JPEG,<wbr/> 4032 x 3024} and {PRIV,<wbr/> 2560 x 1440,<wbr/> JPEG,<wbr/> 4032 x 2268}
without an exception being thrown.<wbr/>
</code></pre>
<ul>
<li>VIDEO_<wbr/>STABILIZATION_<wbr/>MODES: {OFF,<wbr/> PREVIEW}</li>
<li>AE_<wbr/>TARGET_<wbr/>FPS_<wbr/>RANGE: {{<em>,<wbr/> 30},<wbr/> {</em>,<wbr/> 60}}</li>
<li>DYNAMIC_<wbr/>RANGE_<wbr/>PROFILE: {STANDARD,<wbr/> HLG10}</li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_blackLevel" class="section">blackLevel</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.blackLevel.lock">
<td class="entry_name
" rowspan="5">
android.<wbr/>black<wbr/>Level.<wbr/>lock
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether black-level compensation is locked
to its current values,<wbr/> or is free to vary.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HAL2">HAL2</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When set to <code>true</code> (ON),<wbr/> the values used for black-level
compensation will not change until the lock is set to
<code>false</code> (OFF).<wbr/></p>
<p>Since changes to certain capture parameters (such as
exposure time) may require resetting of black level
compensation,<wbr/> the camera device must report whether setting
the black level lock was successful in the output result
metadata.<wbr/></p>
<p>For example,<wbr/> if a sequence of requests is as follows:</p>
<ul>
<li>Request 1: Exposure = 10ms,<wbr/> Black level lock = OFF</li>
<li>Request 2: Exposure = 10ms,<wbr/> Black level lock = ON</li>
<li>Request 3: Exposure = 10ms,<wbr/> Black level lock = ON</li>
<li>Request 4: Exposure = 20ms,<wbr/> Black level lock = ON</li>
<li>Request 5: Exposure = 20ms,<wbr/> Black level lock = ON</li>
<li>Request 6: Exposure = 20ms,<wbr/> Black level lock = ON</li>
</ul>
<p>And the exposure change in Request 4 requires the camera
device to reset the black level offsets,<wbr/> then the output
result metadata is expected to be:</p>
<ul>
<li>Result 1: Exposure = 10ms,<wbr/> Black level lock = OFF</li>
<li>Result 2: Exposure = 10ms,<wbr/> Black level lock = ON</li>
<li>Result 3: Exposure = 10ms,<wbr/> Black level lock = ON</li>
<li>Result 4: Exposure = 20ms,<wbr/> Black level lock = OFF</li>
<li>Result 5: Exposure = 20ms,<wbr/> Black level lock = ON</li>
<li>Result 6: Exposure = 20ms,<wbr/> Black level lock = ON</li>
</ul>
<p>This indicates to the application that on frame 4,<wbr/> black
levels were reset due to exposure value changes,<wbr/> and pixel
values may not be consistent across captures.<wbr/></p>
<p>The camera device will maintain the lock to the extent
possible,<wbr/> only overriding the lock to OFF when changes to
other request parameters require a black level recalculation
or reset.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If for some reason black level locking is no longer possible
(for example,<wbr/> the analog gain has changed,<wbr/> which forces
black level offsets to be recalculated),<wbr/> then the HAL must
override this request (and it must report 'OFF' when this
does happen) until the next capture for which locking is
possible again.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.blackLevel.lock">
<td class="entry_name
" rowspan="5">
android.<wbr/>black<wbr/>Level.<wbr/>lock
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<span class="entry_type_hwlevel">[full] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">ON (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether black-level compensation is locked
to its current values,<wbr/> or is free to vary.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HAL2">HAL2</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Whether the black level offset was locked for this frame.<wbr/> Should be
ON if <a href="#controls_android.blackLevel.lock">android.<wbr/>black<wbr/>Level.<wbr/>lock</a> was ON in the capture request,<wbr/> unless
a change in other capture settings forced the camera device to
perform a black level reset.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If for some reason black level locking is no longer possible
(for example,<wbr/> the analog gain has changed,<wbr/> which forces
black level offsets to be recalculated),<wbr/> then the HAL must
override this request (and it must report 'OFF' when this
does happen) until the next capture for which locking is
possible again.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_sync" class="section">sync</td></tr>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.sync.frameNumber">
<td class="entry_name
" rowspan="5">
android.<wbr/>sync.<wbr/>frame<wbr/>Number
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int64</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">CONVERGING (v3.2)</span>
<span class="entry_type_enum_value">-1</span>
<span class="entry_type_enum_notes"><p>The current result is not yet fully synchronized to any request.<wbr/></p>
<p>Synchronization is in progress,<wbr/> and reading metadata from this
result may include a mix of data that have taken effect since the
last synchronization time.<wbr/></p>
<p>In some future result,<wbr/> within <a href="#static_android.sync.maxLatency">android.<wbr/>sync.<wbr/>max<wbr/>Latency</a> frames,<wbr/>
this value will update to the actual frame number frame number
the result is guaranteed to be synchronized to (as long as the
request settings remain constant).<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">UNKNOWN (v3.2)</span>
<span class="entry_type_enum_value">-2</span>
<span class="entry_type_enum_notes"><p>The current result's synchronization status is unknown.<wbr/></p>
<p>The result may have already converged,<wbr/> or it may be in
progress.<wbr/> Reading from this result may include some mix
of settings from past requests.<wbr/></p>
<p>After a settings change,<wbr/> the new settings will eventually all
take effect for the output buffers and results.<wbr/> However,<wbr/> this
value will not change when that happens.<wbr/> Altering settings
rapidly may provide outcomes using mixes of settings from recent
requests.<wbr/></p>
<p>This value is intended primarily for backwards compatibility with
the older camera implementations (for android.<wbr/>hardware.<wbr/>Camera).<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The frame number corresponding to the last request
with which the output result (metadata + buffers) has been fully
synchronized.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Either a non-negative value corresponding to a
<code>frame_<wbr/>number</code>,<wbr/> or one of the two enums (CONVERGING /<wbr/> UNKNOWN).<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>When a request is submitted to the camera device,<wbr/> there is usually a
delay of several frames before the controls get applied.<wbr/> A camera
device may either choose to account for this delay by implementing a
pipeline and carefully submit well-timed atomic control updates,<wbr/> or
it may start streaming control changes that span over several frame
boundaries.<wbr/></p>
<p>In the latter case,<wbr/> whenever a request's settings change relative to
the previous submitted request,<wbr/> the full set of changes may take
multiple frame durations to fully take effect.<wbr/> Some settings may
take effect sooner (in less frame durations) than others.<wbr/></p>
<p>While a set of control changes are being propagated,<wbr/> this value
will be CONVERGING.<wbr/></p>
<p>Once it is fully known that a set of control changes have been
finished propagating,<wbr/> and the resulting updated control settings
have been read back by the camera device,<wbr/> this value will be set
to a non-negative frame number (corresponding to the request to
which the results have synchronized to).<wbr/></p>
<p>Older camera device implementations may not have a way to detect
when all camera controls have been applied,<wbr/> and will always set this
value to UNKNOWN.<wbr/></p>
<p>FULL capability devices will always have this value set to the
frame number of the request corresponding to this result.<wbr/></p>
<p><em>Further details</em>:</p>
<ul>
<li>Whenever a request differs from the last request,<wbr/> any future
results not yet returned may have this value set to CONVERGING (this
could include any in-progress captures not yet returned by the camera
device,<wbr/> for more details see pipeline considerations below).<wbr/></li>
<li>Submitting a series of multiple requests that differ from the
previous request (e.<wbr/>g.<wbr/> r1,<wbr/> r2,<wbr/> r3 s.<wbr/>t.<wbr/> r1 != r2 != r3)
moves the new synchronization frame to the last non-repeating
request (using the smallest frame number from the contiguous list of
repeating requests).<wbr/></li>
<li>Submitting the same request repeatedly will not change this value
to CONVERGING,<wbr/> if it was already a non-negative value.<wbr/></li>
<li>When this value changes to non-negative,<wbr/> that means that all of the
metadata controls from the request have been applied,<wbr/> all of the
metadata controls from the camera device have been read to the
updated values (into the result),<wbr/> and all of the graphics buffers
corresponding to this result are also synchronized to the request.<wbr/></li>
</ul>
<p><em>Pipeline considerations</em>:</p>
<p>Submitting a request with updated controls relative to the previously
submitted requests may also invalidate the synchronization state
of all the results corresponding to currently in-flight requests.<wbr/></p>
<p>In other words,<wbr/> results for this current request and up to
<a href="#static_android.request.pipelineMaxDepth">android.<wbr/>request.<wbr/>pipeline<wbr/>Max<wbr/>Depth</a> prior requests may have their
<a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> change to CONVERGING.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Using UNKNOWN here is illegal unless <a href="#static_android.sync.maxLatency">android.<wbr/>sync.<wbr/>max<wbr/>Latency</a>
is also UNKNOWN.<wbr/></p>
<p>FULL capability devices should simply set this value to the
<code>frame_<wbr/>number</code> of the request this result corresponds to.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.sync.maxLatency">
<td class="entry_name
" rowspan="5">
android.<wbr/>sync.<wbr/>max<wbr/>Latency
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[legacy] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">PER_FRAME_CONTROL (v3.2)</span>
<span class="entry_type_enum_value">0</span>
<span class="entry_type_enum_notes"><p>Every frame has the requests immediately applied.<wbr/></p>
<p>Changing controls over multiple requests one after another will
produce results that have those controls applied atomically
each frame.<wbr/></p>
<p>All FULL capability devices will have this as their maxLatency.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">UNKNOWN (v3.2)</span>
<span class="entry_type_enum_value">-1</span>
<span class="entry_type_enum_notes"><p>Each new frame has some subset (potentially the entire set)
of the past requests applied to the camera settings.<wbr/></p>
<p>By submitting a series of identical requests,<wbr/> the camera device
will eventually have the camera settings applied,<wbr/> but it is
unknown when that exact point will be.<wbr/></p>
<p>All LEGACY capability devices will have this as their maxLatency.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum number of frames that can occur after a request
(different than the previous) has been submitted,<wbr/> and before the
result's state becomes synchronized.<wbr/></p>
</td>
<td class="entry_units">
Frame counts
</td>
<td class="entry_range">
<p>A positive value,<wbr/> PER_<wbr/>FRAME_<wbr/>CONTROL,<wbr/> or UNKNOWN.<wbr/></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This defines the maximum distance (in number of metadata results),<wbr/>
between the frame number of the request that has new controls to apply
and the frame number of the result that has all the controls applied.<wbr/></p>
<p>In other words this acts as an upper boundary for how many frames
must occur before the camera device knows for a fact that the new
submitted camera settings have been applied in outgoing frames.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For example if maxLatency was 2,<wbr/></p>
<pre><code>initial request = X (repeating)
request1 = X
request2 = Y
request3 = Y
request4 = Y
where requestN has frameNumber N,<wbr/> and the first of the repeating
initial request's has frameNumber F (and F &lt; 1).<wbr/>
initial result = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == F }
result1 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == F }
result2 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == CONVERGING }
result3 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == CONVERGING }
result4 = X' + { <a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == 2 }
where resultN has frameNumber N.<wbr/>
</code></pre>
<p>Since <code>result4</code> has a <code>frameNumber == 4</code> and
<code><a href="#dynamic_android.sync.frameNumber">android.<wbr/>sync.<wbr/>frame<wbr/>Number</a> == 2</code>,<wbr/> the distance is clearly
<code>4 - 2 = 2</code>.<wbr/></p>
<p>Use <code>frame_<wbr/>count</code> from camera3_<wbr/>request_<wbr/>t instead of
<a href="#controls_android.request.frameCount">android.<wbr/>request.<wbr/>frame<wbr/>Count</a> or
<code><a href="https://developer.android.com/reference/android/hardware/camera2/CaptureResult.html#getFrameNumber">CaptureResult#getFrameNumber</a></code>.<wbr/></p>
<p>LIMITED devices are strongly encouraged to use a non-negative
value.<wbr/> If UNKNOWN is used here then app developers do not have a way
to know when sensor settings have been applied.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_reprocess" class="section">reprocess</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.reprocess.effectiveExposureFactor">
<td class="entry_name
" rowspan="3">
android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [java_public]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The amount of exposure time increase factor applied to the original output
frame by the application processing before sending for reprocessing.<wbr/></p>
</td>
<td class="entry_units">
Relative exposure time increase factor.<wbr/>
</td>
<td class="entry_range">
<p>&gt;= 1.<wbr/>0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is optional,<wbr/> and will be supported if the camera device supports YUV_<wbr/>REPROCESSING
capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains YUV_<wbr/>REPROCESSING).<wbr/></p>
<p>For some YUV reprocessing use cases,<wbr/> the application may choose to filter the original
output frames to effectively reduce the noise to the same level as a frame that was
captured with longer exposure time.<wbr/> To be more specific,<wbr/> assuming the original captured
images were captured with a sensitivity of S and an exposure time of T,<wbr/> the model in
the camera device is that the amount of noise in the image would be approximately what
would be expected if the original capture parameters had been a sensitivity of
S/<wbr/>effectiveExposureFactor and an exposure time of T*effectiveExposureFactor,<wbr/> rather
than S and T respectively.<wbr/> If the captured images were processed by the application
before being sent for reprocessing,<wbr/> then the application may have used image processing
algorithms and/<wbr/>or multi-frame image fusion to reduce the noise in the
application-processed images (input images).<wbr/> By using the effectiveExposureFactor
control,<wbr/> the application can communicate to the camera device the actual noise level
improvement in the application-processed image.<wbr/> With this information,<wbr/> the camera
device can select appropriate noise reduction and edge enhancement parameters to avoid
excessive noise reduction (<a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a>) and insufficient edge
enhancement (<a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a>) being applied to the reprocessed frames.<wbr/></p>
<p>For example,<wbr/> for multi-frame image fusion use case,<wbr/> the application may fuse
multiple output frames together to a final frame for reprocessing.<wbr/> When N image are
fused into 1 image for reprocessing,<wbr/> the exposure time increase factor could be up to
square root of N (based on a simple photon shot noise model).<wbr/> The camera device will
adjust the reprocessing noise reduction and edge enhancement parameters accordingly to
produce the best quality images.<wbr/></p>
<p>This is relative factor,<wbr/> 1.<wbr/>0 indicates the application hasn't processed the input
buffer in a way that affects its effective exposure time.<wbr/></p>
<p>This control is only effective for YUV reprocessing capture request.<wbr/> For noise
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/>
Similarly,<wbr/> for edge enhancement reprocessing,<wbr/> it is only effective when
<code><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a> != OFF</code>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.reprocess.effectiveExposureFactor">
<td class="entry_name
" rowspan="3">
android.<wbr/>reprocess.<wbr/>effective<wbr/>Exposure<wbr/>Factor
</td>
<td class="entry_type">
<span class="entry_type_name">float</span>
<span class="entry_type_visibility"> [java_public]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The amount of exposure time increase factor applied to the original output
frame by the application processing before sending for reprocessing.<wbr/></p>
</td>
<td class="entry_units">
Relative exposure time increase factor.<wbr/>
</td>
<td class="entry_range">
<p>&gt;= 1.<wbr/>0</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This is optional,<wbr/> and will be supported if the camera device supports YUV_<wbr/>REPROCESSING
capability (<a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains YUV_<wbr/>REPROCESSING).<wbr/></p>
<p>For some YUV reprocessing use cases,<wbr/> the application may choose to filter the original
output frames to effectively reduce the noise to the same level as a frame that was
captured with longer exposure time.<wbr/> To be more specific,<wbr/> assuming the original captured
images were captured with a sensitivity of S and an exposure time of T,<wbr/> the model in
the camera device is that the amount of noise in the image would be approximately what
would be expected if the original capture parameters had been a sensitivity of
S/<wbr/>effectiveExposureFactor and an exposure time of T*effectiveExposureFactor,<wbr/> rather
than S and T respectively.<wbr/> If the captured images were processed by the application
before being sent for reprocessing,<wbr/> then the application may have used image processing
algorithms and/<wbr/>or multi-frame image fusion to reduce the noise in the
application-processed images (input images).<wbr/> By using the effectiveExposureFactor
control,<wbr/> the application can communicate to the camera device the actual noise level
improvement in the application-processed image.<wbr/> With this information,<wbr/> the camera
device can select appropriate noise reduction and edge enhancement parameters to avoid
excessive noise reduction (<a href="#controls_android.noiseReduction.mode">android.<wbr/>noise<wbr/>Reduction.<wbr/>mode</a>) and insufficient edge
enhancement (<a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a>) being applied to the reprocessed frames.<wbr/></p>
<p>For example,<wbr/> for multi-frame image fusion use case,<wbr/> the application may fuse
multiple output frames together to a final frame for reprocessing.<wbr/> When N image are
fused into 1 image for reprocessing,<wbr/> the exposure time increase factor could be up to
square root of N (based on a simple photon shot noise model).<wbr/> The camera device will
adjust the reprocessing noise reduction and edge enhancement parameters accordingly to
produce the best quality images.<wbr/></p>
<p>This is relative factor,<wbr/> 1.<wbr/>0 indicates the application hasn't processed the input
buffer in a way that affects its effective exposure time.<wbr/></p>
<p>This control is only effective for YUV reprocessing capture request.<wbr/> For noise
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/>
Similarly,<wbr/> for edge enhancement reprocessing,<wbr/> it is only effective when
<code><a href="#controls_android.edge.mode">android.<wbr/>edge.<wbr/>mode</a> != OFF</code>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.reprocess.maxCaptureStall">
<td class="entry_name
" rowspan="3">
android.<wbr/>reprocess.<wbr/>max<wbr/>Capture<wbr/>Stall
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [java_public]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximal camera capture pipeline stall (in unit of frame count) introduced by a
reprocess capture request.<wbr/></p>
</td>
<td class="entry_units">
Number of frames.<wbr/>
</td>
<td class="entry_range">
<p>&lt;= 4</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The key describes the maximal interference that one reprocess (input) request
can introduce to the camera simultaneous streaming of regular (output) capture
requests,<wbr/> including repeating requests.<wbr/></p>
<p>When a reprocessing capture request is submitted while a camera output repeating request
(e.<wbr/>g.<wbr/> preview) is being served by the camera device,<wbr/> it may preempt the camera capture
pipeline for at least one frame duration so that the camera device is unable to process
the following capture request in time for the next sensor start of exposure boundary.<wbr/>
When this happens,<wbr/> the application may observe a capture time gap (longer than one frame
duration) between adjacent capture output frames,<wbr/> which usually exhibits as preview
glitch if the repeating request output targets include a preview surface.<wbr/> This key gives
the worst-case number of frame stall introduced by one reprocess request with any kind of
formats/<wbr/>sizes combination.<wbr/></p>
<p>If this key reports 0,<wbr/> it means a reprocess request doesn't introduce any glitch to the
ongoing camera repeating request outputs,<wbr/> as if this reprocess request is never issued.<wbr/></p>
<p>This key is supported if the camera device supports PRIVATE or YUV reprocessing (
i.<wbr/>e.<wbr/> <a href="#static_android.request.availableCapabilities">android.<wbr/>request.<wbr/>available<wbr/>Capabilities</a> contains PRIVATE_<wbr/>REPROCESSING or
YUV_<wbr/>REPROCESSING).<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_depth" class="section">depth</td></tr>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.depth.maxDepthSamples">
<td class="entry_name
" rowspan="3">
android.<wbr/>depth.<wbr/>max<wbr/>Depth<wbr/>Samples
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Maximum number of points that a depth point cloud may contain.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If a camera device supports outputting depth range data in the form of a depth point
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
number of points an output buffer may contain.<wbr/></p>
<p>Any given buffer may contain between 0 and maxDepthSamples points,<wbr/> inclusive.<wbr/>
If output in the depth point cloud format is not supported,<wbr/> this entry will
not be defined.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDepthStreamConfigurations">
<td class="entry_name
" rowspan="3">
android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stream<wbr/>Configurations
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OUTPUT (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">INPUT (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available depth dataspace stream
configurations that this camera device supports
(i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>These are output stream configurations for use with
dataSpace HAL_<wbr/>DATASPACE_<wbr/>DEPTH.<wbr/> The configurations are
listed as <code>(format,<wbr/> width,<wbr/> height,<wbr/> input?)</code> tuples.<wbr/></p>
<p>Only devices that support depth output for at least
the HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>Y16 dense depth map may include
this entry.<wbr/></p>
<p>A device that also supports the HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>BLOB
sparse depth point cloud must report a single entry for
the format in this list as <code>(HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>BLOB,<wbr/>
<a href="#static_android.depth.maxDepthSamples">android.<wbr/>depth.<wbr/>max<wbr/>Depth<wbr/>Samples</a>,<wbr/> 1,<wbr/> OUTPUT)</code> in addition to
the entries for HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>Y16.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDepthMinFrameDurations">
<td class="entry_name
" rowspan="3">
android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Min<wbr/>Frame<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the minimum frame duration for each
format/<wbr/>size combination for depth output formats.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This should correspond to the frame duration when only that
stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
set to either OFF or FAST.<wbr/></p>
<p>When multiple streams are used in a request,<wbr/> the minimum frame
duration will be max(individual stream min durations).<wbr/></p>
<p>The minimum frame duration of a stream (of a particular format,<wbr/> size)
is the same regardless of whether the stream is input or output.<wbr/></p>
<p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> and
<a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for more details about
calculating the max frame rate.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDepthStallDurations">
<td class="entry_name
" rowspan="3">
android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stall<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the maximum stall duration for each
output format/<wbr/>size combination for depth streams.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A stall duration is how much extra time would get added
to the normal minimum frame duration for a repeating request
that has streams with non-zero stall.<wbr/></p>
<p>This functions similarly to
<a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for depth
streams.<wbr/></p>
<p>All depth output stream formats may have a nonzero stall
duration.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.depthIsExclusive">
<td class="entry_name
" rowspan="3">
android.<wbr/>depth.<wbr/>depth<wbr/>Is<wbr/>Exclusive
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public as boolean]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.2)</span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.2)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Indicates whether a capture request may target both a
DEPTH16 /<wbr/> DEPTH_<wbr/>POINT_<wbr/>CLOUD output,<wbr/> and normal color outputs (such as
YUV_<wbr/>420_<wbr/>888,<wbr/> JPEG,<wbr/> or RAW) simultaneously.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>2</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>If TRUE,<wbr/> including both depth and color outputs in a single
capture request is not supported.<wbr/> An application must interleave color
and depth requests.<wbr/> If FALSE,<wbr/> a single request can target both types
of output.<wbr/></p>
<p>Typically,<wbr/> this restriction exists on camera devices that
need to emit a specific pattern or wavelength of light to
measure depth values,<wbr/> which causes the color image to be
corrupted during depth measurement.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableRecommendedDepthStreamConfigurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>depth.<wbr/>available<wbr/>Recommended<wbr/>Depth<wbr/>Stream<wbr/>Configurations
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 5
</span>
<span class="entry_type_visibility"> [ndk_public as recommendedStreamConfiguration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Recommended depth stream configurations for common client use cases.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Optional subset of the <a href="#static_android.depth.availableDepthStreamConfigurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stream<wbr/>Configurations</a> that
contains similar tuples listed as
(i.<wbr/>e.<wbr/> width,<wbr/> height,<wbr/> format,<wbr/> output/<wbr/>input stream,<wbr/> usecase bit field).<wbr/>
Camera devices will be able to suggest particular depth stream configurations which are
power and performance efficient for specific use cases.<wbr/> For more information about
retrieving the suggestions see
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getRecommendedStreamConfigurationMap">CameraCharacteristics#getRecommendedStreamConfigurationMap</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Recommended depth configurations are expected to be declared with SNAPSHOT and/<wbr/>or
ZSL if supported by the device.<wbr/>
For additional details on how to declare recommended stream configurations,<wbr/> check
<a href="#static_android.scaler.availableRecommendedStreamConfigurations">android.<wbr/>scaler.<wbr/>available<wbr/>Recommended<wbr/>Stream<wbr/>Configurations</a>.<wbr/>
For additional requirements on depth streams please consider
<a href="#static_android.depth.availableDepthStreamConfigurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stream<wbr/>Configurations</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDynamicDepthStreamConfigurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>depth.<wbr/>available<wbr/>Dynamic<wbr/>Depth<wbr/>Stream<wbr/>Configurations
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OUTPUT (v3.4)</span>
</li>
<li>
<span class="entry_type_enum_name">INPUT (v3.4)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available dynamic depth dataspace stream
configurations that this camera device supports
(i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>These are output stream configurations for use with
dataSpace DYNAMIC_<wbr/>DEPTH.<wbr/> The configurations are
listed as <code>(format,<wbr/> width,<wbr/> height,<wbr/> input?)</code> tuples.<wbr/></p>
<p>Only devices that support depth output for at least
the HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>Y16 dense depth map along with
HAL_<wbr/>PIXEL_<wbr/>FORMAT_<wbr/>BLOB with the same size or size with
the same aspect ratio can have dynamic depth dataspace
stream configuration.<wbr/> <a href="#static_android.depth.depthIsExclusive">android.<wbr/>depth.<wbr/>depth<wbr/>Is<wbr/>Exclusive</a> also
needs to be set to FALSE.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly.<wbr/>
It is populated by camera framework and must not be set
at the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDynamicDepthMinFrameDurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>depth.<wbr/>available<wbr/>Dynamic<wbr/>Depth<wbr/>Min<wbr/>Frame<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the minimum frame duration for each
format/<wbr/>size combination for dynamic depth output streams.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This should correspond to the frame duration when only that
stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
set to either OFF or FAST.<wbr/></p>
<p>When multiple streams are used in a request,<wbr/> the minimum frame
duration will be max(individual stream min durations).<wbr/></p>
<p>The minimum frame duration of a stream (of a particular format,<wbr/> size)
is the same regardless of whether the stream is input or output.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly.<wbr/>
It is populated by camera framework and must not be set
at the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDynamicDepthStallDurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>depth.<wbr/>available<wbr/>Dynamic<wbr/>Depth<wbr/>Stall<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the maximum stall duration for each
output format/<wbr/>size combination for dynamic depth streams.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A stall duration is how much extra time would get added
to the normal minimum frame duration for a repeating request
that has streams with non-zero stall.<wbr/></p>
<p>All dynamic depth output streams may have a nonzero stall
duration.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly.<wbr/>
It is populated by camera framework and must not be set
at the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDepthStreamConfigurationsMaximumResolution">
<td class="entry_name
" rowspan="3">
android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stream<wbr/>Configurations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OUTPUT (v3.6)</span>
</li>
<li>
<span class="entry_type_enum_name">INPUT (v3.6)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available depth dataspace stream
configurations that this camera device supports
(i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream) when a CaptureRequest is submitted with
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.depth.availableDepthStreamConfigurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stream<wbr/>Configurations</a>,<wbr/> for configurations which
are applicable when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDepthMinFrameDurationsMaximumResolution">
<td class="entry_name
" rowspan="3">
android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Min<wbr/>Frame<wbr/>Durations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the minimum frame duration for each
format/<wbr/>size combination for depth output formats when a CaptureRequest is submitted with
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.depth.availableDepthMinFrameDurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Min<wbr/>Frame<wbr/>Durations</a>,<wbr/> for configurations which
are applicable when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
<p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> and
<a href="#static_android.scaler.availableStallDurationsMaximumResolution">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations<wbr/>Maximum<wbr/>Resolution</a> for more details about
calculating the max frame rate.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDepthStallDurationsMaximumResolution">
<td class="entry_name
" rowspan="3">
android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stall<wbr/>Durations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the maximum stall duration for each
output format/<wbr/>size combination for depth streams for CaptureRequests where
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.depth.availableDepthStallDurations">android.<wbr/>depth.<wbr/>available<wbr/>Depth<wbr/>Stall<wbr/>Durations</a>,<wbr/> for configurations which
are applicable when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDynamicDepthStreamConfigurationsMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>depth.<wbr/>available<wbr/>Dynamic<wbr/>Depth<wbr/>Stream<wbr/>Configurations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OUTPUT (v3.6)</span>
</li>
<li>
<span class="entry_type_enum_name">INPUT (v3.6)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available dynamic depth dataspace stream
configurations that this camera device supports (i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/>
output/<wbr/>input stream) for CaptureRequests where <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.depth.availableDynamicDepthStreamConfigurations">android.<wbr/>depth.<wbr/>available<wbr/>Dynamic<wbr/>Depth<wbr/>Stream<wbr/>Configurations</a>,<wbr/> for configurations
which are applicable when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly.<wbr/>
It is populated by camera framework and must not be set
at the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDynamicDepthMinFrameDurationsMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>depth.<wbr/>available<wbr/>Dynamic<wbr/>Depth<wbr/>Min<wbr/>Frame<wbr/>Durations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the minimum frame duration for each
format/<wbr/>size combination for dynamic depth output streams for CaptureRequests where
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.depth.availableDynamicDepthMinFrameDurations">android.<wbr/>depth.<wbr/>available<wbr/>Dynamic<wbr/>Depth<wbr/>Min<wbr/>Frame<wbr/>Durations</a>,<wbr/> for configurations
which are applicable when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly.<wbr/>
It is populated by camera framework and must not be set
at the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.depth.availableDynamicDepthStallDurationsMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>depth.<wbr/>available<wbr/>Dynamic<wbr/>Depth<wbr/>Stall<wbr/>Durations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the maximum stall duration for each
output format/<wbr/>size combination for dynamic depth streams for CaptureRequests where
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_DEPTH">DEPTH</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Analogous to <a href="#static_android.depth.availableDynamicDepthStallDurations">android.<wbr/>depth.<wbr/>available<wbr/>Dynamic<wbr/>Depth<wbr/>Stall<wbr/>Durations</a>,<wbr/> for configurations
which are applicable when <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly.<wbr/>
It is populated by camera framework and must not be set
at the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_logicalMultiCamera" class="section">logicalMultiCamera</td></tr>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.logicalMultiCamera.physicalIds">
<td class="entry_name
" rowspan="5">
android.<wbr/>logical<wbr/>Multi<wbr/>Camera.<wbr/>physical<wbr/>Ids
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [ndk_public]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>String containing the ids of the underlying physical cameras.<wbr/></p>
</td>
<td class="entry_units">
UTF-8 null-terminated string
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_LOGICALCAMERA">LOGICALCAMERA</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>For a logical camera,<wbr/> this is concatenation of all underlying physical camera IDs.<wbr/>
The null terminator for physical camera ID must be preserved so that the whole string
can be tokenized using '\0' to generate list of physical camera IDs.<wbr/></p>
<p>For example,<wbr/> if the physical camera IDs of the logical camera are "2" and "3",<wbr/> the
value of this tag will be ['2',<wbr/> '\0',<wbr/> '3',<wbr/> '\0'].<wbr/></p>
<p>The number of physical camera IDs must be no less than 2.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Each physical camera id should uniquely identify a camera lens in the system.<wbr/>
So if each camera lens only backs one logical camera,<wbr/> all camera IDs in the system,<wbr/>
physical IDs or non-physical IDs,<wbr/> should be unique.<wbr/></p>
<p>In rare cases,<wbr/> one camera lens backs two different logical cameras,<wbr/> the
physicalIds of both logical cameras should contain a physical camera ID
identifying that same camera lens.<wbr/> For example,<wbr/> if the mobile device has 3 rear facing
cameras and no front facing cameras,<wbr/> and the 3 rear facing lenses may be modelled as
2 logical cameras:</p>
<ul>
<li>"device@1.<wbr/>0/<wbr/>internal/<wbr/>10": physicalIds: "camera0",<wbr/> "camera42"</li>
<li>"device@1.<wbr/>0/<wbr/>internal/<wbr/>11": physicalIds: "camera1",<wbr/> "camera42"</li>
</ul>
<p>In this case,<wbr/> the two logical cameras are conflicting devices because they are backed
by a common lens.<wbr/></p>
<p>Physical camera IDs can be an arbitrary string not containing '\0'.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.logicalMultiCamera.sensorSyncType">
<td class="entry_name
" rowspan="3">
android.<wbr/>logical<wbr/>Multi<wbr/>Camera.<wbr/>sensor<wbr/>Sync<wbr/>Type
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">APPROXIMATE (v3.3)</span>
<span class="entry_type_enum_notes"><p>A software mechanism is used to synchronize between the physical cameras.<wbr/> As a result,<wbr/>
the timestamp of an image from a physical stream is only an approximation of the
image sensor start-of-exposure time.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">CALIBRATED (v3.3)</span>
<span class="entry_type_enum_notes"><p>The camera device supports frame timestamp synchronization at the hardware level,<wbr/>
and the timestamp of a physical stream image accurately reflects its
start-of-exposure time.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The accuracy of frame timestamp synchronization between physical cameras</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_LOGICALCAMERA">LOGICALCAMERA</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The accuracy of the frame timestamp synchronization determines the physical cameras'
ability to start exposure at the same time.<wbr/> If the sensorSyncType is CALIBRATED,<wbr/> the
physical camera sensors usually run in leader/<wbr/>follower mode where one sensor generates a
timing signal for the other,<wbr/> so that their shutter time is synchronized.<wbr/> For APPROXIMATE
sensorSyncType,<wbr/> the camera sensors usually run in leader/<wbr/>leader mode,<wbr/> where both sensors
use their own timing generator,<wbr/> and there could be offset between their start of exposure.<wbr/></p>
<p>In both cases,<wbr/> all images generated for a particular capture request still carry the same
timestamps,<wbr/> so that they can be used to look up the matching frame number and
onCaptureStarted callback.<wbr/></p>
<p>This tag is only applicable if the logical camera device supports concurrent physical
streams from different physical cameras.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.logicalMultiCamera.activePhysicalId">
<td class="entry_name
" rowspan="5">
android.<wbr/>logical<wbr/>Multi<wbr/>Camera.<wbr/>active<wbr/>Physical<wbr/>Id
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [public as string]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>String containing the ID of the underlying active physical camera.<wbr/></p>
</td>
<td class="entry_units">
UTF-8 null-terminated string
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_LOGICALCAMERA">LOGICALCAMERA</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The ID of the active physical camera that's backing the logical camera.<wbr/> All camera
streams and metadata that are not physical camera specific will be originating from this
physical camera.<wbr/></p>
<p>For a logical camera made up of physical cameras where each camera's lenses have
different characteristics,<wbr/> the camera device may choose to switch between the physical
cameras when application changes FOCAL_<wbr/>LENGTH or SCALER_<wbr/>CROP_<wbr/>REGION.<wbr/>
At the time of lens switch,<wbr/> this result metadata reflects the new active physical camera
ID.<wbr/></p>
<p>This key will be available if the camera device advertises this key via <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#getAvailableCaptureResultKeys">CameraCharacteristics#getAvailableCaptureResultKeys</a>.<wbr/>
When available,<wbr/> this must be one of valid physical IDs backing this logical multi-camera.<wbr/>
If this key is not available for a logical multi-camera,<wbr/> the camera device implementation
may still switch between different active physical cameras based on use case,<wbr/> but the
current active physical camera information won't be available to the application.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Staring from HIDL ICameraDevice version 3.<wbr/>5,<wbr/> the tag must be available in the capture
result metadata to indicate current active physical camera ID.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.logicalMultiCamera.activePhysicalSensorCropRegion">
<td class="entry_name
" rowspan="5">
android.<wbr/>logical<wbr/>Multi<wbr/>Camera.<wbr/>active<wbr/>Physical<wbr/>Sensor<wbr/>Crop<wbr/>Region
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4
</span>
<span class="entry_type_visibility"> [public as rectangle]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The current region of the active physical sensor that will be read out for this
capture.<wbr/></p>
</td>
<td class="entry_units">
Pixel coordinates relative to
android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size or
android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size of the currently
android.<wbr/>logical<wbr/>Multi<wbr/>Camera.<wbr/>active<wbr/>Physical<wbr/>Id depending on distortion correction capability
and mode
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_LOGICALCAMERA">LOGICALCAMERA</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This capture result matches with <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> on non-logical single
camera sensor devices.<wbr/> In case of logical cameras that can switch between several
physical devices in response to <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> this capture result will
not behave like <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> and <a href="#controls_android.control.zoomRatio">android.<wbr/>control.<wbr/>zoom<wbr/>Ratio</a>,<wbr/> where the
combination of both reflects the effective zoom and crop of the logical camera output.<wbr/>
Instead,<wbr/> this capture result value will describe the zoom and crop of the active physical
device.<wbr/> Some examples of when the value of this capture result will change include
switches between different physical lenses,<wbr/> switches between regular and maximum
resolution pixel mode and going through the device digital or optical range.<wbr/>
This capture result is similar to <a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a> with respect to distortion
correction.<wbr/> When the distortion correction mode is OFF,<wbr/> the coordinate system follows
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>,<wbr/> with (0,<wbr/> 0) being the top-left pixel
of the pre-correction active array.<wbr/> When the distortion correction mode is not OFF,<wbr/>
the coordinate system follows <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>,<wbr/> with (0,<wbr/> 0) being
the top-left pixel of the active array.<wbr/></p>
<p>For camera devices with the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR">Camera<wbr/>Metadata#REQUEST_<wbr/>AVAILABLE_<wbr/>CAPABILITIES_<wbr/>ULTRA_<wbr/>HIGH_<wbr/>RESOLUTION_<wbr/>SENSOR</a>
capability or devices where <a href="https://developer.android.com/reference/CameraCharacteristics.html#getAvailableCaptureRequestKeys">CameraCharacteristics#getAvailableCaptureRequestKeys</a>
lists <a href="https://developer.android.com/reference/CaptureRequest.html#SENSOR_PIXEL_MODE"><a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a></a>
,<wbr/> the current active physical device
<a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> /<wbr/>
<a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size<wbr/>Maximum<wbr/>Resolution</a> must be used as the
coordinate system for requests where <a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The output streams must maintain square pixels at all
times,<wbr/> no matter what the relative aspect ratios of the
crop region and the stream are.<wbr/> Negative values for
corner are allowed for raw output if full pixel array is
larger than active pixel array.<wbr/> Width and height may be
rounded to nearest larger supportable width,<wbr/> especially
for raw output,<wbr/> where only a few fixed scales may be
possible.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_distortionCorrection" class="section">distortionCorrection</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.distortionCorrection.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>distortion<wbr/>Correction.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.3)</span>
<span class="entry_type_enum_notes"><p>No distortion correction is applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.3)</span>
<span class="entry_type_enum_notes"><p>Lens distortion correction is applied without reducing frame rate
relative to sensor output.<wbr/> It may be the same as OFF if distortion correction would
reduce frame rate relative to sensor.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.3)</span>
<span class="entry_type_enum_notes"><p>High-quality distortion correction is applied,<wbr/> at the cost of
possibly reduced frame rate relative to sensor output.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Mode of operation for the lens distortion correction block.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.distortionCorrection.availableModes">android.<wbr/>distortion<wbr/>Correction.<wbr/>available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The lens distortion correction block attempts to improve image quality by fixing
radial,<wbr/> tangential,<wbr/> or other geometric aberrations in the camera device's optics.<wbr/> If
available,<wbr/> the <a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a> field documents the lens's distortion parameters.<wbr/></p>
<p>OFF means no distortion correction is done.<wbr/></p>
<p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined distortion correction will be
applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device will use the highest-quality
correction algorithms,<wbr/> even if it slows down capture rate.<wbr/> FAST means the camera device
will not slow down capture rate when applying correction.<wbr/> FAST may be the same as OFF if
any correction at all would slow down capture rate.<wbr/> Every output stream will have a
similar amount of enhancement applied.<wbr/></p>
<p>The correction only applies to processed outputs such as YUV,<wbr/> Y8,<wbr/> JPEG,<wbr/> or DEPTH16; it is
not applied to any RAW output.<wbr/></p>
<p>This control will be on by default on devices that support this control.<wbr/> Applications
disabling distortion correction need to pay extra attention with the coordinate system of
metering regions,<wbr/> crop region,<wbr/> and face rectangles.<wbr/> When distortion correction is OFF,<wbr/>
metadata coordinates follow the coordinate system of
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/> When distortion is not OFF,<wbr/> metadata
coordinates follow the coordinate system of <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/> The
camera device will map these metadata fields to match the corrected image produced by the
camera device,<wbr/> for both capture requests and results.<wbr/> However,<wbr/> this mapping is not very
precise,<wbr/> since rectangles do not generally map to rectangles when corrected.<wbr/> Only linear
scaling between the active array and precorrection active array coordinates is
performed.<wbr/> Applications that require precise correction of metadata need to undo that
linear scaling,<wbr/> and apply a more complete correction that takes into the account the app's
own requirements.<wbr/></p>
<p>The full list of metadata that is affected in this way by distortion correction is:</p>
<ul>
<li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
<li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
<li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
<li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
<li><a href="#dynamic_android.statistics.faces">android.<wbr/>statistics.<wbr/>faces</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.distortionCorrection.availableModes">
<td class="entry_name
" rowspan="5">
android.<wbr/>distortion<wbr/>Correction.<wbr/>available<wbr/>Modes
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public as enumList]</span>
<div class="entry_type_notes">list of enums</div>
</td> <!-- entry_type -->
<td class="entry_description">
<p>List of distortion correction modes for <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a> that are
supported by this camera device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Any value listed in <a href="#controls_android.distortionCorrection.mode">android.<wbr/>distortion<wbr/>Correction.<wbr/>mode</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_V1">V1</a></li>
<li><a href="#tag_REPROC">REPROC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>No device is required to support this API; such devices will always list only 'OFF'.<wbr/>
All devices that support this API will list both FAST and HIGH_<wbr/>QUALITY.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>HAL must support both FAST and HIGH_<wbr/>QUALITY if distortion correction is available
on the camera device,<wbr/> but the underlying implementation can be the same for both modes.<wbr/>
That is,<wbr/> if the highest quality implementation on the camera device does not slow down
capture rate,<wbr/> then FAST and HIGH_<wbr/>QUALITY will generate the same output.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.distortionCorrection.mode">
<td class="entry_name
" rowspan="3">
android.<wbr/>distortion<wbr/>Correction.<wbr/>mode
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OFF (v3.3)</span>
<span class="entry_type_enum_notes"><p>No distortion correction is applied.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">FAST (v3.3)</span>
<span class="entry_type_enum_notes"><p>Lens distortion correction is applied without reducing frame rate
relative to sensor output.<wbr/> It may be the same as OFF if distortion correction would
reduce frame rate relative to sensor.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">HIGH_QUALITY (v3.3)</span>
<span class="entry_type_enum_notes"><p>High-quality distortion correction is applied,<wbr/> at the cost of
possibly reduced frame rate relative to sensor output.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Mode of operation for the lens distortion correction block.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p><a href="#static_android.distortionCorrection.availableModes">android.<wbr/>distortion<wbr/>Correction.<wbr/>available<wbr/>Modes</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>3</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The lens distortion correction block attempts to improve image quality by fixing
radial,<wbr/> tangential,<wbr/> or other geometric aberrations in the camera device's optics.<wbr/> If
available,<wbr/> the <a href="#static_android.lens.distortion">android.<wbr/>lens.<wbr/>distortion</a> field documents the lens's distortion parameters.<wbr/></p>
<p>OFF means no distortion correction is done.<wbr/></p>
<p>FAST/<wbr/>HIGH_<wbr/>QUALITY both mean camera device determined distortion correction will be
applied.<wbr/> HIGH_<wbr/>QUALITY mode indicates that the camera device will use the highest-quality
correction algorithms,<wbr/> even if it slows down capture rate.<wbr/> FAST means the camera device
will not slow down capture rate when applying correction.<wbr/> FAST may be the same as OFF if
any correction at all would slow down capture rate.<wbr/> Every output stream will have a
similar amount of enhancement applied.<wbr/></p>
<p>The correction only applies to processed outputs such as YUV,<wbr/> Y8,<wbr/> JPEG,<wbr/> or DEPTH16; it is
not applied to any RAW output.<wbr/></p>
<p>This control will be on by default on devices that support this control.<wbr/> Applications
disabling distortion correction need to pay extra attention with the coordinate system of
metering regions,<wbr/> crop region,<wbr/> and face rectangles.<wbr/> When distortion correction is OFF,<wbr/>
metadata coordinates follow the coordinate system of
<a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>pre<wbr/>Correction<wbr/>Active<wbr/>Array<wbr/>Size</a>.<wbr/> When distortion is not OFF,<wbr/> metadata
coordinates follow the coordinate system of <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/> The
camera device will map these metadata fields to match the corrected image produced by the
camera device,<wbr/> for both capture requests and results.<wbr/> However,<wbr/> this mapping is not very
precise,<wbr/> since rectangles do not generally map to rectangles when corrected.<wbr/> Only linear
scaling between the active array and precorrection active array coordinates is
performed.<wbr/> Applications that require precise correction of metadata need to undo that
linear scaling,<wbr/> and apply a more complete correction that takes into the account the app's
own requirements.<wbr/></p>
<p>The full list of metadata that is affected in this way by distortion correction is:</p>
<ul>
<li><a href="#controls_android.control.afRegions">android.<wbr/>control.<wbr/>af<wbr/>Regions</a></li>
<li><a href="#controls_android.control.aeRegions">android.<wbr/>control.<wbr/>ae<wbr/>Regions</a></li>
<li><a href="#controls_android.control.awbRegions">android.<wbr/>control.<wbr/>awb<wbr/>Regions</a></li>
<li><a href="#controls_android.scaler.cropRegion">android.<wbr/>scaler.<wbr/>crop<wbr/>Region</a></li>
<li><a href="#dynamic_android.statistics.faces">android.<wbr/>statistics.<wbr/>faces</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_heic" class="section">heic</td></tr>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.heic.info.supported">
<td class="entry_name
" rowspan="3">
android.<wbr/>heic.<wbr/>info.<wbr/>supported
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [system as boolean]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">FALSE (v3.4)</span>
</li>
<li>
<span class="entry_type_enum_name">TRUE (v3.4)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Whether this camera device can support identical set of stream combinations
involving HEIC image format,<wbr/> compared to the
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#legacy-level-guaranteed-configurations">table of combinations</a>
involving JPEG image format required for the device's hardware
level and capabilities.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HEIC">HEIC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>All the static,<wbr/> control and dynamic metadata tags related to JPEG apply to HEIC formats
as well.<wbr/> For example,<wbr/> the same <a href="#controls_android.jpeg.orientation">android.<wbr/>jpeg.<wbr/>orientation</a> and <a href="#controls_android.jpeg.quality">android.<wbr/>jpeg.<wbr/>quality</a> are
used to control the orientation and quality of the HEIC image.<wbr/> Configuring JPEG and
HEIC streams at the same time is not supported.<wbr/></p>
<p>If a camera device supports HEIC format (ISO/<wbr/>IEC 23008-12),<wbr/> not only does it
support the existing mandatory stream
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraDevice#legacy-level-guaranteed-configurations">combinations</a>
required for the device's hardware level and capabilities,<wbr/> it also
supports swapping each JPEG stream with HEIC stream in all guaranteed combinations.<wbr/></p>
<p>For every HEIC stream configured by the application,<wbr/> the camera framework sets up 2
internal streams with camera HAL:</p>
<ul>
<li>A YUV_<wbr/>420_<wbr/>888 or IMPLEMENTATION_<wbr/>DEFINED HAL stream as input to HEIC or HEVC encoder.<wbr/></li>
<li>A BLOB stream with JPEG_<wbr/>APPS_<wbr/>SEGMENTS dataspace to extract application markers
including EXIF and thumbnail to be saved in HEIF container.<wbr/></li>
</ul>
<p>A camera device can output HEIC format to the application if and only if:</p>
<ul>
<li>The system contains a HEIC or HEVC encoder with constant quality mode,<wbr/> and</li>
<li>This tag is set to TRUE,<wbr/> meaning that camera HAL supports replacing JPEG streams in
all mandatory stream combinations with a [YUV_<wbr/>420_<wbr/>888/<wbr/>IMPLEMENTATION_<wbr/>DEFINED stream +
JPEG_<wbr/>APPS_<wbr/>SEGMENT BLOB stream] combo.<wbr/></li>
</ul>
<p>As an example,<wbr/> if the camera device's hardware level is LIMITED,<wbr/> and it supports HEIC,<wbr/>
in addition to the required stream combinations,<wbr/> HAL must support below stream
combinations as well:</p>
<ul>
<li>IMPLEMENTATION_<wbr/>DEFINED/<wbr/>YUV_<wbr/>420_<wbr/>888 MAXIMUM + JPEG_<wbr/>SEGMENTS_<wbr/>BLOB,<wbr/></li>
<li>PRIV PREVIEW + IMPLEMENTATION_<wbr/>DEFINED/<wbr/>YUV_<wbr/>420_<wbr/>888 MAXIMUM + JPEG_<wbr/>SEGMENTS_<wbr/>BLOB,<wbr/></li>
<li>YUV PREVIEW + IMPLEMENTATION_<wbr/>DEFINED/<wbr/>YUV_<wbr/>420_<wbr/>888 MAXIMUM + JPEG_<wbr/>SEGMENTS_<wbr/>BLOB,<wbr/></li>
<li>PRIV PREVIEW + YUV PREVIEW + IMPLEMENTATION_<wbr/>DEFINED/<wbr/>YUV_<wbr/>420_<wbr/>888 MAXIMUM +
JPEG_<wbr/>SEGMENTS_<wbr/>BLOB</li>
</ul>
<p>The selection logic between YUV_<wbr/>420_<wbr/>888 and IMPLEMENTATION_<wbr/>DEFINED for HAL internal
stream is as follows:</p>
<pre><code>if (HEIC encoder exists and supports the size) {
use IMPLEMENTATION_<wbr/>DEFINED with GRALLOC_<wbr/>USAGE_<wbr/>HW_<wbr/>IMAGE_<wbr/>ENCODER usage flag;
} else {
//<wbr/> HVC encoder exists
if (size is less than framework predefined tile size) {
use IMPLEMENTATINO_<wbr/>DEFINED with GRALLOC_<wbr/>USAGE_<wbr/>HW_<wbr/>VIDEO_<wbr/>ENCODER usage flag;
} else {
use YUV_<wbr/>420_<wbr/>888;
}
}
</code></pre>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.heic.info.maxJpegAppSegmentsCount">
<td class="entry_name
" rowspan="3">
android.<wbr/>heic.<wbr/>info.<wbr/>max<wbr/>Jpeg<wbr/>App<wbr/>Segments<wbr/>Count
</td>
<td class="entry_type">
<span class="entry_type_name">byte</span>
<span class="entry_type_visibility"> [system]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The maximum number of Jpeg APP segments supported by the camera HAL device.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HEIC">HEIC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The camera framework will use this value to derive the size of the BLOB buffer with
JPEG_<wbr/>APP_<wbr/>SEGMENTS dataspace,<wbr/> with each APP segment occupying at most 64K bytes.<wbr/> If the
value of this tag is n,<wbr/> the size of the framework allocated buffer will be:</p>
<pre><code>n * (2 + 0xFFFF) + sizeof(struct CameraBlob)
</code></pre>
<p>where 2 is number of bytes for APP marker,<wbr/> 0xFFFF is the maximum size per APP segment
(including segment size).<wbr/></p>
<p>The value of this tag must be at least 1,<wbr/> and APP1 marker (0xFFE1) segment must be the
first segment stored in the JPEG_<wbr/>APPS_<wbr/>SEGMENTS BLOB buffer.<wbr/> APP1 segment stores EXIF and
thumbnail.<wbr/></p>
<p>Since media encoder embeds the orientation in the metadata of the output image,<wbr/> to be
consistent between main image and thumbnail,<wbr/> camera HAL must not rotate the thumbnail
image data based on <a href="#controls_android.jpeg.orientation">android.<wbr/>jpeg.<wbr/>orientation</a>.<wbr/> The framework will write the orientation
into EXIF and HEIC container.<wbr/></p>
<p>APP1 segment is followed immediately by one or multiple APP2 segments,<wbr/> and APPn
segments.<wbr/> After the HAL fills and returns the JPEG_<wbr/>APP_<wbr/>SEGMENTS buffer,<wbr/> the camera
framework modifies the APP1 segment by filling in the EXIF tags that are related to
main image bitstream and the tags that can be derived from capture result metadata,<wbr/>
before saving them into the HEIC container.<wbr/></p>
<p>The value of this tag must not be more than 16.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.heic.availableHeicStreamConfigurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>heic.<wbr/>available<wbr/>Heic<wbr/>Stream<wbr/>Configurations
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OUTPUT (v3.4)</span>
</li>
<li>
<span class="entry_type_enum_name">INPUT (v3.4)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available HEIC (ISO/<wbr/>IEC 23008-12) stream
configurations that this camera device supports
(i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HEIC">HEIC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The configurations are listed as <code>(format,<wbr/> width,<wbr/> height,<wbr/> input?)</code> tuples.<wbr/></p>
<p>If the camera device supports HEIC image format,<wbr/> it will support identical set of stream
combinations involving HEIC image format,<wbr/> compared to the combinations involving JPEG
image format as required by the device's hardware level and capabilities.<wbr/></p>
<p>All the static,<wbr/> control,<wbr/> and dynamic metadata tags related to JPEG apply to HEIC formats.<wbr/>
Configuring JPEG and HEIC streams at the same time is not supported.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>These are output stream configurations for use with dataSpace HAL_<wbr/>DATASPACE_<wbr/>HEIF.<wbr/></p>
<p>Do not set this property directly.<wbr/> It is populated by camera framework and must not be
set by the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.heic.availableHeicMinFrameDurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>heic.<wbr/>available<wbr/>Heic<wbr/>Min<wbr/>Frame<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the minimum frame duration for each
format/<wbr/>size combination for HEIC output formats.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HEIC">HEIC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This should correspond to the frame duration when only that
stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
set to either OFF or FAST.<wbr/></p>
<p>When multiple streams are used in a request,<wbr/> the minimum frame
duration will be max(individual stream min durations).<wbr/></p>
<p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> and
<a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for more details about
calculating the max frame rate.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly.<wbr/> It is populated by camera framework and must not be
set by the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.heic.availableHeicStallDurations">
<td class="entry_name
" rowspan="5">
android.<wbr/>heic.<wbr/>available<wbr/>Heic<wbr/>Stall<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the maximum stall duration for each
output format/<wbr/>size combination for HEIC streams.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>4</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HEIC">HEIC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A stall duration is how much extra time would get added
to the normal minimum frame duration for a repeating request
that has streams with non-zero stall.<wbr/></p>
<p>This functions similarly to
<a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for HEIC
streams.<wbr/></p>
<p>All HEIC output stream formats may have a nonzero stall
duration.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly.<wbr/> It is populated by camera framework and must not be
set by the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.heic.availableHeicStreamConfigurationsMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>heic.<wbr/>available<wbr/>Heic<wbr/>Stream<wbr/>Configurations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OUTPUT (v3.6)</span>
</li>
<li>
<span class="entry_type_enum_name">INPUT (v3.6)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available HEIC (ISO/<wbr/>IEC 23008-12) stream
configurations that this camera device supports
(i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HEIC">HEIC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to <a href="#static_android.heic.availableHeicStreamConfigurations">android.<wbr/>heic.<wbr/>available<wbr/>Heic<wbr/>Stream<wbr/>Configurations</a> for details.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>These are output stream configurations for use with dataSpace HAL_<wbr/>DATASPACE_<wbr/>HEIF.<wbr/></p>
<p>Do not set this property directly.<wbr/> It is populated by camera framework and must not be
set by the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.heic.availableHeicMinFrameDurationsMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>heic.<wbr/>available<wbr/>Heic<wbr/>Min<wbr/>Frame<wbr/>Durations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the minimum frame duration for each
format/<wbr/>size combination for HEIC output formats for CaptureRequests where
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HEIC">HEIC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to <a href="#static_android.heic.availableHeicMinFrameDurations">android.<wbr/>heic.<wbr/>available<wbr/>Heic<wbr/>Min<wbr/>Frame<wbr/>Durations</a> for details.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly.<wbr/> It is populated by camera framework and must not be
set by the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.heic.availableHeicStallDurationsMaximumResolution">
<td class="entry_name
" rowspan="5">
android.<wbr/>heic.<wbr/>available<wbr/>Heic<wbr/>Stall<wbr/>Durations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the maximum stall duration for each
output format/<wbr/>size combination for HEIC streams for CaptureRequests where
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>6</p>
</td>
<td class="entry_tags">
<ul class="entry_tags">
<li><a href="#tag_HEIC">HEIC</a></li>
</ul>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to <a href="#static_android.heic.availableHeicStallDurations">android.<wbr/>heic.<wbr/>available<wbr/>Heic<wbr/>Stall<wbr/>Durations</a> for details.<wbr/></p>
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">HAL Implementation Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Do not set this property directly.<wbr/> It is populated by camera framework and must not be
set by the HAL layer.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_automotive" class="section">automotive</td></tr>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.automotive.lens.facing">
<td class="entry_name
" rowspan="3">
android.<wbr/>automotive.<wbr/>lens.<wbr/>facing
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n
</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">EXTERIOR_OTHER (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the outside of the vehicle body frame but not exactly
one of the exterior sides defined by this enum.<wbr/> Applications should determine
the exact facing direction from <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> and
<a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTERIOR_FRONT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the front of the vehicle body frame.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTERIOR_REAR (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the rear of the vehicle body frame.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTERIOR_LEFT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the left side of the vehicle body frame.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTERIOR_RIGHT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the right side of the vehicle body frame.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INTERIOR_OTHER (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the inside of the vehicle body frame but not exactly
one of seats described by this enum.<wbr/> Applications should determine the exact
facing direction from <a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a> and <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INTERIOR_SEAT_ROW_1_LEFT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the left side seat of the first row.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INTERIOR_SEAT_ROW_1_CENTER (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the center seat of the first row.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INTERIOR_SEAT_ROW_1_RIGHT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the right seat of the first row.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INTERIOR_SEAT_ROW_2_LEFT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the left side seat of the second row.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INTERIOR_SEAT_ROW_2_CENTER (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the center seat of the second row.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INTERIOR_SEAT_ROW_2_RIGHT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the right side seat of the second row.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INTERIOR_SEAT_ROW_3_LEFT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the left side seat of the third row.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INTERIOR_SEAT_ROW_3_CENTER (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the center seat of the third row.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">INTERIOR_SEAT_ROW_3_RIGHT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device faces the right seat of the third row.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The direction of the camera faces relative to the vehicle body frame and the
passenger seats.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>8</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This enum defines the lens facing characteristic of the cameras on the automotive
devices with locations <a href="#static_android.automotive.location">android.<wbr/>automotive.<wbr/>location</a> defines.<wbr/> If the system has
FEATURE_<wbr/>AUTOMOTIVE,<wbr/> the camera will have this entry in its static metadata.<wbr/></p>
<p>When <a href="#static_android.automotive.location">android.<wbr/>automotive.<wbr/>location</a> is INTERIOR,<wbr/> this has one or more INTERIOR_<wbr/>*
values or a single EXTERIOR_<wbr/>* value.<wbr/> When this has more than one INTERIOR_<wbr/>*,<wbr/>
the first value must be the one for the seat closest to the optical axis.<wbr/> If this
contains INTERIOR_<wbr/>OTHER,<wbr/> all other values will be ineffective.<wbr/></p>
<p>When <a href="#static_android.automotive.location">android.<wbr/>automotive.<wbr/>location</a> is EXTERIOR_<wbr/>* or EXTRA,<wbr/> this has a single
EXTERIOR_<wbr/>* value.<wbr/></p>
<p>If a camera has INTERIOR_<wbr/>OTHER or EXTERIOR_<wbr/>OTHER,<wbr/> or more than one camera is at the
same location and facing the same direction,<wbr/> their static metadata will list the
following entries,<wbr/> so that applications can determine their lenses' exact facing
directions:</p>
<ul>
<li><a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a></li>
<li><a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a></li>
<li><a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.automotive.location">
<td class="entry_name
" rowspan="3">
android.<wbr/>automotive.<wbr/>location
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">byte</span>
<span class="entry_type_visibility"> [public]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">INTERIOR (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device exists inside of the vehicle cabin.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTERIOR_OTHER (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera exists outside of the vehicle body frame but not exactly on one of the
exterior locations this enum defines.<wbr/> The applications should determine the exact
location from <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTERIOR_FRONT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device exists outside of the vehicle body frame and on its front side.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTERIOR_REAR (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device exists outside of the vehicle body frame and on its rear side.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTERIOR_LEFT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device exists outside and on left side of the vehicle body frame.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTERIOR_RIGHT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device exists outside and on right side of the vehicle body frame.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTRA_OTHER (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device exists on an extra vehicle,<wbr/> such as the trailer,<wbr/> but not exactly
on one of front,<wbr/> rear,<wbr/> left,<wbr/> or right side.<wbr/> Applications should determine the exact
location from <a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a>.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTRA_FRONT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device exists outside of the extra vehicle's body frame and on its front
side.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTRA_REAR (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device exists outside of the extra vehicle's body frame and on its rear
side.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTRA_LEFT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device exists outside and on left side of the extra vehicle body.<wbr/></p></span>
</li>
<li>
<span class="entry_type_enum_name">EXTRA_RIGHT (v3.8)</span>
<span class="entry_type_enum_notes"><p>The camera device exists outside and on right side of the extra vehicle body.<wbr/></p></span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Location of the cameras on the automotive devices.<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>8</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This enum defines the locations of the cameras relative to the vehicle body frame on
<a href="https://source.android.com/devices/sensors/sensor-types#auto_axes">the automotive sensor coordinate system</a>.<wbr/>
If the system has FEATURE_<wbr/>AUTOMOTIVE,<wbr/> the camera will have this entry in its static
metadata.<wbr/></p>
<ul>
<li>INTERIOR is the inside of the vehicle body frame (or the passenger cabin).<wbr/></li>
<li>EXTERIOR is the outside of the vehicle body frame.<wbr/></li>
<li>EXTRA is the extra vehicle such as a trailer.<wbr/></li>
</ul>
<p>Each side of the vehicle body frame on this coordinate system is defined as below:</p>
<ul>
<li>FRONT is where the Y-axis increases toward.<wbr/></li>
<li>REAR is where the Y-axis decreases toward.<wbr/></li>
<li>LEFT is where the X-axis decreases toward.<wbr/></li>
<li>RIGHT is where the X-axis increases toward.<wbr/></li>
</ul>
<p>If the camera has either EXTERIOR_<wbr/>OTHER or EXTRA_<wbr/>OTHER,<wbr/> its static metadata will list
the following entries,<wbr/> so that applications can determine the camera's exact location:</p>
<ul>
<li><a href="#static_android.lens.poseReference">android.<wbr/>lens.<wbr/>pose<wbr/>Reference</a></li>
<li><a href="#static_android.lens.poseRotation">android.<wbr/>lens.<wbr/>pose<wbr/>Rotation</a></li>
<li><a href="#static_android.lens.poseTranslation">android.<wbr/>lens.<wbr/>pose<wbr/>Translation</a></li>
</ul>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_extension" class="section">extension</td></tr>
<tr><td colspan="7" class="kind">controls</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="controls_android.extension.strength">
<td class="entry_name
" rowspan="3">
android.<wbr/>extension.<wbr/>strength
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [fwk_java_public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Strength of the extension post-processing effect</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>0 - 100</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control allows Camera extension clients to configure the strength of the applied
extension effect.<wbr/> Strength equal to 0 means that the extension must not apply any
post-processing and return a regular captured frame.<wbr/> Strength equal to 100 is the
maximum level of post-processing.<wbr/> Values between 0 and 100 will have different effect
depending on the extension type as described below:</p>
<ul>
<li><a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_BOKEH">BOKEH</a> -
the strength is expected to control the amount of blur.<wbr/></li>
<li><a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_HDR">HDR</a> and
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_NIGHT">NIGHT</a> -
the strength can control the amount of images fused and the brightness of the final image.<wbr/></li>
<li><a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_FACE_RETOUCH">FACE_<wbr/>RETOUCH</a> -
the strength value will control the amount of cosmetic enhancement and skin
smoothing.<wbr/></li>
</ul>
<p>The control will be supported if the capture request key is part of the list generated by
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#getAvailableCaptureRequestKeys">CameraExtensionCharacteristics#getAvailableCaptureRequestKeys</a>.<wbr/>
The control is only defined and available to clients sending capture requests via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionSession.html">CameraExtensionSession</a>.<wbr/>
If the client doesn't specify the extension strength value,<wbr/> then a default value will
be set by the extension.<wbr/> Clients can retrieve the default value by checking the
corresponding capture result.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<tr><td colspan="7" class="kind">dynamic</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="dynamic_android.extension.currentType">
<td class="entry_name
" rowspan="3">
android.<wbr/>extension.<wbr/>current<wbr/>Type
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [fwk_java_public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Contains the extension type of the currently active extension</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>Extension type value listed in
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html">CameraExtensionCharacteristics</a></p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The capture result will only be supported and included by camera extension
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionSession.html">sessions</a>.<wbr/>
In case the extension session was configured to use
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_AUTOMATIC">AUTO</a>,<wbr/>
then the extension type value will indicate the currently active extension like
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_HDR">HDR</a>,<wbr/>
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_NIGHT">NIGHT</a> etc.<wbr/>
,<wbr/> and will never return
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_AUTOMATIC">AUTO</a>.<wbr/>
In case the extension session was configured to use an extension different from
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_AUTOMATIC">AUTO</a>,<wbr/>
then the result type will always match with the configured extension type.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="dynamic_android.extension.strength">
<td class="entry_name
" rowspan="3">
android.<wbr/>extension.<wbr/>strength
</td>
<td class="entry_type">
<span class="entry_type_name">int32</span>
<span class="entry_type_visibility"> [fwk_java_public]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>Strength of the extension post-processing effect</p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
<p>0 - 100</p>
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This control allows Camera extension clients to configure the strength of the applied
extension effect.<wbr/> Strength equal to 0 means that the extension must not apply any
post-processing and return a regular captured frame.<wbr/> Strength equal to 100 is the
maximum level of post-processing.<wbr/> Values between 0 and 100 will have different effect
depending on the extension type as described below:</p>
<ul>
<li><a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_BOKEH">BOKEH</a> -
the strength is expected to control the amount of blur.<wbr/></li>
<li><a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_HDR">HDR</a> and
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_NIGHT">NIGHT</a> -
the strength can control the amount of images fused and the brightness of the final image.<wbr/></li>
<li><a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#EXTENSION_FACE_RETOUCH">FACE_<wbr/>RETOUCH</a> -
the strength value will control the amount of cosmetic enhancement and skin
smoothing.<wbr/></li>
</ul>
<p>The control will be supported if the capture request key is part of the list generated by
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics.html#getAvailableCaptureRequestKeys">CameraExtensionCharacteristics#getAvailableCaptureRequestKeys</a>.<wbr/>
The control is only defined and available to clients sending capture requests via
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraExtensionSession.html">CameraExtensionSession</a>.<wbr/>
If the client doesn't specify the extension strength value,<wbr/> then a default value will
be set by the extension.<wbr/> Clients can retrieve the default value by checking the
corresponding capture result.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<tr><td colspan="7" id="section_jpegr" class="section">jpegr</td></tr>
<tr><td colspan="7" class="kind">static</td></tr>
<thead class="entries_header">
<tr>
<th class="th_name">Property Name</th>
<th class="th_type">Type</th>
<th class="th_description">Description</th>
<th class="th_units">Units</th>
<th class="th_range">Range</th>
<th class="th_hal_version">Initial HIDL HAL version</th>
<th class="th_tags">Tags</th>
</tr>
</thead>
<tbody>
<tr class="entry" id="static_android.jpegr.availableJpegRStreamConfigurations">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpegr.<wbr/>available<wbr/>Jpeg<wbr/>RStream<wbr/>Configurations
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
<span class="entry_type_hwlevel">[limited] </span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OUTPUT (v3.9)</span>
</li>
<li>
<span class="entry_type_enum_name">INPUT (v3.9)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available Jpeg/<wbr/>R stream
configurations that this camera device supports
(i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>The configurations are listed as <code>(format,<wbr/> width,<wbr/> height,<wbr/> input?)</code> tuples.<wbr/></p>
<p>If the camera device supports Jpeg/<wbr/>R,<wbr/> it will support the same stream combinations with
Jpeg/<wbr/>R as it does with P010.<wbr/> The stream combinations with Jpeg/<wbr/>R (or P010) supported
by the device is determined by the device's hardware level and capabilities.<wbr/></p>
<p>All the static,<wbr/> control,<wbr/> and dynamic metadata tags related to JPEG apply to Jpeg/<wbr/>R formats.<wbr/>
Configuring JPEG and Jpeg/<wbr/>R streams at the same time is not supported.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.jpegr.availableJpegRMinFrameDurations">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpegr.<wbr/>available<wbr/>Jpeg<wbr/>RMin<wbr/>Frame<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the minimum frame duration for each
format/<wbr/>size combination for Jpeg/<wbr/>R output formats.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>This should correspond to the frame duration when only that
stream is active,<wbr/> with all processing (typically in android.<wbr/>*.<wbr/>mode)
set to either OFF or FAST.<wbr/></p>
<p>When multiple streams are used in a request,<wbr/> the minimum frame
duration will be max(individual stream min durations).<wbr/></p>
<p>See <a href="#controls_android.sensor.frameDuration">android.<wbr/>sensor.<wbr/>frame<wbr/>Duration</a> and
<a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for more details about
calculating the max frame rate.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.jpegr.availableJpegRStallDurations">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpegr.<wbr/>available<wbr/>Jpeg<wbr/>RStall<wbr/>Durations
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
<span class="entry_type_hwlevel">[limited] </span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the maximum stall duration for each
output format/<wbr/>size combination for Jpeg/<wbr/>R streams.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>A stall duration is how much extra time would get added
to the normal minimum frame duration for a repeating request
that has streams with non-zero stall.<wbr/></p>
<p>This functions similarly to
<a href="#static_android.scaler.availableStallDurations">android.<wbr/>scaler.<wbr/>available<wbr/>Stall<wbr/>Durations</a> for Jpeg/<wbr/>R
streams.<wbr/></p>
<p>All Jpeg/<wbr/>R output stream formats may have a nonzero stall
duration.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.jpegr.availableJpegRStreamConfigurationsMaximumResolution">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpegr.<wbr/>available<wbr/>Jpeg<wbr/>RStream<wbr/>Configurations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name entry_type_name_enum">int32</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
n x 4
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfiguration]</span>
<ul class="entry_type_enum">
<li>
<span class="entry_type_enum_name">OUTPUT (v3.9)</span>
</li>
<li>
<span class="entry_type_enum_name">INPUT (v3.9)</span>
</li>
</ul>
</td> <!-- entry_type -->
<td class="entry_description">
<p>The available Jpeg/<wbr/>R stream
configurations that this camera device supports
(i.<wbr/>e.<wbr/> format,<wbr/> width,<wbr/> height,<wbr/> output/<wbr/>input stream).<wbr/></p>
</td>
<td class="entry_units">
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to <a href="#static_android.jpegr.availableJpegRStreamConfigurations">android.<wbr/>jpegr.<wbr/>available<wbr/>Jpeg<wbr/>RStream<wbr/>Configurations</a> for details.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.jpegr.availableJpegRMinFrameDurationsMaximumResolution">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpegr.<wbr/>available<wbr/>Jpeg<wbr/>RMin<wbr/>Frame<wbr/>Durations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the minimum frame duration for each
format/<wbr/>size combination for Jpeg/<wbr/>R output formats for CaptureRequests where
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to <a href="#static_android.jpegr.availableJpegRMinFrameDurations">android.<wbr/>jpegr.<wbr/>available<wbr/>Jpeg<wbr/>RMin<wbr/>Frame<wbr/>Durations</a> for details.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<tr class="entry" id="static_android.jpegr.availableJpegRStallDurationsMaximumResolution">
<td class="entry_name
" rowspan="3">
android.<wbr/>jpegr.<wbr/>available<wbr/>Jpeg<wbr/>RStall<wbr/>Durations<wbr/>Maximum<wbr/>Resolution
</td>
<td class="entry_type">
<span class="entry_type_name">int64</span>
<span class="entry_type_container">x</span>
<span class="entry_type_array">
4 x n
</span>
<span class="entry_type_visibility"> [ndk_public as streamConfigurationDuration]</span>
</td> <!-- entry_type -->
<td class="entry_description">
<p>This lists the maximum stall duration for each
output format/<wbr/>size combination for Jpeg/<wbr/>R streams for CaptureRequests where
<a href="#controls_android.sensor.pixelMode">android.<wbr/>sensor.<wbr/>pixel<wbr/>Mode</a> is set to
<a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION">Camera<wbr/>Metadata#SENSOR_<wbr/>PIXEL_<wbr/>MODE_<wbr/>MAXIMUM_<wbr/>RESOLUTION</a>.<wbr/></p>
</td>
<td class="entry_units">
(format,<wbr/> width,<wbr/> height,<wbr/> ns) x n
</td>
<td class="entry_range">
</td>
<td class="entry_hal_version">
<p>3.<wbr/>9</p>
</td>
<td class="entry_tags">
</td>
</tr>
<tr class="entries_header">
<th class="th_details" colspan="6">Details</th>
</tr>
<tr class="entry_cont">
<td class="entry_details" colspan="6">
<p>Refer to <a href="#static_android.jpegr.availableJpegRStallDurations">android.<wbr/>jpegr.<wbr/>available<wbr/>Jpeg<wbr/>RStall<wbr/>Durations</a> for details.<wbr/></p>
</td>
</tr>
<tr class="entry_spacer"><td class="entry_spacer" colspan="7"></td></tr>
<!-- end of entry -->
<!-- end of kind -->
</tbody>
<!-- end of section -->
<!-- </namespace> -->
</table>
<div class="tags" id="tag_index">
<h2>Tags</h2>
<ul>
<li id="tag_BC">BC -
Needed for backwards compatibility with old Java API
<ul class="tags_entries">
<li><a href="#controls_android.control.aeAntibandingMode">android.control.aeAntibandingMode</a> (controls)</li>
<li><a href="#controls_android.control.aeExposureCompensation">android.control.aeExposureCompensation</a> (controls)</li>
<li><a href="#controls_android.control.aeLock">android.control.aeLock</a> (controls)</li>
<li><a href="#controls_android.control.aeMode">android.control.aeMode</a> (controls)</li>
<li><a href="#controls_android.control.aeRegions">android.control.aeRegions</a> (controls)</li>
<li><a href="#controls_android.control.aeTargetFpsRange">android.control.aeTargetFpsRange</a> (controls)</li>
<li><a href="#controls_android.control.aePrecaptureTrigger">android.control.aePrecaptureTrigger</a> (controls)</li>
<li><a href="#controls_android.control.afMode">android.control.afMode</a> (controls)</li>
<li><a href="#controls_android.control.afRegions">android.control.afRegions</a> (controls)</li>
<li><a href="#controls_android.control.afTrigger">android.control.afTrigger</a> (controls)</li>
<li><a href="#controls_android.control.awbLock">android.control.awbLock</a> (controls)</li>
<li><a href="#controls_android.control.awbMode">android.control.awbMode</a> (controls)</li>
<li><a href="#controls_android.control.awbRegions">android.control.awbRegions</a> (controls)</li>
<li><a href="#controls_android.control.captureIntent">android.control.captureIntent</a> (controls)</li>
<li><a href="#controls_android.control.effectMode">android.control.effectMode</a> (controls)</li>
<li><a href="#controls_android.control.mode">android.control.mode</a> (controls)</li>
<li><a href="#controls_android.control.sceneMode">android.control.sceneMode</a> (controls)</li>
<li><a href="#controls_android.control.videoStabilizationMode">android.control.videoStabilizationMode</a> (controls)</li>
<li><a href="#static_android.control.aeAvailableAntibandingModes">android.control.aeAvailableAntibandingModes</a> (static)</li>
<li><a href="#static_android.control.aeAvailableModes">android.control.aeAvailableModes</a> (static)</li>
<li><a href="#static_android.control.aeAvailableTargetFpsRanges">android.control.aeAvailableTargetFpsRanges</a> (static)</li>
<li><a href="#static_android.control.aeCompensationRange">android.control.aeCompensationRange</a> (static)</li>
<li><a href="#static_android.control.aeCompensationStep">android.control.aeCompensationStep</a> (static)</li>
<li><a href="#static_android.control.afAvailableModes">android.control.afAvailableModes</a> (static)</li>
<li><a href="#static_android.control.availableEffects">android.control.availableEffects</a> (static)</li>
<li><a href="#static_android.control.availableSceneModes">android.control.availableSceneModes</a> (static)</li>
<li><a href="#static_android.control.availableVideoStabilizationModes">android.control.availableVideoStabilizationModes</a> (static)</li>
<li><a href="#static_android.control.awbAvailableModes">android.control.awbAvailableModes</a> (static)</li>
<li><a href="#static_android.control.maxRegions">android.control.maxRegions</a> (static)</li>
<li><a href="#static_android.control.sceneModeOverrides">android.control.sceneModeOverrides</a> (static)</li>
<li><a href="#static_android.control.aeLockAvailable">android.control.aeLockAvailable</a> (static)</li>
<li><a href="#static_android.control.awbLockAvailable">android.control.awbLockAvailable</a> (static)</li>
<li><a href="#controls_android.flash.mode">android.flash.mode</a> (controls)</li>
<li><a href="#static_android.flash.info.available">android.flash.info.available</a> (static)</li>
<li><a href="#controls_android.jpeg.gpsCoordinates">android.jpeg.gpsCoordinates</a> (controls)</li>
<li><a href="#controls_android.jpeg.gpsProcessingMethod">android.jpeg.gpsProcessingMethod</a> (controls)</li>
<li><a href="#controls_android.jpeg.gpsTimestamp">android.jpeg.gpsTimestamp</a> (controls)</li>
<li><a href="#controls_android.jpeg.orientation">android.jpeg.orientation</a> (controls)</li>
<li><a href="#controls_android.jpeg.quality">android.jpeg.quality</a> (controls)</li>
<li><a href="#controls_android.jpeg.thumbnailQuality">android.jpeg.thumbnailQuality</a> (controls)</li>
<li><a href="#controls_android.jpeg.thumbnailSize">android.jpeg.thumbnailSize</a> (controls)</li>
<li><a href="#static_android.jpeg.availableThumbnailSizes">android.jpeg.availableThumbnailSizes</a> (static)</li>
<li><a href="#controls_android.lens.focusDistance">android.lens.focusDistance</a> (controls)</li>
<li><a href="#static_android.lens.info.availableFocalLengths">android.lens.info.availableFocalLengths</a> (static)</li>
<li><a href="#dynamic_android.lens.focusRange">android.lens.focusRange</a> (dynamic)</li>
<li><a href="#static_android.request.maxNumOutputStreams">android.request.maxNumOutputStreams</a> (static)</li>
<li><a href="#controls_android.scaler.cropRegion">android.scaler.cropRegion</a> (controls)</li>
<li><a href="#static_android.scaler.availableFormats">android.scaler.availableFormats</a> (static)</li>
<li><a href="#static_android.scaler.availableJpegMinDurations">android.scaler.availableJpegMinDurations</a> (static)</li>
<li><a href="#static_android.scaler.availableJpegSizes">android.scaler.availableJpegSizes</a> (static)</li>
<li><a href="#static_android.scaler.availableMaxDigitalZoom">android.scaler.availableMaxDigitalZoom</a> (static)</li>
<li><a href="#static_android.scaler.availableProcessedMinDurations">android.scaler.availableProcessedMinDurations</a> (static)</li>
<li><a href="#static_android.scaler.availableProcessedSizes">android.scaler.availableProcessedSizes</a> (static)</li>
<li><a href="#static_android.scaler.availableRawMinDurations">android.scaler.availableRawMinDurations</a> (static)</li>
<li><a href="#static_android.sensor.info.sensitivityRange">android.sensor.info.sensitivityRange</a> (static)</li>
<li><a href="#static_android.sensor.info.physicalSize">android.sensor.info.physicalSize</a> (static)</li>
<li><a href="#static_android.sensor.info.pixelArraySize">android.sensor.info.pixelArraySize</a> (static)</li>
<li><a href="#static_android.sensor.orientation">android.sensor.orientation</a> (static)</li>
<li><a href="#dynamic_android.sensor.timestamp">android.sensor.timestamp</a> (dynamic)</li>
<li><a href="#controls_android.statistics.faceDetectMode">android.statistics.faceDetectMode</a> (controls)</li>
<li><a href="#static_android.statistics.info.maxFaceCount">android.statistics.info.maxFaceCount</a> (static)</li>
<li><a href="#dynamic_android.statistics.faceIds">android.statistics.faceIds</a> (dynamic)</li>
<li><a href="#dynamic_android.statistics.faceLandmarks">android.statistics.faceLandmarks</a> (dynamic)</li>
<li><a href="#dynamic_android.statistics.faceRectangles">android.statistics.faceRectangles</a> (dynamic)</li>
<li><a href="#dynamic_android.statistics.faceScores">android.statistics.faceScores</a> (dynamic)</li>
<li><a href="#dynamic_android.lens.focalLength">android.lens.focalLength</a> (dynamic)</li>
<li><a href="#dynamic_android.lens.focusDistance">android.lens.focusDistance</a> (dynamic)</li>
</ul>
</li> <!-- tag_BC -->
<li id="tag_V1">V1 -
New features for first camera 2 release (API1)
<ul class="tags_entries">
<li><a href="#static_android.colorCorrection.availableAberrationModes">android.colorCorrection.availableAberrationModes</a> (static)</li>
<li><a href="#static_android.control.availableHighSpeedVideoConfigurations">android.control.availableHighSpeedVideoConfigurations</a> (static)</li>
<li><a href="#static_android.control.availableHighSpeedVideoConfigurationsMaximumResolution">android.control.availableHighSpeedVideoConfigurationsMaximumResolution</a> (static)</li>
<li><a href="#controls_android.edge.mode">android.edge.mode</a> (controls)</li>
<li><a href="#static_android.edge.availableEdgeModes">android.edge.availableEdgeModes</a> (static)</li>
<li><a href="#controls_android.hotPixel.mode">android.hotPixel.mode</a> (controls)</li>
<li><a href="#static_android.hotPixel.availableHotPixelModes">android.hotPixel.availableHotPixelModes</a> (static)</li>
<li><a href="#controls_android.lens.aperture">android.lens.aperture</a> (controls)</li>
<li><a href="#controls_android.lens.filterDensity">android.lens.filterDensity</a> (controls)</li>
<li><a href="#controls_android.lens.focalLength">android.lens.focalLength</a> (controls)</li>
<li><a href="#controls_android.lens.focusDistance">android.lens.focusDistance</a> (controls)</li>
<li><a href="#controls_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a> (controls)</li>
<li><a href="#static_android.lens.info.availableApertures">android.lens.info.availableApertures</a> (static)</li>
<li><a href="#static_android.lens.info.availableFilterDensities">android.lens.info.availableFilterDensities</a> (static)</li>
<li><a href="#static_android.lens.info.availableFocalLengths">android.lens.info.availableFocalLengths</a> (static)</li>
<li><a href="#static_android.lens.info.availableOpticalStabilization">android.lens.info.availableOpticalStabilization</a> (static)</li>
<li><a href="#static_android.lens.info.minimumFocusDistance">android.lens.info.minimumFocusDistance</a> (static)</li>
<li><a href="#static_android.lens.info.shadingMapSize">android.lens.info.shadingMapSize</a> (static)</li>
<li><a href="#static_android.lens.info.focusDistanceCalibration">android.lens.info.focusDistanceCalibration</a> (static)</li>
<li><a href="#dynamic_android.lens.state">android.lens.state</a> (dynamic)</li>
<li><a href="#controls_android.noiseReduction.mode">android.noiseReduction.mode</a> (controls)</li>
<li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.noiseReduction.availableNoiseReductionModes</a> (static)</li>
<li><a href="#controls_android.request.id">android.request.id</a> (controls)</li>
<li><a href="#static_android.scaler.availableMinFrameDurations">android.scaler.availableMinFrameDurations</a> (static)</li>
<li><a href="#static_android.scaler.availableStallDurations">android.scaler.availableStallDurations</a> (static)</li>
<li><a href="#controls_android.sensor.exposureTime">android.sensor.exposureTime</a> (controls)</li>
<li><a href="#controls_android.sensor.frameDuration">android.sensor.frameDuration</a> (controls)</li>
<li><a href="#controls_android.sensor.sensitivity">android.sensor.sensitivity</a> (controls)</li>
<li><a href="#static_android.sensor.info.sensitivityRange">android.sensor.info.sensitivityRange</a> (static)</li>
<li><a href="#static_android.sensor.info.exposureTimeRange">android.sensor.info.exposureTimeRange</a> (static)</li>
<li><a href="#static_android.sensor.info.maxFrameDuration">android.sensor.info.maxFrameDuration</a> (static)</li>
<li><a href="#static_android.sensor.info.physicalSize">android.sensor.info.physicalSize</a> (static)</li>
<li><a href="#static_android.sensor.info.timestampSource">android.sensor.info.timestampSource</a> (static)</li>
<li><a href="#static_android.sensor.maxAnalogSensitivity">android.sensor.maxAnalogSensitivity</a> (static)</li>
<li><a href="#dynamic_android.sensor.rollingShutterSkew">android.sensor.rollingShutterSkew</a> (dynamic)</li>
<li><a href="#controls_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a> (controls)</li>
<li><a href="#static_android.statistics.info.availableHotPixelMapModes">android.statistics.info.availableHotPixelMapModes</a> (static)</li>
<li><a href="#dynamic_android.statistics.hotPixelMap">android.statistics.hotPixelMap</a> (dynamic)</li>
<li><a href="#dynamic_android.sync.frameNumber">android.sync.frameNumber</a> (dynamic)</li>
<li><a href="#static_android.sync.maxLatency">android.sync.maxLatency</a> (static)</li>
<li><a href="#static_android.distortionCorrection.availableModes">android.distortionCorrection.availableModes</a> (static)</li>
<li><a href="#dynamic_android.edge.mode">android.edge.mode</a> (dynamic)</li>
<li><a href="#dynamic_android.hotPixel.mode">android.hotPixel.mode</a> (dynamic)</li>
<li><a href="#dynamic_android.lens.aperture">android.lens.aperture</a> (dynamic)</li>
<li><a href="#dynamic_android.lens.filterDensity">android.lens.filterDensity</a> (dynamic)</li>
<li><a href="#dynamic_android.lens.opticalStabilizationMode">android.lens.opticalStabilizationMode</a> (dynamic)</li>
<li><a href="#dynamic_android.noiseReduction.mode">android.noiseReduction.mode</a> (dynamic)</li>
</ul>
</li> <!-- tag_V1 -->
<li id="tag_RAW">RAW -
Needed for useful RAW image processing and DNG file support
<ul class="tags_entries">
<li><a href="#controls_android.hotPixel.mode">android.hotPixel.mode</a> (controls)</li>
<li><a href="#static_android.hotPixel.availableHotPixelModes">android.hotPixel.availableHotPixelModes</a> (static)</li>
<li><a href="#static_android.sensor.info.activeArraySize">android.sensor.info.activeArraySize</a> (static)</li>
<li><a href="#static_android.sensor.info.colorFilterArrangement">android.sensor.info.colorFilterArrangement</a> (static)</li>
<li><a href="#static_android.sensor.info.pixelArraySize">android.sensor.info.pixelArraySize</a> (static)</li>
<li><a href="#static_android.sensor.info.whiteLevel">android.sensor.info.whiteLevel</a> (static)</li>
<li><a href="#static_android.sensor.info.preCorrectionActiveArraySize">android.sensor.info.preCorrectionActiveArraySize</a> (static)</li>
<li><a href="#static_android.sensor.info.activeArraySizeMaximumResolution">android.sensor.info.activeArraySizeMaximumResolution</a> (static)</li>
<li><a href="#static_android.sensor.info.pixelArraySizeMaximumResolution">android.sensor.info.pixelArraySizeMaximumResolution</a> (static)</li>
<li><a href="#static_android.sensor.info.preCorrectionActiveArraySizeMaximumResolution">android.sensor.info.preCorrectionActiveArraySizeMaximumResolution</a> (static)</li>
<li><a href="#static_android.sensor.referenceIlluminant1">android.sensor.referenceIlluminant1</a> (static)</li>
<li><a href="#static_android.sensor.referenceIlluminant2">android.sensor.referenceIlluminant2</a> (static)</li>
<li><a href="#static_android.sensor.calibrationTransform1">android.sensor.calibrationTransform1</a> (static)</li>
<li><a href="#static_android.sensor.calibrationTransform2">android.sensor.calibrationTransform2</a> (static)</li>
<li><a href="#static_android.sensor.colorTransform1">android.sensor.colorTransform1</a> (static)</li>
<li><a href="#static_android.sensor.colorTransform2">android.sensor.colorTransform2</a> (static)</li>
<li><a href="#static_android.sensor.forwardMatrix1">android.sensor.forwardMatrix1</a> (static)</li>
<li><a href="#static_android.sensor.forwardMatrix2">android.sensor.forwardMatrix2</a> (static)</li>
<li><a href="#static_android.sensor.blackLevelPattern">android.sensor.blackLevelPattern</a> (static)</li>
<li><a href="#static_android.sensor.profileHueSatMapDimensions">android.sensor.profileHueSatMapDimensions</a> (static)</li>
<li><a href="#dynamic_android.sensor.neutralColorPoint">android.sensor.neutralColorPoint</a> (dynamic)</li>
<li><a href="#dynamic_android.sensor.noiseProfile">android.sensor.noiseProfile</a> (dynamic)</li>
<li><a href="#dynamic_android.sensor.profileHueSatMap">android.sensor.profileHueSatMap</a> (dynamic)</li>
<li><a href="#dynamic_android.sensor.profileToneCurve">android.sensor.profileToneCurve</a> (dynamic)</li>
<li><a href="#dynamic_android.sensor.greenSplit">android.sensor.greenSplit</a> (dynamic)</li>
<li><a href="#dynamic_android.sensor.dynamicBlackLevel">android.sensor.dynamicBlackLevel</a> (dynamic)</li>
<li><a href="#dynamic_android.sensor.dynamicWhiteLevel">android.sensor.dynamicWhiteLevel</a> (dynamic)</li>
<li><a href="#controls_android.statistics.hotPixelMapMode">android.statistics.hotPixelMapMode</a> (controls)</li>
<li><a href="#static_android.statistics.info.availableHotPixelMapModes">android.statistics.info.availableHotPixelMapModes</a> (static)</li>
<li><a href="#dynamic_android.statistics.hotPixelMap">android.statistics.hotPixelMap</a> (dynamic)</li>
<li><a href="#controls_android.statistics.lensShadingMapMode">android.statistics.lensShadingMapMode</a> (controls)</li>
<li><a href="#dynamic_android.hotPixel.mode">android.hotPixel.mode</a> (dynamic)</li>
</ul>
</li> <!-- tag_RAW -->
<li id="tag_HAL2">HAL2 -
Entry is only used by camera device legacy HAL 2.x
<ul class="tags_entries">
<li><a href="#controls_android.request.inputStreams">android.request.inputStreams</a> (controls)</li>
<li><a href="#controls_android.request.outputStreams">android.request.outputStreams</a> (controls)</li>
<li><a href="#controls_android.request.type">android.request.type</a> (controls)</li>
<li><a href="#static_android.request.maxNumReprocessStreams">android.request.maxNumReprocessStreams</a> (static)</li>
<li><a href="#controls_android.blackLevel.lock">android.blackLevel.lock</a> (controls)</li>
</ul>
</li> <!-- tag_HAL2 -->
<li id="tag_FULL">FULL -
Entry is required for full hardware level devices, and optional for other hardware levels
<ul class="tags_entries">
<li><a href="#static_android.sensor.maxAnalogSensitivity">android.sensor.maxAnalogSensitivity</a> (static)</li>
</ul>
</li> <!-- tag_FULL -->
<li id="tag_DEPTH">DEPTH -
Entry is required for the depth capability.
<ul class="tags_entries">
<li><a href="#static_android.lens.poseRotation">android.lens.poseRotation</a> (static)</li>
<li><a href="#static_android.lens.poseTranslation">android.lens.poseTranslation</a> (static)</li>
<li><a href="#static_android.lens.intrinsicCalibration">android.lens.intrinsicCalibration</a> (static)</li>
<li><a href="#static_android.lens.radialDistortion">android.lens.radialDistortion</a> (static)</li>
<li><a href="#static_android.lens.distortion">android.lens.distortion</a> (static)</li>
<li><a href="#static_android.lens.distortionMaximumResolution">android.lens.distortionMaximumResolution</a> (static)</li>
<li><a href="#static_android.lens.intrinsicCalibrationMaximumResolution">android.lens.intrinsicCalibrationMaximumResolution</a> (static)</li>
<li><a href="#static_android.depth.maxDepthSamples">android.depth.maxDepthSamples</a> (static)</li>
<li><a href="#static_android.depth.availableDepthStreamConfigurations">android.depth.availableDepthStreamConfigurations</a> (static)</li>
<li><a href="#static_android.depth.availableDepthMinFrameDurations">android.depth.availableDepthMinFrameDurations</a> (static)</li>
<li><a href="#static_android.depth.availableDepthStallDurations">android.depth.availableDepthStallDurations</a> (static)</li>
<li><a href="#static_android.depth.availableDynamicDepthStreamConfigurations">android.depth.availableDynamicDepthStreamConfigurations</a> (static)</li>
<li><a href="#static_android.depth.availableDynamicDepthMinFrameDurations">android.depth.availableDynamicDepthMinFrameDurations</a> (static)</li>
<li><a href="#static_android.depth.availableDynamicDepthStallDurations">android.depth.availableDynamicDepthStallDurations</a> (static)</li>
<li><a href="#static_android.depth.availableDepthStreamConfigurationsMaximumResolution">android.depth.availableDepthStreamConfigurationsMaximumResolution</a> (static)</li>
<li><a href="#static_android.depth.availableDepthMinFrameDurationsMaximumResolution">android.depth.availableDepthMinFrameDurationsMaximumResolution</a> (static)</li>
<li><a href="#static_android.depth.availableDepthStallDurationsMaximumResolution">android.depth.availableDepthStallDurationsMaximumResolution</a> (static)</li>
<li><a href="#static_android.depth.availableDynamicDepthStreamConfigurationsMaximumResolution">android.depth.availableDynamicDepthStreamConfigurationsMaximumResolution</a> (static)</li>
<li><a href="#static_android.depth.availableDynamicDepthMinFrameDurationsMaximumResolution">android.depth.availableDynamicDepthMinFrameDurationsMaximumResolution</a> (static)</li>
<li><a href="#static_android.depth.availableDynamicDepthStallDurationsMaximumResolution">android.depth.availableDynamicDepthStallDurationsMaximumResolution</a> (static)</li>
</ul>
</li> <!-- tag_DEPTH -->
<li id="tag_REPROC">REPROC -
Entry is required for the YUV or PRIVATE reprocessing capability.
<ul class="tags_entries">
<li><a href="#controls_android.edge.mode">android.edge.mode</a> (controls)</li>
<li><a href="#static_android.edge.availableEdgeModes">android.edge.availableEdgeModes</a> (static)</li>
<li><a href="#controls_android.noiseReduction.mode">android.noiseReduction.mode</a> (controls)</li>
<li><a href="#static_android.noiseReduction.availableNoiseReductionModes">android.noiseReduction.availableNoiseReductionModes</a> (static)</li>
<li><a href="#static_android.request.maxNumInputStreams">android.request.maxNumInputStreams</a> (static)</li>
<li><a href="#static_android.scaler.availableInputOutputFormatsMap">android.scaler.availableInputOutputFormatsMap</a> (static)</li>
<li><a href="#static_android.scaler.availableRecommendedInputOutputFormatsMap">android.scaler.availableRecommendedInputOutputFormatsMap</a> (static)</li>
<li><a href="#static_android.scaler.availableInputOutputFormatsMapMaximumResolution">android.scaler.availableInputOutputFormatsMapMaximumResolution</a> (static)</li>
<li><a href="#controls_android.reprocess.effectiveExposureFactor">android.reprocess.effectiveExposureFactor</a> (controls)</li>
<li><a href="#static_android.reprocess.maxCaptureStall">android.reprocess.maxCaptureStall</a> (static)</li>
<li><a href="#static_android.distortionCorrection.availableModes">android.distortionCorrection.availableModes</a> (static)</li>
<li><a href="#dynamic_android.edge.mode">android.edge.mode</a> (dynamic)</li>
<li><a href="#dynamic_android.noiseReduction.mode">android.noiseReduction.mode</a> (dynamic)</li>
</ul>
</li> <!-- tag_REPROC -->
<li id="tag_LOGICALCAMERA">LOGICALCAMERA -
Entry is required for logical multi-camera capability.
<ul class="tags_entries">
<li><a href="#static_android.logicalMultiCamera.physicalIds">android.logicalMultiCamera.physicalIds</a> (static)</li>
<li><a href="#static_android.logicalMultiCamera.sensorSyncType">android.logicalMultiCamera.sensorSyncType</a> (static)</li>
<li><a href="#dynamic_android.logicalMultiCamera.activePhysicalId">android.logicalMultiCamera.activePhysicalId</a> (dynamic)</li>
<li><a href="#dynamic_android.logicalMultiCamera.activePhysicalSensorCropRegion">android.logicalMultiCamera.activePhysicalSensorCropRegion</a> (dynamic)</li>
</ul>
</li> <!-- tag_LOGICALCAMERA -->
<li id="tag_HEIC">HEIC -
Entry is required for devices with HEIC (High Efficiency Image Format) support.
<ul class="tags_entries">
<li><a href="#static_android.heic.info.supported">android.heic.info.supported</a> (static)</li>
<li><a href="#static_android.heic.info.maxJpegAppSegmentsCount">android.heic.info.maxJpegAppSegmentsCount</a> (static)</li>
<li><a href="#static_android.heic.availableHeicStreamConfigurations">android.heic.availableHeicStreamConfigurations</a> (static)</li>
<li><a href="#static_android.heic.availableHeicMinFrameDurations">android.heic.availableHeicMinFrameDurations</a> (static)</li>
<li><a href="#static_android.heic.availableHeicStallDurations">android.heic.availableHeicStallDurations</a> (static)</li>
<li><a href="#static_android.heic.availableHeicStreamConfigurationsMaximumResolution">android.heic.availableHeicStreamConfigurationsMaximumResolution</a> (static)</li>
<li><a href="#static_android.heic.availableHeicMinFrameDurationsMaximumResolution">android.heic.availableHeicMinFrameDurationsMaximumResolution</a> (static)</li>
<li><a href="#static_android.heic.availableHeicStallDurationsMaximumResolution">android.heic.availableHeicStallDurationsMaximumResolution</a> (static)</li>
</ul>
</li> <!-- tag_HEIC -->
<li id="tag_FUTURE">FUTURE -
Entry is under-specified and is not required for now. This is for book-keeping purpose,
do not implement or use it, it may be revised for future.
<ul class="tags_entries">
<li><a href="#controls_android.demosaic.mode">android.demosaic.mode</a> (controls)</li>
<li><a href="#controls_android.edge.strength">android.edge.strength</a> (controls)</li>
<li><a href="#controls_android.flash.firingPower">android.flash.firingPower</a> (controls)</li>
<li><a href="#controls_android.flash.firingTime">android.flash.firingTime</a> (controls)</li>
<li><a href="#static_android.flash.info.chargeDuration">android.flash.info.chargeDuration</a> (static)</li>
<li><a href="#static_android.flash.colorTemperature">android.flash.colorTemperature</a> (static)</li>
<li><a href="#static_android.flash.maxEnergy">android.flash.maxEnergy</a> (static)</li>
<li><a href="#dynamic_android.jpeg.size">android.jpeg.size</a> (dynamic)</li>
<li><a href="#controls_android.noiseReduction.strength">android.noiseReduction.strength</a> (controls)</li>
<li><a href="#controls_android.request.metadataMode">android.request.metadataMode</a> (controls)</li>
<li><a href="#static_android.sensor.baseGainFactor">android.sensor.baseGainFactor</a> (static)</li>
<li><a href="#dynamic_android.sensor.temperature">android.sensor.temperature</a> (dynamic)</li>
<li><a href="#controls_android.shading.strength">android.shading.strength</a> (controls)</li>
<li><a href="#controls_android.statistics.histogramMode">android.statistics.histogramMode</a> (controls)</li>
<li><a href="#controls_android.statistics.sharpnessMapMode">android.statistics.sharpnessMapMode</a> (controls)</li>
<li><a href="#static_android.statistics.info.histogramBucketCount">android.statistics.info.histogramBucketCount</a> (static)</li>
<li><a href="#static_android.statistics.info.maxHistogramCount">android.statistics.info.maxHistogramCount</a> (static)</li>
<li><a href="#static_android.statistics.info.maxSharpnessMapValue">android.statistics.info.maxSharpnessMapValue</a> (static)</li>
<li><a href="#static_android.statistics.info.sharpnessMapSize">android.statistics.info.sharpnessMapSize</a> (static)</li>
<li><a href="#dynamic_android.statistics.histogram">android.statistics.histogram</a> (dynamic)</li>
<li><a href="#dynamic_android.statistics.sharpnessMap">android.statistics.sharpnessMap</a> (dynamic)</li>
</ul>
</li> <!-- tag_FUTURE -->
</ul>
</div>
[ <a href="#">top</a> ]
</body>
</html>