Lines Matching refs:diff

34     WebRtc_Word32 tmp0, tmp1, diff;  in WebRtcSpl_DownBy2IntToShort()  local
43 diff = tmp0 - state[1]; in WebRtcSpl_DownBy2IntToShort()
45 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_DownBy2IntToShort()
46 tmp1 = state[0] + diff * kResampleAllpass[1][0]; in WebRtcSpl_DownBy2IntToShort()
48 diff = tmp1 - state[2]; in WebRtcSpl_DownBy2IntToShort()
50 diff = diff >> 14; in WebRtcSpl_DownBy2IntToShort()
51 if (diff < 0) in WebRtcSpl_DownBy2IntToShort()
52 diff += 1; in WebRtcSpl_DownBy2IntToShort()
53 tmp0 = state[1] + diff * kResampleAllpass[1][1]; in WebRtcSpl_DownBy2IntToShort()
55 diff = tmp0 - state[3]; in WebRtcSpl_DownBy2IntToShort()
57 diff = diff >> 14; in WebRtcSpl_DownBy2IntToShort()
58 if (diff < 0) in WebRtcSpl_DownBy2IntToShort()
59 diff += 1; in WebRtcSpl_DownBy2IntToShort()
60 state[3] = state[2] + diff * kResampleAllpass[1][2]; in WebRtcSpl_DownBy2IntToShort()
73 diff = tmp0 - state[5]; in WebRtcSpl_DownBy2IntToShort()
75 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_DownBy2IntToShort()
76 tmp1 = state[4] + diff * kResampleAllpass[0][0]; in WebRtcSpl_DownBy2IntToShort()
78 diff = tmp1 - state[6]; in WebRtcSpl_DownBy2IntToShort()
80 diff = diff >> 14; in WebRtcSpl_DownBy2IntToShort()
81 if (diff < 0) in WebRtcSpl_DownBy2IntToShort()
82 diff += 1; in WebRtcSpl_DownBy2IntToShort()
83 tmp0 = state[5] + diff * kResampleAllpass[0][1]; in WebRtcSpl_DownBy2IntToShort()
85 diff = tmp0 - state[7]; in WebRtcSpl_DownBy2IntToShort()
87 diff = diff >> 14; in WebRtcSpl_DownBy2IntToShort()
88 if (diff < 0) in WebRtcSpl_DownBy2IntToShort()
89 diff += 1; in WebRtcSpl_DownBy2IntToShort()
90 state[7] = state[6] + diff * kResampleAllpass[0][2]; in WebRtcSpl_DownBy2IntToShort()
129 WebRtc_Word32 tmp0, tmp1, diff; in WebRtcSpl_DownBy2ShortToInt() local
138 diff = tmp0 - state[1]; in WebRtcSpl_DownBy2ShortToInt()
140 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_DownBy2ShortToInt()
141 tmp1 = state[0] + diff * kResampleAllpass[1][0]; in WebRtcSpl_DownBy2ShortToInt()
143 diff = tmp1 - state[2]; in WebRtcSpl_DownBy2ShortToInt()
145 diff = diff >> 14; in WebRtcSpl_DownBy2ShortToInt()
146 if (diff < 0) in WebRtcSpl_DownBy2ShortToInt()
147 diff += 1; in WebRtcSpl_DownBy2ShortToInt()
148 tmp0 = state[1] + diff * kResampleAllpass[1][1]; in WebRtcSpl_DownBy2ShortToInt()
150 diff = tmp0 - state[3]; in WebRtcSpl_DownBy2ShortToInt()
152 diff = diff >> 14; in WebRtcSpl_DownBy2ShortToInt()
153 if (diff < 0) in WebRtcSpl_DownBy2ShortToInt()
154 diff += 1; in WebRtcSpl_DownBy2ShortToInt()
155 state[3] = state[2] + diff * kResampleAllpass[1][2]; in WebRtcSpl_DownBy2ShortToInt()
168 diff = tmp0 - state[5]; in WebRtcSpl_DownBy2ShortToInt()
170 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_DownBy2ShortToInt()
171 tmp1 = state[4] + diff * kResampleAllpass[0][0]; in WebRtcSpl_DownBy2ShortToInt()
173 diff = tmp1 - state[6]; in WebRtcSpl_DownBy2ShortToInt()
175 diff = diff >> 14; in WebRtcSpl_DownBy2ShortToInt()
176 if (diff < 0) in WebRtcSpl_DownBy2ShortToInt()
177 diff += 1; in WebRtcSpl_DownBy2ShortToInt()
178 tmp0 = state[5] + diff * kResampleAllpass[0][1]; in WebRtcSpl_DownBy2ShortToInt()
180 diff = tmp0 - state[7]; in WebRtcSpl_DownBy2ShortToInt()
182 diff = diff >> 14; in WebRtcSpl_DownBy2ShortToInt()
183 if (diff < 0) in WebRtcSpl_DownBy2ShortToInt()
184 diff += 1; in WebRtcSpl_DownBy2ShortToInt()
185 state[7] = state[6] + diff * kResampleAllpass[0][2]; in WebRtcSpl_DownBy2ShortToInt()
203 WebRtc_Word32 tmp0, tmp1, diff; in WebRtcSpl_UpBy2ShortToInt() local
210 diff = tmp0 - state[5]; in WebRtcSpl_UpBy2ShortToInt()
212 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_UpBy2ShortToInt()
213 tmp1 = state[4] + diff * kResampleAllpass[0][0]; in WebRtcSpl_UpBy2ShortToInt()
215 diff = tmp1 - state[6]; in WebRtcSpl_UpBy2ShortToInt()
217 diff = diff >> 14; in WebRtcSpl_UpBy2ShortToInt()
218 if (diff < 0) in WebRtcSpl_UpBy2ShortToInt()
219 diff += 1; in WebRtcSpl_UpBy2ShortToInt()
220 tmp0 = state[5] + diff * kResampleAllpass[0][1]; in WebRtcSpl_UpBy2ShortToInt()
222 diff = tmp0 - state[7]; in WebRtcSpl_UpBy2ShortToInt()
224 diff = diff >> 14; in WebRtcSpl_UpBy2ShortToInt()
225 if (diff < 0) in WebRtcSpl_UpBy2ShortToInt()
226 diff += 1; in WebRtcSpl_UpBy2ShortToInt()
227 state[7] = state[6] + diff * kResampleAllpass[0][2]; in WebRtcSpl_UpBy2ShortToInt()
240 diff = tmp0 - state[1]; in WebRtcSpl_UpBy2ShortToInt()
242 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_UpBy2ShortToInt()
243 tmp1 = state[0] + diff * kResampleAllpass[1][0]; in WebRtcSpl_UpBy2ShortToInt()
245 diff = tmp1 - state[2]; in WebRtcSpl_UpBy2ShortToInt()
247 diff = diff >> 14; in WebRtcSpl_UpBy2ShortToInt()
248 if (diff < 0) in WebRtcSpl_UpBy2ShortToInt()
249 diff += 1; in WebRtcSpl_UpBy2ShortToInt()
250 tmp0 = state[1] + diff * kResampleAllpass[1][1]; in WebRtcSpl_UpBy2ShortToInt()
252 diff = tmp0 - state[3]; in WebRtcSpl_UpBy2ShortToInt()
254 diff = diff >> 14; in WebRtcSpl_UpBy2ShortToInt()
255 if (diff < 0) in WebRtcSpl_UpBy2ShortToInt()
256 diff += 1; in WebRtcSpl_UpBy2ShortToInt()
257 state[3] = state[2] + diff * kResampleAllpass[1][2]; in WebRtcSpl_UpBy2ShortToInt()
273 WebRtc_Word32 tmp0, tmp1, diff; in WebRtcSpl_UpBy2IntToInt() local
280 diff = tmp0 - state[5]; in WebRtcSpl_UpBy2IntToInt()
282 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_UpBy2IntToInt()
283 tmp1 = state[4] + diff * kResampleAllpass[0][0]; in WebRtcSpl_UpBy2IntToInt()
285 diff = tmp1 - state[6]; in WebRtcSpl_UpBy2IntToInt()
287 diff = diff >> 14; in WebRtcSpl_UpBy2IntToInt()
288 if (diff < 0) in WebRtcSpl_UpBy2IntToInt()
289 diff += 1; in WebRtcSpl_UpBy2IntToInt()
290 tmp0 = state[5] + diff * kResampleAllpass[0][1]; in WebRtcSpl_UpBy2IntToInt()
292 diff = tmp0 - state[7]; in WebRtcSpl_UpBy2IntToInt()
294 diff = diff >> 14; in WebRtcSpl_UpBy2IntToInt()
295 if (diff < 0) in WebRtcSpl_UpBy2IntToInt()
296 diff += 1; in WebRtcSpl_UpBy2IntToInt()
297 state[7] = state[6] + diff * kResampleAllpass[0][2]; in WebRtcSpl_UpBy2IntToInt()
310 diff = tmp0 - state[1]; in WebRtcSpl_UpBy2IntToInt()
312 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_UpBy2IntToInt()
313 tmp1 = state[0] + diff * kResampleAllpass[1][0]; in WebRtcSpl_UpBy2IntToInt()
315 diff = tmp1 - state[2]; in WebRtcSpl_UpBy2IntToInt()
317 diff = diff >> 14; in WebRtcSpl_UpBy2IntToInt()
318 if (diff < 0) in WebRtcSpl_UpBy2IntToInt()
319 diff += 1; in WebRtcSpl_UpBy2IntToInt()
320 tmp0 = state[1] + diff * kResampleAllpass[1][1]; in WebRtcSpl_UpBy2IntToInt()
322 diff = tmp0 - state[3]; in WebRtcSpl_UpBy2IntToInt()
324 diff = diff >> 14; in WebRtcSpl_UpBy2IntToInt()
325 if (diff < 0) in WebRtcSpl_UpBy2IntToInt()
326 diff += 1; in WebRtcSpl_UpBy2IntToInt()
327 state[3] = state[2] + diff * kResampleAllpass[1][2]; in WebRtcSpl_UpBy2IntToInt()
343 WebRtc_Word32 tmp0, tmp1, diff; in WebRtcSpl_UpBy2IntToShort() local
350 diff = tmp0 - state[5]; in WebRtcSpl_UpBy2IntToShort()
352 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_UpBy2IntToShort()
353 tmp1 = state[4] + diff * kResampleAllpass[0][0]; in WebRtcSpl_UpBy2IntToShort()
355 diff = tmp1 - state[6]; in WebRtcSpl_UpBy2IntToShort()
357 diff = diff >> 14; in WebRtcSpl_UpBy2IntToShort()
358 if (diff < 0) in WebRtcSpl_UpBy2IntToShort()
359 diff += 1; in WebRtcSpl_UpBy2IntToShort()
360 tmp0 = state[5] + diff * kResampleAllpass[0][1]; in WebRtcSpl_UpBy2IntToShort()
362 diff = tmp0 - state[7]; in WebRtcSpl_UpBy2IntToShort()
364 diff = diff >> 14; in WebRtcSpl_UpBy2IntToShort()
365 if (diff < 0) in WebRtcSpl_UpBy2IntToShort()
366 diff += 1; in WebRtcSpl_UpBy2IntToShort()
367 state[7] = state[6] + diff * kResampleAllpass[0][2]; in WebRtcSpl_UpBy2IntToShort()
385 diff = tmp0 - state[1]; in WebRtcSpl_UpBy2IntToShort()
387 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_UpBy2IntToShort()
388 tmp1 = state[0] + diff * kResampleAllpass[1][0]; in WebRtcSpl_UpBy2IntToShort()
390 diff = tmp1 - state[2]; in WebRtcSpl_UpBy2IntToShort()
392 diff = diff >> 14; in WebRtcSpl_UpBy2IntToShort()
393 if (diff < 0) in WebRtcSpl_UpBy2IntToShort()
394 diff += 1; in WebRtcSpl_UpBy2IntToShort()
395 tmp0 = state[1] + diff * kResampleAllpass[1][1]; in WebRtcSpl_UpBy2IntToShort()
397 diff = tmp0 - state[3]; in WebRtcSpl_UpBy2IntToShort()
399 diff = diff >> 14; in WebRtcSpl_UpBy2IntToShort()
400 if (diff < 0) in WebRtcSpl_UpBy2IntToShort()
401 diff += 1; in WebRtcSpl_UpBy2IntToShort()
402 state[3] = state[2] + diff * kResampleAllpass[1][2]; in WebRtcSpl_UpBy2IntToShort()
422 WebRtc_Word32 tmp0, tmp1, diff; in WebRtcSpl_LPBy2ShortToInt() local
433 diff = tmp0 - state[1]; in WebRtcSpl_LPBy2ShortToInt()
435 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_LPBy2ShortToInt()
436 tmp1 = state[0] + diff * kResampleAllpass[1][0]; in WebRtcSpl_LPBy2ShortToInt()
438 diff = tmp1 - state[2]; in WebRtcSpl_LPBy2ShortToInt()
440 diff = diff >> 14; in WebRtcSpl_LPBy2ShortToInt()
441 if (diff < 0) in WebRtcSpl_LPBy2ShortToInt()
442 diff += 1; in WebRtcSpl_LPBy2ShortToInt()
443 tmp0 = state[1] + diff * kResampleAllpass[1][1]; in WebRtcSpl_LPBy2ShortToInt()
445 diff = tmp0 - state[3]; in WebRtcSpl_LPBy2ShortToInt()
447 diff = diff >> 14; in WebRtcSpl_LPBy2ShortToInt()
448 if (diff < 0) in WebRtcSpl_LPBy2ShortToInt()
449 diff += 1; in WebRtcSpl_LPBy2ShortToInt()
450 state[3] = state[2] + diff * kResampleAllpass[1][2]; in WebRtcSpl_LPBy2ShortToInt()
463 diff = tmp0 - state[5]; in WebRtcSpl_LPBy2ShortToInt()
465 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_LPBy2ShortToInt()
466 tmp1 = state[4] + diff * kResampleAllpass[0][0]; in WebRtcSpl_LPBy2ShortToInt()
468 diff = tmp1 - state[6]; in WebRtcSpl_LPBy2ShortToInt()
470 diff = diff >> 14; in WebRtcSpl_LPBy2ShortToInt()
471 if (diff < 0) in WebRtcSpl_LPBy2ShortToInt()
472 diff += 1; in WebRtcSpl_LPBy2ShortToInt()
473 tmp0 = state[5] + diff * kResampleAllpass[0][1]; in WebRtcSpl_LPBy2ShortToInt()
475 diff = tmp0 - state[7]; in WebRtcSpl_LPBy2ShortToInt()
477 diff = diff >> 14; in WebRtcSpl_LPBy2ShortToInt()
478 if (diff < 0) in WebRtcSpl_LPBy2ShortToInt()
479 diff += 1; in WebRtcSpl_LPBy2ShortToInt()
480 state[7] = state[6] + diff * kResampleAllpass[0][2]; in WebRtcSpl_LPBy2ShortToInt()
494 diff = tmp0 - state[9]; in WebRtcSpl_LPBy2ShortToInt()
496 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_LPBy2ShortToInt()
497 tmp1 = state[8] + diff * kResampleAllpass[1][0]; in WebRtcSpl_LPBy2ShortToInt()
499 diff = tmp1 - state[10]; in WebRtcSpl_LPBy2ShortToInt()
501 diff = diff >> 14; in WebRtcSpl_LPBy2ShortToInt()
502 if (diff < 0) in WebRtcSpl_LPBy2ShortToInt()
503 diff += 1; in WebRtcSpl_LPBy2ShortToInt()
504 tmp0 = state[9] + diff * kResampleAllpass[1][1]; in WebRtcSpl_LPBy2ShortToInt()
506 diff = tmp0 - state[11]; in WebRtcSpl_LPBy2ShortToInt()
508 diff = diff >> 14; in WebRtcSpl_LPBy2ShortToInt()
509 if (diff < 0) in WebRtcSpl_LPBy2ShortToInt()
510 diff += 1; in WebRtcSpl_LPBy2ShortToInt()
511 state[11] = state[10] + diff * kResampleAllpass[1][2]; in WebRtcSpl_LPBy2ShortToInt()
523 diff = tmp0 - state[13]; in WebRtcSpl_LPBy2ShortToInt()
525 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_LPBy2ShortToInt()
526 tmp1 = state[12] + diff * kResampleAllpass[0][0]; in WebRtcSpl_LPBy2ShortToInt()
528 diff = tmp1 - state[14]; in WebRtcSpl_LPBy2ShortToInt()
530 diff = diff >> 14; in WebRtcSpl_LPBy2ShortToInt()
531 if (diff < 0) in WebRtcSpl_LPBy2ShortToInt()
532 diff += 1; in WebRtcSpl_LPBy2ShortToInt()
533 tmp0 = state[13] + diff * kResampleAllpass[0][1]; in WebRtcSpl_LPBy2ShortToInt()
535 diff = tmp0 - state[15]; in WebRtcSpl_LPBy2ShortToInt()
537 diff = diff >> 14; in WebRtcSpl_LPBy2ShortToInt()
538 if (diff < 0) in WebRtcSpl_LPBy2ShortToInt()
539 diff += 1; in WebRtcSpl_LPBy2ShortToInt()
540 state[15] = state[14] + diff * kResampleAllpass[0][2]; in WebRtcSpl_LPBy2ShortToInt()
555 WebRtc_Word32 tmp0, tmp1, diff; in WebRtcSpl_LPBy2IntToInt() local
566 diff = tmp0 - state[1]; in WebRtcSpl_LPBy2IntToInt()
568 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_LPBy2IntToInt()
569 tmp1 = state[0] + diff * kResampleAllpass[1][0]; in WebRtcSpl_LPBy2IntToInt()
571 diff = tmp1 - state[2]; in WebRtcSpl_LPBy2IntToInt()
573 diff = diff >> 14; in WebRtcSpl_LPBy2IntToInt()
574 if (diff < 0) in WebRtcSpl_LPBy2IntToInt()
575 diff += 1; in WebRtcSpl_LPBy2IntToInt()
576 tmp0 = state[1] + diff * kResampleAllpass[1][1]; in WebRtcSpl_LPBy2IntToInt()
578 diff = tmp0 - state[3]; in WebRtcSpl_LPBy2IntToInt()
580 diff = diff >> 14; in WebRtcSpl_LPBy2IntToInt()
581 if (diff < 0) in WebRtcSpl_LPBy2IntToInt()
582 diff += 1; in WebRtcSpl_LPBy2IntToInt()
583 state[3] = state[2] + diff * kResampleAllpass[1][2]; in WebRtcSpl_LPBy2IntToInt()
596 diff = tmp0 - state[5]; in WebRtcSpl_LPBy2IntToInt()
598 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_LPBy2IntToInt()
599 tmp1 = state[4] + diff * kResampleAllpass[0][0]; in WebRtcSpl_LPBy2IntToInt()
601 diff = tmp1 - state[6]; in WebRtcSpl_LPBy2IntToInt()
603 diff = diff >> 14; in WebRtcSpl_LPBy2IntToInt()
604 if (diff < 0) in WebRtcSpl_LPBy2IntToInt()
605 diff += 1; in WebRtcSpl_LPBy2IntToInt()
606 tmp0 = state[5] + diff * kResampleAllpass[0][1]; in WebRtcSpl_LPBy2IntToInt()
608 diff = tmp0 - state[7]; in WebRtcSpl_LPBy2IntToInt()
610 diff = diff >> 14; in WebRtcSpl_LPBy2IntToInt()
611 if (diff < 0) in WebRtcSpl_LPBy2IntToInt()
612 diff += 1; in WebRtcSpl_LPBy2IntToInt()
613 state[7] = state[6] + diff * kResampleAllpass[0][2]; in WebRtcSpl_LPBy2IntToInt()
627 diff = tmp0 - state[9]; in WebRtcSpl_LPBy2IntToInt()
629 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_LPBy2IntToInt()
630 tmp1 = state[8] + diff * kResampleAllpass[1][0]; in WebRtcSpl_LPBy2IntToInt()
632 diff = tmp1 - state[10]; in WebRtcSpl_LPBy2IntToInt()
634 diff = diff >> 14; in WebRtcSpl_LPBy2IntToInt()
635 if (diff < 0) in WebRtcSpl_LPBy2IntToInt()
636 diff += 1; in WebRtcSpl_LPBy2IntToInt()
637 tmp0 = state[9] + diff * kResampleAllpass[1][1]; in WebRtcSpl_LPBy2IntToInt()
639 diff = tmp0 - state[11]; in WebRtcSpl_LPBy2IntToInt()
641 diff = diff >> 14; in WebRtcSpl_LPBy2IntToInt()
642 if (diff < 0) in WebRtcSpl_LPBy2IntToInt()
643 diff += 1; in WebRtcSpl_LPBy2IntToInt()
644 state[11] = state[10] + diff * kResampleAllpass[1][2]; in WebRtcSpl_LPBy2IntToInt()
656 diff = tmp0 - state[13]; in WebRtcSpl_LPBy2IntToInt()
658 diff = (diff + (1 << 13)) >> 14; in WebRtcSpl_LPBy2IntToInt()
659 tmp1 = state[12] + diff * kResampleAllpass[0][0]; in WebRtcSpl_LPBy2IntToInt()
661 diff = tmp1 - state[14]; in WebRtcSpl_LPBy2IntToInt()
663 diff = diff >> 14; in WebRtcSpl_LPBy2IntToInt()
664 if (diff < 0) in WebRtcSpl_LPBy2IntToInt()
665 diff += 1; in WebRtcSpl_LPBy2IntToInt()
666 tmp0 = state[13] + diff * kResampleAllpass[0][1]; in WebRtcSpl_LPBy2IntToInt()
668 diff = tmp0 - state[15]; in WebRtcSpl_LPBy2IntToInt()
670 diff = diff >> 14; in WebRtcSpl_LPBy2IntToInt()
671 if (diff < 0) in WebRtcSpl_LPBy2IntToInt()
672 diff += 1; in WebRtcSpl_LPBy2IntToInt()
673 state[15] = state[14] + diff * kResampleAllpass[0][2]; in WebRtcSpl_LPBy2IntToInt()