FFmpeg
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)
 
void print_help (const char *name)
 
int main (int argc, char **argv)
 

Variables

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

Macro Definition Documentation

◆ NOISE_X

#define NOISE_X   10

Definition at line 45 of file videogen.c.

◆ NOISE_Y

#define NOISE_Y   30

Definition at line 46 of file videogen.c.

◆ NOISE_W

#define NOISE_W   26

Definition at line 47 of file videogen.c.

◆ FRAC_BITS

#define FRAC_BITS   8

Definition at line 49 of file videogen.c.

◆ FRAC_ONE

#define FRAC_ONE   (1 << FRAC_BITS)

Definition at line 50 of file videogen.c.

◆ NB_OBJS

#define NB_OBJS   10

Definition at line 69 of file videogen.c.

Function Documentation

◆ myrnd()

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

Definition at line 30 of file videogen.c.

Referenced by gen_image().

◆ int_cos()

static int int_cos ( int  a)
static

Definition at line 53 of file videogen.c.

Referenced by gen_image().

◆ gen_image()

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

Definition at line 80 of file videogen.c.

Referenced by main().

◆ print_help()

void print_help ( const char *  name)

Definition at line 144 of file videogen.c.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 152 of file videogen.c.

Variable Documentation

◆ objs

VObj objs[NB_OBJS]
static

Definition at line 76 of file videogen.c.

Referenced by gen_image().

◆ seed

unsigned int seed = 1
static