| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 std::unique_ptr<float[], AlignedFreeDeleter> kernel_pre_sinc_storage_; | 142 std::unique_ptr<float[], AlignedFreeDeleter> kernel_pre_sinc_storage_; |
| 143 std::unique_ptr<float[], AlignedFreeDeleter> kernel_window_storage_; | 143 std::unique_ptr<float[], AlignedFreeDeleter> kernel_window_storage_; |
| 144 | 144 |
| 145 // Data from the source is copied into this buffer for each processing pass. | 145 // Data from the source is copied into this buffer for each processing pass. |
| 146 std::unique_ptr<float[], AlignedFreeDeleter> input_buffer_; | 146 std::unique_ptr<float[], AlignedFreeDeleter> input_buffer_; |
| 147 | 147 |
| 148 // Stores the runtime selection of which Convolve function to use. | 148 // Stores the runtime selection of which Convolve function to use. |
| 149 // TODO(ajm): Move to using a global static which must only be initialized | 149 // TODO(ajm): Move to using a global static which must only be initialized |
| 150 // once by the user. We're not doing this initially, because we don't have | 150 // once by the user. We're not doing this initially, because we don't have |
| 151 // e.g. a LazyInstance helper in webrtc. | 151 // e.g. a LazyInstance helper in webrtc. |
| 152 #if (defined(WEBRTC_ARCH_X86_FAMILY) && !defined(__SSE2__)) | 152 #if defined(WEBRTC_CPU_DETECTION) |
| 153 typedef float (*ConvolveProc)(const float*, const float*, const float*, | 153 typedef float (*ConvolveProc)(const float*, const float*, const float*, |
| 154 double); | 154 double); |
| 155 ConvolveProc convolve_proc_; | 155 ConvolveProc convolve_proc_; |
| 156 #endif | 156 #endif |
| 157 | 157 |
| 158 // Pointers to the various regions inside |input_buffer_|. See the diagram at | 158 // Pointers to the various regions inside |input_buffer_|. See the diagram at |
| 159 // the top of the .cc file for more information. | 159 // the top of the .cc file for more information. |
| 160 float* r0_; | 160 float* r0_; |
| 161 float* const r1_; | 161 float* const r1_; |
| 162 float* const r2_; | 162 float* const r2_; |
| 163 float* r3_; | 163 float* r3_; |
| 164 float* r4_; | 164 float* r4_; |
| 165 | 165 |
| 166 RTC_DISALLOW_COPY_AND_ASSIGN(SincResampler); | 166 RTC_DISALLOW_COPY_AND_ASSIGN(SincResampler); |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 } // namespace webrtc | 169 } // namespace webrtc |
| 170 | 170 |
| 171 #endif // WEBRTC_COMMON_AUDIO_RESAMPLER_SINC_RESAMPLER_H_ | 171 #endif // WEBRTC_COMMON_AUDIO_RESAMPLER_SINC_RESAMPLER_H_ |
| OLD | NEW |