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 watermark image data.
    • width

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

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

      public int format
      Format of the watermark image: - `WATERMARK_BUFFER_FORMAT_I420`: I420 format. - `WATERMARK_BUFFER_FORMAT_BGRA`: BGRA format. - `WATERMARK_BUFFER_FORMAT_NV21`: NV21 format. - `WATERMARK_BUFFER_FORMAT_RGBA`: RGBA format.
  • Constructor Details

    • WatermarkBuffer

      public WatermarkBuffer()
  • Method Details

    • getBuffer

      public ByteBuffer getBuffer()
      Returns:
      Returns a `ByteBuffer` object containing the watermark image data if the method call succeeds.
      Since:
      4.6.0
    • getWidth

      public int getWidth()
      Returns:
      When the method call succeeds, it returns the width of the watermark image in pixels.
      Since:
      4.6.0
    • getHeight

      public int getHeight()
      Returns:
      If the method call succeeds, it returns the height of the watermark image in pixels.
      Since:
      4.6.0
    • getFormat

      public int getFormat()
      Returns:
      If the method call succeeds, it returns the format of the watermark image buffer.
      Since:
      4.6.0