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

Issue 1227213002: Update audio code to use size_t more correctly, webrtc/modules/audio_processing/ (Closed)

Created:
5 years, 5 months ago by Peter Kasting
Modified:
5 years, 4 months ago
Reviewers:
Andrew MacDonald, ekm, turaj
CC:
aluebs-webrtc, Andrew MacDonald, bjornv1, hlundin-webrtc, kwiberg-webrtc, tterriberry_mozilla.com, webrtc-reviews_webrtc.org
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Update audio code to use size_t more correctly, webrtc/modules/audio_processing/ portion. This is a piece of https://codereview.webrtc.org/1230503003 , split out to a separate change to make reviewing easier. BUG=chromium:81439 TEST=none

Patch Set 1 #

Total comments: 2

Patch Set 2 : Resync #

Patch Set 3 : Checkpoint #

Total comments: 35

Patch Set 4 : Review comments #

Patch Set 5 : Resync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -435 lines) Patch
M webrtc/modules/audio_processing/aec/aec_core.h View 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/aec/aec_core.c View 5 chunks +9 lines, -8 lines 0 comments Download
M webrtc/modules/audio_processing/aec/aec_core_internal.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_processing/aec/aec_resampler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/aec/aec_resampler.c View 2 chunks +4 lines, -5 lines 0 comments Download
M webrtc/modules/audio_processing/aec/echo_cancellation.c View 6 chunks +18 lines, -18 lines 0 comments Download
M webrtc/modules/audio_processing/aec/include/echo_cancellation.h View 3 chunks +5 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/aec/system_delay_unittest.cc View 12 chunks +27 lines, -19 lines 0 comments Download
M webrtc/modules/audio_processing/aecm/echo_control_mobile.c View 2 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/audio_processing/aecm/include/echo_control_mobile.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/agc/agc.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/agc/agc.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_processing/agc/agc_manager_direct.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/agc/agc_manager_direct.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M webrtc/modules/audio_processing/agc/legacy/analog_agc.c View 6 chunks +11 lines, -10 lines 0 comments Download
M webrtc/modules/audio_processing/agc/legacy/digital_agc.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/agc/legacy/digital_agc.c View 4 chunks +6 lines, -5 lines 0 comments Download
M webrtc/modules/audio_processing/agc/legacy/gain_control.h View 4 chunks +7 lines, -7 lines 0 comments Download
M webrtc/modules/audio_processing/agc/mock_agc.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/audio_buffer.h View 1 2 chunks +12 lines, -12 lines 0 comments Download
M webrtc/modules/audio_processing/audio_buffer.cc View 1 3 chunks +13 lines, -14 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.h View 2 chunks +5 lines, -5 lines 0 comments Download
M webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M webrtc/modules/audio_processing/beamformer/matrix.h View 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.h View 1 4 chunks +11 lines, -11 lines 0 comments Download
M webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc View 1 17 chunks +24 lines, -20 lines 0 comments Download
M webrtc/modules/audio_processing/echo_cancellation_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/echo_control_mobile_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/gain_control_impl.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_processing/high_pass_filter_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/include/audio_processing.h View 1 2 3 4 4 chunks +7 lines, -6 lines 0 comments Download
M webrtc/modules/audio_processing/include/mock_audio_processing.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.h View 1 4 chunks +11 lines, -11 lines 0 comments Download
M webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc View 1 2 3 8 chunks +52 lines, -47 lines 0 comments Download
M webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer_unittest.cc View 1 2 3 chunks +10 lines, -10 lines 0 comments Download
M webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h View 1 5 chunks +11 lines, -9 lines 0 comments Download
M webrtc/modules/audio_processing/intelligibility/intelligibility_utils.cc View 1 12 chunks +22 lines, -22 lines 0 comments Download
M webrtc/modules/audio_processing/intelligibility/test/intelligibility_proc.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/ns/include/noise_suppression.h View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/modules/audio_processing/ns/noise_suppression.c View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_processing/ns/ns_core.h View 3 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/audio_processing/ns/ns_core.c View 15 chunks +26 lines, -25 lines 0 comments Download
M webrtc/modules/audio_processing/ns/nsx_core.h View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_processing/ns/nsx_core.c View 14 chunks +16 lines, -15 lines 0 comments Download
M webrtc/modules/audio_processing/ns/nsx_core_c.c View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_processing/ns/nsx_core_mips.c View 5 chunks +6 lines, -5 lines 0 comments Download
M webrtc/modules/audio_processing/ns/nsx_core_neon.c View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_processing/rms_level.h View 3 chunks +5 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/rms_level.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/splitting_filter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/splitting_filter.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/splitting_filter_unittest.cc View 1 2 3 5 chunks +12 lines, -12 lines 0 comments Download
M webrtc/modules/audio_processing/test/audio_processing_unittest.cc View 1 3 chunks +17 lines, -10 lines 0 comments Download
M webrtc/modules/audio_processing/three_band_filter_bank.h View 1 chunk +7 lines, -7 lines 0 comments Download
M webrtc/modules/audio_processing/three_band_filter_bank.cc View 10 chunks +33 lines, -31 lines 0 comments Download
M webrtc/modules/audio_processing/transient/transient_suppressor.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_processing/transient/transient_suppressor.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_processing/vad/common.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/voice_detection_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_processing/voice_detection_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Peter Kasting
https://codereview.webrtc.org/1227213002/diff/1/webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc File webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc (right): https://codereview.webrtc.org/1227213002/diff/1/webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc#newcode183 webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc:183: const size_t NonlinearBeamformer::kNumFreqBins; Changing the type of this from ...
5 years, 5 months ago (2015-07-23 20:50:43 UTC) #2
Andrew MacDonald
First, apologies, as a large-ish CL just landed in this code: https://codereview.webrtc.org/1248393003/ which will cause ...
5 years, 5 months ago (2015-07-24 04:01:44 UTC) #4
ekm
https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc File webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc (right): https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc#newcode301 webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc:301: size_t lf = 1, rf = 4; On 2015/07/24 ...
5 years, 5 months ago (2015-07-24 06:29:16 UTC) #5
Peter Kasting
https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_processing/agc/agc_manager_direct.h File webrtc/modules/audio_processing/agc/agc_manager_direct.h (right): https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_processing/agc/agc_manager_direct.h#newcode59 webrtc/modules/audio_processing/agc/agc_manager_direct.h:59: int num_channels, On 2015/07/24 at 04:01:43, andrew wrote: > ...
5 years, 5 months ago (2015-07-24 06:44:22 UTC) #6
Andrew MacDonald
https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_processing/agc/agc_manager_direct.h File webrtc/modules/audio_processing/agc/agc_manager_direct.h (right): https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_processing/agc/agc_manager_direct.h#newcode59 webrtc/modules/audio_processing/agc/agc_manager_direct.h:59: int num_channels, On 2015/07/24 06:44:22, Peter Kasting wrote: > ...
5 years, 5 months ago (2015-07-24 19:07:13 UTC) #7
Peter Kasting
New snap up. https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc File webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc (right): https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc#newcode321 webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc:321: center_freqs_[max(one, i - lf) - 1] ...
5 years, 4 months ago (2015-07-27 23:09:55 UTC) #8
Andrew MacDonald
What you have lgtm, but you still need a rebase I believe. https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_processing/splitting_filter_unittest.cc File webrtc/modules/audio_processing/splitting_filter_unittest.cc ...
5 years, 4 months ago (2015-07-28 07:05:44 UTC) #9
Peter Kasting
https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_processing/splitting_filter_unittest.cc File webrtc/modules/audio_processing/splitting_filter_unittest.cc (right): https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_processing/splitting_filter_unittest.cc#newcode55 webrtc/modules/audio_processing/splitting_filter_unittest.cc:55: is_present[j] = i & (static_cast<size_t>(1) << j); On 2015/07/28 ...
5 years, 4 months ago (2015-07-28 22:34:32 UTC) #10
Andrew MacDonald
5 years, 4 months ago (2015-07-29 01:10:56 UTC) #11
https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_proc...
File webrtc/modules/audio_processing/splitting_filter_unittest.cc (right):

https://codereview.webrtc.org/1227213002/diff/40001/webrtc/modules/audio_proc...
webrtc/modules/audio_processing/splitting_filter_unittest.cc:55: is_present[j] =
i & (static_cast<size_t>(1) << j);
On 2015/07/28 22:34:32, Peter Kasting wrote:
> Update: the static_cast really is required for the Win x64 bot:
> 
>
e:\b\build\slave\win\build\src\webrtc\modules\audio_processing\splitting_filter_unittest.cc(55)
> : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits
> (was 64-bit shift intended?)

Thanks for checking.

Powered by Google App Engine
This is Rietveld 408576698