Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
8c5dcaad
Commit
8c5dcaad
authored
13 years ago
by
Anton Khirnov
Browse files
Options
Downloads
Patches
Plain Diff
AVOptions: add av_opt_next, deprecate av_next_option.
Just for naming consistency, no functional changes.
parent
dca055be
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavutil/opt.c
+7
-0
7 additions, 0 deletions
libavutil/opt.c
libavutil/opt.h
+12
-1
12 additions, 1 deletion
libavutil/opt.h
with
19 additions
and
1 deletion
libavutil/opt.c
+
7
−
0
View file @
8c5dcaad
...
@@ -47,7 +47,14 @@ const AVOption *av_find_opt(void *v, const char *name, const char *unit, int mas
...
@@ -47,7 +47,14 @@ const AVOption *av_find_opt(void *v, const char *name, const char *unit, int mas
}
}
#endif
#endif
#if FF_API_OLD_AVOPTIONS
const
AVOption
*
av_next_option
(
void
*
obj
,
const
AVOption
*
last
)
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
;
if
(
last
&&
last
[
1
].
name
)
return
++
last
;
else
if
(
last
)
return
NULL
;
else
if
(
last
)
return
NULL
;
...
...
This diff is collapsed.
Click to expand it.
libavutil/opt.h
+
12
−
1
View file @
8c5dcaad
...
@@ -150,8 +150,8 @@ attribute_deprecated double av_get_double(void *obj, const char *name, const AVO
...
@@ -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
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
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
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
#endif
const
AVOption
*
av_next_option
(
void
*
obj
,
const
AVOption
*
last
);
/**
/**
* Show the obj options.
* Show the obj options.
...
@@ -309,6 +309,17 @@ const AVOption *av_opt_find(void *obj, const char *name, const char *unit,
...
@@ -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
,
const
AVOption
*
av_opt_find2
(
void
*
obj
,
const
char
*
name
,
const
char
*
unit
,
int
opt_flags
,
int
search_flags
,
void
**
target_obj
);
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.
* Iterate over AVOptions-enabled children of obj.
*
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment