FFmpeg  1.2.12
Data Fields
LifeContext Struct Reference

Data Fields

const AVClassclass
int w
int h
char * filename
char * rule_str
uint8_tfile_buf
size_t file_bufsize
uint8_tbuf [2]
 The two grid state buffers.
uint8_t buf_idx
uint16_t stay_rule
 encode the behavior for filled cells
uint16_t born_rule
 encode the behavior for empty cells
uint64_t pts
AVRational time_base
char * rate
 video frame rate
double random_fill_ratio
uint32_t random_seed
int stitch
int mold
char * life_color_str
char * death_color_str
char * mold_color_str
uint8_t life_color [4]
uint8_t death_color [4]
uint8_t mold_color [4]
AVLFG lfg
void(* draw )(AVFilterContext *, AVFilterBufferRef *)

Detailed Description

Definition at line 40 of file vsrc_life.c.

Field Documentation

uint16_t LifeContext::born_rule

encode the behavior for empty cells

Definition at line 61 of file vsrc_life.c.

Referenced by evolve(), and init().

uint8_t* LifeContext::buf[2]

The two grid state buffers.

A 0xFF (ALIVE_CELL) value means the cell is alive (or new born), while the decreasing values from 0xFE to 0 means the cell is dead; the range of values is used for the slow death effect, or mold (0xFE means dead, 0xFD means very dead, 0xFC means very very dead... and 0x00 means definitely dead/mold).

Definition at line 57 of file vsrc_life.c.

Referenced by evolve(), fill_picture_monoblack(), fill_picture_rgb(), init(), init_pattern_from_file(), and uninit().

uint8_t LifeContext::buf_idx
const AVClass* LifeContext::class

Definition at line 41 of file vsrc_life.c.

Referenced by init().

uint8_t LifeContext::death_color[4]

Definition at line 73 of file vsrc_life.c.

Referenced by fill_picture_rgb(), and query_formats().

char* LifeContext::death_color_str

Definition at line 70 of file vsrc_life.c.

void(* LifeContext::draw)(AVFilterContext *, AVFilterBufferRef *)

Definition at line 76 of file vsrc_life.c.

Referenced by query_formats(), and request_frame().

uint8_t* LifeContext::file_buf

Definition at line 45 of file vsrc_life.c.

Referenced by init_pattern_from_file(), and uninit().

size_t LifeContext::file_bufsize

Definition at line 46 of file vsrc_life.c.

Referenced by init_pattern_from_file(), and uninit().

char* LifeContext::filename

Definition at line 43 of file vsrc_life.c.

Referenced by init(), and init_pattern_from_file().

int LifeContext::h
AVLFG LifeContext::lfg

Definition at line 75 of file vsrc_life.c.

Referenced by init().

uint8_t LifeContext::life_color[4]

Definition at line 72 of file vsrc_life.c.

Referenced by fill_picture_rgb().

char* LifeContext::life_color_str

Definition at line 69 of file vsrc_life.c.

int LifeContext::mold

Definition at line 68 of file vsrc_life.c.

Referenced by fill_picture_rgb(), init(), and query_formats().

uint8_t LifeContext::mold_color[4]

Definition at line 74 of file vsrc_life.c.

Referenced by init().

char* LifeContext::mold_color_str

Definition at line 71 of file vsrc_life.c.

uint64_t LifeContext::pts

Definition at line 62 of file vsrc_life.c.

Referenced by request_frame().

double LifeContext::random_fill_ratio

Definition at line 65 of file vsrc_life.c.

uint32_t LifeContext::random_seed

Definition at line 66 of file vsrc_life.c.

Referenced by init().

char* LifeContext::rate

video frame rate

Definition at line 64 of file vsrc_life.c.

Referenced by init().

char* LifeContext::rule_str

Definition at line 44 of file vsrc_life.c.

Referenced by init(), and uninit().

uint16_t LifeContext::stay_rule

encode the behavior for filled cells

Definition at line 60 of file vsrc_life.c.

Referenced by evolve(), and init().

int LifeContext::stitch

Definition at line 67 of file vsrc_life.c.

Referenced by evolve(), and init().

AVRational LifeContext::time_base

Definition at line 63 of file vsrc_life.c.

Referenced by config_props(), and init().

int LifeContext::w

The documentation for this struct was generated from the following file: