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

Side by Side Diff: webrtc/modules/audio_processing/test/audio_processing_unittest.cc

Issue 1773173002: Dont always downsample to 16kHz in the reverse stream in APM (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@aecm
Patch Set: Fix android Created 4 years, 9 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
« no previous file with comments | « webrtc/modules/audio_processing/audio_processing_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 2631 matching lines...) Expand 10 before | Expand all | Expand 10 after
2642 fclose(ref_file); 2642 fclose(ref_file);
2643 } 2643 }
2644 } 2644 }
2645 } 2645 }
2646 2646
2647 #if defined(WEBRTC_AUDIOPROC_FLOAT_PROFILE) 2647 #if defined(WEBRTC_AUDIOPROC_FLOAT_PROFILE)
2648 INSTANTIATE_TEST_CASE_P( 2648 INSTANTIATE_TEST_CASE_P(
2649 CommonFormats, 2649 CommonFormats,
2650 AudioProcessingTest, 2650 AudioProcessingTest,
2651 testing::Values(std::tr1::make_tuple(48000, 48000, 48000, 48000, 0, 0), 2651 testing::Values(std::tr1::make_tuple(48000, 48000, 48000, 48000, 0, 0),
2652 std::tr1::make_tuple(48000, 48000, 32000, 48000, 40, 30), 2652 std::tr1::make_tuple(48000, 48000, 32000, 48000, 35, 30),
2653 std::tr1::make_tuple(48000, 48000, 16000, 48000, 40, 20), 2653 std::tr1::make_tuple(48000, 48000, 16000, 48000, 35, 20),
2654 std::tr1::make_tuple(48000, 44100, 48000, 44100, 20, 20), 2654 std::tr1::make_tuple(48000, 44100, 48000, 44100, 20, 20),
2655 std::tr1::make_tuple(48000, 44100, 32000, 44100, 20, 15), 2655 std::tr1::make_tuple(48000, 44100, 32000, 44100, 20, 15),
2656 std::tr1::make_tuple(48000, 44100, 16000, 44100, 20, 15), 2656 std::tr1::make_tuple(48000, 44100, 16000, 44100, 20, 15),
2657 std::tr1::make_tuple(48000, 32000, 48000, 32000, 30, 35), 2657 std::tr1::make_tuple(48000, 32000, 48000, 32000, 30, 35),
2658 std::tr1::make_tuple(48000, 32000, 32000, 32000, 30, 0), 2658 std::tr1::make_tuple(48000, 32000, 32000, 32000, 30, 0),
2659 std::tr1::make_tuple(48000, 32000, 16000, 32000, 30, 20), 2659 std::tr1::make_tuple(48000, 32000, 16000, 32000, 30, 20),
2660 std::tr1::make_tuple(48000, 16000, 48000, 16000, 25, 20), 2660 std::tr1::make_tuple(48000, 16000, 48000, 16000, 25, 20),
2661 std::tr1::make_tuple(48000, 16000, 32000, 16000, 25, 20), 2661 std::tr1::make_tuple(48000, 16000, 32000, 16000, 25, 20),
2662 std::tr1::make_tuple(48000, 16000, 16000, 16000, 25, 0), 2662 std::tr1::make_tuple(48000, 16000, 16000, 16000, 25, 0),
2663 2663
(...skipping 26 matching lines...) Expand all
2690 std::tr1::make_tuple(16000, 48000, 48000, 48000, 25, 0), 2690 std::tr1::make_tuple(16000, 48000, 48000, 48000, 25, 0),
2691 std::tr1::make_tuple(16000, 48000, 32000, 48000, 25, 30), 2691 std::tr1::make_tuple(16000, 48000, 32000, 48000, 25, 30),
2692 std::tr1::make_tuple(16000, 48000, 16000, 48000, 25, 20), 2692 std::tr1::make_tuple(16000, 48000, 16000, 48000, 25, 20),
2693 std::tr1::make_tuple(16000, 44100, 48000, 44100, 15, 20), 2693 std::tr1::make_tuple(16000, 44100, 48000, 44100, 15, 20),
2694 std::tr1::make_tuple(16000, 44100, 32000, 44100, 15, 15), 2694 std::tr1::make_tuple(16000, 44100, 32000, 44100, 15, 15),
2695 std::tr1::make_tuple(16000, 44100, 16000, 44100, 15, 15), 2695 std::tr1::make_tuple(16000, 44100, 16000, 44100, 15, 15),
2696 std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35), 2696 std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35),
2697 std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0), 2697 std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0),
2698 std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20), 2698 std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20),
2699 std::tr1::make_tuple(16000, 16000, 48000, 16000, 40, 20), 2699 std::tr1::make_tuple(16000, 16000, 48000, 16000, 40, 20),
2700 std::tr1::make_tuple(16000, 16000, 32000, 16000, 50, 20), 2700 std::tr1::make_tuple(16000, 16000, 32000, 16000, 40, 20),
2701 std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0))); 2701 std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0)));
2702 2702
2703 #elif defined(WEBRTC_AUDIOPROC_FIXED_PROFILE) 2703 #elif defined(WEBRTC_AUDIOPROC_FIXED_PROFILE)
2704 INSTANTIATE_TEST_CASE_P( 2704 INSTANTIATE_TEST_CASE_P(
2705 CommonFormats, 2705 CommonFormats,
2706 AudioProcessingTest, 2706 AudioProcessingTest,
2707 testing::Values(std::tr1::make_tuple(48000, 48000, 48000, 48000, 20, 0), 2707 testing::Values(std::tr1::make_tuple(48000, 48000, 48000, 48000, 20, 0),
2708 std::tr1::make_tuple(48000, 48000, 32000, 48000, 20, 30), 2708 std::tr1::make_tuple(48000, 48000, 32000, 48000, 20, 30),
2709 std::tr1::make_tuple(48000, 48000, 16000, 48000, 20, 20), 2709 std::tr1::make_tuple(48000, 48000, 16000, 48000, 20, 20),
2710 std::tr1::make_tuple(48000, 44100, 48000, 44100, 15, 20), 2710 std::tr1::make_tuple(48000, 44100, 48000, 44100, 15, 20),
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
2746 std::tr1::make_tuple(16000, 48000, 48000, 48000, 25, 0), 2746 std::tr1::make_tuple(16000, 48000, 48000, 48000, 25, 0),
2747 std::tr1::make_tuple(16000, 48000, 32000, 48000, 25, 30), 2747 std::tr1::make_tuple(16000, 48000, 32000, 48000, 25, 30),
2748 std::tr1::make_tuple(16000, 48000, 16000, 48000, 25, 20), 2748 std::tr1::make_tuple(16000, 48000, 16000, 48000, 25, 20),
2749 std::tr1::make_tuple(16000, 44100, 48000, 44100, 15, 20), 2749 std::tr1::make_tuple(16000, 44100, 48000, 44100, 15, 20),
2750 std::tr1::make_tuple(16000, 44100, 32000, 44100, 15, 15), 2750 std::tr1::make_tuple(16000, 44100, 32000, 44100, 15, 15),
2751 std::tr1::make_tuple(16000, 44100, 16000, 44100, 15, 15), 2751 std::tr1::make_tuple(16000, 44100, 16000, 44100, 15, 15),
2752 std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35), 2752 std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35),
2753 std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0), 2753 std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0),
2754 std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20), 2754 std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20),
2755 std::tr1::make_tuple(16000, 16000, 48000, 16000, 35, 20), 2755 std::tr1::make_tuple(16000, 16000, 48000, 16000, 35, 20),
2756 std::tr1::make_tuple(16000, 16000, 32000, 16000, 40, 20), 2756 std::tr1::make_tuple(16000, 16000, 32000, 16000, 35, 20),
2757 std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0))); 2757 std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0)));
2758 #endif 2758 #endif
2759 2759
2760 } // namespace 2760 } // namespace
2761 } // namespace webrtc 2761 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/audio_processing_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698