Package 

Class Rgba8888Buffer

  • All Implemented Interfaces:
    tvi.webrtc.RefCounted , tvi.webrtc.VideoFrame.Buffer

    
    public class Rgba8888Buffer
     implements VideoFrame.Buffer
                        

    A frame buffer that represents an image in the ARGB format with 8 bits of of precision.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final ByteBuffer data
      private final int width
      private final int height
    • Method Summary

      Modifier and Type Method Description
      ByteBuffer getData() Returns the raw frame buffer data.
      int getWidth() Returns the frame width.
      int getHeight() Returns the frame height.
      VideoFrame.I420Buffer toI420() Converts the buffer to a tvi.webrtc.VideoFrame.I420Buffer.
      void retain()
      void release()
      VideoFrame.Buffer cropAndScale(int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight)
      • Methods inherited from class tvi.webrtc.VideoFrame.Buffer

        cropAndScale, getBufferType, getHeight, getWidth, release, retain, toI420
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Rgba8888Buffer

        Rgba8888Buffer(ByteBuffer data, int width, int height)
    • Method Detail

      • getWidth

         int getWidth()

        Returns the frame width.

      • getHeight

         int getHeight()

        Returns the frame height.

      • toI420

         VideoFrame.I420Buffer toI420()

        Converts the buffer to a tvi.webrtc.VideoFrame.I420Buffer.

      • cropAndScale

         VideoFrame.Buffer cropAndScale(int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight)