Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
agora::rtc::WatermarkBuffer Struct Reference

`#include <AgoraBase.h>`

## Public Member Functions
| WatermarkBuffer ()

## Public Attributes
int | width
int | height
int | length
media::base::VIDEO_PIXEL_FORMAT | format
const uint8_t * | buffer

## Detailed Description

Since
  4.6.0

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

## Constructor & Destructor Documentation

## ◆ WatermarkBuffer()

agora::rtc::WatermarkBuffer::WatermarkBuffer | ( |  | ) |
| inline

## 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.