section 159 ffprobe.c static struct section sections[] = { section 324 ffprobe.c const struct section *sections; ///< array containing all sections section 333 ffprobe.c const struct section *section[SECTION_MAX_NB_LEVELS]; section 411 ffprobe.c const struct section *sections, int nb_sections) section 504 ffprobe.c (wctx->section[wctx->level-1])->id : SECTION_ID_NONE; section 507 ffprobe.c wctx->section[wctx->level] = &wctx->sections[section_id]; section 523 ffprobe.c int section_id = wctx->section[wctx->level]->id; section 525 ffprobe.c wctx->section[wctx->level-1]->id : SECTION_ID_NONE; section 541 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 543 ffprobe.c if (section->show_all_entries || av_dict_get(section->entries_to_show, key, NULL, 0)) { section 610 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 617 ffprobe.c if (section->show_all_entries || av_dict_get(section->entries_to_show, key, NULL, 0)) { section 629 ffprobe.c key, val, section->unique_name); section 797 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 798 ffprobe.c const struct section *parent_section = wctx->level ? section 799 ffprobe.c wctx->section[wctx->level-1] : NULL; section 808 ffprobe.c av_x_if_null(section->element_name, section->name))); section 814 ffprobe.c if (!(section->flags & (SECTION_FLAG_IS_WRAPPER|SECTION_FLAG_IS_ARRAY))) section 815 ffprobe.c printf("[%s]\n", upcase_string(buf, sizeof(buf), section->name)); section 821 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 827 ffprobe.c if (!(section->flags & (SECTION_FLAG_IS_WRAPPER|SECTION_FLAG_IS_ARRAY))) section 828 ffprobe.c printf("[/%s]\n", upcase_string(buf, sizeof(buf), section->name)); section 966 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 967 ffprobe.c const struct section *parent_section = wctx->level ? section 968 ffprobe.c wctx->section[wctx->level-1] : NULL; section 973 ffprobe.c if (!(section->flags & SECTION_FLAG_IS_ARRAY) && parent_section && section 979 ffprobe.c (char *)av_x_if_null(section->element_name, section->name)); section 983 ffprobe.c (section->flags & SECTION_FLAG_IS_ARRAY)) { section 988 ffprobe.c !(section->flags & (SECTION_FLAG_IS_WRAPPER|SECTION_FLAG_IS_ARRAY))) section 989 ffprobe.c printf("%s%c", section->name, compact->item_sep); section 999 ffprobe.c !(wctx->section[wctx->level]->flags & (SECTION_FLAG_IS_WRAPPER|SECTION_FLAG_IS_ARRAY))) section 1142 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 1143 ffprobe.c const struct section *parent_section = wctx->level ? section 1144 ffprobe.c wctx->section[wctx->level-1] : NULL; section 1153 ffprobe.c !(section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER))) { section 1154 ffprobe.c av_bprintf(buf, "%s%s", wctx->section[wctx->level]->name, flat->sep_str); section 1242 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 1243 ffprobe.c const struct section *parent_section = wctx->level ? section 1244 ffprobe.c wctx->section[wctx->level-1] : NULL; section 1257 ffprobe.c !(section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER))) { section 1258 ffprobe.c av_bprintf(buf, "%s%s", buf->str[0] ? "." : "", wctx->section[wctx->level]->name); section 1267 ffprobe.c if (!(section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER))) section 1353 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 1354 ffprobe.c const struct section *parent_section = wctx->level ? section 1355 ffprobe.c wctx->section[wctx->level-1] : NULL; section 1360 ffprobe.c if (section->flags & SECTION_FLAG_IS_WRAPPER) { section 1365 ffprobe.c json_escape_str(&buf, section->name, wctx); section 1369 ffprobe.c if (section->flags & SECTION_FLAG_IS_ARRAY) { section 1380 ffprobe.c printf("\"type\": \"%s\"%s", section->name, json->item_sep); section 1390 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 1395 ffprobe.c } else if (section->flags & SECTION_FLAG_IS_ARRAY) { section 1533 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 1534 ffprobe.c const struct section *parent_section = wctx->level ? section 1535 ffprobe.c wctx->section[wctx->level-1] : NULL; section 1553 ffprobe.c if (section->flags & SECTION_FLAG_HAS_VARIABLE_FIELDS) { section 1561 ffprobe.c if (section->flags & SECTION_FLAG_IS_ARRAY) { section 1562 ffprobe.c XML_INDENT(); printf("<%s>\n", section->name); section 1564 ffprobe.c XML_INDENT(); printf("<%s ", section->name); section 1573 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 1581 ffprobe.c } else if (section->flags & SECTION_FLAG_HAS_VARIABLE_FIELDS) { section 1584 ffprobe.c XML_INDENT(); printf("</%s>\n", section->name); section 1593 ffprobe.c const struct section *section = wctx->section[wctx->level]; section 1597 ffprobe.c if (section->flags & SECTION_FLAG_HAS_VARIABLE_FIELDS) { section 1600 ffprobe.c section->element_name, xml_escape_str(&buf, key, wctx)); section 2666 ffprobe.c struct section *section = §ions[section_id]; section 2668 ffprobe.c section->show_all_entries = show_all_entries; section 2671 ffprobe.c for (id = section->children_ids; *id != -1; id++) section 2674 ffprobe.c av_dict_copy(§ion->entries_to_show, entries, 0); section 2684 ffprobe.c const struct section *section = §ions[i]; section 2685 ffprobe.c if (!strcmp(section_name, section->name) || section 2686 ffprobe.c (section->unique_name && !strcmp(section_name, section->unique_name))) { section 2689 ffprobe.c (char *)av_x_if_null(section->unique_name, section->name)); section 2691 ffprobe.c mark_section_show_entries(section->id, show_all_entries, entries); section 2940 ffprobe.c const struct section *section = §ions[id]; section 2942 ffprobe.c section->flags & SECTION_FLAG_IS_WRAPPER ? 'W' : '.', section 2943 ffprobe.c section->flags & SECTION_FLAG_IS_ARRAY ? 'A' : '.', section 2944 ffprobe.c section->flags & SECTION_FLAG_HAS_VARIABLE_FIELDS ? 'V' : '.'); section 2945 ffprobe.c printf("%*c %s", level * 4, ' ', section->name); section 2946 ffprobe.c if (section->unique_name) section 2947 ffprobe.c printf("/%s", section->unique_name); section 2950 ffprobe.c for (pid = section->children_ids; *pid != -1; pid++) section 2973 ffprobe.c #define DEFINE_OPT_SHOW_SECTION(section, target_section_id) \ section 2974 ffprobe.c static int opt_show_##section(const char *opt, const char *arg) \ section 3038 ffprobe.c struct section *section = §ions[section_id]; section 3041 ffprobe.c for (id = section->children_ids; *id != -1; id++) section 41 libavcodec/ass_split.c const char *section; section 51 libavcodec/ass_split.c { .section = "Script Info", section 61 libavcodec/ass_split.c { .section = "V4+ Styles", section 93 libavcodec/ass_split.c { .section = "V4 Styles", section 120 libavcodec/ass_split.c { .section = "Events", section 207 libavcodec/ass_split.c const ASSSection *section = &ass_sections[ctx->current_section]; section 208 libavcodec/ass_split.c int *count = (int *)((uint8_t *)&ctx->ass + section->offset_count); section 209 libavcodec/ass_split.c void **section_ptr = (void **)((uint8_t *)&ctx->ass + section->offset); section 210 libavcodec/ass_split.c uint8_t *tmp = av_realloc_array(*section_ptr, (*count+1), section->size); section 214 libavcodec/ass_split.c tmp += *count * section->size; section 215 libavcodec/ass_split.c memset(tmp, 0, section->size); section 232 libavcodec/ass_split.c static int *get_default_field_orders(const ASSSection *section) section 235 libavcodec/ass_split.c int *order = av_malloc_array(FF_ARRAY_ELEMS(section->fields), sizeof(*order)); section 239 libavcodec/ass_split.c for (i = 0; section->fields[i].name; i++) section 241 libavcodec/ass_split.c while (i < FF_ARRAY_ELEMS(section->fields)) section 248 libavcodec/ass_split.c const ASSSection *section = &ass_sections[ctx->current_section]; section 260 libavcodec/ass_split.c } else if (section->format_header && !order) { section 261 libavcodec/ass_split.c len = strlen(section->format_header); section 262 libavcodec/ass_split.c if (strncmp(buf, section->format_header, len) || buf[len] != ':') section 272 libavcodec/ass_split.c for (i=0; section->fields[i].name; i++) section 273 libavcodec/ass_split.c if (!strncmp(buf, section->fields[i].name, len)) { section 281 libavcodec/ass_split.c } else if (section->fields_header) { section 282 libavcodec/ass_split.c len = strlen(section->fields_header); section 283 libavcodec/ass_split.c if (!strncmp(buf, section->fields_header, len) && buf[len] == ':') { section 289 libavcodec/ass_split.c order = get_default_field_orders(section); section 301 libavcodec/ass_split.c ASSFieldType type = section->fields[order[i]].type; section 302 libavcodec/ass_split.c ptr = struct_ptr + section->fields[order[i]].offset; section 313 libavcodec/ass_split.c for (i=0; section->fields[i].name; i++) section 314 libavcodec/ass_split.c if (!strncmp(buf, section->fields[i].name, len)) { section 315 libavcodec/ass_split.c ASSFieldType type = section->fields[i].type; section 316 libavcodec/ass_split.c uint8_t *ptr = (uint8_t *)&ctx->ass + section->offset; section 317 libavcodec/ass_split.c ptr += section->fields[i].offset; section 333 libavcodec/ass_split.c char c, section[16]; section 340 libavcodec/ass_split.c if (sscanf(buf, "[%15[0-9A-Za-z+ ]]%c", section, &c) == 2) { section 344 libavcodec/ass_split.c if (!strcmp(section, ass_sections[i].section)) { section 367 libavcodec/ass_split.c static void free_section(ASSSplitContext *ctx, const ASSSection *section) section 369 libavcodec/ass_split.c uint8_t *ptr = (uint8_t *)&ctx->ass + section->offset; section 372 libavcodec/ass_split.c if (section->format_header) { section 374 libavcodec/ass_split.c count = (int *)((uint8_t *)&ctx->ass + section->offset_count); section 379 libavcodec/ass_split.c for (i=0; i<*count; i++, ptr += section->size) section 380 libavcodec/ass_split.c for (j=0; section->fields[j].name; j++) { section 381 libavcodec/ass_split.c const ASSFields *field = §ion->fields[j]; section 387 libavcodec/ass_split.c if (section->format_header) section 388 libavcodec/ass_split.c av_freep((uint8_t *)&ctx->ass + section->offset); section 398 libavcodec/ass_split.c if (!strcmp(ass_sections[i].section, "Events")) { section 1450 libavformat/mpegts.c static void m4sl_cb(MpegTSFilter *filter, const uint8_t *section, section 1462 libavformat/mpegts.c p_end = section + section_len - 4; section 1463 libavformat/mpegts.c p = section; section 1787 libavformat/mpegts.c static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len) section 1803 libavformat/mpegts.c hex_dump_debug(ts->stream, section, section_len); section 1805 libavformat/mpegts.c p_end = section + section_len - 4; section 1806 libavformat/mpegts.c p = section; section 1955 libavformat/mpegts.c static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len) section 1964 libavformat/mpegts.c hex_dump_debug(ts->stream, section, section_len); section 1966 libavformat/mpegts.c p_end = section + section_len - 4; section 1967 libavformat/mpegts.c p = section; section 2027 libavformat/mpegts.c static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len) section 2036 libavformat/mpegts.c hex_dump_debug(ts->stream, section, section_len); section 2038 libavformat/mpegts.c p_end = section + section_len - 4; section 2039 libavformat/mpegts.c p = section; section 178 libavformat/mpegtsenc.c uint8_t section[1024], *q; section 188 libavformat/mpegtsenc.c q = section; section 197 libavformat/mpegtsenc.c mpegts_write_section(s, section, tot_len);