]> git.sesse.net Git - ffmpeg/commit
avfilter/vf_dnn_processing.c: add frame size change support for planar yuv format
authorGuo, Yejun <yejun.guo@intel.com>
Fri, 21 Feb 2020 12:40:07 +0000 (20:40 +0800)
committerGuo, Yejun <yejun.guo@intel.com>
Thu, 12 Mar 2020 10:22:51 +0000 (18:22 +0800)
commite35f96685312c70f7c1cfaadeb966bce1976eb1b
tree2c0a10036a2461bf79c566d4c779e59107d9e7d8
parentbd50453894182af095c7d7578596e6ff6c58f852
avfilter/vf_dnn_processing.c: add frame size change support for planar yuv format

The Y channel is handled by dnn, and also resized by dnn. The UV channels
are resized with swscale.

The command to use espcn.pb (see vf_sr) looks like:
./ffmpeg -i 480p.jpg -vf format=yuv420p,dnn_processing=dnn_backend=tensorflow:model=espcn.pb:input=x:output=y -y tmp.espcn.jpg

Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Reviewed-by: Pedro Arthur <bygrandao@gmail.com>
doc/filters.texi
libavfilter/vf_dnn_processing.c