Lines Matching refs:packets

145    JitterBufferPacket packets[SPEEX_JITTER_MAX_BUFFER_SIZE];   /**< Packets stored in the buffer */  member
280 jitter->packets[i].data=NULL; in jitter_buffer_init()
302 if (jitter->packets[i].data) in jitter_buffer_reset()
305 jitter->destroy(jitter->packets[i].data); in jitter_buffer_reset()
307 speex_free(jitter->packets[i].data); in jitter_buffer_reset()
308 jitter->packets[i].data = NULL; in jitter_buffer_reset()
380 …if (jitter->packets[i].data && LE32(jitter->packets[i].timestamp + jitter->packets[i].span, jitter… in jitter_buffer_put()
384 jitter->destroy(jitter->packets[i].data); in jitter_buffer_put()
386 speex_free(jitter->packets[i].data); in jitter_buffer_put()
387 jitter->packets[i].data = NULL; in jitter_buffer_put()
416 if (jitter->packets[i].data==NULL) in jitter_buffer_put()
423 int earliest=jitter->packets[0].timestamp; in jitter_buffer_put()
427 if (!jitter->packets[i].data || LT32(jitter->packets[j].timestamp,earliest)) in jitter_buffer_put()
429 earliest = jitter->packets[j].timestamp; in jitter_buffer_put()
434 jitter->destroy(jitter->packets[i].data); in jitter_buffer_put()
436 speex_free(jitter->packets[i].data); in jitter_buffer_put()
437 jitter->packets[i].data=NULL; in jitter_buffer_put()
444 jitter->packets[i].data = packet->data; in jitter_buffer_put()
446 jitter->packets[i].data=(char*)speex_alloc(packet->len); in jitter_buffer_put()
448 jitter->packets[i].data[j]=packet->data[j]; in jitter_buffer_put()
450 jitter->packets[i].timestamp=packet->timestamp; in jitter_buffer_put()
451 jitter->packets[i].span=packet->span; in jitter_buffer_put()
452 jitter->packets[i].len=packet->len; in jitter_buffer_put()
453 jitter->packets[i].sequence=packet->sequence; in jitter_buffer_put()
454 jitter->packets[i].user_data=packet->user_data; in jitter_buffer_put()
483 if (jitter->packets[i].data && (!found || LT32(jitter->packets[i].timestamp,oldest))) in jitter_buffer_get()
485 oldest = jitter->packets[i].timestamp; in jitter_buffer_get()
526 …if (jitter->packets[i].data && jitter->packets[i].timestamp==jitter->pointer_timestamp && GE32(jit… in jitter_buffer_get()
535 … (jitter->packets[i].data && LE32(jitter->packets[i].timestamp, jitter->pointer_timestamp) && GE32… in jitter_buffer_get()
545 … (jitter->packets[i].data && LE32(jitter->packets[i].timestamp, jitter->pointer_timestamp) && GT32… in jitter_buffer_get()
560 …if (jitter->packets[i].data && LT32(jitter->packets[i].timestamp,jitter->pointer_timestamp+desired… in jitter_buffer_get()
562 …if (!found || LT32(jitter->packets[i].timestamp,best_time) || (jitter->packets[i].timestamp==best_… in jitter_buffer_get()
564 best_time = jitter->packets[i].timestamp; in jitter_buffer_get()
565 best_span = jitter->packets[i].span; in jitter_buffer_get()
590 …update_timings(jitter, ((spx_int32_t)jitter->packets[i].timestamp) - ((spx_int32_t)jitter->arrival… in jitter_buffer_get()
597 packet->data = jitter->packets[i].data; in jitter_buffer_get()
598 packet->len = jitter->packets[i].len; in jitter_buffer_get()
600 if (jitter->packets[i].len > packet->len) in jitter_buffer_get()
602 …speex_warning_int("jitter_buffer_get(): packet too large to fit. Size is", jitter->packets[i].len); in jitter_buffer_get()
604 packet->len = jitter->packets[i].len; in jitter_buffer_get()
607 packet->data[j] = jitter->packets[i].data[j]; in jitter_buffer_get()
609 speex_free(jitter->packets[i].data); in jitter_buffer_get()
611 jitter->packets[i].data = NULL; in jitter_buffer_get()
613 offset = (spx_int32_t)jitter->packets[i].timestamp-(spx_int32_t)jitter->pointer_timestamp; in jitter_buffer_get()
619 packet->timestamp = jitter->packets[i].timestamp; in jitter_buffer_get()
622 packet->span = jitter->packets[i].span; in jitter_buffer_get()
623 packet->sequence = jitter->packets[i].sequence; in jitter_buffer_get()
624 packet->user_data = jitter->packets[i].user_data; in jitter_buffer_get()
626 jitter->pointer_timestamp = jitter->packets[i].timestamp+jitter->packets[i].span; in jitter_buffer_get()
685 if (jitter->packets[i].data && jitter->packets[i].timestamp==jitter->last_returned_timestamp) in jitter_buffer_get_another()
691 packet->len = jitter->packets[i].len; in jitter_buffer_get_another()
694 packet->data = jitter->packets[i].data; in jitter_buffer_get_another()
697 packet->data[j] = jitter->packets[i].data[j]; in jitter_buffer_get_another()
699 speex_free(jitter->packets[i].data); in jitter_buffer_get_another()
701 jitter->packets[i].data = NULL; in jitter_buffer_get_another()
702 packet->timestamp = jitter->packets[i].timestamp; in jitter_buffer_get_another()
703 packet->span = jitter->packets[i].span; in jitter_buffer_get_another()
704 packet->sequence = jitter->packets[i].sequence; in jitter_buffer_get_another()
705 packet->user_data = jitter->packets[i].user_data; in jitter_buffer_get_another()
798 … if (jitter->packets[i].data && LE32(jitter->pointer_timestamp, jitter->packets[i].timestamp)) in jitter_buffer_ctl()