diff options
author | Andrey Utkin <andrey.krieger.utkin@gmail.com> | 2013-05-13 21:48:44 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-13 21:34:15 +0200 |
commit | 47a628bfb3067ea1bec8c5bd3be3f3ef5fa3db44 (patch) | |
tree | d5c452f1ae447f9f7f0d8607e2f7891712d0eb06 /doc/filters.texi | |
parent | 3967f68053979cbd17f499b8d50e3ea859dd23aa (diff) | |
download | ffmpeg-47a628bfb3067ea1bec8c5bd3be3f3ef5fa3db44.tar.gz |
avfilter: Add 'drawgrid' video filter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index dade8f905a..dbd97f5741 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -2870,6 +2870,45 @@ drawbox=x=10:y=10:w=100:h=100:color=pink@@0.5:t=max @end example @end itemize +@section drawgrid + +Draw a grid on the input image. + +This filter accepts the following options: + +@table @option +@item x +@item y +Specify the coordinates of some point of grid intersection (meant to configure offset). Both default to 0. + +@item width, w +@item height, h +Specify the width and height of the grid cell, if 0 they are interpreted as the +input width and height, respectively, minus @code{thickness}, so image gets +framed. Default to 0. + +@item color, c +Specify the color of the grid, it can be the name of a color +(case insensitive match) or a 0xRRGGBB[AA] sequence. If the special +value @code{invert} is used, the grid color is the same as the +video with inverted luma. +Note that you can append opacity value (in range of 0.0 - 1.0) +to color name after @@ sign. + +@item thickness, t +Set the thickness of the grid line. Default value is @code{1}. +@end table + +@subsection Examples + +@itemize +@item +Draw a grid with cell 100x100 pixels, thickness 2 pixels, with color red and an opacity of 50%: +@example +drawgrid=width=100:height=100:thickness=2:color=red@@0.5 +@end example +@end itemize + @anchor{drawtext} @section drawtext |