#include <inttypes.h>
#include <stddef.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.
◆ 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); \
}
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Referenced by xml_init().
◆ XML_INDENT
◆ 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 },
}
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
Definition at line 43 of file tf_xml.c.
◆ avtextformatter_xml
Initial value:= {
.name = "xml",
.priv_class = &xml_class,
}
#define AV_TEXTFORMAT_FLAG_SUPPORTS_MIXED_ARRAY_CONTENT
#define flags(name, subs,...)
int(* init)(AVBSFContext *ctx)
static void xml_print_str(AVTextFormatContext *wctx, const char *key, const char *value)
static void xml_print_section_header(AVTextFormatContext *wctx, const void *data)
static void xml_print_int(AVTextFormatContext *wctx, const char *key, int64_t value)
static av_cold int xml_init(AVTextFormatContext *wctx)
static void xml_print_section_footer(AVTextFormatContext *wctx)
Definition at line 202 of file tf_xml.c.
Referenced by main().