You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -28,8 +28,6 @@
|
|||||||
* J. van de Weijer, Th. Gevers, A. Gijsenij "Edge-Based Color Constancy".
|
* J. van de Weijer, Th. Gevers, A. Gijsenij "Edge-Based Color Constancy".
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config_components.h"
|
|
||||||
|
|
||||||
#include "libavutil/imgutils.h"
|
#include "libavutil/imgutils.h"
|
||||||
#include "libavutil/opt.h"
|
#include "libavutil/opt.h"
|
||||||
#include "libavutil/pixdesc.h"
|
#include "libavutil/pixdesc.h"
|
||||||
@@ -719,8 +717,6 @@ static const AVFilterPad colorconstancy_inputs[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
#if CONFIG_GREYEDGE_FILTER
|
|
||||||
|
|
||||||
static const AVOption greyedge_options[] = {
|
static const AVOption greyedge_options[] = {
|
||||||
{ "difford", "set differentiation order", OFFSET(difford), AV_OPT_TYPE_INT, {.i64=1}, 0, 2, FLAGS },
|
{ "difford", "set differentiation order", OFFSET(difford), AV_OPT_TYPE_INT, {.i64=1}, 0, 2, FLAGS },
|
||||||
{ "minknorm", "set Minkowski norm", OFFSET(minknorm), AV_OPT_TYPE_INT, {.i64=1}, 0, 20, FLAGS },
|
{ "minknorm", "set Minkowski norm", OFFSET(minknorm), AV_OPT_TYPE_INT, {.i64=1}, 0, 20, FLAGS },
|
||||||
@@ -743,5 +739,3 @@ const AVFilter ff_vf_greyedge = {
|
|||||||
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_GBRP),
|
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_GBRP),
|
||||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* CONFIG_GREY_EDGE_FILTER */
|
|
||||||
|
Reference in New Issue
Block a user