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

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/369/head
Andreas Rheinhardt 3 years ago
parent c355705ab1
commit b779e3bc8c
  1. 12
      libavfilter/vf_derain.c

@ -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,
};

Loading…
Cancel
Save