Class EglBase14
- java.lang.Object
-
- com.zego.zegoavkit2.screencapture.ve_gl.EglBase
-
- com.zego.zegoavkit2.screencapture.ve_gl.EglBase14
-
public final class EglBase14 extends EglBase
Holds EGL state and utility methods for handling an EGL14 EGLContext, an EGLDisplay, and an EGLSurface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EglBase14.Context
-
Field Summary
-
Fields inherited from class com.zego.zegoavkit2.screencapture.ve_gl.EglBase
CONFIG_PIXEL_BUFFER, CONFIG_PIXEL_RGBA_BUFFER, CONFIG_PLAIN, CONFIG_RECORDABLE, CONFIG_RGBA, lock
-
-
Constructor Summary
Constructors Constructor Description EglBase14(EglBase14.Context sharedContext, int[] configAttributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createDummyPbufferSurface()
void
createPbufferSurface(int width, int height)
void
createSurface(android.graphics.SurfaceTexture surfaceTexture)
void
createSurface(android.view.Surface surface)
void
detachCurrent()
EglBase14.Context
getEglBaseContext()
boolean
hasSurface()
static boolean
isEGL14Supported()
void
makeCurrent()
void
release()
void
releaseSurface()
int
surfaceHeight()
int
surfaceWidth()
void
swapBuffers()
void
swapBuffers(long timeStampNs)
-
-
-
Constructor Detail
-
EglBase14
public EglBase14(EglBase14.Context sharedContext, int[] configAttributes)
-
-
Method Detail
-
isEGL14Supported
public static boolean isEGL14Supported()
-
createSurface
public void createSurface(android.view.Surface surface)
- Specified by:
createSurface
in classEglBase
-
createSurface
public void createSurface(android.graphics.SurfaceTexture surfaceTexture)
- Specified by:
createSurface
in classEglBase
-
createDummyPbufferSurface
public void createDummyPbufferSurface()
- Specified by:
createDummyPbufferSurface
in classEglBase
-
createPbufferSurface
public void createPbufferSurface(int width, int height)
- Specified by:
createPbufferSurface
in classEglBase
-
getEglBaseContext
public EglBase14.Context getEglBaseContext()
- Specified by:
getEglBaseContext
in classEglBase
-
hasSurface
public boolean hasSurface()
- Specified by:
hasSurface
in classEglBase
-
surfaceWidth
public int surfaceWidth()
- Specified by:
surfaceWidth
in classEglBase
-
surfaceHeight
public int surfaceHeight()
- Specified by:
surfaceHeight
in classEglBase
-
releaseSurface
public void releaseSurface()
- Specified by:
releaseSurface
in classEglBase
-
makeCurrent
public void makeCurrent()
- Specified by:
makeCurrent
in classEglBase
-
detachCurrent
public void detachCurrent()
- Specified by:
detachCurrent
in classEglBase
-
swapBuffers
public void swapBuffers()
- Specified by:
swapBuffers
in classEglBase
-
swapBuffers
public void swapBuffers(long timeStampNs)
-
-