X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg%200.7%2Finclude%2Flibavfilter%2Favcodec.h;h=4eed6b2d2c0357ef258c3376917c00142d307849;hb=f125bd720bf68257b9a0adbfc4ec1caef0596a2d;hp=f438860d0bbc0ac0f077c5335295e2cdc4740f52;hpb=4f7058172b7b297e10aad63001a9f4521846b06e;p=casparcg diff --git a/ffmpeg 0.7/include/libavfilter/avcodec.h b/ffmpeg 0.7/include/libavfilter/avcodec.h index f438860d0..4eed6b2d2 100644 --- a/ffmpeg 0.7/include/libavfilter/avcodec.h +++ b/ffmpeg 0.7/include/libavfilter/avcodec.h @@ -30,6 +30,7 @@ #include "libavcodec/avcodec.h" // AVFrame #include "avfilter.h" +#include "vsrc_buffer.h" /** * Copy the frame properties of src to dst, without copying the actual @@ -37,4 +38,23 @@ */ 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); + +/** + * 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 + * failure + */ +int av_vsrc_buffer_add_frame(AVFilterContext *buffer_src, + const AVFrame *frame, int flags); + #endif /* AVFILTER_AVCODEC_H */