| 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; |
| 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 RunWithVideoRenderer(const Params& params); |
| 81 | 83 |
| 82 static void FillScalabilitySettings( | 84 static void FillScalabilitySettings( |
| (...skipping 29 matching lines...) Expand all Loading... |
| 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_ |
| OLD | NEW |