Libav
Data Fields
DrawTextContext Struct Reference

Data Fields

const AVClassclass
 
uint8_tfontfile
 font to be used More...
 
uint8_ttext
 text to be drawn More...
 
uint8_texpanded_text
 used to contain the strftime()-expanded text More...
 
size_t expanded_text_size
 size in bytes of the expanded_text buffer More...
 
int ft_load_flags
 flags used for loading fonts, see FT_LOAD_* More...
 
FT_Vector * positions
 positions for each element in the text More...
 
size_t nb_positions
 number of elements of positions array More...
 
char * textfile
 file with text to be drawn More...
 
int x
 
int y
 position to start drawing text More...
 
int w
 
int h
 dimension of the text block More...
 
int shadowx
 
int shadowy
 
unsigned int fontsize
 font size to use More...
 
char * fontcolor_string
 font color as string More...
 
char * boxcolor_string
 box color as string More...
 
char * shadowcolor_string
 shadow color as string More...
 
uint8_t fontcolor [4]
 foreground color More...
 
uint8_t boxcolor [4]
 background color More...
 
uint8_t shadowcolor [4]
 shadow color More...
 
uint8_t fontcolor_rgba [4]
 foreground color in RGBA More...
 
uint8_t boxcolor_rgba [4]
 background color in RGBA More...
 
uint8_t shadowcolor_rgba [4]
 shadow color in RGBA More...
 
short int draw_box
 draw box around text - true or false More...
 
int use_kerning
 font kerning is used - true/false More...
 
int tabsize
 tab size More...
 
int fix_bounds
 do we let it go out of frame bounds - t/f More...
 
FT_Library library
 freetype font library handle More...
 
FT_Face face
 freetype font face handle More...
 
struct AVTreeNodeglyphs
 rendered glyphs, stored using the UTF-32 char code More...
 
int hsub
 
int vsub
 chroma subsampling values More...
 
int is_packed_rgb
 
int pixel_step [4]
 distance in bytes between the component of each pixel More...
 
uint8_t rgba_map [4]
 map RGBA offsets to the positions in the packed RGBA format More...
 
uint8_tbox_line [4]
 line used for filling the box background More...
 
char * x_expr
 
char * y_expr
 
AVExprx_pexpr
 
AVExpry_pexpr
 parsed expressions for x and y More...
 
double var_values [VAR_VARS_NB]
 
char * d_expr
 
AVExprd_pexpr
 
int draw
 set to zero to prevent drawing More...
 
AVLFG prng
 random More...
 

Detailed Description

Definition at line 108 of file vf_drawtext.c.

Field Documentation

§ class

const AVClass* DrawTextContext::class

Definition at line 109 of file vf_drawtext.c.

§ fontfile

uint8_t* DrawTextContext::fontfile

font to be used

Definition at line 113 of file vf_drawtext.c.

Referenced by init(), and parse_font().

§ text

uint8_t* DrawTextContext::text

text to be drawn

Definition at line 114 of file vf_drawtext.c.

Referenced by draw_glyphs(), dtext_prepare_text(), and init().

§ expanded_text

uint8_t* DrawTextContext::expanded_text

used to contain the strftime()-expanded text

Definition at line 115 of file vf_drawtext.c.

Referenced by draw_glyphs(), dtext_prepare_text(), and uninit().

§ expanded_text_size

size_t DrawTextContext::expanded_text_size

size in bytes of the expanded_text buffer

Definition at line 116 of file vf_drawtext.c.

Referenced by dtext_prepare_text().

§ ft_load_flags

int DrawTextContext::ft_load_flags

flags used for loading fonts, see FT_LOAD_*

Definition at line 117 of file vf_drawtext.c.

Referenced by load_glyph().

§ positions

FT_Vector* DrawTextContext::positions

positions for each element in the text

Definition at line 118 of file vf_drawtext.c.

Referenced by draw_glyphs(), dtext_prepare_text(), and uninit().

§ nb_positions

size_t DrawTextContext::nb_positions

number of elements of positions array

Definition at line 119 of file vf_drawtext.c.

Referenced by dtext_prepare_text().

§ textfile

char* DrawTextContext::textfile

file with text to be drawn

Definition at line 120 of file vf_drawtext.c.

Referenced by init().

§ x

int DrawTextContext::x

Definition at line 121 of file vf_drawtext.c.

Referenced by draw_text(), dtext_prepare_text(), and filter_frame().

§ y

int DrawTextContext::y

position to start drawing text

Definition at line 121 of file vf_drawtext.c.

Referenced by draw_text(), dtext_prepare_text(), and filter_frame().

§ w

int DrawTextContext::w

Definition at line 122 of file vf_drawtext.c.

Referenced by draw_text(), dtext_prepare_text(), and filter_frame().

§ h

int DrawTextContext::h

dimension of the text block

Definition at line 122 of file vf_drawtext.c.

Referenced by draw_text(), dtext_prepare_text(), and filter_frame().

§ shadowx

int DrawTextContext::shadowx

Definition at line 123 of file vf_drawtext.c.

Referenced by draw_text().

§ shadowy

int DrawTextContext::shadowy

Definition at line 123 of file vf_drawtext.c.

Referenced by draw_text().

§ fontsize

unsigned int DrawTextContext::fontsize

font size to use

Definition at line 124 of file vf_drawtext.c.

Referenced by init(), and parse_font().

§ fontcolor_string

char* DrawTextContext::fontcolor_string

font color as string

Definition at line 125 of file vf_drawtext.c.

Referenced by init().

§ boxcolor_string

char* DrawTextContext::boxcolor_string

box color as string

Definition at line 126 of file vf_drawtext.c.

Referenced by init().

§ shadowcolor_string

char* DrawTextContext::shadowcolor_string

shadow color as string

Definition at line 127 of file vf_drawtext.c.

Referenced by init().

§ fontcolor

uint8_t DrawTextContext::fontcolor[4]

foreground color

Definition at line 128 of file vf_drawtext.c.

Referenced by config_input(), and draw_text().

§ boxcolor

uint8_t DrawTextContext::boxcolor[4]

background color

Definition at line 129 of file vf_drawtext.c.

Referenced by config_input(), and draw_text().

§ shadowcolor

uint8_t DrawTextContext::shadowcolor[4]

shadow color

Definition at line 130 of file vf_drawtext.c.

Referenced by config_input(), and draw_text().

§ fontcolor_rgba

uint8_t DrawTextContext::fontcolor_rgba[4]

foreground color in RGBA

Definition at line 131 of file vf_drawtext.c.

Referenced by config_input(), draw_text(), and init().

§ boxcolor_rgba

uint8_t DrawTextContext::boxcolor_rgba[4]

background color in RGBA

Definition at line 132 of file vf_drawtext.c.

Referenced by config_input(), and init().

§ shadowcolor_rgba

uint8_t DrawTextContext::shadowcolor_rgba[4]

shadow color in RGBA

Definition at line 133 of file vf_drawtext.c.

Referenced by config_input(), draw_text(), and init().

§ draw_box

short int DrawTextContext::draw_box

draw box around text - true or false

Definition at line 135 of file vf_drawtext.c.

Referenced by draw_text().

§ use_kerning

int DrawTextContext::use_kerning

font kerning is used - true/false

Definition at line 136 of file vf_drawtext.c.

Referenced by dtext_prepare_text(), and init().

§ tabsize

int DrawTextContext::tabsize

tab size

Definition at line 137 of file vf_drawtext.c.

Referenced by dtext_prepare_text(), and init().

§ fix_bounds

int DrawTextContext::fix_bounds

do we let it go out of frame bounds - t/f

Definition at line 138 of file vf_drawtext.c.

Referenced by filter_frame().

§ library

FT_Library DrawTextContext::library

freetype font library handle

Definition at line 140 of file vf_drawtext.c.

Referenced by init(), and uninit().

§ face

FT_Face DrawTextContext::face

freetype font face handle

Definition at line 141 of file vf_drawtext.c.

Referenced by dtext_prepare_text(), init(), load_glyph(), and uninit().

§ glyphs

struct AVTreeNode* DrawTextContext::glyphs

rendered glyphs, stored using the UTF-32 char code

Definition at line 142 of file vf_drawtext.c.

Referenced by draw_glyphs(), dtext_prepare_text(), load_glyph(), and uninit().

§ hsub

int DrawTextContext::hsub

Definition at line 143 of file vf_drawtext.c.

Referenced by config_input(), draw_glyphs(), draw_text(), and filter_frame().

§ vsub

int DrawTextContext::vsub

chroma subsampling values

Definition at line 143 of file vf_drawtext.c.

Referenced by config_input(), draw_glyphs(), draw_text(), and filter_frame().

§ is_packed_rgb

int DrawTextContext::is_packed_rgb

Definition at line 144 of file vf_drawtext.c.

Referenced by config_input(), draw_glyphs(), and draw_text().

§ pixel_step

int DrawTextContext::pixel_step[4]

distance in bytes between the component of each pixel

Definition at line 145 of file vf_drawtext.c.

Referenced by config_input(), draw_glyphs(), draw_text(), and uninit().

§ rgba_map

uint8_t DrawTextContext::rgba_map[4]

map RGBA offsets to the positions in the packed RGBA format

Definition at line 146 of file vf_drawtext.c.

Referenced by config_input(), draw_glyphs(), and draw_text().

§ box_line

uint8_t* DrawTextContext::box_line[4]

line used for filling the box background

Definition at line 147 of file vf_drawtext.c.

Referenced by config_input(), draw_text(), and uninit().

§ x_expr

char* DrawTextContext::x_expr

Definition at line 148 of file vf_drawtext.c.

Referenced by config_input().

§ y_expr

char * DrawTextContext::y_expr

Definition at line 148 of file vf_drawtext.c.

Referenced by config_input().

§ x_pexpr

AVExpr* DrawTextContext::x_pexpr

Definition at line 149 of file vf_drawtext.c.

Referenced by config_input(), filter_frame(), and uninit().

§ y_pexpr

AVExpr * DrawTextContext::y_pexpr

parsed expressions for x and y

Definition at line 149 of file vf_drawtext.c.

Referenced by config_input(), filter_frame(), and uninit().

§ var_values

double DrawTextContext::var_values[VAR_VARS_NB]

Definition at line 150 of file vf_drawtext.c.

Referenced by config_input(), dtext_prepare_text(), and filter_frame().

§ d_expr

char* DrawTextContext::d_expr

Definition at line 151 of file vf_drawtext.c.

Referenced by config_input().

§ d_pexpr

AVExpr* DrawTextContext::d_pexpr

Definition at line 152 of file vf_drawtext.c.

Referenced by config_input(), filter_frame(), and uninit().

§ draw

int DrawTextContext::draw

set to zero to prevent drawing

Definition at line 153 of file vf_drawtext.c.

Referenced by config_input(), and filter_frame().

§ prng

AVLFG DrawTextContext::prng

random

Definition at line 154 of file vf_drawtext.c.

Referenced by config_input(), and filter_frame().


The documentation for this struct was generated from the following file: