OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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_COMMON_AUDIO_REAL_FOURIER_H_ | 11 #ifndef WEBRTC_COMMON_AUDIO_REAL_FOURIER_H_ |
12 #define WEBRTC_COMMON_AUDIO_REAL_FOURIER_H_ | 12 #define WEBRTC_COMMON_AUDIO_REAL_FOURIER_H_ |
13 | 13 |
14 #include <complex> | 14 #include <complex> |
15 #include <memory> | 15 #include <memory> |
16 | 16 |
| 17 #include "webrtc/base/scoped_ptr.h" |
17 #include "webrtc/system_wrappers/include/aligned_malloc.h" | 18 #include "webrtc/system_wrappers/include/aligned_malloc.h" |
18 | 19 |
19 // Uniform interface class for the real DFT and its inverse, for power-of-2 | 20 // Uniform interface class for the real DFT and its inverse, for power-of-2 |
20 // input lengths. Also contains helper functions for buffer allocation, taking | 21 // input lengths. Also contains helper functions for buffer allocation, taking |
21 // care of any memory alignment requirements the underlying library might have. | 22 // care of any memory alignment requirements the underlying library might have. |
22 | 23 |
23 namespace webrtc { | 24 namespace webrtc { |
24 | 25 |
25 class RealFourier { | 26 class RealFourier { |
26 public: | 27 public: |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // not needed. | 67 // not needed. |
67 virtual void Inverse(const std::complex<float>* src, float* dest) const = 0; | 68 virtual void Inverse(const std::complex<float>* src, float* dest) const = 0; |
68 | 69 |
69 virtual int order() const = 0; | 70 virtual int order() const = 0; |
70 }; | 71 }; |
71 | 72 |
72 } // namespace webrtc | 73 } // namespace webrtc |
73 | 74 |
74 #endif // WEBRTC_COMMON_AUDIO_REAL_FOURIER_H_ | 75 #endif // WEBRTC_COMMON_AUDIO_REAL_FOURIER_H_ |
75 | 76 |
OLD | NEW |