Lines Matching defs:link
65 #define CHROMA_WIDTH(link) (-((-(link)->w) >> av_pix_fmt_desc_get((link)->format)->log2_chroma_w))
66 #define CHROMA_HEIGHT(link) (-((-(link)->h) >> av_pix_fmt_desc_get((link)->format)->log2_chroma_h))
406 static int config_props(AVFilterLink *link)
408 DeshakeContext *deshake = link->dst->priv;
436 static int filter_frame(AVFilterLink *link, AVFrame *in)
438 DeshakeContext *deshake = link->dst->priv;
439 AVFilterLink *outlink = link->dst->outputs[0];
455 ret = ff_opencl_deshake_process_inout_buf(link->dst,in, out);
462 find_motion(deshake, (deshake->ref == NULL) ? in->data[0] : deshake->ref->data[0], in->data[0], link->w, link->h, in->linesize[0], &t);
467 deshake->cx = FFMIN(deshake->cx, link->w);
468 deshake->cy = FFMIN(deshake->cy, link->h);
470 if ((unsigned)deshake->cx + (unsigned)deshake->cw > link->w) deshake->cw = link->w - deshake->cx;
471 if ((unsigned)deshake->cy + (unsigned)deshake->ch > link->h) deshake->ch = link->h - deshake->cy;
534 avfilter_get_matrix(t.vector.x / (link->w / CHROMA_WIDTH(link)), t.vector.y / (link->h / CHROMA_HEIGHT(link)), t.angle, 1.0 + t.zoom / 100.0, matrix_uv);
536 ret = deshake->transform(link->dst, link->w, link->h, CHROMA_WIDTH(link), CHROMA_HEIGHT(link),