summaryrefslogtreecommitdiffhomepage
path: root/filter-accela/ftnoir_filter_accela.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-30 12:03:58 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-30 19:54:10 +0200
commit0c00c91391f2190eb7615bc7bed2096e2b7ea9d9 (patch)
tree69c73a42d9a0ec93d4682737a5f20abe1942e7f5 /filter-accela/ftnoir_filter_accela.h
parentbdfe1ea6a587220a93a843c7b629e810787d9f85 (diff)
filter/accela: add rotation nonlinearity switch
This only applies to very beginning of gain spline.
Diffstat (limited to 'filter-accela/ftnoir_filter_accela.h')
-rw-r--r--filter-accela/ftnoir_filter_accela.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/filter-accela/ftnoir_filter_accela.h b/filter-accela/ftnoir_filter_accela.h
index 113e06e6..69db54cd 100644
--- a/filter-accela/ftnoir_filter_accela.h
+++ b/filter-accela/ftnoir_filter_accela.h
@@ -18,18 +18,21 @@ using namespace options;
struct settings_accela : opts {
value<int> rot_threshold, trans_threshold, ewma, rot_deadzone, trans_deadzone;
+ value<slider_value> rot_nonlinearity;
static constexpr double mult_rot = 4. / 100.;
static constexpr double mult_trans = 4. / 100.;
static constexpr double mult_rot_dz = 2. / 100.;
static constexpr double mult_trans_dz = 2. / 100.;
static constexpr double mult_ewma = 1.25;
+ static constexpr double max_rot_nl = 1.33;
settings_accela() :
opts("Accela"),
rot_threshold(b, "rotation-threshold", 45),
trans_threshold(b, "translation-threshold", 50),
ewma(b, "ewma", 2),
rot_deadzone(b, "rotation-deadzone", 0),
- trans_deadzone(b, "translation-deadzone", 0)
+ trans_deadzone(b, "translation-deadzone", 0),
+ rot_nonlinearity(b, "rotation-nonlinearity", slider_value(1., .66, 2))
{}
};
@@ -68,6 +71,7 @@ private slots:
void update_trans_display(int value);
void update_rot_dz_display(int value);
void update_trans_dz_display(int value);
+ void update_rot_nl_slider(const slider_value& sl);
};
class FTNoIR_FilterDll : public Metadata