camera preview diaplay problem

All your problems with Audio, Video and Images.

camera preview diaplay problem

Postby kutea » Tue Mar 31, 2009 6:38 pm

Hi all
I met a problem.
The rate of width and height of my camera sampling is 4/3.so i set previewsize = 320*240;
when it render with vertical srceen(screen size=272*480), it seems that a horizontal preview display in vertical srceen.
when it render with horizontal srceen(screen size=480*272),problem remains.this time it looks like a verticalpreview display in horizontal srceen.
I think there is somesthing wrong with registerbuffer() .
Now there are no further idea!
kutea
Freshman
Freshman
 
Posts: 3
Joined: Tue Mar 31, 2009 6:01 pm

Top

Postby ErnestoGuevara » Fri Apr 03, 2009 4:38 am

I have a somewhat different issue.

When I have a horizontal screen, it displays as it should.
When I have a vertical screen, the display is tilted 90 degrees counterclockwise.

Let me know if you come up with anything and I'll do the same.

Che
Search "Awesome Android Apps" in the market
http://www.awesomeandroidapps.com
ErnestoGuevara
Experienced Developer
Experienced Developer
 
Posts: 75
Joined: Thu Jan 08, 2009 2:02 am

Postby ErnestoGuevara » Fri Apr 03, 2009 6:08 am

I've lost track of the link already, but on Google Groups someone had the same problem as me and an Android guy said that it would be taken care of in Cupcake.

So now I've just going to launch an IMAGE_CAPTURE intent and take the bitmap I get back. Not quite as slick, and the image is only like 256x192, but that's ok for my purposes.

Intent i = new Intent("android.media.action.IMAGE_CAPTURE");
Photos.this.startActivityForResult(i, REQUEST_IMAGE);

Che
Search "Awesome Android Apps" in the market
http://www.awesomeandroidapps.com
ErnestoGuevara
Experienced Developer
Experienced Developer
 
Posts: 75
Joined: Thu Jan 08, 2009 2:02 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 7 guests