1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavfi/vignette: add some scaling debug.

This commit is contained in:
Clément Bœsch 2013-05-30 20:41:56 +02:00
parent bfafcc4ebe
commit 33620e243f

View File

@ -288,6 +288,8 @@ static int config_props(AVFilterLink *inlink)
s->xscale = 1;
}
s->dmax = hypot(inlink->w / 2., inlink->h / 2.);
av_log(s, AV_LOG_DEBUG, "xscale=%f yscale=%f dmax=%f\n",
s->xscale, s->yscale, s->dmax);
s->fmap_linesize = FFALIGN(inlink->w, 32);
s->fmap = av_malloc(s->fmap_linesize * inlink->h * sizeof(*s->fmap));