[FFmpeg-devel] [PATCH 8/8] libavfilter: Remove DNNReturnType from DNN Module
Guo, Yejun
yejun.guo at intel.com
Wed Mar 2 13:18:48 EET 2022
> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> Shubhanshu Saxena
> Sent: Thursday, February 24, 2022 4:23 PM
> To: ffmpeg-devel at ffmpeg.org
> Cc: Shubhanshu Saxena <shubhanshu.e01 at gmail.com>
> Subject: [FFmpeg-devel] [PATCH 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(-)
>
LGTM, will push soon, thanks.
More information about the ffmpeg-devel
mailing list