|
|
@ -611,7 +611,7 @@ This source is mainly intended for a programmatic use, in particular |
|
|
|
through the interface defined in @file{libavfilter/vsrc_buffer.h}. |
|
|
|
through the interface defined in @file{libavfilter/vsrc_buffer.h}. |
|
|
|
|
|
|
|
|
|
|
|
It accepts the following parameters: |
|
|
|
It accepts the following parameters: |
|
|
|
@var{width}:@var{height}:@var{pix_fmt_string} |
|
|
|
@var{width}:@var{height}:@var{pix_fmt_string}:@var{timebase_num}:@var{timebase_den} |
|
|
|
|
|
|
|
|
|
|
|
All the parameters need to be explicitely defined. |
|
|
|
All the parameters need to be explicitely defined. |
|
|
|
|
|
|
|
|
|
|
@ -628,19 +628,23 @@ 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 |
|
|
|
It may be a number corresponding to a pixel format, or a pixel format |
|
|
|
name. |
|
|
|
name. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@item timebase_num, timebase_den |
|
|
|
|
|
|
|
Specify numerator and denomitor of the timebase assumed by the |
|
|
|
|
|
|
|
timestamps of the buffered frames. |
|
|
|
@end table |
|
|
|
@end table |
|
|
|
|
|
|
|
|
|
|
|
For example: |
|
|
|
For example: |
|
|
|
@example |
|
|
|
@example |
|
|
|
buffer=320:240:yuv410p |
|
|
|
buffer=320:240:yuv410p:1:24 |
|
|
|
@end example |
|
|
|
@end example |
|
|
|
|
|
|
|
|
|
|
|
will instruct the source to accept video frames with size 320x240 and |
|
|
|
will instruct the source to accept video frames with size 320x240 and |
|
|
|
with format "yuv410p". Since the pixel format with name "yuv410p" |
|
|
|
with format "yuv410p" and assuming 1/24 as the timestamps timebase. |
|
|
|
corresponds to the number 6 (check the enum PixelFormat definition in |
|
|
|
Since the pixel format with name "yuv410p" corresponds to the number 6 |
|
|
|
@file{libavutil/pixfmt.h}), this example corresponds to: |
|
|
|
(check the enum PixelFormat definition in @file{libavutil/pixfmt.h}), |
|
|
|
|
|
|
|
this example corresponds to: |
|
|
|
@example |
|
|
|
@example |
|
|
|
buffer=320:240:6 |
|
|
|
buffer=320:240:6:1:24 |
|
|
|
@end example |
|
|
|
@end example |
|
|
|
|
|
|
|
|
|
|
|
@section color |
|
|
|
@section color |
|
|
|