]> git.sesse.net Git - ffmpeg/commit
avfilter/vf_dnn_processing.c: add planar yuv format support
authorGuo, Yejun <yejun.guo@intel.com>
Fri, 21 Feb 2020 06:20:48 +0000 (14:20 +0800)
committerGuo, Yejun <yejun.guo@intel.com>
Thu, 12 Mar 2020 10:22:39 +0000 (18:22 +0800)
commitbd50453894182af095c7d7578596e6ff6c58f852
tree819d644c740561fd3d855b6d1f51c60a6fd2efcf
parentd86a8c056b4a4e607d93cd91cbdc421bf55a022b
avfilter/vf_dnn_processing.c: add planar yuv format support

Only the Y channel is handled by dnn, the UV channels are copied
without changes.

The command to use srcnn.pb (see vf_sr) looks like:
./ffmpeg -i 480p.jpg -vf format=yuv420p,scale=w=iw*2:h=ih*2,dnn_processing=dnn_backend=tensorflow:model=srcnn.pb:input=x:output=y -y srcnn.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