\hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer}{}\doxysection{io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer Class Reference}
\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer}\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}


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


\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
Byte\+Buffer \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a733431c0acda4b81cf86635965366254}{get\+Buffer}} ()
\begin{DoxyCompactList}\small\item\em Retrieves the buffer of the watermark image. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_aba28a54aa7b5a4153f4c6451af047223}{get\+Width}} ()
\begin{DoxyCompactList}\small\item\em Gets the width of the watermark image. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a9af466ebed775ebc2dac38a268e7ae15}{get\+Height}} ()
\begin{DoxyCompactList}\small\item\em Gets the height of the watermark image. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_af66a7c1693664f1ee048e1d4b1b6d70c}{get\+Format}} ()
\begin{DoxyCompactList}\small\item\em Retrieves the format of the watermark image. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
Byte\+Buffer \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_aea3570e05bdd37f385ba5f005e3a6564}{buffer}}
\item 
int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a81d6dfaefc11b0c25c1cf64065b86e46}{width}}
\item 
int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a4d24f0243192abaa61f03dab07dd631c}{height}}
\item 
int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a4906c3e5559ddd49cefad2298073399d}{format}}
\end{DoxyCompactItemize}
\doxysubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static final int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a2efb55449d334ea28d2a4bd0b4eae81e}{W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+I420}} = 1
\item 
static final int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_ab4f73d115f53c4c8e460c367aea3dd25}{W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+B\+G\+RA}} = 2
\item 
static final int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_aa9a0dbdede4544f5c22d490b6f17f434}{W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+N\+V21}} = 3
\item 
static final int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_afeac7b80ab2cea64713a80a3d134981c}{W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+R\+G\+BA}} = 4
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Configures the format, size, and pixel buffer of the watermark image. 

\begin{DoxySince}{Since}
4.\+6.\+0
\end{DoxySince}
Defines the buffer data structure of the watermark image, including image width, height, format, length, and image data buffer. 

\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a733431c0acda4b81cf86635965366254}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a733431c0acda4b81cf86635965366254}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!getBuffer@{getBuffer}}
\index{getBuffer@{getBuffer}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{getBuffer()}{getBuffer()}}
{\footnotesize\ttfamily Byte\+Buffer io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+get\+Buffer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Retrieves the buffer of the watermark image. 

\begin{DoxySince}{Since}
4.\+6.\+0
\end{DoxySince}
This method is used to retrieve the buffer of the watermark image or the watermark image data buffer.

\begin{DoxyReturn}{Returns}
Returns a {\ttfamily Byte\+Buffer} object containing the watermark image data if the method call succeeds. 
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_aba28a54aa7b5a4153f4c6451af047223}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_aba28a54aa7b5a4153f4c6451af047223}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!getWidth@{getWidth}}
\index{getWidth@{getWidth}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{getWidth()}{getWidth()}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+get\+Width (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Gets the width of the watermark image. 

\begin{DoxySince}{Since}
4.\+6.\+0
\end{DoxySince}
Used to get the width of the watermark image.

\begin{DoxyReturn}{Returns}
When the method call succeeds, it returns the width of the watermark image in pixels. 
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a9af466ebed775ebc2dac38a268e7ae15}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a9af466ebed775ebc2dac38a268e7ae15}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!getHeight@{getHeight}}
\index{getHeight@{getHeight}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{getHeight()}{getHeight()}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+get\+Height (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Gets the height of the watermark image. 

\begin{DoxySince}{Since}
4.\+6.\+0
\end{DoxySince}
Used to get the height of the watermark image.

\begin{DoxyReturn}{Returns}
If the method call succeeds, it returns the height of the watermark image in pixels. 
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_af66a7c1693664f1ee048e1d4b1b6d70c}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_af66a7c1693664f1ee048e1d4b1b6d70c}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!getFormat@{getFormat}}
\index{getFormat@{getFormat}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{getFormat()}{getFormat()}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+get\+Format (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Retrieves the format of the watermark image. 

\begin{DoxySince}{Since}
4.\+6.\+0
\end{DoxySince}
Used to retrieve the format of the watermark image.

\begin{DoxyReturn}{Returns}
If the method call succeeds, it returns the format of the watermark image buffer. 
\end{DoxyReturn}


\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a2efb55449d334ea28d2a4bd0b4eae81e}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a2efb55449d334ea28d2a4bd0b4eae81e}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!WATERMARK\_BUFFER\_FORMAT\_I420@{WATERMARK\_BUFFER\_FORMAT\_I420}}
\index{WATERMARK\_BUFFER\_FORMAT\_I420@{WATERMARK\_BUFFER\_FORMAT\_I420}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{WATERMARK\_BUFFER\_FORMAT\_I420}{WATERMARK\_BUFFER\_FORMAT\_I420}}
{\footnotesize\ttfamily final int io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+I420 = 1\hspace{0.3cm}{\ttfamily [static]}}

