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

Commit af99c37d authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: Remove flag "concert_mode"

Flag: EXEMPT removal of flag "concert_mode"
Bug: 365555183
Test: Successful build
Change-Id: Ic573e3f27976a28de8f1d0730cb775860e7a51c7
parent 51767d4d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -43,10 +43,8 @@ void DistortionMapper::initRemappedKeys() {
            kResultPointsToCorrectNoClamp.begin(),
            kResultPointsToCorrectNoClamp.end());
    mRemappedKeys.insert(ANDROID_DISTORTION_CORRECTION_MODE);
    if (flags::concert_mode()) {
    mRemappedKeys.insert(ANDROID_LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_SENSOR_CROP_REGION);
}
}

bool DistortionMapper::isDistortionSupported(const CameraMetadata &deviceInfo) {
    bool isDistortionCorrectionSupported = false;
+1 −3
Original line number Diff line number Diff line
@@ -37,10 +37,8 @@ void RotateAndCropMapper::initRemappedKeys() {

    mRemappedKeys.insert(ANDROID_SCALER_ROTATE_AND_CROP);
    mRemappedKeys.insert(ANDROID_SCALER_CROP_REGION);
    if (flags::concert_mode()) {
    mRemappedKeys.insert(ANDROID_LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_SENSOR_CROP_REGION);
}
}

bool RotateAndCropMapper::isNeeded(const CameraMetadata* deviceInfo) {
    auto entry = deviceInfo->find(ANDROID_SCALER_AVAILABLE_ROTATE_AND_CROP_MODES);
+1 −3
Original line number Diff line number Diff line
@@ -38,10 +38,8 @@ void ZoomRatioMapper::initRemappedKeys() {
            kResultPointsToCorrectNoClamp.end());

    mRemappedKeys.insert(ANDROID_CONTROL_ZOOM_RATIO);
    if (flags::concert_mode()) {
    mRemappedKeys.insert(ANDROID_LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_SENSOR_CROP_REGION);
}
}

status_t ZoomRatioMapper::initZoomRatioInTemplate(CameraMetadata *request) {
    camera_metadata_entry_t entry;