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

Unified Diff: webrtc/common_audio/sparse_fir_filter.h

Issue 1227203003: Update audio code to use size_t more correctly, webrtc/common_audio/ portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_audio/real_fourier_unittest.cc ('k') | webrtc/common_audio/sparse_fir_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/sparse_fir_filter.h
diff --git a/webrtc/common_audio/sparse_fir_filter.h b/webrtc/common_audio/sparse_fir_filter.h
index 4526ad7892fee589a9810fee529e4a9350d114e5..9322afcdcc1953924abfa0e1e0064eb084c6887c 100644
--- a/webrtc/common_audio/sparse_fir_filter.h
+++ b/webrtc/common_audio/sparse_fir_filter.h
@@ -30,17 +30,17 @@ class SparseFIRFilter final {
// B = [0 coeffs[0] 0 0 coeffs[1] 0 0 coeffs[2] ... ]
// All initial state values will be zeros.
SparseFIRFilter(const float* nonzero_coeffs,
- int num_nonzero_coeffs,
- int sparsity,
- int offset);
+ size_t num_nonzero_coeffs,
+ size_t sparsity,
+ size_t offset);
// Filters the |in| data supplied.
// |out| must be previously allocated and it must be at least of |length|.
- void Filter(const float* in, int length, float* out);
+ void Filter(const float* in, size_t length, float* out);
private:
- const int sparsity_;
- const int offset_;
+ const size_t sparsity_;
+ const size_t offset_;
const std::vector<float> nonzero_coeffs_;
std::vector<float> state_;
« no previous file with comments | « webrtc/common_audio/real_fourier_unittest.cc ('k') | webrtc/common_audio/sparse_fir_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698