History

avfilter/vf_threshold: add support for commands

Paul B Mahol committed 5 years ago

Commit 207e9b11 parent 6210cc82 files · +6 −1Browse files

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t