summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-03-31 19:17:57 +0200
committerNicolas George <nicolas.george@normalesup.org>2013-04-03 17:33:27 +0200
commit79d8cfacf07863500d4fedec669c49e2552c3876 (patch)
treede362386cfaf64843de4de9308e695c2f53a9ccc /libavfilter/avfilter.h
parentc208576cef0a97903bbeac4f580fa436605a5c3e (diff)
lavfi: loop on request_frame if necessary.
Some filters need several input frames before producing output. For these filter, it becomes simpler to return 0 in request_frame() and let the framework call it again until output has been produced.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 455161fa34..7583dccfbe 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -682,6 +682,17 @@ struct AVFilterLink {
* Number of channels.
*/
int channels;
+
+ /**
+ * True if a frame is being requested on the link.
+ * Used internally by the framework.
+ */
+ unsigned frame_requested;
+
+ /**
+ * Link processing flags.
+ */
+ unsigned flags;
};
/**