aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/buffersrc.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-12-31 16:40:43 +0100
committerAnton Khirnov <anton@khirnov.net>2012-05-14 21:36:11 +0200
commit720c6b78d1e8323d2df070e3da2f0ed305156c65 (patch)
treecfe68ed76432b10cee8466ccd38942dbcdbd3701 /libavfilter/buffersrc.h
parent8b05e13df3b25e186adaf19cf84f5fa93d829214 (diff)
downloadffmpeg-720c6b78d1e8323d2df070e3da2f0ed305156c65.tar.gz
buffersrc: add av_buffersrc_write_frame().
It's the same as av_vsrc_buffer_add_frame(), except it doesn't take pts or pixel_aspect parameters. Those are read from AVFrame. Deprecate av_vsrc_buffer_add_frame().
Diffstat (limited to 'libavfilter/buffersrc.h')
-rw-r--r--libavfilter/buffersrc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavfilter/buffersrc.h b/libavfilter/buffersrc.h
index 918a54faee..ca82a75df8 100644
--- a/libavfilter/buffersrc.h
+++ b/libavfilter/buffersrc.h
@@ -36,4 +36,15 @@
*/
int av_buffersrc_buffer(AVFilterContext *s, AVFilterBufferRef *buf);
+/**
+ * Add a frame to the buffer source.
+ *
+ * @param s an instance of the buffersrc filter.
+ * @param frame frame to be added.
+ *
+ * @warning frame data will be memcpy()ed, which may be a big performance
+ * hit. Use av_buffersrc_buffer() to avoid copying the data.
+ */
+int av_buffersrc_write_frame(AVFilterContext *s, AVFrame *frame);
+
#endif /* AVFILTER_BUFFERSRC_H */