src/GenUtils.cpp File Reference

#include "GenUtils.h"
#include <sstream>

Include dependency graph for GenUtils.cpp:

Go to the source code of this file.

Defines

#define MAXB   0x100
#define N   0x1000
#define NP   12
#define NM   0xfff
#define s_curve(t)   ( t * t * (3. - 2. * t) )
#define lerp(t, a, b)   ( a + t * (b - a) )
#define setup(i, b0, b1, r0, r1)
#define at2(rx, ry)   ( rx * q[0] + ry * q[1] )
#define at3(rx, ry, rz)   ( rx * q[0] + ry * q[1] + rz * q[2] )

Variables

static int p [MAXB+MAXB+2]
static double g3 [MAXB+MAXB+2][3]
static double g2 [MAXB+MAXB+2][2]
static double g1 [MAXB+MAXB+2]
int start = 1
int B = 4
int BM = 3


Define Documentation

#define at2 ( rx,
ry   )     ( rx * q[0] + ry * q[1] )

Definition at line 231 of file GenUtils.cpp.

#define at3 ( rx,
ry,
rz   )     ( rx * q[0] + ry * q[1] + rz * q[2] )

Definition at line 232 of file GenUtils.cpp.

#define lerp ( t,
a,
 )     ( a + t * (b - a) )

Definition at line 224 of file GenUtils.cpp.

#define MAXB   0x100

Definition at line 218 of file GenUtils.cpp.

#define N   0x1000

Definition at line 219 of file GenUtils.cpp.

#define NM   0xfff

Definition at line 221 of file GenUtils.cpp.

#define NP   12

Definition at line 220 of file GenUtils.cpp.

#define s_curve (  )     ( t * t * (3. - 2. * t) )

Definition at line 223 of file GenUtils.cpp.

#define setup ( i,
b0,
b1,
r0,
r1   ) 

Value:

t = vec[i] + N;\
        b0 = ((int)t) & BM;\
        b1 = (b0+1) & BM;\
        r0 = t - (int)t;\
        r1 = r0 - 1.;

Definition at line 225 of file GenUtils.cpp.


Variable Documentation

int B = 4

Definition at line 240 of file GenUtils.cpp.

int BM = 3

Definition at line 241 of file GenUtils.cpp.

double g1[MAXB+MAXB+2] [static]

Definition at line 237 of file GenUtils.cpp.

double g2[MAXB+MAXB+2][2] [static]

Definition at line 236 of file GenUtils.cpp.

Referenced by fidct().

double g3[MAXB+MAXB+2][3] [static]

Definition at line 235 of file GenUtils.cpp.

int p[MAXB+MAXB+2] [static]

Definition at line 234 of file GenUtils.cpp.

Referenced by decodeBlock().

int start = 1

Definition at line 239 of file GenUtils.cpp.

Referenced by GUITextBox::setupText().


Generated on Wed Dec 5 20:32:03 2007 for GLWX by  doxygen 1.5.3