\hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer}{}\doxysection{io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer Interface Reference}
\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer}\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
boolean \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a9a115083a5246f01d3abcb609ff0b1ae}{on\+Capture\+Video\+Frame}} (int source\+Type, Video\+Frame video\+Frame)
\begin{DoxyCompactList}\small\item\em Occurs each time the S\+DK receives a video frame captured by local devices. \end{DoxyCompactList}\item 
boolean \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_ab697551dcdd837900d64746f5b3a6161}{on\+Pre\+Encode\+Video\+Frame}} (int source\+Type, Video\+Frame video\+Frame)
\begin{DoxyCompactList}\small\item\em Occurs each time the S\+DK receives a video frame before encoding. \end{DoxyCompactList}\item 
boolean \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_abb402bb2c8e85725b001f7393e28a486}{on\+Media\+Player\+Video\+Frame}} (Video\+Frame video\+Frame, int media\+Player\+Id)
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a98e92390c7d50a854aa7868b5a97d817}{get\+Video\+Frame\+Process\+Mode}} ()
\begin{DoxyCompactList}\small\item\em Occurs each time the S\+DK receives a video frame and prompts you to set the process mode of the video frame. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a46a874d8e269454e84580b1023a26c70}{get\+Video\+Format\+Preference}} ()
\begin{DoxyCompactList}\small\item\em Sets the format of the raw video data output by the S\+DK. \end{DoxyCompactList}\item 
boolean \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a77ee79557acb9ade1943882fafff8918}{get\+Rotation\+Applied}} ()
\begin{DoxyCompactList}\small\item\em Occurs each time the S\+DK receives a video frame, and prompts you whether to rotate the captured video. \end{DoxyCompactList}\item 
boolean \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_afc2ee39691b615d951f137a9a870a39b}{get\+Mirror\+Applied}} ()
\begin{DoxyCompactList}\small\item\em Occurs each time the S\+DK receives a video frame and prompts you whether or not to mirror the captured video. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a7f71e65d31650e8993d29c8a4c77bd17}{get\+Observed\+Frame\+Position}} ()
\begin{DoxyCompactList}\small\item\em Sets the frame position for the video observer. \end{DoxyCompactList}\item 
boolean \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a474ba4331a77ec324f07c4ebf4f41668}{on\+Render\+Video\+Frame}} (String channel\+Id, int uid, Video\+Frame video\+Frame)
\begin{DoxyCompactList}\small\item\em Occurs each time the S\+DK receives a video frame sent by the remote user. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_af1fdfd8cac0cd23f7936779cf7549104}{P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+LY}} = 0
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_ace94b692f7cffd39a8931a8c0a174976}{P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+TE}} = 1
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a05a4e325a7526333a1ff31336872558d}{P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+O\+S\+T\+\_\+\+C\+A\+P\+T\+U\+R\+ER}} = 1
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_abb3b92026361e39e094cfa8d92d9d741}{P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+R\+E\+\_\+\+R\+E\+N\+D\+E\+R\+ER}} = 1 $<$$<$ 1
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_addc7f03c3354cbb434f13f06c7ff3777}{P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+R\+E\+\_\+\+E\+N\+C\+O\+D\+ER}} = 1 $<$$<$ 2
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a4297c1564a0e59ba64cbb3be5668ae9f}{V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+D\+E\+F\+A\+U\+LT}} = 0
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a1496f8865cb6e038526b73ee945e5a7d}{V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+I420}} = 1
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a1a643ba72d4ca877d3037fd5c253848b}{V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+B\+G\+RA}} = 2
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_acc49f5257f09f5fe70eb8a1301ac4e1c}{V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+N\+V21}} = 3
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a4a2b5b5bc3d448b2aa4929895741f9ac}{V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+R\+G\+BA}} = 4
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_adfa8784a7099839e8b7725c2a59f5119}{V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+N\+V12}} = 8
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a0e9239ed95fccb02418a9847aaf81484}{V\+I\+D\+E\+O\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+2D}} = 10
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a957aa1024d4fcff2569d78f04ed2292c}{V\+I\+D\+E\+O\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+\+O\+ES}} = 11
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a971a417ad8b65ed16bde2fce0bc38743}{V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+I422}} = 16
\item 
int \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a74d814b27f4adca86a9bc35913a7acfa}{V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+I010}} = 18
\end{DoxyCompactItemize}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a9a115083a5246f01d3abcb609ff0b1ae}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a9a115083a5246f01d3abcb609ff0b1ae}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!onCaptureVideoFrame@{onCaptureVideoFrame}}
\index{onCaptureVideoFrame@{onCaptureVideoFrame}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{onCaptureVideoFrame()}{onCaptureVideoFrame()}}
{\footnotesize\ttfamily boolean io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+on\+Capture\+Video\+Frame (\begin{DoxyParamCaption}\item[{int}]{source\+Type,  }\item[{Video\+Frame}]{video\+Frame }\end{DoxyParamCaption})}



