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

Issue 1174813003: Prepare to convert various types to size_t. (Closed)

Created:
5 years, 6 months ago by Peter Kasting
Modified:
5 years, 6 months ago
CC:
kwiberg-webrtc, aluebs-webrtc, Andrew MacDonald, bjornv1, hlundin-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

Prepare to convert various types to size_t. This makes some behaviorally-invariant changes to make certain code that currently only works correctly with signed types work safely regardless of the signedness of the types in question. This is preparation for a future change that will convert a variety of types to size_t. There are also some formatting changes (e.g. converting "enum hack" usage to real consts) to make it simpler to just change "int" to "size_t" in the future to change the types of those constants. BUG=none R=andrew@webrtc.org, juberti@webrtc.org, kwiberg@webrtc.org TBR=ajm Committed: https://crrev.com/f045e4da43e671ae511aa1d9b6ef2968256a745d Cr-Commit-Position: refs/heads/master@{#9413}

Patch Set 1 #

Patch Set 2 : Fix MSVC warning #

Total comments: 9

Patch Set 3 : Review comments + resync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -129 lines) Patch
M talk/app/webrtc/test/fakeaudiocapturemodule.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/common_audio/audio_converter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/real_fourier.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/common_audio/resampler/sinc_resampler.h View 1 chunk +14 lines, -16 lines 0 comments Download
M webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M webrtc/common_audio/signal_processing/auto_correlation.c View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/signal_processing/dot_product_with_scale.c View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/signal_processing/levinson_durbin.c View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/signal_processing/min_max_operations_neon.c View 5 chunks +5 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_decoder.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/test/testG711.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/test/testG722.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy_calc.c View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/cb_search.c View 2 chunks +5 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/decode_residual.c View 5 chunks +5 lines, -7 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/do_plc.c View 2 chunks +9 lines, -12 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/encode.c View 1 2 3 chunks +5 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.c View 1 chunk +2 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/test/iLBC_test.c View 2 chunks +8 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/test/iLBC_testLib.c View 2 chunks +8 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/source/codec.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/source/decode_plc.c View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/source/lattice.c View 1 chunk +6 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_armv7.S View 1 chunk +10 lines, -10 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_c.c View 1 chunk +6 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter.c View 3 chunks +2 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/test/isac_speed_test.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/expand.cc View 1 2 4 chunks +5 lines, -8 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/merge.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/normal.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/test/RTPencode.cc View 1 chunk +4 lines, -1 line 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/interface/module_common_types.h View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
Peter Kasting
This is a copy of the latest patch on https://webrtc-codereview.appspot.com/53649004/ , moved here so I ...
5 years, 6 months ago (2015-06-10 00:58:54 UTC) #2
Andrew MacDonald
lgtm https://codereview.webrtc.org/1174813003/diff/20001/webrtc/modules/interface/module_common_types.h File webrtc/modules/interface/module_common_types.h (right): https://codereview.webrtc.org/1174813003/diff/20001/webrtc/modules/interface/module_common_types.h#newcode446 webrtc/modules/interface/module_common_types.h:446: const int length = samples_per_channel * num_channels; Not ...
5 years, 6 months ago (2015-06-10 01:27:37 UTC) #3
Peter Kasting
https://codereview.webrtc.org/1174813003/diff/20001/webrtc/modules/interface/module_common_types.h File webrtc/modules/interface/module_common_types.h (right): https://codereview.webrtc.org/1174813003/diff/20001/webrtc/modules/interface/module_common_types.h#newcode446 webrtc/modules/interface/module_common_types.h:446: const int length = samples_per_channel * num_channels; On 2015/06/10 ...
5 years, 6 months ago (2015-06-10 01:58:37 UTC) #4
juberti1
lgtm
5 years, 6 months ago (2015-06-10 05:13:45 UTC) #5
kwiberg-webrtc
lgtm for webrtc/modules/audio_coding/ https://codereview.webrtc.org/1174813003/diff/20001/webrtc/modules/audio_coding/codecs/ilbc/encode.c File webrtc/modules/audio_coding/codecs/ilbc/encode.c (right): https://codereview.webrtc.org/1174813003/diff/20001/webrtc/modules/audio_coding/codecs/ilbc/encode.c#newcode431 webrtc/modules/audio_coding/codecs/ilbc/encode.c:431: start_count = (Nfor > 1) ? ...
5 years, 6 months ago (2015-06-10 07:49:10 UTC) #6
Peter Kasting
https://codereview.webrtc.org/1174813003/diff/20001/webrtc/modules/audio_coding/codecs/ilbc/encode.c File webrtc/modules/audio_coding/codecs/ilbc/encode.c (right): https://codereview.webrtc.org/1174813003/diff/20001/webrtc/modules/audio_coding/codecs/ilbc/encode.c#newcode431 webrtc/modules/audio_coding/codecs/ilbc/encode.c:431: start_count = (Nfor > 1) ? 0 : (2 ...
5 years, 6 months ago (2015-06-11 04:14:53 UTC) #7
Peter Kasting
Committed patchset #3 (id:40001) manually as f045e4da43e671ae511aa1d9b6ef2968256a745d (presubmit successful).
5 years, 6 months ago (2015-06-11 04:15:59 UTC) #8
commit-bot: I haz the power
5 years, 6 months ago (2015-06-11 04:16:03 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f045e4da43e671ae511aa1d9b6ef2968256a745d
Cr-Commit-Position: refs/heads/master@{#9413}

Powered by Google App Engine
This is Rietveld 408576698