Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
65c4d5d7
Commit
65c4d5d7
authored
Apr 12, 2020
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/enum_options: fix build and add to Makefile
parent
5bd870a2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
14 deletions
+17
-14
Makefile
Makefile
+3
-0
Makefile
tools/Makefile
+1
-1
enum_options.c
tools/enum_options.c
+13
-13
No files found.
Makefile
View file @
65c4d5d7
...
...
@@ -62,6 +62,9 @@ tools/target_dem_fuzzer$(EXESUF): tools/target_dem_fuzzer.o $(FF_DEP_LIBS)
tools/target_io_dem_fuzzer$(EXESUF)
:
tools/target_io_dem_fuzzer.o $(FF_DEP_LIBS)
$(LD)
$(LDFLAGS)
$(LDEXEFLAGS)
$(LD_O)
$^
$(ELIBS)
$(FF_EXTRALIBS)
$(LIBFUZZER_PATH)
tools/enum_options$(EXESUF)
:
ELIBS = $(FF_EXTRALIBS)
tools/enum_options$(EXESUF)
:
$(FF_DEP_LIBS)
tools/sofa2wavs$(EXESUF)
:
ELIBS = $(FF_EXTRALIBS)
tools/uncoded_frame$(EXESUF)
:
$(FF_DEP_LIBS)
tools/uncoded_frame$(EXESUF)
:
ELIBS = $(FF_EXTRALIBS)
...
...
tools/Makefile
View file @
65c4d5d7
TOOLS
=
qt-faststart trasher uncoded_frame
TOOLS
=
enum_options
qt-faststart trasher uncoded_frame
TOOLS-$(CONFIG_LIBMYSOFA)
+=
sofa2wavs
TOOLS-$(CONFIG_ZLIB)
+=
cws2fws
...
...
tools/enum_options.c
View file @
65c4d5d7
...
...
@@ -40,14 +40,14 @@ static void print_option(const AVClass *class, const AVOption *o)
{
printf
(
"@item -%s @var{"
,
o
->
name
);
switch
(
o
->
type
)
{
case
FF
_OPT_TYPE_BINARY
:
printf
(
"hexadecimal string"
);
break
;
case
FF
_OPT_TYPE_STRING
:
printf
(
"string"
);
break
;
case
FF
_OPT_TYPE_INT
:
case
FF
_OPT_TYPE_INT64
:
printf
(
"integer"
);
break
;
case
FF
_OPT_TYPE_FLOAT
:
case
FF
_OPT_TYPE_DOUBLE
:
printf
(
"float"
);
break
;
case
FF
_OPT_TYPE_RATIONAL
:
printf
(
"rational number"
);
break
;
case
FF
_OPT_TYPE_FLAGS
:
printf
(
"flags"
);
break
;
case
AV
_OPT_TYPE_BINARY
:
printf
(
"hexadecimal string"
);
break
;
case
AV
_OPT_TYPE_STRING
:
printf
(
"string"
);
break
;
case
AV
_OPT_TYPE_INT
:
case
AV
_OPT_TYPE_INT64
:
printf
(
"integer"
);
break
;
case
AV
_OPT_TYPE_FLOAT
:
case
AV
_OPT_TYPE_DOUBLE
:
printf
(
"float"
);
break
;
case
AV
_OPT_TYPE_RATIONAL
:
printf
(
"rational number"
);
break
;
case
AV
_OPT_TYPE_FLAGS
:
printf
(
"flags"
);
break
;
default:
printf
(
"value"
);
break
;
}
printf
(
"} (@emph{"
);
...
...
@@ -68,8 +68,8 @@ static void print_option(const AVClass *class, const AVOption *o)
const
AVOption
*
u
=
NULL
;
printf
(
"
\n
Possible values:
\n
@table @samp
\n
"
);
while
((
u
=
av_
next_option
(
&
class
,
u
)))
if
(
u
->
type
==
FF
_OPT_TYPE_CONST
&&
u
->
unit
&&
!
strcmp
(
u
->
unit
,
o
->
unit
))
while
((
u
=
av_
opt_next
(
&
class
,
u
)))
if
(
u
->
type
==
AV
_OPT_TYPE_CONST
&&
u
->
unit
&&
!
strcmp
(
u
->
unit
,
o
->
unit
))
printf
(
"@item %s
\n
%s
\n
"
,
u
->
name
,
u
->
help
?
u
->
help
:
""
);
printf
(
"@end table
\n
"
);
}
...
...
@@ -80,8 +80,8 @@ static void show_opts(const AVClass *class)
const
AVOption
*
o
=
NULL
;
printf
(
"@table @option
\n
"
);
while
((
o
=
av_
next_option
(
&
class
,
o
)))
if
(
o
->
type
!=
FF
_OPT_TYPE_CONST
)
while
((
o
=
av_
opt_next
(
&
class
,
o
)))
if
(
o
->
type
!=
AV
_OPT_TYPE_CONST
)
print_option
(
class
,
o
);
printf
(
"@end table
\n
"
);
}
...
...
@@ -114,7 +114,7 @@ static void show_format_opts(void)
static
void
show_codec_opts
(
void
)
{
void
*
iter
=
NULL
;
AVCodec
*
c
=
NULL
;
const
AVCodec
*
c
;
printf
(
"@section Generic codec AVOptions
\n
"
);
show_opts
(
avcodec_get_class
());
...
...
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