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

Function avfilter_link

libavfilter/avfilter.c:84–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84int avfilter_link(AVFilterContext *src, unsigned srcpad,
85 AVFilterContext *dst, unsigned dstpad)
86{
87 AVFilterLink *link;
88
89 if(src->output_count <= srcpad || dst->input_count <= dstpad ||
90 src->outputs[srcpad] || dst->inputs[dstpad])
91 return -1;
92
93 src->outputs[srcpad] =
94 dst-> inputs[dstpad] = link = av_mallocz(sizeof(AVFilterLink));
95
96 link->src = src;
97 link->dst = dst;
98 link->srcpad = srcpad;
99 link->dstpad = dstpad;
100 link->format = PIX_FMT_NONE;
101
102 return 0;
103}
104
105int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
106 unsigned in, unsigned out)

Callers 3

video_threadFunction · 0.85
link_filterFunction · 0.85
avfilter_insert_filterFunction · 0.85

Calls 1

av_malloczFunction · 0.85

Tested by

no test coverage detected