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

Unified Diff: media/base/sinc_resampler.h

Issue 18566009: Optimize loop condition for SincResampler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. const! Created 7 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 | « no previous file | media/base/sinc_resampler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/sinc_resampler.h
diff --git a/media/base/sinc_resampler.h b/media/base/sinc_resampler.h
index c6e94d98a23a0620b9ab84afbde07af3ea437969..facd1a106df27b7d3a2cdc6165f358177958f46e 100644
--- a/media/base/sinc_resampler.h
+++ b/media/base/sinc_resampler.h
@@ -50,7 +50,7 @@ class MEDIA_EXPORT SincResampler {
// greater than kKernelSize. Specify kDefaultRequestSize if there are no
// request size constraints.
SincResampler(double io_sample_rate_ratio,
- size_t request_frames,
+ int request_frames,
const ReadCB& read_cb);
virtual ~SincResampler();
@@ -109,13 +109,13 @@ class MEDIA_EXPORT SincResampler {
const ReadCB read_cb_;
// The size (in samples) to request from each |read_cb_| execution.
- const size_t request_frames_;
+ const int request_frames_;
// The number of source frames processed per pass.
- size_t block_size_;
+ int block_size_;
// The size (in samples) of the internal buffer used by the resampler.
- const size_t input_buffer_size_;
+ const int input_buffer_size_;
// Contains kKernelOffsetCount kernels back-to-back, each of size kKernelSize.
// The kernel offsets are sub-sample shifts of a windowed sinc shifted from
« no previous file with comments | « no previous file | media/base/sinc_resampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698