Home | History | Annotate | Download | only in base

Lines Matching refs:VideoFormat

99   EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
102 cricket::VideoFormat::FpsToInterval(30),
116 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
119 cricket::VideoFormat::FpsToInterval(30),
124 EXPECT_TRUE(capturer_.Restart(cricket::VideoFormat(
127 cricket::VideoFormat::FpsToInterval(30),
139 EXPECT_TRUE(capturer_.Restart(cricket::VideoFormat(
142 cricket::VideoFormat::FpsToInterval(30),
149 cricket::VideoFormat format(640, 480,
150 cricket::VideoFormat::FpsToInterval(30),
163 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
166 cricket::VideoFormat::FpsToInterval(30),
205 std::vector<cricket::VideoFormat> formats;
206 formats.push_back(cricket::VideoFormat(kWidth, kHeight,
207 cricket::VideoFormat::FpsToInterval(5), cricket::FOURCC_ARGB));
210 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
213 cricket::VideoFormat::FpsToInterval(30),
227 std::vector<cricket::VideoFormat> formats;
228 formats.push_back(cricket::VideoFormat(kWidth, kHeight,
229 cricket::VideoFormat::FpsToInterval(5),
237 capturer_.Start(cricket::VideoFormat(
238 kWidth, kHeight, cricket::VideoFormat::FpsToInterval(30),
271 std::vector<cricket::VideoFormat> formats;
272 formats.push_back(cricket::VideoFormat(kWidth, kHeight,
273 cricket::VideoFormat::FpsToInterval(5),
283 capturer_.Start(cricket::VideoFormat(
284 kWidth, kHeight, cricket::VideoFormat::FpsToInterval(30),
322 std::vector<cricket::VideoFormat> formats;
323 formats.push_back(cricket::VideoFormat(kWidth, kHeight,
324 cricket::VideoFormat::FpsToInterval(5), cricket::FOURCC_ARGB));
327 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
330 cricket::VideoFormat::FpsToInterval(30),
340 cricket::VideoFormat desired(640, 480,
341 cricket::VideoFormat::FpsToInterval(30),
343 cricket::VideoFormat best;
347 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
357 cricket::VideoFormat desired(1920, 1080,
358 cricket::VideoFormat::FpsToInterval(30),
360 cricket::VideoFormat best;
365 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
373 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
381 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
389 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
397 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
402 std::vector<cricket::VideoFormat> formats;
403 formats.push_back(cricket::VideoFormat(320, 240,
404 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
405 formats.push_back(cricket::VideoFormat(640, 480,
406 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
407 formats.push_back(cricket::VideoFormat(960, 544,
408 cricket::VideoFormat::FpsToInterval(24), cricket::FOURCC_I420));
409 formats.push_back(cricket::VideoFormat(1280, 720,
410 cricket::VideoFormat::FpsToInterval(15), cricket::FOURCC_I420));
411 formats.push_back(cricket::VideoFormat(2592, 1944,
412 cricket::VideoFormat::FpsToInterval(7), cricket::FOURCC_I420));
415 cricket::VideoFormat desired(960, 720,
416 cricket::VideoFormat::FpsToInterval(30),
418 cricket::VideoFormat best;
423 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(24), best.interval);
427 desired.interval = cricket::VideoFormat::FpsToInterval(30);
432 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(24), best.interval);
436 desired.interval = cricket::VideoFormat::FpsToInterval(30);
441 VideoFormat::FpsToInterval(30), best.interval);
449 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
457 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
465 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
473 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
477 desired.interval = cricket::VideoFormat::FpsToInterval(15);
482 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(15), best.interval);
486 desired.interval = cricket::VideoFormat::FpsToInterval(30);
491 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
496 std::vector<cricket::VideoFormat> supported_formats;
497 supported_formats.push_back(cricket::VideoFormat(320, 240,
498 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
499 supported_formats.push_back(cricket::VideoFormat(320, 640,
500 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
503 std::vector<cricket::VideoFormat> required_formats;
504 required_formats.push_back(cricket::VideoFormat(320, 240,
505 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
506 required_formats.push_back(cricket::VideoFormat(320, 200,
507 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
508 required_formats.push_back(cricket::VideoFormat(320, 180,
509 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
510 cricket::VideoFormat best;
518 supported_formats.push_back(cricket::VideoFormat(320, 640,
519 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
520 supported_formats.push_back(cricket::VideoFormat(320, 240,
521 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
534 std::vector<cricket::VideoFormat> supported_formats;
535 supported_formats.push_back(cricket::VideoFormat(320, 240,
536 cricket::VideoFormat::FpsToInterval(10), cricket::FOURCC_I420));
537 supported_formats.push_back(cricket::VideoFormat(640, 480,
538 cricket::VideoFormat::FpsToInterval(7), cricket::FOURCC_I420));
539 supported_formats.push_back(cricket::VideoFormat(1280, 720,
540 cricket::VideoFormat::FpsToInterval(2), cricket::FOURCC_I420));
543 std::vector<cricket::VideoFormat> required_formats;
544 required_formats.push_back(cricket::VideoFormat(320, 240,
545 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
546 required_formats.push_back(cricket::VideoFormat(640, 480,
547 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
548 cricket::VideoFormat best;
557 supported_formats.push_back(cricket::VideoFormat(320, 240,
558 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
559 supported_formats.push_back(cricket::VideoFormat(640, 480,
560 cricket::VideoFormat::FpsToInterval(7), cricket::FOURCC_I420));
561 supported_formats.push_back(cricket::VideoFormat(1280, 720,
562 cricket::VideoFormat::FpsToInterval(2), cricket::FOURCC_I420));
575 std::vector<cricket::VideoFormat> supported_formats;
576 supported_formats.push_back(cricket::VideoFormat(320, 240,
577 cricket::VideoFormat::FpsToInterval(10), cricket::FOURCC_I420));
578 supported_formats.push_back(cricket::VideoFormat(320, 240,
579 cricket::VideoFormat::FpsToInterval(20), cricket::FOURCC_I420));
580 supported_formats.push_back(cricket::VideoFormat(320, 240,
581 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
584 std::vector<cricket::VideoFormat> required_formats = supported_formats;
585 cricket::VideoFormat best;
598 std::vector<cricket::VideoFormat> supported_formats;
599 supported_formats.push_back(cricket::VideoFormat(1280, 720,
600 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
601 supported_formats.push_back(cricket::VideoFormat(640, 480,
602 cricket::VideoFormat::FpsToInterval(15), cricket::FOURCC_I420));
603 supported_formats.push_back(cricket::VideoFormat(640, 400,
604 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
605 supported_formats.push_back(cricket::VideoFormat(640, 360,
606 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
609 std::vector<cricket::VideoFormat> required_formats;
610 required_formats.push_back(cricket::VideoFormat(640, 480,
611 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_ANY));
612 required_formats.push_back(cricket::VideoFormat(640, 480,
613 cricket::VideoFormat::FpsToInterval(20), cricket::FOURCC_ANY));
614 required_formats.push_back(cricket::VideoFormat(640, 480,
615 cricket::VideoFormat::FpsToInterval(10), cricket::FOURCC_ANY));
616 cricket::VideoFormat best;
622 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
628 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(30), best.interval);
634 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(15), best.interval);
638 supported_formats.push_back(cricket::VideoFormat(1280, 720,
639 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
640 supported_formats.push_back(cricket::VideoFormat(640, 480,
641 cricket::VideoFormat::FpsToInterval(60), cricket::FOURCC_MJPG));
642 supported_formats.push_back(cricket::VideoFormat(640, 480,
643 cricket::VideoFormat::FpsToInterval(15), cricket::FOURCC_I420));
644 supported_formats.push_back(cricket::VideoFormat(640, 400,
645 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
646 supported_formats.push_back(cricket::VideoFormat(640, 360,
647 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
654 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(60), best.interval);
660 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(60), best.interval);
666 EXPECT_EQ(cricket::VideoFormat::FpsToInterval(15), best.interval);
670 std::vector<cricket::VideoFormat> supported_formats;
672 supported_formats.push_back(cricket::VideoFormat(640, 480,
673 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
674 supported_formats.push_back(cricket::VideoFormat(640, 400,
675 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
676 supported_formats.push_back(cricket::VideoFormat(640, 360,
677 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
680 std::vector<cricket::VideoFormat> required_formats = supported_formats;
681 cricket::VideoFormat best;
691 supported_formats.push_back(cricket::VideoFormat(960, 720,
692 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
693 supported_formats.push_back(cricket::VideoFormat(640, 480,
694 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
695 supported_formats.push_back(cricket::VideoFormat(640, 400,
696 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
697 supported_formats.push_back(cricket::VideoFormat(640, 360,
698 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
710 supported_formats.push_back(cricket::VideoFormat(1280, 720,
711 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
712 supported_formats.push_back(cricket::VideoFormat(640, 480,
713 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
714 supported_formats.push_back(cricket::VideoFormat(640, 400,
715 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
716 supported_formats.push_back(cricket::VideoFormat(640, 360,
717 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
740 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
743 cricket::VideoFormat::FpsToInterval(30),
752 bool HdFormatInList(const std::vector<cricket::VideoFormat>& formats) {
753 for (std::vector<cricket::VideoFormat>::const_iterator found =
766 cricket::VideoFormat hd_format(kMinHdWidth,
768 cricket::VideoFormat::FpsToInterval(30),
770 cricket::VideoFormat vga_format(640, 480,
771 cricket::VideoFormat::FpsToInterval(30),
773 std::vector<cricket::VideoFormat> formats = *capturer_.GetSupportedFormats();
792 cricket::VideoFormat vga_format(640, 480,
793 cricket::VideoFormat::FpsToInterval(30),
795 std::vector<cricket::VideoFormat> supported_formats;
797 supported_formats.push_back(cricket::VideoFormat(1280, 720,
798 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));
799 supported_formats.push_back(cricket::VideoFormat(1920, 1080,
800 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420));