History

lavfi/dnn: modify dnn interface for removing native backend

Native backend will be removed in following commits, so change the dnn interface and modify the error message in it first.

Ting Fu committed 3 years ago

Commit 7ed6f281 parent 4e57a0f1 file · +1 −9Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/dnn/dnn_interface.c+1−9
@@ -24,7 +24,6 @@ · 23 unmodified lines
2424 */
2525
2626 #include "../dnn_interface.h"
27−#include "dnn_backend_native.h"
2827 #include "dnn_backend_tf.h"
2928 #include "dnn_backend_openvino.h"
3029 #include "libavutil/mem.h"
@@ -39,13 +38,6 @@ DNNModule *ff_get_dnn_module(DNNBackendType backend_type) · 8 unmodified lines
3938 }
4039
4140 switch(backend_type){
42− case DNN_NATIVE:
43− dnn_module->load_model = &ff_dnn_load_model_native;
44− dnn_module->execute_model = &ff_dnn_execute_model_native;
45− dnn_module->get_result = &ff_dnn_get_result_native;
46− dnn_module->flush = &ff_dnn_flush_native;
47− dnn_module->free_model = &ff_dnn_free_model_native;
48− break;
4941 case DNN_TF:
5042 #if (CONFIG_LIBTENSORFLOW == 1)
5143 dnn_module->load_model = &ff_dnn_load_model_tf;
@@ -71,7 +63,7 @@ DNNModule *ff_get_dnn_module(DNNBackendType backend_type) · 19 unmodified lines
7163 #endif
7264 break;
7365 default:
74− av_log(NULL, AV_LOG_ERROR, "Module backend_type is not native or tensorflow\n");
66+ av_log(NULL, AV_LOG_ERROR, "Module backend_type is not supported or enabled.\n");
7567 av_freep(&dnn_module);
7668 return NULL;
7769 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t