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

Issue 1227203003: Update audio code to use size_t more correctly, webrtc/common_audio/ portion. (Closed)

Created:
5 years, 5 months ago by Peter Kasting
Modified:
5 years, 4 months ago
Reviewers:
Andrew MacDonald
CC:
aluebs-webrtc, Andrew MacDonald, bjornv1, 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/common_audio/ 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 #

Patch Set 2 : Resync #

Total comments: 3

Patch Set 3 : Resync #

Patch Set 4 : Missing bits #

Patch Set 5 : Checkpoint #

Total comments: 5

Patch Set 6 : New snap up #

Patch Set 7 : Review comments #

Patch Set 8 : Resync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -306 lines) Patch
M webrtc/common_audio/audio_converter.h View 2 chunks +8 lines, -8 lines 0 comments Download
M webrtc/common_audio/audio_converter.cc View 8 chunks +16 lines, -16 lines 0 comments Download
M webrtc/common_audio/audio_converter_unittest.cc View 5 chunks +11 lines, -9 lines 0 comments Download
M webrtc/common_audio/audio_ring_buffer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -8 lines 0 comments Download
M webrtc/common_audio/audio_util.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/audio_util_unittest.cc View 1 2 3 13 chunks +18 lines, -18 lines 0 comments Download
M webrtc/common_audio/blocker.h View 3 chunks +10 lines, -10 lines 0 comments Download
M webrtc/common_audio/blocker.cc View 1 2 3 4 5 6 7 8 chunks +21 lines, -21 lines 0 comments Download
M webrtc/common_audio/blocker_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/common_audio/channel_buffer.h View 6 chunks +17 lines, -18 lines 0 comments Download
M webrtc/common_audio/channel_buffer.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/common_audio/fft4g.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/fft4g.c View 1 2 3 4 5 14 chunks +34 lines, -32 lines 0 comments Download
M webrtc/common_audio/include/audio_util.h View 1 2 3 4 5 chunks +10 lines, -10 lines 0 comments Download
M webrtc/common_audio/lapped_transform.h View 5 chunks +12 lines, -8 lines 0 comments Download
M webrtc/common_audio/lapped_transform.cc View 1 2 3 4 5 4 chunks +8 lines, -8 lines 0 comments Download
M webrtc/common_audio/lapped_transform_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M webrtc/common_audio/real_fourier.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/common_audio/real_fourier.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M webrtc/common_audio/real_fourier_ooura.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/common_audio/real_fourier_ooura.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/common_audio/real_fourier_unittest.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M webrtc/common_audio/sparse_fir_filter.h View 1 chunk +6 lines, -6 lines 0 comments Download
M webrtc/common_audio/sparse_fir_filter.cc View 2 chunks +9 lines, -9 lines 0 comments Download
M webrtc/common_audio/sparse_fir_filter_unittest.cc View 12 chunks +29 lines, -29 lines 0 comments Download
M webrtc/common_audio/vad/include/webrtc_vad.h View 3 chunks +4 lines, -2 lines 0 comments Download
M webrtc/common_audio/vad/vad.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/common_audio/vad/vad_core.h View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/common_audio/vad/vad_core.c View 5 chunks +13 lines, -11 lines 0 comments Download
M webrtc/common_audio/vad/vad_core_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/vad/vad_filterbank.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/vad/vad_filterbank.c View 8 chunks +12 lines, -13 lines 0 comments Download
M webrtc/common_audio/vad/vad_filterbank_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/common_audio/vad/vad_sp.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/vad/vad_sp.c View 1 chunk +4 lines, -3 lines 0 comments Download
M webrtc/common_audio/vad/vad_sp_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/common_audio/vad/vad_unittest.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/common_audio/vad/vad_unittest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/common_audio/vad/webrtc_vad.c View 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/common_audio/window_generator.h View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/common_audio/window_generator.cc View 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Peter Kasting
https://codereview.webrtc.org/1227203003/diff/20001/webrtc/common_audio/blocker.cc File webrtc/common_audio/blocker.cc (right): https://codereview.webrtc.org/1227203003/diff/20001/webrtc/common_audio/blocker.cc#newcode125 webrtc/common_audio/blocker.cc:125: input_buffer_.MoveReadPosition(-static_cast<int>(initial_delay_)); A couple places we call MoveReadPosition() with a ...
5 years, 5 months ago (2015-07-23 00:26:47 UTC) #2
Andrew MacDonald
https://codereview.webrtc.org/1227203003/diff/20001/webrtc/common_audio/blocker.cc File webrtc/common_audio/blocker.cc (right): https://codereview.webrtc.org/1227203003/diff/20001/webrtc/common_audio/blocker.cc#newcode125 webrtc/common_audio/blocker.cc:125: input_buffer_.MoveReadPosition(-static_cast<int>(initial_delay_)); On 2015/07/23 00:26:47, Peter Kasting wrote: > A ...
5 years, 5 months ago (2015-07-24 19:01:56 UTC) #3
Peter Kasting
New snap up. https://codereview.webrtc.org/1227203003/diff/20001/webrtc/common_audio/blocker.cc File webrtc/common_audio/blocker.cc (right): https://codereview.webrtc.org/1227203003/diff/20001/webrtc/common_audio/blocker.cc#newcode125 webrtc/common_audio/blocker.cc:125: input_buffer_.MoveReadPosition(-static_cast<int>(initial_delay_)); On 2015/07/24 19:01:55, andrew wrote: ...
5 years, 4 months ago (2015-07-27 23:23:39 UTC) #4
Andrew MacDonald
5 years, 4 months ago (2015-07-28 07:20:06 UTC) #5
lgtm

https://codereview.webrtc.org/1227203003/diff/80001/webrtc/common_audio/fft4g.c
File webrtc/common_audio/fft4g.c (right):

https://codereview.webrtc.org/1227203003/diff/80001/webrtc/common_audio/fft4g...
webrtc/common_audio/fft4g.c:291: static void makewt(size_t nw, size_t *ip, float
*w);
On 2015/07/27 23:23:39, Peter Kasting wrote:
> On 2015/07/24 19:01:55, andrew wrote:
> > It's not totally clear to me that this "work area for bit reversal" should
be
> a
> > size_t. Would you mind explaining the rationale?
> 
> The type of *ip has to match the type of |n| in the externally-visible rdft()
> declaration (or, in these helpers, |nw|, |nc|, |n|, etc.).  This is because
> these are all passed around interchangeably, stored in each other, etc.
> 
> AFAICT from a quick read, |ip| basically holds offsets into the other tables,
so
> semantically its meaning is array-of-size_t.
> 
> (Also I updated a few comments here to match my changes.)

OK thanks for the explanation.

Powered by Google App Engine
This is Rietveld 408576698