diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-19 01:17:16 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-19 23:15:34 +0200 |
commit | c000a9f78390b71812c7ee5187bbccc3c2d79b1e (patch) | |
tree | 101bafe8874835096c6dd536ec38a968a9174013 /libavfilter/avcodec.h | |
parent | d3fddb8454cab525cbcb6cc9c3d0ca29b6c78cdd (diff) | |
download | ffmpeg-c000a9f78390b71812c7ee5187bbccc3c2d79b1e.tar.gz |
vsrc_buffer: add av_vsrc_buffer_add_frame()
The new function is a wrapper around
av_vsrc_buffer_add_video_buffer_ref(), and allows to simplify the act
of pushing AVFrame data to the source buffer.
Diffstat (limited to 'libavfilter/avcodec.h')
-rw-r--r-- | libavfilter/avcodec.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavfilter/avcodec.h b/libavfilter/avcodec.h index e6ae907391..74434e819d 100644 --- a/libavfilter/avcodec.h +++ b/libavfilter/avcodec.h @@ -45,4 +45,13 @@ void avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src); */ AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame, int perms); +/** + * Add frame data to buffer_src. + * + * @param buffer_src pointer to a buffer source context + * @return >= 0 in case of success, a negative AVERROR code in case of + * failure + */ +int av_vsrc_buffer_add_frame(AVFilterContext *buffer_src, const AVFrame *frame); + #endif /* AVFILTER_AVCODEC_H */ |