Home
last modified time | relevance | path

Searched refs:prevval (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
Daudioop.c653 int len, size, val = 0, prevval = 0, prevextremevalid = 0, in audioop_avgpp() local
666 if ( size == 1 ) prevval = (int)*CHARP(cp, 0); in audioop_avgpp()
667 else if ( size == 2 ) prevval = (int)*SHORTP(cp, 0); in audioop_avgpp()
668 else if ( size == 4 ) prevval = (int)*LONGP(cp, 0); in audioop_avgpp()
674 if (val != prevval) { in audioop_avgpp()
675 diff = val < prevval; in audioop_avgpp()
681 sum += fabs((double)prevval - (double)prevextreme); in audioop_avgpp()
685 prevextreme = prevval; in audioop_avgpp()
687 prevval = val; in audioop_avgpp()
705 int len, size, val = 0, prevval = 0, prevextremevalid = 0, in audioop_maxpp() local
[all …]
/external/python/cpython3/Modules/
Daudioop.c775 int prevval, prevextremevalid = 0, prevextreme = 0; in audioop_avgpp_impl() local
784 prevval = GETRAWSAMPLE(width, fragment->buf, 0); in audioop_avgpp_impl()
788 if (val != prevval) { in audioop_avgpp_impl()
789 diff = val < prevval; in audioop_avgpp_impl()
795 if (prevval < prevextreme) in audioop_avgpp_impl()
797 (unsigned int)prevval); in audioop_avgpp_impl()
799 sum += (double)((unsigned int)prevval - in audioop_avgpp_impl()
804 prevextreme = prevval; in audioop_avgpp_impl()
806 prevval = val; in audioop_avgpp_impl()
832 int prevval, prevextremevalid = 0, prevextreme = 0; in audioop_maxpp_impl() local
[all …]