Class VideoFrame.DefaultVideoFrame

  • All Implemented Interfaces:
    VideoFrame
    Enclosing interface:
    VideoFrame

    public static class VideoFrame.DefaultVideoFrame
    extends java.lang.Object
    implements VideoFrame
    • Constructor Detail

      • DefaultVideoFrame

        public DefaultVideoFrame​(java.nio.ByteBuffer[] yuvPlanes,
                                 int[] yuvStrides,
                                 int width,
                                 int height,
                                 int rotationDegreesCW,
                                 int colorFormat)
    • Method Detail

      • width

        public int width()
        Specified by:
        width in interface VideoFrame
        Returns:
        The frame width.
      • height

        public int height()
        Specified by:
        height in interface VideoFrame
        Returns:
        The frame height.
      • yuvStrides

        public int[] yuvStrides()
        Specified by:
        yuvStrides in interface VideoFrame
        Returns:
        The frame strides for each plane.
      • yuvPlanes

        public java.nio.ByteBuffer[] yuvPlanes()
        Specified by:
        yuvPlanes in interface VideoFrame
        Returns:
        The Y, U and V planes array.
      • getColorFormat

        public int getColorFormat()
        Specified by:
        getColorFormat in interface VideoFrame
        Returns:
        color format of YUV frame as in ImageFormat.
      • getRotation

        public int getRotation()
        Specified by:
        getRotation in interface VideoFrame
        Returns:
        the degree that the frame must be rotated clockwisely to be rendered correctly.