private void validateOpen() {
        if (!open) {
            throw new IllegalStateException("CameraInstance is not open");
        }
    }
Changes the settings for Camera.

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