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

Issue 1305983003: Convert some more things to size_t. (Closed)

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

Description

Convert some more things to size_t. These changes stem from requests by Andrew on https://codereview.webrtc.org/1228823002/ to eliminate some "return -1"s and change to using asserts plus returning size_ts. I then also converted the relevant connected bits. This also cleans up a bunch of style issues, e.g. no spaces around operators. BUG=chromium:81439 TEST=none R=andrew@webrtc.org, henrik.lundin@webrtc.org, niklas.enbom@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/1380e266ff48be9718ce0867cfd65058cb09c5fc

Patch Set 1 #

Patch Set 2 : Compile and test fixes #

Patch Set 3 : Test fixes #

Patch Set 4 : Better reduction #

Patch Set 5 : Safer version of NearestNeighbor #

Patch Set 6 : Fix comment #

Total comments: 7

Patch Set 7 : Add consts #

Patch Set 8 : Use C-style cast in .c file #

Patch Set 9 : Support Android's C89 mode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -392 lines) Patch
M webrtc/common_audio/signal_processing/auto_correlation.c View 2 chunks +9 lines, -10 lines 0 comments Download
M webrtc/common_audio/signal_processing/include/signal_processing_library.h View 12 chunks +19 lines, -40 lines 0 comments Download
M webrtc/common_audio/signal_processing/min_max_operations.c View 13 chunks +24 lines, -45 lines 0 comments Download
M webrtc/common_audio/signal_processing/min_max_operations_mips.c View 7 chunks +9 lines, -18 lines 0 comments Download
M webrtc/common_audio/signal_processing/min_max_operations_neon.c View 7 chunks +7 lines, -18 lines 0 comments Download
M webrtc/common_audio/signal_processing/signal_processing_unittest.cc View 5 chunks +11 lines, -48 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/cb_search_core.c View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/constants.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/constants.c View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/defines.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/enhancer.h View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/enhancer.c View 2 chunks +5 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.c View 8 chunks +19 lines, -19 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/frame_classify.c View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/get_sync_seq.h View 1 chunk +5 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/get_sync_seq.c View 1 2 3 2 chunks +38 lines, -42 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.h View 1 2 3 4 5 1 chunk +4 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -23 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/refiner.h View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/refiner.c View 1 2 3 4 5 6 2 chunks +45 lines, -56 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/expand.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/audio_device/android/audio_manager.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/modules/audio_device/android/audio_manager_unittest.cc View 4 chunks +8 lines, -7 lines 0 comments Download
M webrtc/modules/audio_device/android/fine_audio_buffer.h View 3 chunks +7 lines, -7 lines 0 comments Download
M webrtc/modules/audio_device/android/fine_audio_buffer.cc View 4 chunks +9 lines, -9 lines 0 comments Download
M webrtc/modules/audio_device/android/opensles_player.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_device/android/opensles_player.cc View 4 chunks +8 lines, -6 lines 0 comments Download
M webrtc/modules/audio_device/include/audio_device_defines.h View 1 2 chunks +8 lines, -8 lines 0 comments Download
M webrtc/modules/audio_device/ios/audio_device_ios.mm View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
Peter Kasting
I didn't bother splitting this change into stylistic, functional, and type change phases since it's ...
5 years, 3 months ago (2015-08-27 00:39:03 UTC) #3
Andrew MacDonald
lgtm on webrtc/common_audio/signal_processing/
5 years, 3 months ago (2015-08-27 02:38:17 UTC) #4
niklas.enbom
audio_device lgtm On 2015/08/27 02:38:17, Andrew MacDonald wrote: > lgtm on webrtc/common_audio/signal_processing/
5 years, 3 months ago (2015-08-27 15:50:18 UTC) #5
hlundin-webrtc
4 nits, otherwise lgtm. Thanks! https://codereview.webrtc.org/1305983003/diff/100001/webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c File webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c (right): https://codereview.webrtc.org/1305983003/diff/100001/webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c#newcode27 webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c:27: size_t diff = (array[i] ...
5 years, 3 months ago (2015-08-28 06:48:19 UTC) #6
Peter Kasting
Added consts. (I love local const but it's discouraged in Chromium, so I never get ...
5 years, 3 months ago (2015-08-28 18:58:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305983003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305983003/120001
5 years, 3 months ago (2015-08-28 18:58:32 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_gn on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_gn/builds/5288) linux_rel on tryserver.webrtc (JOB_FAILED, ...
5 years, 3 months ago (2015-08-28 18:59:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305983003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305983003/140001
5 years, 3 months ago (2015-08-28 19:02:47 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_gn_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_gn_rel/builds/5341)
5 years, 3 months ago (2015-08-28 19:08:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305983003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305983003/160001
5 years, 3 months ago (2015-08-28 19:40:23 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 3 months ago (2015-08-28 21:40:29 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305983003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305983003/160001
5 years, 3 months ago (2015-08-28 21:58:49 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 3 months ago (2015-08-28 23:58:57 UTC) #26
Peter Kasting
5 years, 3 months ago (2015-08-29 00:31:22 UTC) #27
Message was sent while issue was closed.
Committed patchset #9 (id:160001) manually as
1380e266ff48be9718ce0867cfd65058cb09c5fc (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698