OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 #ifndef WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ | 10 #ifndef WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // Helper methods accessing only params_. | 99 // Helper methods accessing only params_. |
100 std::string GenerateGraphTitle() const; | 100 std::string GenerateGraphTitle() const; |
101 void CheckParams(); | 101 void CheckParams(); |
102 | 102 |
103 // Helper static methods. | 103 // Helper static methods. |
104 static VideoStream DefaultVideoStream(const Params& params); | 104 static VideoStream DefaultVideoStream(const Params& params); |
105 static std::vector<int> ParseCSV(const std::string& str); | 105 static std::vector<int> ParseCSV(const std::string& str); |
106 | 106 |
107 // Helper methods for setting up the call. | 107 // Helper methods for setting up the call. |
108 void CreateCapturer(VideoCaptureInput* input); | 108 void CreateCapturer(VideoCaptureInput* input); |
109 void SetupCommon(Transport* send_transport, Transport* recv_transport); | 109 void SetupVideo(Transport* send_transport, Transport* recv_transport); |
110 void SetupScreenshare(); | 110 void SetupScreenshare(); |
| 111 void SetupAudio(int send_channel_id, |
| 112 int receive_channel_id, |
| 113 Call* call, |
| 114 Transport* transport, |
| 115 AudioReceiveStream** audio_receive_stream); |
111 | 116 |
112 // We need a more general capturer than the FrameGeneratorCapturer. | 117 // We need a more general capturer than the FrameGeneratorCapturer. |
113 std::unique_ptr<test::VideoCapturer> capturer_; | 118 std::unique_ptr<test::VideoCapturer> video_capturer_; |
114 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; | 119 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; |
115 std::unique_ptr<test::FrameGenerator> frame_generator_; | 120 std::unique_ptr<test::FrameGenerator> frame_generator_; |
116 std::unique_ptr<VideoEncoder> encoder_; | 121 std::unique_ptr<VideoEncoder> video_encoder_; |
117 VideoCodecUnion codec_settings_; | 122 VideoCodecUnion video_codec_settings_; |
118 Clock* const clock_; | 123 Clock* const clock_; |
119 | 124 |
120 Params params_; | 125 Params params_; |
121 }; | 126 }; |
122 | 127 |
123 } // namespace webrtc | 128 } // namespace webrtc |
124 | 129 |
125 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ | 130 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ |
OLD | NEW |