Data Structures | Functions
textutils.h File Reference
#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
 in a text template, followed by any character, always expands to the second character. More...


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

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.

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

Definition at line 123 of file textutils.c.

Referenced by draw_qrcode(), and draw_text().