/external/webrtc/call/adaptation/ |
D | video_source_restrictions.cc | 28 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 …]
|
D | video_stream_adapter.cc | 96 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 …]
|
D | video_source_restrictions.h | 31 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);
|
D | video_stream_adapter_unittest.cc | 122 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 …]
|
D | video_source_restrictions_unittest.cc | 33 VideoSourceRestrictions RestrictionsFromMaxFrameRate(double max_frame_rate) { in RestrictionsFromMaxFrameRate() argument 34 return VideoSourceRestrictions(absl::nullopt, absl::nullopt, max_frame_rate); in RestrictionsFromMaxFrameRate()
|
D | resource_adaptation_processor_unittest.cc | 118 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/ |
D | sender_session.cc | 75 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()
|
D | offer_messages.cc | 247 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()
|
D | capture_configs.h | 65 FrameRate max_frame_rate; member
|
D | offer_messages.h | 88 SimpleFraction max_frame_rate; member
|
D | receiver_session.cc | 243 FrameRate{properties.selected_video->max_frame_rate.numerator, in SpawnReceivers() 244 properties.selected_video->max_frame_rate.denominator}, in SpawnReceivers()
|
D | offer_messages_unittest.cc | 119 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/ |
D | video_source_sink_controller.cc | 143 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/ |
D | h264_encoder_impl.h | 46 float max_frame_rate = 0; member
|
D | h264_encoder_impl.cc | 249 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/ |
D | quality_scaler_resource.cc | 192 restrictions_after.max_frame_rate().value(); in OnAdaptationApplied()
|
D | video_stream_encoder_resource_manager.cc | 680 video_source_restrictions_.max_frame_rate(); in MaybeUpdateTargetFrameRate()
|