| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 int num_thumbnails; | 88 int num_thumbnails; |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 VideoQualityTest(); | 91 VideoQualityTest(); |
| 92 void RunWithAnalyzer(const Params& params); | 92 void RunWithAnalyzer(const Params& params); |
| 93 void RunWithRenderers(const Params& params); | 93 void RunWithRenderers(const Params& params); |
| 94 | 94 |
| 95 static void FillScalabilitySettings( | 95 static void FillScalabilitySettings( |
| 96 Params* params, | 96 Params* params, |
| 97 const std::vector<std::string>& stream_descriptors, | 97 const std::vector<std::string>& stream_descriptors, |
| 98 int num_streams, |
| 98 size_t selected_stream, | 99 size_t selected_stream, |
| 99 int num_spatial_layers, | 100 int num_spatial_layers, |
| 100 int selected_sl, | 101 int selected_sl, |
| 101 const std::vector<std::string>& sl_descriptors); | 102 const std::vector<std::string>& sl_descriptors); |
| 102 | 103 |
| 103 protected: | 104 protected: |
| 104 std::map<uint8_t, webrtc::MediaType> payload_type_map_; | 105 std::map<uint8_t, webrtc::MediaType> payload_type_map_; |
| 105 | 106 |
| 106 // No-op implementation to be able to instantiate this class from non-TEST_F | 107 // No-op implementation to be able to instantiate this class from non-TEST_F |
| 107 // locations. | 108 // locations. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 118 | 119 |
| 119 // Helper methods for setting up the call. | 120 // Helper methods for setting up the call. |
| 120 void CreateCapturer(); | 121 void CreateCapturer(); |
| 121 void SetupThumbnailCapturers(size_t num_thumbnail_streams); | 122 void SetupThumbnailCapturers(size_t num_thumbnail_streams); |
| 122 void SetupVideo(Transport* send_transport, Transport* recv_transport); | 123 void SetupVideo(Transport* send_transport, Transport* recv_transport); |
| 123 void SetupThumbnails(Transport* send_transport, Transport* recv_transport); | 124 void SetupThumbnails(Transport* send_transport, Transport* recv_transport); |
| 124 void DestroyThumbnailStreams(); | 125 void DestroyThumbnailStreams(); |
| 125 void SetupScreenshareOrSVC(); | 126 void SetupScreenshareOrSVC(); |
| 126 void SetupAudio(int send_channel_id, | 127 void SetupAudio(int send_channel_id, |
| 127 int receive_channel_id, | 128 int receive_channel_id, |
| 128 Call* call, | |
| 129 Transport* transport, | 129 Transport* transport, |
| 130 AudioReceiveStream** audio_receive_stream); | 130 AudioReceiveStream** audio_receive_stream); |
| 131 | 131 |
| 132 void StartEncodedFrameLogs(VideoSendStream* stream); | 132 void StartEncodedFrameLogs(VideoSendStream* stream); |
| 133 void StartEncodedFrameLogs(VideoReceiveStream* stream); | 133 void StartEncodedFrameLogs(VideoReceiveStream* stream); |
| 134 | 134 |
| 135 // We need a more general capturer than the FrameGeneratorCapturer. | 135 // We need a more general capturer than the FrameGeneratorCapturer. |
| 136 std::unique_ptr<test::VideoCapturer> video_capturer_; | 136 std::unique_ptr<test::VideoCapturer> video_capturer_; |
| 137 std::vector<std::unique_ptr<test::VideoCapturer>> thumbnail_capturers_; | 137 std::vector<std::unique_ptr<test::VideoCapturer>> thumbnail_capturers_; |
| 138 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; | 138 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 153 int send_logs_; | 153 int send_logs_; |
| 154 | 154 |
| 155 VideoSendStream::DegradationPreference degradation_preference_ = | 155 VideoSendStream::DegradationPreference degradation_preference_ = |
| 156 VideoSendStream::DegradationPreference::kMaintainFramerate; | 156 VideoSendStream::DegradationPreference::kMaintainFramerate; |
| 157 Params params_; | 157 Params params_; |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace webrtc | 160 } // namespace webrtc |
| 161 | 161 |
| 162 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ | 162 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ |
| OLD | NEW |