DEV Community

Dujana-Abrar
Dujana-Abrar

Posted on

Camera orientation in android docs

Camera orientation in android docs

1

I am not able to understand this piece of code from android docs

What does info.orientation give and the arithmetic calculations?

int result;
if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT)
{
    result = (info.orientation + degrees) % 360;
    result = (360 - result) % 360;  // compensate the mirror
}
else      //

Top comments (0)