videogen.c File Reference
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include "utils.c"
Include dependency graph for videogen.c:

Go to the source code of this file.

Data Structures

struct  VObj
 

Macros

#define NOISE_X   10
 
#define NOISE_Y   30
 
#define NOISE_W   26
 
#define FRAC_BITS   8
 
#define FRAC_ONE   (1 << FRAC_BITS)
 
#define NB_OBJS   10
 

Typedefs

typedef struct VObj VObj
 

Functions

static unsigned int myrnd (unsigned int *seed_ptr, int n)
 
static int int_cos (int a)
 
static void gen_image (int num, int w, int h)
 
int main (int argc, char **argv)
 

Variables

static VObj objs [NB_OBJS]
 
static unsigned int seed = 1
 

Macro Definition Documentation

#define FRAC_BITS   8

Definition at line 49 of file videogen.c.

Referenced by gen_image().

#define FRAC_ONE   (1 << FRAC_BITS)

Definition at line 50 of file videogen.c.

Referenced by gen_image(), and int_cos().

#define NB_OBJS   10

Definition at line 69 of file videogen.c.

Referenced by gen_image().

#define NOISE_W   26

Definition at line 47 of file videogen.c.

Referenced by gen_image().

#define NOISE_X   10

Definition at line 45 of file videogen.c.

Referenced by gen_image().

#define NOISE_Y   30

Definition at line 46 of file videogen.c.

Referenced by gen_image().

Typedef Documentation

typedef struct VObj VObj

Function Documentation

static void gen_image ( int  num,
int  w,
int  h 
)
static

Definition at line 80 of file videogen.c.

Referenced by main().

static int int_cos ( int  a)
static

Definition at line 53 of file videogen.c.

Referenced by gen_image().

int main ( int  argc,
char **  argv 
)

Definition at line 144 of file videogen.c.

static unsigned int myrnd ( unsigned int *  seed_ptr,
int  n 
)
static

Definition at line 30 of file videogen.c.

Referenced by gen_image().

Variable Documentation

VObj objs[NB_OBJS]
static

Definition at line 76 of file videogen.c.