STEREO2.C File Reference

Go to the source code of this file.

Defines

#define VECCOPY(a, b)   { b[0] = a[0]; b[1] = a[1]; b[2] = a[2]; }
#define INVERT(a)   { a[0] = -a[0]; a[1] = -a[1]; a[2] = -a[2]; }
#define VECSUB(a, b, c)   { c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];}
#define VECSUM(a, b, c)   { c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];}
#define VECSCALE(a, b, c)   { c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];}
#define DOT(a, b)   ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) )
#define CROSS(v1, v2, r)
#define TOL   0.1

Functions

unsigned char * LoadMAP (char *name, int *x, int *y)
BOOL WINAPI DllMain (HANDLE hDLL, DWORD dwReason, LPVOID lpReserved)
double hitpoint (vector n, vector x, vector y, vector pb, vector pf, double *a, double *b)
long MapFrom (vector p, vector Mp, vector Mdx, vector Mdy, vector Mn, fullscreenbuffer *S, long Xmax, long Ymax, double *red, double *green, double *blue)
fullscreenbufferScaleImageMap (unsigned char *ImagePixels, int x, int y, long X, long Y)
long _RenderImageProcess (char *PrmList, XIMAGE *lpXimage)
long _RenderGLexternal (char *PrmList, XIMAGE *lpXimage)
BOOL CALLBACK DlgProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
char * _SetExternalParameters (char *Op, HWND hWnd, long ruler, char *name, X__MEMORY_MANAGER *lpEVI)

Variables

int colourmap_size
int x_size
int y_size
int gif_iLace


Define Documentation

#define VECCOPY ( a,
 )     { b[0] = a[0]; b[1] = a[1]; b[2] = a[2]; }

Definition at line 75 of file STEREO2.C.

#define INVERT (  )     { a[0] = -a[0]; a[1] = -a[1]; a[2] = -a[2]; }

Definition at line 76 of file STEREO2.C.

#define VECSUB ( a,
b,
 )     { c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];}

Definition at line 77 of file STEREO2.C.

#define VECSUM ( a,
b,
 )     { c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];}

Definition at line 78 of file STEREO2.C.

#define VECSCALE ( a,
b,
 )     { c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];}

Definition at line 79 of file STEREO2.C.

#define DOT ( a,
 )     ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) )

Definition at line 80 of file STEREO2.C.

#define CROSS ( v1,
v2,
 ) 

Value:

{ \
                          r[0] = (v1[1]*v2[2]) - (v2[1]*v1[2]);  \
                          r[1] = (v1[2]*v2[0]) - (v1[0]*v2[2]);  \
                          r[2] = (v1[0]*v2[1]) - (v2[0]*v1[1]);  \
                        }

Definition at line 81 of file STEREO2.C.

#define TOL   0.1

Definition at line 86 of file STEREO2.C.


Function Documentation

unsigned char* LoadMAP ( char *  name,
int *  x,
int *  y 
)

Definition at line 200 of file VIDEO2.C.

BOOL WINAPI DllMain ( HANDLE  hDLL,
DWORD  dwReason,
LPVOID  lpReserved 
)

Definition at line 53 of file STEREO2.C.

References DLL_PROCESS_ATTACH, DLL_PROCESS_DETACH, FALSE, and TRUE.

long MapFrom ( vector  p,
vector  Mp,
vector  Mdx,
vector  Mdy,
vector  Mn,
fullscreenbuffer S,
long  Xmax,
long  Ymax,
double *  red,
double *  green,
double *  blue 
)

Definition at line 124 of file STEREO2.C.

References B, double, G, hitpoint(), and R.

Referenced by ScaleImageMap().

fullscreenbuffer* ScaleImageMap ( unsigned char *  ImagePixels,
int  x,
int  y,
long  X,
long  Y 
)

Definition at line 186 of file STEREO2.C.

References double, MapFrom(), T, X__Free, and X__Malloc.

Referenced by _RenderImageProcess().

long _RenderImageProcess ( char *  PrmList,
XIMAGE lpXimage 
)

long _RenderGLexternal ( char *  PrmList,
XIMAGE lpXimage 
)

Definition at line 298 of file STEREO2.C.

BOOL CALLBACK DlgProc ( HWND  hwnd,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam 
)

Definition at line 55 of file 3DSCON.C.

char* _SetExternalParameters ( char *  Op,
HWND  hWnd,
long  ruler,
char *  name,
X__MEMORY_MANAGER lpEVI 
)

Definition at line 311 of file STEREO2.C.

References CALL_FREE, CALL_MALLOC, DLG_SUPER, DlgProc(), FALSE, id1, id2, and version.


Variable Documentation

Definition at line 389 of file STEREO2.C.

Referenced by read_gif_image().

int x_size

int y_size

int gif_iLace

Definition at line 389 of file STEREO2.C.

Referenced by read_gif_image().


Generated on Sun Apr 27 14:20:16 2014 for OpenFX by  doxygen 1.5.6