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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | |
75 }; | 73 }; |
76 // (*) Set to -1.1 if generating graph data for simulcast or SVC and the | 74 // (*) Set to -1.1 if generating graph data for simulcast or SVC and the |
77 // selected stream/layer doesn't have the same resolution as the largest | 75 // selected stream/layer doesn't have the same resolution as the largest |
78 // stream/layer (to ignore the PSNR and SSIM calculation errors). | 76 // stream/layer (to ignore the PSNR and SSIM calculation errors). |
79 | 77 |
80 VideoQualityTest(); | 78 VideoQualityTest(); |
81 void RunWithAnalyzer(const Params& params); | 79 void RunWithAnalyzer(const Params& params); |
82 void RunWithRenderers(const Params& params); | 80 void RunWithVideoRenderer(const Params& params); |
83 | 81 |
84 static void FillScalabilitySettings( | 82 static void FillScalabilitySettings( |
85 Params* params, | 83 Params* params, |
86 const std::vector<std::string>& stream_descriptors, | 84 const std::vector<std::string>& stream_descriptors, |
87 size_t selected_stream, | 85 size_t selected_stream, |
88 int num_spatial_layers, | 86 int num_spatial_layers, |
89 int selected_sl, | 87 int selected_sl, |
90 const std::vector<std::string>& sl_descriptors); | 88 const std::vector<std::string>& sl_descriptors); |
91 | 89 |
92 protected: | 90 protected: |
(...skipping 21 matching lines...) Expand all Loading... |
114 std::unique_ptr<VideoEncoder> encoder_; | 112 std::unique_ptr<VideoEncoder> encoder_; |
115 VideoCodecUnion codec_settings_; | 113 VideoCodecUnion codec_settings_; |
116 Clock* const clock_; | 114 Clock* const clock_; |
117 | 115 |
118 Params params_; | 116 Params params_; |
119 }; | 117 }; |
120 | 118 |
121 } // namespace webrtc | 119 } // namespace webrtc |
122 | 120 |
123 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ | 121 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ |
OLD | NEW |