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

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

Issue 2259783002: Reland of Adding audio to video_quality_test. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: fixing struct initialization. Created 4 years, 4 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/video_loopback.cc ('k') | webrtc/video/video_quality_test.cc » ('j') | 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 struct { // Analyzer settings. 55 struct { // Analyzer settings.
56 std::string test_label; 56 std::string test_label;
57 double avg_psnr_threshold; // (*) 57 double avg_psnr_threshold; // (*)
58 double avg_ssim_threshold; // (*) 58 double avg_ssim_threshold; // (*)
59 int test_durations_secs; 59 int test_durations_secs;
60 std::string graph_data_output_filename; 60 std::string graph_data_output_filename;
61 std::string graph_title; 61 std::string graph_title;
62 } analyzer; 62 } analyzer;
63 FakeNetworkPipe::Config pipe; 63 FakeNetworkPipe::Config pipe;
64 bool logs; 64 bool logs;
65 struct { // Spatial scalability. 65 struct { // Spatial scalability.
66 std::vector<VideoStream> streams; // If empty, one stream is assumed. 66 std::vector<VideoStream> streams; // If empty, one stream is assumed.
67 size_t selected_stream; 67 size_t selected_stream;
68 int num_spatial_layers; 68 int num_spatial_layers;
69 int selected_sl; 69 int selected_sl;
70 // If empty, bitrates are generated in VP9Impl automatically. 70 // If empty, bitrates are generated in VP9Impl automatically.
71 std::vector<SpatialLayer> spatial_layers; 71 std::vector<SpatialLayer> spatial_layers;
72 } ss; 72 } ss;
73 bool audio;
74 bool audio_video_sync;
73 }; 75 };
74 // (*) Set to -1.1 if generating graph data for simulcast or SVC and the 76 // (*) Set to -1.1 if generating graph data for simulcast or SVC and the
75 // selected stream/layer doesn't have the same resolution as the largest 77 // selected stream/layer doesn't have the same resolution as the largest
76 // stream/layer (to ignore the PSNR and SSIM calculation errors). 78 // stream/layer (to ignore the PSNR and SSIM calculation errors).
77 79
78 VideoQualityTest(); 80 VideoQualityTest();
79 void RunWithAnalyzer(const Params& params); 81 void RunWithAnalyzer(const Params& params);
80 void RunWithVideoRenderer(const Params& params); 82 void RunWithRenderers(const Params& params);
81 83
82 static void FillScalabilitySettings( 84 static void FillScalabilitySettings(
83 Params* params, 85 Params* params,
84 const std::vector<std::string>& stream_descriptors, 86 const std::vector<std::string>& stream_descriptors,
85 size_t selected_stream, 87 size_t selected_stream,
86 int num_spatial_layers, 88 int num_spatial_layers,
87 int selected_sl, 89 int selected_sl,
88 const std::vector<std::string>& sl_descriptors); 90 const std::vector<std::string>& sl_descriptors);
89 91
90 protected: 92 protected:
(...skipping 21 matching lines...) Expand all
112 std::unique_ptr<VideoEncoder> encoder_; 114 std::unique_ptr<VideoEncoder> encoder_;
113 VideoCodecUnion codec_settings_; 115 VideoCodecUnion codec_settings_;
114 Clock* const clock_; 116 Clock* const clock_;
115 117
116 Params params_; 118 Params params_;
117 }; 119 };
118 120
119 } // namespace webrtc 121 } // namespace webrtc
120 122
121 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 123 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
OLDNEW
« no previous file with comments | « webrtc/video/video_loopback.cc ('k') | webrtc/video/video_quality_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698