public void configure() {
        if (camera == null) {
            throw new RuntimeException("Camera not open");
        }
        setParameters();
    }
Configure the camera parameters, including preview size.

The camera must be opened before calling this.

Must be called from camera thread.
zxing-android-embedded/src/com/journeyapps/barcodescanner/camera/CameraManager.java