Package

## Interface VideoFrame

- All Implemented Interfaces:

      public interface VideoFrame

  Interface for representing video frame. Check color format by using VideoFrame.getColorFormat. Most used format is ImageFormat.YUV_420_888 which is I420 format that uses planar or semi-planar (but not fully interleaved) memory layout - do not assume continuity and use use yuvPlanes() and yuvStrides APIs to get correct start line of any plane. NB: do not assume that ByteBuffers of VideoFrame.yuvPlanes are backed by Java's byte[] arrays! Most probably frame you receive via this API is natively allocated and NOT backed by Java array. Use slow but secure ByteBuffer.put or better, your own native C++ processing via JNI.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public final class` | `VideoFrame.DefaultVideoFrame` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract Integer` | `getWidth()` | The frame width.
    `abstract Integer` | `getHeight()` | The frame height.
    `abstract IntArray` | `getYuvStrides()` | The frame strides for each plane.
    `abstract Array<ByteBuffer>` | `getYuvPlanes()` | The Y, U and V planes array.
    `abstract Integer` | `getColorFormat()` | Color format of YUV frame as in android.graphics.ImageFormat.
    `abstract Integer` | `getRotation()` |

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

  - ### Method Detail

    - #### getWidth

           abstract Integer getWidth()

      The frame width.

    - #### getHeight

           abstract Integer getHeight()

      The frame height.

    - #### getYuvStrides

           abstract IntArray getYuvStrides()

      The frame strides for each plane.

    - #### getYuvPlanes

           abstract Array<ByteBuffer> getYuvPlanes()

      The Y, U and V planes array.

    - #### getColorFormat

           abstract Integer getColorFormat()

      Color format of YUV frame as in android.graphics.ImageFormat.

    - #### getRotation

           abstract Integer getRotation()