GlRectDrawer

tee3.webrtc

## 类 GlRectDrawer

- java.lang.Object
- - tee3.webrtc.GlRectDrawer

- 所有已实现的接口:
    RendererCommon.GlDrawer

      public class GlRectDrawer
      extends java.lang.Object
      implements RendererCommon.GlDrawer

  Helper class to draw an opaque quad on the target viewport location. Rotation, mirror, and cropping is specified using a 4x4 texture coordinate transform matrix. The frame input can either be an OES texture or YUV textures in I420 format. The GL state must be preserved between draw calls, this is intentional to maximize performance. The function release() must be called manually to free the resources held by this object.

- - ### 构造器概要

    构造器
    构造器和说明
    `GlRectDrawer()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `drawOes(int oesTextureId, float[] texMatrix, int frameWidth, int frameHeight, int viewportX, int viewportY, int viewportWidth, int viewportHeight)` Draw an OES texture frame with specified texture transformation matrix.
    `void` | `drawRgb(int textureId, float[] texMatrix, int frameWidth, int frameHeight, int viewportX, int viewportY, int viewportWidth, int viewportHeight)` Draw a RGB(A) texture frame with specified texture transformation matrix.
    `void` | `drawYuv(int[] yuvTextures, float[] texMatrix, int frameWidth, int frameHeight, int viewportX, int viewportY, int viewportWidth, int viewportHeight)` Draw a YUV frame with specified texture transformation matrix.
    `void` | `release()` Release all GLES resources.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### GlRectDrawer

          public GlRectDrawer()

  - ### 方法详细资料

    - #### drawOes

          public void drawOes(int oesTextureId,
                              float[] texMatrix,
                              int frameWidth,
                              int frameHeight,
                              int viewportX,
                              int viewportY,
                              int viewportWidth,
                              int viewportHeight)

      Draw an OES texture frame with specified texture transformation matrix. Required resources are allocated at the first call to this function.
      指定者:
        `drawOes` 在接口中 `RendererCommon.GlDrawer`

    - #### drawRgb

          public void drawRgb(int textureId,
                              float[] texMatrix,
                              int frameWidth,
                              int frameHeight,
                              int viewportX,
                              int viewportY,
                              int viewportWidth,
                              int viewportHeight)

      Draw a RGB(A) texture frame with specified texture transformation matrix. Required resources are allocated at the first call to this function.
      指定者:
        `drawRgb` 在接口中 `RendererCommon.GlDrawer`

    - #### drawYuv

          public void drawYuv(int[] yuvTextures,
                              float[] texMatrix,
                              int frameWidth,
                              int frameHeight,
                              int viewportX,
                              int viewportY,
                              int viewportWidth,
                              int viewportHeight)

      Draw a YUV frame with specified texture transformation matrix. Required resources are allocated at the first call to this function.
      指定者:
        `drawYuv` 在接口中 `RendererCommon.GlDrawer`

    - #### release

          public void release()

      Release all GLES resources. This needs to be done manually, otherwise the resources are leaked.
      指定者:
        `release` 在接口中 `RendererCommon.GlDrawer`