aboutsummaryrefslogtreecommitdiffstats
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-12-07 16:45:52 +0100
committerPaul B Mahol <onemda@gmail.com>2016-02-07 12:51:43 +0100
commitf5c3f85eb25cb720fca300841771ce26911f872f (patch)
tree7ab20a13284fae2d4a66b1b3d3dc4e3a05fd3367 /doc/filters.texi
parent9ee4c89348c5b102046acaa86b4ca390efb8bccd (diff)
downloadffmpeg-f5c3f85eb25cb720fca300841771ce26911f872f.tar.gz
avfilter: add swaprect filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi54
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 3751f82e38..6b57c0cd28 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -11473,6 +11473,60 @@ Interpolate) pixel art scaling algorithm.
Useful for enlarging pixel art images without reducing sharpness.
+@section swaprect
+
+Swap two rectangular objects in video.
+
+This filter accepts the following options:
+
+@table @option
+@item w
+Set object width.
+
+@item h
+Set object height.
+
+@item x1
+Set 1st rect x coordinate.
+
+@item y1
+Set 1st rect y coordinate.
+
+@item x2
+Set 2nd rect x coordinate.
+
+@item y2
+Set 2nd rect y coordinate.
+
+All expressions are evaluated once for each frame.
+@end table
+
+The all options are expressions containing the following constants:
+
+@table @option
+@item w
+@item h
+The input width and height.
+
+@item a
+same as @var{w} / @var{h}
+
+@item sar
+input sample aspect ratio
+
+@item dar
+input display aspect ratio, it is the same as (@var{w} / @var{h}) * @var{sar}
+
+@item n
+The number of the input frame, starting from 0.
+
+@item t
+The timestamp expressed in seconds. It's NAN if the input timestamp is unknown.
+
+@item pos
+the position in the file of the input frame, NAN if unknown
+@end table
+
@section swapuv
Swap U & V plane.