FFmpeg
|
life video source, based on John Conways' Life Game More...
#include "libavutil/file.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/lfg.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/random_seed.h"
#include "libavutil/avstring.h"
#include "avfilter.h"
#include "internal.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 int | init_pattern_from_file (AVFilterContext *ctx) |
static int | init (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | config_props (AVFilterLink *outlink) |
static void | evolve (AVFilterContext *ctx) |
static void | fill_picture_monoblack (AVFilterContext *ctx, AVFrame *picref) |
static void | fill_picture_rgb (AVFilterContext *ctx, AVFrame *picref) |
static int | request_frame (AVFilterLink *outlink) |
static int | query_formats (AVFilterContext *ctx) |
Variables | |
static const AVOption | life_options [] |
static const AVFilterPad | life_outputs [] |
AVFilter | avfilter_vsrc_life |
life video source, based on John Conways' Life Game
Definition in file vsrc_life.c.
#define ALIVE_CELL 0xFF |
Definition at line 75 of file vsrc_life.c.
Referenced by evolve(), fill_picture_monoblack(), fill_picture_rgb(), init(), and init_pattern_from_file().
#define OFFSET | ( | x | ) | offsetof(LifeContext, x) |
Definition at line 76 of file vsrc_life.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 77 of file vsrc_life.c.
#define FAST_DIV255 | ( | x | ) | ((((x) + 128) * 257) >> 16) |
Definition at line 368 of file vsrc_life.c.
Referenced by fill_picture_rgb().
AVFILTER_DEFINE_CLASS | ( | life | ) |
|
static |
Definition at line 101 of file vsrc_life.c.
Referenced by init().
|
static |
Definition at line 162 of file vsrc_life.c.
Referenced by init().
|
static |
Definition at line 220 of file vsrc_life.c.
|
static |
Definition at line 269 of file vsrc_life.c.
|
static |
Definition at line 279 of file vsrc_life.c.
|
static |
Definition at line 290 of file vsrc_life.c.
Referenced by request_frame().
|
static |
Definition at line 345 of file vsrc_life.c.
Referenced by query_formats().
|
static |
Definition at line 370 of file vsrc_life.c.
Referenced by query_formats().
|
static |
Definition at line 397 of file vsrc_life.c.
|
static |
Definition at line 414 of file vsrc_life.c.
|
static |
Definition at line 79 of file vsrc_life.c.
|
static |
Definition at line 430 of file vsrc_life.c.
AVFilter avfilter_vsrc_life |
Definition at line 440 of file vsrc_life.c.