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
f9fada27
Commit
f9fada27
authored
Aug 15, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: split printing "main options" into global and per-file.
parent
6e3857fa
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
17 deletions
+29
-17
avconv_opt.c
avconv_opt.c
+21
-11
avplay.c
avplay.c
+2
-2
avprobe.c
avprobe.c
+1
-1
avserver.c
avserver.c
+1
-1
cmdutils.c
cmdutils.c
+2
-1
cmdutils.h
cmdutils.h
+2
-1
No files found.
avconv_opt.c
View file @
f9fada27
...
...
@@ -1791,6 +1791,8 @@ static int opt_filter_complex(const char *opt, const char *arg)
void
show_help_default
(
const
char
*
opt
,
const
char
*
arg
)
{
/* per-file options have at least one of those set */
const
int
per_file
=
OPT_SPEC
|
OPT_OFFSET
|
OPT_FUNC2
;
int
show_advanced
=
0
,
show_avoptions
=
0
;
if
(
opt
)
{
...
...
@@ -1812,27 +1814,35 @@ void show_help_default(const char *opt, const char *arg)
"
\n
"
,
program_name
);
show_help_options
(
options
,
"Print help / information / capabilities:"
,
OPT_EXIT
,
0
);
show_help_options
(
options
,
"Main options:"
,
0
,
OPT_EXPERT
|
OPT_AUDIO
|
OPT_VIDEO
|
OPT_SUBTITLE
|
OPT_EXIT
);
OPT_EXIT
,
0
,
0
);
show_help_options
(
options
,
"Global options (affect whole program "
"instead of just one file:"
,
0
,
per_file
|
OPT_EXIT
|
OPT_EXPERT
,
0
);
if
(
show_advanced
)
show_help_options
(
options
,
"Advanced global options:"
,
OPT_EXPERT
,
per_file
|
OPT_EXIT
,
0
);
show_help_options
(
options
,
"Per-file main options:"
,
0
,
OPT_EXPERT
|
OPT_AUDIO
|
OPT_VIDEO
|
OPT_SUBTITLE
|
OPT_EXIT
,
per_file
);
if
(
show_advanced
)
show_help_options
(
options
,
"Advanced options:"
,
OPT_EXPERT
,
OPT_AUDIO
|
OPT_VIDEO
|
OPT_SUBTITLE
);
show_help_options
(
options
,
"Advanced
per-file
options:"
,
OPT_EXPERT
,
OPT_AUDIO
|
OPT_VIDEO
|
OPT_SUBTITLE
,
per_file
);
show_help_options
(
options
,
"Video options:"
,
OPT_VIDEO
,
OPT_EXPERT
|
OPT_AUDIO
);
OPT_VIDEO
,
OPT_EXPERT
|
OPT_AUDIO
,
0
);
if
(
show_advanced
)
show_help_options
(
options
,
"Advanced Video options:"
,
OPT_EXPERT
|
OPT_VIDEO
,
OPT_AUDIO
);
OPT_EXPERT
|
OPT_VIDEO
,
OPT_AUDIO
,
0
);
show_help_options
(
options
,
"Audio options:"
,
OPT_AUDIO
,
OPT_EXPERT
|
OPT_VIDEO
);
OPT_AUDIO
,
OPT_EXPERT
|
OPT_VIDEO
,
0
);
if
(
show_advanced
)
show_help_options
(
options
,
"Advanced Audio options:"
,
OPT_EXPERT
|
OPT_AUDIO
,
OPT_VIDEO
);
OPT_EXPERT
|
OPT_AUDIO
,
OPT_VIDEO
,
0
);
show_help_options
(
options
,
"Subtitle options:"
,
OPT_SUBTITLE
,
0
);
OPT_SUBTITLE
,
0
,
0
);
printf
(
"
\n
"
);
if
(
show_avoptions
)
{
...
...
avplay.c
View file @
f9fada27
...
...
@@ -2924,8 +2924,8 @@ void show_help_default(const char *opt, const char *arg)
{
av_log_set_callback
(
log_callback_help
);
show_usage
();
show_help_options
(
options
,
"Main options:"
,
0
,
OPT_EXPERT
);
show_help_options
(
options
,
"Advanced options:"
,
OPT_EXPERT
,
0
);
show_help_options
(
options
,
"Main options:"
,
0
,
OPT_EXPERT
,
0
);
show_help_options
(
options
,
"Advanced options:"
,
OPT_EXPERT
,
0
,
0
);
printf
(
"
\n
"
);
show_help_children
(
avcodec_get_class
(),
AV_OPT_FLAG_DECODING_PARAM
);
show_help_children
(
avformat_get_class
(),
AV_OPT_FLAG_DECODING_PARAM
);
...
...
avprobe.c
View file @
f9fada27
...
...
@@ -872,7 +872,7 @@ void show_help_default(const char *opt, const char *arg)
{
av_log_set_callback
(
log_callback_help
);
show_usage
();
show_help_options
(
options
,
"Main options:"
,
0
,
0
);
show_help_options
(
options
,
"Main options:"
,
0
,
0
,
0
);
printf
(
"
\n
"
);
show_help_children
(
avformat_get_class
(),
AV_OPT_FLAG_DECODING_PARAM
);
}
...
...
avserver.c
View file @
f9fada27
...
...
@@ -4634,7 +4634,7 @@ void show_help_default(const char *opt, const char *arg)
printf
(
"usage: avserver [options]
\n
"
"Hyper fast multi format Audio/Video streaming server
\n
"
);
printf
(
"
\n
"
);
show_help_options
(
options
,
"Main options:"
,
0
,
0
);
show_help_options
(
options
,
"Main options:"
,
0
,
0
,
0
);
}
static
const
OptionDef
options
[]
=
{
...
...
cmdutils.c
View file @
f9fada27
...
...
@@ -114,7 +114,7 @@ int64_t parse_time_or_die(const char *context, const char *timestr,
}
void
show_help_options
(
const
OptionDef
*
options
,
const
char
*
msg
,
int
req_flags
,
int
rej_flags
)
int
rej_flags
,
int
alt_flags
)
{
const
OptionDef
*
po
;
int
first
;
...
...
@@ -124,6 +124,7 @@ void show_help_options(const OptionDef *options, const char *msg, int req_flags,
char
buf
[
64
];
if
(((
po
->
flags
&
req_flags
)
!=
req_flags
)
||
(
alt_flags
&&
!
(
po
->
flags
&
alt_flags
))
||
(
po
->
flags
&
rej_flags
))
continue
;
...
...
cmdutils.h
View file @
f9fada27
...
...
@@ -160,9 +160,10 @@ typedef struct {
* @param msg title of this group. Only printed if at least one option matches.
* @param req_flags print only options which have all those flags set.
* @param rej_flags don't print options which have any of those flags set.
* @param alt_flags print only options that have at least one of those flags set
*/
void
show_help_options
(
const
OptionDef
*
options
,
const
char
*
msg
,
int
req_flags
,
int
rej_flags
);
int
rej_flags
,
int
alt_flags
);
/**
* Show help for all options with given flags in class and all its
...
...
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