drawtext filter, based on the original vhook/drawtext.c filter by Gustavo Sverzut Barbieri
More...
Macros |
#define | OFFSET(x) offsetof(DrawTextContext, x) |
#define | FT_ERROR_START_LIST { |
#define | FT_ERRORDEF(e, v, s) { (e), (s) }, |
#define | FT_ERROR_END_LIST { 0, NULL } }; |
#define | FT_ERRMSG(e) ft_errors[e].err_msg |
#define | GET_BITMAP_VAL(r, c) |
#define | SET_PIXEL_YUV(picref, yuva_color, val, x, y, hsub, vsub) |
#define | SET_PIXEL_RGB(picref, rgba_color, val, x, y, pixel_step, r_off, g_off, b_off, a_off) |
Enumerations |
enum | var_name {
VAR_W,
VAR_H,
VAR_CW,
VAR_CH,
VAR_HSUB,
VAR_VSUB,
VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_IN_W,
VAR_IW,
VAR_IN_H,
VAR_IH,
VAR_OUT_W,
VAR_OW,
VAR_OUT_H,
VAR_OH,
VAR_X,
VAR_Y,
VAR_N,
VAR_POS,
VAR_T,
VAR_VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_MAIN_W,
VAR_MW,
VAR_MAIN_H,
VAR_MH,
VAR_TEXT_W,
VAR_TW,
VAR_TEXT_H,
VAR_TH,
VAR_X,
VAR_Y,
VAR_N,
VAR_T,
VAR_VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_W,
VAR_H,
VAR_VAL,
VAR_MAXVAL,
VAR_MINVAL,
VAR_NEGVAL,
VAR_CLIPVAL,
VAR_VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_MAIN_W,
VAR_MW,
VAR_MAIN_H,
VAR_MH,
VAR_OVERLAY_W,
VAR_OW,
VAR_OVERLAY_H,
VAR_OH,
VAR_VARS_NB,
VAR_PI,
VAR_PHI,
VAR_E,
VAR_IN_W,
VAR_IW,
VAR_IN_H,
VAR_IH,
VAR_OUT_W,
VAR_OW,
VAR_OUT_H,
VAR_OH,
VAR_X,
VAR_Y,
VAR_A,
VAR_HSUB,
VAR_VSUB,
VARS_NB,
VAR_PI,
VAR_PHI,
VAR_E,
VAR_IN_W,
VAR_IW,
VAR_IN_H,
VAR_IH,
VAR_OUT_W,
VAR_OW,
VAR_OUT_H,
VAR_OH,
VAR_A,
VAR_DAR,
VAR_SAR,
VAR_HSUB,
VAR_VSUB,
VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_TB,
VAR_PTS,
VAR_START_PTS,
VAR_PREV_PTS,
VAR_PREV_SELECTED_PTS,
VAR_T,
VAR_START_T,
VAR_PREV_T,
VAR_PREV_SELECTED_T,
VAR_PICT_TYPE,
VAR_PICT_TYPE_I,
VAR_PICT_TYPE_P,
VAR_PICT_TYPE_B,
VAR_PICT_TYPE_S,
VAR_PICT_TYPE_SI,
VAR_PICT_TYPE_SP,
VAR_PICT_TYPE_BI,
VAR_INTERLACE_TYPE,
VAR_INTERLACE_TYPE_P,
VAR_INTERLACE_TYPE_T,
VAR_INTERLACE_TYPE_B,
VAR_N,
VAR_SELECTED_N,
VAR_PREV_SELECTED_N,
VAR_KEY,
VAR_POS,
VAR_VARS_NB,
VAR_E,
VAR_INTERLACED,
VAR_N,
VAR_PHI,
VAR_PI,
VAR_POS,
VAR_PREV_INPTS,
VAR_PREV_OUTPTS,
VAR_PTS,
VAR_STARTPTS,
VAR_TB,
VAR_VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_AVTB,
VAR_INTB,
VAR_VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_AVTB,
VAR_VARS_NB
} |
Functions |
static double | drand (void *opaque, double min, double max) |
static const char * | drawtext_get_name (void *ctx) |
static int | glyph_cmp (void *key, const void *b) |
static int | load_glyph (AVFilterContext *ctx, Glyph **glyph_ptr, uint32_t code) |
| Load glyphs corresponding to the UTF-32 codepoint code.
|
static av_cold int | init (AVFilterContext *ctx, const char *args, void *opaque) |
static int | query_formats (AVFilterContext *ctx) |
static int | glyph_enu_free (void *opaque, void *elem) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | is_newline (uint32_t c) |
static int | dtext_prepare_text (AVFilterContext *ctx) |
static int | config_input (AVFilterLink *inlink) |
static int | draw_glyph_yuv (AVFilterBufferRef *picref, FT_Bitmap *bitmap, unsigned int x, unsigned int y, unsigned int width, unsigned int height, const uint8_t yuva_color[4], int hsub, int vsub) |
static int | draw_glyph_rgb (AVFilterBufferRef *picref, FT_Bitmap *bitmap, unsigned int x, unsigned int y, unsigned int width, unsigned int height, int pixel_step, const uint8_t rgba_color[4], const uint8_t rgba_map[4]) |
static void | drawbox (AVFilterBufferRef *picref, unsigned int x, unsigned int y, unsigned int width, unsigned int height, uint8_t *line[4], int pixel_step[4], uint8_t color[4], int hsub, int vsub, int is_rgba_packed, uint8_t rgba_map[4]) |
static int | draw_glyphs (DrawTextContext *dtext, AVFilterBufferRef *picref, int width, int height, const uint8_t rgbcolor[4], const uint8_t yuvcolor[4], int x, int y) |
static int | draw_text (AVFilterContext *ctx, AVFilterBufferRef *picref, int width, int height) |
static void | null_draw_slice (AVFilterLink *link, int y, int h, int slice_dir) |
static int | normalize_double (int *n, double d) |
static void | start_frame (AVFilterLink *inlink, AVFilterBufferRef *inpicref) |
static void | end_frame (AVFilterLink *inlink) |
drawtext filter, based on the original vhook/drawtext.c filter by Gustavo Sverzut Barbieri
Definition in file vf_drawtext.c.