Agora C++ API Reference for All Platforms

packet_i.h
1 // Agora RTC/MEDIA SDK
2 //
3 // Created by Pengfei Han in 2019-06.
4 // Copyright (c) 2019 Agora.io. All rights reserved.
5 //
6 #pragma once
7
8 #include <cstdint>
9 #include <list>
10 #include <memory>
11 #include <string>
12 #include <vector>
13
14 #include "AgoraBase.h"
15 #include "audio_node_stat_i.h"
16
17 namespace agora {
18 namespace rtc {
19
20
21 static const uint8_t kVideoEngineFlagHasIntraRequest = 0x10;
22 static const uint8_t kVideoEngineFlagStdCodec = 0x8;
23 static const uint8_t kVideoEngineFlagNasa = 0x40;
24 static const uint8_t kVideoEngineFlagScalableDelta = 0x80;
25 static const uint8_t kVideoEngineFlagMajorStreamOnly = 0x01;
26
27 static const uint8_t kAgoraHeaderLength = 3;
28 static const uint8_t kAgoraAudioExtendLength = 5;
29
30 enum MEDIA_STREAM_TYPE {
31 MEDIA_STREAM_TYPE_AUDIO = (1 << 0),
32 MEDIA_STREAM_TYPE_VIDEO_LOW = (1 << 1),
33 MEDIA_STREAM_TYPE_VIDEO_HIGH = (1 << 2),
34 MEDIA_STREAM_TYPE_VIDEO_LAYER_0 = MEDIA_STREAM_TYPE_VIDEO_HIGH,
35 MEDIA_STREAM_TYPE_VIDEO_LAYER_1 = (1 << 16),
36 MEDIA_STREAM_TYPE_VIDEO_LAYER_2 = (1 << 17),
37 MEDIA_STREAM_TYPE_VIDEO_LAYER_3 = (1 << 18),
38 MEDIA_STREAM_TYPE_VIDEO_LAYER_4 = (1 << 19),
39 MEDIA_STREAM_TYPE_VIDEO_LAYER_5 = (1 << 20),
40 MEDIA_STREAM_TYPE_VIDEO_LAYER_6 = (1 << 21),
41 MEDIA_STREAM_TYPE_VIDEO = (MEDIA_STREAM_TYPE_VIDEO_LOW | MEDIA_STREAM_TYPE_VIDEO_HIGH | MEDIA_STREAM_TYPE_VIDEO_LAYER_1 | MEDIA_STREAM_TYPE_VIDEO_LAYER_2
42 | MEDIA_STREAM_TYPE_VIDEO_LAYER_3 | MEDIA_STREAM_TYPE_VIDEO_LAYER_4 | MEDIA_STREAM_TYPE_VIDEO_LAYER_5 | MEDIA_STREAM_TYPE_VIDEO_LAYER_6),
43 MEDIA_STREAM_TYPE_MEDIA = MEDIA_STREAM_TYPE_AUDIO | MEDIA_STREAM_TYPE_VIDEO,
44 };
45
46 enum MEDIA_FRAMERATE_LEVEL {
47 MEDIA_FRAMERATE_LEVEL_HIGH = (0b00 << 24),
48 MEDIA_FRAMERATE_LEVEL_MIDDLE = (0b01 << 24),
49 MEDIA_FRAMERATE_LEVEL_LOW = (0b10 << 24),
50 };
51
52 struct SMediaFrame {
53 uid_t uid_;
54 uint8_t flags_;
55 uint16_t seq_;
56 uint16_t ssrc_;
57 uint64_t packetSentTs_;
58 uint64_t sentTs_;
59 uint64_t receiveTs_;
60 std::string payload_;
61 SMediaFrame() : uid_(0), flags_(0), seq_(0), ssrc_(0), sentTs_(0), receiveTs_(0) {}
62 };
63
64 struct SAudioFrame : public SMediaFrame {
65 uint8_t codec_;
66 uint32_t ts_;
67 int8_t vad_;
68 uint8_t internalFlags_;
69 uint16_t audio_fec_level_;
70 bool arq_to_rsfec_flag_;
71 uint16_t cc_type_;
72 // energy is only used for send
73 uint8_t energy_;
74 AudioFrameHandleInfo handle_info_;
75 uint32_t bitrate_profile_kbps;
76 int64_t audio_pts_;
77 std::string metadata_;
78 std::string audio_stat_info_;
79 SAudioFrame() : SMediaFrame(), codec_(0), ts_(0), vad_(0), internalFlags_(0), cc_type_(0), energy_(0), bitrate_profile_kbps(0), audio_pts_(0) {}
80 };
81
82 using SharedSAudioFrame = std::shared_ptr<SAudioFrame>;
83
84 struct SAudioPacket {
85 enum AUDIO_PACKET_TYPE {
86 AUDIO_PACKET_REXFERRED = 0x1,
87 AUDIO_PACKET_FROM_VOS = 0x2,
88 AUDIO_PACKET_FROM_P2P = 0x4,
89 };
90 int8_t vad_;
91 uint8_t codec_;
92 uint8_t internalFlags_;
93 uint16_t seq_;
94 uint16_t ssrc_;
95 uint16_t payloadLength_;
96 uint16_t latestFrameSeq_;
97 bool filterable_;
98 std::list<SharedSAudioFrame> frames_;
99 AudioFrameHandleInfo handle_timing_;
100 std::string metadata_;
101 std::string audio_stat_info_;
102 SAudioPacket()
103 : vad_(0),
104 codec_(0),
105 internalFlags_(0),
106 seq_(0),
107 ssrc_(0),
108 payloadLength_(0),
109 latestFrameSeq_(0),
110 filterable_(true) {}
111 };
112
113 struct rtc_packet_t {
114 enum INTERNAL_FLAG_TYPE {
115 RTC_FLAG_REXFERRED = 0x1,
116 RTC_FLAG_FROM_VOS = 0x2,
117 RTC_FLAG_FROM_P2P = 0x4,
118 RTC_FLAG_FROM_BROADCAST = 0x8,
119 VIDEO_FLAG_TIMESTAMP_SET = 0x10,
120 VIDEO_FLAG_CACHED = 0x20,
121 VIDEO_FLAG_VIDEO3 = 0x40,
122 };
123 uid_t uid;
124 uint32_t seq;
125 uint16_t payload_length; // should be the same as payload.length()
126 uint64_t sent_ts;
127 uint64_t recv_ts;
128 int link_id;
129 uint8_t internal_flags;
130 std::string payload;
131 rtc_packet_t()
132 : uid(0), seq(0), payload_length(0), sent_ts(0), recv_ts(0), link_id(-1), internal_flags(0) {}
133 };
134
135 struct broadcast_packet_t : public rtc_packet_t {
136 bool quit;
137 bool rtcp;
138 bool need_reliable;
139 bool real_quit;
140 bool audience_send;
141 broadcast_packet_t()
142 : quit(false), rtcp(false), need_reliable(false), real_quit(false), audience_send(false) {}
143 };
144
145 struct distribution_property_t {
146 uint32_t estimated_bandwith_of_receiver = 0;
147 uint32_t queueing_time_to_receiver = 0;
148 uint8_t max_sender_output_level = 0;
149 uint32_t actual_sender_bandwidth = 0;
150 uint8_t actual_sender_output_level = 0;
151 };
152
153 struct audio_packet_t : public rtc_packet_t {
154 uint32_t ts;
155 int8_t vad;
156 uint8_t codec;
157 int last_error; // error code set by last filter
158 uint32_t reqMs; // for calculating RTT only
159 uint8_t flags; // flags from SAudioFrame
160 int64_t audio_pts; //audio pts from SAudioFrame extension
161 std::string metadata_;
162 std::string audio_stat_info_;
163 audio_packet_t() : ts(0), vad(0), codec(0), last_error(0), reqMs(0), flags(0), audio_pts(0) {}
164 };
165
166 struct video_packet_t : public rtc_packet_t {
167 enum VIDEO_STREAM_TYPE {
168 VIDEO_STREAM_UNKNOWN = -1,
169 VIDEO_STREAM_HIGH = 0,
170 VIDEO_STREAM_LOW = 1,
171 VIDEO_STREAM_MEDIUM = 2,
172 VIDEO_STREAM_LIVE = 3,
173 VIDEO_STREAM_LAYER_0 = VIDEO_STREAM_HIGH,
174 VIDEO_STREAM_LAYER_1 = 4,
175 VIDEO_STREAM_LAYER_2 = 5,
176 VIDEO_STREAM_LAYER_3 = 6,
177 VIDEO_STREAM_LAYER_4 = 7,
178 VIDEO_STREAM_LAYER_5 = 8,
179 VIDEO_STREAM_LAYER_6 = 9,
180 VIDEO_STREAM_MIN = VIDEO_STREAM_HIGH,
181 VIDEO_STREAM_MAX = VIDEO_STREAM_LAYER_6,
182 };
183
184 enum VIDEO_FLAG_TYPE {
185 // below is for video2 only, not used in video3
186 VIDEO_FLAG_KEY_FRAME = 0x80,
187 VIDEO_FLAG_FEC = 0x40,
188 VIDEO_FLAG_LIVE = 0x20,
189 VIDEO_FLAG_STD_CODEC = 0x8, // also for video3 to differentiate std stream and private stream
190 VIDEO_FLAG_B_FRAME = 0x10,
191 // below is for video3
192 VIDEO_FLAG_HARDWARE_ENCODE = 0x4,
193 };
194
195 enum VIDEO_FRAME_TYPE {
196 KEY_FRAME = 0,
197 DELTA_FRAME = 1,
198 B_FRAME = 2,
199 };
200
201 // TODO(Bob): This should be removed and use public API definitions.
202 enum VIDEO_CODEC_TYPE {
203 VIDEO_CODEC_VP8 = 1, // std VP8
204 VIDEO_CODEC_H264 = 2, // std H264
205 VIDEO_CODEC_EVP = 3, // VP8 with BCM
206 VIDEO_CODEC_E264 = 4, // H264 with BCM
207 };
208
209 enum VIDEO_EXTRA_FLAG_TYPE {
210 // marks if the |req_ms| field of PVideoRexferRes_v4 is set
211 VIDEO_EXTRA_FLAG_TIMESTAMP_SET = 0x1,
212 };
213
214 enum EXTENSION_VERSION {
215 EXTENSION_VERSION_0 = 0,
216 EXTENSION_VERSION_1 = 1,
217 EXTENSION_VERSION_2 = 2,
218 };
219
220 struct Extension {
221 bool has_extension_ = false;
222 uint16_t tag_ = EXTENSION_VERSION_0;
223 std::vector<uint32_t> content_;
224 };
225
226 uint32_t frameSeq;
227 uint8_t frameType;
228 uint8_t streamType;
229 uint16_t packets;
230 uint16_t subseq;
231 uint16_t fecPkgNum;
232 uint8_t codec;
233 uint8_t flags;
234 uint8_t protocolVersion;
235 uint32_t reqMs; // for calculating RTT only
236 uint32_t reserve1;
237 Extension extension;
238 int64_t transport_seq; // for transport-cc
239 int8_t cc_type;
240 uint8_t max_temporal_layers;
241 uint8_t curr_temporal_layer;
242 uint32_t bitrate_profile_kbps;
243
244 video_packet_t()
245 : frameSeq(0),
246 frameType(0),
247 streamType(0),
248 packets(0),
249 subseq(0),
250 fecPkgNum(0),
251 codec(0),
252 flags(0),
253 protocolVersion(0),
254 reqMs(0),
255 reserve1(0),
256 transport_seq(-1),
257 cc_type(0),
258 bitrate_profile_kbps(0) {}
259
260 union video3_flags {
261 struct {
262 uint8_t stream_type : 4;
263 uint8_t frame_type : 4;
264 };
265 uint8_t video_type;
266 };
267
268 void fromVideType(uint8_t f) {
269 video3_flags t;
270 t.video_type = f;
271 streamType = t.stream_type;
272 frameType = t.frame_type;
273 }
274
275 uint8_t toVideoType() const {
276 video3_flags t;
277 t.stream_type = streamType;
278 t.frame_type = frameType;
279 return t.video_type;
280 }
281
282 bool hasReserveBit(uint16_t bit) { return (reserve1 & (1 << bit)) == (1 << bit); }
283 };
284
285 struct control_broadcast_packet_t {
286 rtc::uid_t uid = 0;
287 bool from_vos = false;
288 std::string payload;
289 };
290
291 struct video_custom_ctrl_broadcast_packet_t {
292 rtc::uid_t uid;
293 std::string payload;
294 };
295
296 struct peer_message_t {
297 rtc::uid_t uid;
298 int type;
299 std::string user_id;
300 std::string payload;
301 };
302
303 enum VideoStreamType {
304 MASTER_VIDEO_STREAM = 0,
305 LOW_BITRATE_VIDEO_STREAM = 1,
306 MEDIUM_BITRATE_VIDEO_STREAM = 2,
307 LIVE_VIDEO_STREAM = 3,
308 };
309
310 } // namespace rtc
311 } // namespace agora
agora::rtc::peer_message_t::type
int type
Definition: packet_i.h:298
agora::rtc::VideoStreamType
VideoStreamType
Definition: packet_i.h:303
agora::rtc::audio_packet_t::metadata_
std::string metadata_
Definition: packet_i.h:161
agora::rtc::audio_packet_t::vad
int8_t vad
Definition: packet_i.h:155
agora::rtc::peer_message_t::payload
std::string payload
Definition: packet_i.h:300
agora::rtc::SMediaFrame::flags_
uint8_t flags_
Definition: packet_i.h:54
agora::rtc::video_packet_t::cc_type
int8_t cc_type
Definition: packet_i.h:239
agora::rtc::rtc_packet_t::RTC_FLAG_FROM_VOS
@ RTC_FLAG_FROM_VOS
Definition: packet_i.h:116
agora::rtc::LIVE_VIDEO_STREAM
@ LIVE_VIDEO_STREAM
Definition: packet_i.h:307
agora::rtc::video_packet_t::VIDEO_STREAM_MEDIUM
@ VIDEO_STREAM_MEDIUM
Definition: packet_i.h:171
agora::rtc::SAudioPacket::vad_
int8_t vad_
Definition: packet_i.h:90
agora::rtc::SAudioFrame::SAudioFrame
SAudioFrame()
Definition: packet_i.h:79
agora::rtc::MEDIA_STREAM_TYPE_VIDEO_LAYER_2
@ MEDIA_STREAM_TYPE_VIDEO_LAYER_2
Definition: packet_i.h:36
agora::rtc::rtc_packet_t::RTC_FLAG_FROM_P2P
@ RTC_FLAG_FROM_P2P
Definition: packet_i.h:117
agora::rtc::kVideoEngineFlagMajorStreamOnly
static const uint8_t kVideoEngineFlagMajorStreamOnly
Definition: packet_i.h:25
agora::rtc::SMediaFrame::SMediaFrame
SMediaFrame()
Definition: packet_i.h:61
agora::rtc::audio_packet_t::ts
uint32_t ts
Definition: packet_i.h:154
agora::rtc::SAudioPacket::payloadLength_
uint16_t payloadLength_
Definition: packet_i.h:95
agora::rtc::SAudioPacket::AUDIO_PACKET_REXFERRED
@ AUDIO_PACKET_REXFERRED
Definition: packet_i.h:86
agora::rtc::SAudioFrame::audio_pts_
int64_t audio_pts_
Definition: packet_i.h:76
agora::rtc::SAudioPacket::ssrc_
uint16_t ssrc_
Definition: packet_i.h:94
agora::rtc::video_packet_t::VIDEO_STREAM_LAYER_3
@ VIDEO_STREAM_LAYER_3
Definition: packet_i.h:176
agora::rtc::MEDIA_STREAM_TYPE_MEDIA
@ MEDIA_STREAM_TYPE_MEDIA
Definition: packet_i.h:43
agora::rtc::video_packet_t::B_FRAME
@ B_FRAME
Definition: packet_i.h:198
agora::rtc::video_packet_t::VIDEO_FLAG_LIVE
@ VIDEO_FLAG_LIVE
Definition: packet_i.h:188
agora::rtc::MEDIA_STREAM_TYPE_VIDEO_LAYER_5
@ MEDIA_STREAM_TYPE_VIDEO_LAYER_5
Definition: packet_i.h:39
agora::rtc::MEDIA_STREAM_TYPE_VIDEO_HIGH
@ MEDIA_STREAM_TYPE_VIDEO_HIGH
Definition: packet_i.h:33
agora::rtc::broadcast_packet_t::rtcp
bool rtcp
Definition: packet_i.h:137
agora::rtc::video_packet_t::video3_flags::stream_type
uint8_t stream_type
Definition: packet_i.h:262
agora::rtc::SMediaFrame::payload_
std::string payload_
Definition: packet_i.h:60
agora::rtc::SAudioFrame::codec_
uint8_t codec_
Definition: packet_i.h:65
agora::rtc::SAudioFrame::ts_
uint32_t ts_
Definition: packet_i.h:66
agora::rtc::video_custom_ctrl_broadcast_packet_t::payload
std::string payload
Definition: packet_i.h:293
agora::rtc::video_packet_t::frameSeq
uint32_t frameSeq
Definition: packet_i.h:226
agora::rtc::broadcast_packet_t::audience_send
bool audience_send
Definition: packet_i.h:140
agora::rtc::video_packet_t::fecPkgNum
uint16_t fecPkgNum
Definition: packet_i.h:231
agora::rtc::video_packet_t::streamType
uint8_t streamType
Definition: packet_i.h:228
agora::rtc::rtc_packet_t::payload
std::string payload
Definition: packet_i.h:130
agora::rtc::video_custom_ctrl_broadcast_packet_t::uid
rtc::uid_t uid
Definition: packet_i.h:292
agora::rtc::video_packet_t::video_packet_t
video_packet_t()
Definition: packet_i.h:244
agora::rtc::SAudioFrame::audio_fec_level_
uint16_t audio_fec_level_
Definition: packet_i.h:69
agora::rtc::MEDIA_STREAM_TYPE_VIDEO_LAYER_3
@ MEDIA_STREAM_TYPE_VIDEO_LAYER_3
Definition: packet_i.h:37
agora::rtc::LOW_BITRATE_VIDEO_STREAM
@ LOW_BITRATE_VIDEO_STREAM
Definition: packet_i.h:305
agora::rtc::video_packet_t::max_temporal_layers
uint8_t max_temporal_layers
Definition: packet_i.h:240
agora::rtc::rtc_packet_t::rtc_packet_t
rtc_packet_t()
Definition: packet_i.h:131
agora::rtc::SAudioPacket::AUDIO_PACKET_FROM_P2P
@ AUDIO_PACKET_FROM_P2P
Definition: packet_i.h:88
agora::rtc::video_packet_t::video3_flags::frame_type
uint8_t frame_type
Definition: packet_i.h:263
agora::rtc::video_packet_t::VIDEO_STREAM_MAX
@ VIDEO_STREAM_MAX
Definition: packet_i.h:181
agora::rtc::video_packet_t::VIDEO_STREAM_LAYER_4
@ VIDEO_STREAM_LAYER_4
Definition: packet_i.h:177
agora::rtc::video_packet_t::VIDEO_STREAM_HIGH
@ VIDEO_STREAM_HIGH
Definition: packet_i.h:169
agora::rtc::video_packet_t::VIDEO_STREAM_LOW
@ VIDEO_STREAM_LOW
Definition: packet_i.h:170
agora::rtc::kAgoraHeaderLength
static const uint8_t kAgoraHeaderLength
Definition: packet_i.h:27
agora::rtc::SAudioFrame::arq_to_rsfec_flag_
bool arq_to_rsfec_flag_
Definition: packet_i.h:70
agora::rtc::SMediaFrame::packetSentTs_
uint64_t packetSentTs_
Definition: packet_i.h:57
agora::rtc::video_packet_t::toVideoType
uint8_t toVideoType() const
Definition: packet_i.h:275
agora::rtc::SAudioPacket::internalFlags_
uint8_t internalFlags_
Definition: packet_i.h:92
agora::rtc::SMediaFrame::receiveTs_
uint64_t receiveTs_
Definition: packet_i.h:59
agora::rtc::control_broadcast_packet_t::from_vos
bool from_vos
Definition: packet_i.h:287
agora
Definition: AgoraAtomicOps.h:21
agora::rtc::video_packet_t::EXTENSION_VERSION
EXTENSION_VERSION
Definition: packet_i.h:214
agora::rtc::audio_packet_t::audio_stat_info_
std::string audio_stat_info_
Definition: packet_i.h:162
agora::rtc::broadcast_packet_t::real_quit
bool real_quit
Definition: packet_i.h:139
agora::rtc::video_packet_t::reqMs
uint32_t reqMs
Definition: packet_i.h:235
agora::rtc::rtc_packet_t::sent_ts
uint64_t sent_ts
Definition: packet_i.h:126
agora::rtc::distribution_property_t
Definition: packet_i.h:145
agora::rtc::video_packet_t::Extension
Definition: packet_i.h:220
agora::rtc::MEDIA_STREAM_TYPE_AUDIO
@ MEDIA_STREAM_TYPE_AUDIO
Definition: packet_i.h:31
agora::rtc::video_packet_t::VIDEO_EXTRA_FLAG_TIMESTAMP_SET
@ VIDEO_EXTRA_FLAG_TIMESTAMP_SET
Definition: packet_i.h:211
agora::rtc::rtc_packet_t::recv_ts
uint64_t recv_ts
Definition: packet_i.h:127
agora::rtc::SAudioFrame::internalFlags_
uint8_t internalFlags_
Definition: packet_i.h:68
agora::rtc::SAudioFrame::bitrate_profile_kbps
uint32_t bitrate_profile_kbps
Definition: packet_i.h:75
agora::rtc::MEDIA_STREAM_TYPE_VIDEO_LAYER_0
@ MEDIA_STREAM_TYPE_VIDEO_LAYER_0
Definition: packet_i.h:34
agora::rtc::rtc_packet_t::RTC_FLAG_FROM_BROADCAST
@ RTC_FLAG_FROM_BROADCAST
Definition: packet_i.h:118
agora::rtc::video_packet_t::EXTENSION_VERSION_1
@ EXTENSION_VERSION_1
Definition: packet_i.h:216
agora::rtc::audio_packet_t::audio_packet_t
audio_packet_t()
Definition: packet_i.h:163
agora::rtc::video_packet_t::packets
uint16_t packets
Definition: packet_i.h:229
agora::rtc::SAudioFrame::metadata_
std::string metadata_
Definition: packet_i.h:77
agora::rtc::peer_message_t::user_id
std::string user_id
Definition: packet_i.h:299
agora::rtc::SAudioPacket::AUDIO_PACKET_FROM_VOS
@ AUDIO_PACKET_FROM_VOS
Definition: packet_i.h:87
agora::rtc::video_packet_t::VIDEO_STREAM_LAYER_0
@ VIDEO_STREAM_LAYER_0
Definition: packet_i.h:173
agora::rtc::AudioFrameHandleInfo
Definition: audio_node_stat_i.h:32
agora::rtc::video_packet_t::Extension::content_
std::vector< uint32_t > content_
Definition: packet_i.h:223
agora::rtc::MEDIA_FRAMERATE_LEVEL_HIGH
@ MEDIA_FRAMERATE_LEVEL_HIGH
Definition: packet_i.h:47
agora::rtc::video_packet_t::Extension::has_extension_
bool has_extension_
Definition: packet_i.h:221
agora::rtc::video_packet_t::curr_temporal_layer
uint8_t curr_temporal_layer
Definition: packet_i.h:241
agora::rtc::kVideoEngineFlagStdCodec
static const uint8_t kVideoEngineFlagStdCodec
Definition: packet_i.h:22
agora::rtc::video_packet_t::KEY_FRAME
@ KEY_FRAME
Definition: packet_i.h:196
agora::rtc::SAudioPacket::audio_stat_info_
std::string audio_stat_info_
Definition: packet_i.h:101
agora::rtc::video_packet_t::EXTENSION_VERSION_2
@ EXTENSION_VERSION_2
Definition: packet_i.h:217
agora::rtc::SMediaFrame::uid_
uid_t uid_
Definition: packet_i.h:53
agora::rtc::kAgoraAudioExtendLength
static const uint8_t kAgoraAudioExtendLength
Definition: packet_i.h:28
agora::rtc::SAudioPacket::AUDIO_PACKET_TYPE
AUDIO_PACKET_TYPE
Definition: packet_i.h:85
agora::rtc::SAudioFrame::cc_type_
uint16_t cc_type_
Definition: packet_i.h:71
agora::rtc::video_packet_t::VIDEO_CODEC_EVP
@ VIDEO_CODEC_EVP
Definition: packet_i.h:205
agora::rtc::SAudioPacket::metadata_
std::string metadata_
Definition: packet_i.h:100
agora::rtc::distribution_property_t::queueing_time_to_receiver
uint32_t queueing_time_to_receiver
Definition: packet_i.h:147
agora::rtc::distribution_property_t::max_sender_output_level
uint8_t max_sender_output_level
Definition: packet_i.h:148
agora::rtc::SAudioFrame::handle_info_
AudioFrameHandleInfo handle_info_
Definition: packet_i.h:74
agora::rtc::video_packet_t::VIDEO_CODEC_E264
@ VIDEO_CODEC_E264
Definition: packet_i.h:206
agora::rtc::control_broadcast_packet_t::payload
std::string payload
Definition: packet_i.h:288
agora::rtc::video_packet_t
Definition: packet_i.h:166
agora::rtc::video_packet_t::EXTENSION_VERSION_0
@ EXTENSION_VERSION_0
Definition: packet_i.h:215
agora::rtc::broadcast_packet_t::need_reliable
bool need_reliable
Definition: packet_i.h:138
agora::rtc::rtc_packet_t::internal_flags
uint8_t internal_flags
Definition: packet_i.h:129
agora::rtc::MEDIUM_BITRATE_VIDEO_STREAM
@ MEDIUM_BITRATE_VIDEO_STREAM
Definition: packet_i.h:306
agora::rtc::video_packet_t::protocolVersion
uint8_t protocolVersion
Definition: packet_i.h:234
agora::rtc::SMediaFrame
Definition: packet_i.h:52
agora::rtc::distribution_property_t::actual_sender_output_level
uint8_t actual_sender_output_level
Definition: packet_i.h:150
agora::rtc::video_packet_t::VIDEO_STREAM_TYPE
VIDEO_STREAM_TYPE
Definition: packet_i.h:167
agora::rtc::MEDIA_FRAMERATE_LEVEL_LOW
@ MEDIA_FRAMERATE_LEVEL_LOW
Definition: packet_i.h:49
agora::rtc::audio_packet_t::flags
uint8_t flags
Definition: packet_i.h:159
agora::rtc::SAudioFrame
Definition: packet_i.h:64
agora::rtc::video_packet_t::VIDEO_STREAM_MIN
@ VIDEO_STREAM_MIN
Definition: packet_i.h:180
agora::rtc::broadcast_packet_t::quit
bool quit
Definition: packet_i.h:136
agora::rtc::audio_packet_t::codec
uint8_t codec
Definition: packet_i.h:156
agora::rtc::video_packet_t::VIDEO_STREAM_UNKNOWN
@ VIDEO_STREAM_UNKNOWN
Definition: packet_i.h:168
agora::rtc::MEDIA_STREAM_TYPE_VIDEO
@ MEDIA_STREAM_TYPE_VIDEO
Definition: packet_i.h:41
agora::rtc::video_packet_t::VIDEO_CODEC_H264
@ VIDEO_CODEC_H264
Definition: packet_i.h:204
agora::rtc::video_packet_t::video3_flags::video_type
uint8_t video_type
Definition: packet_i.h:265
agora::rtc::broadcast_packet_t
Definition: packet_i.h:135
agora::rtc::video_packet_t::VIDEO_STREAM_LAYER_2
@ VIDEO_STREAM_LAYER_2
Definition: packet_i.h:175
agora::rtc::rtc_packet_t::payload_length
uint16_t payload_length
Definition: packet_i.h:125
agora::rtc::rtc_packet_t::VIDEO_FLAG_TIMESTAMP_SET
@ VIDEO_FLAG_TIMESTAMP_SET
Definition: packet_i.h:119
agora::rtc::SAudioPacket::codec_
uint8_t codec_
Definition: packet_i.h:91
agora::rtc::SAudioPacket::handle_timing_
AudioFrameHandleInfo handle_timing_
Definition: packet_i.h:99
agora::rtc::audio_packet_t
Definition: packet_i.h:153
agora::rtc::SAudioFrame::audio_stat_info_
std::string audio_stat_info_
Definition: packet_i.h:78
agora::rtc::video_packet_t::hasReserveBit
bool hasReserveBit(uint16_t bit)
Definition: packet_i.h:282
agora::rtc::kVideoEngineFlagHasIntraRequest
static const uint8_t kVideoEngineFlagHasIntraRequest
Definition: packet_i.h:21
agora::rtc::video_packet_t::fromVideType
void fromVideType(uint8_t f)
Definition: packet_i.h:268
agora::rtc::control_broadcast_packet_t
Definition: packet_i.h:285
agora::rtc::SAudioPacket::latestFrameSeq_
uint16_t latestFrameSeq_
Definition: packet_i.h:96
agora::rtc::rtc_packet_t::link_id
int link_id
Definition: packet_i.h:128
agora::rtc::video_packet_t::VIDEO_FLAG_TYPE
VIDEO_FLAG_TYPE
Definition: packet_i.h:184
agora::rtc::distribution_property_t::actual_sender_bandwidth
uint32_t actual_sender_bandwidth
Definition: packet_i.h:149
agora::rtc::video_packet_t::VIDEO_FLAG_HARDWARE_ENCODE
@ VIDEO_FLAG_HARDWARE_ENCODE
Definition: packet_i.h:192
agora::rtc::SMediaFrame::ssrc_
uint16_t ssrc_
Definition: packet_i.h:56
agora::rtc::video_packet_t::VIDEO_FLAG_KEY_FRAME
@ VIDEO_FLAG_KEY_FRAME
Definition: packet_i.h:186
agora::rtc::broadcast_packet_t::broadcast_packet_t
broadcast_packet_t()
Definition: packet_i.h:141
agora::rtc::MEDIA_STREAM_TYPE_VIDEO_LOW
@ MEDIA_STREAM_TYPE_VIDEO_LOW
Definition: packet_i.h:32
agora::rtc::SAudioPacket::SAudioPacket
SAudioPacket()
Definition: packet_i.h:102
agora::rtc::SMediaFrame::sentTs_
uint64_t sentTs_
Definition: packet_i.h:58
agora::rtc::audio_packet_t::reqMs
uint32_t reqMs
Definition: packet_i.h:158
agora::rtc::video_packet_t::VIDEO_FLAG_FEC
@ VIDEO_FLAG_FEC
Definition: packet_i.h:187
agora::rtc::SAudioPacket::frames_
std::list< SharedSAudioFrame > frames_
Definition: packet_i.h:98
agora::rtc::rtc_packet_t::uid
uid_t uid
Definition: packet_i.h:123
agora::rtc::SAudioFrame::vad_
int8_t vad_
Definition: packet_i.h:67
agora::rtc::rtc_packet_t::seq
uint32_t seq
Definition: packet_i.h:124
agora::rtc::MEDIA_STREAM_TYPE_VIDEO_LAYER_1
@ MEDIA_STREAM_TYPE_VIDEO_LAYER_1
Definition: packet_i.h:35
agora::rtc::MEDIA_STREAM_TYPE
MEDIA_STREAM_TYPE
Definition: packet_i.h:30
agora::rtc::video_packet_t::frameType
uint8_t frameType
Definition: packet_i.h:227
agora::rtc::audio_packet_t::last_error
int last_error
Definition: packet_i.h:157
agora::rtc::video_packet_t::extension
Extension extension
Definition: packet_i.h:237
agora::rtc::SAudioPacket::seq_
uint16_t seq_
Definition: packet_i.h:93
agora::rtc::video_custom_ctrl_broadcast_packet_t
Definition: packet_i.h:291
agora::rtc::video_packet_t::VIDEO_CODEC_TYPE
VIDEO_CODEC_TYPE
Definition: packet_i.h:202
agora::rtc::rtc_packet_t
Definition: packet_i.h:113
agora::rtc::SAudioPacket
Definition: packet_i.h:84
agora::rtc::video_packet_t::VIDEO_STREAM_LAYER_1
@ VIDEO_STREAM_LAYER_1
Definition: packet_i.h:174
agora::rtc::video_packet_t::VIDEO_STREAM_LAYER_6
@ VIDEO_STREAM_LAYER_6
Definition: packet_i.h:179
agora::rtc::video_packet_t::transport_seq
int64_t transport_seq
Definition: packet_i.h:238
agora::rtc::kVideoEngineFlagNasa
static const uint8_t kVideoEngineFlagNasa
Definition: packet_i.h:23
agora::rtc::SAudioPacket::filterable_
bool filterable_
Definition: packet_i.h:97
agora::rtc::video_packet_t::bitrate_profile_kbps
uint32_t bitrate_profile_kbps
Definition: packet_i.h:242
agora::rtc::video_packet_t::Extension::tag_
uint16_t tag_
Definition: packet_i.h:222
agora::rtc::video_packet_t::subseq
uint16_t subseq
Definition: packet_i.h:230
agora::rtc::kVideoEngineFlagScalableDelta
static const uint8_t kVideoEngineFlagScalableDelta
Definition: packet_i.h:24
agora::rtc::peer_message_t
Definition: packet_i.h:296
agora::rtc::video_packet_t::video3_flags
Definition: packet_i.h:260
agora::rtc::video_packet_t::VIDEO_FLAG_B_FRAME
@ VIDEO_FLAG_B_FRAME
Definition: packet_i.h:190
agora::rtc::SAudioFrame::energy_
uint8_t energy_
Definition: packet_i.h:73
agora::rtc::video_packet_t::VIDEO_CODEC_VP8
@ VIDEO_CODEC_VP8
Definition: packet_i.h:203
agora::rtc::uid_t
unsigned int uid_t
Definition: AgoraMediaBase.h:28
agora::rtc::distribution_property_t::estimated_bandwith_of_receiver
uint32_t estimated_bandwith_of_receiver
Definition: packet_i.h:146
agora::rtc::video_packet_t::codec
uint8_t codec
Definition: packet_i.h:232
agora::rtc::peer_message_t::uid
rtc::uid_t uid
Definition: packet_i.h:297
agora::rtc::MASTER_VIDEO_STREAM
@ MASTER_VIDEO_STREAM
Definition: packet_i.h:304
agora::rtc::control_broadcast_packet_t::uid
rtc::uid_t uid
Definition: packet_i.h:286
agora::rtc::audio_packet_t::audio_pts
int64_t audio_pts
Definition: packet_i.h:160
agora::rtc::rtc_packet_t::RTC_FLAG_REXFERRED
@ RTC_FLAG_REXFERRED
Definition: packet_i.h:115
agora::rtc::video_packet_t::VIDEO_STREAM_LAYER_5
@ VIDEO_STREAM_LAYER_5
Definition: packet_i.h:178
agora::rtc::video_packet_t::VIDEO_STREAM_LIVE
@ VIDEO_STREAM_LIVE
Definition: packet_i.h:172
agora::rtc::video_packet_t::DELTA_FRAME
@ DELTA_FRAME
Definition: packet_i.h:197
agora::rtc::rtc_packet_t::VIDEO_FLAG_CACHED
@ VIDEO_FLAG_CACHED
Definition: packet_i.h:120
agora::rtc::video_packet_t::flags
uint8_t flags
Definition: packet_i.h:233
agora::rtc::video_packet_t::VIDEO_FRAME_TYPE
VIDEO_FRAME_TYPE
Definition: packet_i.h:195
agora::rtc::SMediaFrame::seq_
uint16_t seq_
Definition: packet_i.h:55
agora::rtc::MEDIA_STREAM_TYPE_VIDEO_LAYER_6
@ MEDIA_STREAM_TYPE_VIDEO_LAYER_6
Definition: packet_i.h:40
agora::rtc::video_packet_t::VIDEO_FLAG_STD_CODEC
@ VIDEO_FLAG_STD_CODEC
Definition: packet_i.h:189
agora::rtc::video_packet_t::VIDEO_EXTRA_FLAG_TYPE
VIDEO_EXTRA_FLAG_TYPE
Definition: packet_i.h:209
agora::rtc::video_packet_t::reserve1
uint32_t reserve1
Definition: packet_i.h:236
rtc
Definition: video_node_i.h:28
agora::rtc::SharedSAudioFrame
std::shared_ptr< SAudioFrame > SharedSAudioFrame
Definition: packet_i.h:82
agora::rtc::MEDIA_STREAM_TYPE_VIDEO_LAYER_4
@ MEDIA_STREAM_TYPE_VIDEO_LAYER_4
Definition: packet_i.h:38
agora::rtc::MEDIA_FRAMERATE_LEVEL
MEDIA_FRAMERATE_LEVEL
Definition: packet_i.h:46
agora::rtc::MEDIA_FRAMERATE_LEVEL_MIDDLE
@ MEDIA_FRAMERATE_LEVEL_MIDDLE
Definition: packet_i.h:48
agora::rtc::rtc_packet_t::VIDEO_FLAG_VIDEO3
@ VIDEO_FLAG_VIDEO3
Definition: packet_i.h:121
agora::rtc::rtc_packet_t::INTERNAL_FLAG_TYPE
INTERNAL_FLAG_TYPE
Definition: packet_i.h:114