Agora Java API Reference for Android
|
#include <NGIAgoraMediaNode.h>
Public Member Functions | |
virtual void | setEnabled (bool enable) |
virtual bool | isEnabled () |
virtual int | setProperty (const char *key, const void *buf, size_t buf_size) |
virtual int | getProperty (const char *key, void *buf, size_t buf_size) |
virtual bool | onDataStreamWillStart () |
virtual void | onDataStreamWillStop () |
virtual bool | isExternal () |
virtual bool | isExtensionFilter () |
![]() | |
virtual bool | adaptVideoFrame (const media::base::VideoFrame &capturedFrame, media::base::VideoFrame &adaptedFrame)=0 |
![]() | |
virtual void | AddRef () const =0 |
virtual RefCountReleaseStatus | Release () const =0 |
virtual bool | HasOneRef () const =0 |
The IVideoFilter class.
This class is the intermediate node for video, which contains both the video source and the video sink. It reads video frames from the underlying video pipeline and writes video frames back after adaptation.
|
virtual |
Enables or disables the video filter.
enable | Whether to enable the video filter:
|
|
virtual |
Checks whether the video filter is enabled.
true
: The video filter is enabled.false
: The video filter is not enabled.
|
virtual |
Sets a private property in the IVideoFilter
class.
key | The pointer to the property name. |
buf | The pointer to the buffer of this private property. |
buf_size | The buffer size of this private property. |
|
virtual |
Gets a private property in the IVideoFilter class.
key | The pointer to the property name. |
buf | The pointer to the buffer of this private property. |
buf_size | The buffer size of this private property. |
|
virtual |
This function is invoked right before data stream starts. Custom filter can override this function for initialization.
true
: The initialization succeeds.false
: The initialization fails.
|
virtual |
This function is invoked right before data stream stops. Custom filter can override this function for deinitialization.
|
virtual |
This function indicates if the filter is for internal use.
true
: The filter is implemented by external users.false
: The filter is implemented by internal users.
|
virtual |
This function indicates if the filter is implemented by third-party providers.
true
: The filter is implemented by third-party providers.false
: otherwise. Reimplemented in agora::rtc::IExtensionVideoFilter.