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

Issue 1225173002: Update audio code to use size_t more correctly, (Closed)

Created:
5 years, 5 months ago by Peter Kasting
Modified:
5 years, 4 months ago
CC:
hlundin-webrtc, kwiberg-webrtc, tlegrand-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_coding/codecs/ 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: 4

Patch Set 3 : Review comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -390 lines) Patch
M webrtc/modules/audio_coding/codecs/audio_decoder.h View 1 chunk +1 line, -1 line 3 comments Download
M webrtc/modules/audio_coding/codecs/audio_decoder.cc View 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_encoder.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_encoder_mutable_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc View 7 chunks +20 lines, -15 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng_unittest.cc View 1 2 14 chunks +19 lines, -18 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/cng_unittest.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/include/audio_encoder_cng.h View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/include/webrtc_cng.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/webrtc_cng.c View 1 6 chunks +11 lines, -10 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.cc View 3 chunks +14 lines, -14 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/g711_interface.c View 1 chunk +18 lines, -18 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/include/audio_encoder_pcm.h View 5 chunks +12 lines, -12 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/include/g711_interface.h View 4 chunks +14 lines, -14 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/test/testG711.cc View 4 chunks +16 lines, -24 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc View 6 chunks +13 lines, -13 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/g722_decode.c View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/g722_enc_dec.h View 1 chunk +8 lines, -8 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/g722_encode.c View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/g722_interface.c View 2 chunks +9 lines, -9 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/include/audio_encoder_g722.h View 2 chunks +5 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/include/g722_interface.h View 2 chunks +10 lines, -11 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/test/testG722.cc View 4 chunks +19 lines, -24 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.h View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc View 1 4 chunks +11 lines, -22 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/interface/audio_encoder_opus.h View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/interface/opus_interface.h View 7 chunks +9 lines, -7 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_fec_test.cc View 4 chunks +8 lines, -7 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_interface.c View 10 chunks +16 lines, -16 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_speed_test.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc View 14 chunks +75 lines, -67 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/pcm16b/include/audio_encoder_pcm16b.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/pcm16b/include/pcm16b.h View 3 chunks +8 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/pcm16b/pcm16b.c View 2 chunks +8 lines, -8 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/tools/audio_codec_speed_test.h View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/tools/audio_codec_speed_test.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (5 generated)
Peter Kasting
5 years, 5 months ago (2015-07-23 19:12:11 UTC) #2
Peter Kasting
Changing reviewer to minyue in hopes of finding someone who is not on vacation to ...
5 years, 4 months ago (2015-07-27 23:43:30 UTC) #5
Peter Kasting
Changing reviewer to minyue in hopes of finding someone who is not on vacation to ...
5 years, 4 months ago (2015-07-27 23:43:35 UTC) #6
kwiberg-webrtc
lgtm https://codereview.webrtc.org/1225173002/diff/20001/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc File webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc (right): https://codereview.webrtc.org/1225173002/diff/20001/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc#newcode199 webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc:199: // iteration. Not sure the comment says anything ...
5 years, 4 months ago (2015-08-06 09:14:25 UTC) #8
Peter Kasting
New snap not yet up, will fix the below issue and upload later (am WFH ...
5 years, 4 months ago (2015-08-06 18:38:50 UTC) #9
Peter Kasting
(Updated, FYI, no reply needed)
5 years, 4 months ago (2015-08-07 18:16:14 UTC) #10
hlundin-webrtc
Drive-by on first file. https://codereview.webrtc.org/1225173002/diff/40001/webrtc/modules/audio_coding/codecs/audio_decoder.h File webrtc/modules/audio_coding/codecs/audio_decoder.h (right): https://codereview.webrtc.org/1225173002/diff/40001/webrtc/modules/audio_coding/codecs/audio_decoder.h#newcode65 webrtc/modules/audio_coding/codecs/audio_decoder.h:65: virtual size_t DecodePlc(size_t num_frames, int16_t* ...
5 years, 4 months ago (2015-08-10 11:27:27 UTC) #11
minyue-webrtc
https://codereview.webrtc.org/1225173002/diff/40001/webrtc/modules/audio_coding/codecs/audio_decoder.h File webrtc/modules/audio_coding/codecs/audio_decoder.h (right): https://codereview.webrtc.org/1225173002/diff/40001/webrtc/modules/audio_coding/codecs/audio_decoder.h#newcode65 webrtc/modules/audio_coding/codecs/audio_decoder.h:65: virtual size_t DecodePlc(size_t num_frames, int16_t* decoded); On 2015/08/10 11:27:27, ...
5 years, 4 months ago (2015-08-10 13:02:25 UTC) #12
hlundin-webrtc
5 years, 4 months ago (2015-08-10 13:12:36 UTC) #14
https://codereview.webrtc.org/1225173002/diff/40001/webrtc/modules/audio_codi...
File webrtc/modules/audio_coding/codecs/audio_decoder.h (right):

https://codereview.webrtc.org/1225173002/diff/40001/webrtc/modules/audio_codi...
webrtc/modules/audio_coding/codecs/audio_decoder.h:65: virtual size_t
DecodePlc(size_t num_frames, int16_t* decoded);
On 2015/08/10 13:02:24, minyue-webrtc wrote:
> On 2015/08/10 11:27:27, hlundin-webrtc wrote:
> > I think we should still be able to return a negative value to signal an
error.
> 
> See some discussion here
>
https://codereview.webrtc.org/1228793004/diff/20001/webrtc/modules/audio_codi...

Hmm, yes, I guess I agree. It's just that I am slightly annoyed by the asymmetry
between DecodePlc and the other Decode functions. Oh, well, I'll yield.

Powered by Google App Engine
This is Rietveld 408576698