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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 | 149 |
150 enum ProcessingTypes | 150 enum ProcessingTypes |
151 { | 151 { |
152 kPlaybackPerChannel = 0, | 152 kPlaybackPerChannel = 0, |
153 kPlaybackAllChannelsMixed, | 153 kPlaybackAllChannelsMixed, |
154 kRecordingPerChannel, | 154 kRecordingPerChannel, |
155 kRecordingAllChannelsMixed, | 155 kRecordingAllChannelsMixed, |
156 kRecordingPreprocessing | 156 kRecordingPreprocessing |
157 }; | 157 }; |
158 | 158 |
159 enum FrameType | 159 enum FrameType { |
the sun
2015/09/30 17:21:10
enum class again?
pbos-webrtc
2015/10/06 15:42:45
Nope, since I don't want to complicate rolling int
| |
160 { | 160 kSkipFrame = 0, |
161 kFrameEmpty = 0, | 161 kAudioFrameSpeech = 1, |
162 kAudioFrameSpeech = 1, | 162 kAudioFrameCN = 2, |
163 kAudioFrameCN = 2, | 163 kVideoFrameKey = 3, |
164 kVideoFrameKey = 3, // independent frame | 164 kVideoFrameDelta = 4, |
165 kVideoFrameDelta = 4, // depends on the previus frame | 165 // TODO(pbos): Remove below aliases (non-kVideo prefixed) as soon as no |
166 // VideoEncoder implementation in Chromium uses them. | |
167 kKeyFrame = kVideoFrameKey, | |
168 kDeltaFrame = kVideoFrameDelta, | |
166 }; | 169 }; |
167 | 170 |
171 // TODO(pbos): Remove VideoFrameType when VideoEncoder implementations no longer | |
172 // depend on it. | |
173 typedef FrameType VideoFrameType; | |
hlundin-webrtc
2015/10/01 08:54:04
I prefer C++11 "using VideoFrameType = FrameType;"
pbos-webrtc
2015/10/06 15:42:45
Done.
| |
174 | |
168 // Statistics for an RTCP channel | 175 // Statistics for an RTCP channel |
169 struct RtcpStatistics { | 176 struct RtcpStatistics { |
170 RtcpStatistics() | 177 RtcpStatistics() |
171 : fraction_lost(0), | 178 : fraction_lost(0), |
172 cumulative_lost(0), | 179 cumulative_lost(0), |
173 extended_max_sequence_number(0), | 180 extended_max_sequence_number(0), |
174 jitter(0) {} | 181 jitter(0) {} |
175 | 182 |
176 uint8_t fraction_lost; | 183 uint8_t fraction_lost; |
177 uint32_t cumulative_lost; | 184 uint32_t cumulative_lost; |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
889 class StreamDataCountersCallback { | 896 class StreamDataCountersCallback { |
890 public: | 897 public: |
891 virtual ~StreamDataCountersCallback() {} | 898 virtual ~StreamDataCountersCallback() {} |
892 | 899 |
893 virtual void DataCountersUpdated(const StreamDataCounters& counters, | 900 virtual void DataCountersUpdated(const StreamDataCounters& counters, |
894 uint32_t ssrc) = 0; | 901 uint32_t ssrc) = 0; |
895 }; | 902 }; |
896 } // namespace webrtc | 903 } // namespace webrtc |
897 | 904 |
898 #endif // WEBRTC_COMMON_TYPES_H_ | 905 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |