Home
last modified time | relevance | path

Searched refs:max_frame_rate (Results 1 – 17 of 17) sorted by relevance

/external/webrtc/call/adaptation/
Dvideo_source_restrictions.cc28 absl::optional<double> max_frame_rate) in VideoSourceRestrictions() argument
31 max_frame_rate_(std::move(max_frame_rate)) { in VideoSourceRestrictions()
63 const absl::optional<double>& VideoSourceRestrictions::max_frame_rate() const { in max_frame_rate() function in webrtc::VideoSourceRestrictions
78 absl::optional<double> max_frame_rate) { in set_max_frame_rate() argument
79 max_frame_rate_ = std::move(max_frame_rate); in set_max_frame_rate()
88 bool same_framerate = before.max_frame_rate() == after.max_frame_rate(); in DidRestrictionsIncrease()
101 bool same_framerate = before.max_frame_rate() == after.max_frame_rate(); in DidRestrictionsDecrease()
130 if (!restrictions_before.max_frame_rate().has_value()) in DidIncreaseFrameRate()
132 if (!restrictions_after.max_frame_rate().has_value()) in DidIncreaseFrameRate()
134 return restrictions_after.max_frame_rate().value() > in DidIncreaseFrameRate()
[all …]
Dvideo_stream_adapter.cc96 bool CanDecreaseFrameRateTo(int max_frame_rate, in CanDecreaseFrameRateTo() argument
98 const int fps_wanted = std::max(kMinFrameRateFps, max_frame_rate); in CanDecreaseFrameRateTo()
100 rtc::dchecked_cast<int>(restrictions.max_frame_rate().value_or( in CanDecreaseFrameRateTo()
104 bool CanIncreaseFrameRateTo(int max_frame_rate, in CanIncreaseFrameRateTo() argument
106 return max_frame_rate > in CanIncreaseFrameRateTo()
107 rtc::dchecked_cast<int>(restrictions.max_frame_rate().value_or( in CanIncreaseFrameRateTo()
490 int max_frame_rate; in DecreaseFramerate() local
492 max_frame_rate = GetLowerFrameRateThan(input_state.frames_per_second()); in DecreaseFramerate()
494 max_frame_rate = in DecreaseFramerate()
499 max_frame_rate = GetLowerFrameRateThan(input_state.frames_per_second()); in DecreaseFramerate()
[all …]
Dvideo_source_restrictions.h31 absl::optional<double> max_frame_rate);
56 const absl::optional<double>& max_frame_rate() const;
61 void set_max_frame_rate(absl::optional<double> max_frame_rate);
Dvideo_stream_adapter_unittest.cc122 if (restrictions.max_frame_rate().has_value()) { in ApplyAdaptation()
123 input_fps_ = restrictions.max_frame_rate().value(); in ApplyAdaptation()
218 EXPECT_EQ(absl::nullopt, adapter_.source_restrictions().max_frame_rate()); in TEST_F()
255 EXPECT_EQ(absl::nullopt, adapter_.source_restrictions().max_frame_rate()); in TEST_F()
288 adapter_.source_restrictions().max_frame_rate()); in TEST_F()
302 adapter_.source_restrictions().max_frame_rate()); in TEST_F()
327 adapter_.source_restrictions().max_frame_rate()); in TEST_F()
362 adapter_.source_restrictions().max_frame_rate()); in TEST_F()
390 adapter_.source_restrictions().max_frame_rate()); in TEST_F()
407 adapter_.source_restrictions().max_frame_rate()); in TEST_F()
[all …]
Dvideo_source_restrictions_unittest.cc33 VideoSourceRestrictions RestrictionsFromMaxFrameRate(double max_frame_rate) { in RestrictionsFromMaxFrameRate() argument
34 return VideoSourceRestrictions(absl::nullopt, absl::nullopt, max_frame_rate); in RestrictionsFromMaxFrameRate()
Dresource_adaptation_processor_unittest.cc118 true, restrictions.max_frame_rate().value_or(kDefaultFrameRate), in RestrictSource()
198 restrictions_listener_.restrictions().max_frame_rate().has_value()); in TEST_F()
218 restrictions_listener_.restrictions().max_frame_rate().has_value()); in TEST_F()
/external/openscreen/cast/streaming/
Dsender_session.cc75 SimpleFraction{config.max_frame_rate.numerator, in CreateStream()
76 config.max_frame_rate.denominator}, in CreateStream()
121 return config.max_frame_rate.numerator > 0 && in IsValidVideoCaptureConfig()
122 config.max_frame_rate.denominator > 0 && in IsValidVideoCaptureConfig()
Doffer_messages.cc247 SimpleFraction max_frame_rate{kDefaultMaxFrameRate, 1}; in ParseVideoStream() local
251 max_frame_rate = parsed.value(); in ParseVideoStream()
262 max_frame_rate, in ParseVideoStream()
343 if (max_bit_rate <= 0 || !max_frame_rate.is_positive()) { in ToJson()
354 stream["maxFrameRate"] = max_frame_rate.ToString(); in ToJson()
Dcapture_configs.h65 FrameRate max_frame_rate; member
Doffer_messages.h88 SimpleFraction max_frame_rate; member
Dreceiver_session.cc243 FrameRate{properties.selected_video->max_frame_rate.numerator, in SpawnReceivers()
244 properties.selected_video->max_frame_rate.denominator}, in SpawnReceivers()
Doffer_messages_unittest.cc119 EXPECT_EQ((SimpleFraction{60000, 1000}), vs_one.max_frame_rate); in ExpectEqualsValidOffer()
151 EXPECT_EQ((SimpleFraction{30000, 1001}), vs_two.max_frame_rate); in ExpectEqualsValidOffer()
494 video_stream_invalid.video_streams[0].max_frame_rate.denominator = 0; in TEST()
/external/webrtc/video/
Dvideo_source_sink_controller.cc143 restrictions_.max_frame_rate().has_value() in CurrentSettingsToSinkWants()
144 ? static_cast<int>(restrictions_.max_frame_rate().value()) in CurrentSettingsToSinkWants()
/external/webrtc/modules/video_coding/codecs/h264/
Dh264_encoder_impl.h46 float max_frame_rate = 0; member
Dh264_encoder_impl.cc249 configurations_[i].max_frame_rate = static_cast<float>(codec_.maxFramerate); in InitEncode()
352 configurations_[i].max_frame_rate = parameters.framerate_fps; in SetRates()
364 &configurations_[i].max_frame_rate); in SetRates()
550 encoder_params.fMaxFrameRate = configurations_[i].max_frame_rate; in CreateEncoderParams()
/external/webrtc/video/adaptation/
Dquality_scaler_resource.cc192 restrictions_after.max_frame_rate().value(); in OnAdaptationApplied()
Dvideo_stream_encoder_resource_manager.cc680 video_source_restrictions_.max_frame_rate(); in MaybeUpdateTargetFrameRate()