Class WatermarkBuffer

java.lang.Object
io.agora.rtc2.video.WatermarkBuffer

public class WatermarkBuffer extends Object
Since:
4.6.0
  • Field Details

    • WATERMARK_BUFFER_FORMAT_I420

      public static final int WATERMARK_BUFFER_FORMAT_I420
      Specifies the watermark buffer format as I420.
      See Also:
    • WATERMARK_BUFFER_FORMAT_BGRA

      public static final int WATERMARK_BUFFER_FORMAT_BGRA
      Specifies the watermark buffer format as BGRA.
      See Also:
    • WATERMARK_BUFFER_FORMAT_NV21

      public static final int WATERMARK_BUFFER_FORMAT_NV21
      Specifies the watermark buffer format as NV21.
      See Also:
    • WATERMARK_BUFFER_FORMAT_RGBA

      public static final int WATERMARK_BUFFER_FORMAT_RGBA
      Specifies the watermark buffer format as RGBA.
      See Also:
    • buffer

      public ByteBuffer buffer
      Stores the image data of the watermark.
    • width

      public int width
      The width of the watermark buffer in pixels.
    • height

      public int height
      The height of the watermark buffer in pixels.
    • format

      public int format
  • Constructor Details

    • WatermarkBuffer

      public WatermarkBuffer()
  • Method Details

    • getBuffer

      public ByteBuffer getBuffer()
      Returns:
      The ByteBuffer containing the watermark image data.
      Since:
      4.6.0
    • getWidth

      public int getWidth()
      Returns:
      The width in pixels.
      Since:
      4.6.0
    • getHeight

      public int getHeight()
      Returns:
      The height in pixels.
      Since:
      4.6.0
    • getFormat

      public int getFormat()
      Returns:
      The format of the watermark buffer.
      Since:
      4.6.0