diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 22:14:37 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 22:14:37 +0000 |
commit | d224d73a5da8c6519cdd5b492808af736769c753 (patch) | |
tree | ac993c44afbce903e26bdd068530b60c0e10bc55 | |
parent | d177bd183f4a0ae28381d4fb3b8e387a4d5042f6 (diff) | |
download | ffmpeg-d224d73a5da8c6519cdd5b492808af736769c753.tar.gz |
Implement poll_frame() method. Fix ffmpeg.c bug with
vf_fps filter.
Commited in SoC by Vitor Sessak on 2008-02-06 19:55:36
Originally committed as revision 12109 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavfilter/avfilter.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 35adf9f025..4f5c3a5420 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -186,6 +186,8 @@ void avfilter_formats_ref(AVFilterFormats *f, AVFilterFormats **ref); */ void avfilter_formats_unref(AVFilterFormats **ref); +int avfilter_poll_frame(AVFilterLink *link); + /** * A filter pad used for either input or output */ @@ -259,6 +261,17 @@ struct AVFilterPad void (*draw_slice)(AVFilterLink *link, int y, int height); /** + * Frame poll callback. This returns the number of immediately available + * frames. It should return a positive value if the next request_frame() + * is guaranteed to return one frame (with no delay). + * + * Defaults to just calling the source poll_frame() method. + * + * Output video pads only. + */ + int (*poll_frame)(AVFilterLink *link); + + /** * Frame request callback. A call to this should result in at least one * frame being output over the given link. This should return zero on * success, and another value on error. |