Specifies the watermark buffer format as I420. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_ab4f73d115f53c4c8e460c367aea3dd25}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_ab4f73d115f53c4c8e460c367aea3dd25}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!WATERMARK\_BUFFER\_FORMAT\_BGRA@{WATERMARK\_BUFFER\_FORMAT\_BGRA}}
\index{WATERMARK\_BUFFER\_FORMAT\_BGRA@{WATERMARK\_BUFFER\_FORMAT\_BGRA}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{WATERMARK\_BUFFER\_FORMAT\_BGRA}{WATERMARK\_BUFFER\_FORMAT\_BGRA}}
{\footnotesize\ttfamily final int io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+B\+G\+RA = 2\hspace{0.3cm}{\ttfamily [static]}}

Specifies the watermark buffer format as B\+G\+RA. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_aa9a0dbdede4544f5c22d490b6f17f434}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_aa9a0dbdede4544f5c22d490b6f17f434}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!WATERMARK\_BUFFER\_FORMAT\_NV21@{WATERMARK\_BUFFER\_FORMAT\_NV21}}
\index{WATERMARK\_BUFFER\_FORMAT\_NV21@{WATERMARK\_BUFFER\_FORMAT\_NV21}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{WATERMARK\_BUFFER\_FORMAT\_NV21}{WATERMARK\_BUFFER\_FORMAT\_NV21}}
{\footnotesize\ttfamily final int io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+N\+V21 = 3\hspace{0.3cm}{\ttfamily [static]}}

Specifies the watermark buffer format as N\+V21. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_afeac7b80ab2cea64713a80a3d134981c}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_afeac7b80ab2cea64713a80a3d134981c}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!WATERMARK\_BUFFER\_FORMAT\_RGBA@{WATERMARK\_BUFFER\_FORMAT\_RGBA}}
\index{WATERMARK\_BUFFER\_FORMAT\_RGBA@{WATERMARK\_BUFFER\_FORMAT\_RGBA}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{WATERMARK\_BUFFER\_FORMAT\_RGBA}{WATERMARK\_BUFFER\_FORMAT\_RGBA}}
{\footnotesize\ttfamily final int io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+R\+G\+BA = 4\hspace{0.3cm}{\ttfamily [static]}}

Specifies the watermark buffer format as R\+G\+BA. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_aea3570e05bdd37f385ba5f005e3a6564}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_aea3570e05bdd37f385ba5f005e3a6564}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!buffer@{buffer}}
\index{buffer@{buffer}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{buffer}{buffer}}
{\footnotesize\ttfamily Byte\+Buffer io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+buffer}

Stores the watermark image data. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a81d6dfaefc11b0c25c1cf64065b86e46}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a81d6dfaefc11b0c25c1cf64065b86e46}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!width@{width}}
\index{width@{width}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{width}{width}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+width}

Width of the watermark buffer, in pixels. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a4d24f0243192abaa61f03dab07dd631c}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a4d24f0243192abaa61f03dab07dd631c}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!height@{height}}
\index{height@{height}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{height}{height}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+height}

Height of the watermark buffer, in pixels. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a4906c3e5559ddd49cefad2298073399d}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_buffer_a4906c3e5559ddd49cefad2298073399d}} 
\index{io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}!format@{format}}
\index{format@{format}!io.agora.rtc2.video.WatermarkBuffer@{io.agora.rtc2.video.WatermarkBuffer}}
\doxysubsubsection{\texorpdfstring{format}{format}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+Watermark\+Buffer.\+format}

Format of the watermark image\+:
\begin{DoxyItemize}
\item {\ttfamily W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+I420}\+: I420 format.
\item {\ttfamily W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+B\+G\+RA}\+: B\+G\+RA format.
\item {\ttfamily W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+N\+V21}\+: N\+V21 format.
\item {\ttfamily W\+A\+T\+E\+R\+M\+A\+R\+K\+\_\+\+B\+U\+F\+F\+E\+R\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+R\+G\+BA}\+: R\+G\+BA format. 
\end{DoxyItemize}