Lines Matching defs:link
184 static int config_props(AVFilterLink *link)
186 UnsharpContext *unsharp = link->dst->priv;
188 unsharp->hsub = av_pix_fmt_descriptors[link->format].log2_chroma_w;
189 unsharp->vsub = av_pix_fmt_descriptors[link->format].log2_chroma_h;
191 init_filter_param(link->dst, &unsharp->luma, "luma", link->w);
192 init_filter_param(link->dst, &unsharp->chroma, "chroma", SHIFTUP(link->w, unsharp->hsub));
213 static void end_frame(AVFilterLink *link)
215 UnsharpContext *unsharp = link->dst->priv;
216 AVFilterBufferRef *in = link->cur_buf;
217 AVFilterBufferRef *out = link->dst->outputs[0]->out_buf;
218 int cw = SHIFTUP(link->w, unsharp->hsub);
219 int ch = SHIFTUP(link->h, unsharp->vsub);
221 apply_unsharp(out->data[0], out->linesize[0], in->data[0], in->linesize[0], link->w, link->h, &unsharp->luma);
226 avfilter_draw_slice(link->dst->outputs[0], 0, link->h, 1);
227 avfilter_end_frame(link->dst->outputs[0]);
231 static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir)