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
3ff01fed
Commit
3ff01fed
authored
Dec 19, 2016
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: add AVFilter.activate.
parent
db4a71c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
avfilter.c
libavfilter/avfilter.c
+5
-1
avfilter.h
libavfilter/avfilter.h
+14
-0
No files found.
libavfilter/avfilter.c
View file @
3ff01fed
...
@@ -1480,8 +1480,12 @@ int ff_filter_activate(AVFilterContext *filter)
...
@@ -1480,8 +1480,12 @@ int ff_filter_activate(AVFilterContext *filter)
{
{
int
ret
;
int
ret
;
/* Generic timeline support is not yet implemented but should be easy */
av_assert1
(
!
(
filter
->
filter
->
flags
&
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
&&
filter
->
filter
->
activate
));
filter
->
ready
=
0
;
filter
->
ready
=
0
;
ret
=
ff_filter_activate_default
(
filter
);
ret
=
filter
->
filter
->
activate
?
filter
->
filter
->
activate
(
filter
)
:
ff_filter_activate_default
(
filter
);
if
(
ret
==
FFERROR_NOT_READY
)
if
(
ret
==
FFERROR_NOT_READY
)
ret
=
0
;
ret
=
0
;
return
ret
;
return
ret
;
...
...
libavfilter/avfilter.h
View file @
3ff01fed
...
@@ -294,6 +294,20 @@ typedef struct AVFilter {
...
@@ -294,6 +294,20 @@ typedef struct AVFilter {
* used for providing binary data.
* used for providing binary data.
*/
*/
int
(
*
init_opaque
)(
AVFilterContext
*
ctx
,
void
*
opaque
);
int
(
*
init_opaque
)(
AVFilterContext
*
ctx
,
void
*
opaque
);
/**
* Filter activation function.
*
* Called when any processing is needed from the filter, instead of any
* filter_frame and request_frame on pads.
*
* The function must examine inlinks and outlinks and perform a single
* step of processing. If there is nothing to do, the function must do
* nothing and not return an error. If more steps are or may be
* possible, it must use ff_filter_set_ready() to schedule another
* activation.
*/
int
(
*
activate
)(
AVFilterContext
*
ctx
);
}
AVFilter
;
}
AVFilter
;
/**
/**
...
...
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