From 8a02a8031ef4f98faf5647f0e01a8922247bf748 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 17 Jan 2016 15:02:17 +0100 Subject: lavfi: add an NVIDIA NPP-based scaling filter --- doc/filters.texi | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'doc') diff --git a/doc/filters.texi b/doc/filters.texi index 722c8b03b6..23e4286da8 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -2181,6 +2181,44 @@ scale="trunc(3/2*iw/hsub)*hsub:trunc(3/2*ih/vsub)*vsub" scale=w='min(500\, iw*3/2):h=-1' @end example +@section scale_npp + +Use the NVIDIA Performance Primitives (libnpp) to perform scaling and/or pixel +format conversion on CUDA video frames. Setting the output width and height +works in the same way as for the @var{scale} filter. + +The following additional options are accepted: +@table @option +@item format +The pixel format of the output CUDA frames. If set to the string "same" (the +default), the input format will be kept. Note that automatic format negotiation +and conversion is not yet supported for hardware frames + +@item interp_algo +The interpolation algorithm used for resizing. One of the following: +@table @option +@item nn +Nearest neighbour. + +@item linear +@item cubic +@item cubic2p_bspline +2-parameter cubic (B=1, C=0) + +@item cubic2p_catmullrom +2-parameter cubic (B=0, C=1/2) + +@item cubic2p_b05c03 +2-parameter cubic (B=1/2, C=3/10) + +@item super +Supersampling + +@item lanczos +@end table + +@end table + @section select Select frames to pass in output. -- cgit v1.2.3