Package tvi.webrtc

Interface VideoFrame.I420Buffer

    • Method Detail

      • getDataY

        java.nio.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

        java.nio.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

        java.nio.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()