Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I rotate the phone to Portrait Orientation_180, the interface stays as Orientation_0 #12

Open
lgorse opened this issue Feb 6, 2015 · 0 comments

Comments

@lgorse
Copy link
Contributor

lgorse commented Feb 6, 2015

When I rotate the phone the UI shifts to match the orientation except for when I reorient to Portrait Orientation_180. Then the UI stays at Orientation_0. This happens on locked and non-locked mode.

This has an effect on the UI (unlike when I shift to landscape, the record button doesn't shift back to the bottom for instance).

I actually started worrying about this more because of frame capture. Bitmaps generated from openGL need to be flipped because OpenGL canvas coordinates don't match bitmap coordinates (starting point in openGL is bottom left, it is top left for bitmap).

But in the case of Orientation_180, the video is right-side up (even though the UI is upside down) but the frame gets rendered upside down. That means that the video is being captured upside down and then corrected by the preview - so when the frame is transfered from openGL to bitmap, it is already right side up => and then upside down because of my reorientation.

I wonder if there's a way for me to access the preview orientation, so that the frame orientation matches the preview orientation rather than the camera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant