当前位置: 首页>>代码示例>>Java>>正文


Java EGL14.eglReleaseThread方法代码示例

本文整理汇总了Java中android.opengl.EGL14.eglReleaseThread方法的典型用法代码示例。如果您正苦于以下问题:Java EGL14.eglReleaseThread方法的具体用法?Java EGL14.eglReleaseThread怎么用?Java EGL14.eglReleaseThread使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.opengl.EGL14的用法示例。


在下文中一共展示了EGL14.eglReleaseThread方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: release

import android.opengl.EGL14; //导入方法依赖的package包/类
public void release() {
	EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);
	EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);
	
	if(Build.VERSION.SDK_INT > 19){
		EGL14.eglReleaseThread();
	}
	
	EGL14.eglTerminate(mEGLDisplay);

	//mSurface.release();

	mSurface    = null;
	mEGLDisplay = null;
	mEGLContext = null;
	mEGLSurface = null;
}
 
开发者ID:lzmlsfe,项目名称:19porn,代码行数:18,代码来源:InputSurface.java

示例2: release

import android.opengl.EGL14; //导入方法依赖的package包/类
/**
 * Discard all resources held by this class, notably the EGL context.
 */
public void release() {
    if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {
        EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);
        EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);
        EGL14.eglReleaseThread();
        EGL14.eglTerminate(mEGLDisplay);
    }
    mSurface.release();
    // this causes a bunch of warnings that appear harmless but might confuse someone:
    //  W BufferQueue: [unnamed-3997-2] cancelBuffer: BufferQueue has been abandoned!
    //mSurfaceTexture.release();
    mEGLDisplay = EGL14.EGL_NO_DISPLAY;
    mEGLContext = EGL14.EGL_NO_CONTEXT;
    mEGLSurface = EGL14.EGL_NO_SURFACE;
    mTextureRender = null;
    mSurface = null;
    mSurfaceTexture = null;
}
 
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:22,代码来源:OutputSurface.java

示例3: release

import android.opengl.EGL14; //导入方法依赖的package包/类
/**
 * Discards all resources held by this class, notably the EGL context.  This must be
 * called from the thread where the context was created.
 * <p>
 * On completion, no context will be current.
 */
public void release() {
    if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {
        // Android is unusual in that it uses a reference-counted EGLDisplay.  So for
        // every eglInitialize() we need an eglTerminate().
        EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE,
                EGL14.EGL_NO_CONTEXT);
        EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);
        EGL14.eglReleaseThread();
        EGL14.eglTerminate(mEGLDisplay);
    }

    mEGLDisplay = EGL14.EGL_NO_DISPLAY;
    mEGLContext = EGL14.EGL_NO_CONTEXT;
    mEGLConfig = null;
}
 
开发者ID:zhangyaqiang,项目名称:Fatigue-Detection,代码行数:22,代码来源:EglCore.java

示例4: release

import android.opengl.EGL14; //导入方法依赖的package包/类
void release() {
    EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);
    EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);
    EGL14.eglReleaseThread();
    EGL14.eglTerminate(mEGLDisplay);

    mSurface.release();

    mSurface = null;
    mEGLDisplay = null;
    mEGLContext = null;
    mEGLSurface = null;
}
 
开发者ID:wuyisheng,项目名称:libRtmp,代码行数:14,代码来源:RecorderImpl.java

示例5: release

import android.opengl.EGL14; //导入方法依赖的package包/类
/**
 * Discard all resources held by this class, notably the EGL context.  Also releases the
 * Surface that was passed to our constructor.
 */
public void release() {
    if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {
        EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);
        EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);
        EGL14.eglReleaseThread();
        EGL14.eglTerminate(mEGLDisplay);
    }
    mSurface.release();
    mEGLDisplay = EGL14.EGL_NO_DISPLAY;
    mEGLContext = EGL14.EGL_NO_CONTEXT;
    mEGLSurface = EGL14.EGL_NO_SURFACE;
    mSurface = null;
}
 
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:18,代码来源:InputSurface.java

示例6: release

