mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-13 19:01:03 +00:00
avfilter/vsrc_cellauto: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
90daa728d8
commit
77b72a0759
@ -308,12 +308,6 @@ static int request_frame(AVFilterLink *outlink)
|
|||||||
return ff_filter_frame(outlink, picref);
|
return ff_filter_frame(outlink, picref);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
|
||||||
{
|
|
||||||
static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_MONOBLACK, AV_PIX_FMT_NONE };
|
|
||||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const AVFilterPad cellauto_outputs[] = {
|
static const AVFilterPad cellauto_outputs[] = {
|
||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
@ -332,5 +326,5 @@ const AVFilter ff_vsrc_cellauto = {
|
|||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
.inputs = NULL,
|
.inputs = NULL,
|
||||||
FILTER_OUTPUTS(cellauto_outputs),
|
FILTER_OUTPUTS(cellauto_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_MONOBLACK),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user