Home
last modified time | relevance | path

Searched refs:target_pixel_count (Results 1 – 9 of 9) sorted by relevance

/external/webrtc/media/base/
Dvideo_broadcaster.cc119 if (sink.wants.target_pixel_count && in UpdateWants()
120 (!wants.target_pixel_count || in UpdateWants()
121 (*sink.wants.target_pixel_count < *wants.target_pixel_count))) { in UpdateWants()
122 wants.target_pixel_count = sink.wants.target_pixel_count; in UpdateWants()
132 if (wants.target_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.cc120 EXPECT_TRUE(!broadcaster.wants().target_pixel_count); in TEST()
124 wants1.target_pixel_count = 1280 * 720; in TEST()
127 EXPECT_EQ(1280 * 720, *broadcaster.wants().target_pixel_count); in TEST()
131 wants2.target_pixel_count = 640 * 360; in TEST()
133 EXPECT_EQ(640 * 360, *broadcaster.wants().target_pixel_count); in TEST()
136 EXPECT_EQ(1280 * 720, *broadcaster.wants().target_pixel_count); in TEST()
Dvideo_adapter.cc213 int target_pixel_count = in AdaptFrameResolution() local
251 FindScale(*cropped_width, *cropped_height, target_pixel_count, in AdaptFrameResolution()
345 sink_wants.target_pixel_count.value_or( in OnSinkWants()
Dvideo_adapter_unittest.cc32 rtc::VideoSinkWants BuildSinkWants(absl::optional<int> target_pixel_count, in BuildSinkWants() argument
37 wants.target_pixel_count = target_pixel_count; in BuildSinkWants()
/external/webrtc/video/
Dvideo_source_sink_controller.cc30 << (wants.target_pixel_count.has_value() in WantsToString()
31 ? std::to_string(wants.target_pixel_count.value()) in WantsToString()
137 wants.target_pixel_count = in CurrentSettingsToSinkWants()
Dvideo_source_sink_controller_unittest.cc70 EXPECT_EQ(wants.target_pixel_count, absl::nullopt); in TEST()
94 EXPECT_EQ(wants.target_pixel_count, 200); in TEST()
Dvideo_stream_encoder_unittest.cc233 Field("target_pixel_count", &rtc::VideoSinkWants::target_pixel_count, in ResolutionMax()
2012 EXPECT_FALSE(video_source_.sink_wants().target_pixel_count); in TEST_F()
2039 EXPECT_FALSE(video_source_.sink_wants().target_pixel_count); in TEST_F()
2064 EXPECT_FALSE(video_source_.sink_wants().target_pixel_count); in TEST_F()
2115 EXPECT_FALSE(video_source_.sink_wants().target_pixel_count); in TEST_F()
2147 EXPECT_FALSE(new_video_source.sink_wants().target_pixel_count); in TEST_F()
2183 EXPECT_FALSE(new_video_source.sink_wants().target_pixel_count); in TEST_F()
2195 EXPECT_FALSE(new_video_source.sink_wants().target_pixel_count); in TEST_F()
/external/webrtc/api/video/
Dvideo_source_interface.h42 absl::optional<int> target_pixel_count; member
/external/webrtc/call/
Dcall_perf_tests.cc570 << wants.target_pixel_count.value_or(-1) in TEST_F()
582 << wants.target_pixel_count.value_or(-1) in TEST_F()
590 !wants.target_pixel_count) { in TEST_F()
596 << wants.target_pixel_count.value_or(-1) in TEST_F()
603 << wants.target_pixel_count.value_or(-1) in TEST_F()