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

Side by Side Diff: webrtc/modules/audio_processing/level_controller/level_controller_unittest.cc

Issue 2111553002: Improved tuning of the adaptive level controller. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@ALC_RC9_CL
Patch Set: Disabling bitexactness tests that were by mistake not disabled in the previous patch Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // memory, testing only the last frame implicitly also tests the preceeding 61 // memory, testing only the last frame implicitly also tests the preceeding
62 // frames. 62 // frames.
63 const float kVectorElementErrorBound = 1.0f / 32768.0f; 63 const float kVectorElementErrorBound = 1.0f / 32768.0f;
64 EXPECT_TRUE(test::VerifyDeinterleavedArray( 64 EXPECT_TRUE(test::VerifyDeinterleavedArray(
65 capture_config.num_frames(), capture_config.num_channels(), 65 capture_config.num_frames(), capture_config.num_channels(),
66 output_reference, capture_output, kVectorElementErrorBound)); 66 output_reference, capture_output, kVectorElementErrorBound));
67 } 67 }
68 68
69 } // namespace 69 } // namespace
70 70
71 TEST(LevelControlBitExactnessTest, Mono8kHz) { 71 TEST(LevelControlBitExactnessTest, DISABLED_Mono8kHz) {
72 const float kOutputReference[] = {-0.023242f, -0.020266f, -0.015097f}; 72 const float kOutputReference[] = {-0.023242f, -0.020266f, -0.015097f};
73 RunBitexactnessTest(AudioProcessing::kSampleRate8kHz, 1, kOutputReference); 73 RunBitexactnessTest(AudioProcessing::kSampleRate8kHz, 1, kOutputReference);
74 } 74 }
75 75
76 TEST(LevelControlBitExactnessTest, Mono16kHz) { 76 TEST(LevelControlBitExactnessTest, DISABLED_Mono16kHz) {
77 const float kOutputReference[] = {-0.019461f, -0.018761f, -0.018481f}; 77 const float kOutputReference[] = {-0.019461f, -0.018761f, -0.018481f};
78 RunBitexactnessTest(AudioProcessing::kSampleRate16kHz, 1, kOutputReference); 78 RunBitexactnessTest(AudioProcessing::kSampleRate16kHz, 1, kOutputReference);
79 } 79 }
80 80
81 TEST(LevelControlBitExactnessTest, Mono32kHz) { 81 TEST(LevelControlBitExactnessTest, DISABLED_Mono32kHz) {
82 const float kOutputReference[] = {-0.016872f, -0.019118f, -0.018722f}; 82 const float kOutputReference[] = {-0.016872f, -0.019118f, -0.018722f};
83 RunBitexactnessTest(AudioProcessing::kSampleRate32kHz, 1, kOutputReference); 83 RunBitexactnessTest(AudioProcessing::kSampleRate32kHz, 1, kOutputReference);
84 } 84 }
85 85
86 // TODO(peah): Investigate why this particular testcase differ between Android 86 // TODO(peah): Investigate why this particular testcase differ between Android
87 // and the rest of the platforms. 87 // and the rest of the platforms.
88 TEST(LevelControlBitExactnessTest, Mono48kHz) { 88 TEST(LevelControlBitExactnessTest, DISABLED_Mono48kHz) {
89 #if !(defined(WEBRTC_ARCH_ARM64) || defined(WEBRTC_ARCH_ARM) || \ 89 #if !(defined(WEBRTC_ARCH_ARM64) || defined(WEBRTC_ARCH_ARM) || \
90 defined(WEBRTC_ANDROID)) 90 defined(WEBRTC_ANDROID))
91 const float kOutputReference[] = {-0.016771f, -0.017831f, -0.020482f}; 91 const float kOutputReference[] = {-0.016771f, -0.017831f, -0.020482f};
92 #else 92 #else
93 const float kOutputReference[] = {-0.015949f, -0.016957f, -0.019478f}; 93 const float kOutputReference[] = {-0.015949f, -0.016957f, -0.019478f};
94 #endif 94 #endif
95 RunBitexactnessTest(AudioProcessing::kSampleRate48kHz, 1, kOutputReference); 95 RunBitexactnessTest(AudioProcessing::kSampleRate48kHz, 1, kOutputReference);
96 } 96 }
97 97
98 TEST(LevelControlBitExactnessTest, Stereo8kHz) { 98 TEST(LevelControlBitExactnessTest, DISABLED_Stereo8kHz) {
99 const float kOutputReference[] = {-0.019304f, -0.011600f, -0.016690f, 99 const float kOutputReference[] = {-0.019304f, -0.011600f, -0.016690f,
100 -0.071335f, -0.031849f, -0.065694f}; 100 -0.071335f, -0.031849f, -0.065694f};
101 RunBitexactnessTest(AudioProcessing::kSampleRate8kHz, 2, kOutputReference); 101 RunBitexactnessTest(AudioProcessing::kSampleRate8kHz, 2, kOutputReference);
102 } 102 }
103 103
104 TEST(LevelControlBitExactnessTest, Stereo16kHz) { 104 TEST(LevelControlBitExactnessTest, DISABLED_Stereo16kHz) {
105 const float kOutputReference[] = {-0.016302f, -0.007559f, -0.015668f, 105 const float kOutputReference[] = {-0.016302f, -0.007559f, -0.015668f,
106 -0.068346f, -0.031476f, -0.066065f}; 106 -0.068346f, -0.031476f, -0.066065f};
107 RunBitexactnessTest(AudioProcessing::kSampleRate16kHz, 2, kOutputReference); 107 RunBitexactnessTest(AudioProcessing::kSampleRate16kHz, 2, kOutputReference);
108 } 108 }
109 109
110 TEST(LevelControlBitExactnessTest, Stereo32kHz) { 110 TEST(LevelControlBitExactnessTest, DISABLED_Stereo32kHz) {
111 const float kOutputReference[] = {-0.013944f, -0.008337f, -0.015972f, 111 const float kOutputReference[] = {-0.013944f, -0.008337f, -0.015972f,
112 -0.063563f, -0.031233f, -0.066784f}; 112 -0.063563f, -0.031233f, -0.066784f};
113 RunBitexactnessTest(AudioProcessing::kSampleRate32kHz, 2, kOutputReference); 113 RunBitexactnessTest(AudioProcessing::kSampleRate32kHz, 2, kOutputReference);
114 } 114 }
115 115
116 TEST(LevelControlBitExactnessTest, Stereo48kHz) { 116 TEST(LevelControlBitExactnessTest, DISABLED_Stereo48kHz) {
117 const float kOutputReference[] = {-0.013652f, -0.008125f, -0.014593f, 117 const float kOutputReference[] = {-0.013652f, -0.008125f, -0.014593f,
118 -0.062963f, -0.030270f, -0.064727f}; 118 -0.062963f, -0.030270f, -0.064727f};
119 RunBitexactnessTest(AudioProcessing::kSampleRate48kHz, 2, kOutputReference); 119 RunBitexactnessTest(AudioProcessing::kSampleRate48kHz, 2, kOutputReference);
120 } 120 }
121 121
122 } // namespace webrtc 122 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698