FFmpeg
Macros | Functions
tf_internal.h File Reference
#include "avtextformat.h"

Go to the source code of this file.

Macros

#define DEFINE_FORMATTER_CLASS(name)
 

Functions

static const AVTextFormatSectiontf_get_section (AVTextFormatContext *tfc, int level)
 Safely validate and access a section at a given level. More...
 
static const AVTextFormatSectiontf_get_parent_section (AVTextFormatContext *tfc, int level)
 Safely access the parent section. More...
 
static void writer_w8 (AVTextFormatContext *wctx, int b)
 
static void writer_put_str (AVTextFormatContext *wctx, const char *str)
 
static void writer_printf (AVTextFormatContext *wctx, const char *fmt,...)
 

Detailed Description

Internal utilities for text formatters.

Definition in file tf_internal.h.

Macro Definition Documentation

◆ DEFINE_FORMATTER_CLASS

#define DEFINE_FORMATTER_CLASS (   name)
Value:
static const AVClass name##_class = { \
.class_name = #name, \
.item_name = av_default_item_name, \
.option = name##_options \
}

Definition at line 31 of file tf_internal.h.

Function Documentation

◆ tf_get_section()

static const AVTextFormatSection* tf_get_section ( AVTextFormatContext tfc,
int  level 
)
inlinestatic

◆ tf_get_parent_section()

static const AVTextFormatSection* tf_get_parent_section ( AVTextFormatContext tfc,
int  level 
)
inlinestatic

◆ writer_w8()

static void writer_w8 ( AVTextFormatContext wctx,
int  b 
)
inlinestatic

◆ writer_put_str()

static void writer_put_str ( AVTextFormatContext wctx,
const char *  str 
)
inlinestatic

◆ writer_printf()

static void writer_printf ( AVTextFormatContext wctx,
const char *  fmt,
  ... 
)
inlinestatic
name
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
Definition: writing_filters.txt:88
AVClass
Describe the class of an AVClass context structure.
Definition: log.h:76
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:240