#include "Color.H"
#include <stdio.h>
Defines | |
#define | max(a, b) (((a) > (b)) ? (a) : (b)) |
#define | min(a, b) (((a) < (b)) ? (a) : (b)) |
#define | WHITE_XYZ_X .9505 |
#define | WHITE_XYZ_Y 1 |
#define | WHITE_XYZ_Z 1.0891 |
#define | XYZ_LAB_RATIO 0.008856 |
#define | XYZ_LAB_RATIO_CUBE_ROOT 0.20689303442 |
#define | SIXTEEN_DIVIDED_BY_ONE_SIXTEEN 0.13793103448 |
#define | ONE_EIGHTY_DIVIDED_BY_PI 57.29577951308232 |
#define | PI_DIVIDED_BY_ONE_EIGHTY 0.0174532925199433 |
#define | ONE_HUNDRED_DIVIDED_BY_MAX_CHROMA 0.7473630012207826 |
#define | MAX_CHROMA_DIVIDED_BY_ONE_HUNDRED 1.338037872314453125 |
#define | ONE_HUNDRED_DIVIDED_BY_MAX_SATURATION 6.568630257647671 |
#define | MAX_SATURATION_DIVIDED_BY_ONE_HUNDRED .1522387409210205078125 |
#define | UNINDEX_SATURATION(saturation) (saturation*MAX_SATURATION_DIVIDED_BY_ONE_HUNDRED) |
#define | INDEX_SATURATION(saturation) (saturation*ONE_HUNDRED_DIVIDED_BY_MAX_SATURATION) |
#define | UNINDEX_CHROMA(chroma) (chroma*MAX_CHROMA_DIVIDED_BY_ONE_HUNDRED) |
#define | INDEX_CHROMA(chroma) (chroma*ONE_HUNDRED_DIVIDED_BY_MAX_CHROMA) |
#define | NEG_INF -1024.0 |
#define | POS_INF 1024.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|