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.
This commit is contained in:
Stefano Sabatini
2011-05-07 21:35:08 +02:00
parent 3c7650a83d
commit 6070b7e1c5
3 changed files with 35 additions and 40 deletions
+3 -4
View File
@@ -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 */