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

Side by Side Diff: webrtc/modules/audio_coding/main/acm2/acm_codec_database.cc

Issue 1404623002: Delete iSAC-fb from AudioCodingModule (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Not yet used payload-types. 62 // Not yet used payload-types.
63 // 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 63 // 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68,
64 // 67, 66, 65 64 // 67, 66, 65
65 65
66 const CodecInst ACMCodecDB::database_[] = { 66 const CodecInst ACMCodecDB::database_[] = {
67 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) 67 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX))
68 {103, "ISAC", 16000, kIsacPacSize480, 1, kIsacWbDefaultRate}, 68 {103, "ISAC", 16000, kIsacPacSize480, 1, kIsacWbDefaultRate},
69 # if (defined(WEBRTC_CODEC_ISAC)) 69 # if (defined(WEBRTC_CODEC_ISAC))
70 {104, "ISAC", 32000, kIsacPacSize960, 1, kIsacSwbDefaultRate}, 70 {104, "ISAC", 32000, kIsacPacSize960, 1, kIsacSwbDefaultRate},
71 {105, "ISAC", 48000, kIsacPacSize1440, 1, kIsacSwbDefaultRate},
72 # endif 71 # endif
73 #endif 72 #endif
74 // Mono 73 // Mono
75 {107, "L16", 8000, 80, 1, 128000}, 74 {107, "L16", 8000, 80, 1, 128000},
76 {108, "L16", 16000, 160, 1, 256000}, 75 {108, "L16", 16000, 160, 1, 256000},
77 {109, "L16", 32000, 320, 1, 512000}, 76 {109, "L16", 32000, 320, 1, 512000},
78 // Stereo 77 // Stereo
79 {111, "L16", 8000, 80, 2, 128000}, 78 {111, "L16", 8000, 80, 2, 128000},
80 {112, "L16", 16000, 160, 2, 256000}, 79 {112, "L16", 16000, 160, 2, 256000},
81 {113, "L16", 32000, 320, 2, 512000}, 80 {113, "L16", 32000, 320, 2, 512000},
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 116
118 // Create database with all codec settings at compile time. 117 // Create database with all codec settings at compile time.
119 // Each entry needs the following parameters in the given order: 118 // Each entry needs the following parameters in the given order:
120 // Number of allowed packet sizes, a vector with the allowed packet sizes, 119 // Number of allowed packet sizes, a vector with the allowed packet sizes,
121 // Basic block samples, max number of channels that are supported. 120 // Basic block samples, max number of channels that are supported.
122 const ACMCodecDB::CodecSettings ACMCodecDB::codec_settings_[] = { 121 const ACMCodecDB::CodecSettings ACMCodecDB::codec_settings_[] = {
123 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) 122 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX))
124 {2, {kIsacPacSize480, kIsacPacSize960}, 0, 1}, 123 {2, {kIsacPacSize480, kIsacPacSize960}, 0, 1},
125 # if (defined(WEBRTC_CODEC_ISAC)) 124 # if (defined(WEBRTC_CODEC_ISAC))
126 {1, {kIsacPacSize960}, 0, 1}, 125 {1, {kIsacPacSize960}, 0, 1},
127 {1, {kIsacPacSize1440}, 0, 1},
128 # endif 126 # endif
129 #endif 127 #endif
130 // Mono 128 // Mono
131 {4, {80, 160, 240, 320}, 0, 2}, 129 {4, {80, 160, 240, 320}, 0, 2},
132 {4, {160, 320, 480, 640}, 0, 2}, 130 {4, {160, 320, 480, 640}, 0, 2},
133 {2, {320, 640}, 0, 2}, 131 {2, {320, 640}, 0, 2},
134 // Stereo 132 // Stereo
135 {4, {80, 160, 240, 320}, 0, 2}, 133 {4, {80, 160, 240, 320}, 0, 2},
136 {4, {160, 320, 480, 640}, 0, 2}, 134 {4, {160, 320, 480, 640}, 0, 2},
137 {2, {320, 640}, 0, 2}, 135 {2, {320, 640}, 0, 2},
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // To prevent compile errors due to trailing commas. 169 // To prevent compile errors due to trailing commas.
172 {-1, {-1}, -1, -1} 170 {-1, {-1}, -1, -1}
173 }; 171 };
174 172
175 // Create a database of all NetEQ decoders at compile time. 173 // Create a database of all NetEQ decoders at compile time.
176 const NetEqDecoder ACMCodecDB::neteq_decoders_[] = { 174 const NetEqDecoder ACMCodecDB::neteq_decoders_[] = {
177 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) 175 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX))
178 kDecoderISAC, 176 kDecoderISAC,
179 # if (defined(WEBRTC_CODEC_ISAC)) 177 # if (defined(WEBRTC_CODEC_ISAC))
180 kDecoderISACswb, 178 kDecoderISACswb,
181 kDecoderISACfb,
182 # endif 179 # endif
183 #endif 180 #endif
184 // Mono 181 // Mono
185 kDecoderPCM16B, 182 kDecoderPCM16B,
186 kDecoderPCM16Bwb, 183 kDecoderPCM16Bwb,
187 kDecoderPCM16Bswb32kHz, 184 kDecoderPCM16Bswb32kHz,
188 // Stereo 185 // Stereo
189 kDecoderPCM16B_2ch, 186 kDecoderPCM16B_2ch,
190 kDecoderPCM16Bwb_2ch, 187 kDecoderPCM16Bwb_2ch,
191 kDecoderPCM16Bswb32kHz_2ch, 188 kDecoderPCM16Bswb32kHz_2ch,
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 } 363 }
367 364
368 // Checks if the payload type is in the valid range. 365 // Checks if the payload type is in the valid range.
369 bool ACMCodecDB::ValidPayloadType(int payload_type) { 366 bool ACMCodecDB::ValidPayloadType(int payload_type) {
370 return (payload_type >= 0) && (payload_type <= 127); 367 return (payload_type >= 0) && (payload_type <= 127);
371 } 368 }
372 369
373 } // namespace acm2 370 } // namespace acm2
374 371
375 } // namespace webrtc 372 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/main/acm2/acm_codec_database.h ('k') | webrtc/modules/audio_coding/main/acm2/acm_common_defs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698