Distorted images when using GLSurfaceView for camera preview

I am having a problem: when I try to use GLSurfaceView

to display the camera preview, the preview image is completely distorted, but only if I choose a preview size> = 1280x720. At lower resolutions (like 960x720) everything is fine. This is what the preview image looks like:

distorted camera preview image

I noticed this when I was trying to record a video stream from the camera, which works great with distorted images. So I tried to just show the camera preview with this code -> http://maninara.blogspot.co.at/2012/09/render-camera-preview-using-opengl-es.html

I noticed that as soon as the width gets more than 1000px, the image ends up with distortion and also tries to use a different aspect ratio, but that didn't help either. I am running this in the Google Glass API.

Best wishes Wolfram

+3
android google-glass image opengl-es camera


source to share


No one has answered this question yet

Check out similar questions:

1832
Lazy loading images in ListView
1338
How to vertically align an image inside a div
1264
How can I automatically resize the image to fit the container div?
1207
Strange memory issue when loading image into Bitmap object
781
When to use IMG versus CSS background?
27
Camera screen / full screen preview does not support aspect ratio - image is distorted, stretched to fit on screen
sixteen
Camera in Android how to get best size, preview size, image size, image size, distorted image
0
Corrupted 720p preview frame on Google Glass
0
Camera preview (legacy) camera when recording
0
Camera preview 90 degrees in GLSurfaceView using OpenGL 2.0 API



All Articles
Loading...
X
Show
Funny
Dev
Pics