Skip to content

Commit 938a087

Browse files
committed
Add back mt and opt for compatibility
1 parent c9ec0f8 commit 938a087

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/f3kdb.hpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ struct F3KDB final : Filter {
4848
Param {"random_algo_grain", Integer},
4949
Param {"random_param_ref", Float},
5050
Param {"random_param_grain", Float},
51-
Param {"preset", String}
51+
Param {"preset", String},
52+
Param {"mt", Boolean},
53+
Param {"opt", Integer}
5254
};
5355
}
5456
void Initialize(InDelegator* in, DSVideoInfo in_vi, FetchFrameFunctor* fetch_frame) override
@@ -97,10 +99,13 @@ struct F3KDB final : Filter {
9799
in->Read("random_param_ref", ep.random_param_ref);
98100
in->Read("random_param_grain", ep.random_param_grain);
99101

102+
int opt_in = -1;
103+
in->Read("opt", opt_in);
104+
100105
OPTIMIZATION_MODE opt = IMPL_C;
101106
int CPUFlags = GetCPUFlags();
102107

103-
if (CPUFlags & CPUF_SSE4_1)
108+
if ((CPUFlags & CPUF_SSE4_1) && (opt_in > 0 || opt_in < 0))
104109
opt = IMPL_SSE4;
105110

106111
#define INVALID_PARAM_IF(cond) \

0 commit comments

Comments
 (0)