Before, drawtext filter deliberately altered given text coordinates if
text didn't fully fit on the picture. This breaks the use case of
scrolling large text, e.g. movie closing credits.
Add 'fix_bounds', to make it usable in such cases (by setting its value to 0).
Default behavior is not changed, and non-fitting text coords are fixed.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
{"draw","if false do not draw",OFFSET(d_expr),AV_OPT_TYPE_STRING,{.str="1"},CHAR_MIN,CHAR_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"},