| 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/acm2/acm_codec_database.h" | 18 #include "webrtc/modules/audio_coding/acm2/acm_codec_database.h" |
| 19 | 19 |
| 20 #include <assert.h> | 20 #include <assert.h> |
| 21 | 21 |
| 22 #include "webrtc/rtc_base/checks.h" | 22 #include "webrtc/base/checks.h" |
| 23 | 23 |
| 24 #if ((defined WEBRTC_CODEC_ISAC) && (defined WEBRTC_CODEC_ISACFX)) | 24 #if ((defined WEBRTC_CODEC_ISAC) && (defined WEBRTC_CODEC_ISACFX)) |
| 25 #error iSAC and iSACFX codecs cannot be enabled at the same time | 25 #error iSAC and iSACFX codecs cannot be enabled at the same time |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 namespace webrtc { | 28 namespace webrtc { |
| 29 | 29 |
| 30 namespace acm2 { | 30 namespace acm2 { |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 } | 340 } |
| 341 // Gets codec id number from database for the receiver. | 341 // Gets codec id number from database for the receiver. |
| 342 int ACMCodecDB::ReceiverCodecNumber(const CodecInst& codec_inst) { | 342 int ACMCodecDB::ReceiverCodecNumber(const CodecInst& codec_inst) { |
| 343 // Look for a matching codec in the database. | 343 // Look for a matching codec in the database. |
| 344 return CodecId(codec_inst); | 344 return CodecId(codec_inst); |
| 345 } | 345 } |
| 346 | 346 |
| 347 } // namespace acm2 | 347 } // namespace acm2 |
| 348 | 348 |
| 349 } // namespace webrtc | 349 } // namespace webrtc |
| OLD | NEW |