Delete root header file typedef.h.

Usage replaced with stdint.h, rtc_base/system/arch.h and
rtc_base/system/unused.h, as appropriate.

Bug: webrtc:6854
Change-Id: I97225465d14b969903d92979e2df3c3c05d35f18
Reviewed-on: https://webrtc-review.googlesource.com/90249
Reviewed-by: Niklas Enbom <niklas.enbom@webrtc.org>
Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24100}
This commit is contained in:
Niels Möller 2018-07-25 16:05:48 +02:00 committed by Commit Bot
parent e41c433502
commit a12c42a6b2
435 changed files with 203 additions and 540 deletions

View file

@ -384,22 +384,11 @@ if (!build_with_chromium) {
} }
} }
rtc_source_set("typedefs") {
sources = [
"typedefs.h",
]
deps = [
"rtc_base/system:arch",
"rtc_base/system:unused",
]
}
rtc_source_set("webrtc_common") { rtc_source_set("webrtc_common") {
sources = [ sources = [
"common_types.h", "common_types.h",
] ]
deps = [ deps = [
":typedefs",
"api:array_view", "api:array_view",
"api/video:video_bitrate_allocation", "api/video:video_bitrate_allocation",
"rtc_base:checks", "rtc_base:checks",

View file

@ -111,7 +111,6 @@ rtc_static_library("libjingle_peerconnection_api") {
# Basically, don't add stuff here. You might break sensitive downstream # Basically, don't add stuff here. You might break sensitive downstream
# targets like pnacl. API should not depend on anything outside of this # targets like pnacl. API should not depend on anything outside of this
# file, really. All these should arguably go away in time. # file, really. All these should arguably go away in time.
"..:typedefs",
"..:webrtc_common", "..:webrtc_common",
"../logging:rtc_event_log_api", "../logging:rtc_event_log_api",
"../media:rtc_media_config", "../media:rtc_media_config",

View file

@ -16,7 +16,6 @@ rtc_source_set("audio_frame_api") {
] ]
deps = [ deps = [
"../../:typedefs",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
] ]

View file

@ -12,9 +12,9 @@
#define API_AUDIO_AUDIO_FRAME_H_ #define API_AUDIO_AUDIO_FRAME_H_
#include <stddef.h> #include <stddef.h>
#include <stdint.h>
#include "rtc_base/constructormagic.h" #include "rtc_base/constructormagic.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -31,7 +31,6 @@ rtc_source_set("audio_codecs_api") {
deps = [ deps = [
"..:array_view", "..:array_view",
"../..:webrtc_common", "../..:webrtc_common",
"../../:typedefs",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:deprecation", "../../rtc_base:deprecation",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",

View file

@ -18,7 +18,6 @@
#include "api/array_view.h" #include "api/array_view.h"
#include "rtc_base/buffer.h" #include "rtc_base/buffer.h"
#include "rtc_base/constructormagic.h" #include "rtc_base/constructormagic.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -20,7 +20,6 @@
#include "api/array_view.h" #include "api/array_view.h"
#include "rtc_base/buffer.h" #include "rtc_base/buffer.h"
#include "rtc_base/deprecation.h" #include "rtc_base/deprecation.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -25,7 +25,6 @@
#include "common_types.h" // NOLINT(build/include) #include "common_types.h" // NOLINT(build/include)
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/deprecation.h" #include "rtc_base/deprecation.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -84,7 +84,6 @@ rtc_source_set("video_bitrate_allocation") {
"video_bitrate_allocation.h", "video_bitrate_allocation.h",
] ]
deps = [ deps = [
"../..:typedefs",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:safe_conversions", "../../rtc_base:safe_conversions",
"../../rtc_base:stringutils", "../../rtc_base:stringutils",

View file

@ -16,7 +16,6 @@
#include <vector> #include <vector>
#include "absl/types/optional.h" #include "absl/types/optional.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -22,7 +22,6 @@ rtc_static_library("audio_frame_operations") {
deps = [ deps = [
"../..:webrtc_common", "../..:webrtc_common",
"../../:typedefs",
"../../api/audio:audio_frame_api", "../../api/audio:audio_frame_api",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",

View file

@ -14,7 +14,6 @@
#include <stddef.h> #include <stddef.h>
#include "api/audio/audio_frame.h" #include "api/audio/audio_frame.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -30,7 +30,6 @@ rtc_source_set("call_interfaces") {
":rtp_interfaces", ":rtp_interfaces",
":video_stream_api", ":video_stream_api",
"..:webrtc_common", "..:webrtc_common",
"../:typedefs",
"../api:fec_controller_api", "../api:fec_controller_api",
"../api:libjingle_peerconnection_api", "../api:libjingle_peerconnection_api",
"../api:transport_api", "../api:transport_api",
@ -236,7 +235,6 @@ rtc_source_set("video_stream_api") {
] ]
deps = [ deps = [
":rtp_interfaces", ":rtp_interfaces",
"../:typedefs",
"../:webrtc_common", "../:webrtc_common",
"../api:libjingle_peerconnection_api", "../api:libjingle_peerconnection_api",
"../api:transport_api", "../api:transport_api",
@ -258,7 +256,6 @@ rtc_source_set("fake_network") {
] ]
deps = [ deps = [
":call_interfaces", ":call_interfaces",
"..:typedefs",
"..:webrtc_common", "..:webrtc_common",
"../api:simulated_network_api", "../api:simulated_network_api",
"../api:transport_api", "../api:transport_api",

View file

@ -24,7 +24,6 @@
#include "call/rtp_config.h" #include "call/rtp_config.h"
#include "common_types.h" // NOLINT(build/include) #include "common_types.h" // NOLINT(build/include)
#include "rtc_base/scoped_ref_ptr.h" #include "rtc_base/scoped_ref_ptr.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {
class AudioSinkInterface; class AudioSinkInterface;

View file

@ -25,7 +25,6 @@
#include "call/rtp_config.h" #include "call/rtp_config.h"
#include "modules/audio_processing/include/audio_processing_statistics.h" #include "modules/audio_processing/include/audio_processing_statistics.h"
#include "rtc_base/scoped_ref_ptr.h" #include "rtc_base/scoped_ref_ptr.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -28,7 +28,6 @@
#include "rtc_base/criticalsection.h" #include "rtc_base/criticalsection.h"
#include "rtc_base/random.h" #include "rtc_base/random.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -55,12 +55,12 @@ rtc_static_library("common_audio") {
":fft4g", ":fft4g",
":sinc_resampler", ":sinc_resampler",
"..:webrtc_common", "..:webrtc_common",
"../:typedefs",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:gtest_prod", "../rtc_base:gtest_prod",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base/memory:aligned_array", "../rtc_base/memory:aligned_array",
"../rtc_base/memory:aligned_malloc", "../rtc_base/memory:aligned_malloc",
"../rtc_base/system:arch",
"../system_wrappers", "../system_wrappers",
"../system_wrappers:cpu_features_api", "../system_wrappers:cpu_features_api",
"//third_party/abseil-cpp/absl/types:optional", "//third_party/abseil-cpp/absl/types:optional",
@ -192,11 +192,11 @@ rtc_source_set("common_audio_c") {
":common_audio_cc", ":common_audio_cc",
":fft4g", ":fft4g",
"..:webrtc_common", "..:webrtc_common",
"../:typedefs",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:compile_assert_c", "../rtc_base:compile_assert_c",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base:sanitizer", "../rtc_base:sanitizer",
"../rtc_base/system:arch",
"../system_wrappers", "../system_wrappers",
"../system_wrappers:cpu_features_api", "../system_wrappers:cpu_features_api",
] ]
@ -218,7 +218,6 @@ rtc_source_set("common_audio_cc") {
deps = [ deps = [
"..:webrtc_common", "..:webrtc_common",
"../:typedefs",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../system_wrappers", "../system_wrappers",
] ]
@ -230,10 +229,10 @@ rtc_source_set("sinc_resampler") {
] ]
deps = [ deps = [
"..:webrtc_common", "..:webrtc_common",
"../:typedefs",
"../rtc_base:gtest_prod", "../rtc_base:gtest_prod",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base/memory:aligned_malloc", "../rtc_base/memory:aligned_malloc",
"../rtc_base/system:arch",
"../system_wrappers", "../system_wrappers",
] ]
} }
@ -257,6 +256,7 @@ rtc_source_set("fir_filter_factory") {
":fir_filter", ":fir_filter",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base/system:arch",
"../system_wrappers:cpu_features_api", "../system_wrappers:cpu_features_api",
] ]
if (current_cpu == "x86" || current_cpu == "x64") { if (current_cpu == "x86" || current_cpu == "x64") {
@ -353,6 +353,7 @@ if (rtc_build_with_neon) {
":common_audio_c", ":common_audio_c",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base/system:arch",
] ]
} }
} }
@ -404,10 +405,10 @@ if (rtc_include_tests) {
":fir_filter_factory", ":fir_filter_factory",
":sinc_resampler", ":sinc_resampler",
"..:webrtc_common", "..:webrtc_common",
"../:typedefs",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base:rtc_base_tests_utils", "../rtc_base:rtc_base_tests_utils",
"../rtc_base/system:arch",
"../system_wrappers:cpu_features_api", "../system_wrappers:cpu_features_api",
"../test:fileutils", "../test:fileutils",
"../test:test_main", "../test:test_main",

View file

@ -10,8 +10,6 @@
#include "common_audio/include/audio_util.h" #include "common_audio/include/audio_util.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {
void FloatToS16(const float* src, size_t size, int16_t* dest) { void FloatToS16(const float* src, size_t size, int16_t* dest) {

View file

@ -13,7 +13,6 @@
#include "rtc_base/arraysize.h" #include "rtc_base/arraysize.h"
#include "test/gmock.h" #include "test/gmock.h"
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {
namespace { namespace {

View file

@ -12,6 +12,7 @@
#include "common_audio/fir_filter_c.h" #include "common_audio/fir_filter_c.h"
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/system/arch.h"
#include "system_wrappers/include/cpu_features_wrapper.h" #include "system_wrappers/include/cpu_features_wrapper.h"
#if defined(WEBRTC_HAS_NEON) #if defined(WEBRTC_HAS_NEON)

View file

@ -17,7 +17,6 @@
#include <limits> #include <limits>
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -13,8 +13,6 @@
#include <memory> #include <memory>
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {
class PushSincResampler; class PushSincResampler;

View file

@ -16,8 +16,7 @@
#define COMMON_AUDIO_RESAMPLER_INCLUDE_RESAMPLER_H_ #define COMMON_AUDIO_RESAMPLER_INCLUDE_RESAMPLER_H_
#include <stddef.h> #include <stddef.h>
#include <stdint.h>
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -15,7 +15,6 @@
#include "common_audio/resampler/sinc_resampler.h" #include "common_audio/resampler/sinc_resampler.h"
#include "rtc_base/constructormagic.h" #include "rtc_base/constructormagic.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -19,7 +19,6 @@
#include "rtc_base/timeutils.h" #include "rtc_base/timeutils.h"
#include "test/gmock.h" #include "test/gmock.h"
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {
namespace { namespace {

View file

@ -93,8 +93,8 @@
#include <limits> #include <limits>
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/system/arch.h"
#include "system_wrappers/include/cpu_features_wrapper.h" #include "system_wrappers/include/cpu_features_wrapper.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -19,7 +19,7 @@
#include "rtc_base/constructormagic.h" #include "rtc_base/constructormagic.h"
#include "rtc_base/gtest_prod_util.h" #include "rtc_base/gtest_prod_util.h"
#include "rtc_base/memory/aligned_malloc.h" #include "rtc_base/memory/aligned_malloc.h"
#include "typedefs.h" // NOLINT(build/include) #include "rtc_base/system/arch.h"
namespace webrtc { namespace webrtc {

View file

@ -23,6 +23,7 @@
#include "common_audio/resampler/sinc_resampler.h" #include "common_audio/resampler/sinc_resampler.h"
#include "common_audio/resampler/sinusoidal_linear_chirp_source.h" #include "common_audio/resampler/sinusoidal_linear_chirp_source.h"
#include "rtc_base/stringize_macros.h" #include "rtc_base/stringize_macros.h"
#include "rtc_base/system/arch.h"
#include "rtc_base/timeutils.h" #include "rtc_base/timeutils.h"
#include "system_wrappers/include/cpu_features_wrapper.h" #include "system_wrappers/include/cpu_features_wrapper.h"
#include "test/gmock.h" #include "test/gmock.h"

View file

@ -17,6 +17,7 @@
#include "common_audio/signal_processing/complex_fft_tables.h" #include "common_audio/signal_processing/complex_fft_tables.h"
#include "common_audio/signal_processing/include/signal_processing_library.h" #include "common_audio/signal_processing/include/signal_processing_library.h"
#include "rtc_base/system/arch.h"
#define CFFTSFT 14 #define CFFTSFT 14
#define CFFTRND 1 #define CFFTRND 1

View file

@ -11,7 +11,7 @@
#ifndef COMMON_AUDIO_SIGNAL_PROCESSING_COMPLEX_FFT_TABLES_H_ #ifndef COMMON_AUDIO_SIGNAL_PROCESSING_COMPLEX_FFT_TABLES_H_
#define COMMON_AUDIO_SIGNAL_PROCESSING_COMPLEX_FFT_TABLES_H_ #define COMMON_AUDIO_SIGNAL_PROCESSING_COMPLEX_FFT_TABLES_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
static const int16_t kSinTable1024[] = { static const int16_t kSinTable1024[] = {
0, 201, 402, 603, 804, 1005, 1206, 1406, 1607, 0, 201, 402, 603, 804, 1005, 1206, 1406, 1607,

View file

@ -9,6 +9,7 @@
*/ */
#include "common_audio/signal_processing/include/signal_processing_library.h" #include "common_audio/signal_processing/include/signal_processing_library.h"
#include "rtc_base/system/arch.h"
#include <arm_neon.h> #include <arm_neon.h>

View file

@ -11,10 +11,9 @@
#ifndef COMMON_AUDIO_SIGNAL_PROCESSING_DOT_PRODUCT_WITH_SCALE_H_ #ifndef COMMON_AUDIO_SIGNAL_PROCESSING_DOT_PRODUCT_WITH_SCALE_H_
#define COMMON_AUDIO_SIGNAL_PROCESSING_DOT_PRODUCT_WITH_SCALE_H_ #define COMMON_AUDIO_SIGNAL_PROCESSING_DOT_PRODUCT_WITH_SCALE_H_
#include <stdint.h>
#include <string.h> #include <string.h>
#include "typedefs.h" // NOLINT(build/include)
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View file

@ -11,7 +11,7 @@
#ifndef COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_REAL_FFT_H_ #ifndef COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_REAL_FFT_H_
#define COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_REAL_FFT_H_ #define COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_REAL_FFT_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
// For ComplexFFT(), the maximum fft order is 10; // For ComplexFFT(), the maximum fft order is 10;
// WebRTC APM uses orders of only 7 and 8. // WebRTC APM uses orders of only 7 and 8.

View file

@ -19,7 +19,6 @@
#include <string.h> #include <string.h>
#include "common_audio/signal_processing/dot_product_with_scale.h" #include "common_audio/signal_processing/dot_product_with_scale.h"
#include "typedefs.h" // NOLINT(build/include)
// Macros specific for the fixed point implementation // Macros specific for the fixed point implementation
#define WEBRTC_SPL_WORD16_MAX 32767 #define WEBRTC_SPL_WORD16_MAX 32767

View file

@ -11,7 +11,6 @@
#include "common_audio/signal_processing/include/real_fft.h" #include "common_audio/signal_processing/include/real_fft.h"
#include "common_audio/signal_processing/include/signal_processing_library.h" #include "common_audio/signal_processing/include/signal_processing_library.h"
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {
namespace { namespace {

View file

@ -16,7 +16,7 @@
#ifndef COMMON_AUDIO_SIGNAL_PROCESSING_RESAMPLE_BY_2_INTERNAL_H_ #ifndef COMMON_AUDIO_SIGNAL_PROCESSING_RESAMPLE_BY_2_INTERNAL_H_
#define COMMON_AUDIO_SIGNAL_PROCESSING_RESAMPLE_BY_2_INTERNAL_H_ #define COMMON_AUDIO_SIGNAL_PROCESSING_RESAMPLE_BY_2_INTERNAL_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
/******************************************************************* /*******************************************************************
* resample_by_2_fast.c * resample_by_2_fast.c

View file

@ -15,7 +15,6 @@
#include "common_audio/vad/include/webrtc_vad.h" #include "common_audio/vad/include/webrtc_vad.h"
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -17,8 +17,7 @@
#define COMMON_AUDIO_VAD_INCLUDE_WEBRTC_VAD_H_ #define COMMON_AUDIO_VAD_INCLUDE_WEBRTC_VAD_H_
#include <stddef.h> #include <stddef.h>
#include <stdint.h>
#include "typedefs.h" // NOLINT(build/include)
typedef struct WebRtcVadInst VadInst; typedef struct WebRtcVadInst VadInst;

View file

@ -15,7 +15,6 @@
#include "common_audio/vad/vad_filterbank.h" #include "common_audio/vad/vad_filterbank.h"
#include "common_audio/vad/vad_gmm.h" #include "common_audio/vad/vad_gmm.h"
#include "common_audio/vad/vad_sp.h" #include "common_audio/vad/vad_sp.h"
#include "typedefs.h" // NOLINT(build/include)
// Spectrum Weighting // Spectrum Weighting
static const int16_t kSpectrumWeight[kNumChannels] = { 6, 8, 10, 12, 14, 16 }; static const int16_t kSpectrumWeight[kNumChannels] = { 6, 8, 10, 12, 14, 16 };

View file

@ -16,7 +16,6 @@
#define COMMON_AUDIO_VAD_VAD_CORE_H_ #define COMMON_AUDIO_VAD_VAD_CORE_H_
#include "common_audio/signal_processing/include/signal_processing_library.h" #include "common_audio/signal_processing/include/signal_processing_library.h"
#include "typedefs.h" // NOLINT(build/include)
enum { kNumChannels = 6 }; // Number of frequency bands (named channels). enum { kNumChannels = 6 }; // Number of frequency bands (named channels).
enum { kNumGaussians = 2 }; // Number of Gaussians per channel in the GMM. enum { kNumGaussians = 2 }; // Number of Gaussians per channel in the GMM.

View file

@ -12,7 +12,6 @@
#include "common_audio/vad/vad_unittest.h" #include "common_audio/vad/vad_unittest.h"
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
extern "C" { extern "C" {
#include "common_audio/vad/vad_core.h" #include "common_audio/vad/vad_core.h"

View file

@ -12,7 +12,6 @@
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "common_audio/signal_processing/include/signal_processing_library.h" #include "common_audio/signal_processing/include/signal_processing_library.h"
#include "typedefs.h" // NOLINT(build/include)
// Constants used in LogOfEnergy(). // Constants used in LogOfEnergy().
static const int16_t kLogConst = 24660; // 160*log10(2) in Q9. static const int16_t kLogConst = 24660; // 160*log10(2) in Q9.

View file

@ -16,7 +16,6 @@
#define COMMON_AUDIO_VAD_VAD_FILTERBANK_H_ #define COMMON_AUDIO_VAD_VAD_FILTERBANK_H_
#include "common_audio/vad/vad_core.h" #include "common_audio/vad/vad_core.h"
#include "typedefs.h" // NOLINT(build/include)
// Takes |data_length| samples of |data_in| and calculates the logarithm of the // Takes |data_length| samples of |data_in| and calculates the logarithm of the
// energy of each of the |kNumChannels| = 6 frequency bands used by the VAD: // energy of each of the |kNumChannels| = 6 frequency bands used by the VAD:

View file

@ -12,7 +12,6 @@
#include "common_audio/vad/vad_unittest.h" #include "common_audio/vad/vad_unittest.h"
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
extern "C" { extern "C" {
#include "common_audio/vad/vad_core.h" #include "common_audio/vad/vad_core.h"

View file

@ -11,7 +11,6 @@
#include "common_audio/vad/vad_gmm.h" #include "common_audio/vad/vad_gmm.h"
#include "common_audio/signal_processing/include/signal_processing_library.h" #include "common_audio/signal_processing/include/signal_processing_library.h"
#include "typedefs.h" // NOLINT(build/include)
static const int32_t kCompVar = 22005; static const int32_t kCompVar = 22005;
static const int16_t kLog2Exp = 5909; // log2(exp(1)) in Q12. static const int16_t kLog2Exp = 5909; // log2(exp(1)) in Q12.

View file

@ -13,7 +13,7 @@
#ifndef COMMON_AUDIO_VAD_VAD_GMM_H_ #ifndef COMMON_AUDIO_VAD_VAD_GMM_H_
#define COMMON_AUDIO_VAD_VAD_GMM_H_ #define COMMON_AUDIO_VAD_VAD_GMM_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
// Calculates the probability for |input|, given that |input| comes from a // Calculates the probability for |input|, given that |input| comes from a
// normal distribution with mean and standard deviation (|mean|, |std|). // normal distribution with mean and standard deviation (|mean|, |std|).

View file

@ -10,7 +10,6 @@
#include "common_audio/vad/vad_unittest.h" #include "common_audio/vad/vad_unittest.h"
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
extern "C" { extern "C" {
#include "common_audio/vad/vad_gmm.h" #include "common_audio/vad/vad_gmm.h"

View file

@ -13,7 +13,6 @@
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "common_audio/signal_processing/include/signal_processing_library.h" #include "common_audio/signal_processing/include/signal_processing_library.h"
#include "common_audio/vad/vad_core.h" #include "common_audio/vad/vad_core.h"
#include "typedefs.h" // NOLINT(build/include)
// Allpass filter coefficients, upper and lower, in Q13. // Allpass filter coefficients, upper and lower, in Q13.
// Upper: 0.64, Lower: 0.17. // Upper: 0.64, Lower: 0.17.

View file

@ -14,7 +14,6 @@
#define COMMON_AUDIO_VAD_VAD_SP_H_ #define COMMON_AUDIO_VAD_VAD_SP_H_
#include "common_audio/vad/vad_core.h" #include "common_audio/vad/vad_core.h"
#include "typedefs.h" // NOLINT(build/include)
// Downsamples the signal by a factor 2, eg. 32->16 or 16->8. // Downsamples the signal by a factor 2, eg. 32->16 or 16->8.
// //

View file

@ -12,7 +12,6 @@
#include "common_audio/vad/vad_unittest.h" #include "common_audio/vad/vad_unittest.h"
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
extern "C" { extern "C" {
#include "common_audio/vad/vad_core.h" #include "common_audio/vad/vad_core.h"

View file

@ -17,7 +17,6 @@
#include "rtc_base/arraysize.h" #include "rtc_base/arraysize.h"
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
VadTest::VadTest() {} VadTest::VadTest() {}

View file

@ -14,7 +14,6 @@
#include <stddef.h> // size_t #include <stddef.h> // size_t
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {
namespace test { namespace test {

View file

@ -15,7 +15,6 @@
#include "common_audio/signal_processing/include/signal_processing_library.h" #include "common_audio/signal_processing/include/signal_processing_library.h"
#include "common_audio/vad/vad_core.h" #include "common_audio/vad/vad_core.h"
#include "typedefs.h" // NOLINT(build/include)
static const int kInitCheck = 42; static const int kInitCheck = 42;
static const int kValidRates[] = { 8000, 16000, 32000, 48000 }; static const int kValidRates[] = { 8000, 16000, 32000, 48000 };

View file

@ -19,6 +19,7 @@
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/logging.h" #include "rtc_base/logging.h"
#include "rtc_base/numerics/safe_conversions.h" #include "rtc_base/numerics/safe_conversions.h"
#include "rtc_base/system/arch.h"
namespace webrtc { namespace webrtc {

View file

@ -21,6 +21,7 @@
#include "common_audio/include/audio_util.h" #include "common_audio/include/audio_util.h"
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/system/arch.h"
namespace webrtc { namespace webrtc {
namespace { namespace {

View file

@ -21,7 +21,6 @@
#include "api/video/video_bitrate_allocation.h" #include "api/video/video_bitrate_allocation.h"
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/deprecation.h" #include "rtc_base/deprecation.h"
#include "typedefs.h" // NOLINT(build/include)
#if defined(_MSC_VER) #if defined(_MSC_VER)
// Disable "new behavior: elements of array will be default initialized" // Disable "new behavior: elements of array will be default initialized"

View file

@ -43,7 +43,6 @@ rtc_static_library("common_video") {
deps = [ deps = [
"..:webrtc_common", "..:webrtc_common",
"../:typedefs",
"../api/video:video_bitrate_allocation", "../api/video:video_bitrate_allocation",
"../api/video:video_bitrate_allocator", "../api/video:video_bitrate_allocator",
"../api/video:video_frame", "../api/video:video_frame",

View file

@ -21,7 +21,6 @@
#include "api/video/video_rotation.h" #include "api/video/video_rotation.h"
#include "api/video/video_timing.h" #include "api/video/video_timing.h"
#include "common_types.h" // NOLINT(build/include) #include "common_types.h" // NOLINT(build/include)
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -20,7 +20,6 @@
#include "api/video/video_frame.h" #include "api/video/video_frame.h"
#include "common_types.h" // NOLINT(build/include) // VideoTypes. #include "common_types.h" // NOLINT(build/include) // VideoTypes.
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -66,7 +66,6 @@ rtc_source_set("rtc_event_pacing") {
deps = [ deps = [
":rtc_event_log_api", ":rtc_event_log_api",
"../:typedefs",
"../rtc_base:ptr_util", "../rtc_base:ptr_util",
"//third_party/abseil-cpp/absl/memory", "//third_party/abseil-cpp/absl/memory",
] ]

View file

@ -36,7 +36,6 @@ rtc_source_set("module_api_public") {
] ]
deps = [ deps = [
"..:webrtc_common", "..:webrtc_common",
"../:typedefs",
"//third_party/abseil-cpp/absl/types:optional", "//third_party/abseil-cpp/absl/types:optional",
] ]
} }
@ -51,7 +50,6 @@ rtc_source_set("module_api") {
":module_api_public", ":module_api_public",
":module_fec_api", ":module_fec_api",
"..:webrtc_common", "..:webrtc_common",
"../:typedefs",
"../api:libjingle_peerconnection_api", "../api:libjingle_peerconnection_api",
"../api/transport:network_control", "../api/transport:network_control",
"../api/video:video_frame", "../api/video:video_frame",

View file

@ -66,7 +66,6 @@ rtc_static_library("rent_a_codec") {
"acm2/rent_a_codec.h", "acm2/rent_a_codec.h",
] ]
deps = [ deps = [
"../..:typedefs",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../api:array_view", "../../api:array_view",
"//third_party/abseil-cpp/absl/types:optional", "//third_party/abseil-cpp/absl/types:optional",
@ -89,7 +88,6 @@ rtc_source_set("audio_coding_module_typedefs") {
"include/audio_coding_module_typedefs.h", "include/audio_coding_module_typedefs.h",
] ]
deps = [ deps = [
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
] ]
} }
@ -122,7 +120,6 @@ rtc_static_library("audio_coding") {
"../../api/audio:audio_frame_api", "../../api/audio:audio_frame_api",
"..:module_api", "..:module_api",
"../../common_audio:common_audio_c", "../../common_audio:common_audio_c",
"../..:typedefs",
"../../rtc_base:deprecation", "../../rtc_base:deprecation",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../system_wrappers:metrics_api", "../../system_wrappers:metrics_api",
@ -161,7 +158,6 @@ rtc_static_library("cng") {
] ]
deps = [ deps = [
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api:array_view", "../../api:array_view",
"../../api/audio_codecs:audio_codecs_api", "../../api/audio_codecs:audio_codecs_api",
@ -215,7 +211,6 @@ rtc_source_set("g711_c") {
"codecs/g711/g711_interface.h", "codecs/g711/g711_interface.h",
] ]
deps = [ deps = [
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../third_party/g711:g711_3p", "../third_party/g711:g711_3p",
] ]
@ -251,7 +246,6 @@ rtc_source_set("g722_c") {
"codecs/g722/g722_interface.h", "codecs/g722/g722_interface.h",
] ]
deps = [ deps = [
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../third_party/g722:g722_3p", "../third_party/g722:g722_3p",
] ]
@ -426,7 +420,6 @@ rtc_source_set("ilbc_c") {
] ]
deps = [ deps = [
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api/audio_codecs:audio_codecs_api", "../../api/audio_codecs:audio_codecs_api",
"../../common_audio", "../../common_audio",
@ -434,6 +427,8 @@ rtc_source_set("ilbc_c") {
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
"../../rtc_base:sanitizer", "../../rtc_base:sanitizer",
"../../rtc_base/system:arch",
"../../rtc_base/system:unused",
] ]
} }
@ -449,7 +444,6 @@ rtc_static_library("isac_common") {
] ]
deps = [ deps = [
":isac_bwinfo", ":isac_bwinfo",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api/audio_codecs:audio_codecs_api", "../../api/audio_codecs:audio_codecs_api",
"../../rtc_base:checks", "../../rtc_base:checks",
@ -481,9 +475,7 @@ rtc_source_set("isac_bwinfo") {
sources = [ sources = [
"codecs/isac/bandwidth_info.h", "codecs/isac/bandwidth_info.h",
] ]
deps = [ deps = []
"../..:typedefs",
]
} }
rtc_source_set("isac_vad") { rtc_source_set("isac_vad") {
@ -503,8 +495,8 @@ rtc_source_set("isac_vad") {
] ]
deps = [ deps = [
":isac_bwinfo", ":isac_bwinfo",
"../..:typedefs",
"../../rtc_base:compile_assert_c", "../../rtc_base:compile_assert_c",
"../../rtc_base/system:arch",
"../../rtc_base/system:ignore_warnings", "../../rtc_base/system:ignore_warnings",
] ]
} }
@ -560,13 +552,13 @@ rtc_static_library("isac_c") {
deps = [ deps = [
":isac_bwinfo", ":isac_bwinfo",
":isac_vad", ":isac_vad",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../common_audio", "../../common_audio",
"../../common_audio:common_audio_c", "../../common_audio:common_audio_c",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:compile_assert_c", "../../rtc_base:compile_assert_c",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
"../../rtc_base/system:arch",
"../third_party/fft:fft", "../third_party/fft:fft",
] ]
} }
@ -608,7 +600,6 @@ rtc_source_set("isac_fix_common") {
] ]
deps = [ deps = [
":isac_bwinfo", ":isac_bwinfo",
"../..:typedefs",
"../../common_audio", "../../common_audio",
"../../common_audio:common_audio_c", "../../common_audio:common_audio_c",
] ]
@ -676,7 +667,6 @@ rtc_source_set("isac_fix_c") {
deps = [ deps = [
":isac_bwinfo", ":isac_bwinfo",
":isac_common", ":isac_common",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api/audio_codecs:audio_codecs_api", "../../api/audio_codecs:audio_codecs_api",
"../../common_audio", "../../common_audio",
@ -800,7 +790,6 @@ rtc_source_set("pcm16b_c") {
] ]
deps = [ deps = [
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
] ]
} }
@ -862,7 +851,6 @@ rtc_source_set("webrtc_opus_c") {
} }
deps = [ deps = [
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
@ -1050,7 +1038,6 @@ rtc_static_library("neteq") {
":cng", ":cng",
":neteq_decoder_enum", ":neteq_decoder_enum",
"..:module_api", "..:module_api",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api:libjingle_peerconnection_api", "../../api:libjingle_peerconnection_api",
"../../api/audio:audio_frame_api", "../../api/audio:audio_frame_api",
@ -1093,7 +1080,6 @@ rtc_source_set("neteq_tools_minimal") {
deps = [ deps = [
":neteq", ":neteq",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api:libjingle_peerconnection_api", "../../api:libjingle_peerconnection_api",
"../../api/audio:audio_frame_api", "../../api/audio:audio_frame_api",
@ -1132,7 +1118,6 @@ rtc_source_set("neteq_test_tools") {
deps = [ deps = [
":pcm16b", ":pcm16b",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api:array_view", "../../api:array_view",
"../../api:libjingle_peerconnection_api", "../../api:libjingle_peerconnection_api",
@ -1141,6 +1126,7 @@ rtc_source_set("neteq_test_tools") {
"../../rtc_base:rtc_base", "../../rtc_base:rtc_base",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_base_tests_utils", "../../rtc_base:rtc_base_tests_utils",
"../../rtc_base/system:arch",
"../../test:rtp_test_utils", "../../test:rtp_test_utils",
"../rtp_rtcp", "../rtp_rtcp",
"../rtp_rtcp:rtp_rtcp_format", "../rtp_rtcp:rtp_rtcp_format",
@ -1180,7 +1166,6 @@ rtc_source_set("neteq_tools") {
deps = [ deps = [
"..:module_api", "..:module_api",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api:array_view", "../../api:array_view",
"../../api/audio_codecs:audio_codecs_api", "../../api/audio_codecs:audio_codecs_api",
@ -1207,7 +1192,6 @@ rtc_source_set("neteq_input_audio_tools") {
] ]
deps = [ deps = [
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../common_audio", "../../common_audio",
"../../rtc_base:checks", "../../rtc_base:checks",
@ -1333,7 +1317,6 @@ if (rtc_include_tests) {
":audio_format_conversion", ":audio_format_conversion",
":pcm16b_c", ":pcm16b_c",
"..:module_api", "..:module_api",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api/audio:audio_frame_api", "../../api/audio:audio_frame_api",
"../../api/audio_codecs:builtin_audio_decoder_factory", "../../api/audio_codecs:builtin_audio_decoder_factory",
@ -1363,7 +1346,6 @@ if (rtc_include_tests) {
deps = [ deps = [
":neteq_test_support", ":neteq_test_support",
":neteq_test_tools", ":neteq_test_tools",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api/audio_codecs/opus:audio_encoder_opus", "../../api/audio_codecs/opus:audio_encoder_opus",
"../../rtc_base:protobuf_utils", "../../rtc_base:protobuf_utils",
@ -1442,7 +1424,6 @@ if (rtc_include_tests) {
":audio_coding_module_typedefs", ":audio_coding_module_typedefs",
":audio_format_conversion", ":audio_format_conversion",
"..:module_api", "..:module_api",
"../..:typedefs",
"../../:webrtc_common", "../../:webrtc_common",
"../../api/audio:audio_frame_api", "../../api/audio:audio_frame_api",
"../../api/audio_codecs:builtin_audio_decoder_factory", "../../api/audio_codecs:builtin_audio_decoder_factory",
@ -1490,6 +1471,7 @@ if (rtc_include_tests) {
"../../api/audio_codecs/opus:audio_encoder_opus", "../../api/audio_codecs/opus:audio_encoder_opus",
"../../common_audio", "../../common_audio",
"../../rtc_base:protobuf_utils", "../../rtc_base:protobuf_utils",
"../../rtc_base/system:arch",
"../../test:test_main", "../../test:test_main",
"//testing/gtest", "//testing/gtest",
] + audio_coding_deps ] + audio_coding_deps
@ -1517,7 +1499,6 @@ if (rtc_include_tests) {
testonly = true testonly = true
defines = [] defines = []
deps = [ deps = [
"../..:typedefs",
"../../rtc_base:checks", "../../rtc_base:checks",
"../../test:fileutils", "../../test:fileutils",
] ]
@ -1561,7 +1542,6 @@ if (rtc_include_tests) {
testonly = true testonly = true
defines = [] defines = []
deps = [ deps = [
"../..:typedefs",
"../../test:fileutils", "../../test:fileutils",
] ]
sources = [ sources = [
@ -1620,7 +1600,6 @@ if (rtc_include_tests) {
":neteq", ":neteq",
":neteq_test_tools", ":neteq_test_tools",
":pcm16b", ":pcm16b",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api/audio:audio_frame_api", "../../api/audio:audio_frame_api",
"../../api/audio_codecs:audio_codecs_api", "../../api/audio_codecs:audio_codecs_api",
@ -1649,7 +1628,6 @@ if (rtc_include_tests) {
deps = [ deps = [
":neteq", ":neteq",
":neteq_test_tools", ":neteq_test_tools",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api/audio_codecs:builtin_audio_decoder_factory", "../../api/audio_codecs:builtin_audio_decoder_factory",
"../../rtc_base:checks", "../../rtc_base:checks",
@ -1665,7 +1643,6 @@ if (rtc_include_tests) {
deps = audio_coding_deps + [ deps = audio_coding_deps + [
"//third_party/abseil-cpp/absl/memory", "//third_party/abseil-cpp/absl/memory",
"../..:typedefs",
":audio_coding", ":audio_coding",
":neteq_input_audio_tools", ":neteq_input_audio_tools",
"../../api/audio:audio_frame_api", "../../api/audio:audio_frame_api",
@ -1690,7 +1667,6 @@ if (rtc_include_tests) {
testonly = true testonly = true
deps = audio_coding_deps + [ deps = audio_coding_deps + [
"../..:typedefs",
"../../system_wrappers:system_wrappers_default", "../../system_wrappers:system_wrappers_default",
"../rtp_rtcp:rtp_rtcp_format", "../rtp_rtcp:rtp_rtcp_format",
"../../api:array_view", "../../api:array_view",
@ -1765,7 +1741,6 @@ if (rtc_include_tests) {
deps = [ deps = [
":neteq", ":neteq",
":neteq_test_support", ":neteq_test_support",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
"../../system_wrappers:system_wrappers_default", "../../system_wrappers:system_wrappers_default",
@ -1912,7 +1887,6 @@ if (rtc_include_tests) {
deps = [ deps = [
":g722", ":g722",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
] ]
} }
@ -2080,7 +2054,6 @@ if (rtc_include_tests) {
":rent_a_codec", ":rent_a_codec",
":webrtc_opus", ":webrtc_opus",
"..:module_api", "..:module_api",
"../..:typedefs",
"../..:webrtc_common", "../..:webrtc_common",
"../../api/audio:audio_frame_api", "../../api/audio:audio_frame_api",
"../../api/audio_codecs:audio_codecs_api", "../../api/audio_codecs:audio_codecs_api",
@ -2100,6 +2073,7 @@ if (rtc_include_tests) {
"../../rtc_base:rtc_base_approved", "../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_base_tests_utils", "../../rtc_base:rtc_base_tests_utils",
"../../rtc_base:sanitizer", "../../rtc_base:sanitizer",
"../../rtc_base/system:arch",
"../../system_wrappers", "../../system_wrappers",
"../../system_wrappers:cpu_features_api", "../../system_wrappers:cpu_features_api",
"../../test:audio_codec_mocks", "../../test:audio_codec_mocks",

View file

@ -18,7 +18,6 @@
#include "common_types.h" // NOLINT(build/include) #include "common_types.h" // NOLINT(build/include)
#include "modules/audio_coding/acm2/rent_a_codec.h" #include "modules/audio_coding/acm2/rent_a_codec.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -26,7 +26,6 @@
#include "modules/audio_coding/neteq/include/neteq.h" #include "modules/audio_coding/neteq/include/neteq.h"
#include "rtc_base/criticalsection.h" #include "rtc_base/criticalsection.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -12,7 +12,6 @@
#define MODULES_AUDIO_CODING_ACM2_ACM_RESAMPLER_H_ #define MODULES_AUDIO_CODING_ACM2_ACM_RESAMPLER_H_
#include "common_audio/resampler/include/push_resampler.h" #include "common_audio/resampler/include/push_resampler.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {
namespace acm2 { namespace acm2 {

View file

@ -37,6 +37,7 @@
#include "rtc_base/numerics/safe_conversions.h" #include "rtc_base/numerics/safe_conversions.h"
#include "rtc_base/platform_thread.h" #include "rtc_base/platform_thread.h"
#include "rtc_base/refcountedobject.h" #include "rtc_base/refcountedobject.h"
#include "rtc_base/system/arch.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"
#include "system_wrappers/include/event_wrapper.h" #include "system_wrappers/include/event_wrapper.h"

View file

@ -14,7 +14,6 @@
//#include "rtc_base/format_macros.h" //#include "rtc_base/format_macros.h"
#include "modules/audio_coding/acm2/rent_a_codec.h" #include "modules/audio_coding/acm2/rent_a_codec.h"
#include "rtc_base/logging.h" #include "rtc_base/logging.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {
namespace acm2 { namespace acm2 {

View file

@ -23,7 +23,6 @@
#include "modules/audio_coding/neteq/neteq_decoder_enum.h" #include "modules/audio_coding/neteq/neteq_decoder_enum.h"
#include "rtc_base/constructormagic.h" #include "rtc_base/constructormagic.h"
#include "rtc_base/scoped_ref_ptr.h" #include "rtc_base/scoped_ref_ptr.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc { namespace webrtc {

View file

@ -15,7 +15,6 @@
#include "api/array_view.h" #include "api/array_view.h"
#include "rtc_base/buffer.h" #include "rtc_base/buffer.h"
#include "typedefs.h" // NOLINT(build/include)
#define WEBRTC_CNG_MAX_LPC_ORDER 12 #define WEBRTC_CNG_MAX_LPC_ORDER 12

View file

@ -12,7 +12,6 @@
#include "modules/third_party/g711/g711.h" #include "modules/third_party/g711/g711.h"
#include "modules/audio_coding/codecs/g711/g711_interface.h" #include "modules/audio_coding/codecs/g711/g711_interface.h"
#include "typedefs.h" // NOLINT(build/include)
size_t WebRtcG711_EncodeA(const int16_t* speechIn, size_t WebRtcG711_EncodeA(const int16_t* speechIn,
size_t len, size_t len,

View file

@ -11,7 +11,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_G711_G711_INTERFACE_H_ #ifndef MODULES_AUDIO_CODING_CODECS_G711_G711_INTERFACE_H_
#define MODULES_AUDIO_CODING_CODECS_G711_G711_INTERFACE_H_ #define MODULES_AUDIO_CODING_CODECS_G711_G711_INTERFACE_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
// Comfort noise constants // Comfort noise constants
#define G711_WEBRTC_SPEECH 1 #define G711_WEBRTC_SPEECH 1

View file

@ -13,7 +13,6 @@
#include "modules/audio_coding/codecs/g722/g722_interface.h" #include "modules/audio_coding/codecs/g722/g722_interface.h"
#include "modules/third_party/g722/g722_enc_dec.h" #include "modules/third_party/g722/g722_enc_dec.h"
#include "typedefs.h" // NOLINT(build/include)
int16_t WebRtcG722_CreateEncoder(G722EncInst **G722enc_inst) int16_t WebRtcG722_CreateEncoder(G722EncInst **G722enc_inst)
{ {

View file

@ -11,7 +11,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_G722_G722_INTERFACE_H_ #ifndef MODULES_AUDIO_CODING_CODECS_G722_G722_INTERFACE_H_
#define MODULES_AUDIO_CODING_CODECS_G722_G722_INTERFACE_H_ #define MODULES_AUDIO_CODING_CODECS_G722_G722_INTERFACE_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
/* /*
* Solution to support multiple instances * Solution to support multiple instances

View file

@ -15,7 +15,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "typedefs.h" // NOLINT(build/include)
/* include API */ /* include API */
#include "modules/audio_coding/codecs/g722/g722_interface.h" #include "modules/audio_coding/codecs/g722/g722_interface.h"

View file

@ -20,7 +20,10 @@
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CB_CONSTRUCT_H_ #define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CB_CONSTRUCT_H_
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h>
#include "modules/audio_coding/codecs/ilbc/defines.h" #include "modules/audio_coding/codecs/ilbc/defines.h"
#include "rtc_base/system/unused.h"
/*----------------------------------------------------------------* /*----------------------------------------------------------------*
* Construct decoded vector from codebook and gains. * Construct decoded vector from codebook and gains.

View file

@ -20,7 +20,6 @@
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CONSTANTS_H_ #define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CONSTANTS_H_
#include "modules/audio_coding/codecs/ilbc/defines.h" #include "modules/audio_coding/codecs/ilbc/defines.h"
#include "typedefs.h" // NOLINT(build/include)
/* high pass filters */ /* high pass filters */

View file

@ -16,6 +16,9 @@
******************************************************************/ ******************************************************************/
// Defines WEBRTC_ARCH_BIG_ENDIAN, used below.
#include "rtc_base/system/arch.h"
#include "modules/audio_coding/codecs/ilbc/defines.h" #include "modules/audio_coding/codecs/ilbc/defines.h"
#include "modules/audio_coding/codecs/ilbc/simple_lsf_dequant.h" #include "modules/audio_coding/codecs/ilbc/simple_lsf_dequant.h"
#include "modules/audio_coding/codecs/ilbc/decoder_interpolate_lsf.h" #include "modules/audio_coding/codecs/ilbc/decoder_interpolate_lsf.h"

View file

@ -19,7 +19,10 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_DECODE_H_ #ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_DECODE_H_
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_DECODE_H_ #define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_DECODE_H_
#include <stdint.h>
#include "modules/audio_coding/codecs/ilbc/defines.h" #include "modules/audio_coding/codecs/ilbc/defines.h"
#include "rtc_base/system/unused.h"
/*----------------------------------------------------------------* /*----------------------------------------------------------------*
* main decoder function * main decoder function

View file

@ -20,7 +20,10 @@
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_DECODE_RESIDUAL_H_ #define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_DECODE_RESIDUAL_H_
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h>
#include "modules/audio_coding/codecs/ilbc/defines.h" #include "modules/audio_coding/codecs/ilbc/defines.h"
#include "rtc_base/system/unused.h"
/*----------------------------------------------------------------* /*----------------------------------------------------------------*
* frame residual decoder function (subrutine to iLBC_decode) * frame residual decoder function (subrutine to iLBC_decode)

View file

@ -21,7 +21,6 @@
#include <string.h> #include <string.h>
#include "common_audio/signal_processing/include/signal_processing_library.h" #include "common_audio/signal_processing/include/signal_processing_library.h"
#include "typedefs.h" // NOLINT(build/include)
/* general codec settings */ /* general codec settings */

View file

@ -18,6 +18,9 @@
#include <string.h> #include <string.h>
// Defines WEBRTC_ARCH_BIG_ENDIAN, used below.
#include "rtc_base/system/arch.h"
#include "modules/audio_coding/codecs/ilbc/defines.h" #include "modules/audio_coding/codecs/ilbc/defines.h"
#include "modules/audio_coding/codecs/ilbc/lpc_encode.h" #include "modules/audio_coding/codecs/ilbc/lpc_encode.h"
#include "modules/audio_coding/codecs/ilbc/frame_classify.h" #include "modules/audio_coding/codecs/ilbc/frame_classify.h"

View file

@ -20,8 +20,11 @@
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_GET_CD_VEC_H_ #define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_GET_CD_VEC_H_
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "modules/audio_coding/codecs/ilbc/defines.h" #include "modules/audio_coding/codecs/ilbc/defines.h"
#include "rtc_base/system/unused.h"
// Returns true on success, false on failure. In case of failure, the decoder // Returns true on success, false on failure. In case of failure, the decoder
// state may be corrupted and needs resetting. // state may be corrupted and needs resetting.

View file

@ -19,12 +19,7 @@
#define MODULES_AUDIO_CODING_CODECS_ILBC_ILBC_H_ #define MODULES_AUDIO_CODING_CODECS_ILBC_ILBC_H_
#include <stddef.h> #include <stddef.h>
#include <stdint.h>
/*
* Define the fixpoint numeric formats
*/
#include "typedefs.h" // NOLINT(build/include)
/* /*
* Solution to support multiple instances * Solution to support multiple instances

View file

@ -19,7 +19,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ3_H_ #ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ3_H_
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ3_H_ #define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ3_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
/*----------------------------------------------------------------* /*----------------------------------------------------------------*
* Vector quantization of order 3 (based on MSE) * Vector quantization of order 3 (based on MSE)

View file

@ -19,7 +19,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ4_H_ #ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ4_H_
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ4_H_ #define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ4_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
/*----------------------------------------------------------------* /*----------------------------------------------------------------*
* Vector quantization of order 4 (based on MSE) * Vector quantization of order 4 (based on MSE)

View file

@ -11,7 +11,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_BANDWIDTH_INFO_H_ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_BANDWIDTH_INFO_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_BANDWIDTH_INFO_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_BANDWIDTH_INFO_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
typedef struct { typedef struct {
int in_use; int in_use;

View file

@ -14,7 +14,6 @@
#include <stddef.h> #include <stddef.h>
#include "modules/audio_coding/codecs/isac/bandwidth_info.h" #include "modules/audio_coding/codecs/isac/bandwidth_info.h"
#include "typedefs.h" // NOLINT(build/include)
typedef struct { void* dummy; } ISACFIX_MainStruct; typedef struct { void* dummy; } ISACFIX_MainStruct;

View file

@ -11,7 +11,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_INTERNAL_H_ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_INTERNAL_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_INTERNAL_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_INTERNAL_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
#if defined(__cplusplus) || defined(c_plusplus) #if defined(__cplusplus) || defined(c_plusplus)
extern "C" { extern "C" {

View file

@ -19,7 +19,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_TABLES_H_ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_TABLES_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_TABLES_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
#if defined(__cplusplus) || defined(c_plusplus) #if defined(__cplusplus) || defined(c_plusplus)
extern "C" { extern "C" {

View file

@ -15,7 +15,6 @@
#include "rtc_base/sanitizer.h" #include "rtc_base/sanitizer.h"
#include "system_wrappers/include/cpu_features_wrapper.h" #include "system_wrappers/include/cpu_features_wrapper.h"
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
class FilterBanksTest : public testing::Test { class FilterBanksTest : public testing::Test {
protected: protected:

View file

@ -11,7 +11,6 @@
#include "modules/audio_coding/codecs/isac/fix/source/codec.h" #include "modules/audio_coding/codecs/isac/fix/source/codec.h"
#include "system_wrappers/include/cpu_features_wrapper.h" #include "system_wrappers/include/cpu_features_wrapper.h"
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
class FiltersTest : public testing::Test { class FiltersTest : public testing::Test {
protected: protected:

View file

@ -16,7 +16,6 @@
#include "common_audio/signal_processing/include/signal_processing_library.h" #include "common_audio/signal_processing/include/signal_processing_library.h"
#include "modules/audio_coding/codecs/isac/fix/source/settings.h" #include "modules/audio_coding/codecs/isac/fix/source/settings.h"
#include "typedefs.h" // NOLINT(build/include)
/* Filter ar_g_Q0[] and ar_f_Q0[] through an AR filter with coefficients /* Filter ar_g_Q0[] and ar_f_Q0[] through an AR filter with coefficients
* cth_Q15[] and sth_Q15[]. * cth_Q15[] and sth_Q15[].

View file

@ -11,7 +11,6 @@
#include <stddef.h> #include <stddef.h>
#include "modules/audio_coding/codecs/isac/fix/source/settings.h" #include "modules/audio_coding/codecs/isac/fix/source/settings.h"
#include "typedefs.h" // NOLINT(build/include)
// Filter ar_g_Q0[] and ar_f_Q0[] through an AR filter with coefficients // Filter ar_g_Q0[] and ar_f_Q0[] through an AR filter with coefficients
// cth_Q15[] and sth_Q15[]. // cth_Q15[] and sth_Q15[].

View file

@ -11,7 +11,6 @@
#include "modules/audio_coding/codecs/isac/fix/source/lpc_masking_model.h" #include "modules/audio_coding/codecs/isac/fix/source/lpc_masking_model.h"
#include "system_wrappers/include/cpu_features_wrapper.h" #include "system_wrappers/include/cpu_features_wrapper.h"
#include "test/gtest.h" #include "test/gtest.h"
#include "typedefs.h" // NOLINT(build/include)
class LpcMaskingModelTest : public testing::Test { class LpcMaskingModelTest : public testing::Test {
protected: protected:

View file

@ -18,7 +18,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_TABLES_H_ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_TABLES_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_TABLES_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
/* indices of KLT coefficients used */ /* indices of KLT coefficients used */
extern const uint16_t WebRtcIsacfix_kSelIndGain[12]; extern const uint16_t WebRtcIsacfix_kSelIndGain[12];

View file

@ -19,7 +19,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_GAIN_TABLES_H_ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_GAIN_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_GAIN_TABLES_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_GAIN_TABLES_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
/********************* Pitch Filter Gain Coefficient Tables /********************* Pitch Filter Gain Coefficient Tables
* ************************/ * ************************/

View file

@ -19,7 +19,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_LAG_TABLES_H_ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_LAG_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_LAG_TABLES_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_LAG_TABLES_H_
#include "typedefs.h" // NOLINT(build/include) #include <stdint.h>
/********************* Pitch Filter Lag Coefficient Tables /********************* Pitch Filter Lag Coefficient Tables
* ************************/ * ************************/

View file

@ -19,8 +19,9 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_
#include <stdint.h>
#include "modules/audio_coding/codecs/isac/fix/source/settings.h" #include "modules/audio_coding/codecs/isac/fix/source/settings.h"
#include "typedefs.h" // NOLINT(build/include)
/********************* AR Coefficient Tables ************************/ /********************* AR Coefficient Tables ************************/
/* cdf for quantized reflection coefficient 1 */ /* cdf for quantized reflection coefficient 1 */

View file

@ -21,7 +21,6 @@
#include "common_audio/signal_processing/include/signal_processing_library.h" #include "common_audio/signal_processing/include/signal_processing_library.h"
#include "modules/audio_coding/codecs/isac/bandwidth_info.h" #include "modules/audio_coding/codecs/isac/bandwidth_info.h"
#include "modules/audio_coding/codecs/isac/fix/source/settings.h" #include "modules/audio_coding/codecs/isac/fix/source/settings.h"
#include "typedefs.h" // NOLINT(build/include)
/* Bitstream struct for decoder */ /* Bitstream struct for decoder */
typedef struct Bitstreamstruct_dec { typedef struct Bitstreamstruct_dec {

View file

@ -13,8 +13,9 @@
* transform functions WebRtcIsacfix_Time2Spec and WebRtcIsacfix_Spec2Time. * transform functions WebRtcIsacfix_Time2Spec and WebRtcIsacfix_Spec2Time.
*/ */
#include <stdint.h>
#include "modules/audio_coding/codecs/isac/fix/source/settings.h" #include "modules/audio_coding/codecs/isac/fix/source/settings.h"
#include "typedefs.h" // NOLINT(build/include)
/* Cosine table 1 in Q14. */ /* Cosine table 1 in Q14. */
const int16_t WebRtcIsacfix_kCosTab1[FRAMESAMPLES/2] = { const int16_t WebRtcIsacfix_kCosTab1[FRAMESAMPLES/2] = {

Some files were not shown because too many files have changed in this diff Show more