Java Code Examples for android.opengl.EGL14#EGL_SUCCESS
The following examples show how to use
android.opengl.EGL14#EGL_SUCCESS .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EglUtil.java From SimpleVideoEditor with Apache License 2.0 | 6 votes |
/** * Destroys the GL context identified by {@code eglDisplay} and {@code eglContext}. */ static void destroyEglContext(EGLDisplay eglDisplay, EGLContext eglContext) { EGL14.eglMakeCurrent(eglDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT); int error = EGL14.eglGetError(); if (error != EGL14.EGL_SUCCESS) { throw new RuntimeException("error releasing context: " + error); } EGL14.eglDestroyContext(eglDisplay, eglContext); error = EGL14.eglGetError(); if (error != EGL14.EGL_SUCCESS) { throw new RuntimeException("error destroying context: " + error); } }
Example 2
Source File: EglCore.java From pause-resume-video-recording with Apache License 2.0 | 5 votes |
/** * 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)); } }
Example 3
Source File: EglHelperAPI17.java From DanDanPlayForAndroid with MIT License | 5 votes |
@Override public int swap() { if (!EGL14.eglSwapBuffers(mEglDisplay, mEglSurface)) { return EGL14.eglGetError(); } return EGL14.EGL_SUCCESS; }
Example 4
Source File: InputSurface.java From react-native-video-helper with MIT License | 5 votes |
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)"); } }
Example 5
Source File: EglHelperAPI17.java From android-openGL-canvas with Apache License 2.0 | 5 votes |
@Override public int swap() { if (!EGL14.eglSwapBuffers(mEglDisplay, mEglSurface)) { FileLogger.w(TAG, String.format("swap: start get error")); return EGL14.eglGetError(); } return EGL14.EGL_SUCCESS; }
Example 6
Source File: InputSurface.java From VideoCompressor with Apache License 2.0 | 5 votes |
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)"); } }
Example 7
Source File: InputSurface.java From talk-android with MIT License | 5 votes |
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)"); } }
Example 8
Source File: EGLBase.java From CameraRecorder-android with MIT License | 5 votes |
int swap(final EGLSurface surface) { // if (DEBUG) Log.v(TAG, "swap:"); if (!EGL14.eglSwapBuffers(eglDisplay, surface)) { final int err = EGL14.eglGetError(); if (DEBUG) Log.w(TAG, "swap:err=" + err); return err; } return EGL14.EGL_SUCCESS; }
Example 9
Source File: InputSurface.java From SimpleVideoEditor with Apache License 2.0 | 5 votes |
/** * 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)"); } }
Example 10
Source File: OutputSurface.java From phoenix with Apache License 2.0 | 5 votes |
/** * 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)); } }
Example 11
Source File: InputSurface.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
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)"); } }
Example 12
Source File: InputSurface.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
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)"); } }
Example 13
Source File: InputSurface.java From deltachat-android with GNU General Public License v3.0 | 5 votes |
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)"); } }
Example 14
Source File: EGLBase.java From Fatigue-Detection with MIT License | 5 votes |
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; }
Example 15
Source File: SurfaceManager.java From libstreaming with Apache License 2.0 | 5 votes |
/** * Checks for EGL errors. Throws an exception if one is found. */ private void checkEglError(String msg) { int error; if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) { throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error)); } }
Example 16
Source File: OutputSurface.java From android-transcoder with Apache License 2.0 | 5 votes |
/** * 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)); } }
Example 17
Source File: SohuEGLManager.java From GLES2_AUDIO_VIDEO_RECODE with Apache License 2.0 | 5 votes |
/** * 交换buffer数据 * * @return */ public int swapMyEGLBuffers() { // boolean result = EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); // if (!result) { final int err = EGL14.eglGetError(); return err; } // return EGL14.EGL_SUCCESS; }
Example 18
Source File: EglCore.java From IjkVRPlayer with Apache License 2.0 | 5 votes |
/** * 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)); } }
Example 19
Source File: SurfaceManager.java From spydroid-ipcamera with GNU General Public License v3.0 | 5 votes |
/** * Checks for EGL errors. Throws an exception if one is found. */ private void checkEglError(String msg) { int error; if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) { throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error)); } }
Example 20
Source File: SurfaceTextureRenderer.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
private void checkEglError(String msg) { int error; if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) { throw new IllegalStateException(msg + ": EGL error: 0x" + Integer.toHexString(error)); } }