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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/fix/source/bandwidth_estimator.c

Issue 2974613003: base->rtc_base: Update .c, .mm and .java files. (Closed)
Patch Set: Created 3 years, 5 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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 * bandwidth_estimator.c 12 * bandwidth_estimator.c
13 * 13 *
14 * This file contains the code for the Bandwidth Estimator designed 14 * This file contains the code for the Bandwidth Estimator designed
15 * for iSAC. 15 * for iSAC.
16 * 16 *
17 * NOTE! Castings needed for C55, do not remove! 17 * NOTE! Castings needed for C55, do not remove!
18 * 18 *
19 */ 19 */
20 20
21 #include "bandwidth_estimator.h" 21 #include "bandwidth_estimator.h"
22 22
23 #include "settings.h" 23 #include "settings.h"
24 #include "webrtc/base/checks.h" 24 #include "webrtc/rtc_base/checks.h"
25 25
26 /* array of quantization levels for bottle neck info; Matlab code: */ 26 /* array of quantization levels for bottle neck info; Matlab code: */
27 /* sprintf('%4.1ff, ', logspace(log10(5000), log10(40000), 12)) */ 27 /* sprintf('%4.1ff, ', logspace(log10(5000), log10(40000), 12)) */
28 static const int16_t kQRateTable[12] = { 28 static const int16_t kQRateTable[12] = {
29 10000, 11115, 12355, 13733, 15265, 16967, 29 10000, 11115, 12355, 13733, 15265, 16967,
30 18860, 20963, 23301, 25900, 28789, 32000 30 18860, 20963, 23301, 25900, 28789, 32000
31 }; 31 };
32 32
33 /* 0.1 times the values in the table kQRateTable */ 33 /* 0.1 times the values in the table kQRateTable */
34 /* values are in Q16 */ 34 /* values are in Q16 */
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 /*s2nr = -1*(a_60 << 10) + ((b_60 * bottle_neck) >> 10);*/ 1028 /*s2nr = -1*(a_60 << 10) + ((b_60 * bottle_neck) >> 10);*/
1029 s2nr = -22500 + (int16_t)(500 * bottle_neck >> 10); 1029 s2nr = -22500 + (int16_t)(500 * bottle_neck >> 10);
1030 break; 1030 break;
1031 default: 1031 default:
1032 s2nr = -1; /* Error */ 1032 s2nr = -1; /* Error */
1033 } 1033 }
1034 1034
1035 return s2nr; //return in Q10 1035 return s2nr; //return in Q10
1036 1036
1037 } 1037 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/ilbc/ilbc.c ('k') | webrtc/modules/audio_coding/codecs/isac/fix/source/encode.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698