Occurs each time the S\+DK receives a video frame captured by local devices. 

You can get raw video data collected by the local device through this callback and preprocess it as needed. Once the preprocessing is complete, you can directly modify {\ttfamily video\+Frame} in this callback, and set the return value to {\ttfamily true} to send the modified video data to the S\+DK. If you need to send the preprocessed data to the S\+DK, you need to call {\ttfamily get\+Video\+Frame\+Process\+Mode} first to set the video processing mode to read and write mode ( P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+TE ). Applicable scenarios\+: -\/ Preprocess the locally collected video data before it is processed by the S\+DK. For example, get video data through this callback and process it with filters, watermarks, cropping, rotation, etc.
\begin{DoxyItemize}
\item Get information about the locally collected video data before it is processed by the S\+DK. For example, the original width, height, frame rate of the video frame, etc. Call timing\+: After the successful registration of the video data observer, each time the S\+DK captures a video frame.
\end{DoxyItemize}

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item If the video data type you get is R\+G\+BA, the S\+DK does not support processing the data of the alpha channel.
\item It is recommended that you ensure the modified parameters in {\ttfamily video\+Frame} are consistent with the actual situation of the video frames in the video frame buffer. Otherwise, it may cause unexpected rotation, distortion, and other issues in the local preview and remote video display. The default video format that you get from this callback may be I420\+Buffer or Texture\+Buffer. The texture format of Texture\+Buffer can be either 0ES format or R\+GB format. If you need video data in other formats, you can set the expected data format in the return value of the {\ttfamily get\+Video\+Format\+Preference} callback.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em source\+Type} & Video source types, including cameras, screens, or media player. See {\ttfamily Video\+Source\+Type}. \\
\hline
{\em video\+Frame} & The video frame. See {\ttfamily Video\+Frame}.Note\+: The default value of the video frame data format obtained through this callback is as follows\+:
\begin{DoxyItemize}
\item Android\+: I420 or R\+GB (G\+L\+E\+S20.\+G\+L\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+2D)
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item When the video processing mode is {\ttfamily P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+LY}\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Reserved for future use.
\item {\ttfamily false}\+: Reserved for future use.
\end{DoxyItemize}
\item When the video processing mode is {\ttfamily P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+TE}\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Sets the S\+DK to receive the video frame.
\item {\ttfamily false}\+: Sets the S\+DK to discard the video frame. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_ab697551dcdd837900d64746f5b3a6161}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_ab697551dcdd837900d64746f5b3a6161}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!onPreEncodeVideoFrame@{onPreEncodeVideoFrame}}
\index{onPreEncodeVideoFrame@{onPreEncodeVideoFrame}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{onPreEncodeVideoFrame()}{onPreEncodeVideoFrame()}}
{\footnotesize\ttfamily boolean io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+on\+Pre\+Encode\+Video\+Frame (\begin{DoxyParamCaption}\item[{int}]{source\+Type,  }\item[{Video\+Frame}]{video\+Frame }\end{DoxyParamCaption})}



Occurs each time the S\+DK receives a video frame before encoding. 

