Switch C++-style C headers with their C equivalents.
The C++ headers define the C functions within the std:: namespace, but we mainly don't use the std:: namespace for C functions. Therefore we should include the C headers. BUG=1833 R=tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1917004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4486 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
c3d93c6921
commit
12dc1a38ca
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/common_audio/resampler/include/push_resampler.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <string.h>
|
||||
|
||||
#include "webrtc/common_audio/include/audio_util.h"
|
||||
#include "webrtc/common_audio/resampler/include/resampler.h"
|
||||
|
@ -10,8 +10,9 @@
|
||||
|
||||
#include "webrtc/common_audio/resampler/push_sinc_resampler.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace webrtc {
|
||||
@ -62,7 +63,7 @@ int PushSincResampler::Resample(const int16_t* source,
|
||||
resampler_->Resample(destination_frames_, float_buffer_.get());
|
||||
for (int i = 0; i < destination_frames_; ++i) {
|
||||
float clipped = std::max(std::min(float_buffer_[i], 32767.0f), -32768.0f);
|
||||
destination[i] = static_cast<int16_t>(std::floor(clipped + 0.5));
|
||||
destination[i] = static_cast<int16_t>(floor(clipped + 0.5));
|
||||
}
|
||||
source_ptr_ = NULL;
|
||||
return destination_frames_;
|
||||
|
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <cmath>
|
||||
#include <math.h>
|
||||
|
||||
#include "testing/gmock/include/gmock/gmock.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
@ -82,7 +82,7 @@ TEST_P(PushSincResamplerTest, Resample) {
|
||||
resampler_source.Run(input_samples, source.get());
|
||||
for (int i = 0; i < kNumBlocks; ++i) {
|
||||
for (int j = 0; j < input_block_size; ++j) {
|
||||
source_int[j] = static_cast<int16_t>(std::floor(32767 *
|
||||
source_int[j] = static_cast<int16_t>(floor(32767 *
|
||||
source[i * input_block_size + j] + 0.5));
|
||||
}
|
||||
EXPECT_EQ(output_block_size,
|
||||
|
@ -90,8 +90,9 @@
|
||||
#include "webrtc/system_wrappers/interface/cpu_features_wrapper.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <limits>
|
||||
|
||||
namespace webrtc {
|
||||
|
@ -14,7 +14,7 @@
|
||||
// MSVC++ requires this to be set before any other includes to get M_PI.
|
||||
#define _USE_MATH_DEFINES
|
||||
|
||||
#include <cmath>
|
||||
#include <math.h>
|
||||
|
||||
#include "testing/gmock/include/gmock/gmock.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include "webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <math.h>
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
|
@ -8,7 +8,8 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
@ -10,8 +10,9 @@
|
||||
|
||||
#include "webrtc/common_video/plane.h"
|
||||
|
||||
#include <string.h> // memcpy
|
||||
|
||||
#include <algorithm> // swap
|
||||
#include <cstring> // memcpy
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
|
@ -10,8 +10,9 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/main/source/nack.h"
|
||||
|
||||
#include <assert.h> // For assert.
|
||||
|
||||
#include <algorithm> // For std::max.
|
||||
#include <cassert> // For assert.
|
||||
|
||||
#include "webrtc/modules/interface/module_common_types.h"
|
||||
#include "webrtc/system_wrappers/interface/logging.h"
|
||||
|
@ -10,11 +10,11 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/main/test/APITest.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <cctype>
|
||||
#include <iostream>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "PCMFile.h"
|
||||
|
||||
#include <cctype>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -11,8 +11,9 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_TEST_PCMFILE_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_MAIN_TEST_PCMFILE_H_
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "module_common_types.h"
|
||||
|
@ -10,7 +10,8 @@
|
||||
|
||||
#include "TestFEC.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "audio_coding_module_typedefs.h"
|
||||
|
@ -10,7 +10,8 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/main/test/TestStereo.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
@ -13,8 +13,8 @@
|
||||
|
||||
#include "typedefs.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
class TimedTrace {
|
||||
public:
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "TwoWayCommunication.h"
|
||||
|
||||
#include <cctype>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -10,9 +10,9 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/main/interface/audio_coding_module.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
||||
#include "gflags/gflags.h"
|
||||
|
@ -10,14 +10,14 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/main/test/iSACTest.h"
|
||||
|
||||
#include <cctype>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if _WIN32
|
||||
#include <windows.h>
|
||||
#elif WEBRTC_LINUX
|
||||
#include <ctime>
|
||||
#include <time.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
@ -10,9 +10,9 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/main/interface/audio_coding_module.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
@ -10,7 +10,8 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/main/test/opus_test.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
@ -35,14 +35,14 @@
|
||||
#include <vector>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef WEBRTC_LINUX
|
||||
#include <netinet/in.h>
|
||||
#include <assert.h>
|
||||
#include <libgen.h>
|
||||
#include <cassert>
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
//#include "vld.h"
|
||||
|
@ -11,12 +11,12 @@
|
||||
//TODO(hlundin): Reformat file to meet style guide.
|
||||
|
||||
/* header includes */
|
||||
#include "typedefs.h"
|
||||
#include "stdio.h"
|
||||
#include "typedefs.h"
|
||||
#include "webrtc_neteq.h" // needed for enum WebRtcNetEQDecoder
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <cassert>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <winsock2.h>
|
||||
|
@ -11,8 +11,7 @@
|
||||
#include "webrtc/modules/audio_coding/neteq4/audio_decoder_impl.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <cstring> // memmove
|
||||
#include <string.h> // memmove
|
||||
|
||||
#include "webrtc/modules/audio_coding/codecs/cng/include/webrtc_cng.h"
|
||||
#include "webrtc/modules/audio_coding/codecs/g711/include/g711_interface.h"
|
||||
|
@ -11,7 +11,8 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_AUDIO_MULTI_VECTOR_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_AUDIO_MULTI_VECTOR_H_
|
||||
|
||||
#include <cstring> // Access to size_t.
|
||||
#include <string.h> // Access to size_t.
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/audio_vector.h"
|
||||
|
@ -11,7 +11,8 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_AUDIO_VECTOR_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_AUDIO_VECTOR_H_
|
||||
|
||||
#include <cstring> // Access to size_t.
|
||||
#include <string.h> // Access to size_t.
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/system_wrappers/interface/constructor_magic.h"
|
||||
|
@ -11,9 +11,9 @@
|
||||
#include "webrtc/modules/audio_coding/neteq4/background_noise.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h> // memcpy
|
||||
|
||||
#include <algorithm> // min, max
|
||||
#include <cstring> // memcpy
|
||||
|
||||
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
|
||||
#include "webrtc/modules/audio_coding/neteq4/audio_multi_vector.h"
|
||||
|
@ -11,7 +11,7 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_BACKGROUND_NOISE_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_BACKGROUND_NOISE_H_
|
||||
|
||||
#include <cstring> // size_t
|
||||
#include <string.h> // size_t
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/audio_multi_vector.h"
|
||||
#include "webrtc/system_wrappers/interface/constructor_magic.h"
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/buffer_level_filter.h"
|
||||
|
||||
#include <cmath> // Access to pow function.
|
||||
#include <math.h> // Access to pow function.
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
@ -11,7 +11,8 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_DELAY_MANAGER_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_DELAY_MANAGER_H_
|
||||
|
||||
#include <cstring> // Provide access to size_t.
|
||||
#include <string.h> // Provide access to size_t.
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/interface/audio_decoder.h"
|
||||
|
@ -11,7 +11,8 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_DELAY_PEAK_DETECTOR_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_DELAY_PEAK_DETECTOR_H_
|
||||
|
||||
#include <cstring> // size_t
|
||||
#include <string.h> // size_t
|
||||
|
||||
#include <list>
|
||||
|
||||
#include "webrtc/system_wrappers/interface/constructor_magic.h"
|
||||
|
@ -11,9 +11,9 @@
|
||||
#include "webrtc/modules/audio_coding/neteq4/dsp_helper.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h> // Access to memset.
|
||||
|
||||
#include <algorithm> // Access to min, max.
|
||||
#include <cstring> // Access to memset.
|
||||
|
||||
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_DSP_HELPER_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_DSP_HELPER_H_
|
||||
|
||||
#include <cstring> // Access to size_t.
|
||||
#include <string.h> // Access to size_t.
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/audio_multi_vector.h"
|
||||
#include "webrtc/system_wrappers/interface/constructor_magic.h"
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/dtmf_tone_generator.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <math.h>
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "webrtc/modules/audio_coding/neteq4/audio_multi_vector.h"
|
||||
|
@ -11,9 +11,9 @@
|
||||
#include "webrtc/modules/audio_coding/neteq4/expand.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h> // memset
|
||||
|
||||
#include <algorithm> // min, max
|
||||
#include <cstring> // memset
|
||||
#include <limits> // numeric_limits<T>
|
||||
|
||||
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
|
||||
|
@ -11,7 +11,8 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_INTERFACE_NETEQ_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_INTERFACE_NETEQ_H_
|
||||
|
||||
#include <cstring> // Provide access to size_t.
|
||||
#include <string.h> // Provide access to size_t.
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/interface/audio_decoder.h"
|
||||
|
@ -11,9 +11,9 @@
|
||||
#include "webrtc/modules/audio_coding/neteq4/merge.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h> // memmove, memcpy, memset, size_t
|
||||
|
||||
#include <algorithm> // min, max
|
||||
#include <cstring> // memmove, memcpy, memset, size_t
|
||||
|
||||
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
|
||||
#include "webrtc/modules/audio_coding/neteq4/audio_multi_vector.h"
|
||||
|
@ -10,8 +10,9 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/normal.h"
|
||||
|
||||
#include <string.h> // memset, memcpy
|
||||
|
||||
#include <algorithm> // min
|
||||
#include <cstring> // memset, memcpy
|
||||
|
||||
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
|
||||
#include "webrtc/modules/audio_coding/codecs/cng/include/webrtc_cng.h"
|
||||
|
@ -11,7 +11,8 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_NORMAL_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_NORMAL_H_
|
||||
|
||||
#include <cstring> // Access to size_t.
|
||||
#include <string.h> // Access to size_t.
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/audio_multi_vector.h"
|
||||
|
@ -11,7 +11,7 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_RANDOM_VECTOR_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_RANDOM_VECTOR_H_
|
||||
|
||||
#include <cstring> // size_t
|
||||
#include <string.h> // size_t
|
||||
|
||||
#include "webrtc/system_wrappers/interface/constructor_magic.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
|
@ -11,8 +11,7 @@
|
||||
#include "webrtc/modules/audio_coding/neteq4/statistics_calculator.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <cstring> // memset
|
||||
#include <string.h> // memset
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/decision_logic.h"
|
||||
#include "webrtc/modules/audio_coding/neteq4/delay_manager.h"
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/typedefs.h"
|
||||
// needed for NetEqDecoder
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
|
@ -12,8 +12,7 @@
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_TIME_STRETCH_H_
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <cstring> // memset, size_t
|
||||
#include <string.h> // memset, size_t
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/audio_multi_vector.h"
|
||||
#include "webrtc/system_wrappers/interface/constructor_magic.h"
|
||||
|
@ -11,7 +11,8 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_TOOLS_INPUT_AUDIO_FILE_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_TOOLS_INPUT_AUDIO_FILE_H_
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "webrtc/system_wrappers/interface/constructor_magic.h"
|
||||
|
@ -8,9 +8,10 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/modules/audio_device/audio_device_utility.h"
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/modules/audio_device/audio_device_config.h"
|
||||
#include "webrtc/modules/audio_device/audio_device_utility.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/modules/audio_device/audio_device_config.h"
|
||||
#include "webrtc/modules/audio_device/audio_device_utility.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/modules/audio_device/linux/audio_mixer_manager_alsa_linux.h"
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/modules/audio_device/linux/audio_mixer_manager_pulse_linux.h"
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
|
||||
#include <ApplicationServices/ApplicationServices.h>
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
#include <libkern/OSAtomic.h> // OSAtomicCompareAndSwap()
|
||||
#include <mach/mach.h> // mach_task_self()
|
||||
#include <sys/sysctl.h> // sysctlbyname()
|
||||
|
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <cmath>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include <windows.h>
|
||||
#include <objbase.h> // CoTaskMemAlloc, CoTaskMemFree
|
||||
#include <strsafe.h> // StringCchCopy(), StringCchCat(), StringCchPrintf()
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
// Avoids the need of Windows 7 SDK
|
||||
#ifndef WAVE_MAPPED_DEFAULT_COMMUNICATION_DEVICE
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "webrtc/modules/audio_device/win/audio_mixer_manager_win.h"
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
|
||||
#include <cassert> // assert()
|
||||
#include <assert.h> // assert()
|
||||
#include <strsafe.h> // StringCchCopy(), StringCchCat(), StringCchPrintf()
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -12,8 +12,8 @@
|
||||
|
||||
#include "webrtc/modules/audio_processing/aec/include/echo_cancellation.h"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <ctime>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
extern "C" {
|
||||
#include "webrtc/modules/audio_processing/aec/aec_core.h"
|
||||
|
@ -10,8 +10,8 @@
|
||||
|
||||
#include "webrtc/modules/audio_processing/echo_control_mobile_impl.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "webrtc/modules/audio_processing/aecm/include/echo_control_mobile.h"
|
||||
#include "webrtc/modules/audio_processing/audio_buffer.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/audio_processing/gain_control_impl.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/modules/audio_processing/agc/include/gain_control.h"
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/audio_processing/high_pass_filter_impl.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/audio_processing/noise_suppression_impl.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
#if defined(WEBRTC_NS_FLOAT)
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/audio_processing/processing_component.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/modules/audio_processing/audio_processing_impl.h"
|
||||
|
||||
|
@ -14,8 +14,8 @@ extern "C" {
|
||||
#include "webrtc/modules/audio_processing/utility/ring_buffer.h"
|
||||
}
|
||||
|
||||
#include <cstdlib>
|
||||
#include <ctime>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
#include "webrtc/system_wrappers/interface/scoped_ptr.h"
|
||||
@ -51,9 +51,9 @@ static void RandomStressTest(int** data_ptr) {
|
||||
const int kNumOps = 10000;
|
||||
const int kMaxBufferSize = 1000;
|
||||
|
||||
unsigned int seed = std::time(NULL);
|
||||
unsigned int seed = time(NULL);
|
||||
printf("seed=%u\n", seed);
|
||||
std::srand(seed);
|
||||
srand(seed);
|
||||
for (int i = 0; i < kNumTests; i++) {
|
||||
const int buffer_size = std::max(rand() % kMaxBufferSize, 1);
|
||||
scoped_array<int> write_data(new int[buffer_size]);
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/audio_processing/voice_detection_impl.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/common_audio/vad/include/webrtc_vad.h"
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
|
@ -10,8 +10,9 @@
|
||||
|
||||
#include "webrtc/modules/desktop_capture/desktop_region.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/desktop_capture/window_capturer.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/modules/desktop_capture/desktop_frame.h"
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/desktop_capture/window_capturer.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/modules/desktop_capture/desktop_frame.h"
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/desktop_capture/window_capturer.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
#include <windows.h>
|
||||
|
||||
#include "webrtc/modules/desktop_capture/desktop_frame_win.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
#include <sys/shm.h>
|
||||
|
||||
#include "webrtc/system_wrappers/interface/logging.h"
|
||||
|
@ -11,8 +11,8 @@
|
||||
#ifndef MODULE_COMMON_TYPES_H
|
||||
#define MODULE_COMMON_TYPES_H
|
||||
|
||||
#include <cassert>
|
||||
#include <cstring> // memcpy
|
||||
#include <assert.h>
|
||||
#include <string.h> // memcpy
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
@ -10,10 +10,11 @@
|
||||
|
||||
#include "webrtc/modules/remote_bitrate_estimator/remote_rate_control.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
|
||||
|
@ -10,9 +10,10 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <iterator>
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h"
|
||||
|
@ -10,8 +10,8 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/fec_private_tables_bursty.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/fec_private_tables_random.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/receiver_fec.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h"
|
||||
|
||||
#include <cassert> //assert
|
||||
#include <assert.h> //assert
|
||||
#include <string.h> //memset
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h"
|
||||
|
||||
#include <cassert> // assert
|
||||
#include <assert.h> // assert
|
||||
#include <string.h> // memset
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
|
||||
|
@ -10,11 +10,12 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h"
|
||||
|
||||
#include <algorithm> // min
|
||||
#include <cassert> // assert
|
||||
#include <cstdlib> // rand
|
||||
#include <assert.h> // assert
|
||||
#include <stdlib.h> // rand
|
||||
#include <string.h> // memcpy
|
||||
|
||||
#include <algorithm> // min
|
||||
|
||||
#include "webrtc/common_types.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h"
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
|
@ -10,9 +10,9 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath> // ceil
|
||||
#include <cstring> // memcpy
|
||||
#include <assert.h>
|
||||
#include <math.h> // ceil
|
||||
#include <string.h> // memcpy
|
||||
|
||||
namespace webrtc {
|
||||
// RTCPParserV2 : currently read only
|
||||
|
@ -11,7 +11,7 @@
|
||||
#ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_UTILITY_H_
|
||||
#define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_UTILITY_H_
|
||||
|
||||
#include <cstddef> // size_t, ptrdiff_t
|
||||
#include <stddef.h> // size_t, ptrdiff_t
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_config.h"
|
||||
|
@ -10,9 +10,9 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8.h"
|
||||
|
||||
#include <assert.h> // assert
|
||||
#include <string.h> // memcpy
|
||||
|
||||
#include <cassert> // assert
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/vp8_partition_aggregator.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/common_types.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h"
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_packet_history.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cstring> // memset
|
||||
#include <string.h> // memset
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_receiver.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -10,10 +10,9 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h"
|
||||
|
||||
#include <assert.h> // assert
|
||||
#include <math.h> // pow()
|
||||
|
||||
#include <cassert> // assert
|
||||
#include <cstring> // memcpy()
|
||||
#include <string.h> // memcpy()
|
||||
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <stdlib.h>
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
|
@ -12,8 +12,8 @@
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include <cassert> // assert
|
||||
#include <cstring> // memcpy()
|
||||
#include <assert.h> // assert
|
||||
#include <string.h> // memcpy()
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/receiver_fec.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "webrtc/common_types.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_sender.h"
|
||||
|
||||
#include <cstdlib> // srand
|
||||
#include <stdlib.h> // srand
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_packet_history.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_sender_audio.h"
|
||||
|
@ -11,8 +11,9 @@
|
||||
#ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_
|
||||
#define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <map>
|
||||
|
||||
#include "webrtc/common_types.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_sender_audio.h"
|
||||
|
||||
#include <cassert> //assert
|
||||
#include <assert.h> //assert
|
||||
#include <string.h> //memcpy
|
||||
|
||||
#include "webrtc/system_wrappers/interface/trace_event.h"
|
||||
|
@ -10,9 +10,9 @@
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath> // ceil
|
||||
#include <cstring> // memcpy
|
||||
#include <assert.h>
|
||||
#include <math.h> // ceil
|
||||
#include <string.h> // memcpy
|
||||
|
||||
#if defined(_WIN32)
|
||||
// Order for these headers are important
|
||||
|
@ -11,7 +11,7 @@
|
||||
#ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_UTILITY_H_
|
||||
#define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_UTILITY_H_
|
||||
|
||||
#include <cstddef> // size_t, ptrdiff_t
|
||||
#include <stddef.h> // size_t, ptrdiff_t
|
||||
|
||||
#include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h"
|
||||
|
@ -13,11 +13,12 @@
|
||||
* functions in ForwardErrorCorrection directly.
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <ctime>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <list>
|
||||
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "webrtc/modules/utility/source/rtp_dump_impl.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "webrtc/modules/interface/module_common_types.h"
|
||||
#include "webrtc/system_wrappers/interface/tick_util.h"
|
||||
|
@ -10,8 +10,8 @@
|
||||
|
||||
#include "webrtc/modules/video_coding/codecs/test/packet_manipulator.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
namespace webrtc {
|
||||
namespace test {
|
||||
|
@ -11,7 +11,7 @@
|
||||
#ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_PACKET_MANIPULATOR_H_
|
||||
#define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_PACKET_MANIPULATOR_H_
|
||||
|
||||
#include <cstdlib>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "webrtc/modules/video_coding/codecs/interface/video_codec_interface.h"
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
|
@ -10,8 +10,8 @@
|
||||
|
||||
#include "webrtc/modules/video_coding/codecs/test/predictive_packet_manipulator.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "webrtc/test/testsupport/packet_reader.h"
|
||||
|
||||
|
@ -10,9 +10,10 @@
|
||||
|
||||
#include "webrtc/modules/video_coding/codecs/test/stats.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <algorithm> // min_element, max_element
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
|
||||
namespace webrtc {
|
||||
namespace test {
|
||||
|
@ -10,8 +10,9 @@
|
||||
|
||||
#include "webrtc/modules/video_coding/codecs/test/videoprocessor.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <limits>
|
||||
#include <vector>
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user