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)