Пример #1
0
  public MosaicPreviewRenderer(SurfaceTexture tex, int w, int h, boolean isLandscape) {
    mMosaicOutputSurfaceTexture = tex;
    mWidth = w;
    mHeight = h;
    mIsLandscape = isLandscape;

    mEglThread = new HandlerThread("PanoramaRealtimeRenderer");
    mEglThread.start();
    mEglHandler = new EGLHandler(mEglThread.getLooper());

    // We need to sync this because the generation of surface texture for input is
    // done here and the client will continue with the assumption that the
    // generation is completed.
    mEglHandler.sendMessageSync(EGLHandler.MSG_INIT_EGL_SYNC);
  }
Пример #2
0
 public void showPreviewFrameSync() {
   mEglHandler.sendMessageSync(EGLHandler.MSG_SHOW_PREVIEW_FRAME_SYNC);
 }