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;
};
- Since
- Available since v4.6.0.
Properties
- width
- Width of the watermark image in pixels.
- height
- Height of the watermark image in pixels.
- length
- Length of the watermark image buffer in bytes.
- format
- Pixel format of the watermark image. See VIDEO_PIXEL_FORMAT. The default value is
VIDEO_PIXEL_I420. Supported formats include:VIDEO_PIXEL_I420,VIDEO_PIXEL_RGBA,VIDEO_PIXEL_BGRA, andVIDEO_PIXEL_NV21. - buffer
- Pixel buffer data of the watermark image.