dnn: add function type for model

Multimedia / FFmpeg - Guo, Yejun [intel.com] - 18 February 2021 01:59 UTC

So the backend knows the usage of model is for frame processing, detect, classify, etc. Each function type has different behavior in backend when handling the input/output data of the model.

76fc6879e2 dnn: add function type for model
libavfilter/dnn/dnn_backend_native.c | 3 ++-
libavfilter/dnn/dnn_backend_native.h | 2 +-
libavfilter/dnn/dnn_backend_openvino.c | 3 ++-
libavfilter/dnn/dnn_backend_openvino.h | 2 +-
libavfilter/dnn/dnn_backend_tf.c | 5 +++--
libavfilter/dnn/dnn_backend_tf.h | 2 +-
libavfilter/dnn_filter_common.c | 4 ++--
libavfilter/dnn_filter_common.h | 2 +-
libavfilter/dnn_interface.h | 11 ++++++++++-
libavfilter/vf_derain.c | 2 +-
libavfilter/vf_dnn_processing.c | 2 +-
libavfilter/vf_sr.c | 2 +-
12 files changed, 26 insertions(+), 14 deletions(-)

  • Share