Go to the source code of this file.
|
typedef unsigned char | byte |
|
typedef unsigned short | word |
|
#define BQEMULT -0.08131f |
#define CLAMP |
( |
|
v, |
|
|
|
l, |
|
|
|
h |
|
) |
| ((v)<(l) ? (l) : (v)>(h) ? (h) : v) |
#define dabs |
( |
|
a | ) |
(((a)<0) ? -(a) : (a)) |
#define GIEMULT -0.33126f |
#define GQEMULT -0.41869f |
#define gsign |
( |
|
a | ) |
((a) < 0 ? -1 : 1) |
#define lum |
( |
|
a | ) |
( 0.2990*(a>>16) + 0.5870*((a>>8)&0xff) + 0.1140*(a&0xff) ) |
#define mmax |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) > (b) ? (a) : (b)) |
#define mmin |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (a) : (b)) |
#define mnint |
( |
|
a | ) |
((a) < 0 ? (int)(a - 0.5) : (int)(a + 0.5)) |
#define RGBADIST |
( |
|
src0, |
|
|
|
src1 |
|
) |
| |
Value:( ((src0[0]-src1[0])*(src0[0]-src1[0])) + \
((src0[1]-src1[1])*(src0[1]-src1[1])) + \
((src0[2]-src1[2])*(src0[2]-src1[2])) + \
((src0[3]-src1[3])*(src0[3]-src1[3])) )
Definition at line 51 of file gdefs.h.
#define RGBDIST |
( |
|
src0, |
|
|
|
src1 |
|
) |
| |
Value:( ((src0[0]-src1[0])*(src0[0]-src1[0])) + \
((src0[1]-src1[1])*(src0[1]-src1[1])) + \
((src0[2]-src1[2])*(src0[2]-src1[2])) )
Definition at line 47 of file gdefs.h.
#define RIEMULT -0.16874f |
#define xswap |
( |
|
a, |
|
|
|
b |
|
) |
| { a^=b; b^=a; a^=b; } |
typedef unsigned char byte |
typedef unsigned short word |