public void changeCameraParameters(CameraParametersCallback callback) {
        if (camera != null) {
            try {
                camera.setParameters(callback.changeCameraParameters(camera.getParameters()));
            } catch(RuntimeException e) {
                // Camera error. Could happen if the camera is being closed.
                Log.e(TAG, "Failed to change camera parameters", e);
            }
        }
    }
Changes the settings for Camera.

@param callback {@link CameraParametersCallback}
zxing-android-embedded/src/com/journeyapps/barcodescanner/camera/CameraManager.java