Lines Matching defs:link
409 static int scale_slice(AVFilterLink *link, AVFrame *out_buf, AVFrame *cur_pic, struct SwsContext *sws, int y, int h, int mul, int field)
411 ScaleContext *scale = link->dst->priv;
433 static int filter_frame(AVFilterLink *link, AVFrame *in)
435 ScaleContext *scale = link->dst->priv;
436 AVFilterLink *outlink = link->dst->outputs[0];
438 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(link->format);
442 if( in->width != link->w
443 || in->height != link->h
444 || in->format != link->format) {
451 link->dst->inputs[0]->format = in->format;
452 link->dst->inputs[0]->w = in->width;
453 link->dst->inputs[0]->h = in->height;
518 (int64_t)in->sample_aspect_ratio.num * outlink->h * link->w,
519 (int64_t)in->sample_aspect_ratio.den * outlink->w * link->h,
523 scale_slice(link, out, in, scale->isws[0], 0, (link->h+1)/2, 2, 0);
524 scale_slice(link, out, in, scale->isws[1], 0, link->h /2, 2, 1);
526 scale_slice(link, out, in, scale->sws, 0, link->h, 1, 0);