summaryrefslogtreecommitdiffstats
path: root/libavfilter/buffersink.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/buffersink.h')
-rw-r--r--libavfilter/buffersink.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavfilter/buffersink.h b/libavfilter/buffersink.h
index 4c13f0d..86a4b24 100644
--- a/libavfilter/buffersink.h
+++ b/libavfilter/buffersink.h
@@ -98,4 +98,18 @@ int av_vsink_buffer_get_video_buffer_ref(AVFilterContext *buffer_sink,
AVFilterBufferRef **picref, int flags);
#endif
+/**
+ * Get a buffer with filtered data from sink and put it in buf.
+ *
+ * @param sink pointer to a context of a buffersink AVFilter.
+ * @param buf pointer to the buffer will be written here if buf is non-NULL. buf
+ * must be freed by the caller using avfilter_unref_buffer().
+ * Buf may also be NULL to query whether a buffer is ready to be
+ * output.
+ *
+ * @return >= 0 in case of success, a negative AVERROR code in case of
+ * failure.
+ */
+int av_buffersink_read(AVFilterContext *sink, AVFilterBufferRef **buf);
+
#endif /* AVFILTER_BUFFERSINK_H */
OpenPOWER on IntegriCloud