feat: StepDetector
move StepDetector from lockstep android to libpasada
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user