Want to get more parameters from Camera.Parameters.

All your problems with Audio, Video and Images.

Want to get more parameters from Camera.Parameters.

Postby OliverWho » Sat Oct 09, 2010 6:02 pm

As the Android reference says, there are a lot of parameters can be retrived from the hardware camera.
Please check it from http://androidappdocs-staging.appspot.c ... eters.html.
But actually, I can't get some of the paramters.
For example, the application will crash when calling parameters.getHorizontalViewAngle().

Then, I called parameters.flatten() to check all the parameters.
It turns out there is no item for HorizontalViewAngle.

camParam "sharpness-max==30;picture-size-values==2592x1952,2592x1728,2560x1920,2560x1712,2048x1536,2048x1360,2016x1344,1600x1200,1584x1056,1280x960,1280x848,1248x832,1024x768,640x480,640x416,624x416,512x384,400x400,272x272;contrast-min==0;zoom==0;taking-picture-zoom==0;brightness-min==0;antibanding==auto;taking-picture-zoom-min==0;saturation-min==1;contrast-max==10;taking-picture-zoom-max==40;contrast-def==5;zoom-supported==true;sharpness-min==0;brightness-max==6;sharpness==10;contrast==5;brightness==3;whitebalance==auto;jpeg-thumbnail-height==384;jpeg-quality==100;preview-format-values==yuv420sp;jpeg-thumbnail-quality==90;focus-mode==auto;preview-format==yuv420sp;sharpness-def==10;preview-size==320x240;iso==auto;picture-format-values==jpeg;meter-mode==meter-center;saturation-max==10;preview-frame-rate==15;effect-values==none,mono,negative,solarize,sepia,posterize,aqua;focus-mode-values==auto,infinity;meter-mode-values==meter-average,meter-center,meter-spot;picture-size==1024x768;max-zoom==5;effect==none;saturation==5;jpeg-thumbnail-width==512;whitebalance-values==auto,incandescent,fluorescent,daylight,cloudy-daylight;picture-format==jpeg;saturation-def==5;brightness-def==3;preview-size-values==1280x720,800x480,720x480,640x480,576x432,480x320,400x240,384x288,352x288,320x240,272x272,240x240,240x160,176x144;smart-contrast==off;iso-values==auto,deblur,100,200,400,800,1250;antibanding-values==off,50hz,60hz,auto" (id==830066075688)
count 1372
hashCode 0
offset 0
value (id==830066072432)

So, the application crashes because of trying to parse a null string into a float.
I trusted so much what the android reference says, This method will always return a valid value.

Maybe I was using it incorrectly, should I config some how to tell Android that I want to get full camera parameters?
Or, is there other method to get the camer FOV?
I am using Android 2.2.
Thanks advanced.
OliverWho
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Oct 09, 2010 5:22 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 32 guests