#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"
Go to the source code of this file.
|
#define | writer_w8(wctx_, b_) (wctx_)->writer->writer->writer_w8((wctx_)->writer, b_) |
|
#define | writer_put_str(wctx_, str_) (wctx_)->writer->writer->writer_put_str((wctx_)->writer, str_) |
|
#define | writer_printf(wctx_, fmt_, ...) (wctx_)->writer->writer->writer_printf((wctx_)->writer, fmt_, __VA_ARGS__) |
|
#define | DEFINE_FORMATTER_CLASS(name) |
|
#define | OFFSET(x) offsetof(CompactContext, x) |
|
#define | OFFSET(x) offsetof(CompactContext, x) |
|
|
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) |
|
◆ writer_w8
#define writer_w8 |
( |
|
wctx_, |
|
|
|
b_ |
|
) |
| (wctx_)->writer->writer->writer_w8((wctx_)->writer, b_) |
◆ writer_put_str
#define writer_put_str |
( |
|
wctx_, |
|
|
|
str_ |
|
) |
| (wctx_)->writer->writer->writer_put_str((wctx_)->writer, str_) |
◆ writer_printf
#define writer_printf |
( |
|
wctx_, |
|
|
|
fmt_, |
|
|
|
... |
|
) |
| (wctx_)->writer->writer->writer_printf((wctx_)->writer, fmt_, __VA_ARGS__) |
◆ DEFINE_FORMATTER_CLASS
#define DEFINE_FORMATTER_CLASS |
( |
|
name | ) |
|
Value:static const char *
name##_get_name(
void *
ctx) \
{ \
} \
.item_name =
name##_get_name, \
.option =
name##_options \
}
Definition at line 38 of file tf_compact.c.
◆ 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
◆ csv_options
◆ avtextformatter_csv