MythTV  master
Macros | Functions | Variables
goom_tools.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define M_PI   3.14159265358979323846
 
#define M_PI_F   ((float)M_PI)
 
#define NB_RAND   0x10000
 
#define RAND_INIT(i)
 
#define RAND_CLOSE()
 
#define iRAND(i)   (RAND()%(i))
 

Functions

static int RAND (void)
 

Variables

int * rand_tab
 
static unsigned short rand_pos
 

Macro Definition Documentation

◆ M_PI

#define M_PI   3.14159265358979323846

Definition at line 5 of file goom_tools.h.

◆ M_PI_F

#define M_PI_F   ((float)M_PI)

Definition at line 7 of file goom_tools.h.

◆ NB_RAND

#define NB_RAND   0x10000

Definition at line 9 of file goom_tools.h.

◆ RAND_INIT

#define RAND_INIT (   i)
Value:
srand (i) ;\
if (!rand_tab) rand_tab = (int *) malloc (NB_RAND * sizeof(int)) ;\
rand_pos = 1 ;\
while (rand_pos != 0) rand_tab [rand_pos++] = rand () ;
static unsigned short rand_pos
Definition: goom_tools.h:13
int * rand_tab
Definition: graphic.c:16
#define NB_RAND
Definition: goom_tools.h:9

Definition at line 15 of file goom_tools.h.

◆ RAND_CLOSE

#define RAND_CLOSE ( )
Value:
free (rand_tab);\
rand_tab = 0;
int * rand_tab
Definition: graphic.c:16

Definition at line 27 of file goom_tools.h.

◆ iRAND

#define iRAND (   i)    (RAND()%(i))

Definition at line 33 of file goom_tools.h.

Function Documentation

◆ RAND()

static int RAND ( void  )
inlinestatic

Definition at line 22 of file goom_tools.h.

Referenced by calculatePXandPY(), ifs_update(), and zoomFilterFastRGB().

Variable Documentation

◆ rand_tab

int* rand_tab

Definition at line 16 of file graphic.c.

Referenced by goom_init(), and RAND().

◆ rand_pos

unsigned short rand_pos
static

Definition at line 13 of file goom_tools.h.

Referenced by goom_init(), and RAND().