From d28cb849899abd98bf2dd72f5a3dd56d441aeb27 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 25 Feb 2013 21:21:29 +0100 Subject: buffersrc: switch to an AVOptions-based system. --- doc/filters.texi | 37 +++++++++++++------------------------ 1 file changed, 13 insertions(+), 24 deletions(-) (limited to 'doc') diff --git a/doc/filters.texi b/doc/filters.texi index d32a2619d2..192cdfd885 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -2195,46 +2195,35 @@ Buffer video frames, and make them available to the filter chain. This source is mainly intended for a programmatic use, in particular through the interface defined in @file{libavfilter/vsrc_buffer.h}. -It accepts the following parameters: -@var{width}:@var{height}:@var{pix_fmt_string}:@var{timebase_num}:@var{timebase_den}:@var{sample_aspect_ratio_num}:@var{sample_aspect_ratio.den} +This filter accepts the following parameters: -All the parameters need to be explicitly defined. +@table @option -Follows the list of the accepted parameters. +@item width +Input video width. -@table @option +@item height +Input video height. -@item width, height -Specify the width and height of the buffered video frames. +@item pix_fmt +Name of the input video pixel format. -@item pix_fmt_string -A string representing the pixel format of the buffered video frames. -It may be a number corresponding to a pixel format, or a pixel format -name. +@item time_base +The time base used for input timestamps. -@item timebase_num, timebase_den -Specify numerator and denomitor of the timebase assumed by the -timestamps of the buffered frames. +@item sar +Sample (pixel) aspect ratio of the input video. -@item sample_aspect_ratio.num, sample_aspect_ratio.den -Specify numerator and denominator of the sample aspect ratio assumed -by the video frames. @end table For example: @example -buffer=320:240:yuv410p:1:24:1:1 +buffer=width=320:height=240:pix_fmt=yuv410p:time_base=1/24:sar=1 @end example will instruct the source to accept video frames with size 320x240 and with format "yuv410p", assuming 1/24 as the timestamps timebase and square pixels (1:1 sample aspect ratio). -Since the pixel format with name "yuv410p" corresponds to the number 6 -(check the enum AVPixelFormat definition in @file{libavutil/pixfmt.h}), -this example corresponds to: -@example -buffer=320:240:6:1:24 -@end example @section color -- cgit v1.2.3