mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-13 19:01:03 +00:00
avfilter/vsrc_sierpinski: Store format in filter, remove query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
a26efeb121
commit
b36514b9d9
@ -71,16 +71,6 @@ static const AVOption sierpinski_options[] = {
|
|||||||
|
|
||||||
AVFILTER_DEFINE_CLASS(sierpinski);
|
AVFILTER_DEFINE_CLASS(sierpinski);
|
||||||
|
|
||||||
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 fill_sierpinski(SierpinskiContext *s, int x, int y)
|
static int fill_sierpinski(SierpinskiContext *s, int x, int y)
|
||||||
{
|
{
|
||||||
int pos_x = x + s->pos_x;
|
int pos_x = x + s->pos_x;
|
||||||
@ -227,6 +217,6 @@ const AVFilter ff_vsrc_sierpinski = {
|
|||||||
.priv_class = &sierpinski_class,
|
.priv_class = &sierpinski_class,
|
||||||
.inputs = NULL,
|
.inputs = NULL,
|
||||||
FILTER_OUTPUTS(sierpinski_outputs),
|
FILTER_OUTPUTS(sierpinski_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_0BGR32),
|
||||||
.flags = AVFILTER_FLAG_SLICE_THREADS,
|
.flags = AVFILTER_FLAG_SLICE_THREADS,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user