Package tvi.webrtc

Interface VideoFrame.I420Buffer

All Superinterfaces:
RefCounted, VideoFrame.Buffer
All Known Implementing Classes:
JavaI420Buffer
Enclosing class:
VideoFrame

public static interface VideoFrame.I420Buffer extends VideoFrame.Buffer
Interface for I420 buffers.
  • Method Details

    • getBufferType

      default int getBufferType()
      Description copied from interface: VideoFrame.Buffer
      Representation of the underlying buffer. Currently, only NATIVE and I420 are supported.
      Specified by:
      getBufferType in interface VideoFrame.Buffer
    • getDataY

      ByteBuffer getDataY()
      Returns a direct ByteBuffer containing Y-plane data. The buffer capacity is at least getStrideY() * getHeight() bytes. The position of the returned buffer is ignored and must be 0. Callers may mutate the ByteBuffer (eg. through relative-read operations), so implementations must return a new ByteBuffer or slice for each call.
    • getDataU

      ByteBuffer getDataU()
      Returns a direct ByteBuffer containing U-plane data. The buffer capacity is at least getStrideU() * ((getHeight() + 1) / 2) bytes. The position of the returned buffer is ignored and must be 0. Callers may mutate the ByteBuffer (eg. through relative-read operations), so implementations must return a new ByteBuffer or slice for each call.
    • getDataV

      ByteBuffer getDataV()
      Returns a direct ByteBuffer containing V-plane data. The buffer capacity is at least getStrideV() * ((getHeight() + 1) / 2) bytes. The position of the returned buffer is ignored and must be 0. Callers may mutate the ByteBuffer (eg. through relative-read operations), so implementations must return a new ByteBuffer or slice for each call.
    • getStrideY

      int getStrideY()
    • getStrideU

      int getStrideU()
    • getStrideV

      int getStrideV()