Home
last modified time | relevance | path

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

/external/webrtc/video/
Dstream_synchronization.cc87 int diff_ms = avg_diff_ms_ / 2; in ComputeDelays() local
88 diff_ms = std::min(diff_ms, kMaxChangeMs); in ComputeDelays()
89 diff_ms = std::max(diff_ms, -kMaxChangeMs); in ComputeDelays()
94 if (diff_ms > 0) { in ComputeDelays()
100 video_delay_.extra_ms -= diff_ms; in ComputeDelays()
104 audio_delay_.extra_ms += diff_ms; in ComputeDelays()
114 audio_delay_.extra_ms += diff_ms; in ComputeDelays()
119 video_delay_.extra_ms -= diff_ms; // X - (-Y) = X + Y. in ComputeDelays()
Dstream_synchronization_unittest.cc263 int diff_ms = (delay_ms - current_audio_delay_ms) / kSmoothingFilter; in MaxAudioDelayChangeMs() local
264 diff_ms = std::min(diff_ms, kMaxChangeMs); in MaxAudioDelayChangeMs()
265 diff_ms = std::max(diff_ms, -kMaxChangeMs); in MaxAudioDelayChangeMs()
266 return diff_ms; in MaxAudioDelayChangeMs()
Dsend_delay_stats.cc103 int diff_ms = time_ms - it->second.send_time_ms; in OnSentPacket() local
104 GetSendDelayCounter(it->second.ssrc)->Add(diff_ms); in OnSentPacket()
Dstats_counter.cc227 int64_t diff_ms = now - last_process_time_ms_; in TimeToProcess() local
228 if (diff_ms < process_intervals_ms_) in TimeToProcess()
232 int64_t num_intervals = diff_ms / process_intervals_ms_; in TimeToProcess()
Dsend_statistics_proxy.cc825 int64_t diff_ms = now - uma_container_->target_rate_updates_.last_ms; in OnSetEncoderTargetRate() local
826 uma_container_->paused_time_counter_.Add(was_paused, diff_ms); in OnSetEncoderTargetRate()
881 int64_t diff_ms = now_ms - *(fallback_info->last_update_ms); in UpdateEncoderFallbackStats() local
884 if (diff_ms < fallback_info->max_frame_diff_ms) { in UpdateEncoderFallbackStats()
886 diff_ms); in UpdateEncoderFallbackStats()
887 fallback_info->elapsed_ms += diff_ms; in UpdateEncoderFallbackStats()
/external/webrtc/modules/video_coding/utility/
Dframerate_controller.cc59 const int64_t diff_ms = in DropFrame() local
61 if (diff_ms < min_frame_interval_ms_) { in DropFrame()
/external/webrtc/modules/rtp_rtcp/source/deprecated/
Ddeprecated_rtp_sender_egress.cc149 int64_t diff_ms = now_ms - packet->capture_time_ms(); in SendPacket() local
151 packet->SetExtension<TransmissionOffset>(kTimestampTicksPerMs * diff_ms); in SendPacket()
362 int64_t diff_ms = now_ms - capture_time_ms; in UpdateDelayStatistics() local
363 RTC_DCHECK_GE(diff_ms, static_cast<int64_t>(0)); in UpdateDelayStatistics()
364 RTC_DCHECK_LE(diff_ms, std::numeric_limits<int>::max()); in UpdateDelayStatistics()
/external/webrtc/modules/rtp_rtcp/source/
Drtp_sender_egress.cc217 int64_t diff_ms = now_ms - packet->capture_time_ms(); in SendPacket() local
219 packet->SetExtension<TransmissionOffset>(kTimestampTicksPerMs * diff_ms); in SendPacket()
458 int64_t diff_ms = now_ms - capture_time_ms; in UpdateDelayStatistics() local
459 RTC_DCHECK_GE(diff_ms, static_cast<int64_t>(0)); in UpdateDelayStatistics()
460 RTC_DCHECK_LE(diff_ms, std::numeric_limits<int>::max()); in UpdateDelayStatistics()
/external/webrtc/video/adaptation/
Doveruse_frame_detector.cc97 void SetMaxSampleDiffMs(float diff_ms) override { in SetMaxSampleDiffMs() argument
98 max_sample_diff_ms_ = diff_ms; in SetMaxSampleDiffMs()
355 void SetMaxSampleDiffMs(float diff_ms) override { in SetMaxSampleDiffMs() argument
356 usage_->SetMaxSampleDiffMs(diff_ms); in SetMaxSampleDiffMs()
Doveruse_frame_detector.h100 virtual void SetMaxSampleDiffMs(float diff_ms) = 0;
Dvideo_stream_encoder_resource_manager.cc88 int64_t diff_ms = now_ms - set_start_bitrate_time_ms_; in SetTargetBitrate() local
89 if (diff_ms < in SetTargetBitrate()
/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.c329 unsigned int wait_time, diff_ms; in hostapd_dpp_reply_wait_timeout() local
338 diff_ms = diff.sec * 1000 + diff.usec / 1000; in hostapd_dpp_reply_wait_timeout()
341 wait_time, diff_ms); in hostapd_dpp_reply_wait_timeout()
343 if (auth->auth_req_ack && diff_ms >= wait_time) { in hostapd_dpp_reply_wait_timeout()
356 if (diff_ms >= wait_time) { in hostapd_dpp_reply_wait_timeout()
373 wait_time -= diff_ms; in hostapd_dpp_reply_wait_timeout()
/external/wpa_supplicant_8/wpa_supplicant/
Ddpp_supplicant.c551 unsigned int wait_time, diff_ms; in wpas_dpp_reply_wait_timeout() local
560 diff_ms = diff.sec * 1000 + diff.usec / 1000; in wpas_dpp_reply_wait_timeout()
563 wait_time, diff_ms); in wpas_dpp_reply_wait_timeout()
565 if (auth->auth_req_ack && diff_ms >= wait_time) { in wpas_dpp_reply_wait_timeout()
579 if (diff_ms >= wait_time) { in wpas_dpp_reply_wait_timeout()
596 wait_time -= diff_ms; in wpas_dpp_reply_wait_timeout()