Data Fields | |
const AVClass * | class |
uint8_t * | fontfile |
font to be used | |
uint8_t * | text |
text to be drawn | |
uint8_t * | expanded_text |
used to contain the strftime()-expanded text | |
size_t | expanded_text_size |
size in bytes of the expanded_text buffer | |
int | ft_load_flags |
flags used for loading fonts, see FT_LOAD_* | |
FT_Vector * | positions |
positions for each element in the text | |
size_t | nb_positions |
number of elements of positions array | |
char * | textfile |
file with text to be drawn | |
int | x |
int | y |
position to start drawing text | |
int | w |
int | h |
dimension of the text block | |
int | shadowx |
int | shadowy |
unsigned int | fontsize |
font size to use | |
char * | fontcolor_string |
font color as string | |
char * | boxcolor_string |
box color as string | |
char * | shadowcolor_string |
shadow color as string | |
uint8_t | fontcolor [4] |
foreground color | |
uint8_t | boxcolor [4] |
background color | |
uint8_t | shadowcolor [4] |
shadow color | |
uint8_t | fontcolor_rgba [4] |
foreground color in RGBA | |
uint8_t | boxcolor_rgba [4] |
background color in RGBA | |
uint8_t | shadowcolor_rgba [4] |
shadow color in RGBA | |
short int | draw_box |
draw box around text - true or false | |
int | use_kerning |
font kerning is used - true/false | |
int | tabsize |
tab size | |
FT_Library | library |
freetype font library handle | |
FT_Face | face |
freetype font face handle | |
struct AVTreeNode * | glyphs |
rendered glyphs, stored using the UTF-32 char code | |
int | hsub |
int | vsub |
chroma subsampling values | |
int | is_packed_rgb |
int | pixel_step [4] |
distance in bytes between the component of each pixel | |
uint8_t | rgba_map [4] |
map RGBA offsets to the positions in the packed RGBA format | |
uint8_t * | box_line [4] |
line used for filling the box background | |
char * | x_expr |
char * | y_expr |
AVExpr * | x_pexpr |
AVExpr * | y_pexpr |
parsed expressions for x and y | |
double | var_values [VAR_VARS_NB] |
char * | d_expr |
AVExpr * | d_pexpr |
int | draw |
set to zero to prevent drawing | |
AVLFG | prng |
random |
Definition at line 97 of file vf_drawtext.c.
uint8_t* DrawTextContext::box_line[4] |
line used for filling the box background
Definition at line 132 of file vf_drawtext.c.
Referenced by config_input(), draw_text(), and uninit().
uint8_t DrawTextContext::boxcolor[4] |
background color
Definition at line 115 of file vf_drawtext.c.
Referenced by config_input(), and draw_text().
uint8_t DrawTextContext::boxcolor_rgba[4] |
background color in RGBA
Definition at line 118 of file vf_drawtext.c.
Referenced by config_input(), and init().
char* DrawTextContext::boxcolor_string |
box color as string
Definition at line 112 of file vf_drawtext.c.
const AVClass* DrawTextContext::class |
Definition at line 98 of file vf_drawtext.c.
Referenced by init().
char* DrawTextContext::d_expr |
Definition at line 136 of file vf_drawtext.c.
Referenced by config_input().
AVExpr* DrawTextContext::d_pexpr |
Definition at line 137 of file vf_drawtext.c.
Referenced by config_input(), and start_frame().
int DrawTextContext::draw |
set to zero to prevent drawing
Definition at line 138 of file vf_drawtext.c.
Referenced by config_input(), end_frame(), and start_frame().
short int DrawTextContext::draw_box |
draw box around text - true or false
Definition at line 121 of file vf_drawtext.c.
Referenced by draw_text().
uint8_t* DrawTextContext::expanded_text |
used to contain the strftime()-expanded text
Definition at line 101 of file vf_drawtext.c.
Referenced by draw_glyphs(), dtext_prepare_text(), and uninit().
size_t DrawTextContext::expanded_text_size |
size in bytes of the expanded_text buffer
Definition at line 102 of file vf_drawtext.c.
Referenced by dtext_prepare_text().
FT_Face DrawTextContext::face |
freetype font face handle
Definition at line 126 of file vf_drawtext.c.
Referenced by dtext_prepare_text(), init(), load_glyph(), and uninit().
uint8_t DrawTextContext::fontcolor[4] |
foreground color
Definition at line 114 of file vf_drawtext.c.
Referenced by config_input(), and draw_text().
uint8_t DrawTextContext::fontcolor_rgba[4] |
foreground color in RGBA
Definition at line 117 of file vf_drawtext.c.
Referenced by config_input(), draw_text(), and init().
char* DrawTextContext::fontcolor_string |
font color as string
Definition at line 111 of file vf_drawtext.c.
uint8_t* DrawTextContext::fontfile |
unsigned int DrawTextContext::fontsize |
int DrawTextContext::ft_load_flags |
flags used for loading fonts, see FT_LOAD_*
Definition at line 103 of file vf_drawtext.c.
Referenced by load_glyph().
struct AVTreeNode* DrawTextContext::glyphs |
rendered glyphs, stored using the UTF-32 char code
Definition at line 127 of file vf_drawtext.c.
Referenced by draw_glyphs(), dtext_prepare_text(), load_glyph(), and uninit().
int DrawTextContext::h |
dimension of the text block
Definition at line 108 of file vf_drawtext.c.
Referenced by draw_text(), dtext_prepare_text(), and start_frame().
int DrawTextContext::hsub |
Definition at line 128 of file vf_drawtext.c.
Referenced by config_input(), draw_glyphs(), draw_text(), and start_frame().
int DrawTextContext::is_packed_rgb |
Definition at line 129 of file vf_drawtext.c.
Referenced by config_input(), draw_glyphs(), and draw_text().
FT_Library DrawTextContext::library |
freetype font library handle
Definition at line 125 of file vf_drawtext.c.
size_t DrawTextContext::nb_positions |
number of elements of positions array
Definition at line 105 of file vf_drawtext.c.
Referenced by dtext_prepare_text().
int DrawTextContext::pixel_step[4] |
distance in bytes between the component of each pixel
Definition at line 130 of file vf_drawtext.c.
Referenced by config_input(), draw_glyphs(), draw_text(), and uninit().
FT_Vector* DrawTextContext::positions |
positions for each element in the text
Definition at line 104 of file vf_drawtext.c.
Referenced by draw_glyphs(), dtext_prepare_text(), and uninit().
AVLFG DrawTextContext::prng |
random
Definition at line 139 of file vf_drawtext.c.
Referenced by config_input(), and start_frame().
uint8_t DrawTextContext::rgba_map[4] |
map RGBA offsets to the positions in the packed RGBA format
Definition at line 131 of file vf_drawtext.c.
Referenced by config_input(), draw_glyphs(), and draw_text().
uint8_t DrawTextContext::shadowcolor[4] |
shadow color
Definition at line 116 of file vf_drawtext.c.
Referenced by config_input(), and draw_text().
uint8_t DrawTextContext::shadowcolor_rgba[4] |
shadow color in RGBA
Definition at line 119 of file vf_drawtext.c.
Referenced by config_input(), draw_text(), and init().
char* DrawTextContext::shadowcolor_string |
shadow color as string
Definition at line 113 of file vf_drawtext.c.
int DrawTextContext::shadowx |
Definition at line 109 of file vf_drawtext.c.
Referenced by draw_text().
int DrawTextContext::shadowy |
Definition at line 109 of file vf_drawtext.c.
Referenced by draw_text().
int DrawTextContext::tabsize |
tab size
Definition at line 123 of file vf_drawtext.c.
Referenced by dtext_prepare_text(), and init().
uint8_t* DrawTextContext::text |
text to be drawn
Definition at line 100 of file vf_drawtext.c.
Referenced by draw_glyphs(), dtext_prepare_text(), init(), and uninit().
char* DrawTextContext::textfile |
int DrawTextContext::use_kerning |
font kerning is used - true/false
Definition at line 122 of file vf_drawtext.c.
Referenced by dtext_prepare_text(), and init().
double DrawTextContext::var_values[VAR_VARS_NB] |
Definition at line 135 of file vf_drawtext.c.
Referenced by config_input(), end_frame(), and start_frame().
int DrawTextContext::vsub |
chroma subsampling values
Definition at line 128 of file vf_drawtext.c.
Referenced by config_input(), draw_glyphs(), draw_text(), and start_frame().
int DrawTextContext::w |
Definition at line 108 of file vf_drawtext.c.
Referenced by draw_text(), dtext_prepare_text(), and start_frame().
int DrawTextContext::x |
Definition at line 107 of file vf_drawtext.c.
Referenced by draw_text(), dtext_prepare_text(), and start_frame().
char* DrawTextContext::x_expr |
Definition at line 133 of file vf_drawtext.c.
Referenced by config_input().
AVExpr* DrawTextContext::x_pexpr |
Definition at line 134 of file vf_drawtext.c.
Referenced by config_input(), and start_frame().
int DrawTextContext::y |
position to start drawing text
Definition at line 107 of file vf_drawtext.c.
Referenced by draw_text(), and start_frame().
char * DrawTextContext::y_expr |
Definition at line 133 of file vf_drawtext.c.
Referenced by config_input().
AVExpr * DrawTextContext::y_pexpr |
parsed expressions for x and y
Definition at line 134 of file vf_drawtext.c.
Referenced by config_input(), and start_frame().