Index: webrtc/modules/audio_processing/splitting_filter.cc |
diff --git a/webrtc/modules/audio_processing/splitting_filter.cc b/webrtc/modules/audio_processing/splitting_filter.cc |
index 06af56e7bdf19d00f8e363593e2b8ce857603c38..49ab89b7d83af6081654ccc5de5ce61a8c3a9d4b 100644 |
--- a/webrtc/modules/audio_processing/splitting_filter.cc |
+++ b/webrtc/modules/audio_processing/splitting_filter.cc |
@@ -16,7 +16,7 @@ |
namespace webrtc { |
-SplittingFilter::SplittingFilter(int num_channels, |
+SplittingFilter::SplittingFilter(size_t num_channels, |
size_t num_bands, |
size_t num_frames) |
: num_bands_(num_bands) { |
@@ -24,7 +24,7 @@ SplittingFilter::SplittingFilter(int num_channels, |
if (num_bands_ == 2) { |
two_bands_states_.resize(num_channels); |
} else if (num_bands_ == 3) { |
- for (int i = 0; i < num_channels; ++i) { |
+ for (size_t i = 0; i < num_channels; ++i) { |
three_band_filter_banks_.push_back(new ThreeBandFilterBank(num_frames)); |
} |
} |
@@ -58,7 +58,7 @@ void SplittingFilter::Synthesis(const IFChannelBuffer* bands, |
void SplittingFilter::TwoBandsAnalysis(const IFChannelBuffer* data, |
IFChannelBuffer* bands) { |
- DCHECK_EQ(static_cast<int>(two_bands_states_.size()), data->num_channels()); |
+ DCHECK_EQ(two_bands_states_.size(), data->num_channels()); |
for (size_t i = 0; i < two_bands_states_.size(); ++i) { |
WebRtcSpl_AnalysisQMF(data->ibuf_const()->channels()[i], |
data->num_frames(), |
@@ -71,7 +71,7 @@ void SplittingFilter::TwoBandsAnalysis(const IFChannelBuffer* data, |
void SplittingFilter::TwoBandsSynthesis(const IFChannelBuffer* bands, |
IFChannelBuffer* data) { |
- DCHECK_EQ(static_cast<int>(two_bands_states_.size()), data->num_channels()); |
+ DCHECK_EQ(two_bands_states_.size(), data->num_channels()); |
for (size_t i = 0; i < two_bands_states_.size(); ++i) { |
WebRtcSpl_SynthesisQMF(bands->ibuf_const()->channels(0)[i], |
bands->ibuf_const()->channels(1)[i], |
@@ -84,8 +84,7 @@ void SplittingFilter::TwoBandsSynthesis(const IFChannelBuffer* bands, |
void SplittingFilter::ThreeBandsAnalysis(const IFChannelBuffer* data, |
IFChannelBuffer* bands) { |
- DCHECK_EQ(static_cast<int>(three_band_filter_banks_.size()), |
- data->num_channels()); |
+ DCHECK_EQ(three_band_filter_banks_.size(), data->num_channels()); |
for (size_t i = 0; i < three_band_filter_banks_.size(); ++i) { |
three_band_filter_banks_[i]->Analysis(data->fbuf_const()->channels()[i], |
data->num_frames(), |
@@ -95,8 +94,7 @@ void SplittingFilter::ThreeBandsAnalysis(const IFChannelBuffer* data, |
void SplittingFilter::ThreeBandsSynthesis(const IFChannelBuffer* bands, |
IFChannelBuffer* data) { |
- DCHECK_EQ(static_cast<int>(three_band_filter_banks_.size()), |
- data->num_channels()); |
+ DCHECK_EQ(three_band_filter_banks_.size(), data->num_channels()); |
for (size_t i = 0; i < three_band_filter_banks_.size(); ++i) { |
three_band_filter_banks_[i]->Synthesis(bands->fbuf_const()->bands(i), |
bands->num_frames_per_band(), |