[FFmpeg-devel] [PATCH V2 8/8] libavfilter: Remove DNNReturnType from DNN Module

Guo, Yejun yejun.guo at intel.com
Tue Mar 8 16:18:52 EET 2022



-----Original Message-----
From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Shubhanshu Saxena
Sent: 2022年3月3日 2:06
To: ffmpeg-devel at ffmpeg.org
Cc: Shubhanshu Saxena <shubhanshu.e01 at gmail.com>
Subject: [FFmpeg-devel] [PATCH V2 8/8] libavfilter: Remove DNNReturnType from DNN Module

This patch removes all occurences of DNNReturnType from the DNN module.
This commit replaces DNN_SUCCESS by 0 (essentially the same), so the functions with DNNReturnType now return 0 in case of success, the negative values otherwise.

Signed-off-by: Shubhanshu Saxena <shubhanshu.e01 at gmail.com>
---
 libavfilter/dnn/dnn_backend_common.c          | 10 ++--
 libavfilter/dnn/dnn_backend_common.h          |  8 +--
 libavfilter/dnn/dnn_backend_native.c          | 16 +++---
 .../dnn/dnn_backend_native_layer_avgpool.c    |  2 +-
 .../dnn/dnn_backend_native_layer_conv2d.c     |  4 +-
 .../dnn/dnn_backend_native_layer_dense.c      |  2 +-
 .../dnn_backend_native_layer_depth2space.c    |  2 +-
 libavfilter/dnn/dnn_backend_openvino.c        | 48 ++++++++--------
 libavfilter/dnn/dnn_backend_tf.c              | 56 +++++++++----------
 libavfilter/dnn/dnn_io_proc.c                 | 14 ++---
 libavfilter/dnn_interface.h                   |  2 -
 libavfilter/vf_derain.c                       |  2 +-
 libavfilter/vf_dnn_classify.c                 |  4 +-
 libavfilter/vf_dnn_detect.c                   |  4 +-
 libavfilter/vf_dnn_processing.c               |  8 +--
 libavfilter/vf_sr.c                           |  4 +-
 16 files changed, 92 insertions(+), 94 deletions(-)

Thanks, LGTM, will push soon.


More information about the ffmpeg-devel mailing list