Lines Matching refs:wd1
64 int wd1; in block4() local
79 wd1 = saturate(s->band[band].a[1] * 4); in block4()
81 wd2 = (s->band[band].sg[0] == s->band[band].sg[1]) ? -wd1 : wd1; in block4()
96 wd1 = (s->band[band].sg[0] == s->band[band].sg[1]) ? 192 : -192; in block4()
99 s->band[band].ap[1] = saturate(wd1 + wd2); in block4()
107 wd1 = (d == 0) ? 0 : 128; in block4()
112 wd2 = (s->band[band].sg[i] == s->band[band].sg[0]) ? wd1 : -wd1; in block4()
132 wd1 = saturate(s->band[band].r[1] + s->band[band].r[1]); in block4()
133 wd1 = (s->band[band].a[1]*wd1) >> 15; in block4()
136 s->band[band].sp = saturate(wd1 + wd2); in block4()
142 wd1 = saturate(s->band[band].d[i] + s->band[band].d[i]); in block4()
143 s->band[band].sz += (s->band[band].b[i]*wd1) >> 15; in block4()
248 int wd1; in WebRtc_g722_decode() local
281 wd1 = code & 0x3F; in WebRtc_g722_decode()
283 wd2 = qm6[wd1]; in WebRtc_g722_decode()
284 wd1 >>= 2; in WebRtc_g722_decode()
287 wd1 = code & 0x1F; in WebRtc_g722_decode()
289 wd2 = qm5[wd1]; in WebRtc_g722_decode()
290 wd1 >>= 1; in WebRtc_g722_decode()
293 wd1 = code & 0x0F; in WebRtc_g722_decode()
295 wd2 = qm4[wd1]; in WebRtc_g722_decode()
309 wd2 = qm4[wd1]; in WebRtc_g722_decode()
313 wd2 = rl42[wd1]; in WebRtc_g722_decode()
314 wd1 = (s->band[0].nb*127) >> 7; in WebRtc_g722_decode()
315 wd1 += wl[wd2]; in WebRtc_g722_decode()
316 if (wd1 < 0) in WebRtc_g722_decode()
317 wd1 = 0; in WebRtc_g722_decode()
318 else if (wd1 > 18432) in WebRtc_g722_decode()
319 wd1 = 18432; in WebRtc_g722_decode()
320 s->band[0].nb = wd1; in WebRtc_g722_decode()
323 wd1 = (s->band[0].nb >> 6) & 31; in WebRtc_g722_decode()
325 wd3 = (wd2 < 0) ? (ilb[wd1] << -wd2) : (ilb[wd1] >> wd2); in WebRtc_g722_decode()
345 wd1 = (s->band[1].nb*127) >> 7; in WebRtc_g722_decode()
346 wd1 += wh[wd2]; in WebRtc_g722_decode()
347 if (wd1 < 0) in WebRtc_g722_decode()
348 wd1 = 0; in WebRtc_g722_decode()
349 else if (wd1 > 22528) in WebRtc_g722_decode()
350 wd1 = 22528; in WebRtc_g722_decode()
351 s->band[1].nb = wd1; in WebRtc_g722_decode()
354 wd1 = (s->band[1].nb >> 6) & 31; in WebRtc_g722_decode()
356 wd3 = (wd2 < 0) ? (ilb[wd1] << -wd2) : (ilb[wd1] >> wd2); in WebRtc_g722_decode()