VideoRenderer.I420Frame

cn.tee3.avd

## 类 VideoRenderer.I420Frame

- java.lang.Object
- - cn.tee3.avd.VideoRenderer.I420Frame

- 封闭类:
    VideoRenderer

      public static class VideoRenderer.I420Frame
      extends java.lang.Object

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `int` | `height`
    `int` | `rotationDegree`
    `float[]` | `samplingMatrix`
    `int` | `textureId`
    `int` | `width`
    `boolean` | `yuvFrame`
    `java.nio.ByteBuffer[]` | `yuvPlanes`
    `int[]` | `yuvStrides`

  - ### 构造器概要

    构造器
    构造器和说明
    `I420Frame(int width, int height, int rotationDegree, int[] yuvStrides, java.nio.ByteBuffer[] yuvPlanes, long nativeFramePointer)` Construct a frame of the given dimensions with the specified planar data.
    `I420Frame(int width, int height, int rotationDegree, int textureId, float[] samplingMatrix, long nativeFramePointer)` Construct a texture frame of the given dimensions with data in SurfaceTexture
    `I420Frame(int rotationDegree, VideoFrame.Buffer buffer, long nativeFramePointer)` Construct a frame from VideoFrame.Buffer.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | `rotatedHeight()`
    `int` | `rotatedWidth()`
    `java.lang.String` | `toString()`
    `VideoFrame` | `toVideoFrame()` Convert the frame to VideoFrame.

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

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

- - ### 字段详细资料

    - #### width

          public final int width

    - #### height

          public final int height

    - #### yuvStrides

          @Nullable
          public final int[] yuvStrides

    - #### yuvPlanes

          @Nullable
          public java.nio.ByteBuffer[] yuvPlanes

    - #### yuvFrame

          public final boolean yuvFrame

    - #### samplingMatrix

          @Nullable
          public final float[] samplingMatrix

    - #### textureId

          public int textureId

    - #### rotationDegree

          public int rotationDegree

  - ### 构造器详细资料

    - #### I420Frame

          public I420Frame(int width,
                           int height,
                           int rotationDegree,
                           int[] yuvStrides,
                           java.nio.ByteBuffer[] yuvPlanes,
                           long nativeFramePointer)

      Construct a frame of the given dimensions with the specified planar data.

    - #### I420Frame

          public I420Frame(int width,
                           int height,
                           int rotationDegree,
                           int textureId,
                           float[] samplingMatrix,
                           long nativeFramePointer)

      Construct a texture frame of the given dimensions with data in SurfaceTexture

    - #### I420Frame

          public I420Frame(int rotationDegree,
                           VideoFrame.Buffer buffer,
                           long nativeFramePointer)

      Construct a frame from VideoFrame.Buffer.

  - ### 方法详细资料

    - #### rotatedWidth

          public int rotatedWidth()

    - #### rotatedHeight

          public int rotatedHeight()

    - #### toString

          public java.lang.String toString()

      覆盖:
        `toString` 在类中 `java.lang.Object`

    - #### toVideoFrame

          public VideoFrame toVideoFrame()

      Convert the frame to VideoFrame. It is no longer safe to use the I420Frame after calling this.