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

Side by Side Diff: webrtc/modules/audio_processing/agc/legacy/digital_agc.h

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 3 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
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #ifdef WEBRTC_AGC_DEBUG_DUMP 49 #ifdef WEBRTC_AGC_DEBUG_DUMP
50 FILE* logFile; 50 FILE* logFile;
51 int frameCounter; 51 int frameCounter;
52 #endif 52 #endif
53 } DigitalAgc; 53 } DigitalAgc;
54 54
55 int32_t WebRtcAgc_InitDigital(DigitalAgc* digitalAgcInst, int16_t agcMode); 55 int32_t WebRtcAgc_InitDigital(DigitalAgc* digitalAgcInst, int16_t agcMode);
56 56
57 int32_t WebRtcAgc_ProcessDigital(DigitalAgc* digitalAgcInst, 57 int32_t WebRtcAgc_ProcessDigital(DigitalAgc* digitalAgcInst,
58 const int16_t* const* inNear, 58 const int16_t* const* inNear,
59 int16_t num_bands, 59 size_t num_bands,
60 int16_t* const* out, 60 int16_t* const* out,
61 uint32_t FS, 61 uint32_t FS,
62 int16_t lowLevelSignal); 62 int16_t lowLevelSignal);
63 63
64 int32_t WebRtcAgc_AddFarendToDigital(DigitalAgc* digitalAgcInst, 64 int32_t WebRtcAgc_AddFarendToDigital(DigitalAgc* digitalAgcInst,
65 const int16_t* inFar, 65 const int16_t* inFar,
66 int16_t nrSamples); 66 size_t nrSamples);
67 67
68 void WebRtcAgc_InitVad(AgcVad* vadInst); 68 void WebRtcAgc_InitVad(AgcVad* vadInst);
69 69
70 int16_t WebRtcAgc_ProcessVad(AgcVad* vadInst, // (i) VAD state 70 int16_t WebRtcAgc_ProcessVad(AgcVad* vadInst, // (i) VAD state
71 const int16_t* in, // (i) Speech signal 71 const int16_t* in, // (i) Speech signal
72 int16_t nrSamples); // (i) number of samples 72 size_t nrSamples); // (i) number of samples
73 73
74 int32_t WebRtcAgc_CalculateGainTable(int32_t *gainTable, // Q16 74 int32_t WebRtcAgc_CalculateGainTable(int32_t *gainTable, // Q16
75 int16_t compressionGaindB, // Q0 (in dB) 75 int16_t compressionGaindB, // Q0 (in dB)
76 int16_t targetLevelDbfs,// Q0 (in dB) 76 int16_t targetLevelDbfs,// Q0 (in dB)
77 uint8_t limiterEnable, 77 uint8_t limiterEnable,
78 int16_t analogTarget); 78 int16_t analogTarget);
79 79
80 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC_LEGACY_DIGITAL_AGC_H_ 80 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC_LEGACY_DIGITAL_AGC_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/agc/legacy/analog_agc.c ('k') | webrtc/modules/audio_processing/agc/legacy/digital_agc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698