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
999a46b1
Commit
999a46b1
authored
Mar 31, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdutils: support filters in the help topic system.
parent
7d8ad6c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
cmdutils.c
cmdutils.c
+24
-0
No files found.
cmdutils.c
View file @
999a46b1
...
@@ -1613,6 +1613,28 @@ static void show_help_muxer(const char *name)
...
@@ -1613,6 +1613,28 @@ static void show_help_muxer(const char *name)
show_help_children
(
fmt
->
priv_class
,
AV_OPT_FLAG_ENCODING_PARAM
);
show_help_children
(
fmt
->
priv_class
,
AV_OPT_FLAG_ENCODING_PARAM
);
}
}
static
void
show_help_filter
(
const
char
*
name
)
{
const
AVFilter
*
filter
;
if
(
!
name
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"No filter name specified.
\n
"
);
return
;
}
filter
=
avfilter_get_by_name
(
name
);
if
(
!
filter
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Filter '%s' not found.
\n
"
,
name
);
return
;
}
printf
(
"Filter %s
\n
"
,
filter
->
name
);
if
(
filter
->
description
)
printf
(
" %s
\n
"
,
filter
->
description
);
if
(
filter
->
priv_class
)
show_help_children
(
filter
->
priv_class
,
AV_OPT_FLAG_FILTERING_PARAM
);
else
printf
(
"No AVOption available
\n
"
);
}
int
show_help
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
int
show_help
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
{
{
char
*
topic
,
*
par
;
char
*
topic
,
*
par
;
...
@@ -1633,6 +1655,8 @@ int show_help(void *optctx, const char *opt, const char *arg)
...
@@ -1633,6 +1655,8 @@ int show_help(void *optctx, const char *opt, const char *arg)
show_help_demuxer
(
par
);
show_help_demuxer
(
par
);
}
else
if
(
!
strcmp
(
topic
,
"muxer"
))
{
}
else
if
(
!
strcmp
(
topic
,
"muxer"
))
{
show_help_muxer
(
par
);
show_help_muxer
(
par
);
}
else
if
(
!
strcmp
(
topic
,
"filter"
))
{
show_help_filter
(
par
);
}
else
{
}
else
{
show_help_default
(
topic
,
par
);
show_help_default
(
topic
,
par
);
}
}
...
...
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