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 6 of file goom_tools.h.

◆ M_PI_F

#define M_PI_F   ((float)M_PI)

Definition at line 8 of file goom_tools.h.

◆ NB_RAND

#define NB_RAND   0x10000

Definition at line 10 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 () ;

Definition at line 16 of file goom_tools.h.

◆ RAND_CLOSE

#define RAND_CLOSE ( )
Value:
free (rand_tab);\
rand_tab = nullptr;

Definition at line 28 of file goom_tools.h.

◆ iRAND

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

Definition at line 34 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.cpp.

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

NB_RAND
#define NB_RAND
Definition: goom_tools.h:9
rand_pos
static unsigned short rand_pos
Definition: goom_tools.h:13
rand_tab
int * rand_tab
Definition: graphic.cpp:16