EglBase

tee3.webrtc

## 接口 EglBase

-     public interface EglBase

  Holds EGL state and utility methods for handling an egl 1.0 EGLContext, an EGLDisplay, and an EGLSurface.

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 接口和说明
    --- | ---
    `static interface` | `EglBase.Context`

  - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static int[]` | `CONFIG_PIXEL_BUFFER`
    `static int[]` | `CONFIG_PIXEL_RGBA_BUFFER`
    `static int[]` | `CONFIG_PLAIN`
    `static int[]` | `CONFIG_RECORDABLE`
    `static int[]` | `CONFIG_RGBA`
    `static int` | `EGL_OPENGL_ES2_BIT`
    `static int` | `EGL_RECORDABLE_ANDROID`
    `static java.lang.Object` | `lock`

  - ### 方法概要

    所有方法 静态方法 实例方法 抽象方法 默认方法
    限定符和类型 | 方法和说明
    --- | ---
    `static EglBase` | `create()` Helper function for creating a plain root context.
    `static EglBase` | `create(EglBase.Context sharedContext)` Helper function for creating a plain context, sharing data with |sharedContext|.
    `static EglBase` | `create(EglBase.Context sharedContext, int[] configAttributes)` Create a new context with the specified config attributes, sharing data with |sharedContext|.
    `void` | `createDummyPbufferSurface()`
    `static EglBase` | `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.
    `static EglBase` | `createEgl10(int[] configAttributes)` Explicitly create a root EGl 1.0 context with the specified config attributes.
    `static EglBase` | `createEgl14(android.opengl.EGLContext sharedContext, int[] configAttributes)` Explicitly create a root EGl 1.4 context with the specified config attributes and shared context.
    `static EglBase` | `createEgl14(int[] configAttributes)` Explicitly create a root EGl 1.4 context with the specified config attributes.
    `void` | `createPbufferSurface(int width, int height)`
    `void` | `createSurface(android.view.Surface surface)`
    `void` | `createSurface(android.graphics.SurfaceTexture surfaceTexture)`
    `void` | `detachCurrent()`
    `EglBase.Context` | `getEglBaseContext()`
    `boolean` | `hasSurface()`
    `void` | `makeCurrent()`
    `void` | `release()`
    `void` | `releaseSurface()`
    `int` | `surfaceHeight()`
    `int` | `surfaceWidth()`
    `void` | `swapBuffers()`
    `void` | `swapBuffers(long presentationTimeStampNs)`

- - ### 字段详细资料

    - #### lock

          static final java.lang.Object lock

    - #### EGL_OPENGL_ES2_BIT

          static final int EGL_OPENGL_ES2_BIT

      另请参阅:
        常量字段值

    - #### EGL_RECORDABLE_ANDROID

          static final int EGL_RECORDABLE_ANDROID

      另请参阅:
        常量字段值

    - #### 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

  - ### 方法详细资料

    - #### 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 EglBase createEgl10(int[] configAttributes)

      Explicitly create a root EGl 1.0 context with the specified config attributes.

    - #### createEgl10

          static EglBase 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 EglBase createEgl14(int[] configAttributes)

      Explicitly create a root EGl 1.4 context with the specified config attributes.

    - #### createEgl14

          static EglBase 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)