MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / show_subtitle

Function show_subtitle

fftools/ffprobe.c:1321–1342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1319}
1320
1321static void show_subtitle(AVTextFormatContext *tfc, AVSubtitle *sub, AVStream *stream,
1322 AVFormatContext *fmt_ctx)
1323{
1324 AVBPrint pbuf;
1325
1326 av_bprint_init(&pbuf, 1, AV_BPRINT_SIZE_UNLIMITED);
1327
1328 avtext_print_section_header(tfc, NULL, SECTION_ID_SUBTITLE);
1329
1330 print_str ("media_type", "subtitle");
1331 print_ts ("pts", sub->pts);
1332 print_time("pts_time", sub->pts, &AV_TIME_BASE_Q);
1333 print_int ("format", sub->format);
1334 print_int ("start_display_time", sub->start_display_time);
1335 print_int ("end_display_time", sub->end_display_time);
1336 print_int ("num_rects", sub->num_rects);
1337
1338 avtext_print_section_footer(tfc);
1339
1340 av_bprint_finalize(&pbuf, NULL);
1341 fflush(stdout);
1342}
1343
1344static void print_frame_side_data(AVTextFormatContext *tfc,
1345 const AVFrame *frame,

Callers 1

process_frameFunction · 0.85

Calls 4

av_bprint_initFunction · 0.85
av_bprint_finalizeFunction · 0.85

Tested by

no test coverage detected