feat: StepDetector

move StepDetector from lockstep android to libpasada
This commit is contained in:
2026-03-15 23:07:05 +01:00
parent ba923c53bd
commit d88ac81345
9 changed files with 169 additions and 1 deletions

View File

@@ -40,8 +40,10 @@ double SsfFilter::filter(double val) {
return ssf;
}
size_t SsfStepDetector::initial_samples() { return (size_t) (3.0 * FPS); }
SsfStepDetector::SsfStepDetector(size_t len_refr) :
// note: also change above, in initial_samples()
LEN_INIT((size_t) (3.0 * FPS)), // initial window length for ssf_threshold
LEN_TH_WIN((size_t) (3.0 * FPS)), // subsequent window length for ssf_threshold
num_samples(0),