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
b4c89c90
Commit
b4c89c90
authored
Dec 28, 2013
by
Carl Eugen Hoyos
Committed by
Carl Eugen Hoyos
Dec 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow hiding the banner.
Fixes ticket #3246.
parent
9ed64001
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
cmdutils.c
cmdutils.c
+5
-1
cmdutils.h
cmdutils.h
+1
-0
cmdutils_common_opts.h
cmdutils_common_opts.h
+1
-0
fftools-common-opts.texi
doc/fftools-common-opts.texi
+7
-0
No files found.
cmdutils.c
View file @
b4c89c90
...
...
@@ -66,6 +66,7 @@ AVDictionary *swr_opts;
AVDictionary
*
format_opts
,
*
codec_opts
,
*
resample_opts
;
static
FILE
*
report_file
;
int
hide_banner
=
0
;
void
init_opts
(
void
)
{
...
...
@@ -491,6 +492,9 @@ void parse_loglevel(int argc, char **argv, const OptionDef *options)
fflush
(
report_file
);
}
}
idx
=
locate_option
(
argc
,
argv
,
options
,
"hide_banner"
);
if
(
idx
)
hide_banner
=
1
;
}
static
const
AVOption
*
opt_find
(
void
*
obj
,
const
char
*
name
,
const
char
*
unit
,
...
...
@@ -1083,7 +1087,7 @@ static void print_buildconf(int flags, int level)
void
show_banner
(
int
argc
,
char
**
argv
,
const
OptionDef
*
options
)
{
int
idx
=
locate_option
(
argc
,
argv
,
options
,
"version"
);
if
(
idx
)
if
(
hide_banner
||
idx
)
return
;
print_program_info
(
INDENT
|
SHOW_COPYRIGHT
,
AV_LOG_INFO
);
...
...
cmdutils.h
View file @
b4c89c90
...
...
@@ -48,6 +48,7 @@ extern AVFormatContext *avformat_opts;
extern
struct
SwsContext
*
sws_opts
;
extern
AVDictionary
*
swr_opts
;
extern
AVDictionary
*
format_opts
,
*
codec_opts
,
*
resample_opts
;
extern
int
hide_banner
;
/**
* Register a program-specific cleanup routine.
...
...
cmdutils_common_opts.h
View file @
b4c89c90
...
...
@@ -21,6 +21,7 @@
{
"report"
,
0
,
{(
void
*
)
opt_report
},
"generate a report"
},
{
"max_alloc"
,
HAS_ARG
,
{.
func_arg
=
opt_max_alloc
},
"set maximum size of a single allocated block"
,
"bytes"
},
{
"cpuflags"
,
HAS_ARG
|
OPT_EXPERT
,
{
.
func_arg
=
opt_cpuflags
},
"force specific cpu flags"
,
"flags"
},
{
"hide_banner"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
hide_banner
},
"do not show program banner"
,
"hide_banner"
},
#if CONFIG_OPENCL
{
"opencl_bench"
,
OPT_EXIT
,
{.
func_arg
=
opt_opencl_bench
},
"run benchmark on all OpenCL devices and show results"
},
{
"opencl_options"
,
HAS_ARG
,
{.
func_arg
=
opt_opencl
},
"set OpenCL environment options"
},
...
...
doc/fftools-common-opts.texi
View file @
b4c89c90
...
...
@@ -194,6 +194,13 @@ to a plain @code{%}
Errors in parsing the environment variable are not fatal, and will not
appear in the report.
@item -hide_banner
Suppress printing banner.
All FFmpeg tools will normally show a copyright notice, build options
and library versions. This option can be used to suppress printing
this information.
@item -cpuflags flags (@emph{global})
Allows setting and clearing cpu flags. This option is intended
for testing. Do not use it unless you know what you're doing.
...
...
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