Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
7fcb8416
Commit
7fcb8416
authored
Oct 08, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_scroll: add support for commands
parent
877e2e92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
vf_scroll.c
libavfilter/vf_scroll.c
+6
-4
No files found.
libavfilter/vf_scroll.c
View file @
7fcb8416
...
...
@@ -155,12 +155,13 @@ static int config_input(AVFilterLink *inlink)
#define OFFSET(x) offsetof(ScrollContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
#define VFT AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
static
const
AVOption
scroll_options
[]
=
{
{
"horizontal"
,
"set the horizontal scrolling speed"
,
OFFSET
(
h_speed
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.},
-
1
.,
1
.,
FLAGS
},
{
"h"
,
"set the horizontal scrolling speed"
,
OFFSET
(
h_speed
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.},
-
1
.,
1
.,
FLAGS
},
{
"vertical"
,
"set the vertical scrolling speed"
,
OFFSET
(
v_speed
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.},
-
1
.,
1
.,
FLAGS
},
{
"v"
,
"set the vertical scrolling speed"
,
OFFSET
(
v_speed
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.},
-
1
.,
1
.,
FLAGS
},
{
"horizontal"
,
"set the horizontal scrolling speed"
,
OFFSET
(
h_speed
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.},
-
1
.,
1
.,
VFT
},
{
"h"
,
"set the horizontal scrolling speed"
,
OFFSET
(
h_speed
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.},
-
1
.,
1
.,
VFT
},
{
"vertical"
,
"set the vertical scrolling speed"
,
OFFSET
(
v_speed
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.},
-
1
.,
1
.,
VFT
},
{
"v"
,
"set the vertical scrolling speed"
,
OFFSET
(
v_speed
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.},
-
1
.,
1
.,
VFT
},
{
"hpos"
,
"set initial horizontal position"
,
OFFSET
(
h_ipos
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.},
0
,
1
.,
FLAGS
},
{
"vpos"
,
"set initial vertical position"
,
OFFSET
(
v_ipos
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.},
0
,
1
.,
FLAGS
},
{
NULL
}
...
...
@@ -195,4 +196,5 @@ AVFilter ff_vf_scroll = {
.
inputs
=
scroll_inputs
,
.
outputs
=
scroll_outputs
,
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
,
.
process_command
=
ff_filter_process_command
,
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment