Agora Server Gateway SDK C++ API Reference
Classes | Namespaces | Macros | Typedefs | Enumerations | Variables
AgoraMediaBase.h File Reference
#include <cstring>
#include <stdint.h>
#include <limits>
#include <stddef.h>

Go to the source code of this file.

Classes

struct  agora::rtc::AudioParameters
 
struct  agora::media::base::AudioPcmFrame
 
struct  agora::media::base::ExternalVideoFrame
 
struct  agora::media::base::VideoFrame
 
class  agora::media::IAudioFrameObserverBase
 
struct  agora::media::IAudioFrameObserverBase::AudioFrame
 
class  agora::media::IAudioFrameObserver
 
class  agora::media::IVideoEncodedFrameObserver
 
class  agora::media::IVideoFrameObserver
 

Namespaces

namespace  agora
 
namespace  agora::rtc
 
namespace  agora::media
 
namespace  agora::media::base
 

Macros

#define OPTIONAL_ENUM_SIZE_T   enum
 

Typedefs

typedef unsigned int agora::rtc::uid_t
 
typedef unsigned int agora::rtc::track_id_t
 
typedef unsigned int agora::rtc::conn_id_t
 
typedef void * agora::media::base::view_t
 
typedef const char * agora::media::base::user_id_t
 

Enumerations

enum  agora::rtc::BYTES_PER_SAMPLE { agora::rtc::TWO_BYTES_PER_SAMPLE = 2 }
 
enum  agora::rtc::RAW_AUDIO_FRAME_OP_MODE_TYPE { agora::rtc::RAW_AUDIO_FRAME_OP_MODE_READ_ONLY = 0 , agora::rtc::RAW_AUDIO_FRAME_OP_MODE_READ_WRITE = 2 }
 
enum  agora::media::MEDIA_SOURCE_TYPE {
  agora::media::AUDIO_PLAYOUT_SOURCE = 0 , agora::media::AUDIO_RECORDING_SOURCE = 1 , agora::media::PRIMARY_CAMERA_SOURCE = 2 , agora::media::SECONDARY_CAMERA_SOURCE = 3 ,
  agora::media::PRIMARY_SCREEN_SOURCE = 4 , agora::media::SECONDARY_SCREEN_SOURCE = 5 , agora::media::CUSTOM_VIDEO_SOURCE = 6 , agora::media::MEDIA_PLAYER_SOURCE = 7 ,
  agora::media::RTC_IMAGE_PNG_SOURCE = 8 , agora::media::RTC_IMAGE_JPEG_SOURCE = 9 , agora::media::RTC_IMAGE_GIF_SOURCE = 10 , agora::media::REMOTE_VIDEO_SOURCE = 11 ,
  agora::media::TRANSCODED_VIDEO_SOURCE = 12 , agora::media::UNKNOWN_MEDIA_SOURCE = 100
}
 
enum  agora::media::base::VIDEO_PIXEL_FORMAT {
  agora::media::base::VIDEO_PIXEL_UNKNOWN = 0 , agora::media::base::VIDEO_PIXEL_I420 = 1 , agora::media::base::VIDEO_PIXEL_BGRA = 2 , agora::media::base::VIDEO_PIXEL_NV21 = 3 ,
  agora::media::base::VIDEO_PIXEL_RGBA = 4 , agora::media::base::VIDEO_PIXEL_NV12 = 8 , agora::media::base::VIDEO_TEXTURE_2D = 10 , agora::media::base::VIDEO_TEXTURE_OES = 11 ,
  agora::media::base::VIDEO_PIXEL_I422 = 16
}
 
enum  agora::media::base::VIDEO_MODULE_POSITION { agora::media::base::POSITION_POST_CAPTURER = 1 << 0 , agora::media::base::POSITION_PRE_RENDERER = 1 << 1 , agora::media::base::POSITION_PRE_ENCODER = 1 << 2 , agora::media::base::POSITION_POST_FILTERS = 1 << 3 }
 
enum  agora::media::EXTERNAL_VIDEO_SOURCE_TYPE { agora::media::VIDEO_FRAME = 0 , agora::media::ENCODED_VIDEO_FRAME }
 

Variables

static const unsigned int agora::rtc::DEFAULT_CONNECTION_ID = 0
 
static const unsigned int agora::rtc::DUMMY_CONNECTION_ID = (std::numeric_limits<unsigned int>::max)()
 
static const uint8_t agora::media::base::kMaxCodecNameLength = 50
 

Macro Definition Documentation

◆ OPTIONAL_ENUM_SIZE_T

#define OPTIONAL_ENUM_SIZE_T   enum