#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(XMLContext, x) |
|
#define | CHECK_COMPLIANCE(opt, opt_name) |
|
#define | XML_INDENT() writer_printf(wctx, "%*c", xml->indent_level * 4, ' ') |
|
◆ 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 36 of file tf_xml.c.
◆ OFFSET
◆ CHECK_COMPLIANCE
#define CHECK_COMPLIANCE |
( |
|
opt, |
|
|
|
opt_name |
|
) |
| |
Value: if (opt) { \
"XSD-compliant output selected but option '%s' was selected, XML output may be non-compliant.\n" \
"You need to disable such option with '-no%s'\n", opt_name, opt_name); \
}
◆ XML_INDENT
#define XML_INDENT |
( |
| ) |
writer_printf(wctx, "%*c", xml->indent_level * 4, ' ') |
◆ DEFINE_FORMATTER_CLASS()
DEFINE_FORMATTER_CLASS |
( |
xml |
| ) |
|
◆ xml_init()
◆ xml_print_section_header()
◆ xml_print_section_footer()
◆ xml_print_value()
◆ xml_print_str()
◆ xml_print_int()
◆ xml_options
Initial value:= {
{
"fully_qualified",
"specify if the output should be fully qualified",
OFFSET(fully_qualified),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
{
"q",
"specify if the output should be fully qualified",
OFFSET(fully_qualified),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
{
"xsd_strict",
"ensure that the output is XSD compliant",
OFFSET(xsd_strict),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
}
Definition at line 60 of file tf_xml.c.
◆ avtextformatter_xml