FFmpeg
|
#include "libavutil/file.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/lfg.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/random_seed.h"
#include "libavutil/avstring.h"
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | LifeContext |
Macros | |
#define | ALIVE_CELL 0xFF |
#define | OFFSET(x) offsetof(LifeContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
#define | FAST_DIV255(x) ((((x) + 128) * 257) >> 16) |
Functions | |
AVFILTER_DEFINE_CLASS (life) | |
static int | parse_rule (uint16_t *born_rule, uint16_t *stay_rule, const char *rule_str, void *log_ctx) |
static void | fill_picture_monoblack (AVFilterContext *ctx, AVFrame *picref) |
static void | fill_picture_rgb (AVFilterContext *ctx, AVFrame *picref) |
static int | init_pattern_from_file (AVFilterContext *ctx) |
static av_cold int | init (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | config_props (AVFilterLink *outlink) |
static void | evolve (AVFilterContext *ctx) |
static int | request_frame (AVFilterLink *outlink) |
static int | query_formats (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out) |
Variables | |
static const AVOption | life_options [] |
static const AVFilterPad | life_outputs [] |
const AVFilter | ff_vsrc_life |
life video source, based on John Conways' Life Game
Definition in file vsrc_life.c.
#define ALIVE_CELL 0xFF |
Definition at line 76 of file vsrc_life.c.
#define OFFSET | ( | x | ) | offsetof(LifeContext, x) |
Definition at line 77 of file vsrc_life.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 78 of file vsrc_life.c.
#define FAST_DIV255 | ( | x | ) | ((((x) + 128) * 257) >> 16) |
Definition at line 186 of file vsrc_life.c.
AVFILTER_DEFINE_CLASS | ( | life | ) |
|
static |
Definition at line 102 of file vsrc_life.c.
Referenced by init().
|
static |
Definition at line 163 of file vsrc_life.c.
Referenced by init().
|
static |
Definition at line 188 of file vsrc_life.c.
Referenced by init(), and query_formats().
|
static |
Definition at line 215 of file vsrc_life.c.
Referenced by init().
|
static |
Definition at line 273 of file vsrc_life.c.
|
static |
Definition at line 329 of file vsrc_life.c.
|
static |
Definition at line 339 of file vsrc_life.c.
|
static |
Definition at line 352 of file vsrc_life.c.
Referenced by request_frame().
|
static |
Definition at line 407 of file vsrc_life.c.
|
static |
Definition at line 425 of file vsrc_life.c.
|
static |
Definition at line 80 of file vsrc_life.c.
|
static |
Definition at line 438 of file vsrc_life.c.
const AVFilter ff_vsrc_life |
Definition at line 447 of file vsrc_life.c.