FFmpeg
|
#include "libavutil/file.h"
#include "libavutil/internal.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 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 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 [] |
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 370 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 221 of file vsrc_life.c.
|
static |
Definition at line 270 of file vsrc_life.c.
|
static |
Definition at line 280 of file vsrc_life.c.
|
static |
Definition at line 292 of file vsrc_life.c.
Referenced by request_frame().
|
static |
Definition at line 347 of file vsrc_life.c.
Referenced by query_formats().
|
static |
Definition at line 372 of file vsrc_life.c.
Referenced by query_formats().
|
static |
Definition at line 399 of file vsrc_life.c.
|
static |
Definition at line 417 of file vsrc_life.c.
|
static |
Definition at line 80 of file vsrc_life.c.
|
static |
Definition at line 434 of file vsrc_life.c.
const AVFilter ff_vsrc_life |
Definition at line 443 of file vsrc_life.c.