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 image data of the watermark.intThe format of the watermark buffer.intThe height 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.intThe width 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 image data of the watermark. -
width
public int widthThe width of the watermark buffer in pixels. -
height
public int heightThe height of the watermark buffer in pixels. -
format
public int formatThe format of the watermark buffer. The format can beWATERMARK_BUFFER_FORMAT_I420,WATERMARK_BUFFER_FORMAT_BGRA,WATERMARK_BUFFER_FORMAT_NV21, orWATERMARK_BUFFER_FORMAT_RGBA.
-
-
Constructor Details
-
WatermarkBuffer
public WatermarkBuffer()
-
-
Method Details
-
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
-