• Home
  • Raw
  • Download

Lines Matching refs:band

72 static void block4(g722_band_t *band, int d)  in block4()  argument
84 band->d[0] = d; in block4()
85 band->r[0] = saturate(band->s + d); in block4()
88 band->p[0] = saturate(band->sz + d); in block4()
92 sg[i] = band->p[i] >> 15; in block4()
93 wd1 = saturate(band->a[1] << 2); in block4()
100 ap2 += (band->a[2]*32512) >> 15; in block4()
105 band->ap[2] = ap2; in block4()
108 sg[0] = band->p[0] >> 15; in block4()
109 sg[1] = band->p[1] >> 15; in block4()
111 wd2 = (band->a[1]*32640) >> 15; in block4()
114 wd3 = saturate(15360 - band->ap[2]); in block4()
119 band->ap[1] = ap1; in block4()
128 sgi = band->d[i] >> 15; in block4()
130 wd3 = (band->b[i]*32640) >> 15; in block4()
131 band->bp[i] = saturate(wd2 + wd3); in block4()
140 band->d[i] = band->d[i - 1]; in block4()
141 bi = band->b[i] = band->bp[i]; in block4()
142 wd1 = saturate(band->d[i] + band->d[i]); in block4()
145 band->sz = sz; in block4()
149 band->r[i] = band->r[i - 1]; in block4()
150 band->p[i] = band->p[i - 1]; in block4()
151 band->a[i] = band->ap[i]; in block4()
155 wd1 = saturate(band->r[1] + band->r[1]); in block4()
156 wd1 = (band->a[1]*wd1) >> 15; in block4()
157 wd2 = saturate(band->r[2] + band->r[2]); in block4()
158 wd2 = (band->a[2]*wd2) >> 15; in block4()
159 band->sp = saturate(wd1 + wd2); in block4()
162 band->s = saturate(band->sp + band->sz); in block4()
183 s->band[0].det = 32; in g722_encode_init()
184 s->band[1].det = 8; in g722_encode_init()
344 el = saturate(xlow - s->band[0].s); in g722_encode()
351 wd1 = (q6[i]*s->band[0].det) >> 12; in g722_encode()
360 dlow = (s->band[0].det*wd2) >> 15; in g722_encode()
364 wd = (s->band[0].nb*127) >> 7; in g722_encode()
365 s->band[0].nb = wd + wl[il4]; in g722_encode()
366 if (s->band[0].nb < 0) in g722_encode()
367 s->band[0].nb = 0; in g722_encode()
368 else if (s->band[0].nb > 18432) in g722_encode()
369 s->band[0].nb = 18432; in g722_encode()
372 wd1 = (s->band[0].nb >> 6) & 31; in g722_encode()
373 wd2 = 8 - (s->band[0].nb >> 11); in g722_encode()
375 s->band[0].det = wd3 << 2; in g722_encode()
377 block4(&s->band[0], dlow); in g722_encode()
382 eh = saturate(xhigh - s->band[1].s); in g722_encode()
386 wd1 = (564*s->band[1].det) >> 12; in g722_encode()
392 dhigh = (s->band[1].det*wd2) >> 15; in g722_encode()
396 wd = (s->band[1].nb*127) >> 7; in g722_encode()
403 s->band[1].nb = nb; in g722_encode()
406 wd1 = (s->band[1].nb >> 6) & 31; in g722_encode()
407 wd2 = 10 - (s->band[1].nb >> 11); in g722_encode()
409 s->band[1].det = wd3 << 2; in g722_encode()
411 block4(&s->band[1], dhigh); in g722_encode()