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
28 * J. van de Weijer, Th. Gevers, A. Gijsenij "Edge-Based Color Constancy".28 * J. van de Weijer, Th. Gevers, A. Gijsenij "Edge-Based Color Constancy".
29 */29 */
30 30
31#include "config_components.h"
32
33#include "libavutil/imgutils.h"31#include "libavutil/imgutils.h"
34#include "libavutil/opt.h"32#include "libavutil/opt.h"
35#include "libavutil/pixdesc.h"33#include "libavutil/pixdesc.h"
@@ -719,8 +717,6 @@ static const AVFilterPad colorconstancy_inputs[] = { · 683 unmodified lines
719 },717 },
720};718};
721 719
722#if CONFIG_GREYEDGE_FILTER
723
724static const AVOption greyedge_options[] = {720static const AVOption greyedge_options[] = {
725 { "difford", "set differentiation order", OFFSET(difford), AV_OPT_TYPE_INT, {.i64=1}, 0, 2, FLAGS },721 { "difford", "set differentiation order", OFFSET(difford), AV_OPT_TYPE_INT, {.i64=1}, 0, 2, FLAGS },
726 { "minknorm", "set Minkowski norm", OFFSET(minknorm), AV_OPT_TYPE_INT, {.i64=1}, 0, 20, FLAGS },722 { "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
743 FILTER_SINGLE_PIXFMT(AV_PIX_FMT_GBRP),739 FILTER_SINGLE_PIXFMT(AV_PIX_FMT_GBRP),
744 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,740 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
745};741};
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