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

Function filter_frame

libavfilter/qrencode.c:799–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797}
798
799static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
800{
801 FilterLink *inl = ff_filter_link(inlink);
802 AVFilterContext *ctx = inlink->dst;
803 AVFilterLink *outlink = ctx->outputs[0];
804 QREncodeContext *qr = ctx->priv;
805 int ret;
806
807 V(n) = inl->frame_count_out;
808 V(t) = frame->pts == AV_NOPTS_VALUE ?
809 NAN : frame->pts * av_q2d(inlink->time_base);
810 V(pict_type) = frame->pict_type;
811 V(duration) = frame->duration * av_q2d(inlink->time_base);
812
813 qr->metadata = frame->metadata;
814
815 if ((ret = draw_qrcode(ctx, frame)) < 0)
816 return ret;
817
818 return ff_filter_frame(outlink, frame);
819}
820
821static const AVFilterPad avfilter_vf_qrencode_inputs[] = {
822 {

Callers

nothing calls this directly

Calls 4

ff_filter_linkFunction · 0.85
av_q2dFunction · 0.85
draw_qrcodeFunction · 0.85
ff_filter_frameFunction · 0.85

Tested by

no test coverage detected