diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-07-21 02:47:52 +0400 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-07-23 19:14:59 +0400 |
commit | 5c5f75b92bed707738a2ea6efa0d3b5c003616b6 (patch) | |
tree | 8e138c77d8254c5230512f46d400129f94783a86 /libavfilter/avcodec.h | |
parent | a8fb7690d94075388306b80dc48a6ae7f5128ef7 (diff) |
lavfi: add avfilter_get_buffer_ref_from_frame.
Diffstat (limited to 'libavfilter/avcodec.h')
-rw-r--r-- | libavfilter/avcodec.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/avcodec.h b/libavfilter/avcodec.h index 867b014488..5f4209acec 100644 --- a/libavfilter/avcodec.h +++ b/libavfilter/avcodec.h @@ -65,6 +65,16 @@ AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame, int perms); +/** + * Create and return a buffer reference from the data and properties + * contained in frame. + * + * @param perms permissions to assign to the new buffer reference + */ +AVFilterBufferRef *avfilter_get_buffer_ref_from_frame(enum AVMediaType type, + const AVFrame *frame, + int perms); + #ifdef FF_API_FILL_FRAME /** * Fill an AVFrame with the information stored in samplesref. |