avfilter/vf_maskedthreshold: add support for commands

This commit is contained in:
Paul B Mahol 2020-12-19 23:05:36 +01:00
parent 64e572db46
commit 3336ca4644
2 changed files with 6 additions and 1 deletions

View File

@ -14055,6 +14055,10 @@ copied from second stream.
By default value 0xf, all planes will be processed. By default value 0xf, all planes will be processed.
@end table @end table
@subsection Commands
This filter supports the all above options as @ref{commands}.
@section maskfun @section maskfun
Create mask from input video. Create mask from input video.

View File

@ -43,7 +43,7 @@ typedef struct MaskedThresholdContext {
} MaskedThresholdContext; } MaskedThresholdContext;
#define OFFSET(x) offsetof(MaskedThresholdContext, x) #define OFFSET(x) offsetof(MaskedThresholdContext, x)
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
typedef struct ThreadData { typedef struct ThreadData {
AVFrame *src, *ref, *dst; AVFrame *src, *ref, *dst;
@ -295,4 +295,5 @@ AVFilter ff_vf_maskedthreshold = {
.inputs = maskedthreshold_inputs, .inputs = maskedthreshold_inputs,
.outputs = maskedthreshold_outputs, .outputs = maskedthreshold_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,
}; };