History

avfilter/vf_colorconstancy: Remove redundant CONFIG check

This file is only used by the greyedge filter and therefore only compiled if said filter is enabled. This also allows to remove a config_components.h inclusion, avoiding unnecessary rebuilds.

Andreas Rheinhardt committed 3 years ago

Commit 571d0351 parent 2f62a431 file · +0 −6Browse files

Unified · Split

libavfilter/vf_colorconstancy.c+0−6
@@ -28,8 +28,6 @@ · 27 unmodified lines
2828 * J. van de Weijer, Th. Gevers, A. Gijsenij "Edge-Based Color Constancy".
2929 */
3030
31−#include "config_components.h"
32−
3331 #include "libavutil/imgutils.h"
3432 #include "libavutil/opt.h"
3533 #include "libavutil/pixdesc.h"
@@ -719,8 +717,6 @@ static const AVFilterPad colorconstancy_inputs[] = { · 683 unmodified lines
719717 },
720718 };
721719
722−#if CONFIG_GREYEDGE_FILTER
723−
724720 static const AVOption greyedge_options[] = {
725721 { "difford", "set differentiation order", OFFSET(difford), AV_OPT_TYPE_INT, {.i64=1}, 0, 2, FLAGS },
726722 { "minknorm", "set Minkowski norm", OFFSET(minknorm), AV_OPT_TYPE_INT, {.i64=1}, 0, 20, FLAGS },
@@ -743,5 +739,3 @@ const AVFilter ff_vf_greyedge = { · 16 unmodified lines
743739 FILTER_SINGLE_PIXFMT(AV_PIX_FMT_GBRP),
744740 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
745741 };
746−
747−#endif /* CONFIG_GREY_EDGE_FILTER */

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