summaryrefslogtreecommitdiff
path: root/libavfilter/dnn_interface.h
diff options
context:
space:
mode:
authorShubhanshu Saxena <shubhanshu.e01@gmail.com>2022-03-02 23:35:50 +0530
committerGuo Yejun <yejun.guo@intel.com>2022-03-12 15:10:28 +0800
commitb602f11a0671273dcf08607c37197a41c437463e (patch)
treee956d6ca6872642bb83a3f1a2ea3b9cfdb6ee04a /libavfilter/dnn_interface.h
parente5ce6a60708fb9cd2ec46f6302c3bc943e330f16 (diff)
lavfi/dnn: Error Specificity in Native Backend Layers
This commit returns specific error codes from the execution functions in the Native Backend layers instead of DNN_ERROR. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
Diffstat (limited to 'libavfilter/dnn_interface.h')
-rw-r--r--libavfilter/dnn_interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/dnn_interface.h b/libavfilter/dnn_interface.h
index 37e89d9789..24e0b66661 100644
--- a/libavfilter/dnn_interface.h
+++ b/libavfilter/dnn_interface.h
@@ -30,6 +30,8 @@
#include "libavutil/frame.h"
#include "avfilter.h"
+#define DNN_GENERIC_ERROR FFERRTAG('D','N','N','!')
+
typedef enum {DNN_SUCCESS, DNN_ERROR} DNNReturnType;
typedef enum {DNN_NATIVE, DNN_TF, DNN_OV} DNNBackendType;