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
9eb4c79a
Commit
9eb4c79a
authored
8 years ago
by
Nicolas George
Browse files
Options
Downloads
Patches
Plain Diff
lavfi: add ff_inlink_request_frame().
parent
d3cb1404
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
libavfilter/avfilter.c
+8
-0
8 additions, 0 deletions
libavfilter/avfilter.c
libavfilter/filters.h
+8
-0
8 additions, 0 deletions
libavfilter/filters.h
with
16 additions
and
0 deletions
libavfilter/avfilter.c
+
8
−
0
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
;
...
...
This diff is collapsed.
Click to expand it.
libavfilter/filters.h
+
8
−
0
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 */
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