aboutsummaryrefslogtreecommitdiffstats
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorGyan Doshi <gyandoshi@gmail.com>2017-12-11 22:35:18 +0530
committerLou Logan <lou@lrcd.com>2017-12-14 13:44:45 -0900
commit1c76134fe37ac20695627e3f5ce1f2bbf1245fcc (patch)
tree3db7109fea202a62e3d53231db89ce904070af86 /doc/filters.texi
parent980af9a88cfd743d71fad67e7dd905231ea0a4f7 (diff)
downloadffmpeg-1c76134fe37ac20695627e3f5ce1f2bbf1245fcc.tar.gz
avfilter/drawbox+drawgrid - add option to prevent overwriting of source pixels
If the user-supplied color in drawbox and drawgrid filters is non-opaque, the box & grid painting overwrites the input's pixels (including alpha). Users typically expect the alpha of the specified color to only act as a key for compositing on top of the main input. Added option allows users to select between replacement and composition. Tested and documented.
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index f304bbf949..af0c3be2ec 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -7146,6 +7146,11 @@ The expression which sets the thickness of the box edge.
A value of @code{fill} will create a filled box. Default value is @code{3}.
See below for the list of accepted constants.
+
+@item replace
+Applicable if the input has alpha. With value @code{1}, the pixels of the painted box
+will overwrite the video's color and alpha pixels.
+Default is @code{0}, which composites the box onto the input, leaving the video's alpha intact.
@end table
The parameters for @var{x}, @var{y}, @var{w} and @var{h} and @var{t} are expressions containing the
@@ -7243,6 +7248,11 @@ video with inverted luma.
The expression which sets the thickness of the grid line. Default value is @code{1}.
See below for the list of accepted constants.
+
+@item replace
+Applicable if the input has alpha. With @code{1} the pixels of the painted grid
+will overwrite the video's color and alpha pixels.
+Default is @code{0}, which composites the grid onto the input, leaving the video's alpha intact.
@end table
The parameters for @var{x}, @var{y}, @var{w} and @var{h} and @var{t} are expressions containing the