| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 screenshare.call.send_side_bwe = true; | 353 screenshare.call.send_side_bwe = true; |
| 354 screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, | 354 screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
| 355 "VP9", 1, 0, 400000, false, false, "", ""}; | 355 "VP9", 1, 0, 400000, false, false, "", ""}; |
| 356 screenshare.screenshare = {true, 10}; | 356 screenshare.screenshare = {true, 10}; |
| 357 screenshare.analyzer = {"screenshare_slides_vp9_2sl", 0.0, 0.0, | 357 screenshare.analyzer = {"screenshare_slides_vp9_2sl", 0.0, 0.0, |
| 358 kFullStackTestDurationSecs}; | 358 kFullStackTestDurationSecs}; |
| 359 screenshare.logs = false; | 359 screenshare.logs = false; |
| 360 screenshare.ss = {std::vector<VideoStream>(), 0, 2, 1}; | 360 screenshare.ss = {std::vector<VideoStream>(), 0, 2, 1}; |
| 361 RunTest(screenshare); | 361 RunTest(screenshare); |
| 362 } | 362 } |
| 363 |
| 364 TEST_F(FullStackTest, VP9SVC_3SL_High) { |
| 365 VideoQualityTest::Params simulcast; |
| 366 simulcast.call.send_side_bwe = true; |
| 367 simulcast.video = {true, 1280, 720, 50, |
| 368 800000, 2500000, 2500000, false, |
| 369 "VP9", 1, 0, 400000, |
| 370 false, false, "", "ConferenceMotion_1280_720_50"}; |
| 371 simulcast.analyzer = {"vp9svc_3sl_high", 0.0, 0.0, |
| 372 kFullStackTestDurationSecs}; |
| 373 simulcast.logs = false; |
| 374 simulcast.ss = {std::vector<VideoStream>(), 0, 3, 2}; |
| 375 RunTest(simulcast); |
| 376 } |
| 377 |
| 378 TEST_F(FullStackTest, VP9SVC_3SL_Medium) { |
| 379 VideoQualityTest::Params simulcast; |
| 380 simulcast.call.send_side_bwe = true; |
| 381 simulcast.video = {true, 1280, 720, 50, |
| 382 800000, 2500000, 2500000, false, |
| 383 "VP9", 1, 0, 400000, |
| 384 false, false, "", "ConferenceMotion_1280_720_50"}; |
| 385 simulcast.analyzer = {"vp9svc_3sl_medium", 0.0, 0.0, |
| 386 kFullStackTestDurationSecs}; |
| 387 simulcast.logs = false; |
| 388 simulcast.ss = {std::vector<VideoStream>(), 0, 3, 1}; |
| 389 RunTest(simulcast); |
| 390 } |
| 391 |
| 392 TEST_F(FullStackTest, VP9SVC_3SL_Low) { |
| 393 VideoQualityTest::Params simulcast; |
| 394 simulcast.call.send_side_bwe = true; |
| 395 simulcast.video = {true, 1280, 720, 50, |
| 396 800000, 2500000, 2500000, false, |
| 397 "VP9", 1, 0, 400000, |
| 398 false, false, "", "ConferenceMotion_1280_720_50"}; |
| 399 simulcast.analyzer = {"vp9svc_3sl_low", 0.0, 0.0, kFullStackTestDurationSecs}; |
| 400 simulcast.logs = false; |
| 401 simulcast.ss = {std::vector<VideoStream>(), 0, 3, 0}; |
| 402 RunTest(simulcast); |
| 403 } |
| 363 #endif // !defined(RTC_DISABLE_VP9) | 404 #endif // !defined(RTC_DISABLE_VP9) |
| 364 | 405 |
| 365 TEST_F(FullStackTest, SimulcastVP8_3SL_High) { | 406 TEST_F(FullStackTest, SimulcastVP8_3SL_High) { |
| 366 VideoQualityTest::Params simulcast; | 407 VideoQualityTest::Params simulcast; |
| 367 simulcast.call.send_side_bwe = true; | 408 simulcast.call.send_side_bwe = true; |
| 368 simulcast.video = {true, 1280, 720, 50, | 409 simulcast.video = {true, 1280, 720, 50, |
| 369 800000, 2500000, 2500000, false, | 410 800000, 2500000, 2500000, false, |
| 370 "VP8", 1, 0, 400000, | 411 "VP8", 1, 0, 400000, |
| 371 false, false, "", "ConferenceMotion_1280_720_50"}; | 412 false, false, "", "ConferenceMotion_1280_720_50"}; |
| 372 simulcast.analyzer = {"simulcast_vp8_3sl_demo", 0.0, 0.0, | 413 simulcast.analyzer = {"simulcast_vp8_3sl_high", 0.0, 0.0, |
| 373 kFullStackTestDurationSecs}; | 414 kFullStackTestDurationSecs}; |
| 374 simulcast.pipe.loss_percent = 0; | 415 simulcast.pipe.loss_percent = 0; |
| 375 simulcast.pipe.queue_delay_ms = 100; | 416 simulcast.pipe.queue_delay_ms = 100; |
| 376 VideoQualityTest::Params video_params_high; | 417 VideoQualityTest::Params video_params_high; |
| 377 video_params_high.video = { | 418 video_params_high.video = { |
| 378 true, 1280, 720, 50, | 419 true, 1280, 720, 50, |
| 379 800000, 2500000, 2500000, false, | 420 800000, 2500000, 2500000, false, |
| 380 "VP8", 1, 0, 400000, | 421 "VP8", 1, 0, 400000, |
| 381 false, false, "", "ConferenceMotion_1280_720_50"}; | 422 false, false, "", "ConferenceMotion_1280_720_50"}; |
| 382 VideoQualityTest::Params video_params_medium; | 423 VideoQualityTest::Params video_params_medium; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 399 RunTest(simulcast); | 440 RunTest(simulcast); |
| 400 } | 441 } |
| 401 | 442 |
| 402 TEST_F(FullStackTest, SimulcastVP8_3SL_Medium) { | 443 TEST_F(FullStackTest, SimulcastVP8_3SL_Medium) { |
| 403 VideoQualityTest::Params simulcast; | 444 VideoQualityTest::Params simulcast; |
| 404 simulcast.call.send_side_bwe = true; | 445 simulcast.call.send_side_bwe = true; |
| 405 simulcast.video = {true, 1280, 720, 50, | 446 simulcast.video = {true, 1280, 720, 50, |
| 406 800000, 2500000, 2500000, false, | 447 800000, 2500000, 2500000, false, |
| 407 "VP8", 1, 0, 400000, | 448 "VP8", 1, 0, 400000, |
| 408 false, false, "", "ConferenceMotion_1280_720_50"}; | 449 false, false, "", "ConferenceMotion_1280_720_50"}; |
| 409 simulcast.analyzer = {"simulcast_vp8_3sl_demo", 0.0, 0.0, | 450 simulcast.analyzer = {"simulcast_vp8_3sl_medium", 0.0, 0.0, |
| 410 kFullStackTestDurationSecs}; | 451 kFullStackTestDurationSecs}; |
| 411 simulcast.pipe.loss_percent = 0; | 452 simulcast.pipe.loss_percent = 0; |
| 412 simulcast.pipe.queue_delay_ms = 100; | 453 simulcast.pipe.queue_delay_ms = 100; |
| 413 VideoQualityTest::Params video_params_high; | 454 VideoQualityTest::Params video_params_high; |
| 414 video_params_high.video = { | 455 video_params_high.video = { |
| 415 true, 1280, 720, 50, | 456 true, 1280, 720, 50, |
| 416 800000, 2500000, 2500000, false, | 457 800000, 2500000, 2500000, false, |
| 417 "VP8", 1, 0, 400000, | 458 "VP8", 1, 0, 400000, |
| 418 false, false, "", "ConferenceMotion_1280_720_50"}; | 459 false, false, "", "ConferenceMotion_1280_720_50"}; |
| 419 VideoQualityTest::Params video_params_medium; | 460 VideoQualityTest::Params video_params_medium; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 436 RunTest(simulcast); | 477 RunTest(simulcast); |
| 437 } | 478 } |
| 438 | 479 |
| 439 TEST_F(FullStackTest, SimulcastVP8_3SL_Low) { | 480 TEST_F(FullStackTest, SimulcastVP8_3SL_Low) { |
| 440 VideoQualityTest::Params simulcast; | 481 VideoQualityTest::Params simulcast; |
| 441 simulcast.call.send_side_bwe = true; | 482 simulcast.call.send_side_bwe = true; |
| 442 simulcast.video = {true, 1280, 720, 50, | 483 simulcast.video = {true, 1280, 720, 50, |
| 443 800000, 2500000, 2500000, false, | 484 800000, 2500000, 2500000, false, |
| 444 "VP8", 1, 0, 400000, | 485 "VP8", 1, 0, 400000, |
| 445 false, false, "", "ConferenceMotion_1280_720_50"}; | 486 false, false, "", "ConferenceMotion_1280_720_50"}; |
| 446 simulcast.analyzer = {"simulcast_vp8_3sl_demo", 0.0, 0.0, | 487 simulcast.analyzer = {"simulcast_vp8_3sl_low", 0.0, 0.0, |
| 447 kFullStackTestDurationSecs}; | 488 kFullStackTestDurationSecs}; |
| 448 simulcast.pipe.loss_percent = 0; | 489 simulcast.pipe.loss_percent = 0; |
| 449 simulcast.pipe.queue_delay_ms = 100; | 490 simulcast.pipe.queue_delay_ms = 100; |
| 450 VideoQualityTest::Params video_params_high; | 491 VideoQualityTest::Params video_params_high; |
| 451 video_params_high.video = { | 492 video_params_high.video = { |
| 452 true, 1280, 720, 50, | 493 true, 1280, 720, 50, |
| 453 800000, 2500000, 2500000, false, | 494 800000, 2500000, 2500000, false, |
| 454 "VP8", 1, 0, 400000, | 495 "VP8", 1, 0, 400000, |
| 455 false, false, "", "ConferenceMotion_1280_720_50"}; | 496 false, false, "", "ConferenceMotion_1280_720_50"}; |
| 456 VideoQualityTest::Params video_params_medium; | 497 VideoQualityTest::Params video_params_medium; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 467 false, false, "", "ConferenceMotion_1280_720_50"}; | 508 false, false, "", "ConferenceMotion_1280_720_50"}; |
| 468 | 509 |
| 469 std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), | 510 std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), |
| 470 DefaultVideoStream(video_params_medium), | 511 DefaultVideoStream(video_params_medium), |
| 471 DefaultVideoStream(video_params_high)}; | 512 DefaultVideoStream(video_params_high)}; |
| 472 simulcast.ss = {streams, 0, 1, 0}; | 513 simulcast.ss = {streams, 0, 1, 0}; |
| 473 RunTest(simulcast); | 514 RunTest(simulcast); |
| 474 } | 515 } |
| 475 | 516 |
| 476 } // namespace webrtc | 517 } // namespace webrtc |
| OLD | NEW |