[FFmpeg-cvslog] r12109 - trunk/libavfilter/avfilter.h
vitor
subversion
Fri Feb 15 23:14:37 CET 2008
Author: vitor
Date: Fri Feb 15 23:14:37 2008
New Revision: 12109
Log:
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
Modified:
trunk/libavfilter/avfilter.h
Modified: trunk/libavfilter/avfilter.h
==============================================================================
--- trunk/libavfilter/avfilter.h (original)
+++ trunk/libavfilter/avfilter.h Fri Feb 15 23:14:37 2008
@@ -186,6 +186,8 @@ void avfilter_formats_ref(AVFilterFormat
*/
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.
More information about the ffmpeg-cvslog
mailing list