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
4d1f31ea
Commit
4d1f31ea
authored
Mar 13, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: make AVFilterContext export filter options.
parent
62549f96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
avfilter.c
libavfilter/avfilter.c
+25
-0
No files found.
libavfilter/avfilter.c
View file @
4d1f31ea
...
...
@@ -321,10 +321,35 @@ static const char *filter_name(void *p)
return
filter
->
filter
->
name
;
}
static
void
*
filter_child_next
(
void
*
obj
,
void
*
prev
)
{
AVFilterContext
*
ctx
=
obj
;
if
(
!
prev
&&
ctx
->
filter
&&
ctx
->
filter
->
priv_class
&&
ctx
->
priv
)
return
ctx
->
priv
;
return
NULL
;
}
static
const
AVClass
*
filter_child_class_next
(
const
AVClass
*
prev
)
{
AVFilter
**
f
=
NULL
;
while
(
prev
&&
*
(
f
=
av_filter_next
(
f
)))
if
((
*
f
)
->
priv_class
==
prev
)
break
;
while
(
*
(
f
=
av_filter_next
(
f
)))
if
((
*
f
)
->
priv_class
)
return
(
*
f
)
->
priv_class
;
return
NULL
;
}
static
const
AVClass
avfilter_class
=
{
.
class_name
=
"AVFilter"
,
.
item_name
=
filter_name
,
.
version
=
LIBAVUTIL_VERSION_INT
,
.
child_next
=
filter_child_next
,
.
child_class_next
=
filter_child_class_next
,
};
int
avfilter_open
(
AVFilterContext
**
filter_ctx
,
AVFilter
*
filter
,
const
char
*
inst_name
)
...
...
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