|
Agora Java API Reference for Android
|
Defines the properties of a watermark buffer. More...
Public Member Functions | |
| ByteBuffer | getBuffer () |
| Gets the watermark image buffer. More... | |
| int | getWidth () |
| Gets the width of the watermark image. More... | |
| int | getHeight () |
| Gets the height of the watermark image. More... | |
| int | getFormat () |
| Gets 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 |
Defines the properties of a watermark buffer.
This class is used to configure the watermark image data, including its format, size, and pixel buffer.
| ByteBuffer io.agora.rtc2.video.WatermarkBuffer.getBuffer | ( | ) |
Gets the watermark image buffer.
| int io.agora.rtc2.video.WatermarkBuffer.getWidth | ( | ) |
Gets the width of the watermark image.
| int io.agora.rtc2.video.WatermarkBuffer.getHeight | ( | ) |
Gets the height of the watermark image.
| int io.agora.rtc2.video.WatermarkBuffer.getFormat | ( | ) |
Gets 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 image data of the watermark.
| int io.agora.rtc2.video.WatermarkBuffer.width |
The width of the watermark buffer in pixels.
| int io.agora.rtc2.video.WatermarkBuffer.height |
The height of the watermark buffer in pixels.
| int io.agora.rtc2.video.WatermarkBuffer.format |
The format of the watermark buffer. The format can be WATERMARK_BUFFER_FORMAT_I420, WATERMARK_BUFFER_FORMAT_BGRA, WATERMARK_BUFFER_FORMAT_NV21, or WATERMARK_BUFFER_FORMAT_RGBA.
1.8.18