Do I have to reset all camera paramters if I change one [Android Camera Parameters]? -


i couldn't find information in android docs. here question:

when change 1 parameter of camera, have reset parameters have set before or can sure not affected call mcamera.setparameters(params)?

for instance, when update zoom value calling

params.setzoom(zoomvalue); mcamera.setparameters(params); 

will things white balance or auto focus stay untouched? , if so, can sure case android devices?

thanks!

right, camera.setparameters() don't support defaults. that's why use following sequence:

camera.parameters params = mcamera.getparameters(); params.setzoom(zoomvalue); mcamera.setparameters(params); 

often, people try avoid multiple calls getparameters() using member:

private camera.parameters mparams;  ...  mcamera = camera.open(); mparams = mcamera.getparameters();  ...  params.setzoom(zoomvalue); mcamera.setparameters(params); 

but there 1 catch: result of setparameters(), seemingly unrelated parameters may change; next time, if use same mparams, may effect result (the examples entirely specific combination of hardware , system). therefore recommend not use cached camera parameters.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -