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

Commit 3e58fc81 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "camera: Support non-standard FFC orientations" into gingerbread

parents 1362cd38 123e5b82
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -226,6 +226,14 @@ sp<ICamera> CameraService::connect(

    CameraInfo info;
    HAL_getCameraInfo(cameraId, &info);

    /* If the FFC claims standard back-facing orientation,
     * treat it as such. This avoid all the mirroring and rotation
     * hooks */
    if (info.facing == CAMERA_FACING_FRONT && info.orientation == 90) {
        info.facing = CAMERA_FACING_BACK;
    }

    client = new Client(this, cameraClient, hardware, cameraId, info.facing,
                        callingPid);
    mClient[cameraId] = client;