diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-28 15:01:41 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-05-04 23:26:40 +0200 |
commit | 7bac2a78c2241df4bcc1665703bb71afd9a3e692 (patch) | |
tree | f025d8ab1792cac598cefd504910c4c2a4d108e1 /libavfilter/avcodec.h | |
parent | a96cd73ff25795ab4162252d2df87a8b46c782da (diff) | |
download | ffmpeg-7bac2a78c2241df4bcc1665703bb71afd9a3e692.tar.gz |
src_buffer: implement av_buffersrc_add_frame.
It supersedes av_vsrc_buffer_add_frame and handles
both audio and video.
Diffstat (limited to 'libavfilter/avcodec.h')
-rw-r--r-- | libavfilter/avcodec.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavfilter/avcodec.h b/libavfilter/avcodec.h index 1aa8b9c654..cec847146f 100644 --- a/libavfilter/avcodec.h +++ b/libavfilter/avcodec.h @@ -92,6 +92,18 @@ int avfilter_fill_frame_from_buffer_ref(AVFrame *frame, /** * Add frame data to buffer_src. * + * @param buffer_src pointer to a buffer source context + * @param frame a frame, or NULL to mark EOF + * @param flags a combination of AV_BUFFERSRC_FLAG_* + * @return >= 0 in case of success, a negative AVERROR code + * in case of failure + */ +int av_buffersrc_add_frame(AVFilterContext *buffer_src, + const AVFrame *frame, int flags); + +/** + * Add frame data to buffer_src. + * * @param buffer_src pointer to a buffer source context * @param flags a combination of AV_VSRC_BUF_FLAG_* flags * @return >= 0 in case of success, a negative AVERROR code in case of |