Loading app/src/main/java/net/sourceforge/opencamera/preview/Preview.java +7 −0 Original line number Diff line number Diff line Loading @@ -4274,6 +4274,13 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu if( MyDebug.LOG ) Log.d(TAG, "getImageVideoRotation() lock to portrait, returns " + result); return result; } else { int cameraRotationOffset = camera_controller.getCameraOrientation(); boolean isFrontFacing = camera_controller.getFacing() == CameraController.Facing.FACING_FRONT; int rotation = isFrontFacing ? cameraRotationOffset + getDisplayRotationDegrees(true) : cameraRotationOffset - getDisplayRotationDegrees(true); current_rotation = (360 + rotation) % 360; } if( MyDebug.LOG ) Log.d(TAG, "getImageVideoRotation() returns current_rotation " + current_rotation); Loading Loading
app/src/main/java/net/sourceforge/opencamera/preview/Preview.java +7 −0 Original line number Diff line number Diff line Loading @@ -4274,6 +4274,13 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu if( MyDebug.LOG ) Log.d(TAG, "getImageVideoRotation() lock to portrait, returns " + result); return result; } else { int cameraRotationOffset = camera_controller.getCameraOrientation(); boolean isFrontFacing = camera_controller.getFacing() == CameraController.Facing.FACING_FRONT; int rotation = isFrontFacing ? cameraRotationOffset + getDisplayRotationDegrees(true) : cameraRotationOffset - getDisplayRotationDegrees(true); current_rotation = (360 + rotation) % 360; } if( MyDebug.LOG ) Log.d(TAG, "getImageVideoRotation() returns current_rotation " + current_rotation); Loading