#include <float.h>
#include "libavutil/opt.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/parseutils.h"
#include "avfilter.h"
Go to the source code of this file.
Data Structures | |
| struct | TestSourceContext |
Defines | |
| #define | OFFSET(x) offsetof(TestSourceContext, x) |
Functions | |
| static av_cold int | init (AVFilterContext *ctx, const char *args, void *opaque) |
| static int | config_props (AVFilterLink *outlink) |
| static int | request_frame (AVFilterLink *outlink) |
Variables | |
| static const AVOption | testsrc_options [] |
testsrc is based on the test pattern generator demuxer by Nicolas George: http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2007-October/037845.html
rgbtestsrc is ported from MPlayer libmpcodecs/vf_rgbtest.c by Michael Niedermayer.
Definition in file vsrc_testsrc.c.
| #define OFFSET | ( | x | ) | offsetof(TestSourceContext, x) |
Definition at line 57 of file vsrc_testsrc.c.
| static int config_props | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 113 of file vsrc_testsrc.c.
| static av_cold int init | ( | AVFilterContext * | ctx, | |
| const char * | args, | |||
| void * | opaque | |||
| ) | [static] |
Definition at line 69 of file vsrc_testsrc.c.
| static int request_frame | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 125 of file vsrc_testsrc.c.
const AVOption testsrc_options[] [static] |
Initial value:
{
{ "size", "set video size", OFFSET(size), AV_OPT_TYPE_STRING, {.str = "320x240"}, 0, 0 },
{ "s", "set video size", OFFSET(size), AV_OPT_TYPE_STRING, {.str = "320x240"}, 0, 0 },
{ "rate", "set video rate", OFFSET(rate), AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0 },
{ "r", "set video rate", OFFSET(rate), AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0 },
{ "duration", "set video duration", OFFSET(duration), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 },
{ "sar", "set video sample aspect ratio", OFFSET(sar), AV_OPT_TYPE_RATIONAL, {.dbl= 1}, 0, INT_MAX },
{ NULL },
}
Definition at line 59 of file vsrc_testsrc.c.
1.5.8