Home | History | Annotate | Download | only in libspeex

Lines Matching refs:tb

90 static void tb_init(struct TimingBuffer *tb)
92 tb->filled = 0;
93 tb->curr_count = 0;
97 static void tb_add(struct TimingBuffer *tb, spx_int16_t timing)
101 if (tb->filled >= MAX_TIMINGS && timing >= tb->timing[tb->filled-1])
103 tb->curr_count++;
110 while (pos<tb->filled && timing >= tb->timing[pos])
115 speex_assert(pos <= tb->filled && pos < MAX_TIMINGS);
118 if (pos < tb->filled)
120 int move_size = tb->filled-pos;
121 if (tb->filled == MAX_TIMINGS)
123 SPEEX_MOVE(&tb->timing[pos+1], &tb->timing[pos], move_size);
124 SPEEX_MOVE(&tb->counts[pos+1], &tb->counts[pos], move_size);
127 tb->timing[pos] = timing;
128 tb->counts[pos] = tb->curr_count;
130 tb->curr_count++;
131 if (tb->filled<MAX_TIMINGS)
132 tb->filled++;
172 @param tb Array of buffers
188 struct TimingBuffer *tb;
190 tb = jitter->_tb;
195 tot_count += tb[i].curr_count;
219 if (pos[j] < tb[j].filled && tb[j].timing[pos[j]] < latest)
222 latest = tb[j].timing[pos[j]];