aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorTing Fu <ting.fu-at-intel.com@ffmpeg.org>2023-04-27 17:43:44 +0800
committerGuo Yejun <yejun.guo@intel.com>2023-04-28 11:07:40 +0800
commit7ed6f28a7cee1344f8ae61737cbb8364dec8cb24 (patch)
treefc13efd6c2e8545ef71601faf40327fef21b9d02 /libavfilter
parent4e57a0f35a56a4524648530ae6fd9c7f7770d8ca (diff)
downloadffmpeg-7ed6f28a7cee1344f8ae61737cbb8364dec8cb24.tar.gz
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. Signed-off-by: Ting Fu <ting.fu@intel.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/dnn/dnn_interface.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libavfilter/dnn/dnn_interface.c b/libavfilter/dnn/dnn_interface.c
index 554a36b0dc..5b1695a1dd 100644
--- a/libavfilter/dnn/dnn_interface.c
+++ b/libavfilter/dnn/dnn_interface.c
@@ -24,7 +24,6 @@
*/
#include "../dnn_interface.h"
-#include "dnn_backend_native.h"
#include "dnn_backend_tf.h"
#include "dnn_backend_openvino.h"
#include "libavutil/mem.h"
@@ -39,13 +38,6 @@ DNNModule *ff_get_dnn_module(DNNBackendType backend_type)
}
switch(backend_type){
- case DNN_NATIVE:
- dnn_module->load_model = &ff_dnn_load_model_native;
- dnn_module->execute_model = &ff_dnn_execute_model_native;
- dnn_module->get_result = &ff_dnn_get_result_native;
- dnn_module->flush = &ff_dnn_flush_native;
- dnn_module->free_model = &ff_dnn_free_model_native;
- break;
case DNN_TF:
#if (CONFIG_LIBTENSORFLOW == 1)
dnn_module->load_model = &ff_dnn_load_model_tf;
@@ -71,7 +63,7 @@ DNNModule *ff_get_dnn_module(DNNBackendType backend_type)
#endif
break;
default:
- av_log(NULL, AV_LOG_ERROR, "Module backend_type is not native or tensorflow\n");
+ av_log(NULL, AV_LOG_ERROR, "Module backend_type is not supported or enabled.\n");
av_freep(&dnn_module);
return NULL;
}