summaryrefslogtreecommitdiff
path: root/libavfilter/filters.h
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2016-12-20 14:56:03 +0100
committerNicolas George <george@nsup.org>2017-01-12 14:06:16 +0100
commit28c62df672865890cbb13e5f0e94bde29c8fbacd (patch)
treee83869d04bea0d4cdbb5bc7d1d393f58be59264b /libavfilter/filters.h
parent918891e1468f34b9f52423e1779f909ddd9dc34d (diff)
lavfi: implement ff_inlink_make_frame_writable().
Unlike av_frame_is_writable(), it uses the link's alloc callback, making direct rendering possible. The code comes from ff_filter_frame_framed(), moved with mostly trivial changes.
Diffstat (limited to 'libavfilter/filters.h')
-rw-r--r--libavfilter/filters.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavfilter/filters.h b/libavfilter/filters.h
index 72e5676369..3036ba27a6 100644
--- a/libavfilter/filters.h
+++ b/libavfilter/filters.h
@@ -40,6 +40,13 @@
void ff_filter_set_ready(AVFilterContext *filter, unsigned priority);
/**
+ * Make sure a frame is writable.
+ * This is similar to av_frame_make_writable() except it uses the link's
+ * buffer allocation callback, and therefore allows direct rendering.
+ */
+int ff_inlink_make_frame_writable(AVFilterLink *link, AVFrame **rframe);
+
+/**
* Test and acknowledge the change of status on the link.
*
* Status means EOF or an error condition; a change from the normal (0)