Lines Matching refs:adapter_

58         adapter_(source_resolution_alignment),  in VideoAdapterTest()
59 adapter_wrapper_(std::make_unique<VideoAdapterWrapper>(&adapter_)), in VideoAdapterTest()
130 adapter_.OnOutputFormatRequest(target_aspect_ratio, max_pixel_count, in OnOutputFormatRequest()
134 adapter_.OnOutputFormatRequest( in OnOutputFormatRequest()
141 VideoAdapter adapter_; member in cricket::VideoAdapterTest
304 adapter_.OnOutputFormatRequest(absl::nullopt, absl::nullopt, kDefaultFps / 2); in TEST_P()
329 adapter_.AdaptFrameResolution(640, 480, first_timestamp, &cropped_width_, in TEST_P()
336 adapter_.AdaptFrameResolution(640, 480, second_timestamp, &cropped_width_, in TEST_P()
342 adapter_.AdaptFrameResolution(640, 480, third_timestamp, &cropped_width_, in TEST_P()
353 adapter_.AdaptFrameResolution(640, 480, capture_interval * 0 / 10, in TEST_P()
359 adapter_.AdaptFrameResolution(640, 480, capture_interval * 10 / 10 - 1, in TEST_P()
365 adapter_.AdaptFrameResolution(640, 480, capture_interval * 25 / 10, in TEST_P()
371 adapter_.AdaptFrameResolution(640, 480, capture_interval * 30 / 10, in TEST_P()
377 adapter_.AdaptFrameResolution(640, 480, capture_interval * 35 / 10, in TEST_P()
383 adapter_.AdaptFrameResolution(640, 480, capture_interval * 50 / 10, in TEST_P()
413 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, in TEST_P()
429 adapter_.OnSinkWants( in TEST_P()
443 adapter_.OnSinkWants(BuildSinkWants( in TEST_P()
459 EXPECT_TRUE(adapter_.AdaptFrameResolution(kWidth, kHeight, 0, &cropped_width_, in TEST_P()
472 EXPECT_TRUE(adapter_.AdaptFrameResolution(kWidth, kHeight, 0, &cropped_width_, in TEST_P()
485 EXPECT_TRUE(adapter_.AdaptFrameResolution(kWidth, kHeight, 0, &cropped_width_, in TEST_P()
497 EXPECT_FALSE(adapter_.AdaptFrameResolution(kWidth, kHeight, 0, in TEST_P()
550 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
560 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
571 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
581 EXPECT_FALSE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
587 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
599 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
609 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
619 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
629 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
640 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
650 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
660 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 360, 0, &cropped_width_, in TEST_P()
671 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 360, 0, &cropped_width_, in TEST_P()
684 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 480, 0, &cropped_width_, in TEST_P()
694 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 360, 0, &cropped_width_, in TEST_P()
702 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 480, 0, &cropped_width_, in TEST_P()
712 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
721 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, 1280 * 720 - 1, in TEST_P()
723 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
732 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, 960 * 540 - 1, in TEST_P()
734 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
743 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, 640 * 360 - 1, in TEST_P()
745 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
754 adapter_.OnSinkWants( in TEST_P()
756 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
765 adapter_.OnSinkWants( in TEST_P()
767 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
776 adapter_.OnSinkWants( in TEST_P()
778 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
788 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
796 adapter_.OnSinkWants( in TEST_P()
798 EXPECT_FALSE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
805 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, 640 * 360 - 1, in TEST_P()
807 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
816 adapter_.OnSinkWants( in TEST_P()
818 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
828 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, 640 * 360 - 1, in TEST_P()
830 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
839 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
847 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, 960 * 720, in TEST_P()
849 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
859 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
867 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, 640 * 360 - 1, in TEST_P()
869 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
877 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, in TEST_P()
880 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
890 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
898 adapter_.OnOutputFormatRequest(absl::nullopt, 640 * 360 - 1, absl::nullopt); in TEST_P()
899 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
907 adapter_.OnOutputFormatRequest(absl::nullopt, absl::nullopt, absl::nullopt); in TEST_P()
908 EXPECT_TRUE(adapter_.AdaptFrameResolution(1280, 720, 0, &cropped_width_, in TEST_P()
938 adapter_.OnOutputFormatRequest(std::make_pair(320, 180), absl::nullopt, in TEST_P()
940 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
953 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
964 adapter_.OnOutputFormatRequest(std::make_pair(320, 0), absl::nullopt, in TEST_P()
966 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 400, 0, &cropped_width_, in TEST_P()
979 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 480, 0, &cropped_width_, in TEST_P()
989 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, 640 * 360 - 1, in TEST_P()
992 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 480, 0, &cropped_width_, in TEST_P()
1001 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, 480 * 270 - 1, in TEST_P()
1004 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 480, 0, &cropped_width_, in TEST_P()
1013 adapter_.OnSinkWants( in TEST_P()
1016 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 480, 0, &cropped_width_, in TEST_P()
1025 adapter_.OnSinkWants( in TEST_P()
1028 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 480, 0, &cropped_width_, in TEST_P()
1037 adapter_.OnSinkWants( in TEST_P()
1040 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 480, 0, &cropped_width_, in TEST_P()
1052 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, in TEST_P()
1057 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 480, 0, &cropped_width_, in TEST_P()
1074 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, w * h * 1 / 16 * 1 / 16, in TEST_P()
1078 EXPECT_TRUE(adapter_.AdaptFrameResolution( in TEST_P()
1089 adapter_.OnSinkWants(BuildSinkWants(w * h * 3 / 32 * 3 / 32, in TEST_P()
1094 EXPECT_TRUE(adapter_.AdaptFrameResolution( in TEST_P()
1103 EXPECT_FALSE(adapter_.AdaptFrameResolution(kWidth, kHeight, 0, in TEST_P()
1107 adapter_.OnSinkWants(BuildSinkWants(960 * 540, in TEST_P()
1112 EXPECT_FALSE(adapter_.AdaptFrameResolution(kWidth, kHeight, 0, in TEST_P()
1116 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, 640 * 480 - 1, in TEST_P()
1120 EXPECT_FALSE(adapter_.AdaptFrameResolution(kWidth, kHeight, 0, in TEST_P()
1128 adapter_.OnSinkWants(BuildSinkWants(640 * 360 - 1 /* target */, in TEST_P()
1132 EXPECT_TRUE(adapter_.AdaptFrameResolution(640, 360, 0, &cropped_width_, in TEST_P()
1210 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, in TEST_P()
1213 EXPECT_TRUE(adapter_.AdaptFrameResolution(kWidth, kHeight, 0, in TEST_P()
1243 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, in TEST_P()
1246 EXPECT_TRUE(adapter_.AdaptFrameResolution(kWidth, kHeight, 0, in TEST_P()
1271 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, in TEST_P()
1274 EXPECT_TRUE(adapter_.AdaptFrameResolution(kWidth, kHeight, 0, in TEST_P()
1299 adapter_.OnSinkWants(BuildSinkWants(absl::nullopt, in TEST_P()
1302 EXPECT_TRUE(adapter_.AdaptFrameResolution(kWidth, kHeight, 0, in TEST_P()
1324 adapter_.OnSinkWants( in TEST_P()
1327 EXPECT_TRUE(adapter_.AdaptFrameResolution( in TEST_P()
1355 EXPECT_TRUE(adapter_.AdaptFrameResolution( in TEST_P()
1373 adapter_.OnSinkWants(BuildSinkWants( in TEST_P()
1376 EXPECT_TRUE(adapter_.AdaptFrameResolution( in TEST_P()