File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -644,11 +644,13 @@ int main(int argc, char *argv[])
644
644
int frontCamera;
645
645
if (ar2VideoGetParami (vid, AR_VIDEO_PARAM_AVFOUNDATION_CAMERA_POSITION, &frontCamera) >= 0 ) {
646
646
gCameraIsFrontFacing = (frontCamera == AR_VIDEO_AVFOUNDATION_CAMERA_POSITION_FRONT);
647
+ ARLOGi (" Camera is %sfront-facing.\n " , gCameraIsFrontFacing ? " " : " not " );
647
648
}
648
649
} else if (vid->module == AR_VIDEO_MODULE_ANDROID) {
649
650
int frontCamera;
650
651
if (ar2VideoGetParami (vid, AR_VIDEO_PARAM_ANDROID_CAMERA_FACE, &frontCamera) >= 0 ) {
651
652
gCameraIsFrontFacing = (frontCamera == AR_VIDEO_ANDROID_CAMERA_FACE_FRONT);
653
+ ARLOGi (" Camera is %sfront-facing.\n " , gCameraIsFrontFacing ? " " : " not " );
652
654
}
653
655
}
654
656
bool contentRotate90, contentFlipV, contentFlipH;
@@ -666,8 +668,8 @@ int main(int argc, char *argv[])
666
668
contentFlipH = (!gCameraIsFrontFacing );
667
669
} else /* (gDisplayOrientation == 0)*/ { // Portait
668
670
contentRotate90 = true ;
669
- contentFlipV = gCameraIsFrontFacing ;
670
- contentFlipH = false ;
671
+ contentFlipV = false ;
672
+ contentFlipH = gCameraIsFrontFacing ;
671
673
}
672
674
673
675
// Setup a route for rendering the colour background image.
You can’t perform that action at this time.
0 commit comments