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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // ================================================================== | 284 // ================================================================== |
285 // Voice specific types | 285 // Voice specific types |
286 // ================================================================== | 286 // ================================================================== |
287 | 287 |
288 // Each codec supported can be described by this structure. | 288 // Each codec supported can be described by this structure. |
289 struct CodecInst { | 289 struct CodecInst { |
290 int pltype; | 290 int pltype; |
291 char plname[RTP_PAYLOAD_NAME_SIZE]; | 291 char plname[RTP_PAYLOAD_NAME_SIZE]; |
292 int plfreq; | 292 int plfreq; |
293 int pacsize; | 293 int pacsize; |
294 int channels; | 294 size_t channels; |
295 int rate; // bits/sec unlike {start,min,max}Bitrate elsewhere in this file! | 295 int rate; // bits/sec unlike {start,min,max}Bitrate elsewhere in this file! |
296 | 296 |
297 bool operator==(const CodecInst& other) const { | 297 bool operator==(const CodecInst& other) const { |
298 return pltype == other.pltype && | 298 return pltype == other.pltype && |
299 (STR_CASE_CMP(plname, other.plname) == 0) && | 299 (STR_CASE_CMP(plname, other.plname) == 0) && |
300 plfreq == other.plfreq && | 300 plfreq == other.plfreq && |
301 pacsize == other.pacsize && | 301 pacsize == other.pacsize && |
302 channels == other.channels && | 302 channels == other.channels && |
303 rate == other.rate; | 303 rate == other.rate; |
304 } | 304 } |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 uint32_t ssrc) = 0; | 896 uint32_t ssrc) = 0; |
897 }; | 897 }; |
898 | 898 |
899 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size | 899 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size |
900 // RTCP mode is described by RFC 5506. | 900 // RTCP mode is described by RFC 5506. |
901 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 901 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
902 | 902 |
903 } // namespace webrtc | 903 } // namespace webrtc |
904 | 904 |
905 #endif // WEBRTC_COMMON_TYPES_H_ | 905 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |