#include <limits.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "avtextformat.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. More...
|
|
static const char * | csv_escape_str (AVBPrint *dst, const char *src, const char sep, void *log_ctx) |
| Quote fields containing special characters, check RFC4180. More...
|
|
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
◆ avtextformatter_compact
Initial value:= {
.name = "compact",
.priv_class = &compact_class,
}
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.