FFmpeg
Data Fields
DrawTextContext Struct Reference

Data Fields

const AVClassclass
 
int exp_mode
 expansion mode to use for the text More...
 
int reinit
 tells if the filter is being reinited More...
 
uint8_tfontfile
 font to be used More...
 
uint8_ttext
 text to be drawn More...
 
AVBPrint expanded_text
 used to contain the expanded text More...
 
uint8_tfontcolor_expr
 fontcolor expression to evaluate More...
 
AVBPrint expanded_fontcolor
 used to contain the expanded fontcolor spec 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
 x position to start drawing text More...
 
int y
 y position to start drawing text More...
 
int max_glyph_w
 max glyph width More...
 
int max_glyph_h
 max glyph height More...
 
int shadowx
 
int shadowy
 
int borderw
 border width More...
 
char * fontsize_expr
 expression for fontsize More...
 
AVExprfontsize_pexpr
 parsed expressions for fontsize More...
 
unsigned int fontsize
 font size to use More...
 
unsigned int default_fontsize
 default font size to use More...
 
int line_spacing
 lines spacing in pixels More...
 
short int draw_box
 draw box around text - true or false More...
 
int boxborderw
 box border width 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...
 
FFDrawContext dc
 
FFDrawColor fontcolor
 foreground color More...
 
FFDrawColor shadowcolor
 shadow color More...
 
FFDrawColor bordercolor
 border color More...
 
FFDrawColor boxcolor
 background color More...
 
FT_Library library
 freetype font library handle More...
 
FT_Face face
 freetype font face handle More...
 
FT_Stroker stroker
 freetype stroker handle More...
 
struct AVTreeNodeglyphs
 rendered glyphs, stored using the UTF-32 char code More...
 
char * x_expr
 expression for x position More...
 
char * y_expr
 expression for y position More...
 
AVExprx_pexpr
 
AVExpry_pexpr
 parsed expressions for x and y More...
 
int64_t basetime
 base pts time in the real world for display More...
 
double var_values [VAR_VARS_NB]
 
char * a_expr
 
AVExpra_pexpr
 
int alpha
 
AVLFG prng
 random More...
 
char * tc_opt_string
 specified timecode option string More...
 
AVRational tc_rate
 frame rate for timecode More...
 
AVTimecode tc
 timecode context More...
 
int tc24hmax
 1 if timecode is wrapped to 24 hours, 0 otherwise More...
 
int reload
 reload text file for each frame More...
 
int start_number
 starting frame number for n/frame_num var More...
 
AVDictionarymetadata
 

Detailed Description

Definition at line 143 of file vf_drawtext.c.

Field Documentation

◆ class

const AVClass* DrawTextContext::class

Definition at line 144 of file vf_drawtext.c.

◆ exp_mode

int DrawTextContext::exp_mode

expansion mode to use for the text

Definition at line 145 of file vf_drawtext.c.

◆ reinit

int DrawTextContext::reinit

tells if the filter is being reinited

Definition at line 146 of file vf_drawtext.c.

◆ fontfile

uint8_t* DrawTextContext::fontfile

font to be used

Definition at line 150 of file vf_drawtext.c.

◆ text

uint8_t* DrawTextContext::text

text to be drawn

Definition at line 151 of file vf_drawtext.c.

◆ expanded_text

AVBPrint DrawTextContext::expanded_text

used to contain the expanded text

Definition at line 152 of file vf_drawtext.c.

◆ fontcolor_expr

uint8_t* DrawTextContext::fontcolor_expr

fontcolor expression to evaluate

Definition at line 153 of file vf_drawtext.c.

◆ expanded_fontcolor

AVBPrint DrawTextContext::expanded_fontcolor

used to contain the expanded fontcolor spec

Definition at line 154 of file vf_drawtext.c.

◆ ft_load_flags

int DrawTextContext::ft_load_flags

flags used for loading fonts, see FT_LOAD_*

Definition at line 155 of file vf_drawtext.c.

◆ positions

FT_Vector* DrawTextContext::positions

positions for each element in the text

Definition at line 156 of file vf_drawtext.c.

◆ nb_positions

size_t DrawTextContext::nb_positions

number of elements of positions array

Definition at line 157 of file vf_drawtext.c.

◆ textfile

char* DrawTextContext::textfile

file with text to be drawn

Definition at line 158 of file vf_drawtext.c.

◆ x

int DrawTextContext::x

x position to start drawing text

Definition at line 159 of file vf_drawtext.c.

◆ y

int DrawTextContext::y

y position to start drawing text

Definition at line 160 of file vf_drawtext.c.

◆ max_glyph_w

int DrawTextContext::max_glyph_w

max glyph width

Definition at line 161 of file vf_drawtext.c.

◆ max_glyph_h

int DrawTextContext::max_glyph_h

max glyph height

Definition at line 162 of file vf_drawtext.c.

◆ shadowx

int DrawTextContext::shadowx

Definition at line 163 of file vf_drawtext.c.

◆ shadowy

int DrawTextContext::shadowy

Definition at line 163 of file vf_drawtext.c.

◆ borderw

int DrawTextContext::borderw

border width

Definition at line 164 of file vf_drawtext.c.

◆ fontsize_expr

char* DrawTextContext::fontsize_expr

expression for fontsize

Definition at line 165 of file vf_drawtext.c.

◆ fontsize_pexpr

AVExpr* DrawTextContext::fontsize_pexpr

parsed expressions for fontsize

Definition at line 166 of file vf_drawtext.c.

◆ fontsize

unsigned int DrawTextContext::fontsize

font size to use

Definition at line 167 of file vf_drawtext.c.

◆ default_fontsize

unsigned int DrawTextContext::default_fontsize

default font size to use

Definition at line 168 of file vf_drawtext.c.

◆ line_spacing

int DrawTextContext::line_spacing

lines spacing in pixels

Definition at line 170 of file vf_drawtext.c.

◆ draw_box

short int DrawTextContext::draw_box

draw box around text - true or false

Definition at line 171 of file vf_drawtext.c.

◆ boxborderw

int DrawTextContext::boxborderw

box border width

Definition at line 172 of file vf_drawtext.c.

◆ use_kerning

int DrawTextContext::use_kerning

font kerning is used - true/false

Definition at line 173 of file vf_drawtext.c.

◆ tabsize

int DrawTextContext::tabsize

tab size

Definition at line 174 of file vf_drawtext.c.

◆ fix_bounds

int DrawTextContext::fix_bounds

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

Definition at line 175 of file vf_drawtext.c.

◆ dc

FFDrawContext DrawTextContext::dc

Definition at line 177 of file vf_drawtext.c.

◆ fontcolor

FFDrawColor DrawTextContext::fontcolor

foreground color

Definition at line 178 of file vf_drawtext.c.

◆ shadowcolor

FFDrawColor DrawTextContext::shadowcolor

shadow color

Definition at line 179 of file vf_drawtext.c.

◆ bordercolor

FFDrawColor DrawTextContext::bordercolor

border color

Definition at line 180 of file vf_drawtext.c.

◆ boxcolor

FFDrawColor DrawTextContext::boxcolor

background color

Definition at line 181 of file vf_drawtext.c.

◆ library

FT_Library DrawTextContext::library

freetype font library handle

Definition at line 183 of file vf_drawtext.c.

◆ face

FT_Face DrawTextContext::face

freetype font face handle

Definition at line 184 of file vf_drawtext.c.

◆ stroker

FT_Stroker DrawTextContext::stroker

freetype stroker handle

Definition at line 185 of file vf_drawtext.c.

◆ glyphs

struct AVTreeNode* DrawTextContext::glyphs

rendered glyphs, stored using the UTF-32 char code

Definition at line 186 of file vf_drawtext.c.

◆ x_expr

char* DrawTextContext::x_expr

expression for x position

Definition at line 187 of file vf_drawtext.c.

◆ y_expr

char* DrawTextContext::y_expr

expression for y position

Definition at line 188 of file vf_drawtext.c.

◆ x_pexpr

AVExpr* DrawTextContext::x_pexpr

Definition at line 189 of file vf_drawtext.c.

◆ y_pexpr

AVExpr * DrawTextContext::y_pexpr

parsed expressions for x and y

Definition at line 189 of file vf_drawtext.c.

◆ basetime

int64_t DrawTextContext::basetime

base pts time in the real world for display

Definition at line 190 of file vf_drawtext.c.

◆ var_values

double DrawTextContext::var_values[VAR_VARS_NB]

Definition at line 191 of file vf_drawtext.c.

◆ a_expr

char* DrawTextContext::a_expr

Definition at line 192 of file vf_drawtext.c.

◆ a_pexpr

AVExpr* DrawTextContext::a_pexpr

Definition at line 193 of file vf_drawtext.c.

◆ alpha

int DrawTextContext::alpha

Definition at line 194 of file vf_drawtext.c.

◆ prng

AVLFG DrawTextContext::prng

random

Definition at line 195 of file vf_drawtext.c.

◆ tc_opt_string

char* DrawTextContext::tc_opt_string

specified timecode option string

Definition at line 196 of file vf_drawtext.c.

◆ tc_rate

AVRational DrawTextContext::tc_rate

frame rate for timecode

Definition at line 197 of file vf_drawtext.c.

◆ tc

AVTimecode DrawTextContext::tc

timecode context

Definition at line 198 of file vf_drawtext.c.

◆ tc24hmax

int DrawTextContext::tc24hmax

1 if timecode is wrapped to 24 hours, 0 otherwise

Definition at line 199 of file vf_drawtext.c.

◆ reload

int DrawTextContext::reload

reload text file for each frame

Definition at line 200 of file vf_drawtext.c.

◆ start_number

int DrawTextContext::start_number

starting frame number for n/frame_num var

Definition at line 201 of file vf_drawtext.c.

◆ metadata

AVDictionary* DrawTextContext::metadata

Definition at line 205 of file vf_drawtext.c.


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