VIDEO1.C File Reference

Go to the source code of this file.

Defines

#define PI   3.1415926
#define PI2   PI/2
#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

Typedefs

typedef double vector [3]

Functions

void Hsv2Rgb (double h, double s, double v, unsigned char *r, unsigned char *g, unsigned char *b)
void Rgb2Hsv (unsigned char r, unsigned char g, unsigned char b, double *h, double *s, double *v)
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)
BOOL Bilinear (double alpha, double beta, fullscreenbuffer *S, long Xmax, long Ymax, double *red, double *green, double *blue)


Define Documentation

#define PI   3.1415926

Definition at line 93 of file VIDEO1.C.

#define PI2   PI/2

Definition at line 95 of file VIDEO1.C.

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

Definition at line 99 of file VIDEO1.C.

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

Definition at line 100 of file VIDEO1.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 101 of file VIDEO1.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 102 of file VIDEO1.C.

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

Definition at line 103 of file VIDEO1.C.

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

Definition at line 104 of file VIDEO1.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 105 of file VIDEO1.C.

#define TOL   0.1

Definition at line 110 of file VIDEO1.C.


Typedef Documentation

typedef double vector[3]

Definition at line 97 of file VIDEO1.C.


Function Documentation

void Hsv2Rgb ( double  h,
double  s,
double  v,
unsigned char *  r,
unsigned char *  g,
unsigned char *  b 
)

Definition at line 47 of file VIDEO1.C.

References double, and min.

void Rgb2Hsv ( unsigned char  r,
unsigned char  g,
unsigned char  b,
double *  h,
double *  s,
double *  v 
)

Definition at line 69 of file VIDEO1.C.

References double, max, and min.

Referenced by _ExternalTextureProcedure(), and _RenderImageProcess().

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 148 of file VIDEO1.C.

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

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

Definition at line 347 of file VIDEO1.C.

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

BOOL Bilinear ( double  alpha,
double  beta,
fullscreenbuffer S,
long  Xmax,
long  Ymax,
double *  red,
double *  green,
double *  blue 
)

Definition at line 414 of file VIDEO1.C.

References B, double, FALSE, G, R, and TRUE.


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