Home | History | Annotate | Download | only in base

Lines Matching refs:format

200   VideoFormat format = capturer_->GetSupportedFormats()->at(0);
201 format.interval = 0;
202 adapter_->SetInputFormat(format);
203 adapter_->SetOutputFormat(format);
397 VideoFormat format; // with resolution 0x0.
398 adapter_->SetOutputFormat(format);
413 VideoFormat format(640, 400, VideoFormat::FpsToInterval(30), FOURCC_I420);
414 adapter.SetInputFormat(format);
416 EXPECT_EQ(format, adapter.input_format());
419 // Server format request 640x400.
420 format.height = 400;
421 adapter.OnOutputFormatRequest(format);
425 // Server format request 1280x720, higher than input. Adapt nothing.
426 format.width = 1280;
427 format.height = 720;
428 adapter.OnOutputFormatRequest(format);
475 // Server format request 0x0.
476 format.width = 0;
477 format.height = 0;
478 adapter.OnOutputFormatRequest(format);
481 // Server format request 320x200.
482 format.width = 320;
483 format.height = 200;
484 adapter.OnOutputFormatRequest(format);
488 // Server format request 160x100. But view disabled. Adapt nothing.
490 format.width = 160;
491 format.height = 100;
492 adapter.OnOutputFormatRequest(format);
499 format.width = 160;
500 format.height = 100;
501 adapter.OnOutputFormatRequest(format);
513 format.width = (640 * 2 + 1) / 3;
514 format.height = (400 * 2 + 1) / 3;
515 adapter.OnOutputFormatRequest(format);
522 format.width = 640 * 3 / 8;
523 format.height = 400 * 3 / 8;
524 adapter.OnOutputFormatRequest(format);
529 format.width = 320;
530 format.height = 200;
531 adapter.OnOutputFormatRequest(format);
543 // Server format request 480x300.
544 format.width = 480;
545 format.height = 300;
546 adapter.OnOutputFormatRequest(format);
555 VideoFormat format(640, 400, VideoFormat::FpsToInterval(30), FOURCC_I420);
556 adapter.SetInputFormat(format);
558 // Server format request 640x400.
559 format.height = 400;
560 adapter.OnOutputFormatRequest(format);
591 // Server format request 320x200. Same as CPU. Do nothing.
592 format.width = 320;
593 format.height = 200;
594 adapter.OnOutputFormatRequest(format);
617 // Server format request 640x400. Cpu is still low. Upgrade.
618 format.width = 640;
619 format.height = 400;
620 adapter.OnOutputFormatRequest(format);
655 // Server format request 640x400. Constrained by CPU.
656 format.width = 640;
657 format.height = 400;
658 adapter.OnOutputFormatRequest(format);
667 VideoFormat format(640, 400, VideoFormat::FpsToInterval(30), FOURCC_I420);
668 adapter.SetInputFormat(format);
670 // Server format request 640x400.
671 format.height = 400;
672 adapter.OnOutputFormatRequest(format);
708 // Server format request 320x200. Same as CPU. Do nothing.
709 format.width = 320;
710 format.height = 200;
711 adapter.OnOutputFormatRequest(format);
729 // Server format request 640x400. Cpu is still low. Upgrade.
730 format.width = 640;
731 format.height = 400;
732 adapter.OnOutputFormatRequest(format);
767 // Server format request 640x400. Constrained by CPU.
768 format.width = 640;
769 format.height = 400;
770 adapter.OnOutputFormatRequest(format);
780 VideoFormat format(1280, 720, VideoFormat::FpsToInterval(30), FOURCC_I420);
781 adapter.SetInputFormat(format);
782 EXPECT_EQ(format, adapter.input_format());
786 format.width = 640;
787 format.height = 360;
788 adapter.OnOutputFormatRequest(format);
794 // Both the frame and the output format should be 640x360.
804 adapter.OnOutputFormatRequest(format);
815 VideoFormat format(640, 480, VideoFormat::FpsToInterval(30), FOURCC_I420);
816 adapter.SetInputFormat(format);
817 EXPECT_EQ(format, adapter.input_format());
820 // Output format is 640x360, though.
821 format.width = 640;
822 format.height = 360;
823 adapter.SetOutputFormat(format);
826 adapter.OnOutputFormatRequest(format);
861 VideoFormat format(960, 540, VideoFormat::FpsToInterval(30), FOURCC_I420);
862 adapter.SetInputFormat(format);
864 EXPECT_EQ(format, adapter.input_format());
867 // Server format request 640x400. Expect HVGA.
868 format.width = 640;
869 format.height = 400;
870 adapter.OnOutputFormatRequest(format);
883 VideoFormat format(640, 400, VideoFormat::FpsToInterval(30), FOURCC_I420);
884 adapter.SetInputFormat(format);
886 // Server format request 640x400.
887 format.height = 400;
888 adapter.OnOutputFormatRequest(format);
892 // Process load and system load are low. Do not change the cpu desired format
934 VideoFormat format(640, 400, VideoFormat::FpsToInterval(30), FOURCC_I420);
935 adapter.SetInputFormat(format);
937 // Server format request 640x400.
938 format.height = 400;
939 adapter.OnOutputFormatRequest(format);
943 // Process load and system load are low. Do not change the cpu desired format
971 // Test that for an upgrade cpu request, we actually upgrade the desired format;
972 // for a downgrade request, we downgrade from the output format.
977 VideoFormat format(640, 400, VideoFormat::FpsToInterval(30), FOURCC_I420);
978 adapter.SetInputFormat(format);
980 // Server format request 640x400.
981 format.width = 640;
982 format.height = 400;
983 adapter.OnOutputFormatRequest(format);
987 // Process load and system load are low. Do not change the cpu desired format
993 // Server format request 320x200.
994 format.width = 320;
995 format.height = 200;
996 adapter.OnOutputFormatRequest(format);
1000 // Process load and system load are low. Do not change the cpu desired format
1006 // Server format request 640x400. Set to 640x400 immediately.
1007 format.width = 640;
1008 format.height = 400;
1009 adapter.OnOutputFormatRequest(format);
1013 // Server format request 320x200.
1014 format.width = 320;
1015 format.height = 200;
1016 adapter.OnOutputFormatRequest(format);
1021 // format and do not adapt.
1030 // format; for a downgrade request, we downgrade from the output format.
1035 VideoFormat format(640, 400, VideoFormat::FpsToInterval(30), FOURCC_I420);
1036 adapter.SetInputFormat(format);
1038 // Server format request 640x400.
1039 format.width = 640;
1040 format.height = 400;
1041 adapter.OnOutputFormatRequest(format);
1045 // Encoder resolution request. Do not change the encoder desired format and
1052 // Server format request 320x200.
1053 format.width = 320;
1054 format.height = 200;
1055 adapter.OnOutputFormatRequest(format);
1059 // Encoder resolution request. Do not change the encoder desired format and
1066 // Server format request 640x400. Set to 640x400 immediately.
1067 format.width = 640;
1068 format.height = 400;
1069 adapter.OnOutputFormatRequest(format);
1077 // Server format request 320x200.
1078 format.width = 320;
1079 format.height = 200;
1080 adapter.OnOutputFormatRequest(format);
1093 // The input format is 640x360 and the output is limited to 16:9.
1094 VideoFormat format(640, 360, VideoFormat::FpsToInterval(30), FOURCC_I420);
1095 adapter.SetInputFormat(format);
1097 format.width = 320;
1098 format.height = 180;
1099 format.interval = VideoFormat::FpsToInterval(15);
1100 adapter.OnOutputFormatRequest(format);
1105 format.width = 320;
1106 format.height = 200;
1107 format.interval = VideoFormat::FpsToInterval(40);
1108 adapter.OnOutputFormatRequest(format);
1117 format.width = 320;
1118 format.height = 240;
1119 adapter.OnOutputFormatRequest(format);
1123 // The input format is 640x480 and the output will be 4:3.
1124 format.width = 640;
1125 format.height = 480;
1126 adapter.SetInputFormat(format);
1130 format.width = 320;
1131 format.height = 240;
1132 adapter.OnOutputFormatRequest(format);
1136 // The input format is initialized after the output. At that time, the output
1138 format.width = 0;
1139 format.height = 0;
1140 adapter.SetInputFormat(format);
1142 format.width = 320;
1143 format.height = 240;
1144 format.interval = VideoFormat::FpsToInterval(30);
1145 adapter.OnOutputFormatRequest(format);
1150 format.width = 640;
1151 format.height = 480;
1152 format.interval = VideoFormat::FpsToInterval(15);
1153 adapter.SetInputFormat(format);
1168 VideoFormat format(640, 360, VideoFormat::FpsToInterval(30), FOURCC_I420);
1169 adapter.SetInputFormat(format);
1170 adapter.OnOutputFormatRequest(format);
1194 VideoFormat format(640, 360, VideoFormat::FpsToInterval(30), FOURCC_I420);
1195 adapter.SetInputFormat(format);
1196 adapter.OnOutputFormatRequest(format);
1222 VideoFormat format(640, 360, VideoFormat::FpsToInterval(30), FOURCC_I420);
1223 adapter.SetInputFormat(format);
1224 adapter.OnOutputFormatRequest(format);
1265 VideoFormat format(640, 360, VideoFormat::FpsToInterval(30), FOURCC_I420);
1266 adapter.SetInputFormat(format);
1267 adapter.OnOutputFormatRequest(format);