mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_sab: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
06896e46ad
commit
6b2b765ec9
|
@ -55,8 +55,6 @@ typedef struct SabContext {
|
||||||
unsigned int sws_flags;
|
unsigned int sws_flags;
|
||||||
} SabContext;
|
} SabContext;
|
||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
|
||||||
{
|
|
||||||
static const enum AVPixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_YUV420P,
|
AV_PIX_FMT_YUV420P,
|
||||||
AV_PIX_FMT_YUV410P,
|
AV_PIX_FMT_YUV410P,
|
||||||
|
@ -65,8 +63,6 @@ static int query_formats(AVFilterContext *ctx)
|
||||||
AV_PIX_FMT_YUV411P,
|
AV_PIX_FMT_YUV411P,
|
||||||
AV_PIX_FMT_NONE
|
AV_PIX_FMT_NONE
|
||||||
};
|
};
|
||||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define RADIUS_MIN 0.1
|
#define RADIUS_MIN 0.1
|
||||||
#define RADIUS_MAX 4.0
|
#define RADIUS_MAX 4.0
|
||||||
|
@ -326,7 +322,7 @@ const AVFilter ff_vf_sab = {
|
||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
FILTER_INPUTS(sab_inputs),
|
FILTER_INPUTS(sab_inputs),
|
||||||
FILTER_OUTPUTS(sab_outputs),
|
FILTER_OUTPUTS(sab_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||||
.priv_class = &sab_class,
|
.priv_class = &sab_class,
|
||||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue