diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-14 11:46:14 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-19 23:15:33 +0200 |
commit | 9fdf77217b39646afdb8907b977e3d7a59f1cb9e (patch) | |
tree | 166faedba1db3476bd48b0d48840f5fa477f7c5e /libavfilter/avcodec.h | |
parent | 6070b7e1c520e9ca389403bae20a2ad04c7d54c7 (diff) | |
download | ffmpeg-9fdf77217b39646afdb8907b977e3d7a59f1cb9e.tar.gz |
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.h | 8 |
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 */ |