Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3860e34b
Commit
3860e34b
authored
Nov 28, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/sendcmd: expose the options for both filters.
parent
0b70ffa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
f_sendcmd.c
libavfilter/f_sendcmd.c
+22
-6
No files found.
libavfilter/f_sendcmd.c
View file @
3860e34b
...
...
@@ -89,8 +89,6 @@ static const AVOption options[] = {
{
NULL
},
};
AVFILTER_DEFINE_CLASS
(
sendcmd
);
#define SPACES " \f\t\n\r"
static
void
skip_comments
(
const
char
**
buf
)
...
...
@@ -370,12 +368,12 @@ static int cmp_intervals(const void *a, const void *b)
return
ret
==
0
?
i1
->
index
-
i2
->
index
:
ret
;
}
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
,
const
AVClass
*
class
)
{
SendCmdContext
*
sendcmd
=
ctx
->
priv
;
int
ret
,
i
,
j
;
sendcmd
->
class
=
&
sendcmd_
class
;
sendcmd
->
class
=
class
;
av_opt_set_defaults
(
sendcmd
);
if
((
ret
=
av_set_options_string
(
sendcmd
,
args
,
"="
,
":"
))
<
0
)
...
...
@@ -518,6 +516,14 @@ end:
#if CONFIG_SENDCMD_FILTER
#define sendcmd_options options
AVFILTER_DEFINE_CLASS
(
sendcmd
);
static
av_cold
int
sendcmd_init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
return
init
(
ctx
,
args
,
&
sendcmd_class
);
}
static
const
AVFilterPad
sendcmd_inputs
[]
=
{
{
.
name
=
"default"
,
...
...
@@ -541,17 +547,26 @@ AVFilter avfilter_vf_sendcmd = {
.
name
=
"sendcmd"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Send commands to filters."
),
.
init
=
init
,
.
init
=
sendcmd_
init
,
.
uninit
=
uninit
,
.
priv_size
=
sizeof
(
SendCmdContext
),
.
inputs
=
sendcmd_inputs
,
.
outputs
=
sendcmd_outputs
,
.
priv_class
=
&
sendcmd_class
,
};
#endif
#if CONFIG_ASENDCMD_FILTER
#define asendcmd_options options
AVFILTER_DEFINE_CLASS
(
asendcmd
);
static
av_cold
int
asendcmd_init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
return
init
(
ctx
,
args
,
&
asendcmd_class
);
}
static
const
AVFilterPad
asendcmd_inputs
[]
=
{
{
.
name
=
"default"
,
...
...
@@ -574,11 +589,12 @@ AVFilter avfilter_af_asendcmd = {
.
name
=
"asendcmd"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Send commands to filters."
),
.
init
=
init
,
.
init
=
asendcmd_
init
,
.
uninit
=
uninit
,
.
priv_size
=
sizeof
(
SendCmdContext
),
.
inputs
=
asendcmd_inputs
,
.
outputs
=
asendcmd_outputs
,
.
priv_class
=
&
asendcmd_class
,
};
#endif
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