Lines Matching full:restrictions
66 const VideoSourceRestrictions& restrictions) { in CanDecreaseResolutionTo() argument
68 rtc::dchecked_cast<int>(restrictions.max_pixels_per_frame().value_or( in CanDecreaseResolutionTo()
75 const VideoSourceRestrictions& restrictions) { in CanIncreaseResolutionTo() argument
78 rtc::dchecked_cast<int>(restrictions.max_pixels_per_frame().value_or( in CanIncreaseResolutionTo()
84 const VideoSourceRestrictions& restrictions) { in CanDecreaseFrameRateTo() argument
87 rtc::dchecked_cast<int>(restrictions.max_frame_rate().value_or( in CanDecreaseFrameRateTo()
92 const VideoSourceRestrictions& restrictions) { in CanIncreaseFrameRateTo() argument
94 rtc::dchecked_cast<int>(restrictions.max_frame_rate().value_or( in CanIncreaseFrameRateTo()
174 VideoSourceRestrictions restrictions, in Adaptation() argument
180 restrictions_(std::move(restrictions)), in Adaptation()
196 const VideoSourceRestrictions& Adaptation::restrictions() const { in restrictions() function in webrtc::Adaptation
227 return current_restrictions_.restrictions; in source_restrictions()
238 RTC_LOG(LS_INFO) << "Resetting restrictions"; in ClearRestrictions()
305 return Adaptation(adaptation_validation_id, r.restrictions, r.counters, in operator ()()
331 RestrictionsWithCounters restrictions = in GetAdaptationUp() local
335 current_restrictions_.restrictions, in GetAdaptationUp()
336 restrictions.restrictions)) { in GetAdaptationUp()
418 const RestrictionsWithCounters& restrictions) const { in AdaptIfFpsDiffInsufficient()
425 restrictions.counters.fps_adaptations && in AdaptIfFpsDiffInsufficient()
428 restrictions.restrictions.max_frame_rate().value(); in AdaptIfFpsDiffInsufficient()
430 return GetAdaptationDownStep(input_state, restrictions); in AdaptIfFpsDiffInsufficient()
433 return restrictions; in AdaptIfFpsDiffInsufficient()
487 current_restrictions.restrictions)) { in DecreaseResolution()
492 new_restrictions.restrictions.set_max_pixels_per_frame( in DecreaseResolution()
496 new_restrictions.restrictions.set_target_pixels_per_frame(absl::nullopt); in DecreaseResolution()
517 current_restrictions.restrictions)) { in DecreaseFramerate()
523 new_restrictions.restrictions.set_max_frame_rate( in DecreaseFramerate()
541 current_restrictions.restrictions)) { in IncreaseResolution()
548 new_restrictions.restrictions.set_max_pixels_per_frame( in IncreaseResolution()
552 new_restrictions.restrictions.set_target_pixels_per_frame( in IncreaseResolution()
584 current_restrictions.restrictions)) { in IncreaseFramerate()
596 current_restrictions.restrictions)) { in IncreaseFramerate()
601 new_restrictions.restrictions.set_max_frame_rate( in IncreaseFramerate()
662 if (DidIncreaseResolution(current_restrictions_.restrictions, in ApplyAdaptation()
663 adaptation.restrictions())) { in ApplyAdaptation()
666 } else if (DidDecreaseResolution(current_restrictions_.restrictions, in ApplyAdaptation()
667 adaptation.restrictions())) { in ApplyAdaptation()
673 current_restrictions_ = {adaptation.restrictions(), adaptation.counters()}; in ApplyAdaptation()
679 const VideoSourceRestrictions& restrictions) { in GetAdaptationTo() argument
683 return Adaptation(adaptation_validation_id_, restrictions, counters, in GetAdaptationTo()
701 last_video_source_restrictions_ = current_restrictions_.restrictions; in BroadcastVideoRestrictionsUpdate()