Lines Matching refs:Adaptation
144 const char* Adaptation::StatusToString(Adaptation::Status status) { in StatusToString()
146 case Adaptation::Status::kValid: in StatusToString()
148 case Adaptation::Status::kLimitReached: in StatusToString()
150 case Adaptation::Status::kAwaitingPreviousAdaptation: in StatusToString()
161 Adaptation::Adaptation(int validation_id, in Adaptation() function in webrtc::Adaptation
173 Adaptation::Adaptation(int validation_id, in Adaptation() function in webrtc::Adaptation
184 Adaptation::Status Adaptation::status() const { in status()
188 bool Adaptation::min_pixel_limit_reached() const { in min_pixel_limit_reached()
192 const VideoStreamInputState& Adaptation::input_state() const { in input_state()
196 const VideoSourceRestrictions& Adaptation::restrictions() const { in restrictions()
200 const VideoAdaptationCounters& Adaptation::counters() const { in counters()
321 Adaptation operator()(const RestrictionsWithCounters& r) const { in operator ()()
322 return Adaptation(adaptation_validation_id, r.restrictions, r.counters, in operator ()()
325 Adaptation operator()(const Adaptation::Status& status) const { in operator ()()
326 RTC_DCHECK_NE(status, Adaptation::Status::kValid); in operator ()()
327 return Adaptation(adaptation_validation_id, status, input_state, in operator ()()
340 Adaptation VideoStreamAdapter::RestrictionsOrStateToAdaptation( in RestrictionsOrStateToAdaptation()
349 Adaptation VideoStreamAdapter::GetAdaptationUp( in GetAdaptationUp()
363 step = Adaptation::Status::kRejectedByConstraint; in GetAdaptationUp()
370 Adaptation VideoStreamAdapter::GetAdaptationUp( in GetAdaptationUp()
376 Adaptation adaptation = GetAdaptationUp(input_state, resource); in GetAdaptationUp()
383 return Adaptation::Status::kInsufficientInput; in GetAdaptationUpStep()
391 return Adaptation::Status::kAwaitingPreviousAdaptation; in GetAdaptationUpStep()
416 return Adaptation::Status::kAdaptationDisabled; in GetAdaptationUpStep()
420 Adaptation VideoStreamAdapter::GetAdaptationDown() { in GetAdaptationDown()
432 return Adaptation::Status::kInsufficientInput; in GetAdaptationDownStep()
441 return Adaptation::Status::kAwaitingPreviousAdaptation; in GetAdaptationDownStep()
463 return Adaptation::Status::kAdaptationDisabled; in GetAdaptationDownStep()
474 return Adaptation::Status::kLimitReached; in DecreaseResolution()
503 return Adaptation::Status::kLimitReached; in DecreaseFramerate()
527 return Adaptation::Status::kLimitReached; in IncreaseResolution()
561 return Adaptation::Status::kLimitReached; in IncreaseFramerate()
573 return Adaptation::Status::kLimitReached; in IncreaseFramerate()
586 Adaptation VideoStreamAdapter::GetAdaptDownResolution() { in GetAdaptDownResolution()
592 Adaptation::Status::kAdaptationDisabled, input_state); in GetAdaptDownResolution()
594 return RestrictionsOrStateToAdaptation(Adaptation::Status::kLimitReached, in GetAdaptDownResolution()
631 const Adaptation& adaptation, in ApplyAdaptation()
635 if (adaptation.status() != Adaptation::Status::kValid) in ApplyAdaptation()
654 Adaptation VideoStreamAdapter::GetAdaptationTo( in GetAdaptationTo()
660 return Adaptation(adaptation_validation_id_, restrictions, counters, in GetAdaptationTo()