OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // The rate control tests allow us to verify the behavior for changing bit rate, | 86 // The rate control tests allow us to verify the behavior for changing bit rate, |
87 // changing frame rate, frame dropping/spatial resize, and temporal layers. | 87 // changing frame rate, frame dropping/spatial resize, and temporal layers. |
88 // The thresholds for the rate control metrics are set to be fairly | 88 // The thresholds for the rate control metrics are set to be fairly |
89 // conservative, so failure should only happen when some significant regression | 89 // conservative, so failure should only happen when some significant regression |
90 // or breakdown occurs. | 90 // or breakdown occurs. |
91 class VideoProcessorIntegrationTest : public testing::Test { | 91 class VideoProcessorIntegrationTest : public testing::Test { |
92 protected: | 92 protected: |
93 VideoProcessorIntegrationTest(); | 93 VideoProcessorIntegrationTest(); |
94 ~VideoProcessorIntegrationTest() override; | 94 ~VideoProcessorIntegrationTest() override; |
95 | 95 |
96 static void SetTestConfig(TestConfig* config, | |
97 bool hw_codec, | |
98 bool use_single_core, | |
99 float packet_loss_probability, | |
100 std::string filename, | |
101 bool verbose_logging); | |
102 | |
103 static void SetCodecSettings(TestConfig* config, | 96 static void SetCodecSettings(TestConfig* config, |
104 VideoCodecType codec_type, | 97 VideoCodecType codec_type, |
105 int num_temporal_layers, | 98 int num_temporal_layers, |
106 bool error_concealment_on, | 99 bool error_concealment_on, |
107 bool denoising_on, | 100 bool denoising_on, |
108 bool frame_dropper_on, | 101 bool frame_dropper_on, |
109 bool spatial_resize_on, | 102 bool spatial_resize_on, |
110 bool resilience_on, | 103 bool resilience_on, |
111 int width, | 104 int width, |
112 int height); | 105 int height); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 float target_size_key_frame_initial_; | 184 float target_size_key_frame_initial_; |
192 float target_size_key_frame_; | 185 float target_size_key_frame_; |
193 float sum_key_frame_size_mismatch_; | 186 float sum_key_frame_size_mismatch_; |
194 int num_key_frames_; | 187 int num_key_frames_; |
195 }; | 188 }; |
196 | 189 |
197 } // namespace test | 190 } // namespace test |
198 } // namespace webrtc | 191 } // namespace webrtc |
199 | 192 |
200 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTES
T_H_ | 193 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTES
T_H_ |
OLD | NEW |