WatermarkBuffer

Used to configure the format, dimensions, and pixel buffer of a watermark image.

    public class WatermarkBuffer
    {
        public int width;

        public int height;

        public int length;

        public VIDEO_PIXEL_FORMAT format;

        public IntPtr buffer;

        public WatermarkBuffer()
        {
            this.buffer = IntPtr.Zero;
            this.width = 0;
            this.height = 0;
            this.length = 0;
            this.format = VIDEO_PIXEL_FORMAT.VIDEO_PIXEL_I420;
        }

        public WatermarkBuffer(int width, int height, int length, VIDEO_PIXEL_FORMAT format, IntPtr buffer)
        {
            this.width = width;
            this.height = height;
            this.length = length;
            this.format = format;
            this.buffer = buffer;
        }
    }
Since
Available since v4.6.2.

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. Default is VIDEO_PIXEL_I420. Currently supported formats include: VIDEO_PIXEL_I420, VIDEO_PIXEL_RGBA, VIDEO_PIXEL_BGRA, and VIDEO_PIXEL_NV21.
buffer
Pixel buffer data of the watermark image.