WatermarkBuffer

Configures the format, size, and pixel buffer of the watermark image.

struct WatermarkBuffer {
  int width;
  int height;
  int length;
  media::base::VIDEO_PIXEL_FORMAT format;
  const uint8_t* buffer;
  WatermarkBuffer() : buffer(NULL), width(0), height(0), length(0), format(media::base::VIDEO_PIXEL_I420) {}
};
Since:
Available since v4.6.0.

Defines the buffer data structure of the watermark image, including image width, height, format, length, and image data buffer.

Attributes

width
Width of the watermark buffer, in pixels.
height
Height of the watermark buffer, in pixels.
length
Length of the watermark buffer, in bytes.
format
Format of the watermark buffer. See VIDEO_PIXEL_FORMAT. Default is VIDEO_PIXEL_I420. Currently supported formats include: VIDEO_PIXEL_I420, VIDEO_PIXEL_RGBA, VIDEO_PIXEL_BGRA, and VIDEO_PIXEL_NV21.
buffer
Buffer data of the watermark.