Bug 862808 - Local Video is upside down on Android when in portrait mode. r=jesup

This commit is contained in:
Gian-Carlo Pascutto 2013-05-21 09:39:02 +02:00
parent 00901a6a48
commit 79d7cbbff5
2 changed files with 0 additions and 6 deletions

View File

@ -134,7 +134,6 @@ public class VideoCaptureAndroid implements PreviewCallback, Callback {
int result;
if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {
result = (info.orientation + degrees) % 360;
result = (360 - result) % 360; // compensate the mirror
} else { // back-facing
result = (info.orientation - degrees + 360) % 360;
}

View File

@ -521,11 +521,6 @@ WebRtc_Word32 VideoCaptureAndroid::StartCapture(
}
}
// I guess the libyuv rotate is CCW vs Android being CW,
// so we need to invert.
// Note that SetCaptureRotation calls SetDisplayOrientation,
// but we don't use a visible Surface so we can ignore that one.
rotation = (360 - rotation) % 360;
switch (rotation) {
case 90:
SetCaptureRotation(kCameraRotate90);