#include <inttypes.h>
#include <limits.h>
#include <stdarg.h>
#include <string.h>
#include "avtextformat.h"
#include "libavutil/avutil.h"
#include "libavutil/bprint.h"
#include "libavutil/error.h"
#include "libavutil/opt.h"
#include "tf_internal.h"
Go to the source code of this file.
|
| static const char * | c_escape_str (AVBPrint *dst, const char *src, const char sep, void *log_ctx) |
| | Apply C-language-like string escaping.
|
| |
| static const char * | csv_escape_str (AVBPrint *dst, const char *src, const char sep, void *log_ctx) |
| | Quote fields containing special characters, check RFC4180.
|
| |
| static const char * | none_escape_str (AVBPrint *dst, const char *src, const char sep, void *log_ctx) |
| |
| | DEFINE_FORMATTER_CLASS (compact) |
| |
| static av_cold int | compact_init (AVTextFormatContext *wctx) |
| |
| static void | compact_print_section_header (AVTextFormatContext *wctx, const void *data) |
| |
| static void | compact_print_section_footer (AVTextFormatContext *wctx) |
| |
| static void | compact_print_str (AVTextFormatContext *wctx, const char *key, const char *value) |
| |
| static void | compact_print_int (AVTextFormatContext *wctx, const char *key, int64_t value) |
| |
| | DEFINE_FORMATTER_CLASS (csv) |
| |
◆ OFFSET [1/2]
◆ OFFSET [2/2]
◆ c_escape_str()
| static const char * c_escape_str |
( |
AVBPrint * | dst, |
|
|
const char * | src, |
|
|
const char | sep, |
|
|
void * | log_ctx ) |
|
static |
◆ csv_escape_str()
| static const char * csv_escape_str |
( |
AVBPrint * | dst, |
|
|
const char * | src, |
|
|
const char | sep, |
|
|
void * | log_ctx ) |
|
static |
◆ none_escape_str()
| static const char * none_escape_str |
( |
AVBPrint * | dst, |
|
|
const char * | src, |
|
|
const char | sep, |
|
|
void * | log_ctx ) |
|
static |
◆ DEFINE_FORMATTER_CLASS() [1/2]
| DEFINE_FORMATTER_CLASS |
( |
compact | | ) |
|
◆ compact_init()
◆ compact_print_section_header()
◆ compact_print_section_footer()
◆ compact_print_str()
| static void compact_print_str |
( |
AVTextFormatContext * | wctx, |
|
|
const char * | key, |
|
|
const char * | value ) |
|
static |
◆ compact_print_int()
◆ DEFINE_FORMATTER_CLASS() [2/2]
| DEFINE_FORMATTER_CLASS |
( |
csv | | ) |
|
◆ compact_options
Initial value:= {
}
static void print_section(SectionID id, int level)
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
Definition at line 102 of file tf_compact.c.
◆ avtextformatter_compact
Initial value:= {
.name = "compact",
.priv_class = &compact_class,
}
#define AV_TEXTFORMAT_FLAG_SUPPORTS_OPTIONAL_FIELDS
#define flags(name, subs,...)
int(* init)(AVBSFContext *ctx)
static void compact_print_str(AVTextFormatContext *wctx, const char *key, const char *value)
static void compact_print_int(AVTextFormatContext *wctx, const char *key, int64_t value)
static void compact_print_section_header(AVTextFormatContext *wctx, const void *data)
static void compact_print_section_footer(AVTextFormatContext *wctx)
static av_cold int compact_init(AVTextFormatContext *wctx)
Definition at line 239 of file tf_compact.c.
◆ csv_options
◆ avtextformatter_csv
Initial value:= {
.name = "csv",
.priv_class = &csv_class,
}
Definition at line 270 of file tf_compact.c.