> -----Original Message-----
> From: ffmpeg-devel <[email protected]> On Behalf Of Mingyu
> Yin
> Sent: 2020年8月21日 21:22
> To: [email protected]
> Subject: [FFmpeg-devel] [PATCH V4 1/2] dnn_backend_native_layer_mathbinary:
> change to function pointer
>
> Signed-off-by: Mingyu Yin <[email protected]>
> ---
> .../dnn/dnn_backend_native_layer_mathbinary.c | 140 +++++++++---------
> 1 file changed, 73 insertions(+), 67 deletions(-)
>
> diff --git a/libavfilter/dnn/dnn_backend_native_layer_mathbinary.c
> b/libavfilter/dnn/dnn_backend_native_layer_mathbinary.c
> index dd42c329a9..4373f82543 100644
> --- a/libavfilter/dnn/dnn_backend_native_layer_mathbinary.c
> +++ b/libavfilter/dnn/dnn_backend_native_layer_mathbinary.c
> @@ -27,6 +27,74 @@
> #include "libavutil/avassert.h"
> #include "dnn_backend_native_layer_mathbinary.h"
>
> +typedef float (*FunType)(const float src0, float src1);
const is not needed.
> +FunType pfun;
> +
there's build warning for the following unused variable with this patch.
see in function dnn_execute_layer_math_binary:
int dims_count;
const float *src;
float *dst;
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".