|
Agora Java API Reference for Android
|
Configures the format, size, and pixel buffer of the watermark image. More...
Public Member Functions | |
| ByteBuffer | getBuffer () |
| Retrieves the buffer of the watermark image. More... | |
| int | getWidth () |
| Gets the width of the watermark image. More... | |
| int | getHeight () |
| Gets the height of the watermark image. More... | |
| int | getFormat () |
| Retrieves the format of the watermark image. More... | |
Public Attributes | |
| ByteBuffer | buffer |
| int | width |
| int | height |
| int | format |
Static Public Attributes | |
| static final int | WATERMARK_BUFFER_FORMAT_I420 = 1 |
| static final int | WATERMARK_BUFFER_FORMAT_BGRA = 2 |
| static final int | WATERMARK_BUFFER_FORMAT_NV21 = 3 |
| static final int | WATERMARK_BUFFER_FORMAT_RGBA = 4 |
Configures the format, size, and pixel buffer of the watermark image.
Defines the buffer data structure of the watermark image, including image width, height, format, length, and image data buffer.
| ByteBuffer io.agora.rtc2.video.WatermarkBuffer.getBuffer | ( | ) |
Retrieves the buffer of the watermark image.
This method is used to retrieve the buffer of the watermark image or the watermark image data buffer.
ByteBuffer object containing the watermark image data if the method call succeeds. | int io.agora.rtc2.video.WatermarkBuffer.getWidth | ( | ) |
Gets the width of the watermark image.
Used to get the width of the watermark image.
| int io.agora.rtc2.video.WatermarkBuffer.getHeight | ( | ) |
Gets the height of the watermark image.
Used to get the height of the watermark image.
| int io.agora.rtc2.video.WatermarkBuffer.getFormat | ( | ) |
Retrieves the format of the watermark image.
Used to retrieve the format of the watermark image.
|
static |
Specifies the watermark buffer format as I420.
|
static |
Specifies the watermark buffer format as BGRA.
|
static |
Specifies the watermark buffer format as NV21.
|
static |
Specifies the watermark buffer format as RGBA.
| ByteBuffer io.agora.rtc2.video.WatermarkBuffer.buffer |
Stores the watermark image data.
| int io.agora.rtc2.video.WatermarkBuffer.width |
Width of the watermark buffer, in pixels.
| int io.agora.rtc2.video.WatermarkBuffer.height |
Height of the watermark buffer, in pixels.
| int io.agora.rtc2.video.WatermarkBuffer.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.
1.8.18