OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |