private void setUpAndConfigureCamera ( ) { // Open and configure the camera mCamera = openConfigureCamera ( mCameraInfo ) ; setCameraDisplayOrientation ( mCameraInfo , mCamera ) ; // Create an instance of Camera mPreview . setCamera ( mCamera ) ; if ( processing != null ) { processing . init ( mDraw , mCamera , mCameraInfo , previewRotation ) ; } }
Sets up the camera if it is not already setup .