Skip to content

Commit

Permalink
Add back mt and opt for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
msg7086 committed Apr 13, 2020
1 parent c9ec0f8 commit 938a087
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/f3kdb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ struct F3KDB final : Filter {
Param {"random_algo_grain", Integer},
Param {"random_param_ref", Float},
Param {"random_param_grain", Float},
Param {"preset", String}
Param {"preset", String},
Param {"mt", Boolean},
Param {"opt", Integer}
};
}
void Initialize(InDelegator* in, DSVideoInfo in_vi, FetchFrameFunctor* fetch_frame) override
Expand Down Expand Up @@ -97,10 +99,13 @@ struct F3KDB final : Filter {
in->Read("random_param_ref", ep.random_param_ref);
in->Read("random_param_grain", ep.random_param_grain);

int opt_in = -1;
in->Read("opt", opt_in);

OPTIMIZATION_MODE opt = IMPL_C;
int CPUFlags = GetCPUFlags();

if (CPUFlags & CPUF_SSE4_1)
if ((CPUFlags & CPUF_SSE4_1) && (opt_in > 0 || opt_in < 0))
opt = IMPL_SSE4;

#define INVALID_PARAM_IF(cond) \
Expand Down

0 comments on commit 938a087

Please sign in to comment.