Unified · Split
| @@ -7095,6 +7095,10 @@ colorbalance=rs=.3 · 7094 unmodified lines | ||
| 7095 | 7095 | @end example |
| 7096 | 7096 | @end itemize |
| 7097 | 7097 | |
| 7098 | +@subsection Commands | |
| 7099 | + | |
| 7100 | +This filter supports the all above options as @ref{commands}. | |
| 7101 | + | |
| 7098 | 7102 | @section colorchannelmixer |
| 7099 | 7103 | |
| 7100 | 7104 | Adjust video input frames by re-mixing color channels. |
| @@ -57,7 +57,7 @@ typedef struct ColorBalanceContext { · 56 unmodified lines | ||
| 57 | 57 | } ColorBalanceContext; |
| 58 | 58 | |
| 59 | 59 | #define OFFSET(x) offsetof(ColorBalanceContext, x) |
| 60 | −#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM | |
| 60 | +#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM | |
| 61 | 61 | static const AVOption colorbalance_options[] = { |
| 62 | 62 | { "rs", "set red shadows", OFFSET(cyan_red.shadows), AV_OPT_TYPE_FLOAT, {.dbl=0}, -1, 1, FLAGS }, |
| 63 | 63 | { "gs", "set green shadows", OFFSET(magenta_green.shadows), AV_OPT_TYPE_FLOAT, {.dbl=0}, -1, 1, FLAGS }, |
| @@ -448,4 +448,5 @@ AVFilter ff_vf_colorbalance = { · 384 unmodified lines | ||
| 448 | 448 | .inputs = colorbalance_inputs, |
| 449 | 449 | .outputs = colorbalance_outputs, |
| 450 | 450 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, |
| 451 | + .process_command = ff_filter_process_command, | |
| 451 | 452 | }; |