You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavfi/drawtext: alphabetically sort the expression parameters
This commit is contained in:
@@ -1363,21 +1363,6 @@ The parameters for @var{x} and @var{y} are expressions containing the
|
|||||||
following constants:
|
following constants:
|
||||||
|
|
||||||
@table @option
|
@table @option
|
||||||
@item W, H
|
|
||||||
the input width and height
|
|
||||||
|
|
||||||
@item tw, text_w
|
|
||||||
the width of the rendered text
|
|
||||||
|
|
||||||
@item th, text_h
|
|
||||||
the height of the rendered text
|
|
||||||
|
|
||||||
@item lh, line_h
|
|
||||||
the height of each text line
|
|
||||||
|
|
||||||
@item sar
|
|
||||||
input sample aspect ratio
|
|
||||||
|
|
||||||
@item dar
|
@item dar
|
||||||
input display aspect ratio, it is the same as (@var{w} / @var{h}) * @var{sar}
|
input display aspect ratio, it is the same as (@var{w} / @var{h}) * @var{sar}
|
||||||
|
|
||||||
@@ -1385,17 +1370,16 @@ input display aspect ratio, it is the same as (@var{w} / @var{h}) * @var{sar}
|
|||||||
horizontal and vertical chroma subsample values. For example for the
|
horizontal and vertical chroma subsample values. For example for the
|
||||||
pixel format "yuv422p" @var{hsub} is 2 and @var{vsub} is 1.
|
pixel format "yuv422p" @var{hsub} is 2 and @var{vsub} is 1.
|
||||||
|
|
||||||
@item max_glyph_w
|
@item line_h, lh
|
||||||
maximum glyph width, that is the maximum width for all the glyphs
|
the height of each text line
|
||||||
contained in the rendered text
|
|
||||||
|
|
||||||
@item max_glyph_h
|
@item main_h, h, H
|
||||||
maximum glyph height, that is the maximum height for all the glyphs
|
the input height
|
||||||
contained in the rendered text, it is equivalent to @var{ascent} -
|
|
||||||
@var{descent}.
|
@item main_w, w, W
|
||||||
|
the input width
|
||||||
|
|
||||||
@item max_glyph_a, ascent
|
@item max_glyph_a, ascent
|
||||||
|
|
||||||
the maximum distance from the baseline to the highest/upper grid
|
the maximum distance from the baseline to the highest/upper grid
|
||||||
coordinate used to place a glyph outline point, for all the rendered
|
coordinate used to place a glyph outline point, for all the rendered
|
||||||
glyphs.
|
glyphs.
|
||||||
@@ -1408,12 +1392,30 @@ used to place a glyph outline point, for all the rendered glyphs.
|
|||||||
This is a negative value, due to the grid's orientation, with the Y axis
|
This is a negative value, due to the grid's orientation, with the Y axis
|
||||||
upwards.
|
upwards.
|
||||||
|
|
||||||
|
@item max_glyph_h
|
||||||
|
maximum glyph height, that is the maximum height for all the glyphs
|
||||||
|
contained in the rendered text, it is equivalent to @var{ascent} -
|
||||||
|
@var{descent}.
|
||||||
|
|
||||||
|
@item max_glyph_w
|
||||||
|
maximum glyph width, that is the maximum width for all the glyphs
|
||||||
|
contained in the rendered text
|
||||||
|
|
||||||
@item n
|
@item n
|
||||||
the number of input frame, starting from 0
|
the number of input frame, starting from 0
|
||||||
|
|
||||||
|
@item sar
|
||||||
|
input sample aspect ratio
|
||||||
|
|
||||||
@item t
|
@item t
|
||||||
timestamp expressed in seconds, NAN if the input timestamp is unknown
|
timestamp expressed in seconds, NAN if the input timestamp is unknown
|
||||||
|
|
||||||
|
@item text_h, th
|
||||||
|
the height of the rendered text
|
||||||
|
|
||||||
|
@item text_w, tw
|
||||||
|
the width of the rendered text
|
||||||
|
|
||||||
@item timecode
|
@item timecode
|
||||||
initial timecode representation in "hh:mm:ss[:;.]ff" format. It can be used
|
initial timecode representation in "hh:mm:ss[:;.]ff" format. It can be used
|
||||||
with or without text parameter. @var{rate} option must be specified.
|
with or without text parameter. @var{rate} option must be specified.
|
||||||
|
@@ -53,23 +53,22 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const char *const var_names[] = {
|
static const char *const var_names[] = {
|
||||||
"main_w", "w", "W", ///< width of the input video
|
"dar",
|
||||||
|
"hsub", "vsub",
|
||||||
|
"line_h", "lh", ///< line height, same as max_glyph_h
|
||||||
"main_h", "h", "H", ///< height of the input video
|
"main_h", "h", "H", ///< height of the input video
|
||||||
"tw", "text_w", ///< width of the rendered text
|
"main_w", "w", "W", ///< width of the input video
|
||||||
"th", "text_h", ///< height of the rendered text
|
|
||||||
"max_glyph_w", ///< max glyph width
|
|
||||||
"max_glyph_h", ///< max glyph height
|
|
||||||
"max_glyph_a", "ascent", ///< max glyph ascent
|
"max_glyph_a", "ascent", ///< max glyph ascent
|
||||||
"max_glyph_d", "descent", ///< min glyph descent
|
"max_glyph_d", "descent", ///< min glyph descent
|
||||||
"line_h", "lh", ///< line height, same as max_glyph_h
|
"max_glyph_h", ///< max glyph height
|
||||||
|
"max_glyph_w", ///< max glyph width
|
||||||
|
"n", ///< number of frame
|
||||||
"sar",
|
"sar",
|
||||||
"dar",
|
"t", ///< timestamp expressed in seconds
|
||||||
"hsub",
|
"text_h", "th", ///< height of the rendered text
|
||||||
"vsub",
|
"text_w", "tw", ///< width of the rendered text
|
||||||
"x",
|
"x",
|
||||||
"y",
|
"y",
|
||||||
"n", ///< number of frame
|
|
||||||
"t", ///< timestamp expressed in seconds
|
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -90,23 +89,22 @@ static const eval_func2 fun2[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum var_name {
|
enum var_name {
|
||||||
VAR_MAIN_W, VAR_w, VAR_W,
|
VAR_DAR,
|
||||||
|
VAR_HSUB, VAR_VSUB,
|
||||||
|
VAR_LINE_H, VAR_LH,
|
||||||
VAR_MAIN_H, VAR_h, VAR_H,
|
VAR_MAIN_H, VAR_h, VAR_H,
|
||||||
VAR_TW, VAR_TEXT_W,
|
VAR_MAIN_W, VAR_w, VAR_W,
|
||||||
VAR_TH, VAR_TEXT_H,
|
|
||||||
VAR_MAX_GLYPH_W,
|
|
||||||
VAR_MAX_GLYPH_H,
|
|
||||||
VAR_MAX_GLYPH_A, VAR_ASCENT,
|
VAR_MAX_GLYPH_A, VAR_ASCENT,
|
||||||
VAR_MAX_GLYPH_D, VAR_DESCENT,
|
VAR_MAX_GLYPH_D, VAR_DESCENT,
|
||||||
VAR_LINE_H, VAR_LH,
|
VAR_MAX_GLYPH_H,
|
||||||
|
VAR_MAX_GLYPH_W,
|
||||||
|
VAR_N,
|
||||||
VAR_SAR,
|
VAR_SAR,
|
||||||
VAR_DAR,
|
VAR_T,
|
||||||
VAR_HSUB,
|
VAR_TEXT_H, VAR_TH,
|
||||||
VAR_VSUB,
|
VAR_TEXT_W, VAR_TW,
|
||||||
VAR_X,
|
VAR_X,
|
||||||
VAR_Y,
|
VAR_Y,
|
||||||
VAR_N,
|
|
||||||
VAR_T,
|
|
||||||
VAR_VARS_NB
|
VAR_VARS_NB
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user