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
8c5dcaad
Commit
8c5dcaad
authored
Oct 03, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AVOptions: add av_opt_next, deprecate av_next_option.
Just for naming consistency, no functional changes.
parent
dca055be
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
opt.c
libavutil/opt.c
+7
-0
opt.h
libavutil/opt.h
+12
-1
No files found.
libavutil/opt.c
View file @
8c5dcaad
...
...
@@ -47,7 +47,14 @@ const AVOption *av_find_opt(void *v, const char *name, const char *unit, int mas
}
#endif
#if FF_API_OLD_AVOPTIONS
const
AVOption
*
av_next_option
(
void
*
obj
,
const
AVOption
*
last
)
{
return
av_opt_next
(
obj
,
last
);
}
#endif
const
AVOption
*
av_opt_next
(
void
*
obj
,
const
AVOption
*
last
)
{
if
(
last
&&
last
[
1
].
name
)
return
++
last
;
else
if
(
last
)
return
NULL
;
...
...
libavutil/opt.h
View file @
8c5dcaad
...
...
@@ -150,8 +150,8 @@ attribute_deprecated double av_get_double(void *obj, const char *name, const AVO
attribute_deprecated
AVRational
av_get_q
(
void
*
obj
,
const
char
*
name
,
const
AVOption
**
o_out
);
attribute_deprecated
int64_t
av_get_int
(
void
*
obj
,
const
char
*
name
,
const
AVOption
**
o_out
);
attribute_deprecated
const
char
*
av_get_string
(
void
*
obj
,
const
char
*
name
,
const
AVOption
**
o_out
,
char
*
buf
,
int
buf_len
);
attribute_deprecated
const
AVOption
*
av_next_option
(
void
*
obj
,
const
AVOption
*
last
);
#endif
const
AVOption
*
av_next_option
(
void
*
obj
,
const
AVOption
*
last
);
/**
* Show the obj options.
...
...
@@ -309,6 +309,17 @@ const AVOption *av_opt_find(void *obj, const char *name, const char *unit,
const
AVOption
*
av_opt_find2
(
void
*
obj
,
const
char
*
name
,
const
char
*
unit
,
int
opt_flags
,
int
search_flags
,
void
**
target_obj
);
/**
* Iterate over all AVOptions belonging to obj.
*
* @param obj an AVOptions-enabled struct or a double pointer to an
* AVClass describing it.
* @param prev result of the previous call to av_opt_next() on this object
* or NULL
* @return next AVOption or NULL
*/
const
AVOption
*
av_opt_next
(
void
*
obj
,
const
AVOption
*
prev
);
/**
* Iterate over AVOptions-enabled children of obj.
*
...
...
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