Commit e425047a authored by Marc-Antoine Arnaud's avatar Marc-Antoine Arnaud Committed by Michael Niedermayer

avfilter: rename variables in geq

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent ac6b0bba
...@@ -310,25 +310,25 @@ static int geq_filter_frame(AVFilterLink *inlink, AVFrame *in) ...@@ -310,25 +310,25 @@ static int geq_filter_frame(AVFilterLink *inlink, AVFrame *in)
av_frame_copy_props(out, in); av_frame_copy_props(out, in);
for (plane = 0; plane < geq->planes && out->data[plane]; plane++) { for (plane = 0; plane < geq->planes && out->data[plane]; plane++) {
const int w = (plane == 1 || plane == 2) ? AV_CEIL_RSHIFT(inlink->w, geq->hsub) : inlink->w; const int width = (plane == 1 || plane == 2) ? AV_CEIL_RSHIFT(inlink->w, geq->hsub) : inlink->w;
const int h = (plane == 1 || plane == 2) ? AV_CEIL_RSHIFT(inlink->h, geq->vsub) : inlink->h; const int height = (plane == 1 || plane == 2) ? AV_CEIL_RSHIFT(inlink->h, geq->vsub) : inlink->h;
const int linesize = out->linesize[plane]; const int linesize = out->linesize[plane];
ThreadData td; ThreadData td;
geq->dst = out->data[plane]; geq->dst = out->data[plane];
geq->dst16 = (uint16_t*)out->data[plane]; geq->dst16 = (uint16_t*)out->data[plane];
geq->values[VAR_W] = w; geq->values[VAR_W] = width;
geq->values[VAR_H] = h; geq->values[VAR_H] = height;
geq->values[VAR_SW] = w / (double)inlink->w; geq->values[VAR_SW] = width / (double)inlink->w;
geq->values[VAR_SH] = h / (double)inlink->h; geq->values[VAR_SH] = height / (double)inlink->h;
td.width = w; td.width = width;
td.height = h; td.height = height;
td.plane = plane; td.plane = plane;
td.linesize = linesize; td.linesize = linesize;
ctx->internal->execute(ctx, slice_geq_filter, &td, NULL, FFMIN(h, nb_threads)); ctx->internal->execute(ctx, slice_geq_filter, &td, NULL, FFMIN(height, nb_threads));
} }
av_frame_free(&geq->picref); av_frame_free(&geq->picref);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment