Native backend will be removed in following commits, so change the dnn interface and modify the error message in it first.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -24,7 +24,6 @@ · 23 unmodified lines | ||
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | #include "../dnn_interface.h" |
| 27 | −#include "dnn_backend_native.h" | |
| 28 | 27 | #include "dnn_backend_tf.h" |
| 29 | 28 | #include "dnn_backend_openvino.h" |
| 30 | 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 | 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 | 41 | case DNN_TF: |
| 50 | 42 | #if (CONFIG_LIBTENSORFLOW == 1) |
| 51 | 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 | 63 | #endif |
| 72 | 64 | break; |
| 73 | 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 | 67 | av_freep(&dnn_module); |
| 76 | 68 | return NULL; |
| 77 | 69 | } |