|
FFmpeg
|
drawtext filter, based on the original vhook/drawtext.c filter by Gustavo Sverzut Barbieri More...
#include "config.h"#include <sys/types.h>#include <sys/stat.h>#include <time.h>#include <fenv.h>#include "libavutil/avstring.h"#include "libavutil/bprint.h"#include "libavutil/common.h"#include "libavutil/eval.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/random_seed.h"#include "libavutil/parseutils.h"#include "libavutil/timecode.h"#include "libavutil/time_internal.h"#include "libavutil/tree.h"#include "libavutil/lfg.h"#include "libavutil/detection_bbox.h"#include "avfilter.h"#include "drawutils.h"#include "filters.h"#include "formats.h"#include "textutils.h"#include "video.h"#include <ft2build.h>#include <FT_FREETYPE_H>#include <FT_GLYPH_H>#include <FT_STROKER_H>#include <hb.h>#include <hb-ft.h>#include <FT_ERRORS_H>Go to the source code of this file.
Data Structures | |
| struct | HarfbuzzData |
| struct | GlyphInfo |
| Information about a single glyph in a text line. More... | |
| struct | TextLine |
| Information about a single line of text. More... | |
| struct | Glyph |
| A glyph as loaded and rendered using libfreetype. More... | |
| struct | TextMetrics |
| Global text metrics. More... | |
| struct | DrawTextContext |
| struct | ft_error |
Macros | |
| #define | POS_CEIL(x, y) |
| #define | OFFSET(x) |
| #define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
| #define | TFLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
| #define | FT_ERROR_START_LIST { |
| #define | FT_ERRORDEF(e, v, s) |
| #define | FT_ERROR_END_LIST { 0, NULL } }; |
| #define | FT_ERRMSG(e) |
Typedefs | |
| typedef double(* | eval_func2) (void *, double a, double b) |
Enumerations | |
| enum | var_name { VAR_DAR , VAR_HSUB , VAR_VSUB , VAR_LINE_H , VAR_LH , VAR_MAIN_H , VAR_h , VAR_H , VAR_MAIN_W , VAR_w , VAR_W , VAR_MAX_GLYPH_A , VAR_ASCENT , VAR_MAX_GLYPH_D , VAR_DESCENT , VAR_MAX_GLYPH_H , VAR_MAX_GLYPH_W , VAR_FONT_A , VAR_FONT_D , VAR_TOP_A , VAR_BOTTOM_D , VAR_N , VAR_SAR , VAR_T , VAR_TEXT_H , VAR_TH , VAR_TEXT_W , VAR_TW , VAR_X , VAR_Y , VAR_PICT_TYPE , VAR_DURATION , VAR_VARS_NB } |
| enum | expansion_mode { EXP_NONE , EXP_NORMAL , EXP_STRFTIME } |
| enum | y_alignment { YA_TEXT , YA_BASELINE , YA_FONT } |
| enum | text_alignment { TA_LEFT = (1 << 0) , TA_RIGHT = (1 << 1) , TA_TOP = (1 << 2) , TA_BOTTOM = (1 << 3) } |
Variables | |
| static const char *const | var_names [] |
| static const char *const | fun2_names [] |
| static const eval_func2 | fun2 [] |
| static const AVOption | drawtext_options [] |
| static const struct ft_error | ft_errors [] |
| static const AVFilterPad | avfilter_vf_drawtext_inputs [] |
| const FFFilter | ff_vf_drawtext |
drawtext filter, based on the original vhook/drawtext.c filter by Gustavo Sverzut Barbieri
Definition in file vf_drawtext.c.
| #define POS_CEIL | ( | x, | |
| y ) |
Definition at line 81 of file vf_drawtext.c.
Referenced by draw_glyphs(), draw_text(), and measure_text().
| #define OFFSET | ( | x | ) |
Definition at line 320 of file vf_drawtext.c.
| #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 321 of file vf_drawtext.c.
Definition at line 322 of file vf_drawtext.c.
| #define FT_ERROR_START_LIST { |
Definition at line 410 of file vf_drawtext.c.
| #define FT_ERRORDEF | ( | e, | |
| v, | |||
| s ) |
Definition at line 411 of file vf_drawtext.c.
| #define FT_ERROR_END_LIST { 0, NULL } }; |
Definition at line 412 of file vf_drawtext.c.
| #define FT_ERRMSG | ( | e | ) |
Definition at line 118 of file vf_drawtext.c.
| enum var_name |
Definition at line 125 of file vf_drawtext.c.
| enum expansion_mode |
| Enumerator | |
|---|---|
| EXP_NONE | |
| EXP_NORMAL | |
| EXP_STRFTIME | |
Definition at line 151 of file vf_drawtext.c.
| enum y_alignment |
| Enumerator | |
|---|---|
| YA_TEXT | |
| YA_BASELINE | |
| YA_FONT | |
Definition at line 157 of file vf_drawtext.c.
| enum text_alignment |
| Enumerator | |
|---|---|
| TA_LEFT | |
| TA_RIGHT | |
| TA_TOP | |
| TA_BOTTOM | |
Definition at line 163 of file vf_drawtext.c.
Definition at line 113 of file vf_drawtext.c.
| AVFILTER_DEFINE_CLASS | ( | drawtext | ) |
|
static |
Definition at line 969 of file vf_drawtext.c.
|
static |
Definition at line 1082 of file vf_drawtext.c.
|
static |
Definition at line 1090 of file vf_drawtext.c.
Referenced by command().
|
static |
Definition at line 1107 of file vf_drawtext.c.
Referenced by uninit().
|
static |
Definition at line 1126 of file vf_drawtext.c.
Referenced by command().
|
static |
Definition at line 1149 of file vf_drawtext.c.
Referenced by command().
|
static |
Definition at line 1196 of file vf_drawtext.c.
Referenced by avfilter_graph_queue_command(), cdg_decode_frame(), check_keyboard_interaction(), decode_subframe_lpc(), fg_send_command(), ftp_abort(), ftp_current_dir(), ftp_delete(), ftp_file_size(), ftp_list_mlsd(), ftp_list_nlst(), ftp_move(), ftp_passive_mode(), ftp_passive_mode_epsv(), ftp_restart(), ftp_retrieve(), ftp_send_command(), ftp_set_dir(), ftp_store(), ftp_type(), idcin_read_packet(), read_connect(), send_command(), and send_invoke_response().
|
static |
Definition at line 1259 of file vf_drawtext.c.
Referenced by draw_text().
|
static |
Definition at line 1266 of file vf_drawtext.c.
Referenced by draw_text().
|
static |
Definition at line 1281 of file vf_drawtext.c.
Referenced by draw_text().
|
static |
Definition at line 1371 of file vf_drawtext.c.
Referenced by measure_text().
|
static |
Definition at line 1416 of file vf_drawtext.c.
Referenced by draw_text(), and measure_text().
|
static |
Definition at line 1426 of file vf_drawtext.c.
Referenced by draw_text().
|
static |
Definition at line 1598 of file vf_drawtext.c.
Referenced by filter_frame().
|
static |
Definition at line 1879 of file vf_drawtext.c.
|
static |
Definition at line 83 of file vf_drawtext.c.
|
static |
Definition at line 109 of file vf_drawtext.c.
|
static |
Definition at line 120 of file vf_drawtext.c.
|
static |
Definition at line 324 of file vf_drawtext.c.
|
static |
|
static |
Definition at line 1946 of file vf_drawtext.c.
| const FFFilter ff_vf_drawtext |
Definition at line 1956 of file vf_drawtext.c.