Code example for Matrix

Methods: invert

0
        mFaceView = faceView;
    } 
 
    private void setMatrix() { 
        if (mPreviewWidth != 0 && mPreviewHeight != 0) {
            Matrix matrix = new Matrix();
            Util.prepareMatrix(matrix, mMirror, mDisplayOrientation,
                    mPreviewWidth, mPreviewHeight);
            // In face detection, the matrix converts the driver coordinates to UI 
            // coordinates. In tap focus, the inverted matrix converts the UI 
            // coordinates to driver coordinates. 
            matrix.invert(mMatrix);
            mInitialized = (mPieRenderer != null);
        } 
    } 
 
    private void lockAeAwbIfNeeded() { 
        if (mLockAeAwbNeeded && !mAeAwbLock) {
            mAeAwbLock = true;
            mListener.setFocusParameters();
        }