OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 enum FrameType | 159 enum FrameType |
160 { | 160 { |
161 kFrameEmpty = 0, | 161 kFrameEmpty = 0, |
162 kAudioFrameSpeech = 1, | 162 kAudioFrameSpeech = 1, |
163 kAudioFrameCN = 2, | 163 kAudioFrameCN = 2, |
164 kVideoFrameKey = 3, // independent frame | 164 kVideoFrameKey = 3, // independent frame |
165 kVideoFrameDelta = 4, // depends on the previus frame | 165 kVideoFrameDelta = 4, // depends on the previus frame |
166 }; | 166 }; |
167 | 167 |
168 // External transport callback interface | 168 // External transport callback interface |
169 class Transport | 169 class Transport { |
170 { | 170 public: |
171 public: | 171 virtual int SendPacket(const void* data, size_t len) = 0; |
172 virtual int SendPacket(int channel, const void *data, size_t len) = 0; | 172 virtual int SendRTCPPacket(const void* data, size_t len) = 0; |
173 virtual int SendRTCPPacket(int channel, const void *data, size_t len) = 0; | |
174 | 173 |
175 protected: | 174 protected: |
176 virtual ~Transport() {} | 175 virtual ~Transport() {} |
177 Transport() {} | 176 Transport() {} |
178 }; | 177 }; |
179 | 178 |
180 // Statistics for an RTCP channel | 179 // Statistics for an RTCP channel |
181 struct RtcpStatistics { | 180 struct RtcpStatistics { |
182 RtcpStatistics() | 181 RtcpStatistics() |
183 : fraction_lost(0), | 182 : fraction_lost(0), |
184 cumulative_lost(0), | 183 cumulative_lost(0), |
185 extended_max_sequence_number(0), | 184 extended_max_sequence_number(0), |
186 jitter(0) {} | 185 jitter(0) {} |
187 | 186 |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 class StreamDataCountersCallback { | 899 class StreamDataCountersCallback { |
901 public: | 900 public: |
902 virtual ~StreamDataCountersCallback() {} | 901 virtual ~StreamDataCountersCallback() {} |
903 | 902 |
904 virtual void DataCountersUpdated(const StreamDataCounters& counters, | 903 virtual void DataCountersUpdated(const StreamDataCounters& counters, |
905 uint32_t ssrc) = 0; | 904 uint32_t ssrc) = 0; |
906 }; | 905 }; |
907 } // namespace webrtc | 906 } // namespace webrtc |
908 | 907 |
909 #endif // WEBRTC_COMMON_TYPES_H_ | 908 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |