Commit b3cb9bd4 authored by Gyan Doshi's avatar Gyan Doshi Committed by Michael Niedermayer

avfilter/drawbox: rename variable for maximum thickness

The present value name for maximum thickness is 'max' which results in a
parse error of any thickness expression containing 'max(val1,val2)'.

Value renamed to 'fill'. Tested locally and documented.
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 002db7d4
...@@ -7142,7 +7142,8 @@ value @code{invert} is used, the box edge color is the same as the ...@@ -7142,7 +7142,8 @@ value @code{invert} is used, the box edge color is the same as the
video with inverted luma. video with inverted luma.
@item thickness, t @item thickness, t
The expression which sets the thickness of the box edge. Default value is @code{3}. 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. See below for the list of accepted constants.
@end table @end table
...@@ -7205,7 +7206,7 @@ drawbox=x=10:y=20:w=200:h=60:color=red@@0.5 ...@@ -7205,7 +7206,7 @@ drawbox=x=10:y=20:w=200:h=60:color=red@@0.5
@item @item
Fill the box with pink color: Fill the box with pink color:
@example @example
drawbox=x=10:y=10:w=100:h=100:color=pink@@0.5:t=max drawbox=x=10:y=10:w=100:h=100:color=pink@@0.5:t=fill
@end example @end example
@item @item
......
...@@ -47,7 +47,7 @@ static const char *const var_names[] = { ...@@ -47,7 +47,7 @@ static const char *const var_names[] = {
"h", ///< height of the rendered box "h", ///< height of the rendered box
"w", ///< width of the rendered box "w", ///< width of the rendered box
"t", "t",
"max", "fill",
NULL NULL
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment