mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Camera: move preCorrectionActiveArraySize override to cameraserver" into rvc-dev am: 7b938e3471
Change-Id: I853ec94ee01b58a4be2a4afd53371b06bacc48e6
This commit is contained in:
@@ -194,16 +194,6 @@ void CameraModule::deriveCameraCharacteristicsKeys(
|
||||
}
|
||||
}
|
||||
|
||||
// Always add a default for the pre-correction active array if the vendor chooses to omit this
|
||||
camera_metadata_entry entry = chars.find(ANDROID_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE);
|
||||
if (entry.count == 0) {
|
||||
Vector<int32_t> preCorrectionArray;
|
||||
entry = chars.find(ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE);
|
||||
preCorrectionArray.appendArray(entry.data.i32, entry.count);
|
||||
chars.update(ANDROID_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, preCorrectionArray);
|
||||
derivedCharKeys.push(ANDROID_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE);
|
||||
}
|
||||
|
||||
// Add those newly added keys to AVAILABLE_CHARACTERISTICS_KEYS
|
||||
// This has to be done at this end of this function.
|
||||
if (derivedCharKeys.size() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user