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 classEglBase14.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 voidcreateDummyPbufferSurface()voidcreatePbufferSurface(int width, int height)voidcreateSurface(android.graphics.SurfaceTexture surfaceTexture)voidcreateSurface(android.view.Surface surface)voiddetachCurrent()EglBase14.ContextgetEglBaseContext()booleanhasSurface()static booleanisEGL14Supported()voidmakeCurrent()voidrelease()voidreleaseSurface()intsurfaceHeight()intsurfaceWidth()voidswapBuffers()voidswapBuffers(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:
createSurfacein classEglBase
-
createSurface
public void createSurface(android.graphics.SurfaceTexture surfaceTexture)
- Specified by:
createSurfacein classEglBase
-
createDummyPbufferSurface
public void createDummyPbufferSurface()
- Specified by:
createDummyPbufferSurfacein classEglBase
-
createPbufferSurface
public void createPbufferSurface(int width, int height)- Specified by:
createPbufferSurfacein classEglBase
-
getEglBaseContext
public EglBase14.Context getEglBaseContext()
- Specified by:
getEglBaseContextin classEglBase
-
hasSurface
public boolean hasSurface()
- Specified by:
hasSurfacein classEglBase
-
surfaceWidth
public int surfaceWidth()
- Specified by:
surfaceWidthin classEglBase
-
surfaceHeight
public int surfaceHeight()
- Specified by:
surfaceHeightin classEglBase
-
releaseSurface
public void releaseSurface()
- Specified by:
releaseSurfacein classEglBase
-
makeCurrent
public void makeCurrent()
- Specified by:
makeCurrentin classEglBase
-
detachCurrent
public void detachCurrent()
- Specified by:
detachCurrentin classEglBase
-
swapBuffers
public void swapBuffers()
- Specified by:
swapBuffersin classEglBase
-
swapBuffers
public void swapBuffers(long timeStampNs)
-
-