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

Deformed preview in show and capture activity? #4

Closed
uberspot opened this issue Apr 13, 2014 · 2 comments
Closed

Deformed preview in show and capture activity? #4

uberspot opened this issue Apr 13, 2014 · 2 comments

Comments

@uberspot
Copy link

Hello again,

This isn't really a bug per say I just wanted to ask why does the preview in the show and capture activity seem deformed on a nexus 7. I'm asking here so that others can see this as well.
It's like the preview has been stretched a bit from a square to a rectangle maybe?
Is this caused by the openCamera(1280, 720); line in onResume part of the activity there?
Is there a way to maybe get the devices/screen optimal resolution to avoid such distortions?

Thank you :)

@fadden
Copy link
Contributor

fadden commented Apr 14, 2014

Laziness, essentially. :-) It's (usually) also wrong in the output video file.

You can see examples of matching the view aspect ratio to the window contents in the two video players (one for TextureView, one for SurfaceView). The two generated videos have different aspects ratios, so you can flip between them and watch the window resize.

For output, the "Record GL" activity handles letter/pillar boxing when writing to the encoder.

This will be properly handled everywhere eventually.

@fadden
Copy link
Contributor

fadden commented May 2, 2014

Fixed.

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

2 participants