After you successfully register the video frame observer, the S\+DK triggers this callback each time it receives a video frame. In this callback, you can get the video data before encoding and then process the data according to your particular scenarios. After processing, you can send the processed video data back to the S\+DK in this callback.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item If you need to send the preprocessed data to the S\+DK, you need to call {\ttfamily get\+Video\+Frame\+Process\+Mode} first to set the video processing mode to read and write mode ( P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+TE ).
\item To get the video data captured from the second screen before encoding, you need to set {\ttfamily V\+I\+D\+E\+O\+\_\+\+M\+O\+D\+U\+L\+E\+\_\+\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+R\+E\+\_\+\+E\+N\+C\+O\+D\+ER} (1 $<$$<$ 2) as a frame position through {\ttfamily get\+Observed\+Frame\+Position}.
\item The video data that this callback gets has been preprocessed, with its content cropped and rotated, and the image enhanced.
\item It is recommended that you ensure the modified parameters in {\ttfamily video\+Frame} are consistent with the actual situation of the video frames in the video frame buffer. Otherwise, it may cause unexpected rotation, distortion, and other issues in the local preview and remote video display.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em source\+Type} & The type of the video source. See {\ttfamily Video\+Source\+Type}. \\
\hline
{\em video\+Frame} & The video frame. See {\ttfamily Video\+Frame}.Note\+: The default value of the video frame data format obtained through this callback is as follows\+:
\begin{DoxyItemize}
\item Android\+: I420 or R\+GB (G\+L\+E\+S20.\+G\+L\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+2D)
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item When the video processing mode is {\ttfamily P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+LY}\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Reserved for future use.
\item {\ttfamily false}\+: Reserved for future use.
\end{DoxyItemize}
\item When the video processing mode is {\ttfamily P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+TE}\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Sets the S\+DK to receive the video frame.
\item {\ttfamily false}\+: Sets the S\+DK to discard the video frame. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_abb402bb2c8e85725b001f7393e28a486}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_abb402bb2c8e85725b001f7393e28a486}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!onMediaPlayerVideoFrame@{onMediaPlayerVideoFrame}}
\index{onMediaPlayerVideoFrame@{onMediaPlayerVideoFrame}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{onMediaPlayerVideoFrame()}{onMediaPlayerVideoFrame()}}
{\footnotesize\ttfamily boolean io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+on\+Media\+Player\+Video\+Frame (\begin{DoxyParamCaption}\item[{Video\+Frame}]{video\+Frame,  }\item[{int}]{media\+Player\+Id }\end{DoxyParamCaption})}

Occurs each time the S\+DK receives a video frame decoded by the Media\+Player.

After you successfully register the video frame observer, the S\+DK triggers this callback each time a video frame is decoded. In this callback, you can get the video data decoded by the Media\+Player. You can then pre-\/process the data according to your scenarios.

