summaryrefslogtreecommitdiff
path: root/libavfilter/avcodec.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-14 11:46:14 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-19 23:15:33 +0200
commit9fdf77217b39646afdb8907b977e3d7a59f1cb9e (patch)
tree166faedba1db3476bd48b0d48840f5fa477f7c5e /libavfilter/avcodec.h
parent6070b7e1c520e9ca389403bae20a2ad04c7d54c7 (diff)
lavfi: add avfilter_get_video_buffer_ref_from_frame to avcodec.h
Simplify passing AVFrame data to av_vsrc_buffer_add_video_buffer_ref().
Diffstat (limited to 'libavfilter/avcodec.h')
-rw-r--r--libavfilter/avcodec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavfilter/avcodec.h b/libavfilter/avcodec.h
index f438860d0b..e6ae907391 100644
--- a/libavfilter/avcodec.h
+++ b/libavfilter/avcodec.h
@@ -37,4 +37,12 @@
*/
void avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src);
+/**
+ * Create and return a picref reference from the data and properties
+ * contained in frame.
+ *
+ * @param perms permissions to assign to the new buffer reference
+ */
+AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame, int perms);
+
#endif /* AVFILTER_AVCODEC_H */