|
|
@ -34,7 +34,7 @@ |
|
|
|
#include "threshold.h" |
|
|
|
#include "threshold.h" |
|
|
|
|
|
|
|
|
|
|
|
#define OFFSET(x) offsetof(ThresholdContext, x) |
|
|
|
#define OFFSET(x) offsetof(ThresholdContext, x) |
|
|
|
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
|
|
|
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
|
|
|
|
|
|
|
|
|
|
|
static const AVOption threshold_options[] = { |
|
|
|
static const AVOption threshold_options[] = { |
|
|
|
{ "planes", "set planes to filter", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=15}, 0, 15, FLAGS}, |
|
|
|
{ "planes", "set planes to filter", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=15}, 0, 15, FLAGS}, |
|
|
@ -365,4 +365,5 @@ const AVFilter ff_vf_threshold = { |
|
|
|
.inputs = inputs, |
|
|
|
.inputs = inputs, |
|
|
|
.outputs = outputs, |
|
|
|
.outputs = outputs, |
|
|
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, |
|
|
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, |
|
|
|
|
|
|
|
.process_command = ff_filter_process_command, |
|
|
|
}; |
|
|
|
}; |
|
|
|