mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-28 11:21:42 +08:00
avfilter/vf_kerndeint: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -66,8 +66,6 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
av_freep(&kerndeint->tmp_data[0]);
|
av_freep(&kerndeint->tmp_data[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
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_YUYV422,
|
AV_PIX_FMT_YUYV422,
|
||||||
@@ -78,9 +76,6 @@ static int query_formats(AVFilterContext *ctx)
|
|||||||
AV_PIX_FMT_NONE
|
AV_PIX_FMT_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int config_props(AVFilterLink *inlink)
|
static int config_props(AVFilterLink *inlink)
|
||||||
{
|
{
|
||||||
KerndeintContext *kerndeint = inlink->dst->priv;
|
KerndeintContext *kerndeint = inlink->dst->priv;
|
||||||
@@ -310,5 +305,5 @@ const AVFilter ff_vf_kerndeint = {
|
|||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
FILTER_INPUTS(kerndeint_inputs),
|
FILTER_INPUTS(kerndeint_inputs),
|
||||||
FILTER_OUTPUTS(kerndeint_outputs),
|
FILTER_OUTPUTS(kerndeint_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user