Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c204a34b authored by Ruben Brunk's avatar Ruben Brunk Committed by Android Git Automerger
Browse files

am 3c9d5f82: am ec5d6f84: Merge "Add default for pre-distortion active array." into mnc-dev

* commit '3c9d5f82':
  Add default for pre-distortion active array.
parents 7c0c3c19 3c9d5f82
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -132,6 +132,15 @@ void CameraModule::deriveCameraCharacteristicsKeys(
                    highSpeedConfig);
                    highSpeedConfig);
        }
        }
    }
    }

    // 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) {
        entry = chars.find(ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE);
        chars.update(ANDROID_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, entry.data.i32,
                entry.count);
    }

    return;
    return;
}
}