import android.opengl.EGL14; //导入方法依赖的package包/类
public void release() {
if (DEBUG) Log.v(TAG, "release:");
      if (mEglDisplay != EGL14.EGL_NO_DISPLAY) {
   	destroyContext();
       EGL14.eglTerminate(mEglDisplay);
       EGL14.eglReleaseThread();
      }
      mEglDisplay = EGL14.EGL_NO_DISPLAY;
      mEglContext = EGL14.EGL_NO_CONTEXT;
  }
 
开发者ID:zhangyaqiang,项目名称:Fatigue-Detection,代码行数:11,代码来源:EGLBase.java

示例7: closeContext

import android.opengl.EGL14; //导入方法依赖的package包/类
/**
 * Close an EGL rendering context.
 * @param display an EGL display connection instance
 * @param context an EGL rendering context
 */
public static void closeContext(@NonNull EGLDisplay display, @NonNull EGLContext context) {
    if (!EGL14.eglDestroyContext(display, context)) {
        logError();
        throw new RuntimeException("Unable to terminate EGL14 " + getContextString(context));
    } else {
        if (!EGL14.eglReleaseThread()) logError();
        logDebug(getContextString(context) + " destroyed");
    }
}
 
开发者ID:Nik-Gleb,项目名称:mpeg-encoder,代码行数:15,代码来源:GLTools.java

示例8: release

import android.opengl.EGL14; //导入方法依赖的package包/类
public void release() {
    if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {
        EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);
        EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);
        EGL14.eglReleaseThread();
        EGL14.eglTerminate(mEGLDisplay);
    }

    mEGLDisplay = EGL14.EGL_NO_DISPLAY;
    mEGLContext = EGL14.EGL_NO_CONTEXT;
    mEGLConfig = null;
}
 
开发者ID:LeonHover,项目名称:MediaCodecRecorder,代码行数:13,代码来源:GLContext.java

示例9: release

import android.opengl.EGL14; //导入方法依赖的package包/类
/**
 * Discards all resources held by this class, notably the EGL context.
 */
public void release() {
  if (eglDisplay != EGL14.EGL_NO_DISPLAY) {
    EGL14.eglMakeCurrent(eglDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE,
        EGL14.EGL_NO_CONTEXT);
    EGL14.eglDestroySurface(eglDisplay, eglSurface);
    EGL14.eglDestroyContext(eglDisplay, eglContext);
    EGL14.eglReleaseThread();
    EGL14.eglTerminate(eglDisplay);
  }
  eglDisplay = EGL14.EGL_NO_DISPLAY;
  eglContext = EGL14.EGL_NO_CONTEXT;
  eglSurface = EGL14.EGL_NO_SURFACE;
}
 
开发者ID:pedroSG94,项目名称:rtmp-rtsp-stream-client-java,代码行数:17,代码来源:SurfaceManager.java

示例10: release

import android.opengl.EGL14; //导入方法依赖的package包/类
@Override
public void release() {
  checkIsNotReleased();
  releaseSurface();
  detachCurrent();
  EGL14.eglDestroyContext(eglDisplay, eglContext);
  EGL14.eglReleaseThread();
  EGL14.eglTerminate(eglDisplay);
  eglContext = EGL14.EGL_NO_CONTEXT;
  eglDisplay = EGL14.EGL_NO_DISPLAY;
  eglConfig = null;
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:13,代码来源:EglBase14.java

示例11: release

import android.opengl.EGL14; //导入方法依赖的package包/类
public void release() {
    if (mEglDisplay != EGL14.EGL_NO_DISPLAY) {
        destroyContext();
        EGL14.eglTerminate(mEglDisplay);
        EGL14.eglReleaseThread();
    }
    mEglDisplay = EGL14.EGL_NO_DISPLAY;
    mEglContext = EGL14.EGL_NO_CONTEXT;
}
 
开发者ID:uestccokey,项目名称:EZFilter,代码行数:10,代码来源:EGLEnvironment.java


注:本文中的android.opengl.EGL14.eglReleaseThread方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。