Package tvi.webrtc
Interface EglBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEglBase.ConfigBuilderstatic interfaceEglBase.Context
-
Field Summary
Fields Modifier and Type Field Description static int[]CONFIG_PIXEL_BUFFERstatic int[]CONFIG_PIXEL_RGBA_BUFFERstatic int[]CONFIG_PLAINstatic int[]CONFIG_RECORDABLEstatic int[]CONFIG_RGBAstatic intEGL_OPENGL_ES2_BITstatic intEGL_OPENGL_ES3_BITstatic intEGL_RECORDABLE_ANDROIDstatic java.lang.Objectlock
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static EglBase.ConfigBuilderconfigBuilder()static EglBasecreate()Helper function for creating a plain root context.static EglBasecreate(EglBase.Context sharedContext)Helper function for creating a plain context, sharing data with |sharedContext|.static EglBasecreate(EglBase.Context sharedContext, int[] configAttributes)Create a new context with the specified config attributes, sharing data with |sharedContext|.voidcreateDummyPbufferSurface()static EglBase10createEgl10(int[] configAttributes)Explicitly create a root EGl 1.0 context with the specified config attributes.static EglBase10createEgl10(javax.microedition.khronos.egl.EGLContext sharedContext, int[] configAttributes)Explicitly create a root EGl 1.0 context with the specified config attributes and shared context.static EglBase10createEgl10(EglBase10.Context sharedContext, int[] configAttributes)Explicitly create a root EGl 1.0 context with the specified config attributes and shared context.static EglBase14createEgl14(int[] configAttributes)Explicitly create a root EGl 1.4 context with the specified config attributes.static EglBase14createEgl14(android.opengl.EGLContext sharedContext, int[] configAttributes)Explicitly create a root EGl 1.4 context with the specified config attributes and shared context.static EglBase14createEgl14(EglBase14.Context sharedContext, int[] configAttributes)Explicitly create a root EGl 1.4 context with the specified config attributes and shared context.voidcreatePbufferSurface(int width, int height)voidcreateSurface(android.graphics.SurfaceTexture surfaceTexture)voidcreateSurface(android.view.Surface surface)voiddetachCurrent()EglBase.ContextgetEglBaseContext()static intgetOpenGlesVersionFromConfig(int[] configAttributes)booleanhasSurface()voidmakeCurrent()voidrelease()voidreleaseSurface()intsurfaceHeight()intsurfaceWidth()voidswapBuffers()voidswapBuffers(long presentationTimeStampNs)
-
-
-
Field Detail
-
lock
static final java.lang.Object lock
-
EGL_OPENGL_ES2_BIT
static final int EGL_OPENGL_ES2_BIT
- See Also:
- Constant Field Values
-
EGL_OPENGL_ES3_BIT
static final int EGL_OPENGL_ES3_BIT
- See Also:
- Constant Field Values
-
EGL_RECORDABLE_ANDROID
static final int EGL_RECORDABLE_ANDROID
- See Also:
- Constant Field Values
-
CONFIG_PLAIN
static final int[] CONFIG_PLAIN
-
CONFIG_RGBA
static final int[] CONFIG_RGBA
-
CONFIG_PIXEL_BUFFER
static final int[] CONFIG_PIXEL_BUFFER
-
CONFIG_PIXEL_RGBA_BUFFER
static final int[] CONFIG_PIXEL_RGBA_BUFFER
-
CONFIG_RECORDABLE
static final int[] CONFIG_RECORDABLE
-
-
Method Detail
-
configBuilder
static EglBase.ConfigBuilder configBuilder()
-
getOpenGlesVersionFromConfig
static int getOpenGlesVersionFromConfig(int[] configAttributes)
-
create
static EglBase create(@Nullable EglBase.Context sharedContext, int[] configAttributes)
Create a new context with the specified config attributes, sharing data with |sharedContext|. If |sharedContext| is null, a root context is created. This function will try to create an EGL 1.4 context if possible, and an EGL 1.0 context otherwise.
-
create
static EglBase create()
Helper function for creating a plain root context. This function will try to create an EGL 1.4 context if possible, and an EGL 1.0 context otherwise.
-
create
static EglBase create(EglBase.Context sharedContext)
Helper function for creating a plain context, sharing data with |sharedContext|. This function will try to create an EGL 1.4 context if possible, and an EGL 1.0 context otherwise.
-
createEgl10
static EglBase10 createEgl10(int[] configAttributes)
Explicitly create a root EGl 1.0 context with the specified config attributes.
-
createEgl10
static EglBase10 createEgl10(EglBase10.Context sharedContext, int[] configAttributes)
Explicitly create a root EGl 1.0 context with the specified config attributes and shared context.
-
createEgl10
static EglBase10 createEgl10(javax.microedition.khronos.egl.EGLContext sharedContext, int[] configAttributes)
Explicitly create a root EGl 1.0 context with the specified config attributes and shared context.
-
createEgl14
static EglBase14 createEgl14(int[] configAttributes)
Explicitly create a root EGl 1.4 context with the specified config attributes.
-
createEgl14
static EglBase14 createEgl14(EglBase14.Context sharedContext, int[] configAttributes)
Explicitly create a root EGl 1.4 context with the specified config attributes and shared context.
-
createEgl14
static EglBase14 createEgl14(android.opengl.EGLContext sharedContext, int[] configAttributes)
Explicitly create a root EGl 1.4 context with the specified config attributes and shared context.
-
createSurface
void createSurface(android.view.Surface surface)
-
createSurface
void createSurface(android.graphics.SurfaceTexture surfaceTexture)
-
createDummyPbufferSurface
void createDummyPbufferSurface()
-
createPbufferSurface
void createPbufferSurface(int width, int height)
-
getEglBaseContext
EglBase.Context getEglBaseContext()
-
hasSurface
boolean hasSurface()
-
surfaceWidth
int surfaceWidth()
-
surfaceHeight
int surfaceHeight()
-
releaseSurface
void releaseSurface()
-
release
void release()
-
makeCurrent
void makeCurrent()
-
detachCurrent
void detachCurrent()
-
swapBuffers
void swapBuffers()
-
swapBuffers
void swapBuffers(long presentationTimeStampNs)
-
-