FFmpeg
Data Fields
AVTextFormatContext Struct Reference

#include <avtextformat.h>

Data Fields

const AVClassclass
 class of the formatter More...
 
const AVTextFormatterformatter
 the AVTextFormatter of which this is an instance More...
 
AVTextWriterContextwriter
 the AVTextWriterContext More...
 
char * name
 name of this formatter instance More...
 
void * priv
 private data for use by the filter More...
 
const AVTextFormatSectionsections
 array containing all sections More...
 
int nb_sections
 number of sections More...
 
int level
 current level, starting from 0 More...
 
unsigned int nb_item [SECTION_MAX_NB_LEVELS]
 number of the item printed in the given section, starting from 0 More...
 
unsigned int nb_item_type [SECTION_MAX_NB_LEVELS][SECTION_MAX_NB_SECTIONS]
 
const AVTextFormatSectionsection [SECTION_MAX_NB_LEVELS]
 section per each level More...
 
AVBPrint section_pbuf [SECTION_MAX_NB_LEVELS]
 generic print buffer dedicated to each section, used by various formatters More...
 
int(* is_key_selected )(struct AVTextFormatContext *tctx, const char *key)
 Callback to discard certain elements based upon the key used. More...
 
int show_optional_fields
 
int show_value_unit
 
int use_value_prefix
 
int use_byte_value_binary_prefix
 
int use_value_sexagesimal_format
 
struct AVHashContexthash
 
int string_validation
 
char * string_validation_replacement
 
unsigned int string_validation_utf8_flags
 

Detailed Description

Definition at line 110 of file avtextformat.h.

Field Documentation

◆ class

const AVClass* AVTextFormatContext::class

class of the formatter

Definition at line 111 of file avtextformat.h.

Referenced by avtext_context_open().

◆ formatter

const AVTextFormatter* AVTextFormatContext::formatter

◆ writer

AVTextWriterContext* AVTextFormatContext::writer

◆ name

char* AVTextFormatContext::name

name of this formatter instance

Definition at line 115 of file avtextformat.h.

◆ priv

void* AVTextFormatContext::priv

◆ sections

const AVTextFormatSection* AVTextFormatContext::sections

array containing all sections

Definition at line 118 of file avtextformat.h.

Referenced by avtext_context_open(), and avtext_print_section_header().

◆ nb_sections

int AVTextFormatContext::nb_sections

number of sections

Definition at line 119 of file avtextformat.h.

Referenced by avtext_context_open(), and avtext_print_section_header().

◆ level

int AVTextFormatContext::level

◆ nb_item

unsigned int AVTextFormatContext::nb_item[SECTION_MAX_NB_LEVELS]

◆ nb_item_type

unsigned int AVTextFormatContext::nb_item_type[SECTION_MAX_NB_LEVELS][SECTION_MAX_NB_SECTIONS]

◆ section

const AVTextFormatSection* AVTextFormatContext::section[SECTION_MAX_NB_LEVELS]

◆ section_pbuf

AVBPrint AVTextFormatContext::section_pbuf[SECTION_MAX_NB_LEVELS]

◆ is_key_selected

int(* AVTextFormatContext::is_key_selected) (struct AVTextFormatContext *tctx, const char *key)

Callback to discard certain elements based upon the key used.

It is called before any element with a key is printed. If this callback is unset, all elements are printed.

Return values
1if the element is supposed to be printed
0if the element is supposed to be discarded

Definition at line 140 of file avtextformat.h.

Referenced by avtext_context_open(), avtext_print_integer(), and avtext_print_string().

◆ show_optional_fields

int AVTextFormatContext::show_optional_fields

◆ show_value_unit

int AVTextFormatContext::show_value_unit

◆ use_value_prefix

int AVTextFormatContext::use_value_prefix

Definition at line 144 of file avtextformat.h.

Referenced by avtext_context_open(), value_string(), and xml_init().

◆ use_byte_value_binary_prefix

int AVTextFormatContext::use_byte_value_binary_prefix

Definition at line 145 of file avtextformat.h.

Referenced by avtext_context_open(), and value_string().

◆ use_value_sexagesimal_format

int AVTextFormatContext::use_value_sexagesimal_format

Definition at line 146 of file avtextformat.h.

Referenced by avtext_context_open(), and value_string().

◆ hash

struct AVHashContext* AVTextFormatContext::hash

◆ string_validation

int AVTextFormatContext::string_validation

Definition at line 150 of file avtextformat.h.

Referenced by validate_string().

◆ string_validation_replacement

char* AVTextFormatContext::string_validation_replacement

Definition at line 151 of file avtextformat.h.

Referenced by avtext_context_open(), and validate_string().

◆ string_validation_utf8_flags

unsigned int AVTextFormatContext::string_validation_utf8_flags

Definition at line 152 of file avtextformat.h.

Referenced by avtext_context_open(), main(), and validate_string().


The documentation for this struct was generated from the following file: