Class Rgba8888Buffer

  • All Implemented Interfaces:
    RefCounted, VideoFrame.Buffer

    public class Rgba8888Buffer
    extends java.lang.Object
    implements VideoFrame.Buffer
    A frame buffer that represents an image in the ARGB format with 8 bits of of precision.
    • Constructor Summary

      Constructors 
      Constructor Description
      Rgba8888Buffer​(java.nio.ByteBuffer data, int width, int height)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      VideoFrame.Buffer cropAndScale​(int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight)
      Crops a region defined by |cropx|, |cropY|, |cropWidth| and |cropHeight|.
      java.nio.ByteBuffer getData()
      Returns the raw frame buffer data.
      int getHeight()
      Returns the frame height.
      int getWidth()
      Returns the frame width.
      void release()
      Decreases ref count by one.
      void retain()
      Increases ref count by one.
      VideoFrame.I420Buffer toI420()
      Converts the buffer to a VideoFrame.I420Buffer.
      • Methods inherited from class java.lang.Object

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

      • Rgba8888Buffer

        public Rgba8888Buffer​(@NonNull
                              java.nio.ByteBuffer data,
                              int width,
                              int height)