Lines Matching refs:best
343 cricket::VideoFormat best;
344 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
345 EXPECT_EQ(640, best.width);
346 EXPECT_EQ(480, best.height);
347 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
350 EXPECT_FALSE(capturer_.GetBestCaptureFormat(desired, &best));
353 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
360 cricket::VideoFormat best;
362 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
363 EXPECT_EQ(1280, best.width);
364 EXPECT_EQ(720, best.height);
365 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
370 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
371 EXPECT_EQ(320, best.width);
372 EXPECT_EQ(240, best.height);
373 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
378 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
379 EXPECT_EQ(640, best.width);
380 EXPECT_EQ(480, best.height);
381 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
386 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
387 EXPECT_EQ(320, best.width);
388 EXPECT_EQ(240, best.height);
389 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
394 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
395 EXPECT_EQ(160, best.width);
396 EXPECT_EQ(120, best.height);
397 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
418 cricket::VideoFormat best;
420 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
421 EXPECT_EQ(960, best.width);
422 EXPECT_EQ(544, best.height);
423 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(24), best.interval);
429 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
430 EXPECT_EQ(960, best.width);
431 EXPECT_EQ(544, best.height);
432 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(24), best.interval);
438 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
439 EXPECT_EQ(320, best.width);
440 EXPECT_EQ(240, best.height);
441 best.interval);
446 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
447 EXPECT_EQ(640, best.width);
448 EXPECT_EQ(480, best.height);
449 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
454 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
455 EXPECT_EQ(320, best.width);
456 EXPECT_EQ(240, best.height);
457 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
462 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
463 EXPECT_EQ(320, best.width);
464 EXPECT_EQ(240, best.height);
465 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
470 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
471 EXPECT_EQ(640, best.width);
472 EXPECT_EQ(480, best.height);
473 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
479 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
480 EXPECT_EQ(1280, best.width);
481 EXPECT_EQ(720, best.height);
482 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(15), best.interval);
488 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
489 EXPECT_EQ(640, best.width);
490 EXPECT_EQ(480, best.height);
491 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
510 cricket::VideoFormat best;
512 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
513 EXPECT_EQ(320, best.width);
514 EXPECT_EQ(240, best.height);
525 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
526 EXPECT_EQ(320, best.width);
527 EXPECT_EQ(240, best.height);
548 cricket::VideoFormat best;
550 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
551 EXPECT_EQ(required_formats[i].width, best.width);
552 EXPECT_EQ(required_formats[i].height, best.height);
566 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
567 EXPECT_EQ(320, best.width);
568 EXPECT_EQ(240, best.height);
585 cricket::VideoFormat best;
587 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
588 EXPECT_EQ(320, best.width);
589 EXPECT_EQ(240, best.height);
590 EXPECT_EQ(required_formats[i].interval, best.interval);
616 cricket::VideoFormat best;
619 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[0], &best));
620 EXPECT_EQ(640, best.width);
621 EXPECT_EQ(400, best.height);
622 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
625 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[1], &best));
626 EXPECT_EQ(640, best.width);
627 EXPECT_EQ(400, best.height);
628 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
631 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
632 EXPECT_EQ(640, best.width);
633 EXPECT_EQ(480, best.height);
634 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(15), best.interval);
636 // We have VGA 60 fps and 15 fps. Choose best fps.
650 // Expect 30 fps to choose 60 fps format and will set best fps to 60.
651 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[0], &best));
652 EXPECT_EQ(640, best.width);
653 EXPECT_EQ(480, best.height);
654 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(60), best.interval);
656 // Expect 20 fps to choose 60 fps format, and will set best fps to 60.
657 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[1], &best));
658 EXPECT_EQ(640, best.width);
659 EXPECT_EQ(480, best.height);
660 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(60), best.interval);
663 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
664 EXPECT_EQ(640, best.width);
665 EXPECT_EQ(480, best.height);
666 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(15), best.interval);
681 cricket::VideoFormat best;
684 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
685 EXPECT_EQ(required_formats[i].width, best.width);
686 EXPECT_EQ(required_formats[i].height, best.height);
703 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
704 EXPECT_EQ(required_formats[i].width, best.width);
705 EXPECT_EQ(required_formats[i].height, best.height);
722 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
723 EXPECT_EQ(required_formats[i].width, best.width);
724 EXPECT_EQ(required_formats[i].height, best.height);
728 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
729 EXPECT_EQ(640, best.width);
730 EXPECT_EQ(360, best.height);