|
Misc. small cleanups.
* Better param names
* Avoid using negative values for (bogus) placeholder channel counts (mostly in tests). Since channels will be changing to size_t, negative values will be illegal; it's sufficient to use 0 in these cases.
* Use arraysize()
* Use size_t for counting frames, samples, blocks, buffers, and bytes -- most of these are already size_t in most places, this just fixes some stragglers
* reinterpret_cast<int64_t>(void*) is not necessarily safe; use uintptr_t instead
* Remove unnecessary code, e.g. dead code, needlessly long/repetitive code, or function overrides that exactly match the base definition
* Fix indenting
* Use uint32_t for timestamps (matching how it's already a uint32_t in most places)
* Spelling
* RTC_CHECK_EQ(expected, actual)
* Rewrap
* Use .empty()
* Be more pedantic about matching int/int32_t/
* Remove pointless consts on input parameters to functions
* Add missing sanity checks
All this was found in the course of constructing https://codereview.webrtc.org/1316523002/ , and is being landed separately first.
BUG=none
TEST=none
Committed: https://crrev.com/25702cb1628941427fa55e528f53483f239ae011
Cr-Commit-Position: refs/heads/master@{#11191}
Total comments: 18
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+445 lines, -608 lines) |
Patch |
 |
M |
talk/media/base/codec.h
|
View
|
1
2
3
|
2 chunks |
+13 lines, -3 lines |
0 comments
|
Download
|
 |
M |
talk/media/base/codec.cc
|
View
|
1
2
3
|
2 chunks |
+21 lines, -19 lines |
0 comments
|
Download
|
 |
M |
webrtc/audio/audio_receive_stream_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/audio/audio_send_stream_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/audio_converter_unittest.cc
|
View
|
1
|
4 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/blocker_unittest.cc
|
View
|
|
10 chunks |
+35 lines, -34 lines |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/lapped_transform_unittest.cc
|
View
|
|
8 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/real_fourier.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/real_fourier.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/real_fourier_unittest.cc
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/wav_file.h
|
View
|
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/wav_file.cc
|
View
|
|
5 chunks |
+7 lines, -9 lines |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/wav_file_unittest.cc
|
View
|
|
5 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/wav_header.h
|
View
|
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/wav_header.cc
|
View
|
1
2
|
6 chunks |
+24 lines, -23 lines |
0 comments
|
Download
|
 |
M |
webrtc/common_audio/wav_header_unittest.cc
|
View
|
|
6 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/acm2/acm_codec_database.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/acm2/acm_resampler.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.cc
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/codecs/isac/fix/test/isac_speed_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc
|
View
|
|
2 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/codecs/opus/opus_speed_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/codecs/tools/audio_codec_speed_test.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/codecs/tools/audio_codec_speed_test.cc
|
View
|
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/include/audio_coding_module.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/test/opus_test.h
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_coding/test/opus_test.cc
|
View
|
|
4 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_device/dummy/file_audio_device.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_device/test/audio_device_test_api.cc
|
View
|
|
1 chunk |
+0 lines, -23 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_device/test/func_test_manager.h
|
View
|
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_device/test/func_test_manager.cc
|
View
|
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/audio_buffer.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/audio_processing_impl_locking_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/common.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/echo_cancellation_impl.cc
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/echo_control_mobile_impl.cc
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/gain_control_impl.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/noise_suppression_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/test/audio_processing_unittest.cc
|
View
|
1
2
3
|
35 chunks |
+60 lines, -68 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/test/test_utils.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/test/test_utils.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/test/unpack.cc
|
View
|
|
2 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/media_file/media_file_utility.h
|
View
|
|
4 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/media_file/media_file_utility.cc
|
View
|
1
2
3
4
|
42 chunks |
+119 lines, -215 lines |
0 comments
|
Download
|
 |
M |
webrtc/system_wrappers/include/aligned_array.h
|
View
|
|
2 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
webrtc/system_wrappers/source/aligned_array_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 30 (8 generated)
|