Package io.agora.rtc2.video
Class WatermarkBuffer
java.lang.Object
io.agora.rtc2.video.WatermarkBuffer
- Since:
- 4.6.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionStores the watermark image data.intFormat of the watermark image: - `WATERMARK_BUFFER_FORMAT_I420`: I420 format.intHeight of the watermark buffer, in pixels.static final intSpecifies the watermark buffer format as BGRA.static final intSpecifies the watermark buffer format as I420.static final intSpecifies the watermark buffer format as NV21.static final intSpecifies the watermark buffer format as RGBA.intWidth of the watermark buffer, in pixels. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WATERMARK_BUFFER_FORMAT_I420
public static final int WATERMARK_BUFFER_FORMAT_I420Specifies the watermark buffer format as I420.- See Also:
-
WATERMARK_BUFFER_FORMAT_BGRA
public static final int WATERMARK_BUFFER_FORMAT_BGRASpecifies the watermark buffer format as BGRA.- See Also:
-
WATERMARK_BUFFER_FORMAT_NV21
public static final int WATERMARK_BUFFER_FORMAT_NV21Specifies the watermark buffer format as NV21.- See Also:
-
WATERMARK_BUFFER_FORMAT_RGBA
public static final int WATERMARK_BUFFER_FORMAT_RGBASpecifies the watermark buffer format as RGBA.- See Also:
-
buffer
Stores the watermark image data. -
width
public int widthWidth of the watermark buffer, in pixels. -
height
public int heightHeight of the watermark buffer, in pixels. -
format
public int formatFormat 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
- 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
-