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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // Helper methods accessing only params_. | 102 // Helper methods accessing only params_. |
103 std::string GenerateGraphTitle() const; | 103 std::string GenerateGraphTitle() const; |
104 void CheckParams(); | 104 void CheckParams(); |
105 | 105 |
106 // Helper static methods. | 106 // Helper static methods. |
107 static VideoStream DefaultVideoStream(const Params& params); | 107 static VideoStream DefaultVideoStream(const Params& params); |
108 static std::vector<int> ParseCSV(const std::string& str); | 108 static std::vector<int> ParseCSV(const std::string& str); |
109 | 109 |
110 // Helper methods for setting up the call. | 110 // Helper methods for setting up the call. |
111 void CreateCapturer(); | 111 void CreateCapturer(); |
112 void SetupCommon(Transport* send_transport, Transport* recv_transport); | 112 void SetupVideo(Transport* send_transport, Transport* recv_transport); |
113 void SetupScreenshare(); | 113 void SetupScreenshare(); |
| 114 void SetupAudio(int send_channel_id, |
| 115 int receive_channel_id, |
| 116 Call* call, |
| 117 Transport* transport, |
| 118 AudioReceiveStream** audio_receive_stream); |
114 | 119 |
115 void StartEncodedFrameLogs(VideoSendStream* stream); | 120 void StartEncodedFrameLogs(VideoSendStream* stream); |
116 void StartEncodedFrameLogs(VideoReceiveStream* stream); | 121 void StartEncodedFrameLogs(VideoReceiveStream* stream); |
117 | 122 |
118 // We need a more general capturer than the FrameGeneratorCapturer. | 123 // We need a more general capturer than the FrameGeneratorCapturer. |
119 std::unique_ptr<test::VideoCapturer> capturer_; | 124 std::unique_ptr<test::VideoCapturer> video_capturer_; |
120 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; | 125 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; |
121 std::unique_ptr<test::FrameGenerator> frame_generator_; | 126 std::unique_ptr<test::FrameGenerator> frame_generator_; |
122 std::unique_ptr<VideoEncoder> encoder_; | 127 std::unique_ptr<VideoEncoder> video_encoder_; |
123 Clock* const clock_; | 128 Clock* const clock_; |
124 | 129 |
125 int receive_logs_; | 130 int receive_logs_; |
126 int send_logs_; | 131 int send_logs_; |
127 | 132 |
128 Params params_; | 133 Params params_; |
129 }; | 134 }; |
130 | 135 |
131 } // namespace webrtc | 136 } // namespace webrtc |
132 | 137 |
133 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ | 138 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ |
OLD | NEW |