diff options
author | Guo, Yejun <yejun.guo@intel.com> | 2020-08-07 14:32:55 +0800 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2020-08-12 15:43:40 +0800 |
commit | 0a51abe8ab71c03eff66200265142fc910bcbfe2 (patch) | |
tree | 2f3e24f02a5f54f6ebd95950774f5adf7587229f /libavfilter/vf_derain.c | |
parent | 4ed6bca4ae578e050d60aa96dbbdefd60f6d67c4 (diff) |
dnn: add backend options when load the model
different backend might need different options for a better performance,
so, add the parameter into dnn interface, as a preparation.
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Diffstat (limited to 'libavfilter/vf_derain.c')
-rw-r--r-- | libavfilter/vf_derain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_derain.c b/libavfilter/vf_derain.c index 74322602b0..e175bf4287 100644 --- a/libavfilter/vf_derain.c +++ b/libavfilter/vf_derain.c @@ -161,7 +161,7 @@ static av_cold int init(AVFilterContext *ctx) return AVERROR(EINVAL); } - dr_context->model = (dr_context->dnn_module->load_model)(dr_context->model_filename); + dr_context->model = (dr_context->dnn_module->load_model)(dr_context->model_filename, NULL); if (!dr_context->model) { av_log(ctx, AV_LOG_ERROR, "could not load DNN model\n"); return AVERROR(EINVAL); |