RTPSenderReport sr[2];
} RTPSourceStats;
-#define RTP_STATS_BANDWIDTH 64000.0
-#define RTP_STATS_RTCP_BANDWIDTH 3000.0
+#define RTP_STATS_BANDWIDTH 64000
+#define RTP_STATS_RTCP_BANDWIDTH 3200
/*
* Minimum average time between RTCP packets from this site (in
* seconds). This time prevents the reports from `clumping' when
* Stats kept for a session and used to produce RTCP packet timeouts.
*/
typedef struct {
- gdouble bandwidth;
+ guint bandwidth;
+ guint rtcp_bandwidth;
gdouble sender_fraction;
gdouble receiver_fraction;
- gdouble rtcp_bandwidth;
gdouble min_interval;
GstClockTime bye_timeout;
guint sender_sources;
guint bye_members;
} RTPSessionStats;
-void rtp_stats_init_defaults (RTPSessionStats *stats);
+void rtp_stats_init_defaults (RTPSessionStats *stats);
+
+void rtp_stats_set_bandwidths (RTPSessionStats *stats, guint rtp_bw, guint rtcp_bw,
+ guint rs, guint rr);
GstClockTime rtp_stats_calculate_rtcp_interval (RTPSessionStats *stats, gboolean sender, gboolean first);
GstClockTime rtp_stats_add_rtcp_jitter (RTPSessionStats *stats, GstClockTime interval);