After pre-\/processing, you can send the processed video data back to the S\+DK by setting the {\ttfamily video\+Frame} parameter in this callback.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item This callback will not be affected by the return values of \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a98e92390c7d50a854aa7868b5a97d817}{get\+Video\+Frame\+Process\+Mode}}, \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a77ee79557acb9ade1943882fafff8918}{get\+Rotation\+Applied}}, \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_afc2ee39691b615d951f137a9a870a39b}{get\+Mirror\+Applied}}, \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a7f71e65d31650e8993d29c8a4c77bd17}{get\+Observed\+Frame\+Position}}.
\item On Android, this callback is not affected by the return value of \mbox{\hyperlink{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a46a874d8e269454e84580b1023a26c70}{get\+Video\+Format\+Preference}}
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em video\+Frame} & A pointer to the video frame\+: Video\+Frame \\
\hline
{\em media\+Player\+Id} & of the media\+Player. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Determines whether to ignore the current video frame if the pre-\/processing fails\+:
\begin{DoxyItemize}
\item true\+: Do not ignore.
\item false\+: Ignore, in which case this method does not sent the current video frame to the S\+DK. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a98e92390c7d50a854aa7868b5a97d817}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a98e92390c7d50a854aa7868b5a97d817}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!getVideoFrameProcessMode@{getVideoFrameProcessMode}}
\index{getVideoFrameProcessMode@{getVideoFrameProcessMode}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{getVideoFrameProcessMode()}{getVideoFrameProcessMode()}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+get\+Video\+Frame\+Process\+Mode (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Occurs each time the S\+DK receives a video frame and prompts you to set the process mode of the video frame. 

After you successfully register the video frame observer, the S\+DK triggers this callback each time it receives a video frame. You need to set your preferred process mode in the return value of this callback.

\begin{DoxyReturn}{Returns}
The process mode of the video frame\+:
\begin{DoxyItemize}
\item P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+LY (0)\+: (Default) Only reads the video frame.
\item P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+TE (1)\+: Reads and writes the video frame. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a46a874d8e269454e84580b1023a26c70}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a46a874d8e269454e84580b1023a26c70}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!getVideoFormatPreference@{getVideoFormatPreference}}
\index{getVideoFormatPreference@{getVideoFormatPreference}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{getVideoFormatPreference()}{getVideoFormatPreference()}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+get\+Video\+Format\+Preference (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Sets the format of the raw video data output by the S\+DK. 

You need to register the callback when calling the {\ttfamily register\+Video\+Frame\+Observer} method. After you successfully register the video frame observer, the S\+DK triggers this callback each time it receives a video frame. You need to set your preferred video data in the return value of this callback.

\begin{DoxyNote}{Note}
The default types of pixel format ( V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+D\+E\+F\+A\+U\+LT ) for the raw video are as follows\+:
\begin{DoxyItemize}
\item On the Android platform, the default video frame type may be I420\+Buffer or Texture\+Buffer. The texture format of Texture\+Buffer type may be O\+ES or R\+GB. If the returned video frame type is V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+D\+E\+F\+A\+U\+LT when you call {\ttfamily get\+Video\+Format\+Preference}, you need to adapt to I420\+Buffer or Texture\+Buffer when processing video data. The cases where the video frame type is fixed as I420\+Buffer include but are not limited to\+:
\begin{DoxyItemize}
\item Specific devices, such as\+: LG G5 SE (H848), Google Pixel 4a, Samsung Galaxy A7, or Xiaomi Mi Max.
\item Image enhancement extension has been integrated and video noise reduction or low-\/light enhancement function has been enabled.
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyNote}
\begin{DoxyReturn}{Returns}
Sets the raw data format of the S\+DK output.
\begin{DoxyItemize}
\item V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+D\+E\+F\+A\+U\+LT (0)\+: Raw video.
\item V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+I420 (1)\+: I420.
\item V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+R\+G\+BA (4)\+: R\+G\+BA.
\item V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+I422 (16)\+: I422. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a77ee79557acb9ade1943882fafff8918}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a77ee79557acb9ade1943882fafff8918}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!getRotationApplied@{getRotationApplied}}
\index{getRotationApplied@{getRotationApplied}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{getRotationApplied()}{getRotationApplied()}}
{\footnotesize\ttfamily boolean io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+get\+Rotation\+Applied (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Occurs each time the S\+DK receives a video frame, and prompts you whether to rotate the captured video. 

If you want to rotate the captured video according to the {\ttfamily rotation} member in the {\ttfamily Video\+Frame} class, ensure that you register this callback when calling {\ttfamily register\+Video\+Frame\+Observer}. After you successfully register the video frame observer, the S\+DK triggers this callback each time it receives a video frame. You need to set whether to rotate the video frame in the return value of this callback.

\begin{DoxyNote}{Note}
On the Android platform, the supported video data formats for this callback are\+: I420, R\+G\+BA, and Texture.
\end{DoxyNote}
\begin{DoxyReturn}{Returns}
Sets whether to rotate the captured video\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Rotate the captured video.
\item {\ttfamily false}\+: (Default) Do not rotate the captured video. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_afc2ee39691b615d951f137a9a870a39b}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_afc2ee39691b615d951f137a9a870a39b}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!getMirrorApplied@{getMirrorApplied}}
\index{getMirrorApplied@{getMirrorApplied}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{getMirrorApplied()}{getMirrorApplied()}}
{\footnotesize\ttfamily boolean io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+get\+Mirror\+Applied (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Occurs each time the S\+DK receives a video frame and prompts you whether or not to mirror the captured video. 

If the video data you want to obtain is a mirror image of the original video, you need to register this callback when calling {\ttfamily register\+Video\+Frame\+Observer}. After you successfully register the video frame observer, the S\+DK triggers this callback each time it receives a video frame. You need to set whether or not to mirror the video frame in the return value of this callback.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item On the Android platform, the supported video data formats for this callback are\+: I420, R\+G\+BA, and Texture.
\item Both this method and the {\ttfamily set\+Video\+Encoder\+Configuration} method support setting the mirroring effect. Agora recommends that you only choose one method to set it up. Using both methods at the same time causes the mirroring effect to overlap, and the mirroring settings fail.
\end{DoxyItemize}
\end{DoxyNote}
\begin{DoxyReturn}{Returns}
Sets whether or not to mirror the captured video\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Mirror the captured video.
\item {\ttfamily false}\+: (Default) Do not mirror the captured video. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a7f71e65d31650e8993d29c8a4c77bd17}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a7f71e65d31650e8993d29c8a4c77bd17}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!getObservedFramePosition@{getObservedFramePosition}}
\index{getObservedFramePosition@{getObservedFramePosition}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{getObservedFramePosition()}{getObservedFramePosition()}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+get\+Observed\+Frame\+Position (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Sets the frame position for the video observer. 

After successfully registering the video data observer, the S\+DK uses this callback to determine whether to trigger {\ttfamily on\+Capture\+Video\+Frame}, {\ttfamily on\+Render\+Video\+Frame} and {\ttfamily on\+Pre\+Encode\+Video\+Frame} callback at each specific video frame processing position, so that you can observe the locally collected video data, the video data sent by the remote end, and the video data before encoding. You can set one or more positions you need to observe by modifying the return value according to your scenario\+:
\begin{DoxyItemize}
\item {\ttfamily V\+I\+D\+E\+O\+\_\+\+M\+O\+D\+U\+L\+E\+\_\+\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+O\+S\+T\+\_\+\+C\+A\+P\+T\+U\+R\+ER} (1 $<$$<$ 0)\+: The position after capturing the video data, which corresponds to the {\ttfamily on\+Capture\+Video\+Frame} callback.
\item {\ttfamily V\+I\+D\+E\+O\+\_\+\+M\+O\+D\+U\+L\+E\+\_\+\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+R\+E\+\_\+\+R\+E\+N\+D\+E\+R\+ER} (1 $<$$<$ 1)\+: The position of the received remote video data before rendering, which corresponds to the {\ttfamily on\+Render\+Video\+Frame} callback.
\item {\ttfamily V\+I\+D\+E\+O\+\_\+\+M\+O\+D\+U\+L\+E\+\_\+\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+R\+E\+\_\+\+E\+N\+C\+O\+D\+ER} (1 $<$$<$ 2)\+: The position before encoding the video data, which corresponds to the {\ttfamily on\+Pre\+Encode\+Video\+Frame} callback.
\end{DoxyItemize}

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Use \textquotesingle{}$\vert$\textquotesingle{} (the OR operator) to observe multiple frame positions.
\item This callback observes {\ttfamily V\+I\+D\+E\+O\+\_\+\+M\+O\+D\+U\+L\+E\+\_\+\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+O\+S\+T\+\_\+\+C\+A\+P\+T\+U\+R\+ER} (1 $<$$<$ 0) and {\ttfamily V\+I\+D\+E\+O\+\_\+\+M\+O\+D\+U\+L\+E\+\_\+\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+R\+E\+\_\+\+R\+E\+N\+D\+E\+R\+ER} (1 $<$$<$ 1) by default.
\item To conserve system resources, you can reduce the number of frame positions that you want to observe.
\item When the video processing mode is {\ttfamily P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+TE} and the observation position is set to {\ttfamily V\+I\+D\+E\+O\+\_\+\+M\+O\+D\+U\+L\+E\+\_\+\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+R\+E\+\_\+\+E\+N\+C\+O\+D\+ER} $\vert$ {\ttfamily V\+I\+D\+E\+O\+\_\+\+M\+O\+D\+U\+L\+E\+\_\+\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+O\+S\+T\+\_\+\+C\+A\+P\+T\+U\+R\+ER}, the {\ttfamily get\+Mirror\+Applied} does not take effect; you need to modify the video processing mode or the position of the observer.
\end{DoxyItemize}
\end{DoxyNote}
\begin{DoxyReturn}{Returns}
A bit mask that controls the frame position of the video observer.
\begin{DoxyItemize}
\item {\ttfamily V\+I\+D\+E\+O\+\_\+\+M\+O\+D\+U\+L\+E\+\_\+\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+O\+S\+T\+\_\+\+C\+A\+P\+T\+U\+R\+ER} (1 $<$$<$ 0)\+: The position after capturing the video data, which corresponds to the {\ttfamily on\+Capture\+Video\+Frame} callback.
\item {\ttfamily V\+I\+D\+E\+O\+\_\+\+M\+O\+D\+U\+L\+E\+\_\+\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+R\+E\+\_\+\+R\+E\+N\+D\+E\+R\+ER} (1 $<$$<$ 1)\+: The position of the received remote video data before rendering, which corresponds to the {\ttfamily on\+Render\+Video\+Frame} callback.
\item {\ttfamily V\+I\+D\+E\+O\+\_\+\+M\+O\+D\+U\+L\+E\+\_\+\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+R\+E\+\_\+\+E\+N\+C\+O\+D\+ER} (1 $<$$<$ 2)\+: The position before encoding the video data, which corresponds to the {\ttfamily on\+Pre\+Encode\+Video\+Frame} callback. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a474ba4331a77ec324f07c4ebf4f41668}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a474ba4331a77ec324f07c4ebf4f41668}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!onRenderVideoFrame@{onRenderVideoFrame}}
\index{onRenderVideoFrame@{onRenderVideoFrame}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{onRenderVideoFrame()}{onRenderVideoFrame()}}
{\footnotesize\ttfamily boolean io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+on\+Render\+Video\+Frame (\begin{DoxyParamCaption}\item[{String}]{channel\+Id,  }\item[{int}]{uid,  }\item[{Video\+Frame}]{video\+Frame }\end{DoxyParamCaption})}



