Agora C++ API Reference for All Platforms
|
Inherits agora::RefCountInterface.
Public Member Functions | |
virtual int | getVideoFrameData (VideoFrameData &data) const =0 |
virtual int | fillVideoFrameData (const VideoFrameData &data)=0 |
virtual int | getVideoFrameMetaData (VideoFrameMetaDataType type, void *data)=0 |
virtual int | fillVideoFrameMetaData (VideoFrameMetaDataType type, const void *data)=0 |
![]() | |
virtual void | AddRef () const =0 |
virtual RefCountReleaseStatus | Release () const =0 |
virtual bool | HasOneRef () const =0 |
Protected Member Functions | |
~IVideoFrame () | |
![]() | |
virtual | ~RefCountInterface () |
The IVideoFrame class defines the interface to send video frame data to the SDK or get video frame data from the SDK.
|
inlineprotected |
|
pure virtual |
Get the concrete video frame data of the underlying buffer.
data | [out] The video frame data. |
|
pure virtual |
Fill the underlying buffer with source buffer info contained in VideoFrameInfo For frames of type "Type::kMemPixels", This function first tries to fill in-place with no copy and reallocation. When it fails, a copy or copy-plus-reallocation may happen
data | [in] Data to be filled in. |
|
pure virtual |
Get the underlying meta data of the given type. e.g. If type is VideoFrameMetaDataType::kAlphaChannel, then data value can be casted to AlphaChannel;
type | VideoFrameMetaDataType type of the meta data wanted |
data | [out] pointer to the the meta data object of the given type |
|
pure virtual |
Fill the underlying meta data of the given type. e.g. If type is VideoFrameMetaDataType::kAlphaChannel, then data should point to AlphaChannel object;
type | VideoFrameMetaDataType type of the meta data to fill |
data | [in] pointer to the the meta data object of the given type |