diff options
Diffstat (limited to 'gst/netsim/gstnetsim.h')
-rw-r--r-- | gst/netsim/gstnetsim.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gst/netsim/gstnetsim.h b/gst/netsim/gstnetsim.h index c066774dc..8e4d75032 100644 --- a/gst/netsim/gstnetsim.h +++ b/gst/netsim/gstnetsim.h @@ -46,6 +46,19 @@ G_BEGIN_DECLS typedef struct _GstNetSim GstNetSim; typedef struct _GstNetSimClass GstNetSimClass; +typedef enum +{ + DISTRIBUTION_UNIFORM, + DISTRIBUTION_NORMAL +} GstNetSimDistribution; + +typedef struct +{ + gboolean generate; + gdouble z0; + gdouble z1; +} NormalDistributionState; + struct _GstNetSim { GstElement parent; @@ -60,10 +73,12 @@ struct _GstNetSim GRand *rand_seed; gsize bucket_size; GstClockTime prev_time; + NormalDistributionState delay_state; /* properties */ gint min_delay; gint max_delay; + GstNetSimDistribution delay_distribution; gfloat delay_probability; gfloat drop_probability; gfloat duplicate_probability; |