FFmpeg
Data Fields
DrawTextContext Struct Reference

Data Fields

const AVClassclass
 
int exp_mode
 expansion mode to use for the text More...
 
FFExpandTextContext expand_text
 expand text in case exp_mode == NORMAL More...
 
int reinit
 tells if the filter is being reinited More...
 
uint8_t * fontfile
 font to be used More...
 
uint8_t * text
 text to be drawn More...
 
AVBPrint expanded_text
 used to contain the expanded text More...
 
uint8_t * fontcolor_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...
 
char * textfile
 file with text to be drawn More...
 
double x
 x position to start drawing text More...
 
double 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...
 
char * boxborderw
 box border width (padding) allowed formats: "all", "vert|oriz", "top|right|bottom|left" More...
 
int bb_top
 the size of the top box border More...
 
int bb_right
 the size of the right box border More...
 
int bb_bottom
 the size of the bottom box border More...
 
int bb_left
 the size of the left box border More...
 
int box_width
 the width of box More...
 
int box_height
 the height of box 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 at specified frame interval More...
 
int start_number
 starting frame number for n/frame_num var More...
 
char * text_source_string
 the string to specify text data source More...
 
enum AVFrameSideDataType text_source
 
AVDictionarymetadata
 
int boxw
 the value of the boxw parameter More...
 
int boxh
 the value of the boxh parameter More...
 
int text_align
 the horizontal and vertical text alignment More...
 
int y_align
 the value of the y_align parameter More...
 
TextLinelines
 computed information about text lines More...
 
int line_count
 the number of text lines More...
 
uint32_t * tab_clusters
 the position of tab characters in the text More...
 
int tab_count
 the number of tab characters More...
 
int blank_advance64
 the size of the space character More...
 
int tab_warning_printed
 ensure the tab warning to be printed only once More...
 

Detailed Description

Definition at line 248 of file vf_drawtext.c.

Field Documentation

◆ class

const AVClass* DrawTextContext::class

Definition at line 249 of file vf_drawtext.c.

◆ exp_mode

int DrawTextContext::exp_mode

expansion mode to use for the text

Definition at line 250 of file vf_drawtext.c.

◆ expand_text

FFExpandTextContext DrawTextContext::expand_text

expand text in case exp_mode == NORMAL

Definition at line 251 of file vf_drawtext.c.

◆ reinit

int DrawTextContext::reinit

tells if the filter is being reinited

Definition at line 252 of file vf_drawtext.c.

◆ fontfile

uint8_t* DrawTextContext::fontfile

font to be used

Definition at line 256 of file vf_drawtext.c.

◆ text

uint8_t* DrawTextContext::text

text to be drawn

Definition at line 257 of file vf_drawtext.c.

◆ expanded_text

AVBPrint DrawTextContext::expanded_text

used to contain the expanded text

Definition at line 258 of file vf_drawtext.c.

◆ fontcolor_expr

uint8_t* DrawTextContext::fontcolor_expr

fontcolor expression to evaluate

Definition at line 259 of file vf_drawtext.c.

◆ expanded_fontcolor

AVBPrint DrawTextContext::expanded_fontcolor

used to contain the expanded fontcolor spec

Definition at line 260 of file vf_drawtext.c.

◆ ft_load_flags

int DrawTextContext::ft_load_flags

flags used for loading fonts, see FT_LOAD_*

Definition at line 261 of file vf_drawtext.c.

◆ textfile

char* DrawTextContext::textfile

file with text to be drawn

Definition at line 262 of file vf_drawtext.c.

◆ x

double DrawTextContext::x

x position to start drawing text

Definition at line 263 of file vf_drawtext.c.

◆ y

double DrawTextContext::y

y position to start drawing text

Definition at line 264 of file vf_drawtext.c.

◆ max_glyph_w

int DrawTextContext::max_glyph_w

max glyph width

Definition at line 265 of file vf_drawtext.c.

◆ max_glyph_h

int DrawTextContext::max_glyph_h

max glyph height

Definition at line 266 of file vf_drawtext.c.

◆ shadowx

int DrawTextContext::shadowx

Definition at line 267 of file vf_drawtext.c.

◆ shadowy

int DrawTextContext::shadowy

Definition at line 267 of file vf_drawtext.c.

◆ borderw

int DrawTextContext::borderw

border width

Definition at line 268 of file vf_drawtext.c.

Referenced by command().

◆ fontsize_expr

char* DrawTextContext::fontsize_expr

expression for fontsize

Definition at line 269 of file vf_drawtext.c.

◆ fontsize_pexpr

AVExpr* DrawTextContext::fontsize_pexpr

parsed expressions for fontsize

Definition at line 270 of file vf_drawtext.c.

Referenced by command().

◆ fontsize

unsigned int DrawTextContext::fontsize

font size to use

Definition at line 271 of file vf_drawtext.c.

◆ default_fontsize

unsigned int DrawTextContext::default_fontsize

default font size to use

Definition at line 272 of file vf_drawtext.c.

◆ line_spacing

int DrawTextContext::line_spacing

lines spacing in pixels

Definition at line 274 of file vf_drawtext.c.

◆ draw_box

short int DrawTextContext::draw_box

draw box around text - true or false

Definition at line 275 of file vf_drawtext.c.

◆ boxborderw

char* DrawTextContext::boxborderw

box border width (padding) allowed formats: "all", "vert|oriz", "top|right|bottom|left"

Definition at line 276 of file vf_drawtext.c.

◆ bb_top

int DrawTextContext::bb_top

the size of the top box border

Definition at line 278 of file vf_drawtext.c.

◆ bb_right

int DrawTextContext::bb_right

the size of the right box border

Definition at line 279 of file vf_drawtext.c.

◆ bb_bottom

int DrawTextContext::bb_bottom

