mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user