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 |
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_DSP_HELPER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_DSP_HELPER_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_DSP_HELPER_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_DSP_HELPER_H_ |
13 | 13 |
14 #include <string.h> // Access to size_t. | 14 #include <string.h> // Access to size_t. |
15 | 15 |
16 #include "webrtc/base/constructormagic.h" | |
17 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" | 16 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" |
| 17 #include "webrtc/rtc_base/constructormagic.h" |
18 #include "webrtc/typedefs.h" | 18 #include "webrtc/typedefs.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 // This class contains various signal processing functions, all implemented as | 22 // This class contains various signal processing functions, all implemented as |
23 // static methods. | 23 // static methods. |
24 class DspHelper { | 24 class DspHelper { |
25 public: | 25 public: |
26 // Filter coefficients used when downsampling from the indicated sample rates | 26 // Filter coefficients used when downsampling from the indicated sample rates |
27 // (8, 16, 32, 48 kHz) to 4 kHz. Coefficients are in Q12. | 27 // (8, 16, 32, 48 kHz) to 4 kHz. Coefficients are in Q12. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 private: | 136 private: |
137 // Table of constants used in method DspHelper::ParabolicFit(). | 137 // Table of constants used in method DspHelper::ParabolicFit(). |
138 static const int16_t kParabolaCoefficients[17][3]; | 138 static const int16_t kParabolaCoefficients[17][3]; |
139 | 139 |
140 RTC_DISALLOW_COPY_AND_ASSIGN(DspHelper); | 140 RTC_DISALLOW_COPY_AND_ASSIGN(DspHelper); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace webrtc | 143 } // namespace webrtc |
144 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DSP_HELPER_H_ | 144 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DSP_HELPER_H_ |
OLD | NEW |