mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 862808 - Local Video is upside down on Android when in portrait mode. r=jesup
This commit is contained in:
parent
00901a6a48
commit
79d7cbbff5
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user