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

Function parse_608subs

libavdevice/decklink_enc.cpp:579–590  ·  view source on GitHub ↗

Parse any EIA-608 subtitles sitting on the queue, and write packet side data that will later be handled by construct_cc... */

Source from the content-addressed store, hash-verified

577/* Parse any EIA-608 subtitles sitting on the queue, and write packet side data
578 that will later be handled by construct_cc... */
579static void parse_608subs(AVFormatContext *avctx, struct decklink_ctx *ctx, AVPacket *pkt)
580{
581 size_t cc_size = ff_ccfifo_getoutputsize(&ctx->cc_fifo);
582 uint8_t *cc_data;
583
584 if (!ff_ccfifo_ccdetected(&ctx->cc_fifo))
585 return;
586
587 cc_data = av_packet_new_side_data(pkt, AV_PKT_DATA_A53_CC, cc_size);
588 if (cc_data)
589 ff_ccfifo_injectbytes(&ctx->cc_fifo, cc_data, cc_size);
590}
591
592static int decklink_construct_vanc(AVFormatContext *avctx, struct decklink_ctx *ctx,
593 AVPacket *pkt, decklink_frame *frame,

Callers 1

decklink_construct_vancFunction · 0.85

Calls 4

ff_ccfifo_getoutputsizeFunction · 0.85
ff_ccfifo_ccdetectedFunction · 0.85
av_packet_new_side_dataFunction · 0.85
ff_ccfifo_injectbytesFunction · 0.85

Tested by

no test coverage detected