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
24 */24 */
25 25
26#include "../dnn_interface.h"26#include "../dnn_interface.h"
27#include "dnn_backend_native.h"
28#include "dnn_backend_tf.h"27#include "dnn_backend_tf.h"
29#include "dnn_backend_openvino.h"28#include "dnn_backend_openvino.h"
30#include "libavutil/mem.h"29#include "libavutil/mem.h"
@@ -39,13 +38,6 @@ DNNModule *ff_get_dnn_module(DNNBackendType backend_type) · 8 unmodified lines
39 }38 }
40 39
41 switch(backend_type){40 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;
49 case DNN_TF:41 case DNN_TF:
50 #if (CONFIG_LIBTENSORFLOW == 1)42 #if (CONFIG_LIBTENSORFLOW == 1)
51 dnn_module->load_model = &ff_dnn_load_model_tf;43 dnn_module->load_model = &ff_dnn_load_model_tf;
@@ -71,7 +63,7 @@ DNNModule *ff_get_dnn_module(DNNBackendType backend_type) · 19 unmodified lines
71 #endif63 #endif
72 break;64 break;
73 default:65 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");
75 av_freep(&dnn_module);67 av_freep(&dnn_module);
76 return NULL;68 return NULL;
77 }69 }

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