@@ -1223,10 +1223,10 @@ int CameraCapabilities::initializeStaticMetadata()
{
std::vector<uint8_t> data;
data.reserve(2);
- const auto &infoMap = controlsInfo.find(&controls::draft::LensShadingMapMode);
+ const auto &infoMap = controlsInfo.find(&controls::LensShadingEnable);
if (infoMap != controlsInfo.end()) {
for (const auto &value : infoMap->second.values())
- data.push_back(value.get<int32_t>());
+ data.push_back(value.get<bool>());
} else {
data.push_back(ANDROID_STATISTICS_LENS_SHADING_MAP_MODE_OFF);
}
@@ -1346,4 +1346,10 @@ controls:
reduces the WdrExposureValue until the amount of pixels that are close
to saturation is lower than this value.
+ - LensShadingEnable:
+ type: bool
+ direction: inout
+ description: |
+ Enable or disable the lens shading algorithm.
+
...
@@ -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