This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +18
-0
lines changed
modules/congestion_controller Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,10 @@ config("common_config") {
293
293
defines += [ " WEBRTC_ENABLE_PROTOBUF=0" ]
294
294
}
295
295
296
+ if (owt_use_gpra ) {
297
+ defines += [ " INTEL_GPRA" ]
298
+ }
299
+
296
300
if (rtc_include_internal_audio_device ) {
297
301
defines += [ " WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE" ]
298
302
}
Original file line number Diff line number Diff line change @@ -318,6 +318,7 @@ NetworkControlUpdate GoogCcNetworkController::OnRoundTripTimeUpdate(
318
318
if (delay_based_bwe_)
319
319
delay_based_bwe_->OnRttUpdate (msg.round_trip_time );
320
320
#ifdef INTEL_GPRA
321
+ // If gpra is working, gcc_ will not be set.
321
322
if (delay_based_bwe_gcc_)
322
323
delay_based_bwe_gcc_->OnRttUpdate (msg.round_trip_time );
323
324
#endif
@@ -390,6 +391,7 @@ NetworkControlUpdate GoogCcNetworkController::OnStreamsConfig(
390
391
if (delay_based_bwe_)
391
392
delay_based_bwe_->SetMinBitrate (min_data_rate_);
392
393
#ifdef INTEL_GPRA
394
+ // if GPRA is built but not enabled, we will use gcc.
393
395
if (delay_based_bwe_gcc_)
394
396
delay_based_bwe_gcc_->SetMinBitrate (min_data_rate_);
395
397
#endif
Original file line number Diff line number Diff line change @@ -199,6 +199,9 @@ TransportFeedbackAdapter::ProcessTransportFeedbackInner(
199
199
// time stamps.
200
200
if (last_timestamp_.IsInfinite ()) {
201
201
current_offset_ = feedback_receive_time;
202
+ #ifdef INTEL_GPRA
203
+ current_offset_ms_ = feedback_receive_time.ms ();
204
+ #endif
202
205
} else {
203
206
// TODO(srte): We shouldn't need to do rounding here.
204
207
const TimeDelta delta = feedback.GetBaseDelta (last_timestamp_)
@@ -207,8 +210,14 @@ TransportFeedbackAdapter::ProcessTransportFeedbackInner(
207
210
if (delta < Timestamp::Zero () - current_offset_) {
208
211
RTC_LOG (LS_WARNING) << " Unexpected feedback timestamp received." ;
209
212
current_offset_ = feedback_receive_time;
213
+ #ifdef INTEL_GPRA
214
+ current_offset_ms_ = feedback_receive_time.ms ();
215
+ #endif
210
216
} else {
211
217
current_offset_ += delta;
218
+ #ifdef INTEL_GPRA
219
+ current_offset_ms_ += delta.ms ();
220
+ #endif
212
221
}
213
222
}
214
223
last_timestamp_ = feedback.BaseTime ();
Original file line number Diff line number Diff line change @@ -93,6 +93,9 @@ class TransportFeedbackAdapter {
93
93
// Sequence numbers are never negative, using -1 as it always < a real
94
94
// sequence number.
95
95
int64_t last_ack_seq_num_ = -1 ;
96
+ #ifdef INTEL_GPRA
97
+ int64_t current_offset_ms_ = -1 ;
98
+ #endif
96
99
InFlightBytesTracker in_flight_;
97
100
98
101
Timestamp current_offset_ = Timestamp::MinusInfinity();
You can’t perform that action at this time.
0 commit comments