2#include "AgoraRefPtr.h"
5#include "NGIAgoraVideoFrame.h"
7#ifndef OPTIONAL_PROCESSRESULT_SPECIFIER
8#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
9#define OPTIONAL_PROCESSRESULT_SPECIFIER ProcessResult::
11#define OPTIONAL_PROCESSRESULT_SPECIFIER
33 virtual int setProperty(
const char* key,
const void* buf,
int buf_size) {
return -1; }
44 virtual int getProperty(
const char* key,
void* buf,
int buf_size) {
return -1; }
55 virtual bool isExternalSink() {
return true; }
63 virtual bool onDataStreamWillStart() {
return true; }
68 virtual void onDataStreamWillStop() { }
108 const void* audio_data, uint32_t capture_timestamp,
109 const size_t samples_per_channel,
111 const size_t number_of_channels,
112 const uint32_t sample_rate) = 0;
Definition: NGIAgoraMediaNode.h:125
~IAudioEncodedFrameSender()
Definition: NGIAgoraMediaNode.h:143
virtual bool sendEncodedAudioFrame(const uint8_t *payload_data, size_t payload_size, const EncodedAudioFrameInfo &audioFrameInfo)=0
Definition: NGIAgoraMediaNode.h:91
virtual int sendAudioPcmData(const void *audio_data, uint32_t capture_timestamp, const size_t samples_per_channel, const agora::rtc::BYTES_PER_SAMPLE bytes_per_sample, const size_t number_of_channels, const uint32_t sample_rate)=0
~IAudioPcmDataSender()
Definition: NGIAgoraMediaNode.h:115
Definition: NGIAgoraMediaNode.h:150
virtual bool onAudioFrame(const media::base::AudioPcmFrame &audioFrame)=0
~IAudioSinkBase()
Definition: NGIAgoraMediaNode.h:162
Definition: NGIAgoraMediaNode.h:196
~IVideoEncodedImageSender()
Definition: NGIAgoraMediaNode.h:213
virtual bool sendEncodedVideoImage(const uint8_t *imageBuffer, size_t length, const EncodedVideoFrameInfo &videoEncodedFrameInfo)=0
Definition: NGIAgoraMediaNode.h:172
~IVideoFrameSender()
Definition: NGIAgoraMediaNode.h:186
virtual int sendVideoFrame(const media::base::ExternalVideoFrame &videoFrame)=0
Definition: NGIAgoraMediaNode.h:21
virtual int onFrame(const media::base::VideoFrame &videoFrame)=0
virtual int getProperty(const char *key, void *buf, int buf_size)
Definition: NGIAgoraMediaNode.h:44
virtual bool applyRotation()
Definition: NGIAgoraMediaNode.h:83
virtual bool applyMirror()
Definition: NGIAgoraMediaNode.h:76
virtual int setProperty(const char *key, const void *buf, int buf_size)
Definition: NGIAgoraMediaNode.h:33
BYTES_PER_SAMPLE
Definition: AgoraMediaBase.h:38
Definition: AgoraBase.h:86
Definition: AgoraBase.h:1740
Definition: AgoraBase.h:1880