YuvHelper

tee3.webrtc

## 类 YuvHelper

- java.lang.Object
- - tee3.webrtc.YuvHelper

-     public class YuvHelper
      extends java.lang.Object

  Wraps libyuv methods to Java. All passed byte buffers must be direct byte buffers.

- - ### 构造器概要

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

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static void` | `bmp2Yuv(java.nio.ByteBuffer srcY, int srcStrideY, java.nio.ByteBuffer srcU, int srcStrideU, java.nio.ByteBuffer srcV, int srcStrideV, int src_width, int src_height, java.nio.ByteBuffer strData, int datalen, int format)`
    `static void` | `copyPlane(java.nio.ByteBuffer src, int srcStride, java.nio.ByteBuffer dst, int dstStride, int width, int height)` Helper method for copying a single colour plane.
    `static void` | `I420Copy(java.nio.ByteBuffer srcY, int srcStrideY, java.nio.ByteBuffer srcU, int srcStrideU, java.nio.ByteBuffer srcV, int srcStrideV, java.nio.ByteBuffer dstY, int dstStrideY, java.nio.ByteBuffer dstU, int dstStrideU, java.nio.ByteBuffer dstV, int dstStrideV, int width, int height)`
    `static void` | `I420Copy(java.nio.ByteBuffer srcY, int srcStrideY, java.nio.ByteBuffer srcU, int srcStrideU, java.nio.ByteBuffer srcV, int srcStrideV, java.nio.ByteBuffer dst, int width, int height)` Helper method for copying I420 to tightly packed destination buffer.
    `static void` | `I420Rotate(java.nio.ByteBuffer srcY, int srcStrideY, java.nio.ByteBuffer srcU, int srcStrideU, java.nio.ByteBuffer srcV, int srcStrideV, java.nio.ByteBuffer dstY, int dstStrideY, java.nio.ByteBuffer dstU, int dstStrideU, java.nio.ByteBuffer dstV, int dstStrideV, int srcWidth, int srcHeight, int rotationMode)`
    `static void` | `I420Rotate(java.nio.ByteBuffer srcY, int srcStrideY, java.nio.ByteBuffer srcU, int srcStrideU, java.nio.ByteBuffer srcV, int srcStrideV, java.nio.ByteBuffer dst, int srcWidth, int srcHeight, int rotationMode)` Helper method for rotating I420 to tightly packed destination buffer.
    `static void` | `I420Scale(java.nio.ByteBuffer srcY, int srcStrideY, java.nio.ByteBuffer srcU, int srcStrideU, java.nio.ByteBuffer srcV, int srcStrideV, int src_width, int src_height, int src_x, int src_y, int src_w, int src_h, java.nio.ByteBuffer dstY, java.nio.ByteBuffer dstU, java.nio.ByteBuffer dstV, int width, int height)`
    `static void` | `I420Scale(java.nio.ByteBuffer srcY, int srcStrideY, java.nio.ByteBuffer srcU, int srcStrideU, java.nio.ByteBuffer srcV, int srcStrideV, int src_width, int src_height, int src_x, int src_y, int src_w, int src_h, java.nio.ByteBuffer dst, int width, int height)`
    `static void` | `I420ToNV12(java.nio.ByteBuffer srcY, int srcStrideY, java.nio.ByteBuffer srcU, int srcStrideU, java.nio.ByteBuffer srcV, int srcStrideV, java.nio.ByteBuffer dstY, int dstStrideY, java.nio.ByteBuffer dstUV, int dstStrideUV, int width, int height)`
    `static void` | `I420ToNV12(java.nio.ByteBuffer srcY, int srcStrideY, java.nio.ByteBuffer srcU, int srcStrideU, java.nio.ByteBuffer srcV, int srcStrideV, java.nio.ByteBuffer dst, int width, int height)` Helper method for copying I420 to tightly packed NV12 destination buffer.
    `static java.nio.ByteBuffer` | `videoFrame2ARGB(VideoFrame frame, int cropX, int cropY, int cropWidth, int cropHeight, int rotation)`

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

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

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

    - #### YuvHelper

          public YuvHelper()

  - ### 方法详细资料

    - #### I420Copy

          public static void I420Copy(java.nio.ByteBuffer srcY,
                                      int srcStrideY,
                                      java.nio.ByteBuffer srcU,
                                      int srcStrideU,
                                      java.nio.ByteBuffer srcV,
                                      int srcStrideV,
                                      java.nio.ByteBuffer dst,
                                      int width,
                                      int height)

      Helper method for copying I420 to tightly packed destination buffer.

    - #### I420ToNV12

          public static void I420ToNV12(java.nio.ByteBuffer srcY,
                                        int srcStrideY,
                                        java.nio.ByteBuffer srcU,
                                        int srcStrideU,
                                        java.nio.ByteBuffer srcV,
                                        int srcStrideV,
                                        java.nio.ByteBuffer dst,
                                        int width,
                                        int height)

      Helper method for copying I420 to tightly packed NV12 destination buffer.

    - #### I420Rotate

          public static void I420Rotate(java.nio.ByteBuffer srcY,
                                        int srcStrideY,
                                        java.nio.ByteBuffer srcU,
                                        int srcStrideU,
                                        java.nio.ByteBuffer srcV,
                                        int srcStrideV,
                                        java.nio.ByteBuffer dst,
                                        int srcWidth,
                                        int srcHeight,
                                        int rotationMode)

      Helper method for rotating I420 to tightly packed destination buffer.

    - #### copyPlane

          public static void copyPlane(java.nio.ByteBuffer src,
                                       int srcStride,
                                       java.nio.ByteBuffer dst,
                                       int dstStride,
                                       int width,
                                       int height)

      Helper method for copying a single colour plane.

    - #### I420Copy

          public static void I420Copy(java.nio.ByteBuffer srcY,
                                      int srcStrideY,
                                      java.nio.ByteBuffer srcU,
                                      int srcStrideU,
                                      java.nio.ByteBuffer srcV,
                                      int srcStrideV,
                                      java.nio.ByteBuffer dstY,
                                      int dstStrideY,
                                      java.nio.ByteBuffer dstU,
                                      int dstStrideU,
                                      java.nio.ByteBuffer dstV,
                                      int dstStrideV,
                                      int width,
                                      int height)

    - #### I420ToNV12

          public static void I420ToNV12(java.nio.ByteBuffer srcY,
                                        int srcStrideY,
                                        java.nio.ByteBuffer srcU,
                                        int srcStrideU,
                                        java.nio.ByteBuffer srcV,
                                        int srcStrideV,
                                        java.nio.ByteBuffer dstY,
                                        int dstStrideY,
                                        java.nio.ByteBuffer dstUV,
                                        int dstStrideUV,
                                        int width,
                                        int height)

    - #### I420Rotate

          public static void I420Rotate(java.nio.ByteBuffer srcY,
                                        int srcStrideY,
                                        java.nio.ByteBuffer srcU,
                                        int srcStrideU,
                                        java.nio.ByteBuffer srcV,
                                        int srcStrideV,
                                        java.nio.ByteBuffer dstY,
                                        int dstStrideY,
                                        java.nio.ByteBuffer dstU,
                                        int dstStrideU,
                                        java.nio.ByteBuffer dstV,
                                        int dstStrideV,
                                        int srcWidth,
                                        int srcHeight,
                                        int rotationMode)

    - #### I420Scale

          public static void I420Scale(java.nio.ByteBuffer srcY,
                                       int srcStrideY,
                                       java.nio.ByteBuffer srcU,
                                       int srcStrideU,
                                       java.nio.ByteBuffer srcV,
                                       int srcStrideV,
                                       int src_width,
                                       int src_height,
                                       int src_x,
                                       int src_y,
                                       int src_w,
                                       int src_h,
                                       java.nio.ByteBuffer dst,
                                       int width,
                                       int height)

    - #### I420Scale

          public static void I420Scale(java.nio.ByteBuffer srcY,
                                       int srcStrideY,
                                       java.nio.ByteBuffer srcU,
                                       int srcStrideU,
                                       java.nio.ByteBuffer srcV,
                                       int srcStrideV,
                                       int src_width,
                                       int src_height,
                                       int src_x,
                                       int src_y,
                                       int src_w,
                                       int src_h,
                                       java.nio.ByteBuffer dstY,
                                       java.nio.ByteBuffer dstU,
                                       java.nio.ByteBuffer dstV,
                                       int width,
                                       int height)

    - #### bmp2Yuv

          public static void bmp2Yuv(java.nio.ByteBuffer srcY,
                                     int srcStrideY,
                                     java.nio.ByteBuffer srcU,
                                     int srcStrideU,
                                     java.nio.ByteBuffer srcV,
                                     int srcStrideV,
                                     int src_width,
                                     int src_height,
                                     java.nio.ByteBuffer strData,
                                     int datalen,
                                     int format)

    - #### videoFrame2ARGB

          public static java.nio.ByteBuffer videoFrame2ARGB(VideoFrame frame,
                                                            int cropX,
                                                            int cropY,
                                                            int cropWidth,
                                                            int cropHeight,
                                                            int rotation)