Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
9eb4c79a
Commit
9eb4c79a
authored
Dec 24, 2016
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: add ff_inlink_request_frame().
parent
d3cb1404
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
avfilter.c
libavfilter/avfilter.c
+8
-0
filters.h
libavfilter/filters.h
+8
-0
No files found.
libavfilter/avfilter.c
View file @
9eb4c79a
...
@@ -1638,6 +1638,14 @@ int ff_inlink_evaluate_timeline_at_frame(AVFilterLink *link, const AVFrame *fram
...
@@ -1638,6 +1638,14 @@ int ff_inlink_evaluate_timeline_at_frame(AVFilterLink *link, const AVFrame *fram
return
fabs
(
av_expr_eval
(
dstctx
->
enable
,
dstctx
->
var_values
,
NULL
))
>=
0
.
5
;
return
fabs
(
av_expr_eval
(
dstctx
->
enable
,
dstctx
->
var_values
,
NULL
))
>=
0
.
5
;
}
}
void
ff_inlink_request_frame
(
AVFilterLink
*
link
)
{
av_assert1
(
!
link
->
status_in
);
av_assert1
(
!
link
->
status_out
);
link
->
frame_wanted_out
=
1
;
ff_filter_set_ready
(
link
->
src
,
100
);
}
const
AVClass
*
avfilter_get_class
(
void
)
const
AVClass
*
avfilter_get_class
(
void
)
{
{
return
&
avfilter_class
;
return
&
avfilter_class
;
...
...
libavfilter/filters.h
View file @
9eb4c79a
...
@@ -126,4 +126,12 @@ int ff_inlink_make_frame_writable(AVFilterLink *link, AVFrame **rframe);
...
@@ -126,4 +126,12 @@ int ff_inlink_make_frame_writable(AVFilterLink *link, AVFrame **rframe);
*/
*/
int
ff_inlink_acknowledge_status
(
AVFilterLink
*
link
,
int
*
rstatus
,
int64_t
*
rpts
);
int
ff_inlink_acknowledge_status
(
AVFilterLink
*
link
,
int
*
rstatus
,
int64_t
*
rpts
);
/**
* Mark that a frame is wanted on the link.
* Unlike ff_filter_frame(), it must not be called when the link has a
* non-zero status, and thus does not acknowledge it.
* Also it cannot fail.
*/
void
ff_inlink_request_frame
(
AVFilterLink
*
link
);
#endif
/* AVFILTER_FILTERS_H */
#endif
/* AVFILTER_FILTERS_H */
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