| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 int16_t* output); | 60 int16_t* output); |
| 61 | 61 |
| 62 // Same as above, but with the samples of |signal| being modified in-place. | 62 // Same as above, but with the samples of |signal| being modified in-place. |
| 63 static int RampSignal(int16_t* signal, | 63 static int RampSignal(int16_t* signal, |
| 64 size_t length, | 64 size_t length, |
| 65 int factor, | 65 int factor, |
| 66 int increment); | 66 int increment); |
| 67 | 67 |
| 68 // Same as above, but processes |length| samples from |signal|, starting at | 68 // Same as above, but processes |length| samples from |signal|, starting at |
| 69 // |start_index|. | 69 // |start_index|. |
| 70 static int RampSignal(AudioVector* signal, |
| 71 size_t start_index, |
| 72 size_t length, |
| 73 int factor, |
| 74 int increment); |
| 75 |
| 76 // Same as above, but processes |length| samples from |signal|, starting at |
| 77 // |start_index|. |
| 70 static int RampSignal(AudioMultiVector* signal, | 78 static int RampSignal(AudioMultiVector* signal, |
| 71 size_t start_index, | 79 size_t start_index, |
| 72 size_t length, | 80 size_t length, |
| 73 int factor, | 81 int factor, |
| 74 int increment); | 82 int increment); |
| 75 | 83 |
| 76 // Peak detection with parabolic fit. Looks for |num_peaks| maxima in |data|, | 84 // Peak detection with parabolic fit. Looks for |num_peaks| maxima in |data|, |
| 77 // having length |data_length| and sample rate multiplier |fs_mult|. The peak | 85 // having length |data_length| and sample rate multiplier |fs_mult|. The peak |
| 78 // locations and values are written to the arrays |peak_index| and | 86 // locations and values are written to the arrays |peak_index| and |
| 79 // |peak_value|, respectively. Both arrays must hold at least |num_peaks| | 87 // |peak_value|, respectively. Both arrays must hold at least |num_peaks| |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 136 |
| 129 private: | 137 private: |
| 130 // Table of constants used in method DspHelper::ParabolicFit(). | 138 // Table of constants used in method DspHelper::ParabolicFit(). |
| 131 static const int16_t kParabolaCoefficients[17][3]; | 139 static const int16_t kParabolaCoefficients[17][3]; |
| 132 | 140 |
| 133 RTC_DISALLOW_COPY_AND_ASSIGN(DspHelper); | 141 RTC_DISALLOW_COPY_AND_ASSIGN(DspHelper); |
| 134 }; | 142 }; |
| 135 | 143 |
| 136 } // namespace webrtc | 144 } // namespace webrtc |
| 137 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DSP_HELPER_H_ | 145 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DSP_HELPER_H_ |
| OLD | NEW |