the size of the bottom box border

Definition at line 280 of file vf_drawtext.c.

◆ bb_left

int DrawTextContext::bb_left

the size of the left box border

Definition at line 281 of file vf_drawtext.c.

◆ box_width

int DrawTextContext::box_width

the width of box

Definition at line 282 of file vf_drawtext.c.

◆ box_height

int DrawTextContext::box_height

the height of box

Definition at line 283 of file vf_drawtext.c.

◆ tabsize

int DrawTextContext::tabsize

tab size

Definition at line 284 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 285 of file vf_drawtext.c.

◆ dc

FFDrawContext DrawTextContext::dc

Definition at line 287 of file vf_drawtext.c.

◆ fontcolor

FFDrawColor DrawTextContext::fontcolor

foreground color

Definition at line 288 of file vf_drawtext.c.

◆ shadowcolor

FFDrawColor DrawTextContext::shadowcolor

shadow color

Definition at line 289 of file vf_drawtext.c.

◆ bordercolor

FFDrawColor DrawTextContext::bordercolor

border color

Definition at line 290 of file vf_drawtext.c.

◆ boxcolor

FFDrawColor DrawTextContext::boxcolor

background color

Definition at line 291 of file vf_drawtext.c.

◆ library

FT_Library DrawTextContext::library

freetype font library handle

Definition at line 293 of file vf_drawtext.c.

◆ face

FT_Face DrawTextContext::face

freetype font face handle

Definition at line 294 of file vf_drawtext.c.

◆ stroker

FT_Stroker DrawTextContext::stroker

freetype stroker handle

Definition at line 295 of file vf_drawtext.c.

Referenced by command().

◆ glyphs

struct AVTreeNode* DrawTextContext::glyphs

rendered glyphs, stored using the UTF-32 char code

Definition at line 296 of file vf_drawtext.c.

Referenced by command().

◆ x_expr

char* DrawTextContext::x_expr

expression for x position

Definition at line 297 of file vf_drawtext.c.

◆ y_expr

char* DrawTextContext::y_expr

expression for y position

Definition at line 298 of file vf_drawtext.c.

◆ x_pexpr

AVExpr* DrawTextContext::x_pexpr

Definition at line 299 of file vf_drawtext.c.

◆ y_pexpr

AVExpr * DrawTextContext::y_pexpr

parsed expressions for x and y

Definition at line 299 of file vf_drawtext.c.

◆ basetime

int64_t DrawTextContext::basetime

base pts time in the real world for display

Definition at line 300 of file vf_drawtext.c.

◆ var_values

double DrawTextContext::var_values[VAR_VARS_NB]

Definition at line 301 of file vf_drawtext.c.

◆ a_expr

char* DrawTextContext::a_expr

Definition at line 302 of file vf_drawtext.c.

◆ a_pexpr

AVExpr* DrawTextContext::a_pexpr

Definition at line 303 of file vf_drawtext.c.

◆ alpha

int DrawTextContext::alpha

Definition at line 304 of file vf_drawtext.c.

◆ prng

AVLFG DrawTextContext::prng

random

Definition at line 305 of file vf_drawtext.c.

◆ tc_opt_string

char* DrawTextContext::tc_opt_string

specified timecode option string

Definition at line 306 of file vf_drawtext.c.

◆ tc_rate

AVRational DrawTextContext::tc_rate

frame rate for timecode

Definition at line 307 of file vf_drawtext.c.

◆ tc

AVTimecode DrawTextContext::tc

timecode context

Definition at line 308 of file vf_drawtext.c.

◆ tc24hmax

int DrawTextContext::tc24hmax

1 if timecode is wrapped to 24 hours, 0 otherwise

Definition at line 309 of file vf_drawtext.c.

◆ reload

int DrawTextContext::reload

reload text file at specified frame interval

Definition at line 310 of file vf_drawtext.c.

◆ start_number

int DrawTextContext::start_number

starting frame number for n/frame_num var

Definition at line 311 of file vf_drawtext.c.

◆ text_source_string

char* DrawTextContext::text_source_string

the string to specify text data source

Definition at line 312 of file vf_drawtext.c.

◆ text_source

enum AVFrameSideDataType DrawTextContext::text_source

Definition at line 313 of file vf_drawtext.c.

◆ metadata

AVDictionary* DrawTextContext::metadata

Definition at line 317 of file vf_drawtext.c.

◆ boxw

int DrawTextContext::boxw

the value of the boxw parameter

Definition at line 319 of file vf_drawtext.c.

◆ boxh

int DrawTextContext::boxh

the value of the boxh parameter

Definition at line 320 of file vf_drawtext.c.

◆ text_align

int DrawTextContext::text_align

the horizontal and vertical text alignment

Definition at line 321 of file vf_drawtext.c.

◆ y_align

int DrawTextContext::y_align

the value of the y_align parameter

Definition at line 322 of file vf_drawtext.c.

◆ lines

TextLine* DrawTextContext::lines

computed information about text lines

Definition at line 324 of file vf_drawtext.c.

◆ line_count

int DrawTextContext::line_count

the number of text lines

Definition at line 325 of file vf_drawtext.c.

◆ tab_clusters

uint32_t* DrawTextContext::tab_clusters

the position of tab characters in the text

Definition at line 326 of file vf_drawtext.c.

◆ tab_count

int DrawTextContext::tab_count

the number of tab characters

Definition at line 327 of file vf_drawtext.c.

◆ blank_advance64

int DrawTextContext::blank_advance64

the size of the space character

Definition at line 328 of file vf_drawtext.c.

Referenced by command().

◆ tab_warning_printed

int DrawTextContext::tab_warning_printed

ensure the tab warning to be printed only once

Definition at line 329 of file vf_drawtext.c.


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