| 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 23 matching lines...) Expand all Loading... |
| 34 int min_bitrate_bps; | 34 int min_bitrate_bps; |
| 35 int target_bitrate_bps; | 35 int target_bitrate_bps; |
| 36 int max_bitrate_bps; | 36 int max_bitrate_bps; |
| 37 bool suspend_below_min_bitrate; | 37 bool suspend_below_min_bitrate; |
| 38 std::string codec; | 38 std::string codec; |
| 39 int num_temporal_layers; | 39 int num_temporal_layers; |
| 40 int selected_tl; | 40 int selected_tl; |
| 41 int min_transmit_bps; | 41 int min_transmit_bps; |
| 42 bool send_side_bwe; | 42 bool send_side_bwe; |
| 43 bool fec; | 43 bool fec; |
| 44 std::string encoded_frame_base_path; |
| 44 | 45 |
| 45 Call::Config::BitrateConfig call_bitrate_config; | 46 Call::Config::BitrateConfig call_bitrate_config; |
| 46 } common; | 47 } common; |
| 47 struct { // Video-specific settings. | 48 struct { // Video-specific settings. |
| 48 std::string clip_name; | 49 std::string clip_name; |
| 49 } video; | 50 } video; |
| 50 struct { // Screenshare-specific settings. | 51 struct { // Screenshare-specific settings. |
| 51 bool enabled; | 52 bool enabled; |
| 52 int32_t slide_change_interval; | 53 int32_t slide_change_interval; |
| 53 int32_t scroll_duration; | 54 int32_t scroll_duration; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 101 |
| 101 // Helper static methods. | 102 // Helper static methods. |
| 102 static VideoStream DefaultVideoStream(const Params& params); | 103 static VideoStream DefaultVideoStream(const Params& params); |
| 103 static std::vector<int> ParseCSV(const std::string& str); | 104 static std::vector<int> ParseCSV(const std::string& str); |
| 104 | 105 |
| 105 // Helper methods for setting up the call. | 106 // Helper methods for setting up the call. |
| 106 void CreateCapturer(); | 107 void CreateCapturer(); |
| 107 void SetupCommon(Transport* send_transport, Transport* recv_transport); | 108 void SetupCommon(Transport* send_transport, Transport* recv_transport); |
| 108 void SetupScreenshare(); | 109 void SetupScreenshare(); |
| 109 | 110 |
| 111 void StartEncodedFrameLogs(VideoSendStream* stream); |
| 112 void StartEncodedFrameLogs(VideoReceiveStream* stream); |
| 113 |
| 110 // We need a more general capturer than the FrameGeneratorCapturer. | 114 // We need a more general capturer than the FrameGeneratorCapturer. |
| 111 std::unique_ptr<test::VideoCapturer> capturer_; | 115 std::unique_ptr<test::VideoCapturer> capturer_; |
| 112 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; | 116 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; |
| 113 std::unique_ptr<test::FrameGenerator> frame_generator_; | 117 std::unique_ptr<test::FrameGenerator> frame_generator_; |
| 114 std::unique_ptr<VideoEncoder> encoder_; | 118 std::unique_ptr<VideoEncoder> encoder_; |
| 115 Clock* const clock_; | 119 Clock* const clock_; |
| 116 | 120 |
| 121 int receive_logs_; |
| 122 int send_logs_; |
| 123 |
| 117 Params params_; | 124 Params params_; |
| 118 }; | 125 }; |
| 119 | 126 |
| 120 } // namespace webrtc | 127 } // namespace webrtc |
| 121 | 128 |
| 122 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ | 129 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ |
| OLD | NEW |