Agora Java API Reference for Android
Public Attributes | List of all members
agora::rtc::WatermarkBuffer Struct Reference

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

#include <AgoraBase.h>

Public Attributes

int width
 
int height
 
int length
 
media::base::VIDEO_PIXEL_FORMAT format
 
const uint8_t * buffer
 

Detailed Description

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

Since
4.6.0

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

Member Data Documentation

◆ width

int agora::rtc::WatermarkBuffer::width

Width of the watermark buffer, in pixels.

◆ height

int agora::rtc::WatermarkBuffer::height

Height of the watermark buffer, in pixels.

◆ length

int agora::rtc::WatermarkBuffer::length

Length of the watermark buffer, in bytes.

◆ format

media::base::VIDEO_PIXEL_FORMAT agora::rtc::WatermarkBuffer::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

const uint8_t* agora::rtc::WatermarkBuffer::buffer

Buffer data of the watermark.