Lines Matching refs:minDiff
619 unsigned long diff, minDiff = 1, maxDiff = 0; in findPitchPeriodInRange() local
635 if(diff*bestPeriod < minDiff*period) { in findPitchPeriodInRange()
636 minDiff = diff; in findPitchPeriodInRange()
644 *retMinDiff = minDiff/bestPeriod; in findPitchPeriodInRange()
654 int minDiff, in prevPeriodBetter() argument
658 if(minDiff == 0 || stream->prevPeriod == 0) { in prevPeriodBetter()
662 if(maxDiff > minDiff*3) { in prevPeriodBetter()
666 if(minDiff*2 <= stream->prevMinDiff*3) { in prevPeriodBetter()
671 if(minDiff <= stream->prevMinDiff) { 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()
728 stream->prevMinDiff = minDiff; in findPitchPeriod()