libavfilter/dnn_native: Add multiple padding methods in dnn native
authorXuewei Meng <xwmeng96@gmail.com>
Sat, 18 May 2019 07:19:18 +0000 (15:19 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Tue, 21 May 2019 04:53:58 +0000 (12:53 +0800)
commite45e6005ce6adbb91bf0a0a7194a8575650f0e31
tree5942e8499b6b9000268a961f5a0e610b0897692d
parent154a730bdcae92deca21168f54df91babc6a2d88
libavfilter/dnn_native: Add multiple padding methods in dnn native

Add another two padding methods "VALID" and "SAME" as tensorflow,
and keep the existing "SAME_CLAMP_TO_EDGE" method suggested by sr filter.
As "SAME_CLAMP_TO_EDGE"can keep the output with the same size as original input,
and gives a slight better result as mentioned by sr filter.

Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Xuewei Meng <xwmeng96@gmail.com>
Signed-off-by: Steven Liu <lq@onvideo.cn>
libavfilter/dnn_backend_native.c
libavfilter/dnn_backend_native.h