WatermarkBuffer
Configures the format, size, and pixel buffer of the watermark image.
public class WatermarkBuffer {
public final static int WATERMARK_BUFFER_FORMAT_I420 = 1;
public final static int WATERMARK_BUFFER_FORMAT_BGRA = 2;
public final static int WATERMARK_BUFFER_FORMAT_NV21 = 3;
public final static int WATERMARK_BUFFER_FORMAT_RGBA = 4;
public ByteBuffer buffer;
public int width;
public int height;
public int format;
}
- Since
- Added since v4.6.0.
Defines the buffer data structure for the watermark image.
Properties
- WATERMARK_BUFFER_FORMAT_I420
- Specifies the watermark buffer format as I420.
- WATERMARK_BUFFER_FORMAT_BGRA
- Specifies the watermark buffer format as BGRA.
- WATERMARK_BUFFER_FORMAT_NV21
- Specifies the watermark buffer format as NV21.
- WATERMARK_BUFFER_FORMAT_RGBA
- Specifies the watermark buffer format as RGBA.
- buffer
- Stores the pixel data of the watermark image. See
ByteBuffer. - width
- The width of the watermark image in pixels.
- height
- The height of the watermark image in pixels.
- format
- The 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.