FFmpeg
|
#include <stdint.h>
#include "libavutil/dict.h"
#include "libavformat/avio.h"
#include "libavutil/bprint.h"
#include "libavutil/rational.h"
#include "libavutil/hash.h"
#include "avtextwriters.h"
Go to the source code of this file.
Data Structures | |
struct | AVTextFormatSectionContext |
struct | AVTextFormatSection |
struct | AVTextFormatter |
struct | AVTextFormatContext |
struct | AVTextFormatOptions |
Enumerations | |
enum | StringValidation { AV_TEXTFORMAT_STRING_VALIDATION_FAIL, AV_TEXTFORMAT_STRING_VALIDATION_REPLACE, AV_TEXTFORMAT_STRING_VALIDATION_IGNORE, AV_TEXTFORMAT_STRING_VALIDATION_NB } |
enum | AVTextFormatLinkType { AV_TEXTFORMAT_LINKTYPE_SRCDEST, AV_TEXTFORMAT_LINKTYPE_DESTSRC, AV_TEXTFORMAT_LINKTYPE_BIDIR, AV_TEXTFORMAT_LINKTYPE_NONDIR, AV_TEXTFORMAT_LINKTYPE_HIDDEN, AV_TEXTFORMAT_LINKTYPE_ONETOMANY = AV_TEXTFORMAT_LINKTYPE_SRCDEST, AV_TEXTFORMAT_LINKTYPE_MANYTOONE = AV_TEXTFORMAT_LINKTYPE_DESTSRC, AV_TEXTFORMAT_LINKTYPE_ONETOONE = AV_TEXTFORMAT_LINKTYPE_BIDIR, AV_TEXTFORMAT_LINKTYPE_MANYTOMANY = AV_TEXTFORMAT_LINKTYPE_NONDIR } |
#define SECTION_MAX_NB_CHILDREN 11 |
Definition at line 32 of file avtextformat.h.
#define AV_TEXTFORMAT_SECTION_FLAG_IS_WRAPPER 1 |
the section only contains other sections, but has no data at its own level
Definition at line 45 of file avtextformat.h.
#define AV_TEXTFORMAT_SECTION_FLAG_IS_ARRAY 2 |
the section contains an array of elements of the same type
Definition at line 46 of file avtextformat.h.
#define AV_TEXTFORMAT_SECTION_FLAG_HAS_VARIABLE_FIELDS 4 |
the section may contain a variable number of fields with variable keys.
Definition at line 47 of file avtextformat.h.
#define AV_TEXTFORMAT_SECTION_FLAG_HAS_TYPE 8 |
For these sections the element_name field is mandatory.
the section contains a type to distinguish multiple nested elements
Definition at line 49 of file avtextformat.h.
#define AV_TEXTFORMAT_SECTION_FLAG_NUMBERING_BY_TYPE 16 |
the items in this array section should be numbered individually by type
Definition at line 50 of file avtextformat.h.
#define AV_TEXTFORMAT_SECTION_FLAG_IS_SHAPE 32 |
...
Definition at line 51 of file avtextformat.h.
#define AV_TEXTFORMAT_SECTION_FLAG_HAS_LINKS 64 |
...
Definition at line 52 of file avtextformat.h.
#define AV_TEXTFORMAT_SECTION_PRINT_TAGS 128 |
...
Definition at line 53 of file avtextformat.h.
#define AV_TEXTFORMAT_SECTION_FLAG_IS_SUBGRAPH 256 |
...
Definition at line 54 of file avtextformat.h.
#define AV_TEXTFORMAT_FLAG_SUPPORTS_OPTIONAL_FIELDS 1 |
Definition at line 71 of file avtextformat.h.
#define AV_TEXTFORMAT_FLAG_SUPPORTS_MIXED_ARRAY_CONTENT 2 |
Definition at line 72 of file avtextformat.h.
#define AV_TEXTFORMAT_FLAG_IS_DIAGRAM_FORMATTER 4 |
Definition at line 73 of file avtextformat.h.
#define SECTION_MAX_NB_LEVELS 12 |
Definition at line 109 of file avtextformat.h.
#define SECTION_MAX_NB_SECTIONS 100 |
Definition at line 110 of file avtextformat.h.
#define AV_TEXTFORMAT_PRINT_STRING_OPTIONAL 1 |
Definition at line 155 of file avtextformat.h.
#define AV_TEXTFORMAT_PRINT_STRING_VALIDATE 2 |
Definition at line 156 of file avtextformat.h.
enum StringValidation |
Enumerator | |
---|---|
AV_TEXTFORMAT_STRING_VALIDATION_FAIL | |
AV_TEXTFORMAT_STRING_VALIDATION_REPLACE | |
AV_TEXTFORMAT_STRING_VALIDATION_IGNORE | |
AV_TEXTFORMAT_STRING_VALIDATION_NB |
Definition at line 75 of file avtextformat.h.
enum AVTextFormatLinkType |
Definition at line 82 of file avtextformat.h.
int avtext_context_open | ( | AVTextFormatContext ** | ptctx, |
const AVTextFormatter * | formatter, | ||
AVTextWriterContext * | writer_context, | ||
const char * | args, | ||
const AVTextFormatSection * | sections, | ||
int | nb_sections, | ||
AVTextFormatOptions | options, | ||
char * | show_data_hash | ||
) |
Definition at line 129 of file avtextformat.c.
Referenced by init_graphprint(), and main().
int avtext_context_close | ( | AVTextFormatContext ** | tctx | ) |
Definition at line 101 of file avtextformat.c.
Referenced by avtext_context_open(), init_graphprint(), main(), and uninit_graphprint().
void avtext_print_section_header | ( | AVTextFormatContext * | tctx, |
const void * | data, | ||
int | section_id | ||
) |
Definition at line 255 of file avtextformat.c.
Referenced by ffprobe_show_library_versions(), ffprobe_show_pixel_formats(), ffprobe_show_program_version(), main(), print_dispositions(), print_dovi_metadata(), print_film_grain_params(), print_filter(), print_filtergraph(), print_filtergraph_single(), print_filtergraphs_priv(), print_frame_side_data(), print_hwframescontext(), print_iamf_audio_element_params(), print_iamf_mix_presentation_params(), print_iamf_param_definition(), print_iamf_submix_params(), print_pkt_side_data(), print_section_header_id(), print_stream_group_params(), print_streams(), print_tile_grid_params(), probe_file(), show_chapters(), show_error(), show_format(), show_frame(), show_log(), show_packet(), show_program(), show_programs(), show_stream(), show_stream_group(), show_stream_groups(), show_streams(), show_subtitle(), and show_tags().
void avtext_print_section_footer | ( | AVTextFormatContext * | tctx | ) |
Definition at line 273 of file avtextformat.c.
Referenced by ffprobe_show_library_versions(), ffprobe_show_pixel_formats(), ffprobe_show_program_version(), main(), print_dispositions(), print_dovi_metadata(), print_film_grain_params(), print_filter(), print_filtergraph(), print_filtergraph_single(), print_filtergraphs_priv(), print_frame_side_data(), print_hwframescontext(), print_iamf_audio_element_params(), print_iamf_mix_presentation_params(), print_iamf_param_definition(), print_iamf_submix_params(), print_stream_group_params(), print_streams(), print_tile_grid_params(), probe_file(), show_chapters(), show_error(), show_format(), show_frame(), show_log(), show_packet(), show_program(), show_programs(), show_stream(), show_stream_group(), show_stream_groups(), show_streams(), show_subtitle(), and show_tags().
void avtext_print_integer | ( | AVTextFormatContext * | tctx, |
const char * | key, | ||
int64_t | val, | ||
int | flags | ||
) |
Definition at line 294 of file avtextformat.c.
Referenced by avtext_print_ts().
int avtext_print_string | ( | AVTextFormatContext * | tctx, |
const char * | key, | ||
const char * | val, | ||
int | flags | ||
) |
Definition at line 450 of file avtextformat.c.
Referenced by avtext_print_data(), avtext_print_data_hash(), avtext_print_integers(), avtext_print_rational(), avtext_print_time(), avtext_print_ts(), and avtext_print_unit_int().
void avtext_print_unit_int | ( | AVTextFormatContext * | tctx, |
const char * | key, | ||
int | value, | ||
const char * | unit | ||
) |
Definition at line 440 of file avtextformat.c.
void avtext_print_rational | ( | AVTextFormatContext * | tctx, |
const char * | key, | ||
AVRational | q, | ||
char | sep | ||
) |
Definition at line 492 of file avtextformat.c.
void avtext_print_time | ( | AVTextFormatContext * | tctx, |
const char * | key, | ||
int64_t | ts, | ||
const AVRational * | time_base, | ||
int | is_duration | ||
) |
Definition at line 499 of file avtextformat.c.
void avtext_print_ts | ( | AVTextFormatContext * | tctx, |
const char * | key, | ||
int64_t | ts, | ||
int | is_duration | ||
) |
Definition at line 515 of file avtextformat.c.
void avtext_print_data | ( | AVTextFormatContext * | tctx, |
const char * | key, | ||
const uint8_t * | data, | ||
int | size | ||
) |
Definition at line 523 of file avtextformat.c.
Referenced by print_pkt_side_data(), show_packet(), and show_stream().
void avtext_print_data_hash | ( | AVTextFormatContext * | tctx, |
const char * | key, | ||
const uint8_t * | data, | ||
int | size | ||
) |
Definition at line 552 of file avtextformat.c.
Referenced by print_pkt_side_data(), show_packet(), and show_stream().
void avtext_print_integers | ( | AVTextFormatContext * | tctx, |
const char * | key, | ||
uint8_t * | data, | ||
int | size, | ||
const char * | format, | ||
int | columns, | ||
int | bytes, | ||
int | offset_add | ||
) |
Definition at line 568 of file avtextformat.c.
Referenced by print_displaymatrix().
const AVTextFormatter* avtext_get_formatter_by_name | ( | const char * | name | ) |
Definition at line 698 of file avtextformat.c.
Referenced by init_graphprint(), and main().
const AVTextFormatter avtextformatter_default |
Definition at line 127 of file tf_default.c.
const AVTextFormatter avtextformatter_compact |
Definition at line 239 of file tf_compact.c.
const AVTextFormatter avtextformatter_csv |
Definition at line 270 of file tf_compact.c.
const AVTextFormatter avtextformatter_flat |
const AVTextFormatter avtextformatter_ini |
const AVTextFormatter avtextformatter_json |
const AVTextFormatter avtextformatter_xml |
const AVTextFormatter avtextformatter_mermaid |
Definition at line 662 of file tf_mermaid.c.
const AVTextFormatter avtextformatter_mermaidhtml |
Definition at line 676 of file tf_mermaid.c.