Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: webrtc/video/full_stack_tests.cc

Issue 2668763004: Added VP8 simulcast tests. Fixed analyzer to correctly infer timestamps. (Closed)
Patch Set: reapplyting patch to clean branch Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/common_video/include/frame_callback.h ('k') | webrtc/video/video_quality_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 "VP9", 1, 0, 400000, false, false, "", ""}; 338 "VP9", 1, 0, 400000, false, false, "", ""};
339 screenshare.screenshare = {true, 10}; 339 screenshare.screenshare = {true, 10};
340 screenshare.analyzer = {"screenshare_slides_vp9_2sl", 0.0, 0.0, 340 screenshare.analyzer = {"screenshare_slides_vp9_2sl", 0.0, 0.0,
341 kFullStackTestDurationSecs}; 341 kFullStackTestDurationSecs};
342 screenshare.logs = false; 342 screenshare.logs = false;
343 screenshare.ss = {std::vector<VideoStream>(), 0, 2, 1}; 343 screenshare.ss = {std::vector<VideoStream>(), 0, 2, 1};
344 RunTest(screenshare); 344 RunTest(screenshare);
345 } 345 }
346 #endif // !defined(RTC_DISABLE_VP9) 346 #endif // !defined(RTC_DISABLE_VP9)
347 347
348 TEST_F(FullStackTest, SimulcastVP8_3SL_High) {
349 VideoQualityTest::Params simulcast;
350 simulcast.call.send_side_bwe = true;
351 simulcast.video = {true, 1280, 720, 50,
352 800000, 2500000, 2500000, false,
353 "VP8", 1, 0, 400000,
354 false, false, "", "ConferenceMotion_1280_720_50"};
355 simulcast.analyzer = {"simulcast_vp8_3sl_demo", 0.0, 0.0,
356 kFullStackTestDurationSecs};
357 simulcast.pipe.loss_percent = 0;
358 simulcast.pipe.queue_delay_ms = 100;
359 VideoQualityTest::Params video_params_high;
360 video_params_high.video = {
361 true, 1280, 720, 50,
362 800000, 2500000, 2500000, false,
363 "VP8", 1, 0, 400000,
364 false, false, "", "ConferenceMotion_1280_720_50"};
365 VideoQualityTest::Params video_params_medium;
366 video_params_medium.video = {
367 true, 640, 360, 50,
368 150000, 500000, 700000, false,
369 "VP8", 1, 0, 400000,
370 false, false, "", "ConferenceMotion_1280_720_50"};
371 VideoQualityTest::Params video_params_low;
372 video_params_low.video = {
373 true, 320, 180, 50,
374 30000, 150000, 200000, false,
375 "VP8", 1, 0, 400000,
376 false, false, "", "ConferenceMotion_1280_720_50"};
377
378 std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low),
379 DefaultVideoStream(video_params_medium),
380 DefaultVideoStream(video_params_high)};
381 simulcast.ss = {streams, 2, 1, 0};
382 RunTest(simulcast);
383 }
384
385 TEST_F(FullStackTest, SimulcastVP8_3SL_Medium) {
386 VideoQualityTest::Params simulcast;
387 simulcast.call.send_side_bwe = true;
388 simulcast.video = {true, 1280, 720, 50,
389 800000, 2500000, 2500000, false,
390 "VP8", 1, 0, 400000,
391 false, false, "", "ConferenceMotion_1280_720_50"};
392 simulcast.analyzer = {"simulcast_vp8_3sl_demo", 0.0, 0.0,
393 kFullStackTestDurationSecs};
394 simulcast.pipe.loss_percent = 0;
395 simulcast.pipe.queue_delay_ms = 100;
396 VideoQualityTest::Params video_params_high;
397 video_params_high.video = {
398 true, 1280, 720, 50,
399 800000, 2500000, 2500000, false,
400 "VP8", 1, 0, 400000,
401 false, false, "", "ConferenceMotion_1280_720_50"};
402 VideoQualityTest::Params video_params_medium;
403 video_params_medium.video = {
404 true, 640, 360, 50,
405 150000, 500000, 700000, false,
406 "VP8", 1, 0, 400000,
407 false, false, "", "ConferenceMotion_1280_720_50"};
408 VideoQualityTest::Params video_params_low;
409 video_params_low.video = {
410 true, 320, 180, 50,
411 30000, 150000, 200000, false,
412 "VP8", 1, 0, 400000,
413 false, false, "", "ConferenceMotion_1280_720_50"};
414
415 std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low),
416 DefaultVideoStream(video_params_medium),
417 DefaultVideoStream(video_params_high)};
418 simulcast.ss = {streams, 1, 1, 0};
419 RunTest(simulcast);
420 }
421
422 TEST_F(FullStackTest, SimulcastVP8_3SL_Low) {
423 VideoQualityTest::Params simulcast;
424 simulcast.call.send_side_bwe = true;
425 simulcast.video = {true, 1280, 720, 50,
426 800000, 2500000, 2500000, false,
427 "VP8", 1, 0, 400000,
428 false, false, "", "ConferenceMotion_1280_720_50"};
429 simulcast.analyzer = {"simulcast_vp8_3sl_demo", 0.0, 0.0,
430 kFullStackTestDurationSecs};
431 simulcast.pipe.loss_percent = 0;
432 simulcast.pipe.queue_delay_ms = 100;
433 VideoQualityTest::Params video_params_high;
434 video_params_high.video = {
435 true, 1280, 720, 50,
436 800000, 2500000, 2500000, false,
437 "VP8", 1, 0, 400000,
438 false, false, "", "ConferenceMotion_1280_720_50"};
439 VideoQualityTest::Params video_params_medium;
440 video_params_medium.video = {
441 true, 640, 360, 50,
442 150000, 500000, 700000, false,
443 "VP8", 1, 0, 400000,
444 false, false, "", "ConferenceMotion_1280_720_50"};
445 VideoQualityTest::Params video_params_low;
446 video_params_low.video = {
447 true, 320, 180, 50,
448 30000, 150000, 200000, false,
449 "VP8", 1, 0, 400000,
450 false, false, "", "ConferenceMotion_1280_720_50"};
451
452 std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low),
453 DefaultVideoStream(video_params_medium),
454 DefaultVideoStream(video_params_high)};
455 simulcast.ss = {streams, 0, 1, 0};
456 RunTest(simulcast);
457 }
458
348 } // namespace webrtc 459 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_video/include/frame_callback.h ('k') | webrtc/video/video_quality_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698