OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 3 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license | 5 * Use of this source code is governed by a BSD-style license |
6 * that can be found in the LICENSE file in the root of the source | 6 * that can be found in the LICENSE file in the root of the source |
7 * tree. An additional intellectual property rights grant can be found | 7 * tree. An additional intellectual property rights grant can be found |
8 * in the file PATENTS. All contributing project authors may | 8 * in the file PATENTS. All contributing project authors may |
9 * be found in the AUTHORS file in the root of the source tree. | 9 * be found in the AUTHORS file in the root of the source tree. |
10 */ | 10 */ |
(...skipping 19 matching lines...) Expand all Loading... | |
30 std::string GetApmCaptureTestVectorFileName(int sample_rate_hz); | 30 std::string GetApmCaptureTestVectorFileName(int sample_rate_hz); |
31 | 31 |
32 // Extract float samples from a pcm file. | 32 // Extract float samples from a pcm file. |
33 void ReadFloatSamplesFromStereoFile(size_t samples_per_channel, | 33 void ReadFloatSamplesFromStereoFile(size_t samples_per_channel, |
34 size_t num_channels, | 34 size_t num_channels, |
35 InputAudioFile* stereo_pcm_file, | 35 InputAudioFile* stereo_pcm_file, |
36 rtc::ArrayView<float> data); | 36 rtc::ArrayView<float> data); |
37 | 37 |
38 // Verifies a frame against a reference and returns the results as an | 38 // Verifies a frame against a reference and returns the results as an |
39 // AssertionResult. | 39 // AssertionResult. |
40 ::testing::AssertionResult BitExactFrame(size_t samples_per_channel, | 40 ::testing::AssertionResult VectorDifferenceBounded( |
hlundin-webrtc
2016/03/29 21:31:59
The two methods now share the same name. However,
peah-webrtc
2016/03/30 04:14:44
Good point! I changed the name of one of them to b
| |
41 size_t num_channels, | 41 size_t samples_per_channel, |
42 rtc::ArrayView<const float> reference, | 42 size_t num_channels, |
43 rtc::ArrayView<const float> output, | 43 rtc::ArrayView<const float> reference, |
44 float tolerance); | 44 rtc::ArrayView<const float> output, |
45 float element_error_bound); | |
45 | 46 |
46 // Verifies a vector against a reference and returns the results as an | 47 // Verifies a vector against a reference and returns the results as an |
47 // AssertionResult. | 48 // AssertionResult. |
48 ::testing::AssertionResult BitExactVector(rtc::ArrayView<const float> reference, | 49 ::testing::AssertionResult VectorDifferenceBounded( |
49 rtc::ArrayView<const float> output, | 50 rtc::ArrayView<const float> reference, |
50 float tolerance); | 51 rtc::ArrayView<const float> output, |
52 float element_error_bound); | |
51 | 53 |
52 } // namespace test | 54 } // namespace test |
53 } // namespace webrtc | 55 } // namespace webrtc |
54 | 56 |
55 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_BITEXACTNESS_TOOLS_H_ | 57 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_BITEXACTNESS_TOOLS_H_ |
OLD | NEW |