Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: webrtc/video/video_quality_test.h

Issue 2734753003: Cleaning up full-stack simulcast tests and making them more realistic. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/full_stack_tests.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 11 matching lines...) Expand all
22 22
23 class VideoQualityTest : public test::CallTest { 23 class VideoQualityTest : public test::CallTest {
24 public: 24 public:
25 // Parameters are grouped into smaller structs to make it easier to set 25 // Parameters are grouped into smaller structs to make it easier to set
26 // the desired elements and skip unused, using aggregate initialization. 26 // the desired elements and skip unused, using aggregate initialization.
27 // Unfortunately, C++11 (as opposed to C11) doesn't support unnamed structs, 27 // Unfortunately, C++11 (as opposed to C11) doesn't support unnamed structs,
28 // which makes the implementation of VideoQualityTest a bit uglier. 28 // which makes the implementation of VideoQualityTest a bit uglier.
29 struct Params { 29 struct Params {
30 Params(); 30 Params();
31 ~Params(); 31 ~Params();
32 struct { 32 struct CallConfig {
33 bool send_side_bwe; 33 bool send_side_bwe;
34 Call::Config::BitrateConfig call_bitrate_config; 34 Call::Config::BitrateConfig call_bitrate_config;
35 } call; 35 } call;
36 struct { 36 struct Video {
37 bool enabled; 37 bool enabled;
38 size_t width; 38 size_t width;
39 size_t height; 39 size_t height;
40 int32_t fps; 40 int32_t fps;
41 int min_bitrate_bps; 41 int min_bitrate_bps;
42 int target_bitrate_bps; 42 int target_bitrate_bps;
43 int max_bitrate_bps; 43 int max_bitrate_bps;
44 bool suspend_below_min_bitrate; 44 bool suspend_below_min_bitrate;
45 std::string codec; 45 std::string codec;
46 int num_temporal_layers; 46 int num_temporal_layers;
47 int selected_tl; 47 int selected_tl;
48 int min_transmit_bps; 48 int min_transmit_bps;
49 bool ulpfec; 49 bool ulpfec;
50 bool flexfec; 50 bool flexfec;
51 std::string encoded_frame_base_path; 51 std::string encoded_frame_base_path;
52 std::string clip_name; 52 std::string clip_name;
53 } video; 53 } video;
54 struct { 54 struct Audio {
55 bool enabled; 55 bool enabled;
56 bool sync_video; 56 bool sync_video;
57 } audio; 57 } audio;
58 struct { 58 struct Screenshare {
59 bool enabled; 59 bool enabled;
60 int32_t slide_change_interval; 60 int32_t slide_change_interval;
61 int32_t scroll_duration; 61 int32_t scroll_duration;
62 } screenshare; 62 } screenshare;
63 struct { 63 struct Analyzer {
64 std::string test_label; 64 std::string test_label;
65 double avg_psnr_threshold; // (*) 65 double avg_psnr_threshold; // (*)
66 double avg_ssim_threshold; // (*) 66 double avg_ssim_threshold; // (*)
67 int test_durations_secs; 67 int test_durations_secs;
68 std::string graph_data_output_filename; 68 std::string graph_data_output_filename;
69 std::string graph_title; 69 std::string graph_title;
70 } analyzer; 70 } analyzer;
71 FakeNetworkPipe::Config pipe; 71 FakeNetworkPipe::Config pipe;
72 bool logs; 72 bool logs;
73 struct { // Spatial scalability. 73 struct SS { // Spatial scalability.
74 std::vector<VideoStream> streams; // If empty, one stream is assumed. 74 std::vector<VideoStream> streams; // If empty, one stream is assumed.
75 size_t selected_stream; 75 size_t selected_stream;
76 int num_spatial_layers; 76 int num_spatial_layers;
77 int selected_sl; 77 int selected_sl;
78 // If empty, bitrates are generated in VP9Impl automatically. 78 // If empty, bitrates are generated in VP9Impl automatically.
79 std::vector<SpatialLayer> spatial_layers; 79 std::vector<SpatialLayer> spatial_layers;
80 } ss; 80 } ss;
81 int num_thumbnails; 81 int num_thumbnails;
82 }; 82 };
83 83
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 int send_logs_; 142 int send_logs_;
143 143
144 VideoSendStream::DegradationPreference degradation_preference_ = 144 VideoSendStream::DegradationPreference degradation_preference_ =
145 VideoSendStream::DegradationPreference::kBalanced; 145 VideoSendStream::DegradationPreference::kBalanced;
146 Params params_; 146 Params params_;
147 }; 147 };
148 148
149 } // namespace webrtc 149 } // namespace webrtc
150 150
151 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 151 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
OLDNEW
« no previous file with comments | « webrtc/video/full_stack_tests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698