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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 int target_bitrate_bps; | 44 int target_bitrate_bps; |
45 int max_bitrate_bps; | 45 int max_bitrate_bps; |
46 bool suspend_below_min_bitrate; | 46 bool suspend_below_min_bitrate; |
47 std::string codec; | 47 std::string codec; |
48 int num_temporal_layers; | 48 int num_temporal_layers; |
49 int selected_tl; | 49 int selected_tl; |
50 int min_transmit_bps; | 50 int min_transmit_bps; |
51 bool ulpfec; | 51 bool ulpfec; |
52 bool flexfec; | 52 bool flexfec; |
53 std::string encoded_frame_base_path; | 53 std::string encoded_frame_base_path; |
54 std::string clip_name; | 54 std::string clip_name; // "Generator" to generate frames instead. |
55 size_t capture_device_index; | 55 size_t capture_device_index; |
56 } video; | 56 } video; |
57 struct Audio { | 57 struct Audio { |
58 bool enabled; | 58 bool enabled; |
59 bool sync_video; | 59 bool sync_video; |
60 bool dtx; | 60 bool dtx; |
61 } audio; | 61 } audio; |
62 struct Screenshare { | 62 struct Screenshare { |
63 bool enabled; | 63 bool enabled; |
64 int32_t slide_change_interval; | 64 int32_t slide_change_interval; |
(...skipping 10 matching lines...) Expand all Loading... |
75 } analyzer; | 75 } analyzer; |
76 FakeNetworkPipe::Config pipe; | 76 FakeNetworkPipe::Config pipe; |
77 bool logs; | 77 bool logs; |
78 struct SS { // Spatial scalability. | 78 struct SS { // Spatial scalability. |
79 std::vector<VideoStream> streams; // If empty, one stream is assumed. | 79 std::vector<VideoStream> streams; // If empty, one stream is assumed. |
80 size_t selected_stream; | 80 size_t selected_stream; |
81 int num_spatial_layers; | 81 int num_spatial_layers; |
82 int selected_sl; | 82 int selected_sl; |
83 // If empty, bitrates are generated in VP9Impl automatically. | 83 // If empty, bitrates are generated in VP9Impl automatically. |
84 std::vector<SpatialLayer> spatial_layers; | 84 std::vector<SpatialLayer> spatial_layers; |
| 85 // If set, default parameters will be used instead of |streams|. |
| 86 bool infer_streams; |
85 } ss; | 87 } ss; |
86 int num_thumbnails; | 88 int num_thumbnails; |
87 }; | 89 }; |
88 | 90 |
89 VideoQualityTest(); | 91 VideoQualityTest(); |
90 void RunWithAnalyzer(const Params& params); | 92 void RunWithAnalyzer(const Params& params); |
91 void RunWithRenderers(const Params& params); | 93 void RunWithRenderers(const Params& params); |
92 | 94 |
93 static void FillScalabilitySettings( | 95 static void FillScalabilitySettings( |
94 Params* params, | 96 Params* params, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 int send_logs_; | 153 int send_logs_; |
152 | 154 |
153 VideoSendStream::DegradationPreference degradation_preference_ = | 155 VideoSendStream::DegradationPreference degradation_preference_ = |
154 VideoSendStream::DegradationPreference::kMaintainFramerate; | 156 VideoSendStream::DegradationPreference::kMaintainFramerate; |
155 Params params_; | 157 Params params_; |
156 }; | 158 }; |
157 | 159 |
158 } // namespace webrtc | 160 } // namespace webrtc |
159 | 161 |
160 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ | 162 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ |
OLD | NEW |