Unified · Split
| @@ -155,12 +155,13 @@ static int config_input(AVFilterLink *inlink) · 154 unmodified lines | |||
| 155 | 155 | ||
| 156 | #define OFFSET(x) offsetof(ScrollContext, x) | 156 | #define OFFSET(x) offsetof(ScrollContext, x) |
| 157 | #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM | 157 | #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
| 158 | #define VFT AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM | ||
| 158 | 159 | ||
| 159 | static const AVOption scroll_options[] = { | 160 | static const AVOption scroll_options[] = { |
| 160 | { "horizontal", "set the horizontal scrolling speed", OFFSET(h_speed), AV_OPT_TYPE_FLOAT, {.dbl=0.}, -1., 1., FLAGS }, | 161 | { "horizontal", "set the horizontal scrolling speed", OFFSET(h_speed), AV_OPT_TYPE_FLOAT, {.dbl=0.}, -1., 1., VFT }, |
| 161 | { "h", "set the horizontal scrolling speed", OFFSET(h_speed), AV_OPT_TYPE_FLOAT, {.dbl=0.}, -1., 1., FLAGS }, | 162 | { "h", "set the horizontal scrolling speed", OFFSET(h_speed), AV_OPT_TYPE_FLOAT, {.dbl=0.}, -1., 1., VFT }, |
| 162 | { "vertical", "set the vertical scrolling speed", OFFSET(v_speed), AV_OPT_TYPE_FLOAT, {.dbl=0.}, -1., 1., FLAGS }, | 163 | { "vertical", "set the vertical scrolling speed", OFFSET(v_speed), AV_OPT_TYPE_FLOAT, {.dbl=0.}, -1., 1., VFT }, |
| 163 | { "v", "set the vertical scrolling speed", OFFSET(v_speed), AV_OPT_TYPE_FLOAT, {.dbl=0.}, -1., 1., FLAGS }, | 164 | { "v", "set the vertical scrolling speed", OFFSET(v_speed), AV_OPT_TYPE_FLOAT, {.dbl=0.}, -1., 1., VFT }, |
| 164 | { "hpos", "set initial horizontal position", OFFSET(h_ipos), AV_OPT_TYPE_FLOAT, {.dbl=0.}, 0, 1., FLAGS }, | 165 | { "hpos", "set initial horizontal position", OFFSET(h_ipos), AV_OPT_TYPE_FLOAT, {.dbl=0.}, 0, 1., FLAGS }, |
| 165 | { "vpos", "set initial vertical position", OFFSET(v_ipos), AV_OPT_TYPE_FLOAT, {.dbl=0.}, 0, 1., FLAGS }, | 166 | { "vpos", "set initial vertical position", OFFSET(v_ipos), AV_OPT_TYPE_FLOAT, {.dbl=0.}, 0, 1., FLAGS }, |
| 166 | { NULL } | 167 | { NULL } |
| @@ -195,4 +196,5 @@ AVFilter ff_vf_scroll = { · 28 unmodified lines | |||
| 195 | .inputs = scroll_inputs, | 196 | .inputs = scroll_inputs, |
| 196 | .outputs = scroll_outputs, | 197 | .outputs = scroll_outputs, |
| 197 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, | 198 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, |
| 199 | .process_command = ff_filter_process_command, | ||
| 198 | }; | 200 | }; |