Lines Matching refs:valpred
1431 int len, size, val = 0, step, valpred, delta, in audioop_lin2adpcm() local
1446 valpred = 0; in audioop_lin2adpcm()
1453 else if (!PyArg_ParseTuple(state, "ii", &valpred, &index)) { in audioop_lin2adpcm()
1456 else if (valpred >= 0x8000 || valpred < -0x8000 || in audioop_lin2adpcm()
1476 diff = val - valpred; in audioop_lin2adpcm()
1511 valpred -= vpdiff; in audioop_lin2adpcm()
1513 valpred += vpdiff; in audioop_lin2adpcm()
1516 if ( valpred > 32767 ) in audioop_lin2adpcm()
1517 valpred = 32767; in audioop_lin2adpcm()
1518 else if ( valpred < -32768 ) in audioop_lin2adpcm()
1519 valpred = -32768; in audioop_lin2adpcm()
1537 rv = Py_BuildValue("(O(ii))", str, valpred, index); in audioop_lin2adpcm()
1547 int len, size, valpred, step, delta, index, sign, vpdiff; in audioop_adpcm2lin() local
1561 valpred = 0; in audioop_adpcm2lin()
1568 else if (!PyArg_ParseTuple(state, "ii", &valpred, &index)) { in audioop_adpcm2lin()
1571 else if (valpred >= 0x8000 || valpred < -0x8000 || in audioop_adpcm2lin()
1621 valpred -= vpdiff; in audioop_adpcm2lin()
1623 valpred += vpdiff; in audioop_adpcm2lin()
1626 if ( valpred > 32767 ) in audioop_adpcm2lin()
1627 valpred = 32767; in audioop_adpcm2lin()
1628 else if ( valpred < -32768 ) in audioop_adpcm2lin()
1629 valpred = -32768; in audioop_adpcm2lin()
1635 if ( size == 1 ) *CHARP(ncp, i) = (signed char)(valpred >> 8); in audioop_adpcm2lin()
1636 else if ( size == 2 ) *SHORTP(ncp, i) = (short)(valpred); in audioop_adpcm2lin()
1637 else if ( size == 4 ) *LONGP(ncp, i) = (Py_Int32)(valpred<<16); in audioop_adpcm2lin()
1640 rv = Py_BuildValue("(O(ii))", str, valpred, index); in audioop_adpcm2lin()