diff options
Diffstat (limited to 'chromium/third_party/ffmpeg/libavfilter/buffersrc.h')
-rw-r--r-- | chromium/third_party/ffmpeg/libavfilter/buffersrc.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/chromium/third_party/ffmpeg/libavfilter/buffersrc.h b/chromium/third_party/ffmpeg/libavfilter/buffersrc.h index 89613e10cd2..5d124337b5a 100644 --- a/chromium/third_party/ffmpeg/libavfilter/buffersrc.h +++ b/chromium/third_party/ffmpeg/libavfilter/buffersrc.h @@ -22,12 +22,19 @@ /** * @file + * @ingroup lavfi_buffersrc * Memory buffer source API. */ #include "libavcodec/avcodec.h" #include "avfilter.h" +/** + * @defgroup lavfi_buffersrc Buffer source API + * @ingroup lavfi + * @{ + */ + enum { /** @@ -79,8 +86,9 @@ unsigned av_buffersrc_get_nb_failed_requests(AVFilterContext *buffer_src); #if FF_API_AVFILTERBUFFER /** - * Add a buffer to the filtergraph s. + * Add a buffer to a filtergraph. * + * @param ctx an instance of the buffersrc filter * @param buf buffer containing frame data to be passed down the filtergraph. * This function will take ownership of buf, the user must not free it. * A NULL buf signals EOF -- i.e. no more frames will be sent to this filter. @@ -88,13 +96,13 @@ unsigned av_buffersrc_get_nb_failed_requests(AVFilterContext *buffer_src); * @deprecated use av_buffersrc_write_frame() or av_buffersrc_add_frame() */ attribute_deprecated -int av_buffersrc_buffer(AVFilterContext *s, AVFilterBufferRef *buf); +int av_buffersrc_buffer(AVFilterContext *ctx, AVFilterBufferRef *buf); #endif /** * Add a frame to the buffer source. * - * @param s an instance of the buffersrc filter. + * @param ctx an instance of the buffersrc filter * @param frame frame to be added. If the frame is reference counted, this * function will make a new reference to it. Otherwise the frame data will be * copied. @@ -104,12 +112,12 @@ int av_buffersrc_buffer(AVFilterContext *s, AVFilterBufferRef *buf); * This function is equivalent to av_buffersrc_add_frame_flags() with the * AV_BUFFERSRC_FLAG_KEEP_REF flag. */ -int av_buffersrc_write_frame(AVFilterContext *s, const AVFrame *frame); +int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame); /** * Add a frame to the buffer source. * - * @param s an instance of the buffersrc filter. + * @param ctx an instance of the buffersrc filter * @param frame frame to be added. If the frame is reference counted, this * function will take ownership of the reference(s) and reset the frame. * Otherwise the frame data will be copied. If this function returns an error, @@ -145,4 +153,8 @@ int av_buffersrc_add_frame_flags(AVFilterContext *buffer_src, AVFrame *frame, int flags); +/** + * @} + */ + #endif /* AVFILTER_BUFFERSRC_H */ |