From d20dde371d1ddac288267d7d051735b685a24697 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 26 Sep 2014 23:56:50 +0200 Subject: gain: stupido --- facetracknoir/gain-control.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/facetracknoir/gain-control.hpp b/facetracknoir/gain-control.hpp index 98d45711..73155cd8 100644 --- a/facetracknoir/gain-control.hpp +++ b/facetracknoir/gain-control.hpp @@ -47,7 +47,7 @@ private: static constexpr bool use_box_filter = true; static constexpr int box_size = 16 / 640.; static constexpr double control_upper_bound = 1.0; // XXX FIXME implement for logitech crapola - static constexpr int GAIN_HISTORY_COUNT = 90, GAIN_HISTORY_EVERY_MS = 85; + static constexpr int GAIN_HISTORY_COUNT = 50, GAIN_HISTORY_EVERY_MS = 998; int control; double step, eps; @@ -179,6 +179,7 @@ public: if (GAIN_HISTORY_COUNT > means_history.size() && history_timer.elapsed_ms() > GAIN_HISTORY_EVERY_MS) { + history_timer.start(); means_history.push_front(frame.clone()); if (GAIN_HISTORY_COUNT == means_history.size()) -- cgit v1.2.3