FFmpeg
Loading...
Searching...
No Matches
textutils.h File Reference

text utilities More...

#include "libavutil/bprint.h"
#include "libavutil/eval.h"
#include "libavutil/log.h"
#include "libavutil/parseutils.h"

Go to the source code of this file.

Data Structures

struct  FFExpandTextFunction
 Function used to expand a template sequence in the format %{FUNCTION_NAME[:PARAMS]}, defined in the TextExpander object. More...
 
struct  FFExpandTextContext
 Text expander context, used to encapsulate the logic to expand a given text template. More...
 

Functions

int ff_expand_text (FFExpandTextContext *expand_text, const char *text, AVBPrint *bp)
 Expand text template.
 

Detailed Description

text utilities

Definition in file textutils.h.

Function Documentation

◆ ff_expand_text()

int ff_expand_text ( FFExpandTextContext * expand_text,
const char * text,
AVBPrint * bp )

Expand text template.

Expand text template defined in text using the logic defined in a text expander object.

Parameters
expand_texttext expansion context used to expand the text
texttemplate text to expand
bpBPrint object where the expanded text is written to
Returns
negative value corresponding to an AVERROR error code in case of errors, a non-negative value otherwise

Definition at line 124 of file textutils.c.

Referenced by draw_qrcode(), and draw_text().