| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 {98, "CN", 16000, 480, 1, 0}, | 99 {98, "CN", 16000, 480, 1, 0}, |
| 100 {99, "CN", 32000, 960, 1, 0}, | 100 {99, "CN", 32000, 960, 1, 0}, |
| 101 #ifdef ENABLE_48000_HZ | 101 #ifdef ENABLE_48000_HZ |
| 102 {100, "CN", 48000, 1440, 1, 0}, | 102 {100, "CN", 48000, 1440, 1, 0}, |
| 103 #endif | 103 #endif |
| 104 {106, "telephone-event", 8000, 240, 1, 0}, | 104 {106, "telephone-event", 8000, 240, 1, 0}, |
| 105 #ifdef WEBRTC_CODEC_RED | 105 #ifdef WEBRTC_CODEC_RED |
| 106 {127, "red", 8000, 0, 1, 0}, | 106 {127, "red", 8000, 0, 1, 0}, |
| 107 #endif | 107 #endif |
| 108 // To prevent compile errors due to trailing commas. | 108 // To prevent compile errors due to trailing commas. |
| 109 {-1, "Null", -1, -1, -1, -1} | 109 {-1, "Null", -1, -1, 0, -1} |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 // Create database with all codec settings at compile time. | 112 // Create database with all codec settings at compile time. |
| 113 // Each entry needs the following parameters in the given order: | 113 // Each entry needs the following parameters in the given order: |
| 114 // Number of allowed packet sizes, a vector with the allowed packet sizes, | 114 // Number of allowed packet sizes, a vector with the allowed packet sizes, |
| 115 // Basic block samples, max number of channels that are supported. | 115 // Basic block samples, max number of channels that are supported. |
| 116 const ACMCodecDB::CodecSettings ACMCodecDB::codec_settings_[] = { | 116 const ACMCodecDB::CodecSettings ACMCodecDB::codec_settings_[] = { |
| 117 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) | 117 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) |
| 118 {2, {kIsacPacSize480, kIsacPacSize960}, 0, 1}, | 118 {2, {kIsacPacSize480, kIsacPacSize960}, 0, 1}, |
| 119 # if (defined(WEBRTC_CODEC_ISAC)) | 119 # if (defined(WEBRTC_CODEC_ISAC)) |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 {1, {480}, 480, 1}, | 155 {1, {480}, 480, 1}, |
| 156 {1, {960}, 960, 1}, | 156 {1, {960}, 960, 1}, |
| 157 #ifdef ENABLE_48000_HZ | 157 #ifdef ENABLE_48000_HZ |
| 158 {1, {1440}, 1440, 1}, | 158 {1, {1440}, 1440, 1}, |
| 159 #endif | 159 #endif |
| 160 {1, {240}, 240, 1}, | 160 {1, {240}, 240, 1}, |
| 161 #ifdef WEBRTC_CODEC_RED | 161 #ifdef WEBRTC_CODEC_RED |
| 162 {1, {0}, 0, 1}, | 162 {1, {0}, 0, 1}, |
| 163 #endif | 163 #endif |
| 164 // To prevent compile errors due to trailing commas. | 164 // To prevent compile errors due to trailing commas. |
| 165 {-1, {-1}, -1, -1} | 165 {-1, {-1}, -1, 0} |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 // Create a database of all NetEQ decoders at compile time. | 168 // Create a database of all NetEQ decoders at compile time. |
| 169 const NetEqDecoder ACMCodecDB::neteq_decoders_[] = { | 169 const NetEqDecoder ACMCodecDB::neteq_decoders_[] = { |
| 170 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) | 170 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) |
| 171 NetEqDecoder::kDecoderISAC, | 171 NetEqDecoder::kDecoderISAC, |
| 172 # if (defined(WEBRTC_CODEC_ISAC)) | 172 # if (defined(WEBRTC_CODEC_ISAC)) |
| 173 NetEqDecoder::kDecoderISACswb, | 173 NetEqDecoder::kDecoderISACswb, |
| 174 # endif | 174 # endif |
| 175 #endif | 175 #endif |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 } | 322 } |
| 323 // Gets codec id number from database for the receiver. | 323 // Gets codec id number from database for the receiver. |
| 324 int ACMCodecDB::ReceiverCodecNumber(const CodecInst& codec_inst) { | 324 int ACMCodecDB::ReceiverCodecNumber(const CodecInst& codec_inst) { |
| 325 // Look for a matching codec in the database. | 325 // Look for a matching codec in the database. |
| 326 return CodecId(codec_inst); | 326 return CodecId(codec_inst); |
| 327 } | 327 } |
| 328 | 328 |
| 329 } // namespace acm2 | 329 } // namespace acm2 |
| 330 | 330 |
| 331 } // namespace webrtc | 331 } // namespace webrtc |
| OLD | NEW |