diff options
author | Guo, Yejun <yejun.guo@intel.com> | 2020-02-21 14:20:48 +0800 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2020-03-12 18:22:39 +0800 |
commit | bd50453894182af095c7d7578596e6ff6c58f852 (patch) | |
tree | 819d644c740561fd3d855b6d1f51c60a6fd2efcf /doc | |
parent | d86a8c056b4a4e607d93cd91cbdc421bf55a022b (diff) | |
download | ffmpeg-bd50453894182af095c7d7578596e6ff6c58f852.tar.gz |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index f988ea4c80..554eaff163 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -9196,6 +9196,8 @@ Set the output name of the dnn network. @end table +@subsection Examples + @itemize @item Halve the red channle of the frame with format rgb24: @@ -9209,6 +9211,12 @@ Halve the pixel value of the frame with format gray32f: ffmpeg -i input.jpg -vf format=grayf32,dnn_processing=model=halve_gray_float.model:input=dnn_in:output=dnn_out:dnn_backend=native -y out.native.png @end example +@item +Handle the Y channel with srcnn.pb (see @ref{sr} filter) for frame with yuv420p (planar YUV formats supported): +@example +./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 +@end example + @end itemize @section drawbox @@ -17311,6 +17319,7 @@ Set quality level. The value @code{max} can be used to set the maximum level, currently @code{6}. @end table +@anchor{sr} @section sr Scale the input by applying one of the super-resolution methods based on |