Code example for ConditionVariable

Methods: open

0
                case MSG_SHOW_PREVIEW_FRAME:
                    doShowPreviewFrame(); 
                    break; 
                case MSG_ALIGN_FRAME_SYNC:
                    doAlignFrame(); 
                    mEglThreadBlockVar.open();
                    break; 
                case MSG_RELEASE:
                    doRelease(); 
                    break; 
            } 
        } 
 
        private void doAlignFrame() { 
            mInputSurfaceTexture.updateTexImage();
            mInputSurfaceTexture.getTransformMatrix(mTransformMatrix);
 
            MosaicRenderer.setWarping(true); 
            // Call preprocess to render it to low-res and high-res RGB textures. 
            MosaicRenderer.preprocess(mTransformMatrix);
            // Now, transfer the textures from GPU to CPU memory for processing