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 |
11 /* | 11 /* |
12 * This file generates databases with information about all supported audio | 12 * This file generates databases with information about all supported audio |
13 * codecs. | 13 * codecs. |
14 */ | 14 */ |
15 | 15 |
16 // TODO(tlegrand): Change constant input pointers in all functions to constant | 16 // TODO(tlegrand): Change constant input pointers in all functions to constant |
17 // references, where appropriate. | 17 // references, where appropriate. |
18 #include "webrtc/modules/audio_coding/main/acm2/acm_codec_database.h" | 18 #include "webrtc/modules/audio_coding/main/acm2/acm_codec_database.h" |
19 | 19 |
20 #include <assert.h> | 20 #include <assert.h> |
21 | 21 |
22 #include "webrtc/base/checks.h" | 22 #include "webrtc/base/checks.h" |
23 #include "webrtc/modules/audio_coding/main/acm2/acm_common_defs.h" | 23 #include "webrtc/modules/audio_coding/main/acm2/acm_common_defs.h" |
24 #include "webrtc/system_wrappers/interface/trace.h" | 24 #include "webrtc/system_wrappers/include/trace.h" |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 | 27 |
28 namespace acm2 { | 28 namespace acm2 { |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 // Checks if the bitrate is valid for the codec. | 32 // Checks if the bitrate is valid for the codec. |
33 bool IsRateValid(int codec_id, int rate) { | 33 bool IsRateValid(int codec_id, int rate) { |
34 return ACMCodecDB::database_[codec_id].rate == rate; | 34 return ACMCodecDB::database_[codec_id].rate == rate; |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 } | 360 } |
361 | 361 |
362 // Checks if the payload type is in the valid range. | 362 // Checks if the payload type is in the valid range. |
363 bool ACMCodecDB::ValidPayloadType(int payload_type) { | 363 bool ACMCodecDB::ValidPayloadType(int payload_type) { |
364 return (payload_type >= 0) && (payload_type <= 127); | 364 return (payload_type >= 0) && (payload_type <= 127); |
365 } | 365 } |
366 | 366 |
367 } // namespace acm2 | 367 } // namespace acm2 |
368 | 368 |
369 } // namespace webrtc | 369 } // namespace webrtc |
OLD | NEW |