History

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

Andreas Rheinhardt committed 5 years ago

Commit 9e485521 parent a3cd5bb1 file · +1 −8Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_lensfun.c+1−8
@@ -193,13 +193,6 @@ static av_cold int init(AVFilterContext *ctx) · 192 unmodified lines
193193 return 0;
194194 }
195195
196−static int query_formats(AVFilterContext *ctx)
197−{
198− // Some of the functions provided by lensfun require pixels in RGB format
199− static const enum AVPixelFormat fmts[] = {AV_PIX_FMT_RGB24, AV_PIX_FMT_NONE};
200− return ff_set_common_formats_from_list(ctx, fmts);
201−}
202−
203196 static float lanczos_kernel(float x)
204197 {
205198 if (x == 0.0f) {
@@ -536,7 +529,7 @@ const AVFilter ff_vf_lensfun = { · 330 unmodified lines
536529 .uninit = uninit,
537530 FILTER_INPUTS(lensfun_inputs),
538531 FILTER_OUTPUTS(lensfun_outputs),
539− FILTER_QUERY_FUNC(query_formats),
532+ FILTER_SINGLE_PIXFMT(AV_PIX_FMT_RGB24),
540533 .priv_class = &lensfun_class,
541534 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
542535 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t