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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
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 | |
169 class Transport { | |
170 public: | |
171 virtual int SendPacket(const void* data, size_t len) = 0; | |
172 virtual int SendRTCPPacket(const void* data, size_t len) = 0; | |
173 | |
174 protected: | |
175 virtual ~Transport() {} | |
176 Transport() {} | |
177 }; | |
178 | |
179 // Statistics for an RTCP channel | 168 // Statistics for an RTCP channel |
180 struct RtcpStatistics { | 169 struct RtcpStatistics { |
181 RtcpStatistics() | 170 RtcpStatistics() |
182 : fraction_lost(0), | 171 : fraction_lost(0), |
183 cumulative_lost(0), | 172 cumulative_lost(0), |
184 extended_max_sequence_number(0), | 173 extended_max_sequence_number(0), |
185 jitter(0) {} | 174 jitter(0) {} |
186 | 175 |
187 uint8_t fraction_lost; | 176 uint8_t fraction_lost; |
188 uint32_t cumulative_lost; | 177 uint32_t cumulative_lost; |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 class StreamDataCountersCallback { | 889 class StreamDataCountersCallback { |
901 public: | 890 public: |
902 virtual ~StreamDataCountersCallback() {} | 891 virtual ~StreamDataCountersCallback() {} |
903 | 892 |
904 virtual void DataCountersUpdated(const StreamDataCounters& counters, | 893 virtual void DataCountersUpdated(const StreamDataCounters& counters, |
905 uint32_t ssrc) = 0; | 894 uint32_t ssrc) = 0; |
906 }; | 895 }; |
907 } // namespace webrtc | 896 } // namespace webrtc |
908 | 897 |
909 #endif // WEBRTC_COMMON_TYPES_H_ | 898 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |