Lines Matching defs:level

160 #define SECTION_FLAG_IS_WRAPPER      1 ///< the section only contains other sections, but has no data at its own level
327 static void log_callback(void *ptr, int level, const char *fmt, va_list vl)
336 av_log_default_callback(ptr, level, fmt, vl);
337 av_log_format_line(ptr, level, fmt, vl2, line, sizeof(line), &print_prefix);
355 log_buffer[log_buffer_size].log_level = level;
492 int level; ///< current level, starting from 0
497 /** section per each level */
635 (*wctx)->level = -1;
724 wctx->level++;
725 av_assert0(wctx->level < SECTION_MAX_NB_LEVELS);
726 parent_section_id = wctx->level ?
727 (wctx->section[wctx->level-1])->id : SECTION_ID_NONE;
729 wctx->nb_item[wctx->level] = 0;
730 wctx->section[wctx->level] = &wctx->sections[section_id];
746 int section_id = wctx->section[wctx->level]->id;
747 int parent_section_id = wctx->level ?
748 wctx->section[wctx->level-1]->id : SECTION_ID_NONE;
751 wctx->nb_item[wctx->level-1]++;
758 wctx->level--;
764 const struct section *section = wctx->section[wctx->level];
768 wctx->nb_item[wctx->level]++;
833 const struct section *section = wctx->section[wctx->level];
862 wctx->nb_item[wctx->level]++;
1052 const struct section *section = wctx->section[wctx->level];
1053 const struct section *parent_section = wctx->level ?
1054 wctx->section[wctx->level-1] : NULL;
1056 av_bprint_clear(&wctx->section_pbuf[wctx->level]);
1059 def->nested_section[wctx->level] = 1;
1060 av_bprintf(&wctx->section_pbuf[wctx->level], "%s%s:",
1061 wctx->section_pbuf[wctx->level-1].str,
1066 if (def->noprint_wrappers || def->nested_section[wctx->level])
1076 const struct section *section = wctx->section[wctx->level];
1079 if (def->noprint_wrappers || def->nested_section[wctx->level])
1091 writer_printf(wctx, "%s%s=", wctx->section_pbuf[wctx->level].str, key);
1100 writer_printf(wctx, "%s%s=", wctx->section_pbuf[wctx->level].str, key);
1221 const struct section *section = wctx->section[wctx->level];
1222 const struct section *parent_section = wctx->level ?
1223 wctx->section[wctx->level-1] : NULL;
1224 compact->terminate_line[wctx->level] = 1;
1225 compact->has_nested_elems[wctx->level] = 0;
1227 av_bprint_clear(&wctx->section_pbuf[wctx->level]);
1230 compact->nested_section[wctx->level] = 1;
1231 compact->has_nested_elems[wctx->level-1] = 1;
1232 av_bprintf(&wctx->section_pbuf[wctx->level], "%s%s:",
1233 wctx->section_pbuf[wctx->level-1].str,
1235 wctx->nb_item[wctx->level] = wctx->nb_item[wctx->level-1];
1237 if (parent_section && compact->has_nested_elems[wctx->level-1] &&
1239 compact->terminate_line[wctx->level-1] = 0;
1242 wctx->level && wctx->nb_item[wctx->level-1])
1254 if (!compact->nested_section[wctx->level] &&
1255 compact->terminate_line[wctx->level] &&
1256 !(wctx->section[wctx->level]->flags & (SECTION_FLAG_IS_WRAPPER|SECTION_FLAG_IS_ARRAY)))
1265 if (wctx->nb_item[wctx->level]) writer_w8(wctx, compact->item_sep);
1267 writer_printf(wctx, "%s%s=", wctx->section_pbuf[wctx->level].str, key);
1277 if (wctx->nb_item[wctx->level]) writer_w8(wctx, compact->item_sep);
1279 writer_printf(wctx, "%s%s=", wctx->section_pbuf[wctx->level].str, key);
1398 AVBPrint *buf = &wctx->section_pbuf[wctx->level];
1399 const struct section *section = wctx->section[wctx->level];
1400 const struct section *parent_section = wctx->level ?
1401 wctx->section[wctx->level-1] : NULL;
1407 av_bprintf(buf, "%s", wctx->section_pbuf[wctx->level-1].str);
1411 av_bprintf(buf, "%s%s", wctx->section[wctx->level]->name, flat->sep_str);
1415 wctx->nb_section_packet_frame : wctx->nb_item[wctx->level-1];
1423 writer_printf(wctx, "%s%s=%lld\n", wctx->section_pbuf[wctx->level].str, key, value);
1431 writer_put_str(wctx, wctx->section_pbuf[wctx->level].str);
1498 AVBPrint *buf = &wctx->section_pbuf[wctx->level];
1499 const struct section *section = wctx->section[wctx->level];
1500 const struct section *parent_section = wctx->level ?
1501 wctx->section[wctx->level-1] : NULL;
1509 if (wctx->nb_item[wctx->level-1])
1512 av_bprintf(buf, "%s", wctx->section_pbuf[wctx->level-1].str);
1515 av_bprintf(buf, "%s%s", buf->str[0] ? "." : "", wctx->section[wctx->level]->name);
1519 wctx->nb_section_packet_frame : wctx->nb_item[wctx->level-1];
1610 const struct section *section = wctx->section[wctx->level];
1611 const struct section *parent_section = wctx->level ?
1612 wctx->section[wctx->level-1] : NULL;
1614 if (wctx->level && wctx->nb_item[wctx->level-1])
1638 wctx->nb_item[wctx->level]++;
1648 const struct section *section = wctx->section[wctx->level];
1650 if (wctx->level == 0) {
1682 const struct section *parent_section = wctx->level ?
1683 wctx->section[wctx->level-1] : NULL;
1685 if (wctx->nb_item[wctx->level] || (parent_section && parent_section->id == SECTION_ID_PACKETS_AND_FRAMES))
1695 const struct section *parent_section = wctx->level ?
1696 wctx->section[wctx->level-1] : NULL;
1699 if (wctx->nb_item[wctx->level] || (parent_section && parent_section->id == SECTION_ID_PACKETS_AND_FRAMES))
1770 const struct section *section = wctx->section[wctx->level];
1771 const struct section *parent_section = wctx->level ?
1772 wctx->section[wctx->level-1] : NULL;
1774 if (wctx->level == 0) {
1794 wctx->level && wctx->nb_item[wctx->level-1])
1810 const struct section *section = wctx->section[wctx->level];
1812 if (wctx->level == 0) {
1830 const struct section *section = wctx->section[wctx->level];
1846 if (wctx->nb_item[wctx->level])
1859 if (wctx->nb_item[wctx->level])
2453 print_int("level", log_buffer[i].log_level);
3001 print_int("level", par->level);
3903 static void print_section(SectionID id, int level)
3911 printf("%*c %s", level * 4, ' ', section->name);
3917 print_section(*pid, level+1);