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

Commit f64c182c authored by Christopher Lais's avatar Christopher Lais
Browse files

Revert "libcameraservice: fix orientation on HTC FFC pictures"

This reverts commit d1a65518.
parent be507bc0
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -1295,7 +1295,9 @@ void CameraService::Client::copyFrameAndPostCopiedFrame(
}

int CameraService::Client::getOrientation(int degrees, bool mirror) {
#ifndef BOARD_USE_FROYO_LIBCAMERA
    if (!mirror) {
#endif
        if (degrees == 0) return 0;
        else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
        else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
@@ -1312,13 +1314,6 @@ int CameraService::Client::getOrientation(int degrees, bool mirror) {
            return HAL_TRANSFORM_FLIP_V | HAL_TRANSFORM_ROT_90;
        }
    }
#else
    } else {
        if (degrees == 0) return HAL_TRANSFORM_ROT_180;
        else if (degrees == 90) return HAL_TRANSFORM_ROT_270;
        else if (degrees == 180) return 0;
        else if (degrees == 270) return HAL_TRANSFORM_ROT_90;
    }
#endif
    LOGE("Invalid setDisplayOrientation degrees=%d", degrees);
    return -1;
@@ -1407,7 +1402,7 @@ static const CameraInfo sCameraInfo[] = {
    },
    {
        CAMERA_FACING_FRONT,
        90,  /* orientation */
        270, /* orientation */
    }
};