Rotate information according to cameraId.

This commit is contained in:
Guillaume Beraudo 2010-12-13 14:04:38 +01:00
parent f4d3e7b816
commit c451b044cb

View file

@ -169,7 +169,9 @@ public abstract class AndroidCameraRecord {
} }
protected int rotateCapturedFrame() { protected int rotateCapturedFrame() {
if (params.cameraId == 2) { if (params.videoDimensionsInverted) {
return 1; // always rotate 90°
} else if (params.cameraId == 2) {
return 0; return 0;
} else { } else {
return (4 + 1 - displayOrientation) % 4; return (4 + 1 - displayOrientation) % 4;