Home
last modified time | relevance | path

Searched refs:max_pixel_count (Results 1 – 13 of 13) sorted by relevance

/external/webrtc/media/base/
Dvideo_adapter.cc198 int max_pixel_count = resolution_request_max_pixel_count_; in AdaptFrameResolution() local
206 max_pixel_count = std::min(max_pixel_count, *max_landscape_pixel_count_); in AdaptFrameResolution()
210 max_pixel_count = std::min(max_pixel_count, *max_portrait_pixel_count_); in AdaptFrameResolution()
214 std::min(resolution_request_target_pixel_count_, max_pixel_count); in AdaptFrameResolution()
217 if (max_pixel_count <= 0 || !KeepFrame(in_timestamp_ns)) { in AdaptFrameResolution()
252 max_pixel_count, variable_start_scale_factor_); in AdaptFrameResolution()
295 absl::optional<int> max_pixel_count; in OnOutputFormatRequest() local
299 max_pixel_count = format->width * format->height; in OnOutputFormatRequest()
303 OnOutputFormatRequest(target_aspect_ratio, max_pixel_count, max_fps); in OnOutputFormatRequest()
308 const absl::optional<int>& max_pixel_count, in OnOutputFormatRequest() argument
[all …]
Dvideo_broadcaster.cc112 if (sink.wants.max_pixel_count < wants.max_pixel_count) { in UpdateWants()
113 wants.max_pixel_count = sink.wants.max_pixel_count; in UpdateWants()
133 *wants.target_pixel_count >= wants.max_pixel_count) { in UpdateWants()
134 wants.target_pixel_count.emplace(wants.max_pixel_count); in UpdateWants()
Dvideo_broadcaster_unittest.cc99 broadcaster.wants().max_pixel_count); in TEST()
103 wants1.max_pixel_count = 1280 * 720; in TEST()
106 EXPECT_EQ(1280 * 720, broadcaster.wants().max_pixel_count); in TEST()
110 wants2.max_pixel_count = 640 * 360; in TEST()
112 EXPECT_EQ(640 * 360, broadcaster.wants().max_pixel_count); in TEST()
115 EXPECT_EQ(1280 * 720, broadcaster.wants().max_pixel_count); in TEST()
Dvideo_adapter.h73 const absl::optional<int>& max_pixel_count,
Dvideo_adapter_unittest.cc33 int max_pixel_count, in BuildSinkWants() argument
38 wants.max_pixel_count = max_pixel_count; in BuildSinkWants()
128 absl::optional<int> max_pixel_count = width * height; in OnOutputFormatRequest() local
130 adapter_.OnOutputFormatRequest(target_aspect_ratio, max_pixel_count, in OnOutputFormatRequest()
/external/webrtc/video/
Dcpu_scaling_tests.cc73 if (wants.max_pixel_count == std::numeric_limits<int>::max() && in RunTestAndCheckForAdaptation()
80 EXPECT_LT(wants.max_pixel_count, kWidth * kHeight); in RunTestAndCheckForAdaptation()
88 if (wants.max_pixel_count == std::numeric_limits<int>::max() && in RunTestAndCheckForAdaptation()
94 EXPECT_TRUE(wants.max_pixel_count < kWidth * kHeight || in RunTestAndCheckForAdaptation()
Dvideo_source_sink_controller.cc29 << " max_pixel_count=" << wants.max_pixel_count << " target_pixel_count=" in WantsToString()
134 wants.max_pixel_count = in CurrentSettingsToSinkWants()
147 wants.max_pixel_count = in CurrentSettingsToSinkWants()
148 std::min(wants.max_pixel_count, in CurrentSettingsToSinkWants()
Dvideo_source_sink_controller_unittest.cc69 EXPECT_EQ(wants.max_pixel_count, kIntUnconstrained); in TEST()
93 EXPECT_EQ(wants.max_pixel_count, 42); in TEST()
107 EXPECT_EQ(wants.max_pixel_count, 24); in TEST()
Dvideo_stream_encoder_unittest.cc226 return Field("max_pixel_count", &rtc::VideoSinkWants::max_pixel_count, in WantsMaxPixels()
279 WantsMaxPixels(Eq(other_wants.max_pixel_count))); in FpsEqResolutionEqTo()
283 return AllOf(FpsMax(), WantsMaxPixels(Lt(other_wants.max_pixel_count))); in FpsMaxResolutionLt()
287 return AllOf(FpsMax(), WantsMaxPixels(Gt(other_wants.max_pixel_count))); in FpsMaxResolutionGt()
292 WantsMaxPixels(Eq(other_wants.max_pixel_count))); in FpsLtResolutionEq()
297 WantsMaxPixels(Eq(other_wants.max_pixel_count))); in FpsGtResolutionEq()
302 WantsMaxPixels(Lt(other_wants.max_pixel_count))); in FpsEqResolutionLt()
307 WantsMaxPixels(Gt(other_wants.max_pixel_count))); in FpsEqResolutionGt()
1924 } while (video_source_.sink_wants().max_pixel_count < in TEST_F()
1925 last_wants.max_pixel_count || in TEST_F()
[all …]
Dquality_scaling_tests.cc103 if (wants.max_pixel_count < kWidth * kHeight) in RunTest()
/external/webrtc/pc/
Dpeer_connection_adaptation_integrationtest.cc119 int pixel_count_before_overuse = source.wants().max_pixel_count; in TEST_F()
125 TriggerOveruseAndGetSinkWants(fake_resource, source).max_pixel_count < in TEST_F()
152 int pixel_count_before_overuse = source.wants().max_pixel_count; in TEST_F()
156 TriggerOveruseAndGetSinkWants(fake_resource, source).max_pixel_count < in TEST_F()
/external/webrtc/api/video/
Dvideo_source_interface.h36 int max_pixel_count = std::numeric_limits<int>::max();
/external/webrtc/call/
Dcall_perf_tests.cc565 wants.max_pixel_count == std::numeric_limits<int>::max()) { in TEST_F()
569 << wants.max_pixel_count << ", target res = " in TEST_F()
575 if (wants.max_pixel_count < std::numeric_limits<int>::max()) { in TEST_F()
581 << wants.max_pixel_count << ", target res = " in TEST_F()
589 if (wants.max_pixel_count == std::numeric_limits<int>::max() && in TEST_F()
595 << wants.max_pixel_count << ", target res = " in TEST_F()
602 << wants.max_pixel_count << ", target res = " in TEST_F()