-
Notifications
You must be signed in to change notification settings - Fork 623
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
Wrong frames in landscape mode #13
Comments
Just read the README. You need to detect rotation changes with something On Sunday, 29 November 2015, lbielski [email protected] wrote:
|
Thanks for the answer! Actually I read the readme (otherwise I wouldn't be able to implement a client), and it says that if I'm in So I assumed that I should get a rotated landscape image and then rotate it while rendering. Any suggestions how I can detect the rotation changes? |
If the quirks flags say the device has QUIRK_ALWAYS_UPRIGHT, then it means that when rotation is 0 or 180, you get a portrait image that's never upside down, or if rotation is 90 or 270, a landscape image that's never upside down. You can try RotationWatcher.apk like mentioned in the README. |
Also, I know it sounds stupid that you have to do it that way, but it's due to limitations of the private APIs. |
I'm so sorry - missed that portion of the README :( |
…fig-file Upgrade to GitHub-native Dependabot
Hi!
I'm trying to use minicap with my Nexus 4 (api 22) and I have a problem with frames which I get when the device is rotated into a landscape mode.
I start minicap with the following command:
LD_LIBRARY_PATH=/data/local/tmp/minicap-devel /data/local/tmp/minicap-devel/minicap -P 768x1280@384x640/0
I consume the data with a client written in Java and it works beautifully in portrait mode.
As soon as I rotate the phone into a landscape I get this image:
In my Java client I'm just reading the frame and then decoding it from JPEG using ImageIO.
Is it a decoding issue or rotation is not supported yet?
The text was updated successfully, but these errors were encountered: