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.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -28,8 +28,6 @@ · 27 unmodified lines | ||
| 28 | 28 | * J. van de Weijer, Th. Gevers, A. Gijsenij "Edge-Based Color Constancy". |
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | −#include "config_components.h" | |
| 32 | − | |
| 33 | 31 | #include "libavutil/imgutils.h" |
| 34 | 32 | #include "libavutil/opt.h" |
| 35 | 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 | − | |
| 724 | 720 | static const AVOption greyedge_options[] = { |
| 725 | 721 | { "difford", "set differentiation order", OFFSET(difford), AV_OPT_TYPE_INT, {.i64=1}, 0, 2, FLAGS }, |
| 726 | 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 | 739 | FILTER_SINGLE_PIXFMT(AV_PIX_FMT_GBRP), |
| 744 | 740 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, |
| 745 | 741 | }; |
| 746 | − | |
| 747 | −#endif /* CONFIG_GREY_EDGE_FILTER */ | |