Lines Matching full:restrictions
64 // as pixels and frame rate, according to the most recent source restrictions.
87 // frame rate adjusted according to the resulting restrictions.
90 // Update input pixels and fps according to the resulting restrictions. in ApplyAdaptation()
91 auto restrictions = adapter_->source_restrictions(); in ApplyAdaptation() local
92 if (restrictions.target_pixels_per_frame().has_value()) { in ApplyAdaptation()
93 RTC_DCHECK(!restrictions.max_pixels_per_frame().has_value() || in ApplyAdaptation()
94 restrictions.max_pixels_per_frame().value() >= in ApplyAdaptation()
95 restrictions.target_pixels_per_frame().value()); in ApplyAdaptation()
96 input_pixels_ = restrictions.target_pixels_per_frame().value(); in ApplyAdaptation()
97 } else if (restrictions.max_pixels_per_frame().has_value()) { in ApplyAdaptation()
98 input_pixels_ = restrictions.max_pixels_per_frame().value(); in ApplyAdaptation()
100 if (restrictions.max_frame_rate().has_value()) { in ApplyAdaptation()
101 input_fps_ = restrictions.max_frame_rate().value(); in ApplyAdaptation()
117 VideoSourceRestrictions restrictions, in OnVideoSourceRestrictionsUpdated() argument
233 // If we go down once and then back up we should not have any restrictions. in TEST_F()
305 // If we go down once and then back up we should not have any restrictions. in TEST_F()
361 // restrictions remains the same and resolution goes down. in TEST_F()
547 // Frame rate restrictions are the same as before. in TEST_F()
564 // new restrictions, adapting again in the same direction will not work. in TEST_F()
585 // new restrictions, adapting again in the same direction will not work. in TEST_F()
729 EXPECT_EQ(adaptation.restrictions(), listener.last_restrictions()); in TEST_F()
747 EXPECT_EQ(adaptation.restrictions(), adapter_.source_restrictions()); in TEST_F()
755 EXPECT_EQ(adaptation.restrictions(), adapter_.source_restrictions()); in TEST_F()
763 EXPECT_EQ(adaptation.restrictions(), adapter_.source_restrictions()); in TEST_F()
776 // Changing from non-balanced to balanced clears the restrictions. in TEST_F()
784 // Changing from balanced to non-balanced clears the restrictions. in TEST_F()
891 IsAdaptationUpAllowed(_, first_adaptation.restrictions(), _)) in TEST_F()
910 IsAdaptationUpAllowed(_, first_adaptation.restrictions(), _)) in TEST_F()