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

Side by Side Diff: webrtc/modules/audio_processing/agc/legacy/analog_agc.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) 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 /* analog_agc.c 11 /* analog_agc.c
12 * 12 *
13 * Using a feedback system, determines an appropriate analog volume level 13 * Using a feedback system, determines an appropriate analog volume level
14 * given an input signal and current volume level. Targets a conservative 14 * given an input signal and current volume level. Targets a conservative
15 * signal level and is intended for use with a digital AGC to apply 15 * signal level and is intended for use with a digital AGC to apply
16 * additional gain. 16 * additional gain.
17 * 17 *
18 */ 18 */
19 19
20 #include "webrtc/modules/audio_processing/agc/legacy/analog_agc.h" 20 #include "webrtc/modules/audio_processing/agc/legacy/analog_agc.h"
21 21
22 #include <stdlib.h> 22 #include <stdlib.h>
23 #ifdef WEBRTC_AGC_DEBUG_DUMP 23 #ifdef WEBRTC_AGC_DEBUG_DUMP
24 #include <stdio.h> 24 #include <stdio.h>
25 #endif 25 #endif
26 26
27 #include "webrtc/base/checks.h" 27 #include "webrtc/rtc_base/checks.h"
28 28
29 /* The slope of in Q13*/ 29 /* The slope of in Q13*/
30 static const int16_t kSlope1[8] = {21793, 12517, 7189, 4129, 30 static const int16_t kSlope1[8] = {21793, 12517, 7189, 4129,
31 2372, 1362, 472, 78}; 31 2372, 1362, 472, 78};
32 32
33 /* The offset in Q14 */ 33 /* The offset in Q14 */
34 static const int16_t kOffset1[8] = {25395, 23911, 22206, 20737, 34 static const int16_t kOffset1[8] = {25395, 23911, 22206, 20737,
35 19612, 18805, 17951, 17367}; 35 19612, 18805, 17951, 17367};
36 36
37 /* The slope of in Q13*/ 37 /* The slope of in Q13*/
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 fprintf(stt->fpt, "minLevel, maxLevel value(s) are invalid\n\n"); 1381 fprintf(stt->fpt, "minLevel, maxLevel value(s) are invalid\n\n");
1382 #endif 1382 #endif
1383 return -1; 1383 return -1;
1384 } else { 1384 } else {
1385 #ifdef WEBRTC_AGC_DEBUG_DUMP 1385 #ifdef WEBRTC_AGC_DEBUG_DUMP
1386 fprintf(stt->fpt, "\n"); 1386 fprintf(stt->fpt, "\n");
1387 #endif 1387 #endif
1388 return 0; 1388 return 0;
1389 } 1389 }
1390 } 1390 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698