Lines Matching refs:maxDiff
619 unsigned long diff, minDiff = 1, maxDiff = 0; in findPitchPeriodInRange() local
639 if(diff*worstPeriod > maxDiff*period) { in findPitchPeriodInRange()
640 maxDiff = diff; in findPitchPeriodInRange()
645 *retMaxDiff = maxDiff/worstPeriod; in findPitchPeriodInRange()
655 int maxDiff, in prevPeriodBetter() argument
662 if(maxDiff > minDiff*3) { in prevPeriodBetter()
690 int minDiff, maxDiff, retPeriod; in findPitchPeriod() local
698 period = findPitchPeriodInRange(samples, minPeriod, maxPeriod, &minDiff, &maxDiff); in findPitchPeriod()
702 maxPeriod/skip, &minDiff, &maxDiff); in findPitchPeriod()
715 &minDiff, &maxDiff); in findPitchPeriod()
719 maxPeriod, &minDiff, &maxDiff); in findPitchPeriod()
723 if(prevPeriodBetter(stream, period, minDiff, maxDiff, preferNewPeriod)) { in findPitchPeriod()