[FFmpeg-devel] [PATCH v4 00/11] Refactor DNN

Zhao Zhili quinkblack at foxmail.com
Tue May 7 19:08:07 EEST 2024


From: Zhao Zhili <zhilizhao at tencent.com>

v4:
1. Move [patch v3 9/10] to [patch v4 2/11], since patch 3 depends on it.
2. Don't show backends which are not supported by a filter (patch 3).

v3:
1. Init class with ff_dnn_filter_init_child_class and called by AVFilter preinit.
2. Fix crash in vf_dnn_detect (patch 10/10).

Zhao Zhili (11):
  avfilter/dnn: Refactor DNN parameter configuration system
  avfilter/dnn: Use dnn_backend_info_list to search for dnn module
  avfilter/dnn: Don't show backends which are not supported by a filter
  avfilter/dnn_backend_openvino: Fix free context at random place
  avfilter/dnn_backend_openvino: simplify memory allocation
  avfilter/dnn_backend_tf: Remove one level of indentation
  avfilter/dnn_backend_tf: Fix free context at random place
  avfilter/dnn_backend_tf: Simplify memory allocation
  avfilter/dnn_backend_torch: Simplify memory allocation
  avfilter/dnn: Remove a level of dereference
  avfilter/vf_dnn_detect: Fix null pointer dereference

 libavfilter/dnn/dnn_backend_common.h   |  13 +-
 libavfilter/dnn/dnn_backend_openvino.c | 210 ++++++++++---------------
 libavfilter/dnn/dnn_backend_tf.c       | 194 ++++++++++-------------
 libavfilter/dnn/dnn_backend_torch.cpp  | 112 +++++--------
 libavfilter/dnn/dnn_interface.c        | 120 +++++++++++---
 libavfilter/dnn_filter_common.c        |  44 +++++-
 libavfilter/dnn_filter_common.h        |  40 ++---
 libavfilter/dnn_interface.h            |  80 ++++++++--
 libavfilter/vf_derain.c                |   6 +-
 libavfilter/vf_dnn_classify.c          |   4 +-
 libavfilter/vf_dnn_detect.c            |  14 +-
 libavfilter/vf_dnn_processing.c        |   4 +-
 libavfilter/vf_sr.c                    |   6 +-
 13 files changed, 470 insertions(+), 377 deletions(-)

-- 
2.34.1



More information about the ffmpeg-devel mailing list