mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_owdenoise: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
39e06e403a
commit
2232a9ffbf
|
@ -292,8 +292,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||||
return ff_filter_frame(outlink, out);
|
return ff_filter_frame(outlink, out);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
|
||||||
{
|
|
||||||
static const enum AVPixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P,
|
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P,
|
||||||
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P,
|
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P,
|
||||||
|
@ -309,8 +307,6 @@ static int query_formats(AVFilterContext *ctx)
|
||||||
AV_PIX_FMT_YUV420P16, AV_PIX_FMT_YUV422P16, AV_PIX_FMT_YUV444P16,
|
AV_PIX_FMT_YUV420P16, AV_PIX_FMT_YUV422P16, AV_PIX_FMT_YUV444P16,
|
||||||
AV_PIX_FMT_NONE
|
AV_PIX_FMT_NONE
|
||||||
};
|
};
|
||||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int config_input(AVFilterLink *inlink)
|
static int config_input(AVFilterLink *inlink)
|
||||||
{
|
{
|
||||||
|
@ -367,7 +363,7 @@ const AVFilter ff_vf_owdenoise = {
|
||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
FILTER_INPUTS(owdenoise_inputs),
|
FILTER_INPUTS(owdenoise_inputs),
|
||||||
FILTER_OUTPUTS(owdenoise_outputs),
|
FILTER_OUTPUTS(owdenoise_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||||
.priv_class = &owdenoise_class,
|
.priv_class = &owdenoise_class,
|
||||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue