Lines Matching refs:deltas
184 // estimate video framerate from deltas between timestamps, and
185 // 2nd order deltas
186 Vector<nsecs_t> deltas;
194 deltas.push(time - lastTime);
201 deltas.sort(compare<nsecs_t>);
202 size_t numDeltas = deltas.size();
204 nsecs_t deltaMinLimit = max(deltas[0] / kMultiplesThresholdDiv, kMinPeriod);
205 nsecs_t deltaMaxLimit = deltas[numDeltas / 2] * kMultiplesThresholdDiv;
207 if (deltas[i] > deltaMaxLimit) {
208 deltas.resize(i);
214 nsecs_t delta2nd = deltas[i] - deltas[i - 1];
217 deltas.push(delta2nd);
224 for (size_t i = 0; i < deltas.size(); ++i) {
225 nsecs_t delta = deltas[i];
228 // simplest score: number of deltas that are near multiples
230 for (size_t j = 0; j < deltas.size(); ++j) {
231 nsecs_t err = periodicError(deltas[j], delta);