Occurs each time the S\+DK receives a video frame sent by the remote user. 

After you successfully register the video frame observer, the S\+DK triggers this callback each time it receives a video frame. In this callback, you can get the video data sent from the remote end before rendering, and then process it according to the particular scenarios. The default video format that you get from this callback may be I420\+Buffer or Texture\+Buffer. The texture format of Texture\+Buffer can be either 0ES format or R\+GB format. If you need video data in other formats, you can set the expected data format in the return value of the {\ttfamily get\+Video\+Format\+Preference} callback.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item If you need to send the preprocessed data to the S\+DK, you need to call {\ttfamily get\+Video\+Frame\+Process\+Mode} first to set the video processing mode to read and write mode ( P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+TE ).
\item If the video data type you get is R\+G\+BA, the S\+DK does not support processing the data of the alpha channel.
\item It is recommended that you ensure the modified parameters in {\ttfamily video\+Frame} are consistent with the actual situation of the video frames in the video frame buffer. Otherwise, it may cause unexpected rotation, distortion, and other issues in the local preview and remote video display.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user who sends the current video frame. \\
\hline
{\em video\+Frame} & The video frame. See {\ttfamily Video\+Frame}.Note\+: The default value of the video frame data format obtained through this callback is as follows\+:
\begin{DoxyItemize}
\item Android\+: I420 or R\+GB (G\+L\+E\+S20.\+G\+L\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+2D) 
\end{DoxyItemize}\\
\hline
{\em channel\+Id} & The channel ID.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item When the video processing mode is {\ttfamily P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+LY}\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Reserved for future use.
\item {\ttfamily false}\+: Reserved for future use.
\end{DoxyItemize}
\item When the video processing mode is {\ttfamily P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+TE}\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Sets the S\+DK to receive the video frame.
\item {\ttfamily false}\+: Sets the S\+DK to discard the video frame. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}


