app/src/main/java/com/quintessential/gypsy/CameraHelper.java
/**
     * Configures the acquired camera for use with the Affdex SDK, and starts previewing.  Preview
     * frames will be delivered to the listener.
     */
Configures the acquired camera for use with the Affdex SDK, and starts previewing.  Preview
frames will be delivered to the listener.
Configures the acquired camera for use with the Affdex SDK and starts previewing . Preview frames will be delivered to the listener .
public void start(@NonNull SurfaceTexture texture) {
        Log.d(LOG_TAG, "CameraHelper.start()");
        if (safeCamera == null) {
            throw new IllegalStateException("acquire a camera before calling the start method");
        }
        if (!isPreviewing) {
            initCameraParams();
            Camera.Parameters params = safeCamera.getParameters();
            previewWidth = params.getPreviewSize().width;
            previewHeight = params.getPreviewSize().height;
            setCameraDisplayOrientation();
            startPreviewing(texture);
        }
    }
public void start ( @ NonNull SurfaceTexture texture ) { Log . d ( LOG_TAG , "CameraHelper.start()" ) ; if ( safeCamera == null ) { throw new IllegalStateException ( "acquire a camera before calling the start method" ) ; } if ( ! isPreviewing ) { initCameraParams ( ) ; Camera . Parameters params = safeCamera . getParameters ( ) ; previewWidth = params . getPreviewSize ( ) . width ; previewHeight = params . getPreviewSize ( ) . height ; setCameraDisplayOrientation ( ) ; startPreviewing ( texture ) ; } }
Configures the acquired camera for use with the Affdex SDK, and starts previewing.
Configures the acquired camera for use with the Affdex SDK and starts previewing .