1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_derain: Store format in filter, remove query function

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-27 15:33:52 +02:00
parent c355705ab1
commit b779e3bc8c

View File

@ -56,16 +56,6 @@ static const AVOption derain_options[] = {
AVFILTER_DEFINE_CLASS(derain);
static int query_formats(AVFilterContext *ctx)
{
const enum AVPixelFormat pixel_fmts[] = {
AV_PIX_FMT_RGB24,
AV_PIX_FMT_NONE
};
return ff_set_common_formats_from_list(ctx, pixel_fmts);
}
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
{
DNNAsyncStatusType async_state = 0;
@ -136,7 +126,7 @@ const AVFilter ff_vf_derain = {
.uninit = uninit,
FILTER_INPUTS(derain_inputs),
FILTER_OUTPUTS(derain_outputs),
FILTER_QUERY_FUNC(query_formats),
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_RGB24),
.priv_class = &derain_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
};