Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Side by Side Diff: webrtc/common_types.h

Issue 1316523002: Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix compile Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/common_audio/wav_header_unittest.cc ('k') | webrtc/modules/audio_coding/acm2/acm_codec_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698