Unified · Split
| @@ -19168,6 +19168,10 @@ The timestamp expressed in seconds. It's NAN if the input timestamp is unknown. · 19167 unmodified lines | ||
| 19168 | 19168 | the position in the file of the input frame, NAN if unknown |
| 19169 | 19169 | @end table |
| 19170 | 19170 | |
| 19171 | +@subsection Commands | |
| 19172 | + | |
| 19173 | +This filter supports the all above options as @ref{commands}. | |
| 19174 | + | |
| 19171 | 19175 | @section swapuv |
| 19172 | 19176 | Swap U & V plane. |
| 19173 | 19177 | |
| @@ -43,7 +43,7 @@ typedef struct SwapRectContext { · 42 unmodified lines | ||
| 43 | 43 | } SwapRectContext; |
| 44 | 44 | |
| 45 | 45 | #define OFFSET(x) offsetof(SwapRectContext, x) |
| 46 | −#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM | |
| 46 | +#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM | |
| 47 | 47 | static const AVOption swaprect_options[] = { |
| 48 | 48 | { "w", "set rect width", OFFSET(w), AV_OPT_TYPE_STRING, {.str="w/2"}, 0, 0, .flags = FLAGS }, |
| 49 | 49 | { "h", "set rect height", OFFSET(h), AV_OPT_TYPE_STRING, {.str="h/2"}, 0, 0, .flags = FLAGS }, |
| @@ -253,4 +253,5 @@ AVFilter ff_vf_swaprect = { · 203 unmodified lines | ||
| 253 | 253 | .inputs = inputs, |
| 254 | 254 | .outputs = outputs, |
| 255 | 255 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, |
| 256 | + .process_command = ff_filter_process_command, | |
| 256 | 257 | }; |