44#define ASSERT(a) ast_assert(a)
114 if (
conf->jbsize < 1)
117 if (
conf->resync_threshold < 1)
157 offset = diff - jb->
tail->
ms;
212 if (delivery < jb->next_delivery) {
258 frame->
next = newframe;
267 newframe->
prev = frame;
296 if (now < jb->next_delivery) {
319 if (now < jb->
frames->delivery) {
Asterisk main include file. File version handling, generic pbx functions.
#define ast_calloc(num, len)
A wrapper for calloc()
struct fixed_jb * fixed_jb_new(struct fixed_jb_conf *conf)
int fixed_jb_put_first(struct fixed_jb *jb, void *data, long ms, long ts, long now)
int fixed_jb_put(struct fixed_jb *jb, void *data, long ms, long ts, long now)
static struct fixed_jb_frame * alloc_jb_frame(struct fixed_jb *jb)
long fixed_jb_next(struct fixed_jb *jb)
static int resynch_jb(struct fixed_jb *jb, void *data, long ms, long ts, long now)
int fixed_jb_get(struct fixed_jb *jb, struct fixed_jb_frame *frame, long now, long interpl)
int fixed_jb_is_late(struct fixed_jb *jb, long ts)
Checks if the given time stamp is late.
static void release_jb_frame(struct fixed_jb *jb, struct fixed_jb_frame *frame)
void fixed_jb_destroy(struct fixed_jb *jb)
int fixed_jb_remove(struct fixed_jb *jb, struct fixed_jb_frame *frameout)
static void get_jb_head(struct fixed_jb *jb, struct fixed_jb_frame *frame)
void fixed_jb_set_force_resynch(struct fixed_jb *jb)
Jitterbuffering algorithm.
#define FIXED_JB_SIZE_DEFAULT
#define FIXED_JB_RESYNCH_THRESHOLD_DEFAULT
All configuration options for http media cache.
struct fixed_jb_frame * prev
struct fixed_jb_frame * next
private fixed_jb structure
struct fixed_jb_frame * tail
struct fixed_jb_frame * frames
struct fixed_jb_conf conf