mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
avfilter/vsrc_mandelbrot: Store format in filter, remove query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
84b04e610d
commit
9a62afc5fc
@ -146,16 +146,6 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
av_freep(&s->zyklus);
|
av_freep(&s->zyklus);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
|
||||||
{
|
|
||||||
static const enum AVPixelFormat pix_fmts[] = {
|
|
||||||
AV_PIX_FMT_0BGR32,
|
|
||||||
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)
|
||||||
{
|
{
|
||||||
AVFilterContext *ctx = inlink->src;
|
AVFilterContext *ctx = inlink->src;
|
||||||
@ -424,5 +414,5 @@ const AVFilter ff_vsrc_mandelbrot = {
|
|||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
.inputs = NULL,
|
.inputs = NULL,
|
||||||
FILTER_OUTPUTS(mandelbrot_outputs),
|
FILTER_OUTPUTS(mandelbrot_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_0BGR32),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user