From c000a9f78390b71812c7ee5187bbccc3c2d79b1e Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 19 May 2011 01:17:16 +0200 Subject: 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. --- libavfilter/avcodec.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libavfilter/avcodec.h') 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 */ -- cgit v1.2.3