Commit 0a8312f5 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avfilter/vf_exposure: Use formats list instead of query function

Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent b779e3bc
...@@ -75,16 +75,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) ...@@ -75,16 +75,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
return ff_filter_frame(ctx->outputs[0], frame); return ff_filter_frame(ctx->outputs[0], frame);
} }
static av_cold int query_formats(AVFilterContext *ctx)
{
static const enum AVPixelFormat pixel_fmts[] = {
AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32,
AV_PIX_FMT_NONE
};
return ff_set_common_formats_from_list(ctx, pixel_fmts);
}
static av_cold int config_input(AVFilterLink *inlink) static av_cold int config_input(AVFilterLink *inlink)
{ {
AVFilterContext *ctx = inlink->dst; AVFilterContext *ctx = inlink->dst;
...@@ -130,7 +120,7 @@ const AVFilter ff_vf_exposure = { ...@@ -130,7 +120,7 @@ const AVFilter ff_vf_exposure = {
.priv_class = &exposure_class, .priv_class = &exposure_class,
FILTER_INPUTS(exposure_inputs), FILTER_INPUTS(exposure_inputs),
FILTER_OUTPUTS(exposure_outputs), FILTER_OUTPUTS(exposure_outputs),
FILTER_QUERY_FUNC(query_formats), FILTER_PIXFMTS(AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
.process_command = ff_filter_process_command, .process_command = ff_filter_process_command,
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment