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

Side by Side Diff: webrtc/common_audio/real_fourier_ooura.h

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 3 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
« no previous file with comments | « webrtc/common_audio/real_fourier.cc ('k') | webrtc/common_audio/real_fourier_ooura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 13 matching lines...) Expand all
24 24
25 void Forward(const float* src, std::complex<float>* dest) const override; 25 void Forward(const float* src, std::complex<float>* dest) const override;
26 void Inverse(const std::complex<float>* src, float* dest) const override; 26 void Inverse(const std::complex<float>* src, float* dest) const override;
27 27
28 int order() const override { 28 int order() const override {
29 return order_; 29 return order_;
30 } 30 }
31 31
32 private: 32 private:
33 const int order_; 33 const int order_;
34 const int length_; 34 const size_t length_;
35 const int complex_length_; 35 const size_t complex_length_;
36 // These are work arrays for Ooura. The names are based on the comments in 36 // These are work arrays for Ooura. The names are based on the comments in
37 // fft4g.c. 37 // fft4g.c.
38 const rtc::scoped_ptr<int[]> work_ip_; 38 const rtc::scoped_ptr<size_t[]> work_ip_;
39 const rtc::scoped_ptr<float[]> work_w_; 39 const rtc::scoped_ptr<float[]> work_w_;
40 }; 40 };
41 41
42 } // namespace webrtc 42 } // namespace webrtc
43 43
44 #endif // WEBRTC_COMMON_AUDIO_REAL_FOURIER_OOURA_H_ 44 #endif // WEBRTC_COMMON_AUDIO_REAL_FOURIER_OOURA_H_
45 45
OLDNEW
« no previous file with comments | « webrtc/common_audio/real_fourier.cc ('k') | webrtc/common_audio/real_fourier_ooura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698