Home
last modified time | relevance | path

Searched refs:avg_packet_rate (Results 1 – 2 of 2) sorted by relevance

/third_party/gstreamer/gstplugins_good/gst/rtpmanager/
Drtpstats.c32 ctx->avg_packet_rate = -1; in gst_rtp_packet_rate_ctx_reset()
46 return ctx->avg_packet_rate; in gst_rtp_packet_rate_ctx_update()
83 if (ctx->avg_packet_rate > new_packet_rate) in gst_rtp_packet_rate_ctx_update()
84 base = MAX (ctx->avg_packet_rate / 3, 8); /* about 333 ms */ in gst_rtp_packet_rate_ctx_update()
86 base = MAX (ctx->avg_packet_rate / 15, 2); /* about 66 ms */ in gst_rtp_packet_rate_ctx_update()
90 ctx->avg_packet_rate = (((base - diff_seqnum) * ctx->avg_packet_rate) + in gst_rtp_packet_rate_ctx_update()
100 return ctx->avg_packet_rate; in gst_rtp_packet_rate_ctx_update()
106 return ctx->avg_packet_rate; in gst_rtp_packet_rate_ctx_get()
112 if (time_ms <= 0 || !ctx->probed || ctx->avg_packet_rate == -1) { in gst_rtp_packet_rate_ctx_get_max_dropout()
116 return MAX (RTP_MIN_DROPOUT, ctx->avg_packet_rate * time_ms / 1000); in gst_rtp_packet_rate_ctx_get_max_dropout()
[all …]
Drtpstats.h225 guint32 avg_packet_rate; member