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
Post a Comment