FFmpeg
Data Fields
LifeContext Struct Reference

Data Fields

const AVClassclass
 
int w
 
int h
 
char * filename
 
char * rule_str
 
uint8_t * file_buf
 
size_t file_bufsize
 
uint8_t * buf [2]
 The two grid state buffers. More...
 
uint8_t buf_idx
 
uint16_t stay_rule
 encode the behavior for filled cells More...
 
uint16_t born_rule
 encode the behavior for empty cells More...
 
uint64_t pts
 
AVRational frame_rate
 
double random_fill_ratio
 
int64_t random_seed
 
int stitch
 
int mold
 
uint8_t life_color [4]
 
uint8_t death_color [4]
 
uint8_t mold_color [4]
 
AVLFG lfg
 
void(* draw )(AVFilterContext *, AVFrame *)
 

Detailed Description

Definition at line 41 of file vsrc_life.c.

Field Documentation

◆ class

const AVClass* LifeContext::class

Definition at line 42 of file vsrc_life.c.

◆ w

int LifeContext::w

◆ h

int LifeContext::h

◆ filename

char* LifeContext::filename

Definition at line 44 of file vsrc_life.c.

Referenced by init(), and init_pattern_from_file().

◆ rule_str

char* LifeContext::rule_str

Definition at line 45 of file vsrc_life.c.

Referenced by init(), and uninit().

◆ file_buf

uint8_t* LifeContext::file_buf

Definition at line 46 of file vsrc_life.c.

Referenced by init_pattern_from_file(), and uninit().

◆ file_bufsize

size_t LifeContext::file_bufsize

Definition at line 47 of file vsrc_life.c.

Referenced by init_pattern_from_file(), and uninit().

◆ buf

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 58 of file vsrc_life.c.

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

◆ buf_idx

uint8_t LifeContext::buf_idx

◆ stay_rule

uint16_t LifeContext::stay_rule

encode the behavior for filled cells

Definition at line 61 of file vsrc_life.c.

Referenced by evolve(), and init().

◆ born_rule

uint16_t LifeContext::born_rule

encode the behavior for empty cells

Definition at line 62 of file vsrc_life.c.

Referenced by evolve(), and init().

◆ pts

uint64_t LifeContext::pts

Definition at line 63 of file vsrc_life.c.

Referenced by request_frame().

◆ frame_rate

AVRational LifeContext::frame_rate

Definition at line 64 of file vsrc_life.c.

Referenced by config_props(), and init().

◆ random_fill_ratio

double LifeContext::random_fill_ratio

Definition at line 65 of file vsrc_life.c.

◆ random_seed

int64_t LifeContext::random_seed

Definition at line 66 of file vsrc_life.c.

Referenced by init().

◆ stitch

int LifeContext::stitch

Definition at line 67 of file vsrc_life.c.

Referenced by evolve(), and init().

◆ mold

int LifeContext::mold

Definition at line 68 of file vsrc_life.c.

Referenced by fill_picture_rgb(), and init().

◆ life_color

uint8_t LifeContext::life_color[4]

Definition at line 69 of file vsrc_life.c.

Referenced by fill_picture_rgb().

◆ death_color

uint8_t LifeContext::death_color[4]

Definition at line 70 of file vsrc_life.c.

Referenced by fill_picture_rgb(), and init().

◆ mold_color

uint8_t LifeContext::mold_color[4]

Definition at line 71 of file vsrc_life.c.

Referenced by init().

◆ lfg

AVLFG LifeContext::lfg

Definition at line 72 of file vsrc_life.c.

Referenced by init().

◆ draw

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

Definition at line 73 of file vsrc_life.c.

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


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