\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_af1fdfd8cac0cd23f7936779cf7549104}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_af1fdfd8cac0cd23f7936779cf7549104}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!PROCESS\_MODE\_READ\_ONLY@{PROCESS\_MODE\_READ\_ONLY}}
\index{PROCESS\_MODE\_READ\_ONLY@{PROCESS\_MODE\_READ\_ONLY}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{PROCESS\_MODE\_READ\_ONLY}{PROCESS\_MODE\_READ\_ONLY}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+LY = 0}

Observer works as a pure renderer and will not modify the original frame. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_ace94b692f7cffd39a8931a8c0a174976}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_ace94b692f7cffd39a8931a8c0a174976}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!PROCESS\_MODE\_READ\_WRITE@{PROCESS\_MODE\_READ\_WRITE}}
\index{PROCESS\_MODE\_READ\_WRITE@{PROCESS\_MODE\_READ\_WRITE}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{PROCESS\_MODE\_READ\_WRITE}{PROCESS\_MODE\_READ\_WRITE}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+P\+R\+O\+C\+E\+S\+S\+\_\+\+M\+O\+D\+E\+\_\+\+R\+E\+A\+D\+\_\+\+W\+R\+I\+TE = 1}

Observer works as a filter that will process the video frame and affect the following frame processing in S\+DK. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a05a4e325a7526333a1ff31336872558d}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a05a4e325a7526333a1ff31336872558d}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!POSITION\_POST\_CAPTURER@{POSITION\_POST\_CAPTURER}}
\index{POSITION\_POST\_CAPTURER@{POSITION\_POST\_CAPTURER}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{POSITION\_POST\_CAPTURER}{POSITION\_POST\_CAPTURER}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+O\+S\+T\+\_\+\+C\+A\+P\+T\+U\+R\+ER = 1}

The position after capturing the video data, which corresponds to the on\+Capture\+Video\+Frame callback. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_abb3b92026361e39e094cfa8d92d9d741}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_abb3b92026361e39e094cfa8d92d9d741}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!POSITION\_PRE\_RENDERER@{POSITION\_PRE\_RENDERER}}
\index{POSITION\_PRE\_RENDERER@{POSITION\_PRE\_RENDERER}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{POSITION\_PRE\_RENDERER}{POSITION\_PRE\_RENDERER}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+R\+E\+\_\+\+R\+E\+N\+D\+E\+R\+ER = 1 $<$$<$ 1}

The position before receiving the remote video data, which corresponds to the on\+Render\+Video\+Frame callback. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_addc7f03c3354cbb434f13f06c7ff3777}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_addc7f03c3354cbb434f13f06c7ff3777}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!POSITION\_PRE\_ENCODER@{POSITION\_PRE\_ENCODER}}
\index{POSITION\_PRE\_ENCODER@{POSITION\_PRE\_ENCODER}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{POSITION\_PRE\_ENCODER}{POSITION\_PRE\_ENCODER}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+P\+O\+S\+I\+T\+I\+O\+N\+\_\+\+P\+R\+E\+\_\+\+E\+N\+C\+O\+D\+ER = 1 $<$$<$ 2}

The position before encoding the video data, which corresponds to the on\+Pre\+Encode\+Video\+Frame callback. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a4297c1564a0e59ba64cbb3be5668ae9f}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a4297c1564a0e59ba64cbb3be5668ae9f}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!VIDEO\_PIXEL\_DEFAULT@{VIDEO\_PIXEL\_DEFAULT}}
\index{VIDEO\_PIXEL\_DEFAULT@{VIDEO\_PIXEL\_DEFAULT}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{VIDEO\_PIXEL\_DEFAULT}{VIDEO\_PIXEL\_DEFAULT}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+D\+E\+F\+A\+U\+LT = 0}

0\+: Default format. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a1496f8865cb6e038526b73ee945e5a7d}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a1496f8865cb6e038526b73ee945e5a7d}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!VIDEO\_PIXEL\_I420@{VIDEO\_PIXEL\_I420}}
\index{VIDEO\_PIXEL\_I420@{VIDEO\_PIXEL\_I420}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{VIDEO\_PIXEL\_I420}{VIDEO\_PIXEL\_I420}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+I420 = 1}

1\+: I420. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a1a643ba72d4ca877d3037fd5c253848b}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a1a643ba72d4ca877d3037fd5c253848b}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!VIDEO\_PIXEL\_BGRA@{VIDEO\_PIXEL\_BGRA}}
\index{VIDEO\_PIXEL\_BGRA@{VIDEO\_PIXEL\_BGRA}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{VIDEO\_PIXEL\_BGRA}{VIDEO\_PIXEL\_BGRA}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+B\+G\+RA = 2}

2\+: B\+G\+RA. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_acc49f5257f09f5fe70eb8a1301ac4e1c}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_acc49f5257f09f5fe70eb8a1301ac4e1c}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!VIDEO\_PIXEL\_NV21@{VIDEO\_PIXEL\_NV21}}
\index{VIDEO\_PIXEL\_NV21@{VIDEO\_PIXEL\_NV21}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{VIDEO\_PIXEL\_NV21}{VIDEO\_PIXEL\_NV21}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+N\+V21 = 3}

3\+: N\+V21. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a4a2b5b5bc3d448b2aa4929895741f9ac}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a4a2b5b5bc3d448b2aa4929895741f9ac}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!VIDEO\_PIXEL\_RGBA@{VIDEO\_PIXEL\_RGBA}}
\index{VIDEO\_PIXEL\_RGBA@{VIDEO\_PIXEL\_RGBA}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{VIDEO\_PIXEL\_RGBA}{VIDEO\_PIXEL\_RGBA}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+R\+G\+BA = 4}

4\+: R\+G\+BA. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_adfa8784a7099839e8b7725c2a59f5119}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_adfa8784a7099839e8b7725c2a59f5119}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!VIDEO\_PIXEL\_NV12@{VIDEO\_PIXEL\_NV12}}
\index{VIDEO\_PIXEL\_NV12@{VIDEO\_PIXEL\_NV12}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{VIDEO\_PIXEL\_NV12}{VIDEO\_PIXEL\_NV12}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+N\+V12 = 8}

8\+: N\+V12. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a0e9239ed95fccb02418a9847aaf81484}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a0e9239ed95fccb02418a9847aaf81484}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!VIDEO\_TEXTURE\_2D@{VIDEO\_TEXTURE\_2D}}
\index{VIDEO\_TEXTURE\_2D@{VIDEO\_TEXTURE\_2D}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{VIDEO\_TEXTURE\_2D}{VIDEO\_TEXTURE\_2D}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+V\+I\+D\+E\+O\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+2D = 10}

10\+: G\+L\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+2D \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a957aa1024d4fcff2569d78f04ed2292c}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a957aa1024d4fcff2569d78f04ed2292c}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!VIDEO\_TEXTURE\_OES@{VIDEO\_TEXTURE\_OES}}
\index{VIDEO\_TEXTURE\_OES@{VIDEO\_TEXTURE\_OES}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{VIDEO\_TEXTURE\_OES}{VIDEO\_TEXTURE\_OES}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+V\+I\+D\+E\+O\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+\+O\+ES = 11}

11\+: G\+L\+\_\+\+T\+E\+X\+T\+U\+R\+E\+\_\+\+O\+ES \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a971a417ad8b65ed16bde2fce0bc38743}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a971a417ad8b65ed16bde2fce0bc38743}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!VIDEO\_PIXEL\_I422@{VIDEO\_PIXEL\_I422}}
\index{VIDEO\_PIXEL\_I422@{VIDEO\_PIXEL\_I422}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{VIDEO\_PIXEL\_I422}{VIDEO\_PIXEL\_I422}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+I422 = 16}

16\+: I422. \mbox{\Hypertarget{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a74d814b27f4adca86a9bc35913a7acfa}\label{interfaceio_1_1agora_1_1rtc2_1_1video_1_1_i_video_frame_observer_a74d814b27f4adca86a9bc35913a7acfa}} 
\index{io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}!VIDEO\_PIXEL\_I010@{VIDEO\_PIXEL\_I010}}
\index{VIDEO\_PIXEL\_I010@{VIDEO\_PIXEL\_I010}!io.agora.rtc2.video.IVideoFrameObserver@{io.agora.rtc2.video.IVideoFrameObserver}}
\doxysubsubsection{\texorpdfstring{VIDEO\_PIXEL\_I010}{VIDEO\_PIXEL\_I010}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+I\+Video\+Frame\+Observer.\+V\+I\+D\+E\+O\+\_\+\+P\+I\+X\+E\+L\+\_\+\+I010 = 18}

18\+: I010. 10bit I420 data. @technical preview 