| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 // Helper methods accessing only params_. | 97 // Helper methods accessing only params_. |
| 98 std::string GenerateGraphTitle() const; | 98 std::string GenerateGraphTitle() const; |
| 99 void CheckParams(); | 99 void CheckParams(); |
| 100 | 100 |
| 101 // Helper static methods. | 101 // Helper static methods. |
| 102 static VideoStream DefaultVideoStream(const Params& params); | 102 static VideoStream DefaultVideoStream(const Params& params); |
| 103 static std::vector<int> ParseCSV(const std::string& str); | 103 static std::vector<int> ParseCSV(const std::string& str); |
| 104 | 104 |
| 105 // Helper methods for setting up the call. | 105 // Helper methods for setting up the call. |
| 106 void CreateCapturer(VideoCaptureInput* input); | 106 void CreateCapturer(); |
| 107 void SetupCommon(Transport* send_transport, Transport* recv_transport); | 107 void SetupCommon(Transport* send_transport, Transport* recv_transport); |
| 108 void SetupScreenshare(); | 108 void SetupScreenshare(); |
| 109 | 109 |
| 110 // We need a more general capturer than the FrameGeneratorCapturer. | 110 // We need a more general capturer than the FrameGeneratorCapturer. |
| 111 std::unique_ptr<test::VideoCapturer> capturer_; | 111 std::unique_ptr<test::VideoCapturer> capturer_; |
| 112 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; | 112 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; |
| 113 std::unique_ptr<test::FrameGenerator> frame_generator_; | 113 std::unique_ptr<test::FrameGenerator> frame_generator_; |
| 114 std::unique_ptr<VideoEncoder> encoder_; | 114 std::unique_ptr<VideoEncoder> encoder_; |
| 115 VideoCodecUnion codec_settings_; | 115 VideoCodecUnion codec_settings_; |
| 116 Clock* const clock_; | 116 Clock* const clock_; |
| 117 | 117 |
| 118 Params params_; | 118 Params params_; |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace webrtc | 121 } // namespace webrtc |
| 122 | 122 |
| 123 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ | 123 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ |
| OLD | NEW |