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