[FFmpeg-devel] [PATCH] lavfi/drawtext: remove reference to unused option fix_bounds

Stefano Sabatini stefasab at gmail.com
Tue Feb 7 17:43:55 CET 2012


---
 doc/filters.texi          |    3 ---
 libavfilter/vf_drawtext.c |    3 ---
 2 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index 938a5e1..135e114 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -1256,9 +1256,6 @@ libfreetype flags.
 @item tabsize
 The size in number of spaces to use for rendering the tab.
 Default value is 4.
-
- at item fix_bounds
-If true, check and fix text coords to avoid clipping.
 @end table
 
 The parameters for @var{x} and @var{y} are expressions containing the
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 7c21680..be29ea8 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -139,7 +139,6 @@ typedef struct {
     short int draw_box;             ///< draw box around text - true or false
     int use_kerning;                ///< font kerning is used - true/false
     int tabsize;                    ///< tab size
-    int fix_bounds;                 ///< do we let it go out of frame bounds - t/f
 
     FT_Library library;             ///< freetype font library handle
     FT_Face face;                   ///< freetype font face handle
@@ -185,8 +184,6 @@ static const AVOption drawtext_options[]= {
 {"timecode", "set initial timecode", OFFSET(tc_opt_string),      AV_OPT_TYPE_STRING, {.str=NULL},  CHAR_MIN, CHAR_MAX },
 {"r",        "set rate (timecode only)", OFFSET(tc_rate),        AV_OPT_TYPE_RATIONAL, {.dbl=0},          0,  INT_MAX },
 {"rate",     "set rate (timecode only)", OFFSET(tc_rate),        AV_OPT_TYPE_RATIONAL, {.dbl=0},          0,  INT_MAX },
-{"fix_bounds", "if true, check and fix text coords to avoid clipping",
-                                     OFFSET(fix_bounds),         AV_OPT_TYPE_INT,    {.dbl=1},     0,        1        },
 
 /* FT_LOAD_* flags */
 {"ft_load_flags", "set font loading flags for libfreetype",   OFFSET(ft_load_flags),  AV_OPT_TYPE_FLAGS,  {.dbl=FT_LOAD_DEFAULT|FT_LOAD_RENDER}, 0, INT_MAX, 0, "ft_load_flags" },
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list