| 797 | } |
| 798 | |
| 799 | static 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 | |
| 821 | static const AVFilterPad avfilter_vf_qrencode_inputs[] = { |
| 822 | { |
nothing calls this directly
no test coverage detected