Home
last modified time | relevance | path

Searched refs:dnn_module (Results 1 – 4 of 4) sorted by relevance

/third_party/ffmpeg/libavfilter/dnn/
Ddnn_interface.c33 DNNModule *dnn_module; in ff_get_dnn_module() local
35 dnn_module = av_malloc(sizeof(DNNModule)); in ff_get_dnn_module()
36 if(!dnn_module){ in ff_get_dnn_module()
42 dnn_module->load_model = &ff_dnn_load_model_native; in ff_get_dnn_module()
43 dnn_module->execute_model = &ff_dnn_execute_model_native; in ff_get_dnn_module()
44 dnn_module->free_model = &ff_dnn_free_model_native; in ff_get_dnn_module()
48 dnn_module->load_model = &ff_dnn_load_model_tf; in ff_get_dnn_module()
49 dnn_module->execute_model = &ff_dnn_execute_model_tf; in ff_get_dnn_module()
50 dnn_module->free_model = &ff_dnn_free_model_tf; in ff_get_dnn_module()
52 av_freep(&dnn_module); in ff_get_dnn_module()
[all …]
/third_party/ffmpeg/libavfilter/
Dvf_derain.c40 DNNModule *dnn_module; member
121 dnn_result = (dr_context->dnn_module->execute_model)(dr_context->model, &dr_context->output, 1); in filter_frame()
150 dr_context->dnn_module = ff_get_dnn_module(dr_context->backend_type); in init()
151 if (!dr_context->dnn_module) { in init()
159 if (!dr_context->dnn_module->load_model) { in init()
164 dr_context->model = (dr_context->dnn_module->load_model)(dr_context->model_filename); in init()
177 if (dr_context->dnn_module) { in uninit()
178 (dr_context->dnn_module->free_model)(&dr_context->model); in uninit()
179 av_freep(&dr_context->dnn_module); in uninit()
Dvf_sr.c42 DNNModule *dnn_module; member
70 sr_context->dnn_module = ff_get_dnn_module(sr_context->backend_type); in init()
71 if (!sr_context->dnn_module){ in init()
80 if (!sr_context->dnn_module->load_model) { in init()
84 sr_context->model = (sr_context->dnn_module->load_model)(sr_context->model_filename); in init()
133 result = (sr_context->dnn_module->execute_model)(sr_context->model, &sr_context->output, 1); in config_props()
147 result = (sr_context->dnn_module->execute_model)(sr_context->model, &sr_context->output, 1); in config_props()
236 dnn_result = (sr_context->dnn_module->execute_model)(sr_context->model, &sr_context->output, 1); in filter_frame()
254 if (sr_context->dnn_module){ in uninit()
255 (sr_context->dnn_module->free_model)(&sr_context->model); in uninit()
[all …]
Dvf_dnn_processing.c45 DNNModule *dnn_module; member
91 ctx->dnn_module = ff_get_dnn_module(ctx->backend_type); in init()
92 if (!ctx->dnn_module) { in init()
96 if (!ctx->dnn_module->load_model) { in init()
101 ctx->model = (ctx->dnn_module->load_model)(ctx->model_filename); in init()
307 result = (ctx->dnn_module->execute_model)(ctx->model, &ctx->output, 1); in config_output()
454 dnn_result = (ctx->dnn_module->execute_model)(ctx->model, &ctx->output, 1); in filter_frame()
485 if (context->dnn_module) in uninit()
486 (context->dnn_module->free_model)(&context->model); in uninit()
488 av_freep(&context->dnn_module); in uninit()