You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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
Actually I read the readme (otherwise I wouldn't be able to implement a client), and it says that if I'm in always upright quirk mode I should take it into account while rendering: "This needs to be taken into account when rendering the image."
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.
Activity
sorccu commentedon Nov 29, 2015
Just read the README. You need to detect rotation changes with something
and then restart minicap.
On Sunday, 29 November 2015, lbielski notifications@github.com wrote:
lbielski commentedon Nov 29, 2015
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
always uprightquirk mode I should take it into account while rendering: "This needs to be taken into account when rendering the image."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?
sorccu commentedon Nov 29, 2015
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.
sorccu commentedon Nov 29, 2015
Also, I know it sounds stupid that you have to do it that way, but it's due to limitations of the private APIs.
lbielski commentedon Nov 29, 2015
I'm so sorry - missed that portion of the README :(
Now everything is clear.
Thanks for your help!
Merge pull request openstf#13 from DeviceFarmer/dependabot/add-v2-con…