Reformat the WebRTC code base
Running clang-format with chromium's style guide. The goal is n-fold: * providing consistency and readability (that's what code guidelines are for) * preventing noise with presubmit checks and git cl format * building on the previous point: making it easier to automatically fix format issues * you name it Please consider using git-hyper-blame to ignore this commit. Bug: webrtc:9340 Change-Id: I694567c4cdf8cee2860958cfe82bfaf25848bb87 Reviewed-on: https://webrtc-review.googlesource.com/81185 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23660}
This commit is contained in:
@ -97,18 +97,18 @@ void RunBitexactnessTest(int sample_rate_hz,
|
||||
TEST(NoiseSuppresionBitExactnessTest, Mono8kHzLow) {
|
||||
#if defined(WEBRTC_ARCH_ARM64)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{1432.341431f, 3321.919922f, 7677.521973f};
|
||||
const float kNoiseEstimateReference[] = {1432.341431f, 3321.919922f,
|
||||
7677.521973f};
|
||||
const float kOutputReference[] = {0.003510f, 0.004517f, 0.004669f};
|
||||
#elif defined(WEBRTC_ARCH_ARM)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{1432.341431f, 3321.919922f, 7677.521973f};
|
||||
const float kNoiseEstimateReference[] = {1432.341431f, 3321.919922f,
|
||||
7677.521973f};
|
||||
const float kOutputReference[] = {0.003510f, 0.004517f, 0.004669f};
|
||||
#else
|
||||
const float kSpeechProbabilityReference = 0.73421317f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{1175.266113f, 3289.305908f, 7532.991211f};
|
||||
const float kNoiseEstimateReference[] = {1175.266113f, 3289.305908f,
|
||||
7532.991211f};
|
||||
const float kOutputReference[] = {0.003263f, 0.004402f, 0.004537f};
|
||||
#endif
|
||||
|
||||
@ -120,18 +120,18 @@ TEST(NoiseSuppresionBitExactnessTest, Mono8kHzLow) {
|
||||
TEST(NoiseSuppresionBitExactnessTest, Mono16kHzLow) {
|
||||
#if defined(WEBRTC_ARCH_ARM64)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2534.461914f, 6277.638672f, 14367.499023f};
|
||||
const float kNoiseEstimateReference[] = {2534.461914f, 6277.638672f,
|
||||
14367.499023f};
|
||||
const float kOutputReference[] = {0.003449f, 0.004334f, 0.004303f};
|
||||
#elif defined(WEBRTC_ARCH_ARM)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2534.461914f, 6277.638672f, 14367.499023f};
|
||||
const float kNoiseEstimateReference[] = {2534.461914f, 6277.638672f,
|
||||
14367.499023f};
|
||||
const float kOutputReference[] = {0.003449f, 0.004334f, 0.004303f};
|
||||
#else
|
||||
const float kSpeechProbabilityReference = 0.71672988f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2151.313965f, 6509.765137f, 15658.848633f};
|
||||
const float kNoiseEstimateReference[] = {2151.313965f, 6509.765137f,
|
||||
15658.848633f};
|
||||
const float kOutputReference[] = {0.003574f, 0.004494f, 0.004499f};
|
||||
#endif
|
||||
|
||||
@ -143,18 +143,18 @@ TEST(NoiseSuppresionBitExactnessTest, Mono16kHzLow) {
|
||||
TEST(NoiseSuppresionBitExactnessTest, Mono32kHzLow) {
|
||||
#if defined(WEBRTC_ARCH_ARM64)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2540.059082f, 6317.822754f, 14440.845703f};
|
||||
const float kNoiseEstimateReference[] = {2540.059082f, 6317.822754f,
|
||||
14440.845703f};
|
||||
const float kOutputReference[] = {0.001679f, 0.002411f, 0.002594f};
|
||||
#elif defined(WEBRTC_ARCH_ARM)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2540.059082f, 6317.822754f, 14440.845703f};
|
||||
const float kNoiseEstimateReference[] = {2540.059082f, 6317.822754f,
|
||||
14440.845703f};
|
||||
const float kOutputReference[] = {0.001679f, 0.002411f, 0.002594f};
|
||||
#else
|
||||
const float kSpeechProbabilityReference = 0.67999554f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2149.780518f, 7076.936035f, 14939.945312f};
|
||||
const float kNoiseEstimateReference[] = {2149.780518f, 7076.936035f,
|
||||
14939.945312f};
|
||||
const float kOutputReference[] = {0.001221f, 0.001984f, 0.002228f};
|
||||
#endif
|
||||
|
||||
@ -166,18 +166,18 @@ TEST(NoiseSuppresionBitExactnessTest, Mono32kHzLow) {
|
||||
TEST(NoiseSuppresionBitExactnessTest, Mono48kHzLow) {
|
||||
#if defined(WEBRTC_ARCH_ARM64)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2564.605713f, 6213.656250f, 13372.284180f};
|
||||
const float kNoiseEstimateReference[] = {2564.605713f, 6213.656250f,
|
||||
13372.284180f};
|
||||
const float kOutputReference[] = {-0.013185f, -0.012769f, -0.012023f};
|
||||
#elif defined(WEBRTC_ARCH_ARM)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2564.605713f, 6213.656250f, 13372.284180f};
|
||||
const float kNoiseEstimateReference[] = {2564.605713f, 6213.656250f,
|
||||
13372.284180f};
|
||||
const float kOutputReference[] = {-0.013185f, -0.012769f, -0.012023f};
|
||||
#else
|
||||
const float kSpeechProbabilityReference = 0.70645678f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2168.783203f, 6902.895508f, 13190.677734f};
|
||||
const float kNoiseEstimateReference[] = {2168.783203f, 6902.895508f,
|
||||
13190.677734f};
|
||||
const float kOutputReference[] = {-0.013062f, -0.012657f, -0.011934f};
|
||||
#endif
|
||||
|
||||
@ -189,20 +189,20 @@ TEST(NoiseSuppresionBitExactnessTest, Mono48kHzLow) {
|
||||
TEST(NoiseSuppresionBitExactnessTest, Stereo16kHzLow) {
|
||||
#if defined(WEBRTC_ARCH_ARM64)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{9992.127930f, 12689.569336f, 11589.296875f};
|
||||
const float kNoiseEstimateReference[] = {9992.127930f, 12689.569336f,
|
||||
11589.296875f};
|
||||
const float kOutputReference[] = {-0.011108f, -0.007904f, -0.012390f,
|
||||
-0.002441f, 0.000855f, -0.003204f};
|
||||
#elif defined(WEBRTC_ARCH_ARM)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{10321.353516f, 12133.852539f, 10923.060547f};
|
||||
const float kNoiseEstimateReference[] = {10321.353516f, 12133.852539f,
|
||||
10923.060547f};
|
||||
const float kOutputReference[] = {-0.011108f, -0.007904f, -0.012390f,
|
||||
-0.002472f, 0.000916f, -0.003235f};
|
||||
#else
|
||||
const float kSpeechProbabilityReference = 0.67230678f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{9771.250000f, 11329.377930f, 10503.052734f};
|
||||
const float kNoiseEstimateReference[] = {9771.250000f, 11329.377930f,
|
||||
10503.052734f};
|
||||
const float kOutputReference[] = {-0.011459f, -0.008110f, -0.012728f,
|
||||
-0.002399f, 0.001018f, -0.003189f};
|
||||
#endif
|
||||
@ -215,18 +215,18 @@ TEST(NoiseSuppresionBitExactnessTest, Stereo16kHzLow) {
|
||||
TEST(NoiseSuppresionBitExactnessTest, Mono16kHzModerate) {
|
||||
#if defined(WEBRTC_ARCH_ARM64)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2057.085938f, 7601.055176f, 19666.187500f};
|
||||
const float kNoiseEstimateReference[] = {2057.085938f, 7601.055176f,
|
||||
19666.187500f};
|
||||
const float kOutputReference[] = {0.004669f, 0.005524f, 0.005432f};
|
||||
#elif defined(WEBRTC_ARCH_ARM)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2244.497803f, 6864.164062f, 16726.523438f};
|
||||
const float kNoiseEstimateReference[] = {2244.497803f, 6864.164062f,
|
||||
16726.523438f};
|
||||
const float kOutputReference[] = {0.004669f, 0.005615f, 0.005585f};
|
||||
#else
|
||||
const float kSpeechProbabilityReference = 0.70897013f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2171.490723f, 6553.567871f, 15626.562500f};
|
||||
const float kNoiseEstimateReference[] = {2171.490723f, 6553.567871f,
|
||||
15626.562500f};
|
||||
const float kOutputReference[] = {0.004513f, 0.005590f, 0.005614f};
|
||||
#endif
|
||||
|
||||
@ -238,18 +238,18 @@ TEST(NoiseSuppresionBitExactnessTest, Mono16kHzModerate) {
|
||||
TEST(NoiseSuppresionBitExactnessTest, Mono16kHzHigh) {
|
||||
#if defined(WEBRTC_ARCH_ARM64)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2095.148193f, 7698.553711f, 19689.533203f};
|
||||
const float kNoiseEstimateReference[] = {2095.148193f, 7698.553711f,
|
||||
19689.533203f};
|
||||
const float kOutputReference[] = {0.004639f, 0.005402f, 0.005310f};
|
||||
#elif defined(WEBRTC_ARCH_ARM)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2282.515625f, 6984.408203f, 16920.960938f};
|
||||
const float kNoiseEstimateReference[] = {2282.515625f, 6984.408203f,
|
||||
16920.960938f};
|
||||
const float kOutputReference[] = {0.004547f, 0.005432f, 0.005402f};
|
||||
#else
|
||||
const float kSpeechProbabilityReference = 0.70106733f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2224.968506f, 6712.025879f, 15785.087891f};
|
||||
const float kNoiseEstimateReference[] = {2224.968506f, 6712.025879f,
|
||||
15785.087891f};
|
||||
const float kOutputReference[] = {0.004394f, 0.005406f, 0.005416f};
|
||||
#endif
|
||||
|
||||
@ -261,18 +261,18 @@ TEST(NoiseSuppresionBitExactnessTest, Mono16kHzHigh) {
|
||||
TEST(NoiseSuppresionBitExactnessTest, Mono16kHzVeryHigh) {
|
||||
#if defined(WEBRTC_ARCH_ARM64)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2677.733398f, 6186.987305f, 14365.744141f};
|
||||
const float kNoiseEstimateReference[] = {2677.733398f, 6186.987305f,
|
||||
14365.744141f};
|
||||
const float kOutputReference[] = {0.004273f, 0.005127f, 0.005188f};
|
||||
#elif defined(WEBRTC_ARCH_ARM)
|
||||
const float kSpeechProbabilityReference = -4.0f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2677.733398f, 6186.987305f, 14365.744141f};
|
||||
const float kNoiseEstimateReference[] = {2677.733398f, 6186.987305f,
|
||||
14365.744141f};
|
||||
const float kOutputReference[] = {0.004273f, 0.005127f, 0.005188f};
|
||||
#else
|
||||
const float kSpeechProbabilityReference = 0.70281971f;
|
||||
const float kNoiseEstimateReference[] =
|
||||
{2254.347900f, 6723.699707f, 15771.625977f};
|
||||
const float kNoiseEstimateReference[] = {2254.347900f, 6723.699707f,
|
||||
15771.625977f};
|
||||
const float kOutputReference[] = {0.004321f, 0.005247f, 0.005263f};
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user