You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavfi: add ff_inlink_request_frame().
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user