diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-28 19:39:04 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-28 19:43:34 +0400 |
commit | 3ed483cdfa5bc9800702a4a505b7164e70b1bcd6 (patch) | |
tree | 199776884982bc63a621a18035e45ebcb60953fa /libavfilter/internal.h | |
parent | a0b8eec719323bc242e47ab891af47cfd8f06aec (diff) |
libavfilter: Support using filter_frame for video
With this we can mix filters using filter_frame OR start/draw_slice/end
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r-- | libavfilter/internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h index e0ca43ece1..329ac497ae 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -368,5 +368,17 @@ AVFilterBufferRef *ff_copy_buffer_ref(AVFilterLink *outlink, int ff_buffersink_read_compat(AVFilterContext *ctx, AVFilterBufferRef **buf); int ff_buffersink_read_samples_compat(AVFilterContext *ctx, AVFilterBufferRef **pbuf, int nb_samples); +/** + * Send a frame of data to the next filter. + * + * @param link the output link over which the data is being sent + * @param frame a reference to the buffer of data being sent. The + * receiving filter will free this reference when it no longer + * needs it or pass it on to the next filter. + * + * @return >= 0 on success, a negative AVERROR on error. The receiving filter + * is responsible for unreferencing frame in case of error. + */ +int ff_filter_frame(AVFilterLink *link, AVFilterBufferRef *frame); #endif /* AVFILTER_INTERNAL_H */ |