diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-07 21:35:08 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-19 23:15:33 +0200 |
commit | 6070b7e1c520e9ca389403bae20a2ad04c7d54c7 (patch) | |
tree | 4d78a27c7053a106680831caaef01ad70c1b1d2e /libavfilter/vsrc_buffer.h | |
parent | 3c7650a83d3bdca2fd680af722de344b092f65ec (diff) |
vsrc_buffer: remove dependency on AVFrame
Rename av_vsrc_buffer_add_frame to
av_vsrc_buffer_add_video_buffer_ref(), and change its inteface to make
it accept in input an AVFilterBufferRef rather than an AVFrame.
This way the interface can be used without requiring the
inclusion/installation of libavcodec headers.
Diffstat (limited to 'libavfilter/vsrc_buffer.h')
-rw-r--r-- | libavfilter/vsrc_buffer.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavfilter/vsrc_buffer.h b/libavfilter/vsrc_buffer.h index 2dda546e01..eb9ec56edd 100644 --- a/libavfilter/vsrc_buffer.h +++ b/libavfilter/vsrc_buffer.h @@ -27,12 +27,11 @@ * memory buffer source API for video */ -#include "libavcodec/avcodec.h" /* AVFrame */ #include "avfilter.h" -int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame); +int av_vsrc_buffer_add_video_buffer_ref(AVFilterContext *buffer_filter, AVFilterBufferRef *picref); -int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame, - const char *sws_param); +int av_vsrc_buffer_add_video_buffer_ref2(AVFilterContext *buffer_filter, AVFilterBufferRef *picref, + const char *sws_param); #endif /* AVFILTER_VSRC_BUFFER_H */ |