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

Side by Side Diff: webrtc/common_audio/vad/vad_filterbank.h

Issue 1227203003: Update audio code to use size_t more correctly, webrtc/common_audio/ portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 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
« no previous file with comments | « webrtc/common_audio/vad/vad_core_unittest.cc ('k') | webrtc/common_audio/vad/vad_filterbank.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
32 // WebRtcVad_GmmProbability() as a signal indicator, hence it is arbitrary above 32 // WebRtcVad_GmmProbability() as a signal indicator, hence it is arbitrary above
33 // the threshold |kMinEnergy|. 33 // the threshold |kMinEnergy|.
34 // 34 //
35 // - self [i/o] : State information of the VAD. 35 // - self [i/o] : State information of the VAD.
36 // - data_in [i] : Input audio data, for feature extraction. 36 // - data_in [i] : Input audio data, for feature extraction.
37 // - data_length [i] : Audio data size, in number of samples. 37 // - data_length [i] : Audio data size, in number of samples.
38 // - features [o] : 10 * log10(energy in each frequency band), Q4. 38 // - features [o] : 10 * log10(energy in each frequency band), Q4.
39 // - returns : Total energy of the signal (NOTE! This value is not 39 // - returns : Total energy of the signal (NOTE! This value is not
40 // exact. It is only used in a comparison.) 40 // exact. It is only used in a comparison.)
41 int16_t WebRtcVad_CalculateFeatures(VadInstT* self, const int16_t* data_in, 41 int16_t WebRtcVad_CalculateFeatures(VadInstT* self, const int16_t* data_in,
42 int data_length, int16_t* features); 42 size_t data_length, int16_t* features);
43 43
44 #endif // WEBRTC_COMMON_AUDIO_VAD_VAD_FILTERBANK_H_ 44 #endif // WEBRTC_COMMON_AUDIO_VAD_VAD_FILTERBANK_H_
OLDNEW
« no previous file with comments | « webrtc/common_audio/vad/vad_core_unittest.cc ('k') | webrtc/common_audio/vad/vad_filterbank.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698