Home
last modified time | relevance | path

Searched refs:diff_ms (Results 1 – 7 of 7) sorted by relevance

/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dbitrate.cc54 int64_t diff_ms = now - time_last_rate_update_; in BitrateNow() local
56 if (diff_ms > 10000) { // 10 seconds. in BitrateNow()
65 bits_since_last_rate_update) / (1000 + diff_ms); in BitrateNow()
80 int64_t diff_ms = now - time_last_rate_update_; in Process() local
82 if (diff_ms < 100) { in Process()
86 if (diff_ms > 10000) { // 10 seconds. in Process()
93 packet_rate_array_[bitrate_next_idx_] = (packet_count_ * 1000) / diff_ms; in Process()
94 bitrate_array_[bitrate_next_idx_] = 8 * ((bytes_count_ * 1000) / diff_ms); in Process()
95 bitrate_diff_ms_[bitrate_next_idx_] = diff_ms; in Process()
Drtp_sender.cc932 int64_t diff_ms = now_ms - capture_time_ms; in PrepareAndSendPacket() local
934 diff_ms); in PrepareAndSendPacket()
/external/webrtc/webrtc/video/
Dstream_synchronization.cc117 int diff_ms = avg_diff_ms_ / 2; in ComputeDelays() local
118 diff_ms = std::min(diff_ms, kMaxChangeMs); in ComputeDelays()
119 diff_ms = std::max(diff_ms, -kMaxChangeMs); in ComputeDelays()
124 if (diff_ms > 0) { in ComputeDelays()
130 channel_delay_->extra_video_delay_ms -= diff_ms; in ComputeDelays()
134 channel_delay_->extra_audio_delay_ms += diff_ms; in ComputeDelays()
144 channel_delay_->extra_audio_delay_ms += diff_ms; in ComputeDelays()
149 channel_delay_->extra_video_delay_ms -= diff_ms; // X - (-Y) = X + Y. in ComputeDelays()
Doveruse_frame_detector.cc273 int64_t diff_ms = now - last_sample_time_ms_; in AddProcessingTime() local
274 usage_->AddSample(elapsed_ms, diff_ms); in AddProcessingTime()
/external/libiio/src/
Dlocal.c259 int diff_ms; in get_rel_timeout_ms() local
266 diff_ms = (now.tv_sec - start->tv_sec) * 1000; in get_rel_timeout_ms()
267 diff_ms += (now.tv_nsec - start->tv_nsec) / 1000000; in get_rel_timeout_ms()
269 if (diff_ms >= timeout_rel) /* Expired */ in get_rel_timeout_ms()
271 if (diff_ms > 0) /* Should never be false, but lets be safe */ in get_rel_timeout_ms()
272 timeout_rel -= diff_ms; in get_rel_timeout_ms()
/external/wpa_supplicant_8/src/ap/
Ddpp_hostapd.c307 unsigned int wait_time, diff_ms; in hostapd_dpp_reply_wait_timeout() local
316 diff_ms = diff.sec * 1000 + diff.usec / 1000; in hostapd_dpp_reply_wait_timeout()
319 wait_time, diff_ms); in hostapd_dpp_reply_wait_timeout()
321 if (auth->auth_req_ack && diff_ms >= wait_time) { in hostapd_dpp_reply_wait_timeout()
334 if (diff_ms >= wait_time) { in hostapd_dpp_reply_wait_timeout()
351 wait_time -= diff_ms; in hostapd_dpp_reply_wait_timeout()
/external/wpa_supplicant_8/wpa_supplicant/
Ddpp_supplicant.c529 unsigned int wait_time, diff_ms; in wpas_dpp_reply_wait_timeout() local
538 diff_ms = diff.sec * 1000 + diff.usec / 1000; in wpas_dpp_reply_wait_timeout()
541 wait_time, diff_ms); in wpas_dpp_reply_wait_timeout()
543 if (auth->auth_req_ack && diff_ms >= wait_time) { in wpas_dpp_reply_wait_timeout()
557 if (diff_ms >= wait_time) { in wpas_dpp_reply_wait_timeout()
574 wait_time -= diff_ms; in wpas_dpp_reply_wait_timeout()