Unified · Split
| @@ -19863,6 +19863,10 @@ otherwise fourth stream pixel component value will be picked. · 19862 unmodified lines | ||
| 19863 | 19863 | |
| 19864 | 19864 | Using color source filter one can perform various types of thresholding: |
| 19865 | 19865 | |
| 19866 | +@subsection Commands | |
| 19867 | + | |
| 19868 | +This filter supports the all options as @ref{commands}. | |
| 19869 | + | |
| 19866 | 19870 | @subsection Examples |
| 19867 | 19871 | |
| 19868 | 19872 | @itemize |
| @@ -34,7 +34,7 @@ · 33 unmodified lines | ||
| 34 | 34 | #include "threshold.h" |
| 35 | 35 | |
| 36 | 36 | #define OFFSET(x) offsetof(ThresholdContext, x) |
| 37 | −#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM | |
| 37 | +#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM | |
| 38 | 38 | |
| 39 | 39 | static const AVOption threshold_options[] = { |
| 40 | 40 | { "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 = { · 324 unmodified lines | ||
| 365 | 365 | .inputs = inputs, |
| 366 | 366 | .outputs = outputs, |
| 367 | 367 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, |
| 368 | + .process_command = ff_filter_process_command, | |
| 368 | 369 | }; |