Home
last modified time | relevance | path

Searched refs:VideoSourceRestrictions (Results 1 – 25 of 25) sorted by relevance

/external/webrtc/call/adaptation/
Dvideo_source_restrictions.h23 class VideoSourceRestrictions {
26 VideoSourceRestrictions();
29 VideoSourceRestrictions(absl::optional<size_t> max_pixels_per_frame,
33 bool operator==(const VideoSourceRestrictions& rhs) const {
38 bool operator!=(const VideoSourceRestrictions& rhs) const {
71 bool DidRestrictionsIncrease(VideoSourceRestrictions before,
72 VideoSourceRestrictions after);
73 bool DidRestrictionsDecrease(VideoSourceRestrictions before,
74 VideoSourceRestrictions after);
75 bool DidIncreaseResolution(VideoSourceRestrictions restrictions_before,
[all …]
Dvideo_source_restrictions_unittest.cc21 const VideoSourceRestrictions kUnlimited;
22 const VideoSourceRestrictions k15fps(absl::nullopt, absl::nullopt, 15.0);
23 const VideoSourceRestrictions kHd(kHdPixels, kHdPixels, absl::nullopt);
24 const VideoSourceRestrictions kHd15fps(kHdPixels, kHdPixels, 15.0);
25 const VideoSourceRestrictions kVga7fps(kHdPixels / 2, kHdPixels / 2, 7.0);
27 VideoSourceRestrictions RestrictionsFromMaxPixelsPerFrame( in RestrictionsFromMaxPixelsPerFrame()
29 return VideoSourceRestrictions(max_pixels_per_frame, absl::nullopt, in RestrictionsFromMaxPixelsPerFrame()
33 VideoSourceRestrictions RestrictionsFromMaxFrameRate(double max_frame_rate) { in RestrictionsFromMaxFrameRate()
34 return VideoSourceRestrictions(absl::nullopt, absl::nullopt, max_frame_rate); in RestrictionsFromMaxFrameRate()
44 EXPECT_FALSE(DidIncreaseResolution(VideoSourceRestrictions(), in TEST()
[all …]
Dvideo_source_restrictions.cc20 VideoSourceRestrictions::VideoSourceRestrictions() in VideoSourceRestrictions() function in webrtc::VideoSourceRestrictions
25 VideoSourceRestrictions::VideoSourceRestrictions( in VideoSourceRestrictions() function in webrtc::VideoSourceRestrictions
40 std::string VideoSourceRestrictions::ToString() const { in ToString()
53 const absl::optional<size_t>& VideoSourceRestrictions::max_pixels_per_frame() in max_pixels_per_frame()
58 const absl::optional<size_t>& VideoSourceRestrictions::target_pixels_per_frame() in target_pixels_per_frame()
63 const absl::optional<double>& VideoSourceRestrictions::max_frame_rate() const { in max_frame_rate()
67 void VideoSourceRestrictions::set_max_pixels_per_frame( in set_max_pixels_per_frame()
72 void VideoSourceRestrictions::set_target_pixels_per_frame( in set_target_pixels_per_frame()
77 void VideoSourceRestrictions::set_max_frame_rate( in set_max_frame_rate()
82 bool DidRestrictionsIncrease(VideoSourceRestrictions before, in DidRestrictionsIncrease()
[all …]
Dvideo_stream_adapter.h45 VideoSourceRestrictions restrictions,
48 const VideoSourceRestrictions& unfiltered_restrictions) = 0;
55 VideoSourceRestrictions FilterRestrictionsByDegradationPreference(
56 VideoSourceRestrictions source_restrictions,
89 const VideoSourceRestrictions& restrictions() const;
99 VideoSourceRestrictions restrictions,
118 const VideoSourceRestrictions restrictions_;
134 VideoSourceRestrictions source_restrictions() const;
159 const VideoSourceRestrictions& restrictions);
171 VideoSourceRestrictions restrictions;
[all …]
Dvideo_stream_adapter.cc79 const VideoSourceRestrictions& restrictions) { in CanDecreaseResolutionTo()
88 const VideoSourceRestrictions& restrictions) { in CanIncreaseResolutionTo()
97 const VideoSourceRestrictions& restrictions) { in CanDecreaseFrameRateTo()
105 const VideoSourceRestrictions& restrictions) { in CanIncreaseFrameRateTo()
115 VideoSourceRestrictions FilterRestrictionsByDegradationPreference( in FilterRestrictionsByDegradationPreference()
116 VideoSourceRestrictions source_restrictions, in FilterRestrictionsByDegradationPreference()
162 VideoSourceRestrictions restrictions, in Adaptation()
196 const VideoSourceRestrictions& Adaptation::restrictions() const { in restrictions()
224 VideoSourceRestrictions VideoStreamAdapter::source_restrictions() const { in source_restrictions()
239 current_restrictions_ = {VideoSourceRestrictions(), in ClearRestrictions()
[all …]
Dvideo_stream_adapter_unittest.cc139 VideoSourceRestrictions restrictions, in OnVideoSourceRestrictionsUpdated()
142 const VideoSourceRestrictions& unfiltered_restrictions) { in OnVideoSourceRestrictionsUpdated()
149 VideoSourceRestrictions last_restrictions() const { in last_restrictions()
155 VideoSourceRestrictions last_restrictions_;
163 const VideoSourceRestrictions& restrictions_before,
164 const VideoSourceRestrictions& restrictions_after,
174 const VideoSourceRestrictions& restrictions_before,
175 const VideoSourceRestrictions& restrictions_after,
201 EXPECT_EQ(VideoSourceRestrictions(), adapter_.source_restrictions()); in TEST_F()
270 EXPECT_EQ(VideoSourceRestrictions(), adapter_.source_restrictions()); in TEST_F()
[all …]
Dresource_adaptation_processor.h81 VideoSourceRestrictions restrictions,
84 const VideoSourceRestrictions& unfiltered_restrictions) override;
131 const VideoSourceRestrictions& restrictions,
165 VideoSourceRestrictions last_reported_source_restrictions_
Dadaptation_listener.h34 const VideoSourceRestrictions& restrictions_before,
35 const VideoSourceRestrictions& restrictions_after,
Dadaptation_constraint.h36 const VideoSourceRestrictions& restrictions_before,
37 const VideoSourceRestrictions& restrictions_after,
Dresource_adaptation_processor_unittest.cc50 VideoSourceRestrictions restrictions() const { in restrictions()
65 VideoSourceRestrictions restrictions, in OnVideoSourceRestrictionsUpdated()
68 const VideoSourceRestrictions& unfiltered_restrictions) override { in OnVideoSourceRestrictionsUpdated()
79 VideoSourceRestrictions restrictions_ RTC_GUARDED_BY(&sequence_checker_);
116 void RestrictSource(VideoSourceRestrictions restrictions) { in RestrictSource()
250 EXPECT_EQ(VideoSourceRestrictions(), restrictions_listener_.restrictions()); in TEST_F()
529 VideoSourceRestrictions next_limited_restrictions = in TEST_F()
558 VideoSourceRestrictions next_limited_restrictions = in TEST_F()
598 VideoSourceRestrictions current_restrictions = in TEST_F()
622 VideoSourceRestrictions next_limited_restrictions = in TEST_F()
[all …]
Dresource_adaptation_processor.cc341 VideoSourceRestrictions(), VideoAdaptationCounters()}; in FindMostLimitedResources()
363 const VideoSourceRestrictions& restrictions, in UpdateResourceLimitations()
383 VideoSourceRestrictions restrictions, in OnVideoSourceRestrictionsUpdated()
386 const VideoSourceRestrictions& unfiltered_restrictions) { in OnVideoSourceRestrictionsUpdated()
/external/webrtc/video/adaptation/
Dvideo_stream_encoder_resource_manager.h134 VideoSourceRestrictions restrictions,
137 const VideoSourceRestrictions& unfiltered_restrictions) override;
187 const VideoSourceRestrictions& restrictions_before,
188 const VideoSourceRestrictions& restrictions_after,
219 const VideoSourceRestrictions& restrictions_before,
220 const VideoSourceRestrictions& restrictions_after,
251 VideoSourceRestrictions video_source_restrictions_
Dquality_scaler_resource.h66 const VideoSourceRestrictions& restrictions_before,
67 const VideoSourceRestrictions& restrictions_after,
Dvideo_stream_encoder_resource_manager.cc168 const VideoSourceRestrictions& restrictions_before, in IsAdaptationUpAllowed()
169 const VideoSourceRestrictions& restrictions_after, in IsAdaptationUpAllowed()
231 const VideoSourceRestrictions& restrictions_before, in IsAdaptationUpAllowed()
232 const VideoSourceRestrictions& restrictions_after, in IsAdaptationUpAllowed()
604 VideoSourceRestrictions restrictions, in OnVideoSourceRestrictionsUpdated()
607 const VideoSourceRestrictions& unfiltered_restrictions) { in OnVideoSourceRestrictionsUpdated()
Dquality_scaler_resource.cc166 const VideoSourceRestrictions& restrictions_before, in OnAdaptationApplied()
167 const VideoSourceRestrictions& restrictions_after, in OnAdaptationApplied()
/external/webrtc/video/
Dvideo_source_sink_controller.h39 VideoSourceRestrictions restrictions() const;
47 void SetRestrictions(VideoSourceRestrictions restrictions);
62 VideoSourceRestrictions restrictions_ RTC_GUARDED_BY(&mutex_);
Dvideo_source_sink_controller.cc72 VideoSourceRestrictions VideoSourceSinkController::restrictions() const { in restrictions()
100 VideoSourceRestrictions restrictions) { in SetRestrictions()
Dvideo_source_sink_controller_unittest.cc59 EXPECT_EQ(controller.restrictions(), VideoSourceRestrictions()); in TEST()
82 VideoSourceRestrictions restrictions = controller.restrictions(); in TEST()
Dvideo_stream_encoder.h121 VideoSourceRestrictions restrictions,
124 const VideoSourceRestrictions& unfiltered_restrictions) override;
Dvideo_stream_encoder.cc1816 VideoSourceRestrictions restrictions, in OnVideoSourceRestrictionsUpdated()
1819 const VideoSourceRestrictions& unfiltered_restrictions) { in OnVideoSourceRestrictionsUpdated()
Dvideo_stream_encoder_unittest.cc207 VideoSourceRestrictions restrictions, in OnVideoSourceRestrictionsUpdated()
210 const VideoSourceRestrictions& unfiltered_restrictions) override { in OnVideoSourceRestrictionsUpdated()
/external/webrtc/call/adaptation/test/
Dfake_adaptation_listener.cc26 const VideoSourceRestrictions& restrictions_before, in OnAdaptationApplied()
27 const VideoSourceRestrictions& restrictions_after, in OnAdaptationApplied()
Dfake_adaptation_listener.h28 const VideoSourceRestrictions& restrictions_before,
29 const VideoSourceRestrictions& restrictions_after,
Dfake_adaptation_constraint.cc33 const VideoSourceRestrictions& restrictions_before, in IsAdaptationUpAllowed()
34 const VideoSourceRestrictions& restrictions_after, in IsAdaptationUpAllowed()
Dfake_adaptation_constraint.h31 const VideoSourceRestrictions& restrictions_before,
32 const VideoSourceRestrictions& restrictions_after,