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


Java EGL14.EGL_SUCCESS属性代码示例

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


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

示例1: checkEglError

@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
public static void checkEglError(String op) {
    int error;
    while ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
        Lg.e( op + ": eglGetError: 0x" + Integer.toHexString(error));
        throw new RuntimeException("eglGetError encountered (see log)");
    }
}
 
开发者ID:wuyisheng,项目名称:libRtmp,代码行数:8,代码来源:AndroidUntil.java

示例2: checkEglError

private void checkEglError(String msg) {
    boolean failed = false;
    while (EGL14.eglGetError() != EGL14.EGL_SUCCESS) {
        failed = true;
    }
    if (failed) {
        throw new RuntimeException("EGL error encountered (see log)");
    }
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:9,代码来源:InputSurface.java

示例3: checkEglError

/**
 * Checks for EGL errors.
 */
private void checkEglError(String msg) {
    int error;
    if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
        throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
    }
}
 
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:9,代码来源:OutputSurface.java

示例4: swap

private int swap(final EGLSurface surface) {
//		if (DEBUG) Log.v(TAG, "swap:");
        if (!EGL14.eglSwapBuffers(mEglDisplay, surface)) {
        	final int err = EGL14.eglGetError();
        	if (DEBUG) Log.w(TAG, "swap:err=" + err);
            return err;
        }
        return EGL14.EGL_SUCCESS;
    }
 
开发者ID:zhangyaqiang,项目名称:Fatigue-Detection,代码行数:9,代码来源:EGLBase.java

示例5: checkEglError

private void checkEglError(String msg) {
    boolean failed = false;
    int error;
    while ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
        failed = true;
    }
    if (failed) {
        throw new RuntimeException("EGL error encountered (see log)");
    }
}
 
开发者ID:fishwjy,项目名称:VideoCompressor,代码行数:10,代码来源:InputSurface.java

示例6: checkEglError

/**
 * Checks for EGL errors.  Throws an exception if an error has been raised.
 */
private void checkEglError(String msg) {
    int error;
    if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
        throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
    }
}
 
开发者ID:zhangyaqiang,项目名称:Fatigue-Detection,代码行数:9,代码来源:EglCore.java

示例7: logError

/** Log GL-Error. */
private static void logError() {
    final int error = EGL14.eglGetError();
    if (error != EGL14.EGL_SUCCESS) {
        if (WARNINGS) {
            Log.w(TAG, android.opengl.GLUtils.getEGLErrorString(error));
        }
    }
}
 
开发者ID:Nik-Gleb,项目名称:mpeg-encoder,代码行数:9,代码来源:GLTools.java

示例8: checkEglError

/**
 * Checks for EGL errors.
 */
private void checkEglError(String msg) {
    boolean failed = false;
    int error;
    while ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
        Log.e(TAG, msg + ": EGL error: 0x" + Integer.toHexString(error));
        failed = true;
    }
    if (failed) {
        throw new RuntimeException("EGL error encountered (see log)");
    }
}
 
开发者ID:livio,项目名称:sdl_video_streaming_android_sample,代码行数:14,代码来源:InputSurface.java

示例9: swap

private int swap(final EGLSurface surface) {
    if (!EGL14.eglSwapBuffers(mEglDisplay, surface)) {
        final int err = EGL14.eglGetError();
        return err;
    }
    return EGL14.EGL_SUCCESS;
}
 
开发者ID:uestccokey,项目名称:EZFilter,代码行数:7,代码来源:EGLEnvironment.java

示例10: checkEGLError

private void checkEGLError(String msg) {
    int error;
    if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
        throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
    }
}
 
开发者ID:LeonHover,项目名称:MediaCodecRecorder,代码行数:6,代码来源:GLContext.java

示例11: checkEglError

private void checkEglError(String msg) {
    int error;
    if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
        throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
    }
}
 
开发者ID:AgoraIO,项目名称:Agora-Screen-Sharing-Android,代码行数:6,代码来源:EglCore.java

示例12: checkEglError

public static void checkEglError(String msg) {
  int error;
  if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
    throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
  }
}
 
开发者ID:pedroSG94,项目名称:rtmp-rtsp-stream-client-java,代码行数:6,代码来源:GlUtil.java

示例13: checkEglError

private void checkEglError(final String msg) {
    int error;
    if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
        throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
    }
}
 
开发者ID:uestccokey,项目名称:EZFilter,代码行数:6,代码来源:EGLEnvironment.java


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