Lines Matching defs:link
237 static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
239 ScaleContext *scale = link->dst->priv;
240 AVFilterLink *outlink = link->dst->outputs[0];
243 scale->hsub = av_pix_fmt_descriptors[link->format].log2_chroma_w;
244 scale->vsub = av_pix_fmt_descriptors[link->format].log2_chroma_h;
254 (int64_t)picref->video->pixel_aspect.num * outlink->h * link->w,
255 (int64_t)picref->video->pixel_aspect.den * outlink->w * link->h,
262 static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
264 ScaleContext *scale = link->dst->priv;
266 AVFilterBufferRef *cur_pic = link->cur_buf;
270 scale->slice_y = link->dst->outputs[0]->h;
280 link->dst->outputs[0]->out_buf->data,
281 link->dst->outputs[0]->out_buf->linesize);
285 avfilter_draw_slice(link->dst->outputs[0], scale->slice_y, out_h, slice_dir);