summaryrefslogtreecommitdiff
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-28 13:16:40 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-28 13:16:40 +0000
commite40032e23af272ae1b9a6b2cb4f1d944622ce108 (patch)
treef4c4c9f28ab47ec5bfd3393f3f29a7555cfe571e /doc/filters.texi
parent4dece8c7f8255fb3c4ad9fb7fd25a8ba7692fd27 (diff)
Add the drawbox filter from the soc libavfilter repo.
Pedagogically useful. Originally committed as revision 25244 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 5ebaf99f4c..e4c1851a05 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -190,6 +190,38 @@ crop=in_w-100:in_h-100:100:100
"crop=in_w/2:in_h/2:y:10+10*sin(n/10)"
@end example
+@section drawbox
+
+Draw a colored box on the input image.
+
+It accepts the syntax:
+@example
+drawbox=@var{x}:@var{y}:@var{width}:@var{height}:@var{color}
+@end example
+
+@table @option
+
+@item x, y
+Specify the top left corner coordinates of the box. Default to 0.
+
+@item width, height
+Specify the width and height of the box, if 0 they are interpreted as
+the input width and height. Default to 0.
+
+@item color
+Specify the color of the box to write, it can be the name of a color
+(case insensitive match) or a 0xRRGGBB[AA] sequence.
+@end table
+
+Follow some examples:
+@example
+# draw a black box around the edge of the input image
+drawbox
+
+# draw a box with color red and an opacity of 50%
+drawbox=10:20:200:60:red@@0.5"
+@end example
+
@section fifo
Buffer input images and send them when they are requested.