mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-28 17:51:05 +00:00
avfilter/vf_unsharp: rename config_props -> config_input, link -> inlink
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
cecf29eb1c
commit
7a477c4b63
@ -230,10 +230,10 @@ static int init_filter_param(AVFilterContext *ctx, UnsharpFilterParam *fp, const
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int config_props(AVFilterLink *link)
|
static int config_input(AVFilterLink *inlink)
|
||||||
{
|
{
|
||||||
UnsharpContext *s = link->dst->priv;
|
UnsharpContext *s = inlink->dst->priv;
|
||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(link->format);
|
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
s->hsub = desc->log2_chroma_w;
|
s->hsub = desc->log2_chroma_w;
|
||||||
@ -241,13 +241,13 @@ static int config_props(AVFilterLink *link)
|
|||||||
|
|
||||||
// ensure (height / nb_threads) > 4 * steps_y,
|
// ensure (height / nb_threads) > 4 * steps_y,
|
||||||
// so that we don't have too much overlap between two threads
|
// so that we don't have too much overlap between two threads
|
||||||
s->nb_threads = FFMIN(ff_filter_get_nb_threads(link->dst),
|
s->nb_threads = FFMIN(ff_filter_get_nb_threads(inlink->dst),
|
||||||
link->h / (4 * s->luma.steps_y));
|
inlink->h / (4 * s->luma.steps_y));
|
||||||
|
|
||||||
ret = init_filter_param(link->dst, &s->luma, "luma", link->w);
|
ret = init_filter_param(inlink->dst, &s->luma, "luma", inlink->w);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
ret = init_filter_param(link->dst, &s->chroma, "chroma", AV_CEIL_RSHIFT(link->w, s->hsub));
|
ret = init_filter_param(inlink->dst, &s->chroma, "chroma", AV_CEIL_RSHIFT(inlink->w, s->hsub));
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@ -325,7 +325,7 @@ static const AVFilterPad avfilter_vf_unsharp_inputs[] = {
|
|||||||
.name = "default",
|
.name = "default",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.filter_frame = filter_frame,
|
.filter_frame = filter_frame,
|
||||||
.config_props = config_props,
|
.config_props = config_input,
|
||||||
},
|
},
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user