• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/

Lines Matching defs:section

95 /* section structure definition */
99 struct section {
100 int id; ///< unique id identifying a section
103 #define SECTION_FLAG_IS_WRAPPER 1 ///< the section only contains other sections, but has no data at its own level
104 #define SECTION_FLAG_IS_ARRAY 2 ///< the section contains an array of elements of the same type
105 #define SECTION_FLAG_HAS_VARIABLE_FIELDS 4 ///< the section may contain a variable number of fields with variable keys.
108 int children_ids[SECTION_MAX_NB_CHILDREN+1]; ///< list of children section IDS, terminated by -1
110 const char *unique_name; ///< unique section name, in case the name is ambiguous
147 static struct section sections[] = {
302 const struct section *sections; ///< array containing all sections
307 /** number of the item printed in the given section, starting from 0 */
310 /** section per each level */
311 const struct section *section[SECTION_MAX_NB_LEVELS];
312 AVBPrint section_pbuf[SECTION_MAX_NB_LEVELS]; ///< generic print buffer dedicated to each section,
315 unsigned int nb_section_packet; ///< number of the packet section in case we are in "packets_and_frames" section
316 unsigned int nb_section_frame; ///< number of the frame section in case we are in "packets_and_frames" section
389 const struct section *sections, int nb_sections)
482 (wctx->section[wctx->level-1])->id : SECTION_ID_NONE;
485 wctx->section[wctx->level] = &wctx->sections[section_id];
501 int section_id = wctx->section[wctx->level]->id;
503 wctx->section[wctx->level-1]->id : SECTION_ID_NONE;
519 const struct section *section = wctx->section[wctx->level];
521 if (section->show_all_entries || av_dict_get(section->entries_to_show, key, NULL, 0)) {
588 const struct section *section = wctx->section[wctx->level];
595 if (section->show_all_entries || av_dict_get(section->entries_to_show, key, NULL, 0)) {
606 "Invalid key=value string combination %s=%s in section %s\n",
607 key, val, section->unique_name);
760 const struct section *section = wctx->section[wctx->level];
761 const struct section *parent_section = wctx->level ?
762 wctx->section[wctx->level-1] : NULL;
771 av_x_if_null(section->element_name, section->name)));
777 if (!(section->flags & (SECTION_FLAG_IS_WRAPPER|SECTION_FLAG_IS_ARRAY)))
778 printf("[%s]\n", upcase_string(buf, sizeof(buf), section->name));
784 const struct section *section = wctx->section[wctx->level];
790 if (!(section->flags & (SECTION_FLAG_IS_WRAPPER|SECTION_FLAG_IS_ARRAY)))
791 printf("[/%s]\n", upcase_string(buf, sizeof(buf), section->name));
897 {"print_section", "print section name", OFFSET(print_section), AV_OPT_TYPE_INT, {.i64=1}, 0, 1 },
898 {"p", "print section name", OFFSET(print_section), AV_OPT_TYPE_INT, {.i64=1}, 0, 1 },
929 const struct section *section = wctx->section[wctx->level];
930 const struct section *parent_section = wctx->level ?
931 wctx->section[wctx->level-1] : NULL;
936 if (!(section->flags & SECTION_FLAG_IS_ARRAY) && parent_section &&
942 (char *)av_x_if_null(section->element_name, section->name));
946 (section->flags & SECTION_FLAG_IS_ARRAY)) {
951 !(section->flags & (SECTION_FLAG_IS_WRAPPER|SECTION_FLAG_IS_ARRAY)))
952 printf("%s%c", section->name, compact->item_sep);
962 !(wctx->section[wctx->level]->flags & (SECTION_FLAG_IS_WRAPPER|SECTION_FLAG_IS_ARRAY)))
1013 {"print_section", "print section name", OFFSET(print_section), AV_OPT_TYPE_INT, {.i64=1}, 0, 1 },
1014 {"p", "print section name", OFFSET(print_section), AV_OPT_TYPE_INT, {.i64=1}, 0, 1 },
1047 {"hierarchical", "specify if the section specification should be hierarchical", OFFSET(hierarchical), AV_OPT_TYPE_INT, {.i64=1}, 0, 1 },
1048 {"h", "specify if the section specification should be hierarchical", OFFSET(hierarchical), AV_OPT_TYPE_INT, {.i64=1}, 0, 1 },
1105 const struct section *section = wctx->section[wctx->level];
1106 const struct section *parent_section = wctx->level ?
1107 wctx->section[wctx->level-1] : NULL;
1109 /* build section header */
1116 !(section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER))) {
1117 av_bprintf(buf, "%s%s", wctx->section[wctx->level]->name, flat->sep_str);
1167 {"hierarchical", "specify if the section specification should be hierarchical", OFFSET(hierarchical), AV_OPT_TYPE_INT, {.i64=1}, 0, 1 },
1168 {"h", "specify if the section specification should be hierarchical", OFFSET(hierarchical), AV_OPT_TYPE_INT, {.i64=1}, 0, 1 },
1205 const struct section *section = wctx->section[wctx->level];
1206 const struct section *parent_section = wctx->level ?
1207 wctx->section[wctx->level-1] : NULL;
1220 !(section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER))) {
1221 av_bprintf(buf, "%s%s", buf->str[0] ? "." : "", wctx->section[wctx->level]->name);
1230 if (!(section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER)))
1316 const struct section *section = wctx->section[wctx->level];
1317 const struct section *parent_section = wctx->level ?
1318 wctx->section[wctx->level-1] : NULL;
1323 if (section->flags & SECTION_FLAG_IS_WRAPPER) {
1328 json_escape_str(&buf, section->name, wctx);
1332 if (section->flags & SECTION_FLAG_IS_ARRAY) {
1343 printf("\"type\": \"%s\"%s", section->name, json->item_sep);
1353 const struct section *section = wctx->section[wctx->level];
1358 } else if (section->flags & SECTION_FLAG_IS_ARRAY) {
1496 const struct section *section = wctx->section[wctx->level];
1497 const struct section *parent_section = wctx->level ?
1498 wctx->section[wctx->level-1] : NULL;
1516 if (section->flags & SECTION_FLAG_HAS_VARIABLE_FIELDS) {
1524 if (section->flags & SECTION_FLAG_IS_ARRAY) {
1525 XML_INDENT(); printf("<%s>\n", section->name);
1527 XML_INDENT(); printf("<%s ", section->name);
1536 const struct section *section = wctx->section[wctx->level];
1544 } else if (section->flags & SECTION_FLAG_HAS_VARIABLE_FIELDS) {
1547 XML_INDENT(); printf("</%s>\n", section->name);
1556 const struct section *section = wctx->section[wctx->level];
1560 if (section->flags & SECTION_FLAG_HAS_VARIABLE_FIELDS) {
1563 section->element_name, xml_escape_str(&buf, key, wctx));
2530 struct section *section = &sections[section_id];
2532 section->show_all_entries = show_all_entries;
2535 for (id = section->children_ids; *id != -1; id++)
2538 av_dict_copy(&section->entries_to_show, entries, 0);
2548 const struct section *section = &sections[i];
2549 if (!strcmp(section_name, section->name) ||
2550 (section->unique_name && !strcmp(section_name, section->unique_name))) {
2552 "'%s' matches section with unique name '%s'\n", section_name,
2553 (char *)av_x_if_null(section->unique_name, section->name));
2555 mark_section_show_entries(section->id, show_all_entries, entries);
2573 "Missing section name for option '%s'\n", opt);
2584 "Adding '%s' to the entries to show in section '%s'\n",
2596 av_log(NULL, AV_LOG_ERROR, "No match for section '%s'\n", section_name);
2804 const struct section *section = &sections[id];
2806 section->flags & SECTION_FLAG_IS_WRAPPER ? 'W' : '.',
2807 section->flags & SECTION_FLAG_IS_ARRAY ? 'A' : '.',
2808 section->flags & SECTION_FLAG_HAS_VARIABLE_FIELDS ? 'V' : '.');
2809 printf("%*c %s", level * 4, ' ', section->name);
2810 if (section->unique_name)
2811 printf("/%s", section->unique_name);
2814 for (pid = section->children_ids; *pid != -1; pid++)
2837 #define DEFINE_OPT_SHOW_SECTION(section, target_section_id) \
2838 static int opt_show_##section(const char *opt, const char *arg) \
2869 { "sections", OPT_EXIT, {.func_arg = opt_sections}, "print sections structure and section information, and exit" },
2899 struct section *section = &sections[section_id];
2902 for (id = section->children_ids; *id != -1; id++)