mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_bilateral: Use formats list instead of query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
dc465efdf8
commit
32777acb36
@ -66,8 +66,6 @@ static const AVOption bilateral_options[] = {
|
||||
|
||||
AVFILTER_DEFINE_CLASS(bilateral);
|
||||
|
||||
static int query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
static const enum AVPixelFormat pix_fmts[] = {
|
||||
AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P,
|
||||
AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P,
|
||||
@ -89,9 +87,6 @@ static int query_formats(AVFilterContext *ctx)
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
|
||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
||||
}
|
||||
|
||||
static int config_params(AVFilterContext *ctx)
|
||||
{
|
||||
BilateralContext *s = ctx->priv;
|
||||
@ -385,7 +380,7 @@ const AVFilter ff_vf_bilateral = {
|
||||
.uninit = uninit,
|
||||
FILTER_INPUTS(bilateral_inputs),
|
||||
FILTER_OUTPUTS(bilateral_outputs),
|
||||
FILTER_QUERY_FUNC(query_formats),
|
||||
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||
.process_command = process_command,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user