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

Side by Side Diff: webrtc/modules/audio_coding/neteq/dsp_helper.h

Issue 1948483002: Using ring buffer for AudioVector in NetEq. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: removing a unittest Created 4 years, 7 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
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 for an AudioMultiVector.
70 static int RampSignal(AudioMultiVector* signal, 77 static int RampSignal(AudioMultiVector* signal,
71 size_t start_index, 78 size_t start_index,
72 size_t length, 79 size_t length,
73 int factor, 80 int factor,
74 int increment); 81 int increment);
75 82
76 // Peak detection with parabolic fit. Looks for |num_peaks| maxima in |data|, 83 // 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 84 // having length |data_length| and sample rate multiplier |fs_mult|. The peak
78 // locations and values are written to the arrays |peak_index| and 85 // locations and values are written to the arrays |peak_index| and
79 // |peak_value|, respectively. Both arrays must hold at least |num_peaks| 86 // |peak_value|, respectively. Both arrays must hold at least |num_peaks|
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 135
129 private: 136 private:
130 // Table of constants used in method DspHelper::ParabolicFit(). 137 // Table of constants used in method DspHelper::ParabolicFit().
131 static const int16_t kParabolaCoefficients[17][3]; 138 static const int16_t kParabolaCoefficients[17][3];
132 139
133 RTC_DISALLOW_COPY_AND_ASSIGN(DspHelper); 140 RTC_DISALLOW_COPY_AND_ASSIGN(DspHelper);
134 }; 141 };
135 142
136 } // namespace webrtc 143 } // namespace webrtc
137 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DSP_HELPER_H_ 144 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DSP_HELPER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/comfort_noise.cc ('k') | webrtc/modules/audio_coding/neteq/dsp_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698