FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
videogen.c File Reference
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include "utils.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
 

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 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().

#define NOISE_W   26

Definition at line 47 of file videogen.c.

Referenced by gen_image().

#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().

Function Documentation

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

Definition at line 30 of file videogen.c.

Referenced by gen_image().

static int int_cos ( int  a)
static

Definition at line 53 of file videogen.c.

Referenced by gen_image().

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

Definition at line 80 of file videogen.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 144 of file videogen.c.

Variable Documentation

VObj objs[NB_OBJS]
static

Definition at line 76 of file videogen.c.

unsigned int seed = 1
static