| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 foreman_cif.video = {true, 352, 288, 30, 30000, 2000000, 2000000, false, | 297 foreman_cif.video = {true, 352, 288, 30, 30000, 2000000, 2000000, false, |
| 298 "VP8", 1, 0, 0, false, false, "foreman_cif"}; | 298 "VP8", 1, 0, 0, false, false, "foreman_cif"}; |
| 299 foreman_cif.analyzer = {"foreman_cif_1000kbps_100ms_32pkts_queue", 0.0, 0.0, | 299 foreman_cif.analyzer = {"foreman_cif_1000kbps_100ms_32pkts_queue", 0.0, 0.0, |
| 300 kFullStackTestDurationSecs}; | 300 kFullStackTestDurationSecs}; |
| 301 foreman_cif.pipe.queue_length_packets = 32; | 301 foreman_cif.pipe.queue_length_packets = 32; |
| 302 foreman_cif.pipe.queue_delay_ms = 100; | 302 foreman_cif.pipe.queue_delay_ms = 100; |
| 303 foreman_cif.pipe.link_capacity_kbps = 1000; | 303 foreman_cif.pipe.link_capacity_kbps = 1000; |
| 304 RunTest(foreman_cif); | 304 RunTest(foreman_cif); |
| 305 } | 305 } |
| 306 | 306 |
| 307 // TODO(sprang): Remove this if we have the similar ModerateLimits below? |
| 307 TEST_F(FullStackTest, ConferenceMotionHd2000kbps100msLimitedQueue) { | 308 TEST_F(FullStackTest, ConferenceMotionHd2000kbps100msLimitedQueue) { |
| 308 VideoQualityTest::Params conf_motion_hd; | 309 VideoQualityTest::Params conf_motion_hd; |
| 309 conf_motion_hd.call.send_side_bwe = true; | 310 conf_motion_hd.call.send_side_bwe = true; |
| 310 conf_motion_hd.video = { | 311 conf_motion_hd.video = { |
| 311 true, 1280, 720, 50, 30000, | 312 true, 1280, 720, 50, 30000, |
| 312 3000000, 3000000, false, "VP8", 1, | 313 3000000, 3000000, false, "VP8", 1, |
| 313 0, 0, false, false, "ConferenceMotion_1280_720_50"}; | 314 0, 0, false, false, "ConferenceMotion_1280_720_50"}; |
| 314 conf_motion_hd.analyzer = {"conference_motion_hd_2000kbps_100ms_32pkts_queue", | 315 conf_motion_hd.analyzer = {"conference_motion_hd_2000kbps_100ms_32pkts_queue", |
| 315 0.0, 0.0, kFullStackTestDurationSecs}; | 316 0.0, 0.0, kFullStackTestDurationSecs}; |
| 316 conf_motion_hd.pipe.queue_length_packets = 32; | 317 conf_motion_hd.pipe.queue_length_packets = 32; |
| 317 conf_motion_hd.pipe.queue_delay_ms = 100; | 318 conf_motion_hd.pipe.queue_delay_ms = 100; |
| 318 conf_motion_hd.pipe.link_capacity_kbps = 2000; | 319 conf_motion_hd.pipe.link_capacity_kbps = 2000; |
| 319 RunTest(conf_motion_hd); | 320 RunTest(conf_motion_hd); |
| 320 } | 321 } |
| 321 | 322 |
| 323 TEST_F(FullStackTest, ConferenceMotionHd1TLModerateLimits) { |
| 324 VideoQualityTest::Params conf_motion_hd; |
| 325 conf_motion_hd.call.send_side_bwe = true; |
| 326 conf_motion_hd.video = { |
| 327 true, 1280, 720, 50, 30000, |
| 328 3000000, 3000000, false, "VP8", 1, |
| 329 -1, 0, false, false, "ConferenceMotion_1280_720_50"}; |
| 330 conf_motion_hd.analyzer = {"conference_motion_hd_1tl_moderate_limits", 0.0, |
| 331 0.0, kFullStackTestDurationSecs}; |
| 332 conf_motion_hd.pipe.queue_length_packets = 50; |
| 333 conf_motion_hd.pipe.loss_percent = 3; |
| 334 conf_motion_hd.pipe.queue_delay_ms = 100; |
| 335 conf_motion_hd.pipe.link_capacity_kbps = 2000; |
| 336 RunTest(conf_motion_hd); |
| 337 } |
| 338 |
| 339 TEST_F(FullStackTest, ConferenceMotionHd2TLModerateLimits) { |
| 340 VideoQualityTest::Params conf_motion_hd; |
| 341 conf_motion_hd.call.send_side_bwe = true; |
| 342 conf_motion_hd.video = { |
| 343 true, 1280, 720, 50, 30000, |
| 344 3000000, 3000000, false, "VP8", 2, |
| 345 -1, 0, false, false, "ConferenceMotion_1280_720_50"}; |
| 346 conf_motion_hd.analyzer = {"conference_motion_hd_2tl_moderate_limits", 0.0, |
| 347 0.0, kFullStackTestDurationSecs}; |
| 348 conf_motion_hd.pipe.queue_length_packets = 50; |
| 349 conf_motion_hd.pipe.loss_percent = 3; |
| 350 conf_motion_hd.pipe.queue_delay_ms = 100; |
| 351 conf_motion_hd.pipe.link_capacity_kbps = 2000; |
| 352 RunTest(conf_motion_hd); |
| 353 } |
| 354 |
| 355 TEST_F(FullStackTest, ConferenceMotionHd3TLModerateLimits) { |
| 356 VideoQualityTest::Params conf_motion_hd; |
| 357 conf_motion_hd.call.send_side_bwe = true; |
| 358 conf_motion_hd.video = { |
| 359 true, 1280, 720, 50, 30000, |
| 360 3000000, 3000000, false, "VP8", 3, |
| 361 -1, 0, false, false, "ConferenceMotion_1280_720_50"}; |
| 362 conf_motion_hd.analyzer = {"conference_motion_hd_3tl_moderate_limits", 0.0, |
| 363 0.0, kFullStackTestDurationSecs}; |
| 364 conf_motion_hd.pipe.queue_length_packets = 50; |
| 365 conf_motion_hd.pipe.loss_percent = 3; |
| 366 conf_motion_hd.pipe.queue_delay_ms = 100; |
| 367 conf_motion_hd.pipe.link_capacity_kbps = 2000; |
| 368 RunTest(conf_motion_hd); |
| 369 } |
| 370 |
| 371 TEST_F(FullStackTest, ConferenceMotionHd4TLModerateLimits) { |
| 372 VideoQualityTest::Params conf_motion_hd; |
| 373 conf_motion_hd.call.send_side_bwe = true; |
| 374 conf_motion_hd.video = { |
| 375 true, 1280, 720, 50, 30000, |
| 376 3000000, 3000000, false, "VP8", 4, |
| 377 -1, 0, false, false, "ConferenceMotion_1280_720_50"}; |
| 378 conf_motion_hd.analyzer = {"conference_motion_hd_4tl_moderate_limits", 0.0, |
| 379 0.0, kFullStackTestDurationSecs}; |
| 380 conf_motion_hd.pipe.queue_length_packets = 50; |
| 381 conf_motion_hd.pipe.loss_percent = 3; |
| 382 conf_motion_hd.pipe.queue_delay_ms = 100; |
| 383 conf_motion_hd.pipe.link_capacity_kbps = 2000; |
| 384 RunTest(conf_motion_hd); |
| 385 } |
| 386 |
| 387 TEST_F(FullStackTest, ConferenceMotionHd3TLModerateLimitsAltTLPattern) { |
| 388 test::ScopedFieldTrials field_trial("WebRTC-UseShortVP8TL3Pattern/Enabled/"); |
| 389 VideoQualityTest::Params conf_motion_hd; |
| 390 conf_motion_hd.call.send_side_bwe = true; |
| 391 conf_motion_hd.video = { |
| 392 true, 1280, 720, 50, 30000, |
| 393 3000000, 3000000, false, "VP8", 3, |
| 394 -1, 0, false, false, "ConferenceMotion_1280_720_50"}; |
| 395 conf_motion_hd.analyzer = {"conference_motion_hd_3tl_alt_moderate_limits", |
| 396 0.0, 0.0, kFullStackTestDurationSecs}; |
| 397 conf_motion_hd.pipe.queue_length_packets = 50; |
| 398 conf_motion_hd.pipe.loss_percent = 3; |
| 399 conf_motion_hd.pipe.queue_delay_ms = 100; |
| 400 conf_motion_hd.pipe.link_capacity_kbps = 2000; |
| 401 RunTest(conf_motion_hd); |
| 402 } |
| 403 |
| 322 #if !defined(RTC_DISABLE_VP9) | 404 #if !defined(RTC_DISABLE_VP9) |
| 323 TEST_F(FullStackTest, ConferenceMotionHd2000kbps100msLimitedQueueVP9) { | 405 TEST_F(FullStackTest, ConferenceMotionHd2000kbps100msLimitedQueueVP9) { |
| 324 VideoQualityTest::Params conf_motion_hd; | 406 VideoQualityTest::Params conf_motion_hd; |
| 325 conf_motion_hd.call.send_side_bwe = true; | 407 conf_motion_hd.call.send_side_bwe = true; |
| 326 conf_motion_hd.video = { | 408 conf_motion_hd.video = { |
| 327 true, 1280, 720, 50, 30000, | 409 true, 1280, 720, 50, 30000, |
| 328 3000000, 3000000, false, "VP9", 1, | 410 3000000, 3000000, false, "VP9", 1, |
| 329 0, 0, false, false, "ConferenceMotion_1280_720_50"}; | 411 0, 0, false, false, "ConferenceMotion_1280_720_50"}; |
| 330 conf_motion_hd.analyzer = { | 412 conf_motion_hd.analyzer = { |
| 331 "conference_motion_hd_2000kbps_100ms_32pkts_queue_vp9", 0.0, 0.0, | 413 "conference_motion_hd_2000kbps_100ms_32pkts_queue_vp9", 0.0, 0.0, |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), | 830 std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), |
| 749 DefaultVideoStream(video_params_medium), | 831 DefaultVideoStream(video_params_medium), |
| 750 DefaultVideoStream(video_params_high)}; | 832 DefaultVideoStream(video_params_high)}; |
| 751 large_room.call.num_thumbnails = 50; | 833 large_room.call.num_thumbnails = 50; |
| 752 large_room.ss = {streams, 2, 1, 0, std::vector<SpatialLayer>(), false}; | 834 large_room.ss = {streams, 2, 1, 0, std::vector<SpatialLayer>(), false}; |
| 753 RunTest(large_room); | 835 RunTest(large_room); |
| 754 } | 836 } |
| 755 | 837 |
| 756 | 838 |
| 757 } // namespace webrtc | 839 } // namespace webrtc |
| OLD | NEW |