@@ -1223,13 +1223,10 @@ int CameraCapabilities::initializeStaticMetadata()
{
std::vector<uint8_t> data;
data.reserve(2);
- const auto &infoMap = controlsInfo.find(&controls::draft::LensShadingMapMode);
- if (infoMap != controlsInfo.end()) {
- for (const auto &value : infoMap->second.values())
- data.push_back(value.get<int32_t>());
- } else {
- data.push_back(ANDROID_STATISTICS_LENS_SHADING_MAP_MODE_OFF);
- }
+ data.push_back(ANDROID_STATISTICS_LENS_SHADING_MAP_MODE_OFF);
+ const auto &infoMap = controlsInfo.find(&controls::LensShadingCorrectionEnable);
+ if (infoMap != controlsInfo.end())
+ data.push_back(ANDROID_STATISTICS_LENS_SHADING_MAP_MODE_ON);
staticMetadata_->addEntry(ANDROID_STATISTICS_INFO_AVAILABLE_LENS_SHADING_MAP_MODES,
data);
}
@@ -1356,4 +1356,13 @@ controls:
Enable or disable lens dewarping. This control is only available if lens
dewarp parameters are configured in the tuning file.
+ - LensShadingCorrectionEnable:
+ type: bool
+ direction: inout
+ description: |
+ Enable or disable the lens shading algorithm.
+
+ This control is only available when there are valid lens shading
+ correction parameters available in the tuning file.
+
...
@@ -110,20 +110,6 @@ controls:
row and the start of exposure of the last row. Currently identical to
ANDROID_SENSOR_ROLLING_SHUTTER_SKEW
- - LensShadingMapMode:
- type: int32_t
- direction: inout
- description: |
- Control to report if the lens shading map is available. Currently
- identical to ANDROID_STATISTICS_LENS_SHADING_MAP_MODE.
- enum:
- - name: LensShadingMapModeOff
- value: 0
- description: No lens shading map mode is available.
- - name: LensShadingMapModeOn
- value: 1
- description: The lens shading map mode is available.
-
- PipelineDepth:
type: int32_t
direction: out